cocoda-sdk 3.3.3 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,24 @@
1
1
  /*!
2
- * cocoda-sdk v3.3.3
2
+ * cocoda-sdk v3.4.0
3
3
  * Copyright (c) 2021 Verbundzentrale des GBV (VZG)
4
4
  * @license MIT
5
5
  *
6
6
  * For dependency license information, please see ./dist/cocoda-sdk.js.LICENSES.txt.
7
7
  */
8
- var CDK=(()=>{var rm=Object.create;var mt=Object.defineProperty,tm=Object.defineProperties,im=Object.getOwnPropertyDescriptor,nm=Object.getOwnPropertyDescriptors,sm=Object.getOwnPropertyNames,Jt=Object.getOwnPropertySymbols,am=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable;var Ds=(r,e,t)=>e in r?mt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,R=(r,e)=>{for(var t in e||(e={}))Ji.call(e,t)&&Ds(r,t,e[t]);if(Jt)for(var t of Jt(e))Fs.call(e,t)&&Ds(r,t,e[t]);return r},$=(r,e)=>tm(r,nm(e));var gt=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var J=(r,e)=>{var t={};for(var i in r)Ji.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Jt)for(var i of Jt(r))e.indexOf(i)<0&&Fs.call(r,i)&&(t[i]=r[i]);return t};var g=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Vt=(r,e)=>{for(var t in e)mt(r,t,{get:e[t],enumerable:!0})},Bs=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of sm(e))!Ji.call(r,n)&&n!==t&&mt(r,n,{get:()=>e[n],enumerable:!(i=im(e,n))||i.enumerable});return r};var fe=(r,e,t)=>(t=r!=null?rm(am(r)):{},Bs(e||!r||!r.__esModule?mt(t,"default",{value:r,enumerable:!0}):t,r)),om=r=>Bs(mt({},"__esModule",{value:!0}),r);var j=(r,e,t)=>new Promise((i,n)=>{var s=o=>{try{u(t.next(o))}catch(l){n(l)}},a=o=>{try{u(t.throw(o))}catch(l){n(l)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,a);u((t=t.apply(r,e)).next())});var Vi=g((OE,ks)=>{"use strict";ks.exports=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s<n.length;s++)n[s]=arguments[s];return e.apply(t,n)}}});var Be=g((qE,Hs)=>{"use strict";var um=Vi(),pr=Object.prototype.toString;function Zi(r){return Array.isArray(r)}function Yi(r){return typeof r=="undefined"}function fm(r){return r!==null&&!Yi(r)&&r.constructor!==null&&!Yi(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function $s(r){return pr.call(r)==="[object ArrayBuffer]"}function cm(r){return pr.call(r)==="[object FormData]"}function lm(r){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&$s(r.buffer),e}function hm(r){return typeof r=="string"}function pm(r){return typeof r=="number"}function zs(r){return r!==null&&typeof r=="object"}function Yt(r){if(pr.call(r)!=="[object Object]")return!1;var e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}function dm(r){return pr.call(r)==="[object Date]"}function mm(r){return pr.call(r)==="[object File]"}function gm(r){return pr.call(r)==="[object Blob]"}function Ws(r){return pr.call(r)==="[object Function]"}function vm(r){return zs(r)&&Ws(r.pipe)}function ym(r){return pr.call(r)==="[object URLSearchParams]"}function _m(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function wm(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Qi(r,e){if(!(r===null||typeof r=="undefined"))if(typeof r!="object"&&(r=[r]),Zi(r))for(var t=0,i=r.length;t<i;t++)e.call(null,r[t],t,r);else for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.call(null,r[n],n,r)}function Xi(){var r={};function e(n,s){Yt(r[s])&&Yt(n)?r[s]=Xi(r[s],n):Yt(n)?r[s]=Xi({},n):Zi(n)?r[s]=n.slice():r[s]=n}for(var t=0,i=arguments.length;t<i;t++)Qi(arguments[t],e);return r}function bm(r,e,t){return Qi(e,function(n,s){t&&typeof n=="function"?r[s]=um(n,t):r[s]=n}),r}function xm(r){return r.charCodeAt(0)===65279&&(r=r.slice(1)),r}Hs.exports={isArray:Zi,isArrayBuffer:$s,isBuffer:fm,isFormData:cm,isArrayBufferView:lm,isString:hm,isNumber:pm,isObject:zs,isPlainObject:Yt,isUndefined:Yi,isDate:dm,isFile:mm,isBlob:gm,isFunction:Ws,isStream:vm,isURLSearchParams:ym,isStandardBrowserEnv:wm,forEach:Qi,merge:Xi,extend:bm,trim:_m,stripBOM:xm}});var en=g((CE,Ks)=>{"use strict";var Gr=Be();function Gs(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ks.exports=function(e,t,i){if(!t)return e;var n;if(i)n=i(t);else if(Gr.isURLSearchParams(t))n=t.toString();else{var s=[];Gr.forEach(t,function(o,l){o===null||typeof o=="undefined"||(Gr.isArray(o)?l=l+"[]":o=[o],Gr.forEach(o,function(b){Gr.isDate(b)?b=b.toISOString():Gr.isObject(b)&&(b=JSON.stringify(b)),s.push(Gs(l)+"="+Gs(b))}))}),n=s.join("&")}if(n){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}});var Vs=g((EE,Js)=>{"use strict";var Sm=Be();function Xt(){this.handlers=[]}Xt.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1};Xt.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Xt.prototype.forEach=function(e){Sm.forEach(this.handlers,function(i){i!==null&&e(i)})};Js.exports=Xt});var Xs=g((IE,Ys)=>{"use strict";var Am=Be();Ys.exports=function(e,t){Am.forEach(e,function(n,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[s])})}});var rn=g((TE,Zs)=>{"use strict";Zs.exports=function(e,t,i,n,s){return e.config=t,i&&(e.code=i),e.request=n,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}});var tn=g((PE,Qs)=>{"use strict";Qs.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var nn=g((ME,ea)=>{"use strict";var Om=rn();ea.exports=function(e,t,i,n,s){var a=new Error(e);return Om(a,t,i,n,s)}});var ta=g((RE,ra)=>{"use strict";var qm=nn();ra.exports=function(e,t,i){var n=i.config.validateStatus;!i.status||!n||n(i.status)?e(i):t(qm("Request failed with status code "+i.status,i.config,null,i.request,i))}});var na=g((LE,ia)=>{"use strict";var Zt=Be();ia.exports=Zt.isStandardBrowserEnv()?function(){return{write:function(t,i,n,s,a,u){var o=[];o.push(t+"="+encodeURIComponent(i)),Zt.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Zt.isString(s)&&o.push("path="+s),Zt.isString(a)&&o.push("domain="+a),u===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var aa=g((jE,sa)=>{"use strict";sa.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}});var ua=g((NE,oa)=>{"use strict";oa.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}});var ca=g((UE,fa)=>{"use strict";var Cm=aa(),Em=ua();fa.exports=function(e,t){return e&&!Cm(t)?Em(e,t):t}});var ha=g((DE,la)=>{"use strict";var sn=Be(),Im=["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"];la.exports=function(e){var t={},i,n,s;return e&&sn.forEach(e.split(`
9
- `),function(u){if(s=u.indexOf(":"),i=sn.trim(u.substr(0,s)).toLowerCase(),n=sn.trim(u.substr(s+1)),i){if(t[i]&&Im.indexOf(i)>=0)return;i==="set-cookie"?t[i]=(t[i]?t[i]:[]).concat([n]):t[i]=t[i]?t[i]+", "+n:n}}),t}});var ma=g((FE,da)=>{"use strict";var pa=Be();da.exports=pa.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),i;function n(s){var a=s;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return i=n(window.location.href),function(a){var u=pa.isString(a)?n(a):a;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}()});var bt=g((BE,ga)=>{"use strict";function an(r){this.message=r}an.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};an.prototype.__CANCEL__=!0;ga.exports=an});var un=g((kE,va)=>{"use strict";var Qt=Be(),Tm=ta(),Pm=na(),Mm=en(),Rm=ca(),Lm=ha(),jm=ma(),on=nn(),Nm=tn(),Um=bt();va.exports=function(e){return new Promise(function(i,n){var s=e.data,a=e.headers,u=e.responseType,o;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}Qt.isFormData(s)&&delete a["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(b+":"+_)}var q=Rm(e.baseURL,e.url);p.open(e.method.toUpperCase(),Mm(q,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function y(){if(!!p){var H="getAllResponseHeaders"in p?Lm(p.getAllResponseHeaders()):null,K=!u||u==="text"||u==="json"?p.responseText:p.response,Q={data:K,status:p.status,statusText:p.statusText,headers:H,config:e,request:p};Tm(function(Z){i(Z),l()},function(Z){n(Z),l()},Q),p=null}}if("onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){!p||(n(on("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(on("Network Error",e,null,p)),p=null},p.ontimeout=function(){var K=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Q=e.transitional||Nm;e.timeoutErrorMessage&&(K=e.timeoutErrorMessage),n(on(K,e,Q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},Qt.isStandardBrowserEnv()){var E=(e.withCredentials||jm(q))&&e.xsrfCookieName?Pm.read(e.xsrfCookieName):void 0;E&&(a[e.xsrfHeaderName]=E)}"setRequestHeader"in p&&Qt.forEach(a,function(K,Q){typeof s=="undefined"&&Q.toLowerCase()==="content-type"?delete a[Q]:p.setRequestHeader(Q,K)}),Qt.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),u&&u!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(o=function(H){!p||(n(!H||H&&H.type?new Um("canceled"):H),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),s||(s=null),p.send(s)})}});var ri=g(($E,wa)=>{"use strict";var Me=Be(),ya=Xs(),Dm=rn(),Fm=tn(),Bm={"Content-Type":"application/x-www-form-urlencoded"};function _a(r,e){!Me.isUndefined(r)&&Me.isUndefined(r["Content-Type"])&&(r["Content-Type"]=e)}function km(){var r;return typeof XMLHttpRequest!="undefined"?r=un():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(r=un()),r}function $m(r,e,t){if(Me.isString(r))try{return(e||JSON.parse)(r),Me.trim(r)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(r)}var ei={transitional:Fm,adapter:km(),transformRequest:[function(e,t){return ya(t,"Accept"),ya(t,"Content-Type"),Me.isFormData(e)||Me.isArrayBuffer(e)||Me.isBuffer(e)||Me.isStream(e)||Me.isFile(e)||Me.isBlob(e)?e:Me.isArrayBufferView(e)?e.buffer:Me.isURLSearchParams(e)?(_a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Me.isObject(e)||t&&t["Content-Type"]==="application/json"?(_a(t,"application/json"),$m(e)):e}],transformResponse:[function(e){var t=this.transitional||ei.transitional,i=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!i&&this.responseType==="json";if(s||n&&Me.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Dm(a,this,"E_JSON_PARSE"):a}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Me.forEach(["delete","get","head"],function(e){ei.headers[e]={}});Me.forEach(["post","put","patch"],function(e){ei.headers[e]=Me.merge(Bm)});wa.exports=ei});var xa=g((zE,ba)=>{"use strict";var zm=Be(),Wm=ri();ba.exports=function(e,t,i){var n=this||Wm;return zm.forEach(i,function(a){e=a.call(n,e,t)}),e}});var fn=g((WE,Sa)=>{"use strict";Sa.exports=function(e){return!!(e&&e.__CANCEL__)}});var qa=g((HE,Oa)=>{"use strict";var Aa=Be(),cn=xa(),Hm=fn(),Gm=ri(),Km=bt();function ln(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Km("canceled")}Oa.exports=function(e){ln(e),e.headers=e.headers||{},e.data=cn.call(e,e.data,e.headers,e.transformRequest),e.headers=Aa.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Aa.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var t=e.adapter||Gm.adapter;return t(e).then(function(n){return ln(e),n.data=cn.call(e,n.data,n.headers,e.transformResponse),n},function(n){return Hm(n)||(ln(e),n&&n.response&&(n.response.data=cn.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})}});var hn=g((GE,Ca)=>{"use strict";var We=Be();Ca.exports=function(e,t){t=t||{};var i={};function n(p,b){return We.isPlainObject(p)&&We.isPlainObject(b)?We.merge(p,b):We.isPlainObject(b)?We.merge({},b):We.isArray(b)?b.slice():b}function s(p){if(We.isUndefined(t[p])){if(!We.isUndefined(e[p]))return n(void 0,e[p])}else return n(e[p],t[p])}function a(p){if(!We.isUndefined(t[p]))return n(void 0,t[p])}function u(p){if(We.isUndefined(t[p])){if(!We.isUndefined(e[p]))return n(void 0,e[p])}else return n(void 0,t[p])}function o(p){if(p in t)return n(e[p],t[p]);if(p in e)return n(void 0,e[p])}var l={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:o};return We.forEach(Object.keys(e).concat(Object.keys(t)),function(b){var _=l[b]||s,q=_(b);We.isUndefined(q)&&_!==o||(i[b]=q)}),i}});var pn=g((KE,Ea)=>{Ea.exports={version:"0.26.1"}});var Pa=g((JE,Ta)=>{"use strict";var Jm=pn().version,dn={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){dn[r]=function(i){return typeof i===r||"a"+(e<1?"n ":" ")+r}});var Ia={};dn.transitional=function(e,t,i){function n(s,a){return"[Axios v"+Jm+"] Transitional option '"+s+"'"+a+(i?". "+i:"")}return function(s,a,u){if(e===!1)throw new Error(n(a," has been removed"+(t?" in "+t:"")));return t&&!Ia[a]&&(Ia[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,a,u):!0}};function Vm(r,e,t){if(typeof r!="object")throw new TypeError("options must be an object");for(var i=Object.keys(r),n=i.length;n-- >0;){var s=i[n],a=e[s];if(a){var u=r[s],o=u===void 0||a(u,s,r);if(o!==!0)throw new TypeError("option "+s+" must be "+o);continue}if(t!==!0)throw Error("Unknown option "+s)}}Ta.exports={assertOptions:Vm,validators:dn}});var Ua=g((VE,Na)=>{"use strict";var La=Be(),Ym=en(),Ma=Vs(),Ra=qa(),ti=hn(),ja=Pa(),Kr=ja.validators;function xt(r){this.defaults=r,this.interceptors={request:new Ma,response:new Ma}}xt.prototype.request=function(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ti(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&ja.assertOptions(i,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(q){typeof q.runWhen=="function"&&q.runWhen(t)===!1||(s=s&&q.synchronous,n.unshift(q.fulfilled,q.rejected))});var a=[];this.interceptors.response.forEach(function(q){a.push(q.fulfilled,q.rejected)});var u;if(!s){var o=[Ra,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(a),u=Promise.resolve(t);o.length;)u=u.then(o.shift(),o.shift());return u}for(var l=t;n.length;){var p=n.shift(),b=n.shift();try{l=p(l)}catch(_){b(_);break}}try{u=Ra(l)}catch(_){return Promise.reject(_)}for(;a.length;)u=u.then(a.shift(),a.shift());return u};xt.prototype.getUri=function(e){return e=ti(this.defaults,e),Ym(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};La.forEach(["delete","get","head","options"],function(e){xt.prototype[e]=function(t,i){return this.request(ti(i||{},{method:e,url:t,data:(i||{}).data}))}});La.forEach(["post","put","patch"],function(e){xt.prototype[e]=function(t,i,n){return this.request(ti(n||{},{method:e,url:t,data:i}))}});Na.exports=xt});var Fa=g((YE,Da)=>{"use strict";var Xm=bt();function Jr(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(n){e=n});var t=this;this.promise.then(function(i){if(!!t._listeners){var n,s=t._listeners.length;for(n=0;n<s;n++)t._listeners[n](i);t._listeners=null}}),this.promise.then=function(i){var n,s=new Promise(function(a){t.subscribe(a),n=a}).then(i);return s.cancel=function(){t.unsubscribe(n)},s},r(function(n){t.reason||(t.reason=new Xm(n),e(t.reason))})}Jr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Jr.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};Jr.prototype.unsubscribe=function(e){if(!!this._listeners){var t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}};Jr.source=function(){var e,t=new Jr(function(n){e=n});return{token:t,cancel:e}};Da.exports=Jr});var ka=g((XE,Ba)=>{"use strict";Ba.exports=function(e){return function(i){return e.apply(null,i)}}});var za=g((ZE,$a)=>{"use strict";var Zm=Be();$a.exports=function(e){return Zm.isObject(e)&&e.isAxiosError===!0}});var Ga=g((QE,mn)=>{"use strict";var Wa=Be(),Qm=Vi(),ii=Ua(),eg=hn(),rg=ri();function Ha(r){var e=new ii(r),t=Qm(ii.prototype.request,e);return Wa.extend(t,ii.prototype,e),Wa.extend(t,e),t.create=function(n){return Ha(eg(r,n))},t}var er=Ha(rg);er.Axios=ii;er.Cancel=bt();er.CancelToken=Fa();er.isCancel=fn();er.VERSION=pn().version;er.all=function(e){return Promise.all(e)};er.spread=ka();er.isAxiosError=za();mn.exports=er;mn.exports.default=er});var ni=g((eI,Ka)=>{Ka.exports=Ga()});var ke=g((rI,Ja)=>{var tg=Array.isArray;Ja.exports=tg});var gn=g((tI,Va)=>{var ig=typeof global=="object"&&global&&global.Object===Object&&global;Va.exports=ig});var Ve=g((iI,Ya)=>{var ng=gn(),sg=typeof self=="object"&&self&&self.Object===Object&&self,ag=ng||sg||Function("return this")();Ya.exports=ag});var Mr=g((nI,Xa)=>{var og=Ve(),ug=og.Symbol;Xa.exports=ug});var ro=g((sI,eo)=>{var Za=Mr(),Qa=Object.prototype,fg=Qa.hasOwnProperty,cg=Qa.toString,St=Za?Za.toStringTag:void 0;function lg(r){var e=fg.call(r,St),t=r[St];try{r[St]=void 0;var i=!0}catch(s){}var n=cg.call(r);return i&&(e?r[St]=t:delete r[St]),n}eo.exports=lg});var io=g((aI,to)=>{var hg=Object.prototype,pg=hg.toString;function dg(r){return pg.call(r)}to.exports=dg});var dr=g((oI,ao)=>{var no=Mr(),mg=ro(),gg=io(),vg="[object Null]",yg="[object Undefined]",so=no?no.toStringTag:void 0;function _g(r){return r==null?r===void 0?yg:vg:so&&so in Object(r)?mg(r):gg(r)}ao.exports=_g});var Ye=g((uI,oo)=>{function wg(r){return r!=null&&typeof r=="object"}oo.exports=wg});var si=g((fI,uo)=>{var bg=dr(),xg=Ye(),Sg="[object Symbol]";function Ag(r){return typeof r=="symbol"||xg(r)&&bg(r)==Sg}uo.exports=Ag});var co=g((cI,fo)=>{var Og=ke(),qg=si(),Cg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Eg=/^\w*$/;function Ig(r,e){if(Og(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||qg(r)?!0:Eg.test(r)||!Cg.test(r)||e!=null&&r in Object(e)}fo.exports=Ig});var Xe=g((lI,lo)=>{function Tg(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}lo.exports=Tg});var ai=g((hI,ho)=>{var Pg=dr(),Mg=Xe(),Rg="[object AsyncFunction]",Lg="[object Function]",jg="[object GeneratorFunction]",Ng="[object Proxy]";function Ug(r){if(!Mg(r))return!1;var e=Pg(r);return e==Lg||e==jg||e==Rg||e==Ng}ho.exports=Ug});var mo=g((pI,po)=>{var Dg=Ve(),Fg=Dg["__core-js_shared__"];po.exports=Fg});var yo=g((dI,vo)=>{var vn=mo(),go=function(){var r=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Bg(r){return!!go&&go in r}vo.exports=Bg});var yn=g((mI,_o)=>{var kg=Function.prototype,$g=kg.toString;function zg(r){if(r!=null){try{return $g.call(r)}catch(e){}try{return r+""}catch(e){}}return""}_o.exports=zg});var bo=g((gI,wo)=>{var Wg=ai(),Hg=yo(),Gg=Xe(),Kg=yn(),Jg=/[\\^$.*+?()[\]{}|]/g,Vg=/^\[object .+?Constructor\]$/,Yg=Function.prototype,Xg=Object.prototype,Zg=Yg.toString,Qg=Xg.hasOwnProperty,ev=RegExp("^"+Zg.call(Qg).replace(Jg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rv(r){if(!Gg(r)||Hg(r))return!1;var e=Wg(r)?ev:Vg;return e.test(Kg(r))}wo.exports=rv});var So=g((vI,xo)=>{function tv(r,e){return r==null?void 0:r[e]}xo.exports=tv});var mr=g((yI,Ao)=>{var iv=bo(),nv=So();function sv(r,e){var t=nv(r,e);return iv(t)?t:void 0}Ao.exports=sv});var At=g((_I,Oo)=>{var av=mr(),ov=av(Object,"create");Oo.exports=ov});var Eo=g((wI,Co)=>{var qo=At();function uv(){this.__data__=qo?qo(null):{},this.size=0}Co.exports=uv});var To=g((bI,Io)=>{function fv(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Io.exports=fv});var Mo=g((xI,Po)=>{var cv=At(),lv="__lodash_hash_undefined__",hv=Object.prototype,pv=hv.hasOwnProperty;function dv(r){var e=this.__data__;if(cv){var t=e[r];return t===lv?void 0:t}return pv.call(e,r)?e[r]:void 0}Po.exports=dv});var Lo=g((SI,Ro)=>{var mv=At(),gv=Object.prototype,vv=gv.hasOwnProperty;function yv(r){var e=this.__data__;return mv?e[r]!==void 0:vv.call(e,r)}Ro.exports=yv});var No=g((AI,jo)=>{var _v=At(),wv="__lodash_hash_undefined__";function bv(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=_v&&e===void 0?wv:e,this}jo.exports=bv});var Do=g((OI,Uo)=>{var xv=Eo(),Sv=To(),Av=Mo(),Ov=Lo(),qv=No();function Vr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}Vr.prototype.clear=xv;Vr.prototype.delete=Sv;Vr.prototype.get=Av;Vr.prototype.has=Ov;Vr.prototype.set=qv;Uo.exports=Vr});var Bo=g((qI,Fo)=>{function Cv(){this.__data__=[],this.size=0}Fo.exports=Cv});var Yr=g((CI,ko)=>{function Ev(r,e){return r===e||r!==r&&e!==e}ko.exports=Ev});var Ot=g((EI,$o)=>{var Iv=Yr();function Tv(r,e){for(var t=r.length;t--;)if(Iv(r[t][0],e))return t;return-1}$o.exports=Tv});var Wo=g((II,zo)=>{var Pv=Ot(),Mv=Array.prototype,Rv=Mv.splice;function Lv(r){var e=this.__data__,t=Pv(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():Rv.call(e,t,1),--this.size,!0}zo.exports=Lv});var Go=g((TI,Ho)=>{var jv=Ot();function Nv(r){var e=this.__data__,t=jv(e,r);return t<0?void 0:e[t][1]}Ho.exports=Nv});var Jo=g((PI,Ko)=>{var Uv=Ot();function Dv(r){return Uv(this.__data__,r)>-1}Ko.exports=Dv});var Yo=g((MI,Vo)=>{var Fv=Ot();function Bv(r,e){var t=this.__data__,i=Fv(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}Vo.exports=Bv});var qt=g((RI,Xo)=>{var kv=Bo(),$v=Wo(),zv=Go(),Wv=Jo(),Hv=Yo();function Xr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}Xr.prototype.clear=kv;Xr.prototype.delete=$v;Xr.prototype.get=zv;Xr.prototype.has=Wv;Xr.prototype.set=Hv;Xo.exports=Xr});var oi=g((LI,Zo)=>{var Gv=mr(),Kv=Ve(),Jv=Gv(Kv,"Map");Zo.exports=Jv});var ru=g((jI,eu)=>{var Qo=Do(),Vv=qt(),Yv=oi();function Xv(){this.size=0,this.__data__={hash:new Qo,map:new(Yv||Vv),string:new Qo}}eu.exports=Xv});var iu=g((NI,tu)=>{function Zv(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}tu.exports=Zv});var Ct=g((UI,nu)=>{var Qv=iu();function ey(r,e){var t=r.__data__;return Qv(e)?t[typeof e=="string"?"string":"hash"]:t.map}nu.exports=ey});var au=g((DI,su)=>{var ry=Ct();function ty(r){var e=ry(this,r).delete(r);return this.size-=e?1:0,e}su.exports=ty});var uu=g((FI,ou)=>{var iy=Ct();function ny(r){return iy(this,r).get(r)}ou.exports=ny});var cu=g((BI,fu)=>{var sy=Ct();function ay(r){return sy(this,r).has(r)}fu.exports=ay});var hu=g((kI,lu)=>{var oy=Ct();function uy(r,e){var t=oy(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}lu.exports=uy});var ui=g(($I,pu)=>{var fy=ru(),cy=au(),ly=uu(),hy=cu(),py=hu();function Zr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}Zr.prototype.clear=fy;Zr.prototype.delete=cy;Zr.prototype.get=ly;Zr.prototype.has=hy;Zr.prototype.set=py;pu.exports=Zr});var gu=g((zI,mu)=>{var du=ui(),dy="Expected a function";function _n(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(dy);var t=function(){var i=arguments,n=e?e.apply(this,i):i[0],s=t.cache;if(s.has(n))return s.get(n);var a=r.apply(this,i);return t.cache=s.set(n,a)||s,a};return t.cache=new(_n.Cache||du),t}_n.Cache=du;mu.exports=_n});var yu=g((WI,vu)=>{var my=gu(),gy=500;function vy(r){var e=my(r,function(i){return t.size===gy&&t.clear(),i}),t=e.cache;return e}vu.exports=vy});var wu=g((HI,_u)=>{var yy=yu(),_y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wy=/\\(\\)?/g,by=yy(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(_y,function(t,i,n,s){e.push(n?s.replace(wy,"$1"):i||t)}),e});_u.exports=by});var Et=g((GI,bu)=>{function xy(r,e){for(var t=-1,i=r==null?0:r.length,n=Array(i);++t<i;)n[t]=e(r[t],t,r);return n}bu.exports=xy});var Cu=g((KI,qu)=>{var xu=Mr(),Sy=Et(),Ay=ke(),Oy=si(),qy=1/0,Su=xu?xu.prototype:void 0,Au=Su?Su.toString:void 0;function Ou(r){if(typeof r=="string")return r;if(Ay(r))return Sy(r,Ou)+"";if(Oy(r))return Au?Au.call(r):"";var e=r+"";return e=="0"&&1/r==-qy?"-0":e}qu.exports=Ou});var Iu=g((JI,Eu)=>{var Cy=Cu();function Ey(r){return r==null?"":Cy(r)}Eu.exports=Ey});var It=g((VI,Tu)=>{var Iy=ke(),Ty=co(),Py=wu(),My=Iu();function Ry(r,e){return Iy(r)?r:Ty(r,e)?[r]:Py(My(r))}Tu.exports=Ry});var fi=g((YI,Pu)=>{var Ly=si(),jy=1/0;function Ny(r){if(typeof r=="string"||Ly(r))return r;var e=r+"";return e=="0"&&1/r==-jy?"-0":e}Pu.exports=Ny});var wn=g((XI,Mu)=>{var Uy=It(),Dy=fi();function Fy(r,e){e=Uy(e,r);for(var t=0,i=e.length;r!=null&&t<i;)r=r[Dy(e[t++])];return t&&t==i?r:void 0}Mu.exports=Fy});var Lu=g((ZI,Ru)=>{var By=wn();function ky(r,e,t){var i=r==null?void 0:By(r,e);return i===void 0?t:i}Ru.exports=ky});var bn=g((QI,ju)=>{var $y=mr(),zy=function(){try{var r=$y(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();ju.exports=zy});var ci=g((eT,Uu)=>{var Nu=bn();function Wy(r,e,t){e=="__proto__"&&Nu?Nu(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Uu.exports=Wy});var li=g((rT,Du)=>{var Hy=ci(),Gy=Yr(),Ky=Object.prototype,Jy=Ky.hasOwnProperty;function Vy(r,e,t){var i=r[e];(!(Jy.call(r,e)&&Gy(i,t))||t===void 0&&!(e in r))&&Hy(r,e,t)}Du.exports=Vy});var hi=g((tT,Fu)=>{var Yy=9007199254740991,Xy=/^(?:0|[1-9]\d*)$/;function Zy(r,e){var t=typeof r;return e=e==null?Yy:e,!!e&&(t=="number"||t!="symbol"&&Xy.test(r))&&r>-1&&r%1==0&&r<e}Fu.exports=Zy});var $u=g((iT,ku)=>{var Qy=li(),e_=It(),r_=hi(),Bu=Xe(),t_=fi();function i_(r,e,t,i){if(!Bu(r))return r;e=e_(e,r);for(var n=-1,s=e.length,a=s-1,u=r;u!=null&&++n<s;){var o=t_(e[n]),l=t;if(o==="__proto__"||o==="constructor"||o==="prototype")return r;if(n!=a){var p=u[o];l=i?i(p,o,u):void 0,l===void 0&&(l=Bu(p)?p:r_(e[n+1])?[]:{})}Qy(u,o,l),u=u[o]}return r}ku.exports=i_});var Wu=g((nT,zu)=>{var n_=$u();function s_(r,e,t){return r==null?r:n_(r,e,t)}zu.exports=s_});var Gu=g((sT,Hu)=>{var a_="__lodash_hash_undefined__";function o_(r){return this.__data__.set(r,a_),this}Hu.exports=o_});var Ju=g((aT,Ku)=>{function u_(r){return this.__data__.has(r)}Ku.exports=u_});var di=g((oT,Vu)=>{var f_=ui(),c_=Gu(),l_=Ju();function pi(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new f_;++e<t;)this.add(r[e])}pi.prototype.add=pi.prototype.push=c_;pi.prototype.has=l_;Vu.exports=pi});var Xu=g((uT,Yu)=>{function h_(r,e,t,i){for(var n=r.length,s=t+(i?1:-1);i?s--:++s<n;)if(e(r[s],s,r))return s;return-1}Yu.exports=h_});var Qu=g((fT,Zu)=>{function p_(r){return r!==r}Zu.exports=p_});var rf=g((cT,ef)=>{function d_(r,e,t){for(var i=t-1,n=r.length;++i<n;)if(r[i]===e)return i;return-1}ef.exports=d_});var nf=g((lT,tf)=>{var m_=Xu(),g_=Qu(),v_=rf();function y_(r,e,t){return e===e?v_(r,e,t):m_(r,g_,t)}tf.exports=y_});var xn=g((hT,sf)=>{var __=nf();function w_(r,e){var t=r==null?0:r.length;return!!t&&__(r,e,0)>-1}sf.exports=w_});var Sn=g((pT,af)=>{function b_(r,e,t){for(var i=-1,n=r==null?0:r.length;++i<n;)if(t(e,r[i]))return!0;return!1}af.exports=b_});var mi=g((dT,of)=>{function x_(r,e){return r.has(e)}of.exports=x_});var An=g((mT,uf)=>{var S_=mr(),A_=Ve(),O_=S_(A_,"Set");uf.exports=O_});var cf=g((gT,ff)=>{function q_(){}ff.exports=q_});var gi=g((vT,lf)=>{function C_(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}lf.exports=C_});var pf=g((yT,hf)=>{var On=An(),E_=cf(),I_=gi(),T_=1/0,P_=On&&1/I_(new On([,-0]))[1]==T_?function(r){return new On(r)}:E_;hf.exports=P_});var qn=g((_T,df)=>{var M_=di(),R_=xn(),L_=Sn(),j_=mi(),N_=pf(),U_=gi(),D_=200;function F_(r,e,t){var i=-1,n=R_,s=r.length,a=!0,u=[],o=u;if(t)a=!1,n=L_;else if(s>=D_){var l=e?null:N_(r);if(l)return U_(l);a=!1,n=j_,o=new M_}else o=e?[]:u;e:for(;++i<s;){var p=r[i],b=e?e(p):p;if(p=t||p!==0?p:0,a&&b===b){for(var _=o.length;_--;)if(o[_]===b)continue e;e&&o.push(b),u.push(p)}else n(o,b,t)||(o!==u&&o.push(b),u.push(p))}return u}df.exports=F_});var gf=g((wT,mf)=>{var B_=qn();function k_(r){return r&&r.length?B_(r):[]}mf.exports=k_});var Tt=g((bT,vf)=>{function $_(r){return function(e){return r(e)}}vf.exports=$_});var wf=g((xT,_f)=>{var z_=di(),W_=xn(),H_=Sn(),G_=Et(),K_=Tt(),yf=mi(),J_=Math.min;function V_(r,e,t){for(var i=t?H_:W_,n=r[0].length,s=r.length,a=s,u=Array(s),o=1/0,l=[];a--;){var p=r[a];a&&e&&(p=G_(p,K_(e))),o=J_(p.length,o),u[a]=!t&&(e||n>=120&&p.length>=120)?new z_(a&&p):void 0}p=r[0];var b=-1,_=u[0];e:for(;++b<n&&l.length<o;){var q=p[b],y=e?e(q):q;if(q=t||q!==0?q:0,!(_?yf(_,y):i(l,y,t))){for(a=s;--a;){var E=u[a];if(!(E?yf(E,y):i(r[a],y,t)))continue e}_&&_.push(y),l.push(q)}}return l}_f.exports=V_});var vi=g((ST,bf)=>{function Y_(r){return r}bf.exports=Y_});var Sf=g((AT,xf)=>{function X_(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}xf.exports=X_});var Cn=g((OT,Of)=>{var Z_=Sf(),Af=Math.max;function Q_(r,e,t){return e=Af(e===void 0?r.length-1:e,0),function(){for(var i=arguments,n=-1,s=Af(i.length-e,0),a=Array(s);++n<s;)a[n]=i[e+n];n=-1;for(var u=Array(e+1);++n<e;)u[n]=i[n];return u[e]=t(a),Z_(r,this,u)}}Of.exports=Q_});var Cf=g((qT,qf)=>{function ew(r){return function(){return r}}qf.exports=ew});var Tf=g((CT,If)=>{var rw=Cf(),Ef=bn(),tw=vi(),iw=Ef?function(r,e){return Ef(r,"toString",{configurable:!0,enumerable:!1,value:rw(e),writable:!0})}:tw;If.exports=iw});var Mf=g((ET,Pf)=>{var nw=800,sw=16,aw=Date.now;function ow(r){var e=0,t=0;return function(){var i=aw(),n=sw-(i-t);if(t=i,n>0){if(++e>=nw)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Pf.exports=ow});var En=g((IT,Rf)=>{var uw=Tf(),fw=Mf(),cw=fw(uw);Rf.exports=cw});var yi=g((TT,Lf)=>{var lw=vi(),hw=Cn(),pw=En();function dw(r,e){return pw(hw(r,e,lw),r+"")}Lf.exports=dw});var In=g((PT,jf)=>{var mw=9007199254740991;function gw(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=mw}jf.exports=gw});var Qr=g((MT,Nf)=>{var vw=ai(),yw=In();function _w(r){return r!=null&&yw(r.length)&&!vw(r)}Nf.exports=_w});var _i=g((RT,Uf)=>{var ww=Qr(),bw=Ye();function xw(r){return bw(r)&&ww(r)}Uf.exports=xw});var Ff=g((LT,Df)=>{var Sw=_i();function Aw(r){return Sw(r)?r:[]}Df.exports=Aw});var kf=g((jT,Bf)=>{var Ow=Et(),qw=wf(),Cw=yi(),Ew=Ff(),Iw=Cw(function(r){var e=Ow(r,Ew);return e.length&&e[0]===r[0]?qw(e):[]});Bf.exports=Iw});var Pt=g((NT,$f)=>{function Tw(r,e){for(var t=-1,i=e.length,n=r.length;++t<i;)r[n+t]=e[t];return r}$f.exports=Tw});var Wf=g((UT,zf)=>{var Pw=dr(),Mw=Ye(),Rw="[object Arguments]";function Lw(r){return Mw(r)&&Pw(r)==Rw}zf.exports=Lw});var Mt=g((DT,Kf)=>{var Hf=Wf(),jw=Ye(),Gf=Object.prototype,Nw=Gf.hasOwnProperty,Uw=Gf.propertyIsEnumerable,Dw=Hf(function(){return arguments}())?Hf:function(r){return jw(r)&&Nw.call(r,"callee")&&!Uw.call(r,"callee")};Kf.exports=Dw});var Xf=g((FT,Yf)=>{var Jf=Mr(),Fw=Mt(),Bw=ke(),Vf=Jf?Jf.isConcatSpreadable:void 0;function kw(r){return Bw(r)||Fw(r)||!!(Vf&&r&&r[Vf])}Yf.exports=kw});var wi=g((BT,Qf)=>{var $w=Pt(),zw=Xf();function Zf(r,e,t,i,n){var s=-1,a=r.length;for(t||(t=zw),n||(n=[]);++s<a;){var u=r[s];e>0&&t(u)?e>1?Zf(u,e-1,t,i,n):$w(n,u):i||(n[n.length]=u)}return n}Qf.exports=Zf});var rc=g((kT,ec)=>{var Ww=wi(),Hw=yi(),Gw=qn(),Kw=_i(),Jw=Hw(function(r){return Gw(Ww(r,1,Kw,!0))});ec.exports=Jw});var ic=g(($T,tc)=>{function Vw(r){return function(e,t,i){for(var n=-1,s=Object(e),a=i(e),u=a.length;u--;){var o=a[r?u:++n];if(t(s[o],o,s)===!1)break}return e}}tc.exports=Vw});var Tn=g((zT,nc)=>{var Yw=ic(),Xw=Yw();nc.exports=Xw});var ac=g((WT,sc)=>{function Zw(r,e){for(var t=-1,i=Array(r);++t<r;)i[t]=e(t);return i}sc.exports=Zw});var uc=g((HT,oc)=>{function Qw(){return!1}oc.exports=Qw});var rt=g((Rt,et)=>{var eb=Ve(),rb=uc(),lc=typeof Rt=="object"&&Rt&&!Rt.nodeType&&Rt,fc=lc&&typeof et=="object"&&et&&!et.nodeType&&et,tb=fc&&fc.exports===lc,cc=tb?eb.Buffer:void 0,ib=cc?cc.isBuffer:void 0,nb=ib||rb;et.exports=nb});var pc=g((GT,hc)=>{var sb=dr(),ab=In(),ob=Ye(),ub="[object Arguments]",fb="[object Array]",cb="[object Boolean]",lb="[object Date]",hb="[object Error]",pb="[object Function]",db="[object Map]",mb="[object Number]",gb="[object Object]",vb="[object RegExp]",yb="[object Set]",_b="[object String]",wb="[object WeakMap]",bb="[object ArrayBuffer]",xb="[object DataView]",Sb="[object Float32Array]",Ab="[object Float64Array]",Ob="[object Int8Array]",qb="[object Int16Array]",Cb="[object Int32Array]",Eb="[object Uint8Array]",Ib="[object Uint8ClampedArray]",Tb="[object Uint16Array]",Pb="[object Uint32Array]",we={};we[Sb]=we[Ab]=we[Ob]=we[qb]=we[Cb]=we[Eb]=we[Ib]=we[Tb]=we[Pb]=!0;we[ub]=we[fb]=we[bb]=we[cb]=we[xb]=we[lb]=we[hb]=we[pb]=we[db]=we[mb]=we[gb]=we[vb]=we[yb]=we[_b]=we[wb]=!1;function Mb(r){return ob(r)&&ab(r.length)&&!!we[sb(r)]}hc.exports=Mb});var bi=g((Lt,tt)=>{var Rb=gn(),dc=typeof Lt=="object"&&Lt&&!Lt.nodeType&&Lt,jt=dc&&typeof tt=="object"&&tt&&!tt.nodeType&&tt,Lb=jt&&jt.exports===dc,Pn=Lb&&Rb.process,jb=function(){try{var r=jt&&jt.require&&jt.require("util").types;return r||Pn&&Pn.binding&&Pn.binding("util")}catch(e){}}();tt.exports=jb});var Nt=g((KT,vc)=>{var Nb=pc(),Ub=Tt(),mc=bi(),gc=mc&&mc.isTypedArray,Db=gc?Ub(gc):Nb;vc.exports=Db});var Mn=g((JT,yc)=>{var Fb=ac(),Bb=Mt(),kb=ke(),$b=rt(),zb=hi(),Wb=Nt(),Hb=Object.prototype,Gb=Hb.hasOwnProperty;function Kb(r,e){var t=kb(r),i=!t&&Bb(r),n=!t&&!i&&$b(r),s=!t&&!i&&!n&&Wb(r),a=t||i||n||s,u=a?Fb(r.length,String):[],o=u.length;for(var l in r)(e||Gb.call(r,l))&&!(a&&(l=="length"||n&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||zb(l,o)))&&u.push(l);return u}yc.exports=Kb});var Ut=g((VT,_c)=>{var Jb=Object.prototype;function Vb(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Jb;return r===t}_c.exports=Vb});var Rn=g((YT,wc)=>{function Yb(r,e){return function(t){return r(e(t))}}wc.exports=Yb});var xc=g((XT,bc)=>{var Xb=Rn(),Zb=Xb(Object.keys,Object);bc.exports=Zb});var Ln=g((ZT,Sc)=>{var Qb=Ut(),e0=xc(),r0=Object.prototype,t0=r0.hasOwnProperty;function i0(r){if(!Qb(r))return e0(r);var e=[];for(var t in Object(r))t0.call(r,t)&&t!="constructor"&&e.push(t);return e}Sc.exports=i0});var Dt=g((QT,Ac)=>{var n0=Mn(),s0=Ln(),a0=Qr();function o0(r){return a0(r)?n0(r):s0(r)}Ac.exports=o0});var qc=g((e1,Oc)=>{var u0=Tn(),f0=Dt();function c0(r,e){return r&&u0(r,e,f0)}Oc.exports=c0});var Ec=g((r1,Cc)=>{var l0=vi();function h0(r){return typeof r=="function"?r:l0}Cc.exports=h0});var Tc=g((t1,Ic)=>{var p0=qc(),d0=Ec();function m0(r,e){return r&&p0(r,d0(e))}Ic.exports=m0});var Mc=g((i1,Pc)=>{var g0=dr(),v0=ke(),y0=Ye(),_0="[object String]";function w0(r){return typeof r=="string"||!v0(r)&&y0(r)&&g0(r)==_0}Pc.exports=w0});var Lc=g((n1,Rc)=>{var b0=mr(),x0=Ve(),S0=b0(x0,"DataView");Rc.exports=S0});var Nc=g((s1,jc)=>{var A0=mr(),O0=Ve(),q0=A0(O0,"Promise");jc.exports=q0});var Dc=g((a1,Uc)=>{var C0=mr(),E0=Ve(),I0=C0(E0,"WeakMap");Uc.exports=I0});var nt=g((o1,Hc)=>{var jn=Lc(),Nn=oi(),Un=Nc(),Dn=An(),Fn=Dc(),Wc=dr(),it=yn(),Fc="[object Map]",T0="[object Object]",Bc="[object Promise]",kc="[object Set]",$c="[object WeakMap]",zc="[object DataView]",P0=it(jn),M0=it(Nn),R0=it(Un),L0=it(Dn),j0=it(Fn),Rr=Wc;(jn&&Rr(new jn(new ArrayBuffer(1)))!=zc||Nn&&Rr(new Nn)!=Fc||Un&&Rr(Un.resolve())!=Bc||Dn&&Rr(new Dn)!=kc||Fn&&Rr(new Fn)!=$c)&&(Rr=function(r){var e=Wc(r),t=e==T0?r.constructor:void 0,i=t?it(t):"";if(i)switch(i){case P0:return zc;case M0:return Fc;case R0:return Bc;case L0:return kc;case j0:return $c}return e});Hc.exports=Rr});var Kc=g((u1,Gc)=>{var N0=Ln(),U0=nt(),D0=Mt(),F0=ke(),B0=Qr(),k0=rt(),$0=Ut(),z0=Nt(),W0="[object Map]",H0="[object Set]",G0=Object.prototype,K0=G0.hasOwnProperty;function J0(r){if(r==null)return!0;if(B0(r)&&(F0(r)||typeof r=="string"||typeof r.splice=="function"||k0(r)||z0(r)||D0(r)))return!r.length;var e=U0(r);if(e==W0||e==H0)return!r.size;if($0(r))return!N0(r).length;for(var t in r)if(K0.call(r,t))return!1;return!0}Gc.exports=J0});var Vc=g((f1,Jc)=>{var V0=qt();function Y0(){this.__data__=new V0,this.size=0}Jc.exports=Y0});var Xc=g((c1,Yc)=>{function X0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Yc.exports=X0});var Qc=g((l1,Zc)=>{function Z0(r){return this.__data__.get(r)}Zc.exports=Z0});var rl=g((h1,el)=>{function Q0(r){return this.__data__.has(r)}el.exports=Q0});var il=g((p1,tl)=>{var ex=qt(),rx=oi(),tx=ui(),ix=200;function nx(r,e){var t=this.__data__;if(t instanceof ex){var i=t.__data__;if(!rx||i.length<ix-1)return i.push([r,e]),this.size=++t.size,this;t=this.__data__=new tx(i)}return t.set(r,e),this.size=t.size,this}tl.exports=nx});var xi=g((d1,nl)=>{var sx=qt(),ax=Vc(),ox=Xc(),ux=Qc(),fx=rl(),cx=il();function st(r){var e=this.__data__=new sx(r);this.size=e.size}st.prototype.clear=ax;st.prototype.delete=ox;st.prototype.get=ux;st.prototype.has=fx;st.prototype.set=cx;nl.exports=st});var al=g((m1,sl)=>{function lx(r,e){for(var t=-1,i=r==null?0:r.length;++t<i;)if(e(r[t],t,r))return!0;return!1}sl.exports=lx});var Bn=g((g1,ol)=>{var hx=di(),px=al(),dx=mi(),mx=1,gx=2;function vx(r,e,t,i,n,s){var a=t&mx,u=r.length,o=e.length;if(u!=o&&!(a&&o>u))return!1;var l=s.get(r),p=s.get(e);if(l&&p)return l==e&&p==r;var b=-1,_=!0,q=t&gx?new hx:void 0;for(s.set(r,e),s.set(e,r);++b<u;){var y=r[b],E=e[b];if(i)var H=a?i(E,y,b,e,r,s):i(y,E,b,r,e,s);if(H!==void 0){if(H)continue;_=!1;break}if(q){if(!px(e,function(K,Q){if(!dx(q,Q)&&(y===K||n(y,K,t,i,s)))return q.push(Q)})){_=!1;break}}else if(!(y===E||n(y,E,t,i,s))){_=!1;break}}return s.delete(r),s.delete(e),_}ol.exports=vx});var kn=g((v1,ul)=>{var yx=Ve(),_x=yx.Uint8Array;ul.exports=_x});var cl=g((y1,fl)=>{function wx(r){var e=-1,t=Array(r.size);return r.forEach(function(i,n){t[++e]=[n,i]}),t}fl.exports=wx});var ml=g((_1,dl)=>{var ll=Mr(),hl=kn(),bx=Yr(),xx=Bn(),Sx=cl(),Ax=gi(),Ox=1,qx=2,Cx="[object Boolean]",Ex="[object Date]",Ix="[object Error]",Tx="[object Map]",Px="[object Number]",Mx="[object RegExp]",Rx="[object Set]",Lx="[object String]",jx="[object Symbol]",Nx="[object ArrayBuffer]",Ux="[object DataView]",pl=ll?ll.prototype:void 0,$n=pl?pl.valueOf:void 0;function Dx(r,e,t,i,n,s,a){switch(t){case Ux:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case Nx:return!(r.byteLength!=e.byteLength||!s(new hl(r),new hl(e)));case Cx:case Ex:case Px:return bx(+r,+e);case Ix:return r.name==e.name&&r.message==e.message;case Mx:case Lx:return r==e+"";case Tx:var u=Sx;case Rx:var o=i&Ox;if(u||(u=Ax),r.size!=e.size&&!o)return!1;var l=a.get(r);if(l)return l==e;i|=qx,a.set(r,e);var p=xx(u(r),u(e),i,n,s,a);return a.delete(r),p;case jx:if($n)return $n.call(r)==$n.call(e)}return!1}dl.exports=Dx});var zn=g((w1,gl)=>{var Fx=Pt(),Bx=ke();function kx(r,e,t){var i=e(r);return Bx(r)?i:Fx(i,t(r))}gl.exports=kx});var yl=g((b1,vl)=>{function $x(r,e){for(var t=-1,i=r==null?0:r.length,n=0,s=[];++t<i;){var a=r[t];e(a,t,r)&&(s[n++]=a)}return s}vl.exports=$x});var Wn=g((x1,_l)=>{function zx(){return[]}_l.exports=zx});var Si=g((S1,bl)=>{var Wx=yl(),Hx=Wn(),Gx=Object.prototype,Kx=Gx.propertyIsEnumerable,wl=Object.getOwnPropertySymbols,Jx=wl?function(r){return r==null?[]:(r=Object(r),Wx(wl(r),function(e){return Kx.call(r,e)}))}:Hx;bl.exports=Jx});var Hn=g((A1,xl)=>{var Vx=zn(),Yx=Si(),Xx=Dt();function Zx(r){return Vx(r,Xx,Yx)}xl.exports=Zx});var Ol=g((O1,Al)=>{var Sl=Hn(),Qx=1,eS=Object.prototype,rS=eS.hasOwnProperty;function tS(r,e,t,i,n,s){var a=t&Qx,u=Sl(r),o=u.length,l=Sl(e),p=l.length;if(o!=p&&!a)return!1;for(var b=o;b--;){var _=u[b];if(!(a?_ in e:rS.call(e,_)))return!1}var q=s.get(r),y=s.get(e);if(q&&y)return q==e&&y==r;var E=!0;s.set(r,e),s.set(e,r);for(var H=a;++b<o;){_=u[b];var K=r[_],Q=e[_];if(i)var F=a?i(Q,K,_,e,r,s):i(K,Q,_,r,e,s);if(!(F===void 0?K===Q||n(K,Q,t,i,s):F)){E=!1;break}H||(H=_=="constructor")}if(E&&!H){var Z=r.constructor,te=e.constructor;Z!=te&&"constructor"in r&&"constructor"in e&&!(typeof Z=="function"&&Z instanceof Z&&typeof te=="function"&&te instanceof te)&&(E=!1)}return s.delete(r),s.delete(e),E}Al.exports=tS});var Rl=g((q1,Ml)=>{var Gn=xi(),iS=Bn(),nS=ml(),sS=Ol(),ql=nt(),Cl=ke(),El=rt(),aS=Nt(),oS=1,Il="[object Arguments]",Tl="[object Array]",Ai="[object Object]",uS=Object.prototype,Pl=uS.hasOwnProperty;function fS(r,e,t,i,n,s){var a=Cl(r),u=Cl(e),o=a?Tl:ql(r),l=u?Tl:ql(e);o=o==Il?Ai:o,l=l==Il?Ai:l;var p=o==Ai,b=l==Ai,_=o==l;if(_&&El(r)){if(!El(e))return!1;a=!0,p=!1}if(_&&!p)return s||(s=new Gn),a||aS(r)?iS(r,e,t,i,n,s):nS(r,e,o,t,i,n,s);if(!(t&oS)){var q=p&&Pl.call(r,"__wrapped__"),y=b&&Pl.call(e,"__wrapped__");if(q||y){var E=q?r.value():r,H=y?e.value():e;return s||(s=new Gn),n(E,H,t,i,s)}}return _?(s||(s=new Gn),sS(r,e,t,i,n,s)):!1}Ml.exports=fS});var Ul=g((C1,Nl)=>{var cS=Rl(),Ll=Ye();function jl(r,e,t,i,n){return r===e?!0:r==null||e==null||!Ll(r)&&!Ll(e)?r!==r&&e!==e:cS(r,e,t,i,jl,n)}Nl.exports=jl});var Fl=g((E1,Dl)=>{var lS=Ul();function hS(r,e){return lS(r,e)}Dl.exports=hS});var Kn=g((I1,Bl)=>{var pS=ci(),dS=Yr();function mS(r,e,t){(t!==void 0&&!dS(r[e],t)||t===void 0&&!(e in r))&&pS(r,e,t)}Bl.exports=mS});var Jn=g((Ft,at)=>{var gS=Ve(),Wl=typeof Ft=="object"&&Ft&&!Ft.nodeType&&Ft,kl=Wl&&typeof at=="object"&&at&&!at.nodeType&&at,vS=kl&&kl.exports===Wl,$l=vS?gS.Buffer:void 0,zl=$l?$l.allocUnsafe:void 0;function yS(r,e){if(e)return r.slice();var t=r.length,i=zl?zl(t):new r.constructor(t);return r.copy(i),i}at.exports=yS});var Oi=g((T1,Gl)=>{var Hl=kn();function _S(r){var e=new r.constructor(r.byteLength);return new Hl(e).set(new Hl(r)),e}Gl.exports=_S});var Vn=g((P1,Kl)=>{var wS=Oi();function bS(r,e){var t=e?wS(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}Kl.exports=bS});var qi=g((M1,Jl)=>{function xS(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t<i;)e[t]=r[t];return e}Jl.exports=xS});var Xl=g((R1,Yl)=>{var SS=Xe(),Vl=Object.create,AS=function(){function r(){}return function(e){if(!SS(e))return{};if(Vl)return Vl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Yl.exports=AS});var Ci=g((L1,Zl)=>{var OS=Rn(),qS=OS(Object.getPrototypeOf,Object);Zl.exports=qS});var Yn=g((j1,Ql)=>{var CS=Xl(),ES=Ci(),IS=Ut();function TS(r){return typeof r.constructor=="function"&&!IS(r)?CS(ES(r)):{}}Ql.exports=TS});var Xn=g((N1,rh)=>{var PS=dr(),MS=Ci(),RS=Ye(),LS="[object Object]",jS=Function.prototype,NS=Object.prototype,eh=jS.toString,US=NS.hasOwnProperty,DS=eh.call(Object);function FS(r){if(!RS(r)||PS(r)!=LS)return!1;var e=MS(r);if(e===null)return!0;var t=US.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&eh.call(t)==DS}rh.exports=FS});var Zn=g((U1,th)=>{function BS(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}th.exports=BS});var Lr=g((D1,ih)=>{var kS=li(),$S=ci();function zS(r,e,t,i){var n=!t;t||(t={});for(var s=-1,a=e.length;++s<a;){var u=e[s],o=i?i(t[u],r[u],u,t,r):void 0;o===void 0&&(o=r[u]),n?$S(t,u,o):kS(t,u,o)}return t}ih.exports=zS});var sh=g((F1,nh)=>{function WS(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}nh.exports=WS});var oh=g((B1,ah)=>{var HS=Xe(),GS=Ut(),KS=sh(),JS=Object.prototype,VS=JS.hasOwnProperty;function YS(r){if(!HS(r))return KS(r);var e=GS(r),t=[];for(var i in r)i=="constructor"&&(e||!VS.call(r,i))||t.push(i);return t}ah.exports=YS});var ot=g((k1,uh)=>{var XS=Mn(),ZS=oh(),QS=Qr();function eA(r){return QS(r)?XS(r,!0):ZS(r)}uh.exports=eA});var ch=g(($1,fh)=>{var rA=Lr(),tA=ot();function iA(r){return rA(r,tA(r))}fh.exports=iA});var gh=g((z1,mh)=>{var lh=Kn(),nA=Jn(),sA=Vn(),aA=qi(),oA=Yn(),hh=Mt(),ph=ke(),uA=_i(),fA=rt(),cA=ai(),lA=Xe(),hA=Xn(),pA=Nt(),dh=Zn(),dA=ch();function mA(r,e,t,i,n,s,a){var u=dh(r,t),o=dh(e,t),l=a.get(o);if(l){lh(r,t,l);return}var p=s?s(u,o,t+"",r,e,a):void 0,b=p===void 0;if(b){var _=ph(o),q=!_&&fA(o),y=!_&&!q&&pA(o);p=o,_||q||y?ph(u)?p=u:uA(u)?p=aA(u):q?(b=!1,p=nA(o,!0)):y?(b=!1,p=sA(o,!0)):p=[]:hA(o)||hh(o)?(p=u,hh(u)?p=dA(u):(!lA(u)||cA(u))&&(p=oA(o))):b=!1}b&&(a.set(o,p),n(p,o,i,s,a),a.delete(o)),lh(r,t,p)}mh.exports=mA});var _h=g((W1,yh)=>{var gA=xi(),vA=Kn(),yA=Tn(),_A=gh(),wA=Xe(),bA=ot(),xA=Zn();function vh(r,e,t,i,n){r!==e&&yA(e,function(s,a){if(n||(n=new gA),wA(s))_A(r,e,a,t,vh,i,n);else{var u=i?i(xA(r,a),s,a+"",r,e,n):void 0;u===void 0&&(u=s),vA(r,a,u)}},bA)}yh.exports=vh});var bh=g((H1,wh)=>{var SA=Yr(),AA=Qr(),OA=hi(),qA=Xe();function CA(r,e,t){if(!qA(t))return!1;var i=typeof e;return(i=="number"?AA(t)&&OA(e,t.length):i=="string"&&e in t)?SA(t[e],r):!1}wh.exports=CA});var Sh=g((G1,xh)=>{var EA=yi(),IA=bh();function TA(r){return EA(function(e,t){var i=-1,n=t.length,s=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(n--,s):void 0,a&&IA(t[0],t[1],a)&&(s=n<3?void 0:s,n=1),e=Object(e);++i<n;){var u=t[i];u&&r(e,u,i,s)}return e})}xh.exports=TA});var Oh=g((K1,Ah)=>{var PA=_h(),MA=Sh(),RA=MA(function(r,e,t){PA(r,e,t)});Ah.exports=RA});var Qn=g((J1,qh)=>{function LA(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}qh.exports=LA});var Eh=g((V1,Ch)=>{function jA(r,e){for(var t=-1,i=r==null?0:r.length;++t<i&&e(r[t],t,r)!==!1;);return r}Ch.exports=jA});var Th=g((Y1,Ih)=>{var NA=Lr(),UA=Dt();function DA(r,e){return r&&NA(e,UA(e),r)}Ih.exports=DA});var Mh=g((X1,Ph)=>{var FA=Lr(),BA=ot();function kA(r,e){return r&&FA(e,BA(e),r)}Ph.exports=kA});var Lh=g((Z1,Rh)=>{var $A=Lr(),zA=Si();function WA(r,e){return $A(r,zA(r),e)}Rh.exports=WA});var es=g((Q1,jh)=>{var HA=Pt(),GA=Ci(),KA=Si(),JA=Wn(),VA=Object.getOwnPropertySymbols,YA=VA?function(r){for(var e=[];r;)HA(e,KA(r)),r=GA(r);return e}:JA;jh.exports=YA});var Uh=g((eP,Nh)=>{var XA=Lr(),ZA=es();function QA(r,e){return XA(r,ZA(r),e)}Nh.exports=QA});var rs=g((rP,Dh)=>{var eO=zn(),rO=es(),tO=ot();function iO(r){return eO(r,tO,rO)}Dh.exports=iO});var Bh=g((tP,Fh)=>{var nO=Object.prototype,sO=nO.hasOwnProperty;function aO(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&sO.call(r,"index")&&(t.index=r.index,t.input=r.input),t}Fh.exports=aO});var $h=g((iP,kh)=>{var oO=Oi();function uO(r,e){var t=e?oO(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}kh.exports=uO});var Wh=g((nP,zh)=>{var fO=/\w*$/;function cO(r){var e=new r.constructor(r.source,fO.exec(r));return e.lastIndex=r.lastIndex,e}zh.exports=cO});var Vh=g((sP,Jh)=>{var Hh=Mr(),Gh=Hh?Hh.prototype:void 0,Kh=Gh?Gh.valueOf:void 0;function lO(r){return Kh?Object(Kh.call(r)):{}}Jh.exports=lO});var Xh=g((aP,Yh)=>{var hO=Oi(),pO=$h(),dO=Wh(),mO=Vh(),gO=Vn(),vO="[object Boolean]",yO="[object Date]",_O="[object Map]",wO="[object Number]",bO="[object RegExp]",xO="[object Set]",SO="[object String]",AO="[object Symbol]",OO="[object ArrayBuffer]",qO="[object DataView]",CO="[object Float32Array]",EO="[object Float64Array]",IO="[object Int8Array]",TO="[object Int16Array]",PO="[object Int32Array]",MO="[object Uint8Array]",RO="[object Uint8ClampedArray]",LO="[object Uint16Array]",jO="[object Uint32Array]";function NO(r,e,t){var i=r.constructor;switch(e){case OO:return hO(r);case vO:case yO:return new i(+r);case qO:return pO(r,t);case CO:case EO:case IO:case TO:case PO:case MO:case RO:case LO:case jO:return gO(r,t);case _O:return new i;case wO:case SO:return new i(r);case bO:return dO(r);case xO:return new i;case AO:return mO(r)}}Yh.exports=NO});var Qh=g((oP,Zh)=>{var UO=nt(),DO=Ye(),FO="[object Map]";function BO(r){return DO(r)&&UO(r)==FO}Zh.exports=BO});var ip=g((uP,tp)=>{var kO=Qh(),$O=Tt(),ep=bi(),rp=ep&&ep.isMap,zO=rp?$O(rp):kO;tp.exports=zO});var sp=g((fP,np)=>{var WO=nt(),HO=Ye(),GO="[object Set]";function KO(r){return HO(r)&&WO(r)==GO}np.exports=KO});var fp=g((cP,up)=>{var JO=sp(),VO=Tt(),ap=bi(),op=ap&&ap.isSet,YO=op?VO(op):JO;up.exports=YO});var dp=g((lP,pp)=>{var XO=xi(),ZO=Eh(),QO=li(),eq=Th(),rq=Mh(),tq=Jn(),iq=qi(),nq=Lh(),sq=Uh(),aq=Hn(),oq=rs(),uq=nt(),fq=Bh(),cq=Xh(),lq=Yn(),hq=ke(),pq=rt(),dq=ip(),mq=Xe(),gq=fp(),vq=Dt(),yq=ot(),_q=1,wq=2,bq=4,cp="[object Arguments]",xq="[object Array]",Sq="[object Boolean]",Aq="[object Date]",Oq="[object Error]",lp="[object Function]",qq="[object GeneratorFunction]",Cq="[object Map]",Eq="[object Number]",hp="[object Object]",Iq="[object RegExp]",Tq="[object Set]",Pq="[object String]",Mq="[object Symbol]",Rq="[object WeakMap]",Lq="[object ArrayBuffer]",jq="[object DataView]",Nq="[object Float32Array]",Uq="[object Float64Array]",Dq="[object Int8Array]",Fq="[object Int16Array]",Bq="[object Int32Array]",kq="[object Uint8Array]",$q="[object Uint8ClampedArray]",zq="[object Uint16Array]",Wq="[object Uint32Array]",_e={};_e[cp]=_e[xq]=_e[Lq]=_e[jq]=_e[Sq]=_e[Aq]=_e[Nq]=_e[Uq]=_e[Dq]=_e[Fq]=_e[Bq]=_e[Cq]=_e[Eq]=_e[hp]=_e[Iq]=_e[Tq]=_e[Pq]=_e[Mq]=_e[kq]=_e[$q]=_e[zq]=_e[Wq]=!0;_e[Oq]=_e[lp]=_e[Rq]=!1;function Ei(r,e,t,i,n,s){var a,u=e&_q,o=e&wq,l=e&bq;if(t&&(a=n?t(r,i,n,s):t(r)),a!==void 0)return a;if(!mq(r))return r;var p=hq(r);if(p){if(a=fq(r),!u)return iq(r,a)}else{var b=uq(r),_=b==lp||b==qq;if(pq(r))return tq(r,u);if(b==hp||b==cp||_&&!n){if(a=o||_?{}:lq(r),!u)return o?sq(r,rq(a,r)):nq(r,eq(a,r))}else{if(!_e[b])return n?r:{};a=cq(r,b,u)}}s||(s=new XO);var q=s.get(r);if(q)return q;s.set(r,a),gq(r)?r.forEach(function(H){a.add(Ei(H,e,t,H,r,s))}):dq(r)&&r.forEach(function(H,K){a.set(K,Ei(H,e,t,K,r,s))});var y=l?o?oq:aq:o?yq:vq,E=p?void 0:y(r);return ZO(E||r,function(H,K){E&&(K=H,H=r[K]),QO(a,K,Ei(H,e,t,K,r,s))}),a}pp.exports=Ei});var gp=g((hP,mp)=>{function Hq(r,e,t){var i=-1,n=r.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(n);++i<n;)s[i]=r[i+e];return s}mp.exports=Hq});var yp=g((pP,vp)=>{var Gq=wn(),Kq=gp();function Jq(r,e){return e.length<2?r:Gq(r,Kq(e,0,-1))}vp.exports=Jq});var wp=g((dP,_p)=>{var Vq=It(),Yq=Qn(),Xq=yp(),Zq=fi();function Qq(r,e){return e=Vq(e,r),r=Xq(r,e),r==null||delete r[Zq(Yq(e))]}_p.exports=Qq});var xp=g((mP,bp)=>{var eC=Xn();function rC(r){return eC(r)?void 0:r}bp.exports=rC});var Ap=g((gP,Sp)=>{var tC=wi();function iC(r){var e=r==null?0:r.length;return e?tC(r,1):[]}Sp.exports=iC});var qp=g((vP,Op)=>{var nC=Ap(),sC=Cn(),aC=En();function oC(r){return aC(sC(r,void 0,nC),r+"")}Op.exports=oC});var Ep=g((yP,Cp)=>{var uC=Et(),fC=dp(),cC=wp(),lC=It(),hC=Lr(),pC=xp(),dC=qp(),mC=rs(),gC=1,vC=2,yC=4,_C=dC(function(r,e){var t={};if(r==null)return t;var i=!1;e=uC(e,function(s){return s=lC(s,r),i||(i=s.length>1),s}),hC(r,mC(r),t),i&&(t=fC(t,gC|vC|yC,pC));for(var n=e.length;n--;)cC(t,e[n]);return t});Cp.exports=_C});var Tp=g((_P,Ip)=>{var wC=Pt(),bC=wi(),xC=qi(),SC=ke();function AC(){var r=arguments.length;if(!r)return[];for(var e=Array(r-1),t=arguments[0],i=r;i--;)e[i-1]=arguments[i];return wC(SC(t)?xC(t):[t],bC(e,1))}Ip.exports=AC});var Mp=g((wP,Pp)=>{Pp.exports=function(e){var t=function(te,O){var ee=te<<O|te>>>32-O;return ee},i=function(te){var O="",ee,G;for(ee=7;ee>=0;ee--)G=te>>>ee*4&15,O+=G.toString(16);return O},n,s,a,u=new Array(80),o=1732584193,l=4023233417,p=2562383102,b=271733878,_=3285377520,q,y,E,H,K,Q;e=unescape(encodeURIComponent(e));var F=e.length,Z=[];for(s=0;s<F-3;s+=4)a=e.charCodeAt(s)<<24|e.charCodeAt(s+1)<<16|e.charCodeAt(s+2)<<8|e.charCodeAt(s+3),Z.push(a);switch(F%4){case 0:s=2147483648;break;case 1:s=e.charCodeAt(F-1)<<24|8388608;break;case 2:s=e.charCodeAt(F-2)<<24|e.charCodeAt(F-1)<<16|32768;break;case 3:s=e.charCodeAt(F-3)<<24|e.charCodeAt(F-2)<<16|e.charCodeAt(F-1)<<8|128;break}for(Z.push(s);Z.length%16!==14;)Z.push(0);for(Z.push(F>>>29),Z.push(F<<3&4294967295),n=0;n<Z.length;n+=16){for(s=0;s<16;s++)u[s]=Z[n+s];for(s=16;s<=79;s++)u[s]=t(u[s-3]^u[s-8]^u[s-14]^u[s-16],1);for(q=o,y=l,E=p,H=b,K=_,s=0;s<=19;s++)Q=t(q,5)+(y&E|~y&H)+K+u[s]+1518500249&4294967295,K=H,H=E,E=t(y,30),y=q,q=Q;for(s=20;s<=39;s++)Q=t(q,5)+(y^E^H)+K+u[s]+1859775393&4294967295,K=H,H=E,E=t(y,30),y=q,q=Q;for(s=40;s<=59;s++)Q=t(q,5)+(y&E|y&H|E&H)+K+u[s]+2400959708&4294967295,K=H,H=E,E=t(y,30),y=q,q=Q;for(s=60;s<=79;s++)Q=t(q,5)+(y^E^H)+K+u[s]+3395469782&4294967295,K=H,H=E,E=t(y,30),y=q,q=Q;o=o+q&4294967295,l=l+y&4294967295,p=p+E&4294967295,b=b+H&4294967295,_=_+K&4294967295}return Q=i(o)+i(l)+i(p)+i(b)+i(_),Q.toLowerCase()}});var zp=g((bP,$p)=>{var Lp=Mp();function jp(r){return r.map(e=>e&&e.uri).filter(Boolean)}function us(r){return["memberSet","memberList","memberChoice"].find(e=>r[e])}function Rp(r){let e=us(r),t=r[e]?jp(r[e]):[];return{[t.length>1?e:"memberSet"]:t.map(i=>({uri:i}))}}function Np(r){let{from:e,to:t,type:i}=r,n={from:Rp(e||{}),to:Rp(t||{}),type:[i&&i[0]||"http://www.w3.org/2004/02/skos/core#mappingRelation"]};for(let s of["from","to"])if((n[s][us(n[s])]||[]).length==0){let a=r[s+"Scheme"];a&&a.uri&&(n[s+"Scheme"]={uri:a.uri})}return n}function Up(r){let{from:e,to:t}=r,i=[e,t].filter(Boolean).map(n=>jp(n[us(n)]||[]));return[].concat(...i).sort()}function Dp(r){let e=JSON.stringify(Np(r),["from","fromScheme","to","toScheme","type","memberSet","memberList","memberChoice","uri"]);return"urn:jskos:mapping:content:"+Lp(e+`
10
- `)}function Fp(r){let e=JSON.stringify(Up(r));return"urn:jskos:mapping:members:"+Lp(e+`
11
- `)}function os(r){let e=(r.identifier||[]).filter(t=>t&&!t.startsWith("urn:jskos:mapping:")).concat([Fp(r),Dp(r)]).sort();return Object.assign({},r,{identifier:e})}function Bp(r,e,t){r=r&&os(r),e=e&&os(e);let i=r&&r.identifier?r.identifier.find(s=>s.startsWith(t)):null,n=e&&e.identifier?e.identifier.find(s=>s.startsWith(t)):null;return i==n}function kp(r,e){return Bp(r,e,"urn:jskos:mapping:content:")}var qC=kp;function CC(r,e){return Bp(r,e,"urn:jskos:mapping:members:")}$p.exports={mappingContent:Np,mappingMembers:Up,mappingContentIdentifier:Dp,mappingMembersIdentifier:Fp,addMappingIdentifiers:os,compareMappings:kp,compareMappingContent:qC,compareMappingMembers:CC}});var fs=g((xP,Hp)=>{function Wp(r,e,t){var i=Array.prototype.slice,n=typeof Object.keys=="function"?Object.keys:function(l){var p=[];for(var b in l)p.push(b);return p},s=function(l,p){return l===p?!0:l instanceof Date&&p instanceof Date?l.getTime()===p.getTime():typeof l!="object"&&typeof p!="object"?l==p:o(l,p)};function a(l){return l==null}function u(l){return Object.prototype.toString.call(l)=="[object Arguments]"}function o(l,p){if(a(l)||a(p)||l.prototype!==p.prototype)return!1;if(u(l))return u(p)?(l=i.call(l),p=i.call(p),s(l,p)):!1;try{var b=n(l),_=n(p),q,y}catch(E){return!1}if(b.length!=_.length)return!1;for(b.sort(),_.sort(),y=b.length-1;y>=0;y--)if(b[y]!=_[y])return!1;for(y=b.length-1;y>=0;y--)if(q=b[y],t){let E=t(l[q],p[q],q);if(E===void 0&&(E=Wp(l[q],p[q])),!E)return!1}else if(!s(l[q],p[q]))return!1;return!0}return s(r,e)}Hp.exports={get:(r,e,t=void 0)=>{let i=s=>String.prototype.split.call(e,s).filter(Boolean).reduce((a,u)=>a!=null?a[u]:a,r),n=i(/[,[\]]+?/)||i(/[,[\].]+?/);return n===void 0||n===r?t:n},pick:(r,e)=>e.reduce((t,i)=>(r&&r.hasOwnProperty(i)&&(t[i]=r[i]),t),{}),forOwn:(r,e)=>{for(let t in r)r.hasOwnProperty(t)&&e(r[t],t)},isEqualWith:Wp,intersection:(...r)=>r.reduce((e,t)=>e.filter(i=>t.includes(i))),isObject:r=>typeof r=="object"&&r!==null,isString:r=>!!(r&&typeof r.valueOf()=="string"),union:(r,e)=>[...new Set([...r,...e])],unionWith:(r,e,t)=>[...r,...e].reduce((i,n)=>(i.findIndex(s=>t(s,n))!==-1||i.push(n),i),[]),omitMod:(r,e)=>{for(let t of e){typeof t=="string"&&(t=t.split("."));for(let i=0;i<t.length-1;i++)r=r[t[i]];delete r[t.pop()]}}}});var cs=g((SP,EC)=>{EC.exports=[{RELEVANCE:"very high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#closeMatch"}],definition:{de:["gleiche Bedeutung"],en:["same meaning"]},notation:["="],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u062A\u0627\u0645",be:"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u044C","be-tarask":"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",bn:"\u09B9\u09C1\u09AC\u09C1\u09B9\u09C1 \u09AE\u09BF\u09B2",ca:"equival\xE8ncia exacta",cs:"p\u0159esn\xE1 shoda",da:"exact match",de:"exakte \xDCbereinstimmung",en:"exact match",eo:"ekzakta ekvivalento",es:"equivalencia exacta",fi:"vastaava k\xE4site",fr:"\xE9quivalence exacte",gl:"correspondencia exacta",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05DE\u05D3\u05D5\u05D9\u05E7\u05EA",hu:"pontos egyez\xE9s",id:"sama persis",it:"corrispondenza esatta",ja:"\u5B8C\u5168\u4E00\u81F4",lv:"tie\u0161a sakrit\u012Bba",mk:"\u0442\u043E\u0447\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan tepat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062A\u06A4\u062A",nb:"eksakt samsvar",nl:"exacte match",nn:"eksakt samsvar",pl:"dok\u0142adne dopasowanie",pt:"correspond\xEAncia exata",ro:"echivalentul exact",ru:"\u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sq:"p\xEBrputhje e p\xEBrpikt\xEB",sr:"\u0442\u0430\u0447\u043D\u043E \u043F\u043E\u0434\u0443\u0434\u0430\u0440\u0430\u045A\u0435",sv:"exakt tr\xE4ff",tr:"tam e\u015Fle\u015Fme",uk:"\u0442\u043E\u0447\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u0456\u0441\u0442\u044C",zh:"\u7CBE\u78BA\u5339\u914D","zh-hans":"\u7CBE\u786E\u5339\u914D","zh-hant":"\u7CBE\u78BA\u5339\u914D"},SHORT:"exact",uri:"http://www.w3.org/2004/02/skos/core#exactMatch"},{RELEVANCE:"high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["in etwa gleiche Bedeutung"],en:["same general idea but not fully identical meaning"]},notation:["\u2248"],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u0642\u0631\u064A\u0628","be-tarask":"\u0431\u043B\u0456\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"equival\xE8ncia inexacta",de:"hohe \xDCbereinstimmung",en:"close match",eo:"proksima kongrua\u0135o",es:"equivalencia inexacta",fi:"l\xE4hes vastaava k\xE4site",fr:"quasi-\xE9quivalence",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E8\u05D5\u05D1\u05D4",it:"corrispondenza parziale",mk:"\u0431\u043B\u0438\u0441\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan dekat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062F\u06A9\u062A",nb:"n\xE6rt samsvar",nl:"nabije match",nn:"n\xE6rt samsvar",pl:"cz\u0119\u015Bciowe dopasowanie",pt:"correspond\xEAncia pr\xF3xima",ru:"\u0431\u043B\u0438\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0431\u043B\u0438\u0441\u043A\u043E \u043F\u043E\u043A\u043B\u0430\u043F\u0430\u045A\u0435",sv:"n\xE4ra matchning",tr:"yak\u0131n e\u015Fle\u015Fme","zh-hans":"\u9AD8\u5EA6\u5339\u914D"},SHORT:"close",uri:"http://www.w3.org/2004/02/skos/core#closeMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["umfassendere Bedeutung"],en:["broader meaning"]},notation:[">"],prefLabel:{"be-tarask":"\u0448\u044B\u0440\u043E\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 llunyana",de:"allgemeinere Bedeutung",en:"broad match",eo:"malstrikta kongruo",fi:"vastaava laajempi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E8\u05D7\u05D1\u05D4",it:"corrispondenza generica",ja:"\u90E8\u5206\u4E00\u81F4",mk:"\u043F\u043E\u0448\u0438\u0440\u043E\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"bredere samsvar",nl:"brede match",nn:"breitt samsvar",pl:"dopasowanie poj\u0119cia o szerszym znaczeniu","pt-br":"correspond\xEAncia gen\xE9rica",ru:"\u0431\u043E\u043B\u0435\u0435 \u0448\u0438\u0440\u043E\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0448\u0438\u0440\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"bred tr\xE4ff","zh-hans":"\u5E7F\u6CDB\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"}],SHORT:"broad",uri:"http://www.w3.org/2004/02/skos/core#broadMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{en:["more specific meaning"]},notation:["<"],prefLabel:{"be-tarask":"\u0432\u0443\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 estreta",de:"spezifischere Bedeutung",en:"narrow match",eo:"strikta kongruo",fi:"vastaava suppeampi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E6\u05E8\u05D4",it:"corrispondenza con termine pi\xF9 specifico",mk:"\u043F\u043E\u0442\u0435\u0441\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"smalere samsvar",nl:"nauwe match",nn:"snevert samsvar",pl:"dopasowanie poj\u0119cia o w\u0119\u017Cszym znaczeniu","pt-br":"correspond\xEAncia aproximada",ru:"\u0431\u043E\u043B\u0435\u0435 \u0443\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0443\u0436\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"smal tr\xE4ff",ur:"\u0646\u06CC\u0631\u0648 \u0645\u06CC\u0686","zh-hans":"\u6709\u9650\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#broadMatch"}],SHORT:"narrow",uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"},{RELEVANCE:"low",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["assoziative Verkn\xFCpfung unterschiedlicher Bedeutungen"],en:["associative link between meanings"]},notation:["~"],prefLabel:{"be-tarask":"\u0437\u044C\u0432\u044F\u0437\u0430\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"parella relacionada",de:"verwandte Bedeutung",en:"related match",eo:"rilata kongruo",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E9\u05D5\u05E8\u05D4",it:"corrispondenza correlata",lv:"saist\u012Bta sakrit\u012Bba",mk:"\u043F\u043E\u0432\u0440\u0437\u0430\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan berkaitan","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u0628\u0631\u06A9\u0627\u0621\u064A\u062A\u0646",nb:"relatert samsvar",nl:"gerelateerde match",pl:"dopasowanie poj\u0119cia o powi\u0105zanym znaczeniu",ru:"\u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",tr:"ili\u015Fkili benze\u015Fme",ur:"\u0645\u062A\u0639\u0644\u0642\u06C1 \u0645\u06CC\u0686",vec:"parente\u0142a re\u0142asionada","zh-hans":"\u5173\u8054\u5339\u914D"},SHORT:"related",uri:"http://www.w3.org/2004/02/skos/core#relatedMatch"},{RELEVANCE:"generic",definition:{de:["unbekannter Bedeutungszusammenhang"],en:["unknown type of link between meanings"]},notation:["\u2192"],prefLabel:{ar:"\u0646\u0648\u0639 \u0639\u0644\u0627\u0642\u0629 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",be:"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u044F","be-tarask":"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u044C\u043D\u044F",ca:"relaci\xF3 de mapatge",de:"allgemeine Mapping-Relation",en:"SKOS generic mapping relation",fr:"lien de correspondance SKOS",he:"\u05D9\u05D7\u05E1 \u05DE\u05D9\u05E4\u05D5\u05D9 \u05DB\u05DC\u05DC\u05D9",id:"relasi pemetaan",mk:"\u043F\u0440\u0435\u0441\u043B\u0438\u043A\u0443\u0432\u0430\u0447\u043A\u0438 \u043E\u0434\u043D\u043E\u0441",nb:"generell mappingrelasjon","pt-br":"rela\xE7\xE3o gen\xE9rica de mapeamento",sr:"\u0440\u0435\u043B\u0430\u0446\u0438\u0458\u0430 \u043C\u0430\u043F\u0438\u0440\u0430\u045A\u0430",sv:"mappnings relation",zh:"\u6620\u5C04\u95DC\u4FC2","zh-hant":"\u6620\u5C04\u95DC\u4FC2"},SHORT:"",uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}]});var Kp=g((AP,Gp)=>{var IC=cs(),Ti={Concept:{type:["http://www.w3.org/2004/02/skos/core#Concept"]},ConceptScheme:{type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"]},ConceptMapping:{type:IC.map(r=>r.uri)},ConceptOccurrence:{type:["http://purl.org/cld/cdtype/CatalogueOrIndex"]},Registry:{type:["http://www.w3.org/ns/dcat#Catalog"]},Distribution:{type:["http://www.w3.org/ns/dcat#Distribution"]},Concordance:{type:["http://rdfs.org/ns/void#Linkset","http://rdf-vocabulary.ddialliance.org/xkos#Correspondence"]},Resource:{},Item:{},ConceptBundle:{},Annotation:{type:["Annotation","http://www.w3.org/ns/oa#Annotation"]}},Ii=Object.keys(Ti).reduce((r,e)=>{for(let t of Ti[e].type||[])r[t]=e;return r},{});function TC(r,e=!1){var t;if(typeof r=="string"&&r)r in Ii?t=Ii[r]:(r=r.toLowerCase().replace(/s$/,""),t=Object.keys(Ti).find(i=>{let n=i.toLowerCase();if(n===r||n==="concept"+r)return!0}));else if(typeof r=="object"&&r.type){let i=Array.isArray(r.type)?r.type:[r.type];for(let n of i)if(n in Ii){t=Ii[n];break}}return e&&t?t.toLowerCase().replace(/^concept(.+)/,"$1"):t}Gp.exports={objectTypes:Ti,guessObjectType:TC}});var hs=g((OP,Jp)=>{var PC=/[\\^$.*+?()[\]{}|]/g,MC=r=>r.replace(PC,"\\$&"),RC=/[%ÄÖÜäöü ]/g,ls=class{constructor(e={}){if(Object.assign(this,e),this.notationPattern||(this.notationPattern=".+"),!this.uriPattern&&this.namespace){this.uriPattern="^"+MC(this.namespace);let t=this.notationPattern.replace(RC,encodeURI);this.uriPattern+="("+t+")$"}this.NOTATION_REGEX=RegExp("^"+this.notationPattern+"$"),this.uriPattern&&(this.URI_REGEX=RegExp(this.uriPattern))}isValidNotation(e){return this.NOTATION_REGEX.exec(e)}notationFromUri(e){if(this.URI_REGEX){let t=this.URI_REGEX.exec(e);if(t)return decodeURI(t[1])}}uriFromNotation(e){if(this.uriPattern)return e=encodeURI(e),this.uriPattern.replace(/^\^|\$$/g,"").replace(/\\/g,"").replace(/\(.*\)/,e)}conceptFromUri(e,t={}){let i=this.notationFromUri(e);if(i===void 0)return;let n={uri:e,notation:[i]};return t.inScheme&&(n.inScheme=[{uri:this.uri}]),t.topConcept&&(n.topConceptOf=[{uri:this.uri}]),n}conceptFromNotation(e,t){if(this.isValidNotation(e))return this.conceptFromUri(this.uriFromNotation(e),t)}};Jp.exports=ls});var ps=g((qP,Yp)=>{var LC=fs(),Pi={store:null,path:"",defaults:["en"],getLanguages:Vp,selectLanguage:jC};function Vp(){return LC.get(Pi.store,Pi.path)||Pi.defaults}function jC(r){if(!r)return null;for(let e of Vp())if(r[e])return e;for(let e of Object.keys(r))if(e!="-")return e;return null}Yp.exports=Pi});var sd=g((CP,nd)=>{var ie=fs(),NC=r=>/^[A-Z]*$/.test(r),ut=(r,e)=>e.split(".").reduce((t,i)=>t&&t[i]?t[i]:null,r),UC=r=>((r instanceof Array?r:[r]).forEach(t=>{t["@context"]="https://gbv.github.io/jskos/context.json"}),r),vs=r=>(Object.keys(r).forEach(e=>{NC(e)||e.startsWith("_")?delete r[e]:r[e]!=null&&typeof r[e]=="object"&&(r[e]=vs(r[e]))}),r),DC=vs,Mi=(r,e=[],t=!0)=>{e=e.concat(["ancestors","narrower","broader","mappings","memberList","TOPCONCEPTS","MAPPINGS","PROVIDER"]);let i=Array.isArray(r)?[]:{};for(let n in r)if(!(t&&n[0]=="_")){if(e.includes(n))if(r[n]&&Array.isArray(r[n])){r[n].length>0?i[n]=[null]:i[n]=[];continue}else{i[n]=null;continue}if(n=="inScheme"){let s=[];for(let a of r.inScheme){let u={uri:a.uri};a.notation&&(u.notation=a.notation),a.prefLabel&&(u.prefLabel=a.prefLabel),s.push(u)}i.inScheme=s;continue}r[n]!=null&&typeof r[n]=="object"?i[n]=Mi(r[n]):i[n]=r[n]}return i},FC=Mi,ds=r=>r?(r.uri?[r.uri]:[]).concat(r.identifier||[]):[],vr=(r,e)=>{if(r==null&&e==null)return!0;let t=s=>s.replace("http://").replace("https://"),i=ds(r).map(t),n=ds(e).map(t);return ie.intersection(i,n).length>0},BC=vr,kC=vr,$C=vr,zC=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#Concept")||ie.get(r,"inScheme")!=null||ie.get(r,"topConceptOf")!=null,Xp=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#ConceptScheme"),Zp=(r,e)=>{if(!r||!e)return!1;for(let t of e)if(vr(r,t))return!0;return!1},WC=Zp,HC=(r,e=!1)=>r.sort((t,i)=>{let n=ie.get(t,"notation[0]"),s=ie.get(i,"notation[0]");if(n&&s&&(n=n.toLowerCase(),s=s.toLowerCase()),e&&(n=parseFloat(n)||n,s=parseFloat(s)||s),(!n||!s||n==s)&&(n=t.uri,s=i.uri),n&&s){if(n>s)return 1;if(n<s)return-1}return 0}),GC=r=>{let e=["notation[0]",["prefLabel.de","prefLabel.en"],"uri"];return r.sort((t,i)=>{for(let n of e){let s,a;if(Array.isArray(n))for(let u of n)s=s||ie.get(t,u),a=a||ie.get(i,u);else s=ie.get(t,n),a=ie.get(i,n);if(s!=null&&a!=null){if(s=s.toLowerCase(),a=a.toLowerCase(),s>a)return 1;if(s<a)return-1}}return 0})},KC=r=>{let e=ie.pick(Mi(r),["from","to","fromScheme","toScheme","creator","contributor","type","created","modified","note","identifier","uri","partOf","mappingRelevance"]);for(let t of[e.from,e.to])ie.forOwn(t,(i,n)=>{let s=[];for(let a of i)s.push(ie.pick(a,["uri","notation"]));t[n]=s});return e.fromScheme&&(e.fromScheme=ie.pick(e.fromScheme,["uri","notation"])),e.toScheme&&(e.toScheme=ie.pick(e.toScheme,["uri","notation"])),e.partOf&&(e.partOf=e.partOf.map(t=>ie.pick(t,["uri"]))),e},Qp=cs(),$t=function(r){for(let e of Qp)if(r==e.uri)return e;return null},ed=$t("http://www.w3.org/2004/02/skos/core#mappingRelation"),JC=function(r,e=ed){let t;return Array.isArray(r)&&r.length>0?t=r[0]:t=r,$t(t)||e},VC=(r,e={})=>{let{language:t}=e,i=ut(r,"from.memberSet.0.notation.0"),n=ut(r,"to.memberSet.0.notation.0");i=i!==null?i:"",n=n!==null?n:"";let s=$t(ut(r,"type.0"));s=s?s.SHORT:"";let a=ft(ut(r,"from.memberSet.0"),{language:t,fallbackToUri:!1})||"",u=ft(ut(r,"to.memberSet.0"),{language:t,fallbackToUri:!1})||"",o=ft(ut(r,"creator.0"),{language:t,fallbackToUri:!1})||"";return{fromNotation:i,toNotation:n,fromLabel:a,toLabel:u,type:s,creator:o}},YC=(r={})=>{let e=r.delimiter||",",t=r.quoteChar||'"',i=r.lineTerminator||`
12
- `,n=t+t,s=a=>t+(a==null?"":a.split(t).join(n))+t;return a=>a.map(s).join(e)+i},jr=(r,e)=>{let t=[];for(let i of["from","to"])(e==null||i===e)&&(t=t.concat(ie.get(r,`${i}.memberSet`)||ie.get(r,`${i}.memberChoice`)||ie.get(r,`${i}.memberList`)||[]));return t.filter(i=>i!=null)},XC=(r={})=>{let e=YC(r),t=r.language||"en";r.type==null&&(r.type=!0);let i=a=>{a=a||[];let u=[];for(let o of["from","to"]){r.schemes&&u.push(`${o}Scheme`);let l=Math.max(...a.map(p=>jr(p,o).length),1);for(let p=0;p<l;p+=1)u.push(`${o}Notation${p?p+1:""}`),r.labels&&u.push(`${o}Label${p?p+1:""}`)}return r.type&&u.push("type"),r.creator&&u.push("creator"),e(u)},n=(a,u={})=>{let o=[];for(let l of["from","to"]){r.schemes&&o.push(ie.get(a,`${l}Scheme.notation[0]`,""));let p=jr(a,l),b=u[`${l}Count`];b==null&&(b=p.length),b=Math.max(b,1);for(let _=0;_<b;_+=1)o.push(ie.get(p[_],"notation[0]","")),r.labels&&o.push(ft(p[_],{language:t,fallbackToUri:!1}))}return r.type&&o.push(ie.get($t(ie.get(a,"type[0]")),"SHORT","")),r.creator&&o.push(ft(ie.get(a,"creator[0]"),{language:t,fallbackToUri:!1})),e(o)};return{header:i,fromMapping:n,fromMappings:(a,u={header:!0})=>{let o="";u.header&&(o+=i(a));let l={fromCount:Math.max(...a.map(p=>jr(p,"from").length)),toCount:Math.max(...a.map(p=>jr(p,"to").length))};for(let p of a)o+=n(p,l);return o}}};function ZC(r,e){return ie.isEqualWith(r,e,(t,i,n)=>{let s={[n]:t},a={[n]:i};if(n=="from"||n=="to")return ie.isEqualWith(Object.getOwnPropertyNames(ie.get(t,n,{})),Object.getOwnPropertyNames(ie.get(i,n,{})))?ie.isEqualWith(jr(s,n),jr(a,n),(u,o,l)=>{if(l!=null)return vr(u,o)}):!1;if(n=="fromScheme"||n=="toScheme")return vr(t,i)})}var{objectTypes:QC,guessObjectType:ms}=Kp(),eE=(r,e)=>{let t=ms(r),i=ms(e);return!(t&&i&&t!=i)},rd=r=>{Array.isArray(r)&&r.sort((e,t)=>e===null?1:t===null?-1:0)},td=(r,e)=>(!r||!e||((Array.isArray(r.identifier)||Array.isArray(e.identifier))&&(r.identifier=ie.union(r.identifier||[],e.identifier||[])),!r.uri&&e.uri&&(r.uri=e.uri),r.uri&&e.uri&&r.uri!=e.uri&&!(r.identifier||[]).includes(e.uri)&&(r.identifier=(r.identifier||[]).concat([e.uri])),Array.isArray(r.identifier)&&r.uri&&(r.identifier=r.identifier.filter(t=>t!==r.uri)),(r.identifier||[]).length==0&&delete r.identifier,rd(r.identifier)),r),id=(r,e,t)=>{if(!r||!e)return r||e;t=t||{};let i=t._path||"",n=t.detectMismatch||[],s=t.skipPaths||[],a={};return ie.forOwn(r,(u,o)=>{if(!s.includes(i+o))if(Array.isArray(u)&&Array.isArray(e[o]))a[o]=ie.unionWith(u,e[o],(l,p)=>ie.isObject(l)&&ie.isObject(p)?vr(l,p):l===p),rd(a[o]);else if(ie.isObject(u)&&ie.isObject(e[o]))a[o]=id(u,e[o],Object.assign({_path:`${i}${o}.`},t));else{if(u&&e[o]&&n.includes(i+o)&&!ie.isEqualWith(u,e[o]))throw new Error("Property mismatch in "+i+o);a[o]=u}}),ie.forOwn(e,(u,o)=>{r[o]||(a[o]=u)}),i==""&&ie.omitMod(a,s),t.mergeUris&&td(a,e),a},gs=r=>Array.isArray(r)?r.map(e=>gs(e)):ie.isObject(r)?(ie.forOwn(r,(e,t)=>{r[t]=gs(e)}),r):ie.isString(r)?r.normalize():r,rE=r=>{var e=/^[A-Za-z][A-Za-z0-9+\-.]*:(?:\/\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\.[A-Za-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\?(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$/;return r.match(e)!==null},tE={mappingsByConcepts:(r,e,t)=>{let i=["memberSet","memberList","memberChoice"],n,s;for(let a of i)n=n||ie.get(r,t+"."+a+"[0].notation[0]"),s=s||ie.get(e,t+"."+a+"[0].notation[0]");return n==null||n<s?-1:s==null||n>s?1:0}},iE=(r,e)=>!r||!e?!1:[r.uri].concat(Object.values(r.identities||{}).map(t=>t.uri)).filter(t=>t!=null).includes(ie.get(e,"creator[0].uri")),nE=hs(),sE=ps();function aE(r,e){let t;if(r&&r.notation&&r.notation.length)t=r.notation[0],(Xp(r)||e=="scheme")&&(t=t.toUpperCase());else if(r&&r.inScheme&&r.inScheme[0]&&r.uri)try{t=new nE(r&&r.inScheme&&r.inScheme[0]).notationFromUri(r.uri)}catch(i){}return t||""}function ys(r,e,{language:t}={}){let i=r&&e?r[e]:r;return i&&(i[t]||(t=sE.selectLanguage(i),t))?i[t]:null}function ft(r,e={}){e=e||{};let t=e.fallbackToUri==null?!0:e.fallbackToUri;return ie.get(r,`prefLabel.${e.language}`)||ys(r,"prefLabel",e)||(t&&r&&r.uri?r.uri:"")}function oE(r,e={}){e=e||{};let t=ie.get(r,`definition.${e.language}`)||ys(r,"definition",e)||[];return ie.isString(t)&&(t=[t]),t}function uE(r){return ie.get(r,"stored",ie.get(r,"constructor.stored",ie.get(r,"provider.constructor.stored",!1)))}function fE(r){return ie.isString(r.creator)?r.creator:r.creator&&r.creator.id}function cE(r){return ie.get(r,"creator.name")||""}function lE(r,e){return!!(r&&ie.isString(r.creator)?e&&e.includes(r.creator):e&&r.creator&&e.includes(r.creator.id))}nd.exports={addContext:UC,clean:vs,cleanJSKOS:DC,copyDeep:Mi,deepCopy:FC,getAllUris:ds,compare:vr,compareObjects:BC,compareSchemes:kC,compareConcepts:$C,isConcept:zC,isScheme:Xp,isContainedIn:Zp,isSchemeInList:WC,sortConcepts:HC,sortSchemes:GC,minifyMapping:KC,mappingTypes:Qp,mappingTypeByUri:$t,mappingTypeByType:JC,flattenMapping:VC,mappingCSV:XC,defaultMappingType:ed,conceptsOfMapping:jr,compareMappingsDeep:ZC,objectTypes:QC,guessObjectType:ms,matchObjectTypes:eE,mergeUris:td,merge:id,normalize:gs,isValidUri:rE,compareFunctions:tE,userOwnsMapping:iE,notation:aE,languageMapContent:ys,prefLabel:ft,definition:oE,mappingRegistryIsStored:uE,annotationCreatorUri:fE,annotationCreatorName:cE,annotationCreatorMatches:lE}});var He=g((EP,ad)=>{var hE=zp(),pE=sd(),dE=hs(),mE=ps();ad.exports=Object.assign({ConceptScheme:dE,languagePreference:mE},hE,pE)});var ud=g((od,ws)=>{(function(r){if(typeof od=="object"&&typeof ws!="undefined")ws.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function i(n,s,a){function u(p,b){if(!s[p]){if(!n[p]){var _=typeof gt=="function"&&gt;if(!b&&_)return _(p,!0);if(o)return o(p,!0);var q=new Error("Cannot find module '"+p+"'");throw q.code="MODULE_NOT_FOUND",q}var y=s[p]={exports:{}};n[p][0].call(y.exports,function(E){var H=n[p][1][E];return u(H||E)},y,y.exports,i,n,s,a)}return s[p].exports}for(var o=typeof gt=="function"&&gt,l=0;l<a.length;l++)u(a[l]);return u}({1:[function(i,n,s){(function(a){"use strict";var u=a.MutationObserver||a.WebKitMutationObserver,o;if(u){var l=0,p=new u(E),b=a.document.createTextNode("");p.observe(b,{characterData:!0}),o=function(){b.data=l=++l%2}}else if(!a.setImmediate&&typeof a.MessageChannel!="undefined"){var _=new a.MessageChannel;_.port1.onmessage=E,o=function(){_.port2.postMessage(0)}}else"document"in a&&"onreadystatechange"in a.document.createElement("script")?o=function(){var K=a.document.createElement("script");K.onreadystatechange=function(){E(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},a.document.documentElement.appendChild(K)}:o=function(){setTimeout(E,0)};var q,y=[];function E(){q=!0;for(var K,Q,F=y.length;F;){for(Q=y,y=[],K=-1;++K<F;)Q[K]();F=y.length}q=!1}n.exports=H;function H(K){y.push(K)===1&&!q&&o()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(i,n,s){"use strict";var a=i(1);function u(){}var o={},l=["REJECTED"],p=["FULFILLED"],b=["PENDING"];n.exports=_;function _(O){if(typeof O!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,O!==u&&H(this,O)}_.prototype.catch=function(O){return this.then(null,O)},_.prototype.then=function(O,ee){if(typeof O!="function"&&this.state===p||typeof ee!="function"&&this.state===l)return this;var G=new this.constructor(u);if(this.state!==b){var de=this.state===p?O:ee;y(G,de,this.outcome)}else this.queue.push(new q(G,O,ee));return G};function q(O,ee,G){this.promise=O,typeof ee=="function"&&(this.onFulfilled=ee,this.callFulfilled=this.otherCallFulfilled),typeof G=="function"&&(this.onRejected=G,this.callRejected=this.otherCallRejected)}q.prototype.callFulfilled=function(O){o.resolve(this.promise,O)},q.prototype.otherCallFulfilled=function(O){y(this.promise,this.onFulfilled,O)},q.prototype.callRejected=function(O){o.reject(this.promise,O)},q.prototype.otherCallRejected=function(O){y(this.promise,this.onRejected,O)};function y(O,ee,G){a(function(){var de;try{de=ee(G)}catch(qe){return o.reject(O,qe)}de===O?o.reject(O,new TypeError("Cannot resolve promise with itself")):o.resolve(O,de)})}o.resolve=function(O,ee){var G=K(E,ee);if(G.status==="error")return o.reject(O,G.value);var de=G.value;if(de)H(O,de);else{O.state=p,O.outcome=ee;for(var qe=-1,ve=O.queue.length;++qe<ve;)O.queue[qe].callFulfilled(ee)}return O},o.reject=function(O,ee){O.state=l,O.outcome=ee;for(var G=-1,de=O.queue.length;++G<de;)O.queue[G].callRejected(ee);return O};function E(O){var ee=O&&O.then;if(O&&(typeof O=="object"||typeof O=="function")&&typeof ee=="function")return function(){ee.apply(O,arguments)}}function H(O,ee){var G=!1;function de(Te){G||(G=!0,o.reject(O,Te))}function qe(Te){G||(G=!0,o.resolve(O,Te))}function ve(){ee(qe,de)}var Ne=K(ve);Ne.status==="error"&&de(Ne.value)}function K(O,ee){var G={};try{G.value=O(ee),G.status="success"}catch(de){G.status="error",G.value=de}return G}_.resolve=Q;function Q(O){return O instanceof this?O:o.resolve(new this(u),O)}_.reject=F;function F(O){var ee=new this(u);return o.reject(ee,O)}_.all=Z;function Z(O){var ee=this;if(Object.prototype.toString.call(O)!=="[object Array]")return this.reject(new TypeError("must be an array"));var G=O.length,de=!1;if(!G)return this.resolve([]);for(var qe=new Array(G),ve=0,Ne=-1,Te=new this(u);++Ne<G;)Ke(O[Ne],Ne);return Te;function Ke(cr,Er){ee.resolve(cr).then(ze,function(lr){de||(de=!0,o.reject(Te,lr))});function ze(lr){qe[Er]=lr,++ve===G&&!de&&(de=!0,o.resolve(Te,qe))}}}_.race=te;function te(O){var ee=this;if(Object.prototype.toString.call(O)!=="[object Array]")return this.reject(new TypeError("must be an array"));var G=O.length,de=!1;if(!G)return this.resolve([]);for(var qe=-1,ve=new this(u);++qe<G;)Ne(O[qe]);return ve;function Ne(Te){ee.resolve(Te).then(function(Ke){de||(de=!0,o.resolve(ve,Ke))},function(Ke){de||(de=!0,o.reject(ve,Ke))})}}},{1:1}],3:[function(i,n,s){(function(a){"use strict";typeof a.Promise!="function"&&(a.Promise=i(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(i,n,s){"use strict";var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function u(f,v){if(!(f instanceof v))throw new TypeError("Cannot call a class as a function")}function o(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(f){return}}var l=o();function p(){try{if(!l||!l.open)return!1;var f=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),v=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!f||v)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(c){return!1}}function b(f,v){f=f||[],v=v||{};try{return new Blob(f,v)}catch(w){if(w.name!=="TypeError")throw w;for(var c=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,x=new c,S=0;S<f.length;S+=1)x.append(f[S]);return x.getBlob(v.type)}}typeof Promise=="undefined"&&i(3);var _=Promise;function q(f,v){v&&f.then(function(c){v(null,c)},function(c){v(c)})}function y(f,v,c){typeof v=="function"&&f.then(v),typeof c=="function"&&f.catch(c)}function E(f){return typeof f!="string"&&(console.warn(f+" used as a key, but it is not a string."),f=String(f)),f}function H(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var K="local-forage-detect-blob-support",Q=void 0,F={},Z=Object.prototype.toString,te="readonly",O="readwrite";function ee(f){for(var v=f.length,c=new ArrayBuffer(v),x=new Uint8Array(c),S=0;S<v;S++)x[S]=f.charCodeAt(S);return c}function G(f){return new _(function(v){var c=f.transaction(K,O),x=b([""]);c.objectStore(K).put(x,"key"),c.onabort=function(S){S.preventDefault(),S.stopPropagation(),v(!1)},c.oncomplete=function(){var S=navigator.userAgent.match(/Chrome\/(\d+)/),w=navigator.userAgent.match(/Edge\//);v(w||!S||parseInt(S[1],10)>=43)}}).catch(function(){return!1})}function de(f){return typeof Q=="boolean"?_.resolve(Q):G(f).then(function(v){return Q=v,Q})}function qe(f){var v=F[f.name],c={};c.promise=new _(function(x,S){c.resolve=x,c.reject=S}),v.deferredOperations.push(c),v.dbReady?v.dbReady=v.dbReady.then(function(){return c.promise}):v.dbReady=c.promise}function ve(f){var v=F[f.name],c=v.deferredOperations.pop();if(c)return c.resolve(),c.promise}function Ne(f,v){var c=F[f.name],x=c.deferredOperations.pop();if(x)return x.reject(v),x.promise}function Te(f,v){return new _(function(c,x){if(F[f.name]=F[f.name]||m(),f.db)if(v)qe(f),f.db.close();else return c(f.db);var S=[f.name];v&&S.push(f.version);var w=l.open.apply(l,S);v&&(w.onupgradeneeded=function(I){var L=w.result;try{L.createObjectStore(f.storeName),I.oldVersion<=1&&L.createObjectStore(K)}catch(U){if(U.name==="ConstraintError")console.warn('The database "'+f.name+'" has been upgraded from version '+I.oldVersion+" to version "+I.newVersion+', but the storage "'+f.storeName+'" already exists.');else throw U}}),w.onerror=function(I){I.preventDefault(),x(w.error)},w.onsuccess=function(){var I=w.result;I.onversionchange=function(L){L.target.close()},c(I),ve(f)}})}function Ke(f){return Te(f,!1)}function cr(f){return Te(f,!0)}function Er(f,v){if(!f.db)return!0;var c=!f.db.objectStoreNames.contains(f.storeName),x=f.version<f.db.version,S=f.version>f.db.version;if(x&&(f.version!==v&&console.warn('The database "'+f.name+`" can't be downgraded from version `+f.db.version+" to version "+f.version+"."),f.version=f.db.version),S||c){if(c){var w=f.db.version+1;w>f.version&&(f.version=w)}return!0}return!1}function ze(f){return new _(function(v,c){var x=new FileReader;x.onerror=c,x.onloadend=function(S){var w=btoa(S.target.result||"");v({__local_forage_encoded_blob:!0,data:w,type:f.type})},x.readAsBinaryString(f)})}function lr(f){var v=ee(atob(f.data));return b([v],{type:f.type})}function sr(f){return f&&f.__local_forage_encoded_blob}function ki(f){var v=this,c=v._initReady().then(function(){var x=F[v._dbInfo.name];if(x&&x.dbReady)return x.dbReady});return y(c,f,f),c}function h(f){qe(f);for(var v=F[f.name],c=v.forages,x=0;x<c.length;x++){var S=c[x];S._dbInfo.db&&(S._dbInfo.db.close(),S._dbInfo.db=null)}return f.db=null,Ke(f).then(function(w){return f.db=w,Er(f)?cr(f):w}).then(function(w){f.db=v.db=w;for(var I=0;I<c.length;I++)c[I]._dbInfo.db=w}).catch(function(w){throw Ne(f,w),w})}function d(f,v,c,x){x===void 0&&(x=1);try{var S=f.db.transaction(f.storeName,v);c(null,S)}catch(w){if(x>0&&(!f.db||w.name==="InvalidStateError"||w.name==="NotFoundError"))return _.resolve().then(function(){if(!f.db||w.name==="NotFoundError"&&!f.db.objectStoreNames.contains(f.storeName)&&f.version<=f.db.version)return f.db&&(f.version=f.db.version+1),cr(f)}).then(function(){return h(f).then(function(){d(f,v,c,x-1)})}).catch(c);c(w)}}function m(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function A(f){var v=this,c={db:null};if(f)for(var x in f)c[x]=f[x];var S=F[c.name];S||(S=m(),F[c.name]=S),S.forages.push(v),v._initReady||(v._initReady=v.ready,v.ready=ki);var w=[];function I(){return _.resolve()}for(var L=0;L<S.forages.length;L++){var U=S.forages[L];U!==v&&w.push(U._initReady().catch(I))}var D=S.forages.slice(0);return _.all(w).then(function(){return c.db=S.db,Ke(c)}).then(function(k){return c.db=k,Er(c,v._defaultConfig.version)?cr(c):k}).then(function(k){c.db=S.db=k,v._dbInfo=c;for(var X=0;X<D.length;X++){var ue=D[X];ue!==v&&(ue._dbInfo.db=c.db,ue._dbInfo.version=c.version)}})}function C(f,v){var c=this;f=E(f);var x=new _(function(S,w){c.ready().then(function(){d(c._dbInfo,te,function(I,L){if(I)return w(I);try{var U=L.objectStore(c._dbInfo.storeName),D=U.get(f);D.onsuccess=function(){var k=D.result;k===void 0&&(k=null),sr(k)&&(k=lr(k)),S(k)},D.onerror=function(){w(D.error)}}catch(k){w(k)}})}).catch(w)});return q(x,v),x}function T(f,v){var c=this,x=new _(function(S,w){c.ready().then(function(){d(c._dbInfo,te,function(I,L){if(I)return w(I);try{var U=L.objectStore(c._dbInfo.storeName),D=U.openCursor(),k=1;D.onsuccess=function(){var X=D.result;if(X){var ue=X.value;sr(ue)&&(ue=lr(ue));var pe=f(ue,X.key,k++);pe!==void 0?S(pe):X.continue()}else S()},D.onerror=function(){w(D.error)}}catch(X){w(X)}})}).catch(w)});return q(x,v),x}function M(f,v,c){var x=this;f=E(f);var S=new _(function(w,I){var L;x.ready().then(function(){return L=x._dbInfo,Z.call(v)==="[object Blob]"?de(L.db).then(function(U){return U?v:ze(v)}):v}).then(function(U){d(x._dbInfo,O,function(D,k){if(D)return I(D);try{var X=k.objectStore(x._dbInfo.storeName);U===null&&(U=void 0);var ue=X.put(U,f);k.oncomplete=function(){U===void 0&&(U=null),w(U)},k.onabort=k.onerror=function(){var pe=ue.error?ue.error:ue.transaction.error;I(pe)}}catch(pe){I(pe)}})}).catch(I)});return q(S,c),S}function P(f,v){var c=this;f=E(f);var x=new _(function(S,w){c.ready().then(function(){d(c._dbInfo,O,function(I,L){if(I)return w(I);try{var U=L.objectStore(c._dbInfo.storeName),D=U.delete(f);L.oncomplete=function(){S()},L.onerror=function(){w(D.error)},L.onabort=function(){var k=D.error?D.error:D.transaction.error;w(k)}}catch(k){w(k)}})}).catch(w)});return q(x,v),x}function N(f){var v=this,c=new _(function(x,S){v.ready().then(function(){d(v._dbInfo,O,function(w,I){if(w)return S(w);try{var L=I.objectStore(v._dbInfo.storeName),U=L.clear();I.oncomplete=function(){x()},I.onabort=I.onerror=function(){var D=U.error?U.error:U.transaction.error;S(D)}}catch(D){S(D)}})}).catch(S)});return q(c,f),c}function B(f){var v=this,c=new _(function(x,S){v.ready().then(function(){d(v._dbInfo,te,function(w,I){if(w)return S(w);try{var L=I.objectStore(v._dbInfo.storeName),U=L.count();U.onsuccess=function(){x(U.result)},U.onerror=function(){S(U.error)}}catch(D){S(D)}})}).catch(S)});return q(c,f),c}function Y(f,v){var c=this,x=new _(function(S,w){if(f<0){S(null);return}c.ready().then(function(){d(c._dbInfo,te,function(I,L){if(I)return w(I);try{var U=L.objectStore(c._dbInfo.storeName),D=!1,k=U.openKeyCursor();k.onsuccess=function(){var X=k.result;if(!X){S(null);return}f===0||D?S(X.key):(D=!0,X.advance(f))},k.onerror=function(){w(k.error)}}catch(X){w(X)}})}).catch(w)});return q(x,v),x}function V(f){var v=this,c=new _(function(x,S){v.ready().then(function(){d(v._dbInfo,te,function(w,I){if(w)return S(w);try{var L=I.objectStore(v._dbInfo.storeName),U=L.openKeyCursor(),D=[];U.onsuccess=function(){var k=U.result;if(!k){x(D);return}D.push(k.key),k.continue()},U.onerror=function(){S(U.error)}}catch(k){S(k)}})}).catch(S)});return q(c,f),c}function z(f,v){v=H.apply(this,arguments);var c=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||c.name,f.storeName=f.storeName||c.storeName);var x=this,S;if(!f.name)S=_.reject("Invalid arguments");else{var w=f.name===c.name&&x._dbInfo.db,I=w?_.resolve(x._dbInfo.db):Ke(f).then(function(L){var U=F[f.name],D=U.forages;U.db=L;for(var k=0;k<D.length;k++)D[k]._dbInfo.db=L;return L});f.storeName?S=I.then(function(L){if(!!L.objectStoreNames.contains(f.storeName)){var U=L.version+1;qe(f);var D=F[f.name],k=D.forages;L.close();for(var X=0;X<k.length;X++){var ue=k[X];ue._dbInfo.db=null,ue._dbInfo.version=U}var pe=new _(function(me,Oe){var Se=l.open(f.name,U);Se.onerror=function(Ge){var dt=Se.result;dt.close(),Oe(Ge)},Se.onupgradeneeded=function(){var Ge=Se.result;Ge.deleteObjectStore(f.storeName)},Se.onsuccess=function(){var Ge=Se.result;Ge.close(),me(Ge)}});return pe.then(function(me){D.db=me;for(var Oe=0;Oe<k.length;Oe++){var Se=k[Oe];Se._dbInfo.db=me,ve(Se._dbInfo)}}).catch(function(me){throw(Ne(f,me)||_.resolve()).catch(function(){}),me})}}):S=I.then(function(L){qe(f);var U=F[f.name],D=U.forages;L.close();for(var k=0;k<D.length;k++){var X=D[k];X._dbInfo.db=null}var ue=new _(function(pe,me){var Oe=l.deleteDatabase(f.name);Oe.onerror=function(){var Se=Oe.result;Se&&Se.close(),me(Oe.error)},Oe.onblocked=function(){console.warn('dropInstance blocked for database "'+f.name+'" until all open connections are closed')},Oe.onsuccess=function(){var Se=Oe.result;Se&&Se.close(),pe(Se)}});return ue.then(function(pe){U.db=pe;for(var me=0;me<D.length;me++){var Oe=D[me];ve(Oe._dbInfo)}}).catch(function(pe){throw(Ne(f,pe)||_.resolve()).catch(function(){}),pe})})}return q(S,v),S}var ae={_driver:"asyncStorage",_initStorage:A,_support:p(),iterate:T,getItem:C,setItem:M,removeItem:P,clear:N,length:B,key:Y,keys:V,dropInstance:z};function se(){return typeof openDatabase=="function"}var ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye="~~local_forage_type~",ge=/^~~local_forage_type~([^~]+)~/,ne="__lfsc__:",oe=ne.length,he="arbf",Ue="blob",Ce="si08",Pe="ui08",Je="uic8",$r="si16",Ir="si32",zr="ur16",Tr="ui32",Gt="fl32",Pr="fl64",Is=oe+he.length,Ts=Object.prototype.toString;function Ps(f){var v=f.length*.75,c=f.length,x,S=0,w,I,L,U;f[f.length-1]==="="&&(v--,f[f.length-2]==="="&&v--);var D=new ArrayBuffer(v),k=new Uint8Array(D);for(x=0;x<c;x+=4)w=ce.indexOf(f[x]),I=ce.indexOf(f[x+1]),L=ce.indexOf(f[x+2]),U=ce.indexOf(f[x+3]),k[S++]=w<<2|I>>4,k[S++]=(I&15)<<4|L>>2,k[S++]=(L&3)<<6|U&63;return D}function $i(f){var v=new Uint8Array(f),c="",x;for(x=0;x<v.length;x+=3)c+=ce[v[x]>>2],c+=ce[(v[x]&3)<<4|v[x+1]>>4],c+=ce[(v[x+1]&15)<<2|v[x+2]>>6],c+=ce[v[x+2]&63];return v.length%3===2?c=c.substring(0,c.length-1)+"=":v.length%3===1&&(c=c.substring(0,c.length-2)+"=="),c}function vd(f,v){var c="";if(f&&(c=Ts.call(f)),f&&(c==="[object ArrayBuffer]"||f.buffer&&Ts.call(f.buffer)==="[object ArrayBuffer]")){var x,S=ne;f instanceof ArrayBuffer?(x=f,S+=he):(x=f.buffer,c==="[object Int8Array]"?S+=Ce:c==="[object Uint8Array]"?S+=Pe:c==="[object Uint8ClampedArray]"?S+=Je:c==="[object Int16Array]"?S+=$r:c==="[object Uint16Array]"?S+=zr:c==="[object Int32Array]"?S+=Ir:c==="[object Uint32Array]"?S+=Tr:c==="[object Float32Array]"?S+=Gt:c==="[object Float64Array]"?S+=Pr:v(new Error("Failed to get type for BinaryArray"))),v(S+$i(x))}else if(c==="[object Blob]"){var w=new FileReader;w.onload=function(){var I=ye+f.type+"~"+$i(this.result);v(ne+Ue+I)},w.readAsArrayBuffer(f)}else try{v(JSON.stringify(f))}catch(I){console.error("Couldn't convert value into a JSON string: ",f),v(null,I)}}function yd(f){if(f.substring(0,oe)!==ne)return JSON.parse(f);var v=f.substring(Is),c=f.substring(oe,Is),x;if(c===Ue&&ge.test(v)){var S=v.match(ge);x=S[1],v=v.substring(S[0].length)}var w=Ps(v);switch(c){case he:return w;case Ue:return b([w],{type:x});case Ce:return new Int8Array(w);case Pe:return new Uint8Array(w);case Je:return new Uint8ClampedArray(w);case $r:return new Int16Array(w);case zr:return new Uint16Array(w);case Ir:return new Int32Array(w);case Tr:return new Uint32Array(w);case Gt:return new Float32Array(w);case Pr:return new Float64Array(w);default:throw new Error("Unkown type: "+c)}}var zi={serialize:vd,deserialize:yd,stringToBuffer:Ps,bufferToString:$i};function Ms(f,v,c,x){f.executeSql("CREATE TABLE IF NOT EXISTS "+v.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],c,x)}function _d(f){var v=this,c={db:null};if(f)for(var x in f)c[x]=typeof f[x]!="string"?f[x].toString():f[x];var S=new _(function(w,I){try{c.db=openDatabase(c.name,String(c.version),c.description,c.size)}catch(L){return I(L)}c.db.transaction(function(L){Ms(L,c,function(){v._dbInfo=c,w()},function(U,D){I(D)})},I)});return c.serializer=zi,S}function hr(f,v,c,x,S,w){f.executeSql(c,x,S,function(I,L){L.code===L.SYNTAX_ERR?I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[v.storeName],function(U,D){D.rows.length?w(U,L):Ms(U,v,function(){U.executeSql(c,x,S,w)},w)},w):w(I,L)},w)}function wd(f,v){var c=this;f=E(f);var x=new _(function(S,w){c.ready().then(function(){var I=c._dbInfo;I.db.transaction(function(L){hr(L,I,"SELECT * FROM "+I.storeName+" WHERE key = ? LIMIT 1",[f],function(U,D){var k=D.rows.length?D.rows.item(0).value:null;k&&(k=I.serializer.deserialize(k)),S(k)},function(U,D){w(D)})})}).catch(w)});return q(x,v),x}function bd(f,v){var c=this,x=new _(function(S,w){c.ready().then(function(){var I=c._dbInfo;I.db.transaction(function(L){hr(L,I,"SELECT * FROM "+I.storeName,[],function(U,D){for(var k=D.rows,X=k.length,ue=0;ue<X;ue++){var pe=k.item(ue),me=pe.value;if(me&&(me=I.serializer.deserialize(me)),me=f(me,pe.key,ue+1),me!==void 0){S(me);return}}S()},function(U,D){w(D)})})}).catch(w)});return q(x,v),x}function Rs(f,v,c,x){var S=this;f=E(f);var w=new _(function(I,L){S.ready().then(function(){v===void 0&&(v=null);var U=v,D=S._dbInfo;D.serializer.serialize(v,function(k,X){X?L(X):D.db.transaction(function(ue){hr(ue,D,"INSERT OR REPLACE INTO "+D.storeName+" (key, value) VALUES (?, ?)",[f,k],function(){I(U)},function(pe,me){L(me)})},function(ue){if(ue.code===ue.QUOTA_ERR){if(x>0){I(Rs.apply(S,[f,U,c,x-1]));return}L(ue)}})})}).catch(L)});return q(w,c),w}function xd(f,v,c){return Rs.apply(this,[f,v,c,1])}function Sd(f,v){var c=this;f=E(f);var x=new _(function(S,w){c.ready().then(function(){var I=c._dbInfo;I.db.transaction(function(L){hr(L,I,"DELETE FROM "+I.storeName+" WHERE key = ?",[f],function(){S()},function(U,D){w(D)})})}).catch(w)});return q(x,v),x}function Ad(f){var v=this,c=new _(function(x,S){v.ready().then(function(){var w=v._dbInfo;w.db.transaction(function(I){hr(I,w,"DELETE FROM "+w.storeName,[],function(){x()},function(L,U){S(U)})})}).catch(S)});return q(c,f),c}function Od(f){var v=this,c=new _(function(x,S){v.ready().then(function(){var w=v._dbInfo;w.db.transaction(function(I){hr(I,w,"SELECT COUNT(key) as c FROM "+w.storeName,[],function(L,U){var D=U.rows.item(0).c;x(D)},function(L,U){S(U)})})}).catch(S)});return q(c,f),c}function qd(f,v){var c=this,x=new _(function(S,w){c.ready().then(function(){var I=c._dbInfo;I.db.transaction(function(L){hr(L,I,"SELECT key FROM "+I.storeName+" WHERE id = ? LIMIT 1",[f+1],function(U,D){var k=D.rows.length?D.rows.item(0).key:null;S(k)},function(U,D){w(D)})})}).catch(w)});return q(x,v),x}function Cd(f){var v=this,c=new _(function(x,S){v.ready().then(function(){var w=v._dbInfo;w.db.transaction(function(I){hr(I,w,"SELECT key FROM "+w.storeName,[],function(L,U){for(var D=[],k=0;k<U.rows.length;k++)D.push(U.rows.item(k).key);x(D)},function(L,U){S(U)})})}).catch(S)});return q(c,f),c}function Ed(f){return new _(function(v,c){f.transaction(function(x){x.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(S,w){for(var I=[],L=0;L<w.rows.length;L++)I.push(w.rows.item(L).name);v({db:f,storeNames:I})},function(S,w){c(w)})},function(x){c(x)})})}function Id(f,v){v=H.apply(this,arguments);var c=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||c.name,f.storeName=f.storeName||c.storeName);var x=this,S;return f.name?S=new _(function(w){var I;f.name===c.name?I=x._dbInfo.db:I=openDatabase(f.name,"","",0),f.storeName?w({db:I,storeNames:[f.storeName]}):w(Ed(I))}).then(function(w){return new _(function(I,L){w.db.transaction(function(U){function D(pe){return new _(function(me,Oe){U.executeSql("DROP TABLE IF EXISTS "+pe,[],function(){me()},function(Se,Ge){Oe(Ge)})})}for(var k=[],X=0,ue=w.storeNames.length;X<ue;X++)k.push(D(w.storeNames[X]));_.all(k).then(function(){I()}).catch(function(pe){L(pe)})},function(U){L(U)})})}):S=_.reject("Invalid arguments"),q(S,v),S}var Td={_driver:"webSQLStorage",_initStorage:_d,_support:se(),iterate:bd,getItem:wd,setItem:xd,removeItem:Sd,clear:Ad,length:Od,key:qd,keys:Cd,dropInstance:Id};function Pd(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(f){return!1}}function Ls(f,v){var c=f.name+"/";return f.storeName!==v.storeName&&(c+=f.storeName+"/"),c}function Md(){var f="_localforage_support_test";try{return localStorage.setItem(f,!0),localStorage.removeItem(f),!1}catch(v){return!0}}function Rd(){return!Md()||localStorage.length>0}function Ld(f){var v=this,c={};if(f)for(var x in f)c[x]=f[x];return c.keyPrefix=Ls(f,v._defaultConfig),Rd()?(v._dbInfo=c,c.serializer=zi,_.resolve()):_.reject()}function jd(f){var v=this,c=v.ready().then(function(){for(var x=v._dbInfo.keyPrefix,S=localStorage.length-1;S>=0;S--){var w=localStorage.key(S);w.indexOf(x)===0&&localStorage.removeItem(w)}});return q(c,f),c}function Nd(f,v){var c=this;f=E(f);var x=c.ready().then(function(){var S=c._dbInfo,w=localStorage.getItem(S.keyPrefix+f);return w&&(w=S.serializer.deserialize(w)),w});return q(x,v),x}function Ud(f,v){var c=this,x=c.ready().then(function(){for(var S=c._dbInfo,w=S.keyPrefix,I=w.length,L=localStorage.length,U=1,D=0;D<L;D++){var k=localStorage.key(D);if(k.indexOf(w)===0){var X=localStorage.getItem(k);if(X&&(X=S.serializer.deserialize(X)),X=f(X,k.substring(I),U++),X!==void 0)return X}}});return q(x,v),x}function Dd(f,v){var c=this,x=c.ready().then(function(){var S=c._dbInfo,w;try{w=localStorage.key(f)}catch(I){w=null}return w&&(w=w.substring(S.keyPrefix.length)),w});return q(x,v),x}function Fd(f){var v=this,c=v.ready().then(function(){for(var x=v._dbInfo,S=localStorage.length,w=[],I=0;I<S;I++){var L=localStorage.key(I);L.indexOf(x.keyPrefix)===0&&w.push(L.substring(x.keyPrefix.length))}return w});return q(c,f),c}function Bd(f){var v=this,c=v.keys().then(function(x){return x.length});return q(c,f),c}function kd(f,v){var c=this;f=E(f);var x=c.ready().then(function(){var S=c._dbInfo;localStorage.removeItem(S.keyPrefix+f)});return q(x,v),x}function $d(f,v,c){var x=this;f=E(f);var S=x.ready().then(function(){v===void 0&&(v=null);var w=v;return new _(function(I,L){var U=x._dbInfo;U.serializer.serialize(v,function(D,k){if(k)L(k);else try{localStorage.setItem(U.keyPrefix+f,D),I(w)}catch(X){(X.name==="QuotaExceededError"||X.name==="NS_ERROR_DOM_QUOTA_REACHED")&&L(X),L(X)}})})});return q(S,c),S}function zd(f,v){if(v=H.apply(this,arguments),f=typeof f!="function"&&f||{},!f.name){var c=this.config();f.name=f.name||c.name,f.storeName=f.storeName||c.storeName}var x=this,S;return f.name?S=new _(function(w){f.storeName?w(Ls(f,x._defaultConfig)):w(f.name+"/")}).then(function(w){for(var I=localStorage.length-1;I>=0;I--){var L=localStorage.key(I);L.indexOf(w)===0&&localStorage.removeItem(L)}}):S=_.reject("Invalid arguments"),q(S,v),S}var Wd={_driver:"localStorageWrapper",_initStorage:Ld,_support:Pd(),iterate:Ud,getItem:Nd,setItem:$d,removeItem:kd,clear:jd,length:Bd,key:Dd,keys:Fd,dropInstance:zd},Hd=function(v,c){return v===c||typeof v=="number"&&typeof c=="number"&&isNaN(v)&&isNaN(c)},Gd=function(v,c){for(var x=v.length,S=0;S<x;){if(Hd(v[S],c))return!0;S++}return!1},js=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},pt={},Ns={},Wr={INDEXEDDB:ae,WEBSQL:Td,LOCALSTORAGE:Wd},Kd=[Wr.INDEXEDDB._driver,Wr.WEBSQL._driver,Wr.LOCALSTORAGE._driver],Kt=["dropInstance"],Wi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Kt),Jd={description:"",driver:Kd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Vd(f,v){f[v]=function(){var c=arguments;return f.ready().then(function(){return f[v].apply(f,c)})}}function Hi(){for(var f=1;f<arguments.length;f++){var v=arguments[f];if(v)for(var c in v)v.hasOwnProperty(c)&&(js(v[c])?arguments[0][c]=v[c].slice():arguments[0][c]=v[c])}return arguments[0]}var Yd=function(){function f(v){u(this,f);for(var c in Wr)if(Wr.hasOwnProperty(c)){var x=Wr[c],S=x._driver;this[c]=S,pt[S]||this.defineDriver(x)}this._defaultConfig=Hi({},Jd),this._config=Hi({},this._defaultConfig,v),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return f.prototype.config=function(c){if((typeof c=="undefined"?"undefined":a(c))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var x in c){if(x==="storeName"&&(c[x]=c[x].replace(/\W/g,"_")),x==="version"&&typeof c[x]!="number")return new Error("Database version must be a number.");this._config[x]=c[x]}return"driver"in c&&c.driver?this.setDriver(this._config.driver):!0}else return typeof c=="string"?this._config[c]:this._config},f.prototype.defineDriver=function(c,x,S){var w=new _(function(I,L){try{var U=c._driver,D=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!c._driver){L(D);return}for(var k=Wi.concat("_initStorage"),X=0,ue=k.length;X<ue;X++){var pe=k[X],me=!Gd(Kt,pe);if((me||c[pe])&&typeof c[pe]!="function"){L(D);return}}var Oe=function(){for(var dt=function(Qd){return function(){var em=new Error("Method "+Qd+" is not implemented by the current driver"),Us=_.reject(em);return q(Us,arguments[arguments.length-1]),Us}},Gi=0,Zd=Kt.length;Gi<Zd;Gi++){var Ki=Kt[Gi];c[Ki]||(c[Ki]=dt(Ki))}};Oe();var Se=function(dt){pt[U]&&console.info("Redefining LocalForage driver: "+U),pt[U]=c,Ns[U]=dt,I()};"_support"in c?c._support&&typeof c._support=="function"?c._support().then(Se,L):Se(!!c._support):Se(!0)}catch(Ge){L(Ge)}});return y(w,x,S),w},f.prototype.driver=function(){return this._driver||null},f.prototype.getDriver=function(c,x,S){var w=pt[c]?_.resolve(pt[c]):_.reject(new Error("Driver not found."));return y(w,x,S),w},f.prototype.getSerializer=function(c){var x=_.resolve(zi);return y(x,c),x},f.prototype.ready=function(c){var x=this,S=x._driverSet.then(function(){return x._ready===null&&(x._ready=x._initDriver()),x._ready});return y(S,c,c),S},f.prototype.setDriver=function(c,x,S){var w=this;js(c)||(c=[c]);var I=this._getSupportedDrivers(c);function L(){w._config.driver=w.driver()}function U(X){return w._extend(X),L(),w._ready=w._initStorage(w._config),w._ready}function D(X){return function(){var ue=0;function pe(){for(;ue<X.length;){var me=X[ue];return ue++,w._dbInfo=null,w._ready=null,w.getDriver(me).then(U).catch(pe)}L();var Oe=new Error("No available storage method found.");return w._driverSet=_.reject(Oe),w._driverSet}return pe()}}var k=this._driverSet!==null?this._driverSet.catch(function(){return _.resolve()}):_.resolve();return this._driverSet=k.then(function(){var X=I[0];return w._dbInfo=null,w._ready=null,w.getDriver(X).then(function(ue){w._driver=ue._driver,L(),w._wrapLibraryMethodsWithReady(),w._initDriver=D(I)})}).catch(function(){L();var X=new Error("No available storage method found.");return w._driverSet=_.reject(X),w._driverSet}),y(this._driverSet,x,S),this._driverSet},f.prototype.supports=function(c){return!!Ns[c]},f.prototype._extend=function(c){Hi(this,c)},f.prototype._getSupportedDrivers=function(c){for(var x=[],S=0,w=c.length;S<w;S++){var I=c[S];this.supports(I)&&x.push(I)}return x},f.prototype._wrapLibraryMethodsWithReady=function(){for(var c=0,x=Wi.length;c<x;c++)Vd(this,Wi[c])},f.prototype.createInstance=function(c){return new f(c)},f}(),Xd=new Yd;n.exports=Xd},{3:3}]},{},[4])(4)})});var Cs=g((qs,hd)=>{"use strict";(function(r,e,t){let i;(i=t.define)&&i.amd?i([],function(){return e}):(i=t.modules)?i[r.toLowerCase()]=e:typeof qs=="object"?hd.exports=e:t[r]=e})("FlexSearch",function r(e){function t(h,d){let m=d?d.id:h&&h.id;this.id=m||m===0?m:Ke++,this.init(h,d),u(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),u(this,"length",function(){return this.index.length})}function i(h,d,m,A){return this.u!==this.g&&(this.o=this.o.concat(m),this.u++,A&&this.o.length>=A&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(d,this.o),this.F&&this.F(this.o))),this}function n(h){let d=G();for(let m in h)if(h.hasOwnProperty(m)){let A=h[m];F(A)?d[m]=A.slice(0):te(A)?d[m]=n(A):d[m]=A}return d}function s(h,d){let m=h.length,A=Z(d),C=[];for(let T=0,M=0;T<m;T++){let P=h[T];(A&&d(P)||!A&&!d[P])&&(C[M++]=P)}return C}function a(h,d,m,A,C,T,M,P,N,B){m=K(m,M?0:C,P,T,d,N,B);let Y;if(P&&(P=m.page,Y=m.next,m=m.result),M)d=this.where(M,null,C,m);else{for(d=m,m=this.l,C=d.length,T=Array(C),M=0;M<C;M++)T[M]=m[d[M]];d=T}return m=d,A&&(Z(A)||(ze=A.split(":"),1<ze.length?A=E:(ze=ze[0],A=y)),m.sort(A)),m=H(P,Y,m),this.cache&&this.j.set(h,m),m}function u(h,d,m){Object.defineProperty(h,d,{get:m})}function o(h){return new RegExp(h,"g")}function l(h,d){for(let m=0;m<d.length;m+=2)h=h.replace(d[m],d[m+1]);return h}function p(h,d,m,A,C,T,M,P){return d[m]?d[m]:(C=C?(P-(M||P/1.5))*T+(M||P/1.5)*C:T,d[m]=C,C>=M&&(h=h[P-(C+.5>>0)],h=h[m]||(h[m]=[]),h[h.length]=A),C)}function b(h,d){if(h){let m=Object.keys(h);for(let A=0,C=m.length;A<C;A++){let T=m[A],M=h[T];if(M)for(let P=0,N=M.length;P<N;P++)if(M[P]===d){N===1?delete h[T]:M.splice(P,1);break}else te(M[P])&&b(M[P],d)}}}function _(h){let d="",m="";var A="";for(let C=0;C<h.length;C++){let T=h[C];T!==m&&(C&&T==="h"?(A=A==="a"||A==="e"||A==="i"||A==="o"||A==="u"||A==="y",((m==="a"||m==="e"||m==="i"||m==="o"||m==="u"||m==="y")&&A||m===" ")&&(d+=T)):d+=T),A=C===h.length-1?"":h[C+1],m=T}return d}function q(h,d){return h=h.length-d.length,0>h?1:h?-1:0}function y(h,d){return h=h[ze],d=d[ze],h<d?-1:h>d?1:0}function E(h,d){let m=ze.length;for(let A=0;A<m;A++)h=h[ze[A]],d=d[ze[A]];return h<d?-1:h>d?1:0}function H(h,d,m){return h?{page:h,next:d?""+d:null,result:m}:m}function K(h,d,m,A,C,T,M){let P,N=[];if(m===!0){m="0";var B=""}else B=m&&m.split(":");let Y=h.length;if(1<Y){let ge=G(),ne=[],oe,he;var V=0,z;let Ue;var ae=!0;let Ce,Pe=0,Je,$r,Ir,zr;if(B&&(B.length===2?(Ir=B,B=!1):B=zr=parseInt(B[0],10)),M){for(oe=G();V<Y;V++)if(C[V]==="not")for(he=h[V],Ue=he.length,z=0;z<Ue;z++)oe["@"+he[z]]=1;else $r=V+1;if(O($r))return H(m,P,N);V=0}else Je=Q(C)&&C;let Tr;for(;V<Y;V++){let Gt=V===($r||Y)-1;if(!Je||!V)if((z=Je||C&&C[V])&&z!=="and")if(z==="or")Tr=!1;else continue;else Tr=T=!0;if(he=h[V],Ue=he.length){if(ae)if(Ce){var se=Ce.length;for(z=0;z<se;z++){ae=Ce[z];var ce="@"+ae;M&&oe[ce]||(ge[ce]=1,T||(N[Pe++]=ae))}Ce=null,ae=!1}else{Ce=he;continue}for(ce=!1,z=0;z<Ue;z++){se=he[z];var ye="@"+se;let Pr=T?ge[ye]||0:V;if(!(!Pr&&!A||M&&oe[ye]||!T&&ge[ye]))if(Pr===V){if(Gt){if((!zr||--zr<Pe)&&(N[Pe++]=se,d&&Pe===d))return H(m,Pe+(B||0),N)}else ge[ye]=V+1;ce=!0}else A&&(ye=ne[Pr]||(ne[Pr]=[]),ye[ye.length]=se)}if(Tr&&!ce&&!A)break}else if(Tr&&!A)return H(m,P,he)}if(Ce)if(V=Ce.length,M)for(z=B?parseInt(B,10):0;z<V;z++)h=Ce[z],oe["@"+h]||(N[Pe++]=h);else N=Ce;if(A){for(Pe=N.length,Ir?(V=parseInt(Ir[0],10)+1,z=parseInt(Ir[1],10)+1):(V=ne.length,z=0);V--;)if(se=ne[V]){for(Ue=se.length;z<Ue;z++)if(A=se[z],(!M||!oe["@"+A])&&(N[Pe++]=A,d&&Pe===d))return H(m,V+":"+z,N);z=0}}}else!Y||C&&C[0]==="not"||(N=h[0],B&&(B=parseInt(B[0],10)));return d&&(M=N.length,B&&B>M&&(B=0),B=B||0,P=B+d,P<M?N=N.slice(B,P):(P=0,B&&(N=N.slice(B)))),H(m,P,N)}function Q(h){return typeof h=="string"}function F(h){return h.constructor===Array}function Z(h){return typeof h=="function"}function te(h){return typeof h=="object"}function O(h){return typeof h=="undefined"}function ee(h){let d=Array(h);for(let m=0;m<h;m++)d[m]=G();return d}function G(){return Object.create(null)}function de(){let h,d;self.onmessage=function(m){if(m=m.data)if(m.search){let A=d.search(m.content,m.threshold?{limit:m.limit,threshold:m.threshold,where:m.where}:m.limit);self.postMessage({id:h,content:m.content,limit:m.limit,result:A})}else m.add?d.add(m.id,m.content):m.update?d.update(m.id,m.content):m.remove?d.remove(m.id):m.clear?d.clear():m.info?(m=d.info(),m.worker=h,console.log(m)):m.register&&(h=m.id,m.options.cache=!1,m.options.async=!1,m.options.worker=!1,d=new Function(m.register.substring(m.register.indexOf("{")+1,m.register.lastIndexOf("}")))(),d=new d(m.options))}}function qe(h,d,m,A){h=e("flexsearch","id"+h,de,function(T){(T=T.data)&&T.result&&A(T.id,T.content,T.result,T.limit,T.where,T.cursor,T.suggest)},d);let C=r.toString();return m.id=d,h.postMessage({register:C,options:m,id:d}),h}let ve={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},Ne={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Te=[],Ke=0,cr={},Er={};t.create=function(h,d){return new t(h,d)},t.registerMatcher=function(h){for(let d in h)h.hasOwnProperty(d)&&Te.push(o(d),h[d]);return this},t.registerEncoder=function(h,d){return sr[h]=d.bind(sr),this},t.registerLanguage=function(h,d){return cr[h]=d.filter,Er[h]=d.stemmer,this},t.encode=function(h,d){return sr[h](d)},t.prototype.init=function(h,d){if(this.v=[],d){var m=d.preset;h=d}else h||(h=ve),m=h.preset;if(d={},Q(h)?(d=Ne[h],h={}):m&&(d=Ne[m]),m=h.worker)if(typeof Worker=="undefined")h.worker=!1,this.m=null;else{var A=parseInt(m,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(A);for(var C=0;C<A;C++)this.m[C]=qe(this.id,C,h,i.bind(this))}if(this.f=h.tokenize||d.f||this.f||ve.f,this.split=O(m=h.split)?this.split||ve.split:Q(m)?o(m):m,this.D=h.rtl||this.D||ve.D,this.async=typeof Promise=="undefined"||O(m=h.async)?this.async||ve.async:m,this.g=O(m=h.worker)?this.g||ve.g:m,this.threshold=O(m=h.threshold)?d.threshold||this.threshold||ve.threshold:m,this.b=O(m=h.resolution)?m=d.b||this.b||ve.b:m,m<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||O(m=h.depth)?d.depth||this.depth||ve.depth:m,this.w=(m=O(m=h.encode)?d.encode||ve.encode:m)&&sr[m]&&sr[m].bind(sr)||(Z(m)?m:this.w||!1),(m=h.matcher)&&this.addMatcher(m),m=(d=h.lang)||h.filter){if(Q(m)&&(m=cr[m]),F(m)){A=this.w,C=G();for(var T=0;T<m.length;T++){var M=A?A(m[T]):m[T];C[M]=1}m=C}this.filter=m}if(m=d||h.stemmer){var P;d=Q(m)?Er[m]:m,A=this.w,C=[];for(P in d)d.hasOwnProperty(P)&&(T=A?A(P):P,C.push(o(T+"($|\\W)"),A?A(d[P]):d[P]));this.stemmer=P=C}if(this.a=C=(m=h.doc)?n(m):this.a||ve.a,this.i=ee(this.b-(this.threshold||0)),this.h=G(),this.c=G(),C){if(this.l=G(),h.doc=null,P=C.index={},d=C.keys=[],A=C.field,T=C.tag,M=C.store,F(C.id)||(C.id=C.id.split(":")),M){var N=G();if(Q(M))N[M]=1;else if(F(M))for(let B=0;B<M.length;B++)N[M[B]]=1;else te(M)&&(N=M);C.store=N}if(T){if(this.G=G(),M=G(),A)if(Q(A))M[A]=h;else if(F(A))for(N=0;N<A.length;N++)M[A[N]]=h;else te(A)&&(M=A);for(F(T)||(C.tag=T=[T]),A=0;A<T.length;A++)this.G[T[A]]=G();this.I=T,A=M}if(A){let B;for(F(A)||(te(A)?(B=A,C.field=A=Object.keys(A)):C.field=A=[A]),C=0;C<A.length;C++)T=A[C],F(T)||(B&&(h=B[T]),d[C]=T,A[C]=T.split(":")),P[T]=new t(h)}h.doc=m}return this.B=!0,this.j=(this.cache=m=O(m=h.cache)?this.cache||ve.cache:m)?new ki(m):!1,this},t.prototype.encode=function(h){return h&&(Te.length&&(h=l(h,Te)),this.v.length&&(h=l(h,this.v)),this.w&&(h=this.w(h)),this.stemmer&&(h=l(h,this.stemmer))),h},t.prototype.addMatcher=function(h){let d=this.v;for(let m in h)h.hasOwnProperty(m)&&d.push(o(m),h[m]);return this},t.prototype.add=function(h,d,m,A,C){if(this.a&&te(h))return this.A("add",h,d);if(d&&Q(d)&&(h||h===0)){var T="@"+h;if(this.c[T]&&!A)return this.update(h,d);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:h,content:d}),this.c[T]=""+this.C,m&&m(),this;if(!C){if(this.async&&typeof importScripts!="function"){let ne=this;if(T=new Promise(function(oe){setTimeout(function(){ne.add(h,d,null,A,!0),ne=null,oe()})}),m)T.then(m);else return T;return this}if(m)return this.add(h,d,null,A,!0),m(),this}if(d=this.encode(d),!d.length)return this;m=this.f,C=Z(m)?m(d):d.split(this.split),this.filter&&(C=s(C,this.filter));let V=G();V._ctx=G();let z=C.length,ae=this.threshold,se=this.depth,ce=this.b,ye=this.i,ge=this.D;for(let ne=0;ne<z;ne++){var M=C[ne];if(M){var P=M.length,N=(ge?ne+1:z-ne)/z,B="";switch(m){case"reverse":case"both":for(var Y=P;--Y;)B=M[Y]+B,p(ye,V,B,h,ge?1:(P-Y)/P,N,ae,ce-1);B="";case"forward":for(Y=0;Y<P;Y++)B+=M[Y],p(ye,V,B,h,ge?(Y+1)/P:1,N,ae,ce-1);break;case"full":for(Y=0;Y<P;Y++){let oe=(ge?Y+1:P-Y)/P;for(let he=P;he>Y;he--)B=M.substring(Y,he),p(ye,V,B,h,oe,N,ae,ce-1)}break;default:if(P=p(ye,V,M,h,1,N,ae,ce-1),se&&1<z&&P>=ae)for(P=V._ctx[M]||(V._ctx[M]=G()),M=this.h[M]||(this.h[M]=ee(ce-(ae||0))),N=ne-se,B=ne+se+1,0>N&&(N=0),B>z&&(B=z);N<B;N++)N!==ne&&p(M,P,C[N],h,0,ce-(N<ne?ne-N:N-ne),ae,ce-1)}}}this.c[T]=1,this.B=!1}return this},t.prototype.A=function(h,d,m){if(F(d)){var A=d.length;if(A--){for(var C=0;C<A;C++)this.A(h,d[C]);return this.A(h,d[A],m)}}else{var T=this.a.index,M=this.a.keys,P=this.a.tag;C=this.a.store;var N,B=this.a.id;A=d;for(var Y=0;Y<B.length;Y++)A=A[B[Y]];if(h==="remove"&&(delete this.l[A],B=M.length,B--)){for(d=0;d<B;d++)T[M[d]].remove(A);return T[M[B]].remove(A,m)}if(P){for(N=0;N<P.length;N++){var V=P[N],z=d;for(B=V.split(":"),Y=0;Y<B.length;Y++)z=z[B[Y]];z="@"+z}N=this.G[V],N=N[z]||(N[z]=[])}B=this.a.field;for(let ae=0,se=B.length;ae<se;ae++){for(V=B[ae],P=d,z=0;z<V.length;z++)P=P[V[z]];V=T[M[ae]],z=h==="add"?V.add:V.update,ae===se-1?z.call(V,A,P,m):z.call(V,A,P)}if(C){for(m=Object.keys(C),h=G(),T=0;T<m.length;T++)if(M=m[T],C[M]){M=M.split(":");let ae,se;for(B=0;B<M.length;B++)P=M[B],ae=(ae||d)[P],se=(se||h)[P]=ae}d=h}N&&(N[N.length]=d),this.l[A]=d}return this},t.prototype.update=function(h,d,m){return this.a&&te(h)?this.A("update",h,d):(this.c["@"+h]&&Q(d)&&(this.remove(h),this.add(h,d,m,!0)),this)},t.prototype.remove=function(h,d,m){if(this.a&&te(h))return this.A("remove",h,d);var A="@"+h;if(this.c[A]){if(this.g)return this.m[this.c[A]].postMessage({remove:!0,id:h}),delete this.c[A],d&&d(),this;if(!m){if(this.async&&typeof importScripts!="function"){let C=this;if(A=new Promise(function(T){setTimeout(function(){C.remove(h,null,!0),C=null,T()})}),d)A.then(d);else return A;return this}if(d)return this.remove(h,null,!0),d(),this}for(d=0;d<this.b-(this.threshold||0);d++)b(this.i[d],h);this.depth&&b(this.h,h),delete this.c[A],this.B=!1}return this};let ze;t.prototype.search=function(h,d,m,A){if(te(d)){if(F(d))for(var C=0;C<d.length;C++)d[C].query=h;else d.query=h;h=d,d=1e3}else d&&Z(d)?(m=d,d=1e3):d||d===0||(d=1e3);if(this.g){this.F=m,this.u=0,this.o=[];for(var T=0;T<this.g;T++)this.m[T].postMessage({search:!0,limit:d,content:h})}else{var M=[],P=h;if(te(h)&&!F(h)){m||(m=h.callback)&&(P.callback=null);var N=h.sort,B=h.page;d=h.limit,T=h.threshold;var Y=h.suggest;h=h.query}if(this.a){T=this.a.index;let ge=P.where;var V=P.bool||"or",z=P.field;let ne=V,oe,he;if(z)F(z)||(z=[z]);else if(F(P)){var ae=P;z=[],ne=[];for(var se=0;se<P.length;se++)A=P[se],C=A.bool||V,z[se]=A.field,ne[se]=C,C==="not"?oe=!0:C==="and"&&(he=!0)}else z=this.a.keys;for(V=z.length,se=0;se<V;se++)ae&&(P=ae[se]),B&&!Q(P)&&(P.page=null,P.limit=0),M[se]=T[z[se]].search(P,0);if(m)return m(a.call(this,h,ne,M,N,d,Y,ge,B,he,oe));if(this.async){let Ue=this;return new Promise(function(Ce){Promise.all(M).then(function(Pe){Ce(a.call(Ue,h,ne,Pe,N,d,Y,ge,B,he,oe))})})}return a.call(this,h,ne,M,N,d,Y,ge,B,he,oe)}if(T||(T=this.threshold||0),!A){if(this.async&&typeof importScripts!="function"){let ge=this;if(T=new Promise(function(ne){setTimeout(function(){ne(ge.search(P,d,null,!0)),ge=null})}),m)T.then(m);else return T;return this}if(m)return m(this.search(P,d,null,!0)),this}if(!h||!Q(h))return M;if(P=h,this.cache)if(this.B){if(m=this.j.get(h))return m}else this.j.clear(),this.B=!0;if(P=this.encode(P),!P.length)return M;m=this.f,m=Z(m)?m(P):P.split(this.split),this.filter&&(m=s(m,this.filter)),ae=m.length,A=!0,C=[];var ce=G(),ye=0;if(1<ae&&(this.depth&&this.f==="strict"?V=!0:m.sort(q)),!V||(se=this.h)){let ge=this.b;for(;ye<ae;ye++){let ne=m[ye];if(ne){if(V){if(!z){if(se[ne])z=ne,ce[ne]=1;else if(!Y)return M}if(Y&&ye===ae-1&&!C.length)V=!1,ne=z||ne,ce[ne]=0;else if(!z)continue}if(!ce[ne]){let oe=[],he=!1,Ue=0,Ce=V?se[z]:this.i;if(Ce){let Pe;for(let Je=0;Je<ge-T;Je++)(Pe=Ce[Je]&&Ce[Je][ne])&&(oe[Ue++]=Pe,he=!0)}if(he)z=ne,C[C.length]=1<Ue?oe.concat.apply([],oe):oe[0];else if(!Y){A=!1;break}ce[ne]=1}}}}else A=!1;return A&&(M=K(C,d,B,Y)),this.cache&&this.j.set(h,M),M}},t.prototype.find=function(h,d){return this.where(h,d,1)[0]||null},t.prototype.where=function(h,d,m,A){let C=this.l,T=[],M=0,P;var N;let B;if(te(h)){m||(m=d);var Y=Object.keys(h),V=Y.length;if(P=!1,V===1&&Y[0]==="id")return[C[h.id]];if((N=this.I)&&!A)for(var z=0;z<N.length;z++){var ae=N[z],se=h[ae];if(!O(se)){if(B=this.G[ae]["@"+se],--V===0)return B;Y.splice(Y.indexOf(ae),1),delete h[ae];break}}for(N=Array(V),z=0;z<V;z++)N[z]=Y[z].split(":")}else{if(Z(h)){for(d=A||Object.keys(C),m=d.length,Y=0;Y<m;Y++)V=C[d[Y]],h(V)&&(T[M++]=V);return T}if(O(d))return[C[h]];if(h==="id")return[C[d]];Y=[h],V=1,N=[h.split(":")],P=!0}for(A=B||A||Object.keys(C),z=A.length,ae=0;ae<z;ae++){se=B?A[ae]:C[A[ae]];let ce=!0;for(let ye=0;ye<V;ye++){P||(d=h[Y[ye]]);let ge=N[ye],ne=ge.length,oe=se;if(1<ne)for(let he=0;he<ne;he++)oe=oe[ge[he]];else oe=oe[ge[0]];if(oe!==d){ce=!1;break}}if(ce&&(T[M++]=se,m&&M===m))break}return T},t.prototype.info=function(){if(this.g)for(let h=0;h<this.g;h++)this.m[h].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Te.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},t.prototype.clear=function(){return this.destroy().init()},t.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){let h=this.a.keys;for(let d=0;d<h.length;d++)this.a.index[h[d]].destroy();this.a=this.l=null}return this},t.prototype.export=function(h){let d=!h||O(h.serialize)||h.serialize;if(this.a){let A=!h||O(h.doc)||h.doc;var m=!h||O(h.index)||h.index;h=[];let C=0;if(m)for(m=this.a.keys;C<m.length;C++){let T=this.a.index[m[C]];h[C]=[T.i,T.h,Object.keys(T.c)]}A&&(h[C]=this.l)}else h=[this.i,this.h,Object.keys(this.c)];return d&&(h=JSON.stringify(h)),h},t.prototype.import=function(h,d){(!d||O(d.serialize)||d.serialize)&&(h=JSON.parse(h));let m=G();if(this.a){var A=!d||O(d.doc)||d.doc,C=0;if(!d||O(d.index)||d.index){d=this.a.keys;let M=d.length;for(var T=h[0][2];C<T.length;C++)m[T[C]]=1;for(C=0;C<M;C++){T=this.a.index[d[C]];let P=h[C];P&&(T.i=P[0],T.h=P[1],T.c=m)}}A&&(this.l=te(A)?A:h[C])}else{for(A=h[2],C=0;C<A.length;C++)m[A[C]]=1;this.i=h[0],this.h=h[1],this.c=m}};let lr=function(){let h=o("\\s+"),d=o("[^a-z0-9 ]"),m=[o("[-/]")," ",d,"",h," "];return function(A){return _(l(A.toLowerCase(),m))}}(),sr={icase:function(h){return h.toLowerCase()},simple:function(){let h=o("\\s+"),d=o("[^a-z0-9 ]"),m=o("[-/]"),A=o("[\xE0\xE1\xE2\xE3\xE4\xE5]"),C=o("[\xE8\xE9\xEA\xEB]"),T=o("[\xEC\xED\xEE\xEF]"),M=o("[\xF2\xF3\xF4\xF5\xF6\u0151]"),P=o("[\xF9\xFA\xFB\xFC\u0171]"),N=o("[\xFD\u0177\xFF]"),B=o("\xF1"),Y=o("[\xE7c]"),V=o("\xDF"),z=o(" & "),ae=[A,"a",C,"e",T,"i",M,"o",P,"u",N,"y",B,"n",Y,"k",V,"s",z," and ",m," ",d,"",h," "];return function(se){return se=l(se.toLowerCase(),ae),se===" "?"":se}}(),advanced:function(){let h=o("ae"),d=o("ai"),m=o("ay"),A=o("ey"),C=o("oe"),T=o("ue"),M=o("ie"),P=o("sz"),N=o("zs"),B=o("ck"),Y=o("cc"),V=o("sh"),z=o("th"),ae=o("dt"),se=o("ph"),ce=o("pf"),ye=o("ou"),ge=o("uo"),ne=[h,"a",d,"ei",m,"ei",A,"ei",C,"o",T,"u",M,"i",P,"s",N,"s",V,"s",B,"k",Y,"k",z,"t",ae,"t",se,"f",ce,"f",ye,"o",ge,"u"];return function(oe,he){return oe&&(oe=this.simple(oe),2<oe.length&&(oe=l(oe,ne)),he||1<oe.length&&(oe=_(oe)),oe)}}(),extra:function(){let h=o("p"),d=o("z"),m=o("[cgq]"),A=o("n"),C=o("d"),T=o("[vw]"),M=o("[aeiouy]"),P=[h,"b",d,"s",m,"k",A,"m",C,"t",T,"f",M,""];return function(N){if(!N)return N;if(N=this.advanced(N,!0),1<N.length){N=N.split(" ");for(let B=0;B<N.length;B++){let Y=N[B];1<Y.length&&(N[B]=Y[0]+l(Y.substring(1),P))}N=N.join(" "),N=_(N)}return N}}(),balance:lr},ki=function(){function h(d){this.clear(),this.H=d!==!0&&d}return h.prototype.clear=function(){this.cache=G(),this.count=G(),this.index=G(),this.s=[]},h.prototype.set=function(d,m){if(this.H&&O(this.cache[d])){let A=this.s.length;if(A===this.H){A--;let C=this.s[A];delete this.cache[C],delete this.count[C],delete this.index[C]}this.index[d]=A,this.s[A]=d,this.count[d]=-1,this.cache[d]=m,this.get(d)}else this.cache[d]=m},h.prototype.get=function(d){let m=this.cache[d];if(this.H&&m){var A=++this.count[d];let T=this.index,M=T[d];if(0<M){let P=this.s;for(var C=M;this.count[P[--M]]<=A&&M!==-1;);if(M++,M!==C){for(A=C;A>M;A--)C=P[A-1],P[A]=C,T[C]=A;P[M]=d,T[d]=M}}}return m},h}();return t}(function(){let r={},e=typeof Blob!="undefined"&&typeof URL!="undefined"&&URL.createObjectURL;return function(t,i,n,s,a){return n=e?URL.createObjectURL(new Blob(["("+n.toString()+")()"],{type:"text/javascript"})):t+".min.js",t+="-"+i,r[t]||(r[t]=[]),r[t][a]=new Worker(n),r[t][a].onmessage=s,r[t][a]}}()),qs)});var xE={};Vt(xE,{BaseProvider:()=>le,CocodaSDK:()=>Cr,ConceptApiProvider:()=>ir,LabelSearchSuggestionProvider:()=>br,LocApiProvider:()=>Sr,LocalMappingsProvider:()=>yr,MappingsApiProvider:()=>tr,MyCoReProvider:()=>Or,OccurrencesApiProvider:()=>_r,ReconciliationApiProvider:()=>wr,SkohubProvider:()=>Ar,SkosmosApiProvider:()=>xr,addAllProviders:()=>bE,cdk:()=>gd,errors:()=>Fe,utils:()=>Ur});var Fe={};Vt(Fe,{BackendError:()=>yt,BackendUnavailableError:()=>_t,CDKError:()=>Ee,InvalidOrMissingParameterError:()=>W,InvalidProviderError:()=>Hr,InvalidRequestError:()=>Qe,MethodNotImplementedError:()=>vt,MissingApiUrlError:()=>De,NetworkError:()=>wt});var Ee=class extends Error{constructor({message:e="",relatedError:t=null,code:i=null}={}){!e&&t&&t.message&&(e=t.message),super(e),this.name=this.constructor.name,this.relatedError=t,this.code=i}},vt=class extends Ee{constructor(n){var s=n,{method:e,message:t=""}=s,i=J(s,["method","message"]);i.message=`Method not implemented: ${e} (${t})`,super(i)}},W=class extends Ee{constructor(n){var s=n,{parameter:e,message:t=""}=s,i=J(s,["parameter","message"]);i.message=`Invalid or missing parameter: ${e} (${t})`,super(i)}},Qe=class extends Ee{},yt=class extends Ee{},_t=class extends Ee{},wt=class extends Ee{},De=class extends Ee{},Hr=class extends Ee{};var md=fe(ni(),1);var re=fe(Lu(),1),xe=fe(Wu(),1),gr=fe(gf(),1),Bt=fe(kf(),1),ts=fe(rc(),1),is=fe(Tc(),1),Ie=fe(ke(),1),kt=fe(Xe(),1),be=fe(Mc(),1),ns=fe(Kc(),1),rr=fe(Fl(),1),OC=fe(Oh(),1),ss=fe(Qn(),1),ar=fe(Ep(),1),as=fe(Tp(),1);var qr=fe(He(),1);var Ht={};Vt(Ht,{BaseProvider:()=>le,ConceptApiProvider:()=>ir,LabelSearchSuggestionProvider:()=>br,LocApiProvider:()=>Sr,LocalMappingsProvider:()=>yr,MappingsApiProvider:()=>tr,MyCoReProvider:()=>Or,OccurrencesApiProvider:()=>_r,ReconciliationApiProvider:()=>wr,SkohubProvider:()=>Ar,SkosmosApiProvider:()=>xr});var ct=fe(He(),1);var Ri=fe(ni(),1);var Ur={};Vt(Ur,{concatUrl:()=>or,listOfCapabilities:()=>Ae,requestMethods:()=>_s,withCustomProps:()=>Nr});var _s=[{method:"getRegistries",fallback:[],type:"Registries"},{method:"getSchemes",fallback:[],type:"Schemes"},{method:"vocSearch",fallback:[],type:"Schemes"},{method:"getTypes",fallback:[],type:"Types"},{method:"suggest",fallback:["",[],[],[]]},{method:"vocSuggest",fallback:["",[],[],[]]},{method:"getConcordances",fallback:[],type:"Concordances"},{method:"getOccurrences",fallback:[],type:"Occurrences"},{method:"getTop",fallback:[],type:"Concepts"},{method:"getConcepts",fallback:[],type:"Concepts"},{method:"getNarrower",fallback:[],type:"Concepts"},{method:"getAncestors",fallback:[],type:"Concepts"},{method:"search",fallback:[],type:"Concepts"},{method:"getMapping",fallback:null,type:"Mapping"},{method:"getMappings",fallback:[],type:"Mappings"},{method:"postMapping",fallback:null,type:"Mapping"},{method:"postMappings",fallback:[],type:"Mapping"},{method:"putMapping",fallback:null,type:"Mapping"},{method:"patchMapping",fallback:null,type:"Mapping"},{method:"deleteMapping",fallback:!1},{method:"deleteMappings",fallback:[]},{method:"getAnnotations",fallback:[],type:"Annotations"},{method:"postAnnotation",fallback:null,type:"Annotation"},{method:"putAnnotation",fallback:null,type:"Annotation"},{method:"patchAnnotation",fallback:null,type:"Annotation"},{method:"deleteAnnotation",fallback:!1}];function or(...r){let[e,...t]=r;for(let i of t)e.endsWith("/")||(e+="/"),i.startsWith("/")&&(i=i.slice(1)),e+=i;return e}function Nr(r,e){return r._totalCount=e._totalCount,r._url=e._url,r}var Ae=["schemes","top","data","concepts","narrower","ancestors","types","suggest","search","auth","mappings","concordances","annotations","occurrences"];var le=class{constructor(e={}){this._jskos=e,this.axios=Ri.default.create({timeout:2e4}),this._path=typeof window!="undefined"&&window.location.pathname,this.has={},this._defaultLanguages="en,de,fr,es,nl,it,fi,pl,ru,cs,jp".split(","),this.languages=[],this._auth={key:null,bearerToken:null},this._repeating=[],this._api={status:e.status,schemes:Array.isArray(e.schemes)?void 0:e.schemes,top:e.top,data:e.data,concepts:e.concepts,narrower:e.narrower,ancestors:e.ancestors,types:e.types,suggest:e.suggest,search:e.search,"voc-suggest":e["voc-suggest"],"voc-search":e["voc-search"],mappings:e.mappings,concordances:e.concordances,annotations:e.annotations,occurrences:e.occurrences,reconcile:e.reconcile,api:e.api},this._config={},this.setRetryConfig(),this.axios.interceptors.request.use(i=>{if(!i._skipAdditionalParameters){let n=gr.default([].concat(re.default(i,"params.language","").split(","),this.languages,this._defaultLanguages).filter(s=>s!="")).join(",");xe.default(i,"params.language",n),this.has.auth&&this._auth.bearerToken&&!re.default(i,"headers.Authorization")&&xe.default(i,"headers.Authorization",`Bearer ${this._auth.bearerToken}`)}if(i.url.startsWith("http:")&&typeof window!="undefined"&&window.location.protocol=="https:")throw new Ri.default.Cancel("Can't call http API from https.");return i}),this.axios.interceptors.response.use(({data:i,headers:n={},config:s={}})=>{i=ct.default.normalize(i);let a=s.url;if(a.endsWith("?")||(a+="?"),is.default(s.params||{},(u,o)=>{a+=`${o}=${encodeURIComponent(u)}&`}),Ie.default(i)||kt.default(i)){let u=parseInt(n["x-total-count"]);isNaN(u)||(i._totalCount=u),i._url=a}return i},i=>{let n=re.default(i,"config._retryCount",0),s=re.default(i,"config.method"),a=re.default(i,"response.status");return this._retryConfig.methods.includes(s)&&this._retryConfig.statusCodes.includes(a)&&n<this._retryConfig.count?(i.config._retryCount=n+1,i.config.data&&(i.config.data=JSON.parse(i.config.data)),new Promise((u,o)=>{setTimeout(()=>{this.axios(i.config).then(u).catch(o)},(()=>{let l=this._retryConfig.delay;return typeof l=="function"?l(n):l})())})):Promise.reject(i)});let t=[];for(let{method:i,type:n}of _s){let s=this[i]&&this[i].bind(this);if(!s){this[i]=()=>{throw new vt({method:i})};continue}this[i]=(a={})=>{if(a._raw)return delete a._raw,s(a);let u=t.find(b=>b.method==i&&rr.default(b.options,a));if(u)return u.promise;let o;a.cancelToken||(o=this.getCancelTokenSource(),a.cancelToken=o.token);let l=this.init().then(()=>s(a)).then(b=>(Ie.default(b)&&b._totalCount===void 0?b._totalCount=b.length:kt.default(b)&&b._totalCount===void 0&&(b._totalCount=1),b&&n&&this[`adjust${n}`]&&(b=this[`adjust${n}`](b)),b)).catch(b=>{throw b instanceof Ee?b:b.response?b.response.status.toString().startsWith(4)?new Qe({relatedError:b,code:b.response.status}):new yt({relatedError:b,code:b.response.status}):b.request?typeof navigator!="undefined"&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)?new _t({relatedError:b}):new wt({relatedError:b}):new Ee({relatedError:b})});o&&(l.cancel=(...b)=>o.cancel(...b));let p={method:i,options:ar.default(a,["cancelToken"]),promise:l};return t.push(p),l.catch(()=>{}).then(()=>t.splice(t.indexOf(p),1)),l}}}get uri(){return this._jskos.uri}get notation(){return this._jskos.notation}get prefLabel(){return this._jskos.prefLabel}get definition(){return this._jskos.definition}get schemes(){return this._jskos.schemes}get excludedSchemes(){return this._jskos.excludedSchemes}get stored(){return this._jskos.stored!==void 0?this._jskos.stored:this.constructor.stored}init(){return j(this,null,function*(){return this._init?this._init:(this._init=(()=>j(this,null,function*(){this._prepare();let e;if(be.default(this._api.status))try{e=yield this.axios({method:"get",url:this._api.status})}catch(t){re.default(t,"response.status")===404&&(this._api.status=null)}else e=this._api.status;if(kt.default(e)&&!ns.default(e)){this._config=e.config||{};for(let t of Object.keys(this._api))this._api[t]===void 0&&(this._api[t]=e[t]||null)}this._setup()}))(),this._init)})}_prepare(){}_setup(){}getCancelTokenSource(){return Ri.default.CancelToken.source()}setAuth({key:e=this._auth.key,bearerToken:t=this._auth.bearerToken}){this._auth.key=e,this._auth.bearerToken=t}setRetryConfig(e={}){this._retryConfig=Object.assign({methods:["get","head","options"],statusCodes:[401,403],count:3,delay:t=>300*t},e)}isAuthorizedFor({type:e,action:t,user:i,crossUser:n}){if(t=="read"&&this.has[e]===!0)return!0;if(!this.has[e])return!1;let s=re.default(this._config,`${e}.${t}`);if(!s)return!!this.has[e][t];if(s.auth&&(!i||!this._auth.key)||s.auth&&this._auth.key!=re.default(this._config,"auth.key"))return!1;let a=[i.uri].concat(Object.values(i.identities||{}).map(u=>u.uri)).filter(u=>u!=null);if(s.auth&&s.identities&&Bt.default(a,s.identities).length==0)return!1;if(s.auth&&s.identityProviders){let u=Object.keys(i&&i.identities||{});if(Bt.default(u,s.identityProviders).length==0)return!1}return n?s.crossUser===!0||Bt.default(s.crossUser||[],a).length>0:!!this.has[e][t]}supportsScheme(e){if(!e)return!1;let t=Ie.default(this.schemes)?this.schemes:null;return t==null&&!ct.default.isContainedIn(e,this.excludedSchemes||[])?!0:ct.default.isContainedIn(e,t)}adjustConcept(e){if(!e||e.__SAVED__)return e;e._getNarrower=t=>this.getNarrower($(R({},t),{concept:e})),e._getAncestors=t=>this.getAncestors($(R({},t),{concept:e})),e._getDetails=t=>j(this,null,function*(){return(yield this.getConcepts($(R({},t),{concepts:[e]})))[0]});for(let t of["broader","narrower","ancestors"])Array.isArray(e[t])&&e[t].length&&!e[t].includes(null)&&(e[t]=this.adjustConcepts(e[t]));return e._registry=this,e}adjustConcepts(e){return Nr(e.map(t=>this.adjustConcept(t)),e)}adjustRegistries(e){return e}adjustScheme(e){if(!e||e.__SAVED__)return e;let t=e._registry;return e._registry=this.cdk&&this.cdk.registryForScheme(e),!e._registry||t===e._registry||e._registry._api.api===this._api.api?e._registry=t||this:["concepts","topConcepts"].forEach(i=>{Array.isArray(e[i])&&(e[i].length===0||e[i][0]===null)&&delete e[i]}),e._registry&&(e._getTop=i=>e._registry.getTop($(R({},i),{scheme:e})),e._getTypes=i=>e._registry.getTypes($(R({},i),{scheme:e})),e._suggest=s=>{var a=s,{search:i}=a,n=J(a,["search"]);return e._registry.suggest($(R({},n),{search:i,scheme:e}))}),e}adjustSchemes(e){return Nr(e.map(t=>this.adjustScheme(t)),e)}adjustConcordances(e){for(let t of e)t._registry=this;return e}adjustMapping(e){for(let t of["from","to"]){let i=`${t}Scheme`;e[i]||(e[i]=re.default(ct.default.conceptsOfMapping(e,t),"[0].inScheme[0]",null))}if(e._registry=this,!e.identifier){let t=re.default(ct.default.addMappingIdentifiers(e),"identifier");t&&(e.identifier=t)}return e}adjustMappings(e){return Nr(e.map(t=>this.adjustMapping(t)),e)}postMappings(){return j(this,arguments,function*(i={}){var n=i,{mappings:e}=n,t=J(n,["mappings"]);if(!e||!e.length)throw new W({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"postMapping",items:e,itemProperty:"mapping",config:t})})}deleteMappings(){return j(this,arguments,function*(i={}){var n=i,{mappings:e}=n,t=J(n,["mappings"]);if(!e||!e.length)throw new W({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"deleteMapping",items:e,itemProperty:"mapping",config:t})})}_callHelperForArrayWrappers(s){return j(this,arguments,function*({method:e,items:t,itemProperty:i,config:n}){let a=[],u=yield Promise.all(t.map(o=>j(this,null,function*(){try{return yield this[e]($(R({[i]:o},n),{_raw:!0}))}catch(l){return a[t.indexOf(o)]=l,null}})));return u._errors=a,u})}};le.providerName="Base";var Le=fe(He(),1);var ur=fe(ud(),1);var Li,gE=new Uint8Array(16);function bs(){if(!Li&&(Li=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Li))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Li(gE)}var Re=[];for(let r=0;r<256;++r)Re.push((r+256).toString(16).slice(1));function fd(r,e=0){return(Re[r[e+0]]+Re[r[e+1]]+Re[r[e+2]]+Re[r[e+3]]+"-"+Re[r[e+4]]+Re[r[e+5]]+"-"+Re[r[e+6]]+Re[r[e+7]]+"-"+Re[r[e+8]]+Re[r[e+9]]+"-"+Re[r[e+10]]+Re[r[e+11]]+Re[r[e+12]]+Re[r[e+13]]+Re[r[e+14]]+Re[r[e+15]]).toLowerCase()}var vE=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xs={randomUUID:vE};function yE(r,e,t){if(xs.randomUUID&&!e&&!r)return xs.randomUUID();r=r||{};let i=r.random||(r.rng||bs)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let n=0;n<16;++n)e[t+n]=i[n];return e}return fd(i)}var ji=yE;var Ni="urn:uuid:",yr=class extends le{_prepare(){this.has.mappings={read:!0,create:!0,update:!0,delete:!0},Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this.queue=[],this.localStorageKey="cocoda-mappings--"+this._path;let e="mappings",t=()=>ur.default.getItem(this.localStorageKey).then(i=>{i=i||[];let n=0;for(let s of i.filter(a=>!a.uri||!a.uri.startsWith(Ni)))s.uri&&(s.identifier||(s.identifier=[]),s.identifier.push(s.uri)),s.uri=`${Ni}${ji()}`,n+=1;return n&&console.warn(`URIs added to ${n} local mappings.`),ur.default.setItem(this.localStorageKey,i)});ur.default.getItem(e).then(i=>{i&&console.warn(`Warning: There is old data in local storage (or IndexedDB, depending on the ) with the key "${e}". This data will not be used anymore. A manual export is necessary to get this data back.`)}),this.queue.push(t().catch(i=>{console.warn("Error when adding URIs to local mappings:",i)}))}isAuthorizedFor({type:e,action:t}){return e=="mappings"&&t!="anonymous"}_getMappingsQueue(){let e=ss.default(this.queue)||Promise.resolve();return new Promise(t=>{function i(){var a,u,o=new Promise((l,p)=>{a=l,u=p});return o.resolve=a,o.reject=u,o}let n=i(),s=()=>{n.resolve()};this.queue.push(n),e.then(()=>ur.default.getItem(this.localStorageKey)).then(a=>{t({mappings:a,done:s})})})}getMapping(i){return j(this,null,function*(){var n=i,{mapping:e}=n,t=J(n,["mapping"]);if(t._raw=!0,!e||!e.uri)throw new W({parameter:"mapping"});return(yield this.getMappings($(R({},t),{uri:e.uri})))[0]})}getMappings(){return j(this,arguments,function*({from:e,fromScheme:t,to:i,toScheme:n,creator:s,type:a,partOf:u,offset:o,limit:l,direction:p,mode:b,identifier:_,uri:q}={}){let y={};return e&&(y.from=be.default(e)?e:e.uri),t&&(y.fromScheme=be.default(t)?{uri:t}:t),i&&(y.to=be.default(i)?i:i.uri),n&&(y.toScheme=be.default(n)?{uri:n}:n),s&&(y.creator=be.default(s)?s:Le.default.prefLabel(s)),a&&(y.type=be.default(a)?a:a.uri),u&&(y.partOf=be.default(u)?u:u.uri),o&&(y.offset=o),l&&(y.limit=l),p&&(y.direction=p),b&&(y.mode=b),_&&(y.identifier=_),q&&(y.uri=q),this._getMappingsQueue().catch(E=>{throw new Ee({message:"Could not get mappings from local storage",relatedError:E})}).then(({mappings:E,done:H})=>{H();let K=(F,Z)=>F.uri==Z||Z&&F.notation&&F.notation[0].toLowerCase()==Z.toLowerCase();if((y.from||y.to)&&(E=E.filter(F=>{let Z=Le.default.conceptsOfMapping(F,"from").find(G=>K(G,y.from))!=null,te=Le.default.conceptsOfMapping(F,"to").find(G=>K(G,y.from))!=null,O=Le.default.conceptsOfMapping(F,"from").find(G=>K(G,y.to))!=null,ee=Le.default.conceptsOfMapping(F,"to").find(G=>K(G,y.to))!=null;return y.direction=="backward"?y.mode=="or"?y.from&&te||y.to&&O:(!y.from||te)&&(!y.to||O):y.direction=="both"?y.mode=="or"?y.from&&(Z||te)||y.to&&(O||ee):(!y.from||Z)&&(!y.to||ee)||(!y.from||te)&&(!y.to||O):y.mode=="or"?y.from&&Z||y.to&&ee:(!y.from||Z)&&(!y.to||ee)})),(y.fromScheme||y.toScheme)&&(E=E.filter(F=>{let Z=Le.default.compare(F.fromScheme,y.fromScheme),te=Le.default.compare(F.toScheme,y.fromScheme),O=Le.default.compare(F.fromScheme,y.toScheme),ee=Le.default.compare(F.toScheme,y.toScheme);return y.direction=="backward"?y.mode=="or"?y.fromScheme&&te||y.toScheme&&O:(!y.fromScheme||te)&&(!y.toScheme||O):y.direction=="both"?y.mode=="or"?y.fromScheme&&(Z||te)||y.toScheme&&(O||ee):(!y.fromScheme||Z)&&(!y.toScheme||ee)||(!y.fromScheme||te)&&(!y.toScheme||O):y.mode=="or"?y.fromScheme&&Z||y.toScheme&&ee:(!y.fromScheme||Z)&&(!y.toScheme||ee)})),y.creator){let F=y.creator.split("|");E=E.filter(Z=>(Z.creator&&Z.creator.find(te=>F.includes(Le.default.prefLabel(te))||F.includes(te.uri)))!=null)}y.type&&(E=E.filter(F=>(F.type||[Le.default.defaultMappingType.uri]).includes(y.type))),y.partOf&&(E=E.filter(F=>F.partOf!=null&&F.partOf.find(Z=>Le.default.compare(Z,{uri:y.partOf}))!=null)),y.identifier&&(E=E.filter(F=>y.identifier.split("|").map(Z=>(F.identifier||[]).includes(Z)||F.uri==Z).reduce((Z,te)=>Z||te))),y.uri&&(E=E.filter(F=>F.uri==y.uri));let Q=E.length;return E=E.sort((F,Z)=>{let te=F.modified||F.created,O=Z.modified||Z.created;return O==null?-1:te==null?1:te>O?-1:1}),E=E.slice(y.offset||0),E=E.slice(0,y.limit),E._totalCount=Q,E})})}postMapping(t){return j(this,arguments,function*({mapping:e}){if(!e)throw new W({parameter:"mapping"});let{mappings:i,done:n}=yield this._getMappingsQueue();if((!e.uri||!e.uri.startsWith(Ni))&&(e.uri&&(e.identifier||(e.identifier=[]),e.identifier.push(e.uri)),e.uri=`${Ni}${ji()}`),i.find(s=>s.uri==e.uri))throw n(),new W({parameter:"mapping",message:"Duplicate URI"});e.created||(e.created=new Date().toISOString()),e.modified||(e.modified=e.created),i.push(e),i=i.map(s=>Le.default.minifyMapping(s));try{return yield ur.default.setItem(this.localStorageKey,i),n(),e}catch(s){throw n(),s}})}putMapping(t){return j(this,arguments,function*({mapping:e}){if(!e)throw new W({parameter:"mapping"});let{mappings:i,done:n}=yield this._getMappingsQueue(),s=i.findIndex(a=>a.uri==e.uri);if(s==-1)throw n(),new W({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=i[s].created),e.modified=new Date().toISOString(),i[s]=e,i=i.map(a=>Le.default.minifyMapping(a));try{return yield ur.default.setItem(this.localStorageKey,i),n(),e}catch(a){throw n(),a}})}patchMapping(t){return j(this,arguments,function*({mapping:e}){if(!e)throw new W({parameter:"mapping"});let{mappings:i,done:n}=yield this._getMappingsQueue(),s=i.findIndex(a=>a.uri==e.uri);if(s==-1)throw n(),new W({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=i[s].created),e.modified=new Date().toISOString(),i[s]=Object.assign(i[s],e),i=i.map(a=>Le.default.minifyMapping(a));try{return yield ur.default.setItem(this.localStorageKey,i),n(),e}catch(a){throw n(),a}})}deleteMapping(t){return j(this,arguments,function*({mapping:e}){if(!e)throw new W({parameter:"mapping"});let{mappings:i,done:n}=yield this._getMappingsQueue();try{return i=i.filter(s=>s.uri!=e.uri),i=i.map(s=>Le.default.minifyMapping(s)),yield ur.default.setItem(this.localStorageKey,i),n(),!0}catch(s){throw n(),s}})}};yr.providerName="LocalMappings";yr.stored=!0;var lt=fe(He(),1);var tr=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=or(this._api.api,"/status")),this.has.mappings=!0,this.has.concordances=!0,this.has.annotations=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={mappings:"/mappings",concordances:"/concordances",annotations:"/annotations"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=or(this._api.api,e[t]))}this.has.mappings=this._api.mappings?{}:!1,this.has.mappings&&(this.has.mappings.read=!!re.default(this._config,"mappings.read",!0),this.has.mappings.create=!!re.default(this._config,"mappings.create"),this.has.mappings.update=!!re.default(this._config,"mappings.update"),this.has.mappings.delete=!!re.default(this._config,"mappings.delete"),this.has.mappings.anonymous=!!re.default(this._config,"mappings.anonymous")),this.has.concordances=this._api.concordances?{}:!1,this.has.concordances&&(this.has.concordances.read=!!re.default(this._config,"concordances.read"),this.has.concordances.create=!!re.default(this._config,"concordances.create"),this.has.concordances.update=!!re.default(this._config,"concordances.update"),this.has.concordances.delete=!!re.default(this._config,"concordances.delete")),this.has.annotations=this._api.annotations?{}:!1,this.has.annotations&&(this.has.annotations.read=!!re.default(this._config,"annotations.read"),this.has.annotations.create=!!re.default(this._config,"annotations.create"),this.has.annotations.update=!!re.default(this._config,"annotations.update"),this.has.annotations.delete=!!re.default(this._config,"annotations.delete")),this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"annotations"}}getMapping(i){return j(this,null,function*(){var n=i,{mapping:e}=n,t=J(n,["mapping"]);if(!e)throw new W({parameter:"mapping"});if(!e.uri||!e.uri.startsWith(this._api.mappings))throw new W({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});try{return yield this.axios($(R({},t),{url:e.uri,params:R(R({},this._defaultParams),t.params||{})}))}catch(s){if(re.default(s,"response.status")==404)return null;throw s}})}getMappings(Z){return j(this,null,function*(){var te=Z,{from:e,fromScheme:t,to:i,toScheme:n,creator:s,type:a,partOf:u,offset:o,limit:l,direction:p,mode:b,identifier:_,cardinality:q,annotatedBy:y,annotatedFor:E,annotatedWith:H,sort:K,order:Q}=te,F=J(te,["from","fromScheme","to","toScheme","creator","type","partOf","offset","limit","direction","mode","identifier","cardinality","annotatedBy","annotatedFor","annotatedWith","sort","order"]);let O={},ee=this._api.mappings;return e&&(O.from=be.default(e)?e:e.uri),t&&(O.fromScheme=be.default(t)?t:t.uri),i&&(O.to=be.default(i)?i:i.uri),n&&(O.toScheme=be.default(n)?n:n.uri),s&&(O.creator=be.default(s)?s:lt.default.prefLabel(s)),a&&(O.type=be.default(a)?a:a.uri),u&&(O.partOf=be.default(u)?u:u.uri),o&&(O.offset=o),l&&(O.limit=l),p&&(O.direction=p),q&&(O.cardinality=q),y&&(O.annotatedBy=y),E&&(O.annotatedFor=E),H&&(O.annotatedWith=H),b&&(O.mode=b),_&&(O.identifier=_),K&&(O.sort=K),Q&&(O.order=Q),this.axios($(R({},F),{method:"get",url:ee,params:R(R(R({},this._defaultParams),F.params||{}),O)}))})}postMapping(i){return j(this,null,function*(){var n=i,{mapping:e}=n,t=J(n,["mapping"]);if(!e)throw new W({parameter:"mapping"});return e=lt.default.minifyMapping(e),e=lt.default.addMappingIdentifiers(e),this.axios($(R({},t),{method:"post",url:this._api.mappings,data:e,params:R(R({},this._defaultParams),t.params||{})}))})}putMapping(i){return j(this,null,function*(){var n=i,{mapping:e}=n,t=J(n,["mapping"]);if(!e)throw new W({parameter:"mapping"});e=lt.default.minifyMapping(e),e=lt.default.addMappingIdentifiers(e);let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new W({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios($(R({},t),{method:"put",url:s,data:e,params:R(R({},this._defaultParams),t.params||{})}))})}patchMapping(i){return j(this,null,function*(){var n=i,{mapping:e}=n,t=J(n,["mapping"]);if(!e)throw new W({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new W({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios($(R({},t),{method:"patch",url:s,data:ar.default(e,"uri"),params:R(R({},this._defaultParams),t.params||{})}))})}deleteMapping(i){return j(this,null,function*(){var n=i,{mapping:e}=n,t=J(n,["mapping"]);if(!e)throw new W({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new W({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return yield this.axios($(R({},t),{method:"delete",url:s})),!0})}getAnnotations(i){return j(this,null,function*(){var n=i,{target:e}=n,t=J(n,["target"]);return e&&xe.default(t,"params.target",e),this.axios($(R({},t),{method:"get",url:this._api.annotations}))})}postAnnotation(i){return j(this,null,function*(){var n=i,{annotation:e}=n,t=J(n,["annotation"]);return this.axios($(R({},t),{method:"post",url:this._api.annotations,data:e}))})}putAnnotation(i){return j(this,null,function*(){var n=i,{annotation:e}=n,t=J(n,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new W({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios($(R({},t),{method:"put",url:s,data:e}))})}patchAnnotation(i){return j(this,null,function*(){var n=i,{annotation:e}=n,t=J(n,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new W({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios($(R({},t),{method:"patch",url:s,data:e}))})}deleteAnnotation(i){return j(this,null,function*(){var n=i,{annotation:e}=n,t=J(n,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new W({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return yield this.axios($(R({},t),{method:"delete",url:s})),!0})}getConcordances(e){return j(this,null,function*(){return this.axios($(R({},e),{method:"get",url:this._api.concordances}))})}postConcordance(i){return j(this,null,function*(){var n=i,{concordance:e}=n,t=J(n,["concordance"]);if(!e)throw new W({parameter:"concordance"});return this.axios($(R({},t),{method:"post",url:this._api.concordances,data:e,params:R(R({},this._defaultParams),t.params||{})}))})}putConcordance(i){return j(this,null,function*(){var n=i,{concordance:e}=n,t=J(n,["concordance"]);if(!e)throw new W({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new W({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios($(R({},t),{method:"put",url:s,data:e,params:R(R({},this._defaultParams),t.params||{})}))})}patchConcordance(i){return j(this,null,function*(){var n=i,{concordance:e}=n,t=J(n,["concordance"]);if(!e)throw new W({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new W({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios($(R({},t),{method:"patch",url:s,data:ar.default(e,"uri"),params:R(R({},this._defaultParams),t.params||{})}))})}deleteConcordance(i){return j(this,null,function*(){var n=i,{concordance:e}=n,t=J(n,["concordance"]);if(!e)throw new W({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new W({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return yield this.axios($(R({},t),{method:"delete",url:s})),!0})}};tr.providerName="MappingsApi";tr.stored=!0;var ht=fe(He(),1);var Ss={},_r=class extends le{get _cache(){return Ss[this.uri]}_prepare(){Ss[this.uri]=[],this._occurrencesSupportedSchemes=[],this.has.occurrences=!0,this.has.mappings=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_occurrencesIsSupported(e){return j(this,null,function*(){if(!(this._occurrencesSupportedSchemes&&this._occurrencesSupportedSchemes.length))try{let i=or(this._api.api,"voc"),n=yield this.axios({method:"get",url:i});this._occurrencesSupportedSchemes=n||[]}catch(i){}let t=!1;for(let i of this._occurrencesSupportedSchemes)ht.default.compare(e,i)&&(t=!0);return t})}getMappings(e){return j(this,null,function*(){let t=yield this.getOccurrences(e),i=e.from,n=re.default(i,"inScheme[0]")||e.fromScheme,s=e.to,a=re.default(s,"inScheme[0]")||e.toScheme,u=[];for(let o of t){if(!o)continue;let l={};l.from=re.default(o,"memberSet[0]"),l.from?l.from={memberSet:[l.from]}:l.from=null,l.fromScheme=re.default(o,"memberSet[0].inScheme[0]"),l.to=re.default(o,"memberSet[1]"),l.to?l.to={memberSet:[l.to]}:l.to={memberSet:[]},l.toScheme=re.default(o,"memberSet[1].inScheme[0]"),(i&&ht.default.compare(i,re.default(l,"to.memberSet[0]"))||s&&ht.default.compare(s,re.default(l,"from.memberSet[0]")))&&([l.from,l.fromScheme,l.to,l.toScheme]=[l.to,l.toScheme,l.from,l.fromScheme]),!l.fromScheme&&n&&(l.fromScheme=n),!l.toScheme&&a&&(l.toScheme=a),l.type=[ht.default.defaultMappingType.uri],l._occurrence=o,l=ht.default.addMappingIdentifiers(l),u.push(l)}return u._url=t._url,u})}getOccurrences(a){return j(this,null,function*(){var u=a,{from:e,to:t,concepts:i,threshold:n=0}=u,s=J(u,["from","to","concepts","threshold"]);let o=[];i=(i||[]).concat([e,t]).filter(y=>!!y);for(let y of i)o.push(this._occurrencesIsSupported(re.default(y,"inScheme[0]")).then(E=>E&&y.uri?y.uri:null));let l=yield Promise.all(o);if(l=l.filter(y=>y!=null),l.length==0)throw new W({parameter:"concepts"});o=[];for(let y of l)o.push(this._getOccurrences($(R({},s),{params:{member:y,scheme:"*",threshold:n}})));let p=yield Promise.all(o),b=as.default([],...p),_=[],q=[];for(let y=0;y<b.length;y+=1){let E=b[y];if(!E)continue;let H=E.memberSet.reduce((K,Q)=>K.concat(Q.uri),[]).sort().join(" ");_.includes(H)?q.push(y):_.push(H)}return q.forEach(y=>{delete b[y]}),b=b.filter(y=>y!=null),b=b.sort((y,E)=>parseInt(E.count||0)-parseInt(y.count||0)),b._url=p.map(y=>y._url),b})}_getOccurrences(e){return j(this,null,function*(){let t=this._cache.find(n=>rr.default(n.config.params,e.params));if(t)return t.data;let i=yield this.axios($(R({},e),{method:"get",url:this._api.api}));return this._cache.push({config:e,data:i}),this._cache.length>20&&(Ss[this.uri]=this._cache.slice(this._cache.length-20)),i})}};_r.providerName="OccurrencesApi";_r.stored=!1;var Dr=fe(He(),1);var ir=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=or(this._api.api,"/status")),this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,this.has.auth=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={schemes:"/voc",top:"/voc/top",concepts:"/voc/concepts",data:"/data",narrower:"/narrower",ancestors:"/ancestors",types:"/types",suggest:"/suggest",search:"/search"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=or(this._api.api,e[t]))}this.has.schemes=!!this._api.schemes,!this.has.schemes&&Array.isArray(this.schemes)&&(this.has.schemes=!0),this.has.top=!!this._api.top,this.has.data=!!this._api.data,this.has.concepts=!!this._api.concepts||this.has.data,this.has.narrower=!!this._api.narrower,this.has.ancestors=!!this._api.ancestors,this.has.types=!!this._api.types,this.has.suggest=!!this._api.suggest,this.has.search=!!this._api.search,this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"+created,issued,modified,editorialNote,scopeNote"}}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e,schemes:[t]}}_getSchemeUri(e){return j(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(s=>Dr.default.compare(e,s));if(t)return t.uri;if(this._rejectedSchemes.find(s=>Dr.default.compare(e,s)))return null;let n=(yield this.getSchemes({params:{uri:Dr.default.getAllUris(e).join("|")}})).find(s=>Dr.default.compare(s,e));return n?(this._approvedSchemes.push({uri:n.uri,identifier:Dr.default.getAllUris(e)}),n.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}getSchemes(e){return j(this,null,function*(){if(!this._api.schemes){if(Array.isArray(this.schemes))return this.schemes;throw new De}let t=yield this.axios($(R({},e),{method:"get",url:this._api.schemes,params:R($(R({},this._defaultParams),{limit:500}),e.params||{})}));return Array.isArray(this.schemes)?Nr(t.filter(i=>Dr.default.isContainedIn(i,this.schemes)),t):t})}getTop(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);if(!this._api.top)throw new De;if(!e)throw new W({parameter:"scheme"});let s=yield this._getSchemeUri(e);if(!s)throw new W({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Array.isArray(this._api.top)?this._api.top:this.axios($(R({},t),{method:"get",url:this._api.top,params:$(R($(R({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:s})}))})}getConcepts(i){return j(this,null,function*(){var n=i,{concepts:e}=n,t=J(n,["concepts"]);if(this.has.data===!1)throw new De;if(!e)throw new W({parameter:"concepts"});Array.isArray(e)||(e=[e]);let s=e.map(a=>a.uri).filter(a=>a!=null);return this.axios($(R({},t),{method:"get",url:this._api.data,params:$(R($(R({},this._defaultParams),{limit:500}),t.params||{}),{uri:s.join("|")})}))})}getNarrower(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!this._api.narrower)throw new De;if(!e||!e.uri)throw new W({parameter:"concept"});return this.axios($(R({},t),{method:"get",url:this._api.narrower,params:$(R($(R({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}getAncestors(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!this._api.ancestors)throw new De;if(!e||!e.uri)throw new W({parameter:"concept"});return this.axios($(R({},t),{method:"get",url:this._api.ancestors,params:$(R($(R({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}suggest(a){return j(this,null,function*(){var u=a,{use:e="notation,label",types:t=[],sort:i="score",params:n={}}=u,s=J(u,["use","types","sort","params"]);return this._search($(R({},s),{endpoint:"suggest",params:$(R({},n),{type:t.join("|"),use:e,sort:i})}))})}search(n){return j(this,null,function*(){var s=n,{types:e=[],params:t={}}=s,i=J(s,["types","params"]);return this._search($(R({},i),{endpoint:"search",params:$(R({},t),{type:e.join("|")})}))})}vocSuggest(s){return j(this,null,function*(){var a=s,{use:e="notation,label",sort:t="score",params:i={}}=a,n=J(a,["use","sort","params"]);return this._search($(R({},n),{endpoint:"voc-suggest",params:$(R({},i),{use:e,sort:t})}))})}vocSearch(e){return j(this,null,function*(){return this._search($(R({},e),{endpoint:"voc-search"}))})}_search(l){return j(this,null,function*(){var p=l,{endpoint:e,scheme:t,search:i,limit:n,offset:s,params:a,url:u}=p,o=J(p,["endpoint","scheme","search","limit","offset","params","url"]);if(u=u!=null?u:this._api[e],!u)throw new De;if(!i)throw new W({parameter:"search"});n=n||this._jskos.suggestResultLimit||100,s=s||0;let b=t&&(yield this._getSchemeUri(t));return u=u.replace("{searchTerms}",i),this.axios($(R({},o),{params:$(R(R({},this._defaultParams),a),{limit:n,count:n,offset:s,search:i,query:i,voc:b}),method:"get",url:u}))})}getTypes(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);if(!this._api.types)throw new De;if(Array.isArray(this._api.types))return this._api.types;let s=e&&(yield this._getSchemeUri(e));return s&&xe.default(t,"params.uri",s),this.axios($(R({},t),{method:"get",url:this._api.types}))})}};ir.providerName="ConceptApi";ir.providerType="http://bartoc.org/api-type/jskos";var zt=fe(He(),1);var As={},wr=class extends le{get _cache(){return As[this.uri]}_prepare(){As[this.uri]=[],this.has.mappings=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}getMappings(s){return j(this,null,function*(){var a=s,{from:e,to:t,mode:i}=a,n=J(a,["from","to","mode"]);let u=[];Ie.default(this.schemes)&&(u=this.schemes);let o,l,p=re.default(e,"inScheme[0]"),b=re.default(t,"inScheme[0]"),_,q;if(!e||zt.default.isContainedIn(p,u)?(o=!0,l=t,_=b,q=u.find(O=>zt.default.compare(O,p))||u[0]):(o=!1,l=e,_=p,q=u.find(O=>zt.default.compare(O,b))||u[0]),i!="or")return[];if(!this._api.api)throw new De;if(!l)throw new W({parameter:o?"to":"from"});let y=zt.default.languagePreference.selectLanguage(l.prefLabel);if(!y)throw new W({parameter:o?"to":"from",message:"Missing language"});let E=re.default(l,`altLabel.${y}`,[]);be.default(E)&&(E=[E]);let H=re.default(l,`prefLabel.${y}`),K=E.concat([H]);K=[H];let{url:Q,data:F}=yield this._getReconciliationResults($(R({},n),{labels:K,language:y}));F=[].concat(...Object.values(F).map(O=>O.result)).filter(O=>O),F=F.sort((O,ee)=>O.score!=ee.score?ee.score-O.score:O.match!=ee.match?O.match?-1:1:O.id.length-ee.id.length);let Z=re.default(q,"namespace",""),te=F.map(O=>({fromScheme:_,from:{memberSet:[l]},toScheme:q,to:{memberSet:[{uri:Z+O.id}]},type:[O.match?"http://www.w3.org/2004/02/skos/core#exactMatch":O.score>=80?"http://www.w3.org/2004/02/skos/core#closeMatch":"http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return o&&(te=te.map(O=>Object.assign(O,{fromScheme:O.toScheme,from:O.to,toScheme:O.fromScheme,to:O.from}))),te._url=Q,te})}_getReconciliationResults(n){return j(this,null,function*(){var s=n,{labels:e,language:t}=s,i=J(s,["labels","language"]);e=e.sort();let a=this._cache.find(q=>rr.default(q.labels,e)&&q.language==t);if(a)return a;let u={},o=0;for(let q of e)u[`q${o}`]={query:q},o+=1;let l=this._api.api;t&&(l=l.replace("{language}",t));let p=`queries=${encodeURIComponent(JSON.stringify(u))}`;xe.default(i,["headers","Content-Type"],"application/x-www-form-urlencoded");let b=yield this.axios($(R({},i),{method:"post",url:l,data:p}));b=b||{};let _={labels:e,language:t,data:b,url:`${l}${l.includes("?")?"&":"?"}${p}`};return this._cache.push(_),this._cache.length>20&&(As[this.uri]=this._cache.slice(this._cache.length-20)),_})}};wr.providerName="ReconciliationApi";wr.stored=!1;var Fr=fe(He(),1);var br=class extends le{_prepare(){this._cache=[],this.has.mappings=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}supportsScheme(e){return super.supportsScheme(e)&&re.default(e,"_registry.has.search",!1)}getMappings(u){return j(this,null,function*(){var o=u,{from:e,to:t,mode:i,selected:n,limit:s=10}=o,a=J(o,["from","to","mode","selected","limit"]);if(i!="or")return[];if(!n)throw new W({parameter:"selected"});let l=[];e&&this.supportsScheme(n.scheme[!1])?l.push(this._getMappings($(R({},a),{concept:e,sourceScheme:n.scheme[!0],targetScheme:n.scheme[!1],limit:s}))):l.push(Promise.resolve([])),t&&this.supportsScheme(n.scheme[!0])?l.push(this._getMappings($(R({},a),{concept:t,sourceScheme:n.scheme[!1],targetScheme:n.scheme[!0],limit:s,swap:!0}))):l.push(Promise.resolve([]));let[p,b]=yield Promise.all(l);for(b=b.filter(_=>!p.find(q=>Fr.default.compareMappingMembers(_,q)));p.length+b.length>s;)b.length>=p.length?b=b.slice(0,-1):p=p.slice(0,-1);return ts.default(p,b)})}_getMappings(u){return j(this,null,function*(){var o=u,{concept:e,sourceScheme:t,targetScheme:i,limit:n,swap:s=!1}=o,a=J(o,["concept","sourceScheme","targetScheme","limit","swap"]);var y;if(!e||!t||!i)return[];if(Fr.default.compare(t,i))return[];let l=Fr.default.languagePreference.selectLanguage(e.prefLabel)||this._defaultLanguages[0],p=Fr.default.prefLabel(e,{fallbackToUri:!1,language:l});if(!p)return[];let b=/^[\s\wäüöÄÜÖß]*\w/.exec(p);p=b?b[0]:p;let _=yield this._getResults($(R({},a),{label:p,targetScheme:i,limit:n}));if(!_.length&&((y=e.broader)==null?void 0:y.length))for(let E of e.broader){let H=Fr.default.prefLabel(E,{fallbackToUri:!1,language:l});if(!!H&&(_=yield this._getResults($(R({},a),{label:H,targetScheme:i,limit:n})),_.length))break}let q=_.map(E=>({fromScheme:t,from:{memberSet:[e]},toScheme:i,to:{memberSet:[E]},type:["http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return s&&(q=q.map(E=>Object.assign(E,{fromScheme:E.toScheme,from:E.to,toScheme:E.fromScheme,to:E.from}))),q})}_getResults(s){return j(this,null,function*(){var a=s,{label:e,targetScheme:t,limit:i}=a,n=J(a,["label","targetScheme","limit"]);var b;let u=(this._cache[t.uri]||{})[e];if(u&&u._limit>=i)return u;let o=re.default(t,"_registry");if(!o||o.has.search===!1)return[];let l=(b=(this._jskos.overrides||[]).find(_=>Fr.default.compare(_,t)))==null?void 0:b.search,p=yield o.search($(R({},n),{url:l,search:e,scheme:t,limit:i}));return this._cache[t.uri]||(this._cache[t.uri]={}),this._cache[t.uri][e]=p,this._cache[t.uri][e]._limit=i,p})}};br.providerName="LabelSearchSuggestion";br.stored=!1;var je=fe(He(),1);var xr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){if(!e||!t)return null;let i={},n=e.match(/(.+\/)([^/]+)\/$/);return n?(i.api=n[1]+"rest/v1/",t.VOCID=n[2],i.schemes=[t],i):null}get _language(){return this.languages[0]||this._defaultLanguages[0]||"en"}_getApiUrl(e,t,i){let n=e&&e.VOCID||re.default(this.schemes.find(a=>je.default.compare(a,e)),"VOCID");if(!n)throw new W({parameter:"scheme",message:"Missing scheme or VOCID property on scheme"});t=t||"",i=i||{},i.lang||(i.lang=this._language);let s=Object.keys(i).map(a=>`${a}=${encodeURIComponent(i[a])}`).join("&");return`${this._api.api}${n}${t}${s?"?"+s:""}`}_getDataUrl(e,{addFormatParameter:t=!0}={}){let i=re.default(e,"inScheme[0]");if(!e||!e.uri)throw new W({parameter:"concept",message:"Missing concept URI"});return this._getApiUrl(i,"/data",t?{format:"application/json"}:{})}_getSchemeUri(e){return j(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(a=>je.default.compare(e,a));if(t)return t.uri;if(this._rejectedSchemes.find(a=>je.default.compare(e,a)))return null;let i=this._getApiUrl(e,"/"),s=(yield this.axios({method:"get",url:i})).conceptschemes.find(a=>je.default.compare(a,e));return s?(this._approvedSchemes.push({uri:s.uri,identifier:je.default.getAllUris(e)}),s.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}_toJskosConcept(e,{concept:t,scheme:i,result:n,language:s}={}){if(!e)return null;t=je.default.deepCopy(t||{}),s=s||e.lang||"en",t.uri=e.uri,i&&(t.inScheme=[i]);let a=e.matchedPrefLabel||e.prefLabel||e.label;if(be.default(a))xe.default(t,`prefLabel.${s}`,a);else{a&&!Ie.default(a)&&(a=[a]);for(let l of a||[])xe.default(t,`prefLabel.${l.lang}`,l.value)}let u=e.altLabel;if(be.default(u))xe.default(t,`altLabel.${s}`,[u]);else{u&&!Ie.default(u)&&(u=[u]);for(let l of u||[])re.default(t,`altLabel.${l.lang}`)?(t.altLabel[l.lang].push(l.value),t.altLabel[l.lang]=gr.default(t.altLabel[l.lang])):xe.default(t,`altLabel.${l.lang}`,[l.value])}let o=e.notation||e["skos:notation"]||je.default.notation(t);o&&(t.notation=[o.value||o]),e.broader&&(Ie.default(e.broader)||(e.broader=[e.broader]),t.broader=e.broader.map(l=>be.default(l)?{uri:l}:l)),e.hasChildren===!0?t.narrower=[null]:e.hasChildren===!1&&(t.narrower=[]),e.type&&!Ie.default(e.type)&&(e.type=[e.type]),t.type=t.type||[];for(let l of e.type||[]){if(!je.default.isValidUri(l))continue;let p=l.slice(0,l.indexOf(":"));n&&n["@context"]&&n["@context"][p]&&(l=l.replace(p+":",n["@context"][p])),t.type.push(l)}return t.type=gr.default(t.type),t.type.length||(t.type=["http://www.w3.org/2004/02/skos/core#Concept"]),t}getSchemes(t){return j(this,null,function*(){var e=J(t,[]);let i=[];for(let n of this.schemes||[]){let s=this._getApiUrl(n,"/"),u=(yield this.axios($(R({},e),{method:"get",url:s}))).conceptschemes.find(l=>je.default.compare(l,n)),o=u&&(u.prefLabel||u.label||u.title);o&&xe.default(n,`prefLabel.${this._language}`,o),i.push(n),this._approvedSchemes=this._approvedSchemes||[],this._approvedSchemes.find(l=>je.default.compare(n,l))||this._approvedSchemes.push({uri:u.uri,identifier:je.default.getAllUris(n)})}return i})}getTop(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);let s=this._getApiUrl(e,"/topConcepts"),a=yield this._getSchemeUri(e);if(!a)throw new W({parameter:"scheme",message:"Missing or unsupported scheme or VOCID property on scheme"});xe.default(t,"params.scheme",a);let u=yield this.axios($(R({},t),{method:"get",url:s})),o=[];for(let l of u.topconcepts||[]){let p=this._toJskosConcept(l,{scheme:e,language:this._language});p.topConceptOf=[e],o.push(p)}return o})}getConcepts(i){return j(this,null,function*(){var n=i,{concepts:e}=n,t=J(n,["concepts"]);Ie.default(e)||(e=[e]),e=e.map(a=>({uri:a.uri,inScheme:a.inScheme}));let s=[];for(let a of e){let u=this._getDataUrl(a,{addFormatParameter:!1});if(!u)continue;let o=yield this.axios($(R({},t),{method:"get",url:u,params:{uri:a.uri,format:"application/json"}})),l=o&&o.graph&&o.graph.find(p=>je.default.compare(p,a));if(l){let p=this._toJskosConcept(l,{concept:a,result:o});for(let b of["broader","narrower"]){let _=l[b]||p[b];_&&!Ie.default(_)&&(_=[_]),_||(_=[]),p[b]=_.map(q=>this._toJskosConcept(o.graph.find(y=>je.default.compare(y,q)),{scheme:a.inScheme[0],result:o}))}p.ancestors=[],s.push(p)}}return s})}getNarrower(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!e||!e.uri)throw new W({parameter:"concept"});let s=e.inScheme[0],a=this._getApiUrl(s,"/children");return xe.default(t,"params.uri",e.uri),((yield this.axios($(R({},t),{method:"get",url:a}))).narrower||[]).map(l=>this._toJskosConcept(l,{scheme:s}))})}getAncestors(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!e||!e.uri)throw new W({parameter:"concept"});let s=e.inScheme[0],a=this._getApiUrl(s,"/broaderTransitive");xe.default(t,"params.uri",e.uri);let u=yield this.axios($(R({},t),{method:"get",url:a})),o=[],l=e.uri;for(;l;){if(l!=e.uri){let b=re.default(u,`broaderTransitive["${l}"]`);o=o.concat([b])}l=re.default(u,`broaderTransitive["${l}"].broader[0]`)}return o.map(b=>this._toJskosConcept(b,{scheme:s})).filter(b=>b.uri!=e.uri)})}suggest(e){return j(this,null,function*(){e._raw=!0;let t=yield this.search(e),i=[e.search,[],[],[]];for(let n of t){let s=je.default.notation(n),a=je.default.prefLabel(n);i[1].push((s?s+" ":"")+a),i[2].push(""),i[3].push(n.uri)}return t._totalCount!=null?i._totalCount=t._totalCount:i._totalCount=t.length,i})}search(a){return j(this,null,function*(){var u=a,{search:e,scheme:t,limit:i,types:n=[]}=u,s=J(u,["search","scheme","limit","types"]);let o=this._getApiUrl(t,"/search");return xe.default(s,"params.query",`${e}*`),xe.default(s,"params.unique",1),xe.default(s,"params.maxhits",i||100),xe.default(s,"params.type",n.join(" ")),((yield this.axios($(R({},s),{method:"get",url:o}))).results||[]).map(b=>this._toJskosConcept(b,{scheme:t}))})}getTypes(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);let s=this._getApiUrl(e,"/types"),a=[],u=yield this.axios($(R({},t),{method:"get",url:s}));for(let o of u&&u.types||[])o.uri!="http://www.w3.org/2004/02/skos/core#Concept"&&(o.label&&(o.prefLabel={[u["@context"]["@language"]]:o.label},delete o.label),a.push(o));return a._url=s,a})}};xr.providerName="SkosmosApi";xr.providerType="http://bartoc.org/api-type/skosmos";var fr=fe(He(),1),Ui=fe(ni(),1);var Fi="http://id.loc.gov/authorities/",Di=[{uri:`${Fi}subjects`,identifier:["http://bartoc.org/en/node/454"],notation:["LCSH"],concepts:[null],topConcepts:[]},{uri:`${Fi}names`,identifier:["http://bartoc.org/en/node/18536"],notation:["LCNAF"],concepts:[null],topConcepts:[]}],cd=`${Fi}classification`;function ld(r){let e={};e.uri=r["@id"],e.notation=(r["http://www.loc.gov/mads/rdf/v1#code"]||[]).map(n=>n["@value"]);let t=r["http://www.loc.gov/mads/rdf/v1#authoritativeLabel"]||r["http://www.w3.org/2000/01/rdf-schema#label"]||[];t.length&&(e.prefLabel={},e.prefLabel[t[0]["@language"]||"en"]=t[0]["@value"]);let i=r["http://www.w3.org/2004/02/skos/core#altLabel"]||[];i.length&&(e.altLabel={en:i.map(n=>n["@value"])});for(let n of r["http://www.w3.org/2000/01/rdf-schema#comment"]||[])e.definition=e.definition||{},e.definition.en=e.definition.en||[],e.definition.en.push(n["@value"]);return e}function _E(r){let e=ld(r);return e.namespace=e.uri+"/",e.type=["http://www.w3.org/2004/02/skos/core#ConceptScheme"],e}var Os=r=>e=>!e||!r||!r.namespace?!0:e.uri.startsWith(r.namespace);function wE(r,{scheme:e}){let t=ld(r);t.type=["http://www.w3.org/2004/02/skos/core#Concept"],t.inScheme=e?[e]:(r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme"]||[]).map(s=>Di.find(a=>a.uri===s["@id"])),(!t.inScheme.length||!t.inScheme[0])&&delete t.inScheme;let i=r["http://www.loc.gov/mads/rdf/v1#hasNarrowerAuthority"]||fr.default.compare(t.inScheme[0],{uri:cd})&&r["http://www.loc.gov/mads/rdf/v1#hasMADSCollectionMember"]||[];t.narrower=i.map(s=>({uri:s["@id"]})).filter(Os(t.inScheme&&t.inScheme[0]));let n=r["http://www.loc.gov/mads/rdf/v1#hasBroaderAuthority"]||fr.default.compare(t.inScheme[0],{uri:cd})&&r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection"]||[];return t.broader=n.map(s=>({uri:s["@id"]})).filter(Os(t.inScheme&&t.inScheme[0])),t}var Sr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!1,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!1,this.has.ancestors=!1,this.has.suggest=!0,this.has.search=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({scheme:e}={}){return!e||!Di.find(t=>fr.default.compare(t,e))?null:{schemes:[e]}}getSchemes(){return j(this,null,function*(){let e=[];for(let t of yield Promise.all(Di.filter(i=>!this.schemes||!this.schemes.length||this.schemes.find(n=>fr.default.compare(i,n))).map(i=>(0,Ui.default)({method:"get",url:`${i.uri.replace("http:","https:")}.json`}).then(({status:n,data:s})=>{if(n===200){let a=s.find(u=>i.uri===u["@id"]);if(a)return a=fr.default.merge(_E(a),i),a.topConcepts=(a.topConcepts||[]).filter(u=>u),a}return null}))))t&&e.push(t);return e})}getConcepts(t){return j(this,arguments,function*({concepts:e}){Array.isArray(e)||(e=[e]);let i=[];for(let n of yield Promise.all(e.map(s=>(0,Ui.default)({method:"get",url:`${s.uri.replace("http:","https:")}.json`}).then(({status:a,data:u})=>{if(a===200){let o=u.find(l=>s.uri===l["@id"]);return o?wE(o,{scheme:s.inScheme&&s.inScheme[0]}):null}}))))n&&i.push(n);return i})}suggest(e){return j(this,null,function*(){let t=yield this.search(e);return[e.search,t.map(i=>fr.default.prefLabel(i,{fallbackToUri:!0})),[],t.map(i=>i.uri)]})}search(s){return j(this,arguments,function*({search:e,scheme:t,limit:i,offset:n}){let a=fr.default.getAllUris(t).find(o=>o.startsWith(Fi));if(!a||!Di.find(o=>fr.default.compare(o,{uri:a})))throw new W({parameter:"scheme",message:"provided scheme is not supported (yet)"});if(!e)throw new W({parameter:"search",message:"parameter is empty or missing"});i=i||this._jskos.suggestResultLimit||100,n=n||0;let{data:u}=yield(0,Ui.default)({method:"get",url:`${a}/suggest2`.replace("http:","https:"),params:{q:e,count:i||100,offset:n,searchtype:"keyword"}});return(u.hits||[]).map(o=>({uri:o.uri,notation:[o.token],prefLabel:{en:o.aLabel},inScheme:[t]})).filter(Os(t))})}};Sr.providerName="LocApi";Sr.providerType="http://bartoc.org/api-type/loc";var kr=fe(He(),1),pd=fe(Cs(),1);function Bi(r){return r.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})}var Br={},Ar=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1}),Br[this.uri]={index:{},conceptCache:{},schemeCache:{}}}get _index(){return Br[this.uri]&&Br[this.uri].index}get _conceptCache(){return Br[this.uri]&&Br[this.uri].conceptCache}get _schemeCache(){return Br[this.uri]&&Br[this.uri].schemeCache}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{schemes:[{uri:e,identifier:kr.default.getAllUris(t).filter(n=>n!==e)}]}}_loadScheme(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);let s=kr.default.getAllUris(e);for(let y of s)if(this._schemeCache[y])return this._schemeCache[y];let a=this.schemes.find(y=>kr.default.compare(y,e));if(!a||!a.uri)throw new Qe({message:`Tried to load unsupported scheme (${e&&e.uri})`});let u=a.uri;s=gr.default(s.concat(kr.default.getAllUris(a)));let o=".json";u.endsWith("/")&&(o="index.json");let l=yield this.axios($(R({},t),{url:`${u}${o}`,_skipAdditionalParameters:!0}));if(l.id!==u)throw new Qe({message:"Skohub URL did not return expected concept scheme"});let{title:p,preferredNamespaceUri:b,hasTopConcept:_,description:q}=l;e={uri:u,identifier:s.filter(y=>y!==u)},e.prefLabel=p,Object.keys(e.prefLabel||{}).forEach(y=>{e.prefLabel[y]=Bi(e.prefLabel[y])}),e.namespace=b,e.topConcepts=(_||[]).map(y=>this._toJskosConcept(y)),e.concepts=[null],q&&(e.definition=q,Object.keys(e.definition).forEach(y=>{e.definition[y]=[Bi(e.definition[y])]}));for(let y of Object.keys(e).filter(E=>!e[E]))delete e[y];for(let y of s)this._schemeCache[y]=e;return e})}_loadConcept(i){return j(this,null,function*(){var n=i,{uri:e}=n,t=J(n,["uri"]);if(this._conceptCache[e])return this._conceptCache[e];try{let s=yield this.axios($(R({},t),{url:`${e}.json`,_skipAdditionalParameters:!0}));if(s.id!==e)throw new Qe({message:"Skohub URL did not return expected concept URI"});let a=this._toJskosConcept(s);return this._conceptCache[e]=a,a}catch(s){return null}})}_toJskosConcept(e){let t={uri:e.id};return t.prefLabel=e.prefLabel,Object.keys(t.prefLabel||{}).forEach(i=>{t.prefLabel[i]=Bi(t.prefLabel[i])}),t.narrower=(e.narrower||[]).map(i=>this._toJskosConcept(i)),t.notation=e.notation||[],e.broader&&e.broader.id&&(t.broader=[{uri:e.broader.id}]),e.inScheme&&e.inScheme.id&&(t.inScheme=[{uri:e.inScheme.id}]),e.scopeNote&&(t.scopeNote=e.scopeNote,Object.keys(t.scopeNote).forEach(i=>{t.scopeNote[i]=[Bi(t.scopeNote[i])]})),t}getSchemes(t){return j(this,null,function*(){var e=J(t,[]);return Promise.all(this.schemes.map(i=>this._loadScheme($(R({},e),{scheme:i}))))})}getTop(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);if(!e||!e.uri)throw new W({parameter:"scheme",message:"Missing scheme URI"});return e=yield this._loadScheme(R({scheme:e},t)),e.topConcepts||[]})}getConcepts(i){return j(this,null,function*(){var n=i,{concepts:e}=n,t=J(n,["concepts"]);return Ie.default(e)||(e=[e]),(yield Promise.all(e.map(({uri:s})=>this._loadConcept($(R({},t),{uri:s}))))).filter(Boolean)})}getAncestors(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!e||!e.uri)throw new W({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;if(e=yield this._loadConcept($(R({},t),{uri:e.uri})),!e||!e.broader||!e.broader.length)return[];let s=e.broader[0];return[s].concat(yield this.getAncestors(R({concept:s},t))).map(a=>({uri:a.uri}))})}getNarrower(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!e||!e.uri)throw new W({parameter:"concept"});return e.narrower&&e.narrower[0]!==null||(e=yield this._loadConcept($(R({},t),{uri:e.uri}))),e.narrower})}search(n){return j(this,arguments,function*({search:e,scheme:t,limit:i=100}){if(t=yield this._loadScheme({scheme:t}),!t||!t.uri)throw new W({parameter:"scheme"});if(!e)throw new W({parameter:"search"});let s;this._index[t.uri]||(this._index[t.uri]={});for(let o of[""].concat(this.languages)){if(this._index[t.uri][o]){s=this._index[t.uri][o];break}if(this._index[t.uri][o]!==null)try{let l=o?`.${o}.index`:".index";t.uri.endsWith("/")&&(l=`index${l}`);let p=yield this.axios({url:`${t.uri}${l}`,_skipAdditionalParameters:!0});if(p.length<100){this._index[t.uri][o]=null;continue}s=pd.default.create(),s.import(p),this._index[t.uri][o]=s;break}catch(l){this._index[t.uri][o]=null}}if(!s)throw new Qe({message:"Could not find search index for any of the available languages "+this.languages.join(",")});let a=s.search(e);return(yield this.getConcepts({concepts:a.map(o=>({uri:o}))})).slice(0,i)})}suggest(e){return j(this,null,function*(){e._raw=!0;let t=yield this.search(e),i=[e.search,[],[],[]];for(let n of t){let s=kr.default.notation(n),a=kr.default.prefLabel(n);i[1].push((s?s+" ":"")+a),i[2].push(""),i[3].push(n.uri)}return t._totalCount!=null?i._totalCount=t._totalCount:i._totalCount=t.length,i})}};Ar.providerName="Skohub";Ar.providerType="http://bartoc.org/api-type/skohub";var Wt=fe(He(),1),dd=fe(Cs(),1);var $e={},Or=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Ae.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._scheme=null}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e}}_schemeInfoToJSKOS(e){let t=e.labels.find(s=>s.lang==="x-uri").text,i={};e.labels.filter(s=>!s.lang.startsWith("x-")).forEach(s=>{i[s.lang]=s.text});let n={uri:t,prefLabel:i};return e.categories&&e.categories.length&&(n.topConcepts=[null]),e.category&&e.category.length&&(n.concepts=[null]),n}_categoryToJSKOS(e,{scheme:t,broader:i=[]}){if(!e||!t)return null;let n=e.ID,s=`${t.uri}/${n}`;if($e[t.uri].concepts[s])return $e[t.uri].concepts[s];let a={};e.labels.filter(o=>!o.lang.startsWith("x-")&&o.text).forEach(o=>{a[o.lang]=o.text.replace(`${n} `,""),$e[t.uri].searchIndex.add(s,a[o.lang])});let u={};return e.labels.filter(o=>!o.lang.startsWith("x-")&&o.description).forEach(o=>{u[o.lang]||(u[o.lang]=[]),u[o.lang].push(o.description)}),$e[t.uri].concepts[s]={uri:s,notation:[n],prefLabel:a,scopeNote:u,inScheme:[{uri:t.uri}],narrower:(e.categories||[]).map(o=>({uri:`${t.uri}/${o.ID}`})),broader:i},$e[t.uri].concepts[s]}_removeNarrower(e){return e&&Object.assign({},e,{narrower:e.narrower&&e.narrower.length?[null]:[]})}_loadSchemeData(e){return j(this,null,function*(){let t=yield this.axios($(R({},e),{method:"get",url:this._api.api,_skipAdditionalParameters:!0}));this._scheme=this._schemeInfoToJSKOS(t);let i=this._scheme.uri;$e[i]={schemeInfo:t,searchIndex:dd.default.create({tokenize:"full"}),concepts:{}};let n=(s,{broader:a=[]}={})=>{let u=this._categoryToJSKOS(s,{scheme:this._scheme,broader:a});(s.categories||[]).forEach(o=>n(o,{broader:[{uri:u.uri}]}))};t.categories.forEach(s=>n(s)),$e[i].topConcepts=t.categories.map(s=>this._categoryToJSKOS(s,{scheme:this._scheme}))})}getSchemes(){return j(this,arguments,function*(e={}){if(!this._api.api)throw new De;return this._scheme||(this._loadSchemeDataPromise||(this._loadSchemeDataPromise=this._loadSchemeData(e)),yield this._loadSchemeDataPromise),[this._scheme]})}getTop(i){return j(this,null,function*(){var n=i,{scheme:e}=n,t=J(n,["scheme"]);if(!e||!e.uri)throw new W({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes(t)),!Wt.default.compare(e,this._scheme))throw new W({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return $e[this._scheme.uri].topConcepts.map(this._removeNarrower)})}getConcepts(i){return j(this,null,function*(){var n=i,{concepts:e}=n,t=J(n,["concepts"]);return Ie.default(e)||(e=[e]),this._scheme||(yield this.getSchemes(t)),e.map(s=>$e[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower)})}getAncestors(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!e||!e.uri)throw new W({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;this._scheme||(yield this.getSchemes(t)),e=$e[this._scheme.uri].concepts[e.uri];let s=e&&e.broader&&e.broader[0];return s?[s].concat(yield this.getAncestors(R({concept:s},t))):[]})}getNarrower(i){return j(this,null,function*(){var n=i,{concept:e}=n,t=J(n,["concept"]);if(!e||!e.uri)throw new W({parameter:"concept"});return e.narrower&&e.narrower[0]!==null?e.narrower:(this._scheme||(yield this.getSchemes(t)),e=$e[this._scheme.uri].concepts[e.uri],(e&&e.narrower||[]).map(s=>$e[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower))})}search(n){return j(this,arguments,function*({search:e,scheme:t,limit:i=100}){if(!t||!t.uri)throw new W({parameter:"scheme"});if(!e)throw new W({parameter:"search"});if(!t||!t.uri)throw new W({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes()),!Wt.default.compare(t,this._scheme))throw new W({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return(yield $e[this._scheme.uri].searchIndex.search(e)).map(a=>$e[this._scheme.uri].concepts[a]).map(this._removeNarrower).slice(0,i)})}suggest(e){return j(this,null,function*(){e._raw=!0;let t=yield this.search(e),i=[e.search,[],[],[]];for(let n of t){let s=Wt.default.notation(n),a=Wt.default.prefLabel(n);i[1].push((s?s+" ":"")+a),i[2].push(""),i[3].push(n.uri)}return t._totalCount!=null?i._totalCount=t._totalCount:i._totalCount=t.length,i})}};Or.providerName="MyCoRe";Or.providerType="http://bartoc.org/api-type/mycore";var nr={[le.providerName]:le,init(r){if(this[r.provider])return new this[r.provider](r);throw new Hr},addProvider(r){if(r.prototype instanceof le||r===le)this[r.providerName]=r;else throw new Hr}};nr.addProvider(ir);nr.addProvider(tr);Object.values(Ht).forEach(r=>{nr.addProvider(r)});var Es={},Cr=class{constructor(e){this.config=e,this.axios=md.default.create()}setConfig(e){this.config=e}get config(){return this._config}set config(e){e=e||{},e.registries=e.registries||[],e.registries=e.registries.map(t=>nr.init(t)).filter(t=>t),e.registries.forEach(t=>{t.cdk=this}),this._config=e}get providers(){return nr}createInstance(e){return new Cr(e)}loadConfig(e){return j(this,null,function*(){let t=yield this.axios.get(e);this.config=t.data})}loadBuildInfo(a){var u=a,{url:e,buildInfo:t=null,interval:i=6e4,callback:n}=u,s=J(u,["url","buildInfo","interval","callback"]);if(!e&&!this.config.cocodaBaseUrl)throw new Ee({message:"Could not determine URL to load build config."});return e||(e=`${this.config.cocodaBaseUrl}build-info.json`),this.repeat($(R({},s),{function:()=>j(this,null,function*(){return(yield this.axios.get(e,{headers:{"Cache-Control":"no-cache"}})).data}),interval:i,callback:(o,l,p)=>{o?n(o):(p||!p&&t&&!rr.default(l,t))&&n(null,l,p||t)}}))}getRegistryForUri(e){return this.config.registries.find(t=>t.uri==e)}initializeRegistry(e){return e=nr.init(e),e.cdk=this,e}addProvider(e){nr.addProvider(e)}static addProvider(e){nr.addProvider(e)}repeat({function:e,interval:t=15e3,callback:i,callImmediately:n=!0}={}){if(!e)throw new W({parameter:"function"});if(typeof e!="function")throw new W({parameter:"function",message:"function needs to be a function"});let s=()=>j(this,null,function*(){return e()});if(t=parseInt(t),isNaN(t))throw new W({parameter:"interval"});if(!i)throw new W({parameter:"callback"});if(typeof i!="function")throw new W({parameter:"callback",message:"callback needs to be a function"});let a={timer:null,result:null,error:null,isPaused:!1,interval:t},u=_=>{let q=a.result;rr.default(q,_)||(a.result=_,a.error=null,i(null,_,q))},o=_=>{a.error=_,i(_)},l=_=>{a.isPaused||(a.timer=setTimeout(()=>{_()},a.interval))},p=()=>s().then(u).catch(o).then(()=>l(p)),b=(_=n)=>{_?p():l(p)};return b(),{start:(..._)=>{a.isPaused=!1,b(..._)},stop:()=>{a.isPaused=!0,a.timer?clearTimeout(a.timer):setTimeout(()=>{a.timer&&clearTimeout(a.timer)},a.interval)},get isPaused(){return a.isPaused},get lastResult(){return a.result},get hasErrored(){return!!a.error},get interval(){return a.interval},set interval(_){a.interval=_}}}getSchemes(){return j(this,arguments,function*(e={}){let t=[],i=[];for(let n of this.config.registries)if(n.has.schemes!==!1){let s=n.getSchemes(e).then(a=>{for(let u of a){u._registry=n,u.__DETAILSLOADED__=1,u.type=u.type||["http://www.w3.org/2004/02/skos/core#ConceptScheme"];let o=t.find(_=>qr.default.compare(_,u)),l,p,b=!1;if(o){l=this.config.registries.indexOf(n),l!=-1&&(l=this.config.registries.length-l),p=this.config.registries.indexOf(re.default(o,"_registry")),p!=-1&&(p=this.config.registries.length-p);let _=u.concepts?u.concepts.length==0?-1:1:0,q=o.concepts?o.concepts.length==0?-1:1:0;_>q?b=!0:_<q?b=!1:b=p<l}if(!o||b){if(b){let _=t.findIndex(q=>qr.default.compare(q,o));_!=-1&&t.splice(_,1),u=qr.default.merge(u,ar.default(o,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]})}u._registry=n,t.push(u)}else{let _=t.findIndex(q=>qr.default.compare(q,u));if(_!=-1){let q=t[_]._registry;t[_]=qr.default.merge(t[_],ar.default(u,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]}),t[_]._registry=q}}}}).catch(a=>{console.warn("Couldn't load schemes for registry",n.uri,a)});i.push(s)}return yield Promise.all(i),t.forEach(n=>{let s=n._registry;delete n._registry;let a=this.registryForScheme(n);!a||a._api.api===s._api.api?n._registry=s:n._registry=a}),qr.default.sortSchemes(t.filter(Boolean))})}registryForScheme(e){let t=e._registry;if(t)return t;for(let i of e.API||[]){let n=i,{type:s}=n,a=J(n,["type"]);let u=a.url;if(Es[u]){let o=Es[u];return Array.isArray(o._jskos.schemes)&&!qr.default.isContainedIn(e,o._jskos.schemes)&&o._jskos.schemes.push(e),o}else{let o=Object.values(nr).find(p=>p.providerType===s);if(!o||!o._registryConfigForBartocApiConfig)continue;let l=o.providerName;if(a.scheme=e,a=nr[l]._registryConfigForBartocApiConfig(a),!a)continue;a.provider=l;try{if(t=this.initializeRegistry(a),t)return Es[u]=t,t}catch(p){continue}}}return null}};var gd=new Cr;function bE(r){Object.values(Ht).forEach(e=>(r||gd).addProvider(e))}return om(xE);})();
13
- /*!
14
- localForage -- Offline Storage, Improved
15
- Version 1.10.0
16
- https://localforage.github.io/localForage
17
- (c) 2013-2017 Mozilla, Apache License 2.0
8
+ var CDK=(()=>{var Yd=Object.create;var Et=Object.defineProperty,Xd=Object.defineProperties,Zd=Object.getOwnPropertyDescriptor,Qd=Object.getOwnPropertyDescriptors,em=Object.getOwnPropertyNames,mn=Object.getOwnPropertySymbols,rm=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var ao=(r,e,t)=>e in r?Et(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))gi.call(e,t)&&ao(r,t,e[t]);if(mn)for(var t of mn(e))uo.call(e,t)&&ao(r,t,e[t]);return r},k=(r,e)=>Xd(r,Qd(e));var Ct=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var V=(r,e)=>{var t={};for(var n in r)gi.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&mn)for(var n of mn(r))e.indexOf(n)<0&&uo.call(r,n)&&(t[n]=r[n]);return t};var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),gn=(r,e)=>{for(var t in e)Et(r,t,{get:e[t],enumerable:!0})},fo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of em(e))!gi.call(r,i)&&i!==t&&Et(r,i,{get:()=>e[i],enumerable:!(n=Zd(e,i))||n.enumerable});return r};var pe=(r,e,t)=>(t=r!=null?Yd(rm(r)):{},fo(e||!r||!r.__esModule?Et(t,"default",{value:r,enumerable:!0}):t,r)),tm=r=>fo(Et({},"__esModule",{value:!0}),r);var L=(r,e,t)=>new Promise((n,i)=>{var s=a=>{try{u(t.next(a))}catch(f){i(f)}},o=a=>{try{u(t.throw(a))}catch(f){i(f)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((t=t.apply(r,e)).next())});var We=_((hP,Ho)=>{var Qm=Array.isArray;Ho.exports=Qm});var ji=_((pP,Wo)=>{var eg=typeof global=="object"&&global&&global.Object===Object&&global;Wo.exports=eg});var Ze=_((dP,Go)=>{var rg=ji(),tg=typeof self=="object"&&self&&self.Object===Object&&self,ng=rg||tg||Function("return this")();Go.exports=ng});var kr=_((mP,Ko)=>{var ig=Ze(),sg=ig.Symbol;Ko.exports=sg});var Xo=_((gP,Yo)=>{var Jo=kr(),Vo=Object.prototype,og=Vo.hasOwnProperty,ag=Vo.toString,$t=Jo?Jo.toStringTag:void 0;function ug(r){var e=og.call(r,$t),t=r[$t];try{r[$t]=void 0;var n=!0}catch(s){}var i=ag.call(r);return n&&(e?r[$t]=t:delete r[$t]),i}Yo.exports=ug});var Qo=_((yP,Zo)=>{var fg=Object.prototype,cg=fg.toString;function lg(r){return cg.call(r)}Zo.exports=lg});var br=_((vP,ta)=>{var ea=kr(),hg=Xo(),pg=Qo(),dg="[object Null]",mg="[object Undefined]",ra=ea?ea.toStringTag:void 0;function gg(r){return r==null?r===void 0?mg:dg:ra&&ra in Object(r)?hg(r):pg(r)}ta.exports=gg});var Qe=_((wP,na)=>{function yg(r){return r!=null&&typeof r=="object"}na.exports=yg});var In=_((_P,ia)=>{var vg=br(),wg=Qe(),_g="[object Symbol]";function bg(r){return typeof r=="symbol"||wg(r)&&vg(r)==_g}ia.exports=bg});var oa=_((bP,sa)=>{var Sg=We(),xg=In(),Ag=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Og=/^\w*$/;function Eg(r,e){if(Sg(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||xg(r)?!0:Og.test(r)||!Ag.test(r)||e!=null&&r in Object(e)}sa.exports=Eg});var er=_((SP,aa)=>{function Cg(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}aa.exports=Cg});var Pn=_((xP,ua)=>{var Tg=br(),Ig=er(),Pg="[object AsyncFunction]",qg="[object Function]",Rg="[object GeneratorFunction]",Mg="[object Proxy]";function Lg(r){if(!Ig(r))return!1;var e=Tg(r);return e==qg||e==Rg||e==Pg||e==Mg}ua.exports=Lg});var ca=_((AP,fa)=>{var Ng=Ze(),jg=Ng["__core-js_shared__"];fa.exports=jg});var pa=_((OP,ha)=>{var Ui=ca(),la=function(){var r=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Ug(r){return!!la&&la in r}ha.exports=Ug});var Di=_((EP,da)=>{var Dg=Function.prototype,Fg=Dg.toString;function Bg(r){if(r!=null){try{return Fg.call(r)}catch(e){}try{return r+""}catch(e){}}return""}da.exports=Bg});var ga=_((CP,ma)=>{var kg=Pn(),$g=pa(),zg=er(),Hg=Di(),Wg=/[\\^$.*+?()[\]{}|]/g,Gg=/^\[object .+?Constructor\]$/,Kg=Function.prototype,Jg=Object.prototype,Vg=Kg.toString,Yg=Jg.hasOwnProperty,Xg=RegExp("^"+Vg.call(Yg).replace(Wg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zg(r){if(!zg(r)||$g(r))return!1;var e=kg(r)?Xg:Gg;return e.test(Hg(r))}ma.exports=Zg});var va=_((TP,ya)=>{function Qg(r,e){return r==null?void 0:r[e]}ya.exports=Qg});var Sr=_((IP,wa)=>{var ey=ga(),ry=va();function ty(r,e){var t=ry(r,e);return ey(t)?t:void 0}wa.exports=ty});var zt=_((PP,_a)=>{var ny=Sr(),iy=ny(Object,"create");_a.exports=iy});var xa=_((qP,Sa)=>{var ba=zt();function sy(){this.__data__=ba?ba(null):{},this.size=0}Sa.exports=sy});var Oa=_((RP,Aa)=>{function oy(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Aa.exports=oy});var Ca=_((MP,Ea)=>{var ay=zt(),uy="__lodash_hash_undefined__",fy=Object.prototype,cy=fy.hasOwnProperty;function ly(r){var e=this.__data__;if(ay){var t=e[r];return t===uy?void 0:t}return cy.call(e,r)?e[r]:void 0}Ea.exports=ly});var Ia=_((LP,Ta)=>{var hy=zt(),py=Object.prototype,dy=py.hasOwnProperty;function my(r){var e=this.__data__;return hy?e[r]!==void 0:dy.call(e,r)}Ta.exports=my});var qa=_((NP,Pa)=>{var gy=zt(),yy="__lodash_hash_undefined__";function vy(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=gy&&e===void 0?yy:e,this}Pa.exports=vy});var Ma=_((jP,Ra)=>{var wy=xa(),_y=Oa(),by=Ca(),Sy=Ia(),xy=qa();function ot(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ot.prototype.clear=wy;ot.prototype.delete=_y;ot.prototype.get=by;ot.prototype.has=Sy;ot.prototype.set=xy;Ra.exports=ot});var Na=_((UP,La)=>{function Ay(){this.__data__=[],this.size=0}La.exports=Ay});var at=_((DP,ja)=>{function Oy(r,e){return r===e||r!==r&&e!==e}ja.exports=Oy});var Ht=_((FP,Ua)=>{var Ey=at();function Cy(r,e){for(var t=r.length;t--;)if(Ey(r[t][0],e))return t;return-1}Ua.exports=Cy});var Fa=_((BP,Da)=>{var Ty=Ht(),Iy=Array.prototype,Py=Iy.splice;function qy(r){var e=this.__data__,t=Ty(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Py.call(e,t,1),--this.size,!0}Da.exports=qy});var ka=_((kP,Ba)=>{var Ry=Ht();function My(r){var e=this.__data__,t=Ry(e,r);return t<0?void 0:e[t][1]}Ba.exports=My});var za=_(($P,$a)=>{var Ly=Ht();function Ny(r){return Ly(this.__data__,r)>-1}$a.exports=Ny});var Wa=_((zP,Ha)=>{var jy=Ht();function Uy(r,e){var t=this.__data__,n=jy(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}Ha.exports=Uy});var Wt=_((HP,Ga)=>{var Dy=Na(),Fy=Fa(),By=ka(),ky=za(),$y=Wa();function ut(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ut.prototype.clear=Dy;ut.prototype.delete=Fy;ut.prototype.get=By;ut.prototype.has=ky;ut.prototype.set=$y;Ga.exports=ut});var qn=_((WP,Ka)=>{var zy=Sr(),Hy=Ze(),Wy=zy(Hy,"Map");Ka.exports=Wy});var Ya=_((GP,Va)=>{var Ja=Ma(),Gy=Wt(),Ky=qn();function Jy(){this.size=0,this.__data__={hash:new Ja,map:new(Ky||Gy),string:new Ja}}Va.exports=Jy});var Za=_((KP,Xa)=>{function Vy(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Xa.exports=Vy});var Gt=_((JP,Qa)=>{var Yy=Za();function Xy(r,e){var t=r.__data__;return Yy(e)?t[typeof e=="string"?"string":"hash"]:t.map}Qa.exports=Xy});var ru=_((VP,eu)=>{var Zy=Gt();function Qy(r){var e=Zy(this,r).delete(r);return this.size-=e?1:0,e}eu.exports=Qy});var nu=_((YP,tu)=>{var ev=Gt();function rv(r){return ev(this,r).get(r)}tu.exports=rv});var su=_((XP,iu)=>{var tv=Gt();function nv(r){return tv(this,r).has(r)}iu.exports=nv});var au=_((ZP,ou)=>{var iv=Gt();function sv(r,e){var t=iv(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}ou.exports=sv});var Rn=_((QP,uu)=>{var ov=Ya(),av=ru(),uv=nu(),fv=su(),cv=au();function ft(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ft.prototype.clear=ov;ft.prototype.delete=av;ft.prototype.get=uv;ft.prototype.has=fv;ft.prototype.set=cv;uu.exports=ft});var lu=_((eq,cu)=>{var fu=Rn(),lv="Expected a function";function Fi(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(lv);var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return t.cache=s.set(i,o)||s,o};return t.cache=new(Fi.Cache||fu),t}Fi.Cache=fu;cu.exports=Fi});var pu=_((rq,hu)=>{var hv=lu(),pv=500;function dv(r){var e=hv(r,function(n){return t.size===pv&&t.clear(),n}),t=e.cache;return e}hu.exports=dv});var mu=_((tq,du)=>{var mv=pu(),gv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yv=/\\(\\)?/g,vv=mv(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(gv,function(t,n,i,s){e.push(i?s.replace(yv,"$1"):n||t)}),e});du.exports=vv});var Kt=_((nq,gu)=>{function wv(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}gu.exports=wv});var Su=_((iq,bu)=>{var yu=kr(),_v=Kt(),bv=We(),Sv=In(),xv=1/0,vu=yu?yu.prototype:void 0,wu=vu?vu.toString:void 0;function _u(r){if(typeof r=="string")return r;if(bv(r))return _v(r,_u)+"";if(Sv(r))return wu?wu.call(r):"";var e=r+"";return e=="0"&&1/r==-xv?"-0":e}bu.exports=_u});var Au=_((sq,xu)=>{var Av=Su();function Ov(r){return r==null?"":Av(r)}xu.exports=Ov});var Jt=_((oq,Ou)=>{var Ev=We(),Cv=oa(),Tv=mu(),Iv=Au();function Pv(r,e){return Ev(r)?r:Cv(r,e)?[r]:Tv(Iv(r))}Ou.exports=Pv});var Mn=_((aq,Eu)=>{var qv=In(),Rv=1/0;function Mv(r){if(typeof r=="string"||qv(r))return r;var e=r+"";return e=="0"&&1/r==-Rv?"-0":e}Eu.exports=Mv});var Bi=_((uq,Cu)=>{var Lv=Jt(),Nv=Mn();function jv(r,e){e=Lv(e,r);for(var t=0,n=e.length;r!=null&&t<n;)r=r[Nv(e[t++])];return t&&t==n?r:void 0}Cu.exports=jv});var Iu=_((fq,Tu)=>{var Uv=Bi();function Dv(r,e,t){var n=r==null?void 0:Uv(r,e);return n===void 0?t:n}Tu.exports=Dv});var ki=_((cq,Pu)=>{var Fv=Sr(),Bv=function(){try{var r=Fv(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();Pu.exports=Bv});var Ln=_((lq,Ru)=>{var qu=ki();function kv(r,e,t){e=="__proto__"&&qu?qu(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Ru.exports=kv});var Nn=_((hq,Mu)=>{var $v=Ln(),zv=at(),Hv=Object.prototype,Wv=Hv.hasOwnProperty;function Gv(r,e,t){var n=r[e];(!(Wv.call(r,e)&&zv(n,t))||t===void 0&&!(e in r))&&$v(r,e,t)}Mu.exports=Gv});var jn=_((pq,Lu)=>{var Kv=9007199254740991,Jv=/^(?:0|[1-9]\d*)$/;function Vv(r,e){var t=typeof r;return e=e==null?Kv:e,!!e&&(t=="number"||t!="symbol"&&Jv.test(r))&&r>-1&&r%1==0&&r<e}Lu.exports=Vv});var Uu=_((dq,ju)=>{var Yv=Nn(),Xv=Jt(),Zv=jn(),Nu=er(),Qv=Mn();function ew(r,e,t,n){if(!Nu(r))return r;e=Xv(e,r);for(var i=-1,s=e.length,o=s-1,u=r;u!=null&&++i<s;){var a=Qv(e[i]),f=t;if(a==="__proto__"||a==="constructor"||a==="prototype")return r;if(i!=o){var d=u[a];f=n?n(d,a,u):void 0,f===void 0&&(f=Nu(d)?d:Zv(e[i+1])?[]:{})}Yv(u,a,f),u=u[a]}return r}ju.exports=ew});var Fu=_((mq,Du)=>{var rw=Uu();function tw(r,e,t){return r==null?r:rw(r,e,t)}Du.exports=tw});var ku=_((gq,Bu)=>{var nw="__lodash_hash_undefined__";function iw(r){return this.__data__.set(r,nw),this}Bu.exports=iw});var zu=_((yq,$u)=>{function sw(r){return this.__data__.has(r)}$u.exports=sw});var Dn=_((vq,Hu)=>{var ow=Rn(),aw=ku(),uw=zu();function Un(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ow;++e<t;)this.add(r[e])}Un.prototype.add=Un.prototype.push=aw;Un.prototype.has=uw;Hu.exports=Un});var Gu=_((wq,Wu)=>{function fw(r,e,t,n){for(var i=r.length,s=t+(n?1:-1);n?s--:++s<i;)if(e(r[s],s,r))return s;return-1}Wu.exports=fw});var Ju=_((_q,Ku)=>{function cw(r){return r!==r}Ku.exports=cw});var Yu=_((bq,Vu)=>{function lw(r,e,t){for(var n=t-1,i=r.length;++n<i;)if(r[n]===e)return n;return-1}Vu.exports=lw});var Zu=_((Sq,Xu)=>{var hw=Gu(),pw=Ju(),dw=Yu();function mw(r,e,t){return e===e?dw(r,e,t):hw(r,pw,t)}Xu.exports=mw});var $i=_((xq,Qu)=>{var gw=Zu();function yw(r,e){var t=r==null?0:r.length;return!!t&&gw(r,e,0)>-1}Qu.exports=yw});var zi=_((Aq,ef)=>{function vw(r,e,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(e,r[n]))return!0;return!1}ef.exports=vw});var Fn=_((Oq,rf)=>{function ww(r,e){return r.has(e)}rf.exports=ww});var Hi=_((Eq,tf)=>{var _w=Sr(),bw=Ze(),Sw=_w(bw,"Set");tf.exports=Sw});var sf=_((Cq,nf)=>{function xw(){}nf.exports=xw});var Bn=_((Tq,of)=>{function Aw(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}of.exports=Aw});var uf=_((Iq,af)=>{var Wi=Hi(),Ow=sf(),Ew=Bn(),Cw=1/0,Tw=Wi&&1/Ew(new Wi([,-0]))[1]==Cw?function(r){return new Wi(r)}:Ow;af.exports=Tw});var Gi=_((Pq,ff)=>{var Iw=Dn(),Pw=$i(),qw=zi(),Rw=Fn(),Mw=uf(),Lw=Bn(),Nw=200;function jw(r,e,t){var n=-1,i=Pw,s=r.length,o=!0,u=[],a=u;if(t)o=!1,i=qw;else if(s>=Nw){var f=e?null:Mw(r);if(f)return Lw(f);o=!1,i=Rw,a=new Iw}else a=e?[]:u;e:for(;++n<s;){var d=r[n],v=e?e(d):d;if(d=t||d!==0?d:0,o&&v===v){for(var w=a.length;w--;)if(a[w]===v)continue e;e&&a.push(v),u.push(d)}else i(a,v,t)||(a!==u&&a.push(v),u.push(d))}return u}ff.exports=jw});var lf=_((qq,cf)=>{var Uw=Gi();function Dw(r){return r&&r.length?Uw(r):[]}cf.exports=Dw});var Vt=_((Rq,hf)=>{function Fw(r){return function(e){return r(e)}}hf.exports=Fw});var mf=_((Mq,df)=>{var Bw=Dn(),kw=$i(),$w=zi(),zw=Kt(),Hw=Vt(),pf=Fn(),Ww=Math.min;function Gw(r,e,t){for(var n=t?$w:kw,i=r[0].length,s=r.length,o=s,u=Array(s),a=1/0,f=[];o--;){var d=r[o];o&&e&&(d=zw(d,Hw(e))),a=Ww(d.length,a),u[o]=!t&&(e||i>=120&&d.length>=120)?new Bw(o&&d):void 0}d=r[0];var v=-1,w=u[0];e:for(;++v<i&&f.length<a;){var O=d[v],p=e?e(O):O;if(O=t||O!==0?O:0,!(w?pf(w,p):n(f,p,t))){for(o=s;--o;){var C=u[o];if(!(C?pf(C,p):n(r[o],p,t)))continue e}w&&w.push(p),f.push(O)}}return f}df.exports=Gw});var kn=_((Lq,gf)=>{function Kw(r){return r}gf.exports=Kw});var vf=_((Nq,yf)=>{function Jw(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}yf.exports=Jw});var Ki=_((jq,_f)=>{var Vw=vf(),wf=Math.max;function Yw(r,e,t){return e=wf(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,s=wf(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=t(o),Vw(r,this,u)}}_f.exports=Yw});var Sf=_((Uq,bf)=>{function Xw(r){return function(){return r}}bf.exports=Xw});var Of=_((Dq,Af)=>{var Zw=Sf(),xf=ki(),Qw=kn(),e_=xf?function(r,e){return xf(r,"toString",{configurable:!0,enumerable:!1,value:Zw(e),writable:!0})}:Qw;Af.exports=e_});var Cf=_((Fq,Ef)=>{var r_=800,t_=16,n_=Date.now;function i_(r){var e=0,t=0;return function(){var n=n_(),i=t_-(n-t);if(t=n,i>0){if(++e>=r_)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Ef.exports=i_});var Ji=_((Bq,Tf)=>{var s_=Of(),o_=Cf(),a_=o_(s_);Tf.exports=a_});var $n=_((kq,If)=>{var u_=kn(),f_=Ki(),c_=Ji();function l_(r,e){return c_(f_(r,e,u_),r+"")}If.exports=l_});var Vi=_(($q,Pf)=>{var h_=9007199254740991;function p_(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=h_}Pf.exports=p_});var ct=_((zq,qf)=>{var d_=Pn(),m_=Vi();function g_(r){return r!=null&&m_(r.length)&&!d_(r)}qf.exports=g_});var zn=_((Hq,Rf)=>{var y_=ct(),v_=Qe();function w_(r){return v_(r)&&y_(r)}Rf.exports=w_});var Lf=_((Wq,Mf)=>{var __=zn();function b_(r){return __(r)?r:[]}Mf.exports=b_});var jf=_((Gq,Nf)=>{var S_=Kt(),x_=mf(),A_=$n(),O_=Lf(),E_=A_(function(r){var e=S_(r,O_);return e.length&&e[0]===r[0]?x_(e):[]});Nf.exports=E_});var Yt=_((Kq,Uf)=>{function C_(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}Uf.exports=C_});var Ff=_((Jq,Df)=>{var T_=br(),I_=Qe(),P_="[object Arguments]";function q_(r){return I_(r)&&T_(r)==P_}Df.exports=q_});var Xt=_((Vq,$f)=>{var Bf=Ff(),R_=Qe(),kf=Object.prototype,M_=kf.hasOwnProperty,L_=kf.propertyIsEnumerable,N_=Bf(function(){return arguments}())?Bf:function(r){return R_(r)&&M_.call(r,"callee")&&!L_.call(r,"callee")};$f.exports=N_});var Gf=_((Yq,Wf)=>{var zf=kr(),j_=Xt(),U_=We(),Hf=zf?zf.isConcatSpreadable:void 0;function D_(r){return U_(r)||j_(r)||!!(Hf&&r&&r[Hf])}Wf.exports=D_});var Hn=_((Xq,Jf)=>{var F_=Yt(),B_=Gf();function Kf(r,e,t,n,i){var s=-1,o=r.length;for(t||(t=B_),i||(i=[]);++s<o;){var u=r[s];e>0&&t(u)?e>1?Kf(u,e-1,t,n,i):F_(i,u):n||(i[i.length]=u)}return i}Jf.exports=Kf});var Yf=_((Zq,Vf)=>{var k_=Hn(),$_=$n(),z_=Gi(),H_=zn(),W_=$_(function(r){return z_(k_(r,1,H_,!0))});Vf.exports=W_});var Zf=_((Qq,Xf)=>{function G_(r){return function(e,t,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var a=o[r?u:++i];if(t(s[a],a,s)===!1)break}return e}}Xf.exports=G_});var Yi=_((eR,Qf)=>{var K_=Zf(),J_=K_();Qf.exports=J_});var rc=_((rR,ec)=>{function V_(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}ec.exports=V_});var nc=_((tR,tc)=>{function Y_(){return!1}tc.exports=Y_});var ht=_((Zt,lt)=>{var X_=Ze(),Z_=nc(),oc=typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,ic=oc&&typeof lt=="object"&&lt&&!lt.nodeType&&lt,Q_=ic&&ic.exports===oc,sc=Q_?X_.Buffer:void 0,eb=sc?sc.isBuffer:void 0,rb=eb||Z_;lt.exports=rb});var uc=_((nR,ac)=>{var tb=br(),nb=Vi(),ib=Qe(),sb="[object Arguments]",ob="[object Array]",ab="[object Boolean]",ub="[object Date]",fb="[object Error]",cb="[object Function]",lb="[object Map]",hb="[object Number]",pb="[object Object]",db="[object RegExp]",mb="[object Set]",gb="[object String]",yb="[object WeakMap]",vb="[object ArrayBuffer]",wb="[object DataView]",_b="[object Float32Array]",bb="[object Float64Array]",Sb="[object Int8Array]",xb="[object Int16Array]",Ab="[object Int32Array]",Ob="[object Uint8Array]",Eb="[object Uint8ClampedArray]",Cb="[object Uint16Array]",Tb="[object Uint32Array]",Se={};Se[_b]=Se[bb]=Se[Sb]=Se[xb]=Se[Ab]=Se[Ob]=Se[Eb]=Se[Cb]=Se[Tb]=!0;Se[sb]=Se[ob]=Se[vb]=Se[ab]=Se[wb]=Se[ub]=Se[fb]=Se[cb]=Se[lb]=Se[hb]=Se[pb]=Se[db]=Se[mb]=Se[gb]=Se[yb]=!1;function Ib(r){return ib(r)&&nb(r.length)&&!!Se[tb(r)]}ac.exports=Ib});var Wn=_((Qt,pt)=>{var Pb=ji(),fc=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,en=fc&&typeof pt=="object"&&pt&&!pt.nodeType&&pt,qb=en&&en.exports===fc,Xi=qb&&Pb.process,Rb=function(){try{var r=en&&en.require&&en.require("util").types;return r||Xi&&Xi.binding&&Xi.binding("util")}catch(e){}}();pt.exports=Rb});var rn=_((iR,hc)=>{var Mb=uc(),Lb=Vt(),cc=Wn(),lc=cc&&cc.isTypedArray,Nb=lc?Lb(lc):Mb;hc.exports=Nb});var Zi=_((sR,pc)=>{var jb=rc(),Ub=Xt(),Db=We(),Fb=ht(),Bb=jn(),kb=rn(),$b=Object.prototype,zb=$b.hasOwnProperty;function Hb(r,e){var t=Db(r),n=!t&&Ub(r),i=!t&&!n&&Fb(r),s=!t&&!n&&!i&&kb(r),o=t||n||i||s,u=o?jb(r.length,String):[],a=u.length;for(var f in r)(e||zb.call(r,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Bb(f,a)))&&u.push(f);return u}pc.exports=Hb});var tn=_((oR,dc)=>{var Wb=Object.prototype;function Gb(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Wb;return r===t}dc.exports=Gb});var Qi=_((aR,mc)=>{function Kb(r,e){return function(t){return r(e(t))}}mc.exports=Kb});var yc=_((uR,gc)=>{var Jb=Qi(),Vb=Jb(Object.keys,Object);gc.exports=Vb});var es=_((fR,vc)=>{var Yb=tn(),Xb=yc(),Zb=Object.prototype,Qb=Zb.hasOwnProperty;function e0(r){if(!Yb(r))return Xb(r);var e=[];for(var t in Object(r))Qb.call(r,t)&&t!="constructor"&&e.push(t);return e}vc.exports=e0});var nn=_((cR,wc)=>{var r0=Zi(),t0=es(),n0=ct();function i0(r){return n0(r)?r0(r):t0(r)}wc.exports=i0});var bc=_((lR,_c)=>{var s0=Yi(),o0=nn();function a0(r,e){return r&&s0(r,e,o0)}_c.exports=a0});var xc=_((hR,Sc)=>{var u0=kn();function f0(r){return typeof r=="function"?r:u0}Sc.exports=f0});var Oc=_((pR,Ac)=>{var c0=bc(),l0=xc();function h0(r,e){return r&&c0(r,l0(e))}Ac.exports=h0});var Cc=_((dR,Ec)=>{var p0=br(),d0=We(),m0=Qe(),g0="[object String]";function y0(r){return typeof r=="string"||!d0(r)&&m0(r)&&p0(r)==g0}Ec.exports=y0});var Ic=_((mR,Tc)=>{var v0=Sr(),w0=Ze(),_0=v0(w0,"DataView");Tc.exports=_0});var qc=_((gR,Pc)=>{var b0=Sr(),S0=Ze(),x0=b0(S0,"Promise");Pc.exports=x0});var Mc=_((yR,Rc)=>{var A0=Sr(),O0=Ze(),E0=A0(O0,"WeakMap");Rc.exports=E0});var mt=_((vR,Bc)=>{var rs=Ic(),ts=qn(),ns=qc(),is=Hi(),ss=Mc(),Fc=br(),dt=Di(),Lc="[object Map]",C0="[object Object]",Nc="[object Promise]",jc="[object Set]",Uc="[object WeakMap]",Dc="[object DataView]",T0=dt(rs),I0=dt(ts),P0=dt(ns),q0=dt(is),R0=dt(ss),$r=Fc;(rs&&$r(new rs(new ArrayBuffer(1)))!=Dc||ts&&$r(new ts)!=Lc||ns&&$r(ns.resolve())!=Nc||is&&$r(new is)!=jc||ss&&$r(new ss)!=Uc)&&($r=function(r){var e=Fc(r),t=e==C0?r.constructor:void 0,n=t?dt(t):"";if(n)switch(n){case T0:return Dc;case I0:return Lc;case P0:return Nc;case q0:return jc;case R0:return Uc}return e});Bc.exports=$r});var $c=_((wR,kc)=>{var M0=es(),L0=mt(),N0=Xt(),j0=We(),U0=ct(),D0=ht(),F0=tn(),B0=rn(),k0="[object Map]",$0="[object Set]",z0=Object.prototype,H0=z0.hasOwnProperty;function W0(r){if(r==null)return!0;if(U0(r)&&(j0(r)||typeof r=="string"||typeof r.splice=="function"||D0(r)||B0(r)||N0(r)))return!r.length;var e=L0(r);if(e==k0||e==$0)return!r.size;if(F0(r))return!M0(r).length;for(var t in r)if(H0.call(r,t))return!1;return!0}kc.exports=W0});var Hc=_((_R,zc)=>{var G0=Wt();function K0(){this.__data__=new G0,this.size=0}zc.exports=K0});var Gc=_((bR,Wc)=>{function J0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Wc.exports=J0});var Jc=_((SR,Kc)=>{function V0(r){return this.__data__.get(r)}Kc.exports=V0});var Yc=_((xR,Vc)=>{function Y0(r){return this.__data__.has(r)}Vc.exports=Y0});var Zc=_((AR,Xc)=>{var X0=Wt(),Z0=qn(),Q0=Rn(),eS=200;function rS(r,e){var t=this.__data__;if(t instanceof X0){var n=t.__data__;if(!Z0||n.length<eS-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Q0(n)}return t.set(r,e),this.size=t.size,this}Xc.exports=rS});var Gn=_((OR,Qc)=>{var tS=Wt(),nS=Hc(),iS=Gc(),sS=Jc(),oS=Yc(),aS=Zc();function gt(r){var e=this.__data__=new tS(r);this.size=e.size}gt.prototype.clear=nS;gt.prototype.delete=iS;gt.prototype.get=sS;gt.prototype.has=oS;gt.prototype.set=aS;Qc.exports=gt});var rl=_((ER,el)=>{function uS(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}el.exports=uS});var os=_((CR,tl)=>{var fS=Dn(),cS=rl(),lS=Fn(),hS=1,pS=2;function dS(r,e,t,n,i,s){var o=t&hS,u=r.length,a=e.length;if(u!=a&&!(o&&a>u))return!1;var f=s.get(r),d=s.get(e);if(f&&d)return f==e&&d==r;var v=-1,w=!0,O=t&pS?new fS:void 0;for(s.set(r,e),s.set(e,r);++v<u;){var p=r[v],C=e[v];if(n)var G=o?n(C,p,v,e,r,s):n(p,C,v,r,e,s);if(G!==void 0){if(G)continue;w=!1;break}if(O){if(!cS(e,function(K,te){if(!lS(O,te)&&(p===K||i(p,K,t,n,s)))return O.push(te)})){w=!1;break}}else if(!(p===C||i(p,C,t,n,s))){w=!1;break}}return s.delete(r),s.delete(e),w}tl.exports=dS});var as=_((TR,nl)=>{var mS=Ze(),gS=mS.Uint8Array;nl.exports=gS});var sl=_((IR,il)=>{function yS(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}il.exports=yS});var cl=_((PR,fl)=>{var ol=kr(),al=as(),vS=at(),wS=os(),_S=sl(),bS=Bn(),SS=1,xS=2,AS="[object Boolean]",OS="[object Date]",ES="[object Error]",CS="[object Map]",TS="[object Number]",IS="[object RegExp]",PS="[object Set]",qS="[object String]",RS="[object Symbol]",MS="[object ArrayBuffer]",LS="[object DataView]",ul=ol?ol.prototype:void 0,us=ul?ul.valueOf:void 0;function NS(r,e,t,n,i,s,o){switch(t){case LS:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case MS:return!(r.byteLength!=e.byteLength||!s(new al(r),new al(e)));case AS:case OS:case TS:return vS(+r,+e);case ES:return r.name==e.name&&r.message==e.message;case IS:case qS:return r==e+"";case CS:var u=_S;case PS:var a=n&SS;if(u||(u=bS),r.size!=e.size&&!a)return!1;var f=o.get(r);if(f)return f==e;n|=xS,o.set(r,e);var d=wS(u(r),u(e),n,i,s,o);return o.delete(r),d;case RS:if(us)return us.call(r)==us.call(e)}return!1}fl.exports=NS});var fs=_((qR,ll)=>{var jS=Yt(),US=We();function DS(r,e,t){var n=e(r);return US(r)?n:jS(n,t(r))}ll.exports=DS});var pl=_((RR,hl)=>{function FS(r,e){for(var t=-1,n=r==null?0:r.length,i=0,s=[];++t<n;){var o=r[t];e(o,t,r)&&(s[i++]=o)}return s}hl.exports=FS});var cs=_((MR,dl)=>{function BS(){return[]}dl.exports=BS});var Kn=_((LR,gl)=>{var kS=pl(),$S=cs(),zS=Object.prototype,HS=zS.propertyIsEnumerable,ml=Object.getOwnPropertySymbols,WS=ml?function(r){return r==null?[]:(r=Object(r),kS(ml(r),function(e){return HS.call(r,e)}))}:$S;gl.exports=WS});var ls=_((NR,yl)=>{var GS=fs(),KS=Kn(),JS=nn();function VS(r){return GS(r,JS,KS)}yl.exports=VS});var _l=_((jR,wl)=>{var vl=ls(),YS=1,XS=Object.prototype,ZS=XS.hasOwnProperty;function QS(r,e,t,n,i,s){var o=t&YS,u=vl(r),a=u.length,f=vl(e),d=f.length;if(a!=d&&!o)return!1;for(var v=a;v--;){var w=u[v];if(!(o?w in e:ZS.call(e,w)))return!1}var O=s.get(r),p=s.get(e);if(O&&p)return O==e&&p==r;var C=!0;s.set(r,e),s.set(e,r);for(var G=o;++v<a;){w=u[v];var K=r[w],te=e[w];if(n)var D=o?n(te,K,w,e,r,s):n(K,te,w,r,e,s);if(!(D===void 0?K===te||i(K,te,t,n,s):D)){C=!1;break}G||(G=w=="constructor")}if(C&&!G){var Q=r.constructor,ne=e.constructor;Q!=ne&&"constructor"in r&&"constructor"in e&&!(typeof Q=="function"&&Q instanceof Q&&typeof ne=="function"&&ne instanceof ne)&&(C=!1)}return s.delete(r),s.delete(e),C}wl.exports=QS});var Tl=_((UR,Cl)=>{var hs=Gn(),ex=os(),rx=cl(),tx=_l(),bl=mt(),Sl=We(),xl=ht(),nx=rn(),ix=1,Al="[object Arguments]",Ol="[object Array]",Jn="[object Object]",sx=Object.prototype,El=sx.hasOwnProperty;function ox(r,e,t,n,i,s){var o=Sl(r),u=Sl(e),a=o?Ol:bl(r),f=u?Ol:bl(e);a=a==Al?Jn:a,f=f==Al?Jn:f;var d=a==Jn,v=f==Jn,w=a==f;if(w&&xl(r)){if(!xl(e))return!1;o=!0,d=!1}if(w&&!d)return s||(s=new hs),o||nx(r)?ex(r,e,t,n,i,s):rx(r,e,a,t,n,i,s);if(!(t&ix)){var O=d&&El.call(r,"__wrapped__"),p=v&&El.call(e,"__wrapped__");if(O||p){var C=O?r.value():r,G=p?e.value():e;return s||(s=new hs),i(C,G,t,n,s)}}return w?(s||(s=new hs),tx(r,e,t,n,i,s)):!1}Cl.exports=ox});var Rl=_((DR,ql)=>{var ax=Tl(),Il=Qe();function Pl(r,e,t,n,i){return r===e?!0:r==null||e==null||!Il(r)&&!Il(e)?r!==r&&e!==e:ax(r,e,t,n,Pl,i)}ql.exports=Pl});var Ll=_((FR,Ml)=>{var ux=Rl();function fx(r,e){return ux(r,e)}Ml.exports=fx});var ps=_((BR,Nl)=>{var cx=Ln(),lx=at();function hx(r,e,t){(t!==void 0&&!lx(r[e],t)||t===void 0&&!(e in r))&&cx(r,e,t)}Nl.exports=hx});var ds=_((sn,yt)=>{var px=Ze(),Fl=typeof sn=="object"&&sn&&!sn.nodeType&&sn,jl=Fl&&typeof yt=="object"&&yt&&!yt.nodeType&&yt,dx=jl&&jl.exports===Fl,Ul=dx?px.Buffer:void 0,Dl=Ul?Ul.allocUnsafe:void 0;function mx(r,e){if(e)return r.slice();var t=r.length,n=Dl?Dl(t):new r.constructor(t);return r.copy(n),n}yt.exports=mx});var Vn=_((kR,kl)=>{var Bl=as();function gx(r){var e=new r.constructor(r.byteLength);return new Bl(e).set(new Bl(r)),e}kl.exports=gx});var ms=_(($R,$l)=>{var yx=Vn();function vx(r,e){var t=e?yx(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}$l.exports=vx});var Yn=_((zR,zl)=>{function wx(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}zl.exports=wx});var Gl=_((HR,Wl)=>{var _x=er(),Hl=Object.create,bx=function(){function r(){}return function(e){if(!_x(e))return{};if(Hl)return Hl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Wl.exports=bx});var Xn=_((WR,Kl)=>{var Sx=Qi(),xx=Sx(Object.getPrototypeOf,Object);Kl.exports=xx});var gs=_((GR,Jl)=>{var Ax=Gl(),Ox=Xn(),Ex=tn();function Cx(r){return typeof r.constructor=="function"&&!Ex(r)?Ax(Ox(r)):{}}Jl.exports=Cx});var ys=_((KR,Yl)=>{var Tx=br(),Ix=Xn(),Px=Qe(),qx="[object Object]",Rx=Function.prototype,Mx=Object.prototype,Vl=Rx.toString,Lx=Mx.hasOwnProperty,Nx=Vl.call(Object);function jx(r){if(!Px(r)||Tx(r)!=qx)return!1;var e=Ix(r);if(e===null)return!0;var t=Lx.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Vl.call(t)==Nx}Yl.exports=jx});var vs=_((JR,Xl)=>{function Ux(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}Xl.exports=Ux});var zr=_((VR,Zl)=>{var Dx=Nn(),Fx=Ln();function Bx(r,e,t,n){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var u=e[s],a=n?n(t[u],r[u],u,t,r):void 0;a===void 0&&(a=r[u]),i?Fx(t,u,a):Dx(t,u,a)}return t}Zl.exports=Bx});var eh=_((YR,Ql)=>{function kx(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}Ql.exports=kx});var th=_((XR,rh)=>{var $x=er(),zx=tn(),Hx=eh(),Wx=Object.prototype,Gx=Wx.hasOwnProperty;function Kx(r){if(!$x(r))return Hx(r);var e=zx(r),t=[];for(var n in r)n=="constructor"&&(e||!Gx.call(r,n))||t.push(n);return t}rh.exports=Kx});var vt=_((ZR,nh)=>{var Jx=Zi(),Vx=th(),Yx=ct();function Xx(r){return Yx(r)?Jx(r,!0):Vx(r)}nh.exports=Xx});var sh=_((QR,ih)=>{var Zx=zr(),Qx=vt();function eA(r){return Zx(r,Qx(r))}ih.exports=eA});var lh=_((eM,ch)=>{var oh=ps(),rA=ds(),tA=ms(),nA=Yn(),iA=gs(),ah=Xt(),uh=We(),sA=zn(),oA=ht(),aA=Pn(),uA=er(),fA=ys(),cA=rn(),fh=vs(),lA=sh();function hA(r,e,t,n,i,s,o){var u=fh(r,t),a=fh(e,t),f=o.get(a);if(f){oh(r,t,f);return}var d=s?s(u,a,t+"",r,e,o):void 0,v=d===void 0;if(v){var w=uh(a),O=!w&&oA(a),p=!w&&!O&&cA(a);d=a,w||O||p?uh(u)?d=u:sA(u)?d=nA(u):O?(v=!1,d=rA(a,!0)):p?(v=!1,d=tA(a,!0)):d=[]:fA(a)||ah(a)?(d=u,ah(u)?d=lA(u):(!uA(u)||aA(u))&&(d=iA(a))):v=!1}v&&(o.set(a,d),i(d,a,n,s,o),o.delete(a)),oh(r,t,d)}ch.exports=hA});var dh=_((rM,ph)=>{var pA=Gn(),dA=ps(),mA=Yi(),gA=lh(),yA=er(),vA=vt(),wA=vs();function hh(r,e,t,n,i){r!==e&&mA(e,function(s,o){if(i||(i=new pA),yA(s))gA(r,e,o,t,hh,n,i);else{var u=n?n(wA(r,o),s,o+"",r,e,i):void 0;u===void 0&&(u=s),dA(r,o,u)}},vA)}ph.exports=hh});var gh=_((tM,mh)=>{var _A=at(),bA=ct(),SA=jn(),xA=er();function AA(r,e,t){if(!xA(t))return!1;var n=typeof e;return(n=="number"?bA(t)&&SA(e,t.length):n=="string"&&e in t)?_A(t[e],r):!1}mh.exports=AA});var vh=_((nM,yh)=>{var OA=$n(),EA=gh();function CA(r){return OA(function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&EA(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=t[n];u&&r(e,u,n,s)}return e})}yh.exports=CA});var _h=_((iM,wh)=>{var TA=dh(),IA=vh(),PA=IA(function(r,e,t){TA(r,e,t)});wh.exports=PA});var ws=_((sM,bh)=>{function qA(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}bh.exports=qA});var xh=_((oM,Sh)=>{function RA(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}Sh.exports=RA});var Oh=_((aM,Ah)=>{var MA=zr(),LA=nn();function NA(r,e){return r&&MA(e,LA(e),r)}Ah.exports=NA});var Ch=_((uM,Eh)=>{var jA=zr(),UA=vt();function DA(r,e){return r&&jA(e,UA(e),r)}Eh.exports=DA});var Ih=_((fM,Th)=>{var FA=zr(),BA=Kn();function kA(r,e){return FA(r,BA(r),e)}Th.exports=kA});var _s=_((cM,Ph)=>{var $A=Yt(),zA=Xn(),HA=Kn(),WA=cs(),GA=Object.getOwnPropertySymbols,KA=GA?function(r){for(var e=[];r;)$A(e,HA(r)),r=zA(r);return e}:WA;Ph.exports=KA});var Rh=_((lM,qh)=>{var JA=zr(),VA=_s();function YA(r,e){return JA(r,VA(r),e)}qh.exports=YA});var bs=_((hM,Mh)=>{var XA=fs(),ZA=_s(),QA=vt();function eO(r){return XA(r,QA,ZA)}Mh.exports=eO});var Nh=_((pM,Lh)=>{var rO=Object.prototype,tO=rO.hasOwnProperty;function nO(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&tO.call(r,"index")&&(t.index=r.index,t.input=r.input),t}Lh.exports=nO});var Uh=_((dM,jh)=>{var iO=Vn();function sO(r,e){var t=e?iO(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}jh.exports=sO});var Fh=_((mM,Dh)=>{var oO=/\w*$/;function aO(r){var e=new r.constructor(r.source,oO.exec(r));return e.lastIndex=r.lastIndex,e}Dh.exports=aO});var Hh=_((gM,zh)=>{var Bh=kr(),kh=Bh?Bh.prototype:void 0,$h=kh?kh.valueOf:void 0;function uO(r){return $h?Object($h.call(r)):{}}zh.exports=uO});var Gh=_((yM,Wh)=>{var fO=Vn(),cO=Uh(),lO=Fh(),hO=Hh(),pO=ms(),dO="[object Boolean]",mO="[object Date]",gO="[object Map]",yO="[object Number]",vO="[object RegExp]",wO="[object Set]",_O="[object String]",bO="[object Symbol]",SO="[object ArrayBuffer]",xO="[object DataView]",AO="[object Float32Array]",OO="[object Float64Array]",EO="[object Int8Array]",CO="[object Int16Array]",TO="[object Int32Array]",IO="[object Uint8Array]",PO="[object Uint8ClampedArray]",qO="[object Uint16Array]",RO="[object Uint32Array]";function MO(r,e,t){var n=r.constructor;switch(e){case SO:return fO(r);case dO:case mO:return new n(+r);case xO:return cO(r,t);case AO:case OO:case EO:case CO:case TO:case IO:case PO:case qO:case RO:return pO(r,t);case gO:return new n;case yO:case _O:return new n(r);case vO:return lO(r);case wO:return new n;case bO:return hO(r)}}Wh.exports=MO});var Jh=_((vM,Kh)=>{var LO=mt(),NO=Qe(),jO="[object Map]";function UO(r){return NO(r)&&LO(r)==jO}Kh.exports=UO});var Zh=_((wM,Xh)=>{var DO=Jh(),FO=Vt(),Vh=Wn(),Yh=Vh&&Vh.isMap,BO=Yh?FO(Yh):DO;Xh.exports=BO});var ep=_((_M,Qh)=>{var kO=mt(),$O=Qe(),zO="[object Set]";function HO(r){return $O(r)&&kO(r)==zO}Qh.exports=HO});var ip=_((bM,np)=>{var WO=ep(),GO=Vt(),rp=Wn(),tp=rp&&rp.isSet,KO=tp?GO(tp):WO;np.exports=KO});var fp=_((SM,up)=>{var JO=Gn(),VO=xh(),YO=Nn(),XO=Oh(),ZO=Ch(),QO=ds(),eE=Yn(),rE=Ih(),tE=Rh(),nE=ls(),iE=bs(),sE=mt(),oE=Nh(),aE=Gh(),uE=gs(),fE=We(),cE=ht(),lE=Zh(),hE=er(),pE=ip(),dE=nn(),mE=vt(),gE=1,yE=2,vE=4,sp="[object Arguments]",wE="[object Array]",_E="[object Boolean]",bE="[object Date]",SE="[object Error]",op="[object Function]",xE="[object GeneratorFunction]",AE="[object Map]",OE="[object Number]",ap="[object Object]",EE="[object RegExp]",CE="[object Set]",TE="[object String]",IE="[object Symbol]",PE="[object WeakMap]",qE="[object ArrayBuffer]",RE="[object DataView]",ME="[object Float32Array]",LE="[object Float64Array]",NE="[object Int8Array]",jE="[object Int16Array]",UE="[object Int32Array]",DE="[object Uint8Array]",FE="[object Uint8ClampedArray]",BE="[object Uint16Array]",kE="[object Uint32Array]",be={};be[sp]=be[wE]=be[qE]=be[RE]=be[_E]=be[bE]=be[ME]=be[LE]=be[NE]=be[jE]=be[UE]=be[AE]=be[OE]=be[ap]=be[EE]=be[CE]=be[TE]=be[IE]=be[DE]=be[FE]=be[BE]=be[kE]=!0;be[SE]=be[op]=be[PE]=!1;function Zn(r,e,t,n,i,s){var o,u=e&gE,a=e&yE,f=e&vE;if(t&&(o=i?t(r,n,i,s):t(r)),o!==void 0)return o;if(!hE(r))return r;var d=fE(r);if(d){if(o=oE(r),!u)return eE(r,o)}else{var v=sE(r),w=v==op||v==xE;if(cE(r))return QO(r,u);if(v==ap||v==sp||w&&!i){if(o=a||w?{}:uE(r),!u)return a?tE(r,ZO(o,r)):rE(r,XO(o,r))}else{if(!be[v])return i?r:{};o=aE(r,v,u)}}s||(s=new JO);var O=s.get(r);if(O)return O;s.set(r,o),pE(r)?r.forEach(function(G){o.add(Zn(G,e,t,G,r,s))}):lE(r)&&r.forEach(function(G,K){o.set(K,Zn(G,e,t,K,r,s))});var p=f?a?iE:nE:a?mE:dE,C=d?void 0:p(r);return VO(C||r,function(G,K){C&&(K=G,G=r[K]),YO(o,K,Zn(G,e,t,K,r,s))}),o}up.exports=Zn});var lp=_((xM,cp)=>{function $E(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+e];return s}cp.exports=$E});var pp=_((AM,hp)=>{var zE=Bi(),HE=lp();function WE(r,e){return e.length<2?r:zE(r,HE(e,0,-1))}hp.exports=WE});var mp=_((OM,dp)=>{var GE=Jt(),KE=ws(),JE=pp(),VE=Mn();function YE(r,e){return e=GE(e,r),r=JE(r,e),r==null||delete r[VE(KE(e))]}dp.exports=YE});var yp=_((EM,gp)=>{var XE=ys();function ZE(r){return XE(r)?void 0:r}gp.exports=ZE});var wp=_((CM,vp)=>{var QE=Hn();function eC(r){var e=r==null?0:r.length;return e?QE(r,1):[]}vp.exports=eC});var bp=_((TM,_p)=>{var rC=wp(),tC=Ki(),nC=Ji();function iC(r){return nC(tC(r,void 0,rC),r+"")}_p.exports=iC});var xp=_((IM,Sp)=>{var sC=Kt(),oC=fp(),aC=mp(),uC=Jt(),fC=zr(),cC=yp(),lC=bp(),hC=bs(),pC=1,dC=2,mC=4,gC=lC(function(r,e){var t={};if(r==null)return t;var n=!1;e=sC(e,function(s){return s=uC(s,r),n||(n=s.length>1),s}),fC(r,hC(r),t),n&&(t=oC(t,pC|dC|mC,cC));for(var i=e.length;i--;)aC(t,e[i]);return t});Sp.exports=gC});var Op=_((PM,Ap)=>{var yC=Yt(),vC=Hn(),wC=Yn(),_C=We();function bC(){var r=arguments.length;if(!r)return[];for(var e=Array(r-1),t=arguments[0],n=r;n--;)e[n-1]=arguments[n];return yC(_C(t)?wC(t):[t],vC(e,1))}Ap.exports=bC});var Cp=_((qM,Ep)=>{Ep.exports=function(e){var t=function(ne,E){var ee=ne<<E|ne>>>32-E;return ee},n=function(ne){var E="",ee,J;for(ee=7;ee>=0;ee--)J=ne>>>ee*4&15,E+=J.toString(16);return E},i,s,o,u=new Array(80),a=1732584193,f=4023233417,d=2562383102,v=271733878,w=3285377520,O,p,C,G,K,te;e=unescape(encodeURIComponent(e));var D=e.length,Q=[];for(s=0;s<D-3;s+=4)o=e.charCodeAt(s)<<24|e.charCodeAt(s+1)<<16|e.charCodeAt(s+2)<<8|e.charCodeAt(s+3),Q.push(o);switch(D%4){case 0:s=2147483648;break;case 1:s=e.charCodeAt(D-1)<<24|8388608;break;case 2:s=e.charCodeAt(D-2)<<24|e.charCodeAt(D-1)<<16|32768;break;case 3:s=e.charCodeAt(D-3)<<24|e.charCodeAt(D-2)<<16|e.charCodeAt(D-1)<<8|128;break}for(Q.push(s);Q.length%16!==14;)Q.push(0);for(Q.push(D>>>29),Q.push(D<<3&4294967295),i=0;i<Q.length;i+=16){for(s=0;s<16;s++)u[s]=Q[i+s];for(s=16;s<=79;s++)u[s]=t(u[s-3]^u[s-8]^u[s-14]^u[s-16],1);for(O=a,p=f,C=d,G=v,K=w,s=0;s<=19;s++)te=t(O,5)+(p&C|~p&G)+K+u[s]+1518500249&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=20;s<=39;s++)te=t(O,5)+(p^C^G)+K+u[s]+1859775393&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=40;s<=59;s++)te=t(O,5)+(p&C|p&G|C&G)+K+u[s]+2400959708&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=60;s<=79;s++)te=t(O,5)+(p^C^G)+K+u[s]+3395469782&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;a=a+O&4294967295,f=f+p&4294967295,d=d+C&4294967295,v=v+G&4294967295,w=w+K&4294967295}return te=n(a)+n(f)+n(d)+n(v)+n(w),te.toLowerCase()}});var Dp=_((RM,Up)=>{var Ip=Cp();function Pp(r){return r.map(e=>e&&e.uri).filter(Boolean)}function Ts(r){return["memberSet","memberList","memberChoice"].find(e=>r[e])}function Tp(r){let e=Ts(r),t=r[e]?Pp(r[e]):[];return{[t.length>1?e:"memberSet"]:t.map(n=>({uri:n}))}}function qp(r){let{from:e,to:t,type:n}=r,i={from:Tp(e||{}),to:Tp(t||{}),type:[n&&n[0]||"http://www.w3.org/2004/02/skos/core#mappingRelation"]};for(let s of["from","to"])if((i[s][Ts(i[s])]||[]).length==0){let o=r[s+"Scheme"];o&&o.uri&&(i[s+"Scheme"]={uri:o.uri})}return i}function Rp(r){let{from:e,to:t}=r,n=[e,t].filter(Boolean).map(i=>Pp(i[Ts(i)]||[]));return[].concat(...n).sort()}function Mp(r){let e=JSON.stringify(qp(r),["from","fromScheme","to","toScheme","type","memberSet","memberList","memberChoice","uri"]);return"urn:jskos:mapping:content:"+Ip(e+`
9
+ `)}function Lp(r){let e=JSON.stringify(Rp(r));return"urn:jskos:mapping:members:"+Ip(e+`
10
+ `)}function Cs(r){let e=(r.identifier||[]).filter(t=>t&&!t.startsWith("urn:jskos:mapping:")).concat([Lp(r),Mp(r)]).sort();return Object.assign({},r,{identifier:e})}function Np(r,e,t){r=r&&Cs(r),e=e&&Cs(e);let n=r&&r.identifier?r.identifier.find(s=>s.startsWith(t)):null,i=e&&e.identifier?e.identifier.find(s=>s.startsWith(t)):null;return n==i}function jp(r,e){return Np(r,e,"urn:jskos:mapping:content:")}var xC=jp;function AC(r,e){return Np(r,e,"urn:jskos:mapping:members:")}Up.exports={mappingContent:qp,mappingMembers:Rp,mappingContentIdentifier:Mp,mappingMembersIdentifier:Lp,addMappingIdentifiers:Cs,compareMappings:jp,compareMappingContent:xC,compareMappingMembers:AC}});var Is=_((MM,Bp)=>{function Fp(r,e,t){var n=Array.prototype.slice,i=typeof Object.keys=="function"?Object.keys:function(f){var d=[];for(var v in f)d.push(v);return d},s=function(f,d){return f===d?!0:f instanceof Date&&d instanceof Date?f.getTime()===d.getTime():typeof f!="object"&&typeof d!="object"?f==d:a(f,d)};function o(f){return f==null}function u(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function a(f,d){if(o(f)||o(d)||f.prototype!==d.prototype)return!1;if(u(f))return u(d)?(f=n.call(f),d=n.call(d),s(f,d)):!1;try{var v=i(f),w=i(d),O,p}catch(C){return!1}if(v.length!=w.length)return!1;for(v.sort(),w.sort(),p=v.length-1;p>=0;p--)if(v[p]!=w[p])return!1;for(p=v.length-1;p>=0;p--)if(O=v[p],t){let C=t(f[O],d[O],O);if(C===void 0&&(C=Fp(f[O],d[O])),!C)return!1}else if(!s(f[O],d[O]))return!1;return!0}return s(r,e)}Bp.exports={get:(r,e,t=void 0)=>{let n=s=>String.prototype.split.call(e,s).filter(Boolean).reduce((o,u)=>o!=null?o[u]:o,r),i=n(/[,[\]]+?/)||n(/[,[\].]+?/);return i===void 0||i===r?t:i},pick:(r,e)=>e.reduce((t,n)=>(r&&r.hasOwnProperty(n)&&(t[n]=r[n]),t),{}),forOwn:(r,e)=>{for(let t in r)r.hasOwnProperty(t)&&e(r[t],t)},isEqualWith:Fp,intersection:(...r)=>r.reduce((e,t)=>e.filter(n=>t.includes(n))),isObject:r=>typeof r=="object"&&r!==null,isString:r=>!!(r&&typeof r.valueOf()=="string"),union:(r,e)=>[...new Set([...r,...e])],unionWith:(r,e,t)=>[...r,...e].reduce((n,i)=>(n.findIndex(s=>t(s,i))!==-1||n.push(i),n),[]),omitMod:(r,e)=>{for(let t of e){typeof t=="string"&&(t=t.split("."));for(let n=0;n<t.length-1;n++)r=r[t[n]];delete r[t.pop()]}}}});var Ps=_((LM,OC)=>{OC.exports=[{RELEVANCE:"very high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#closeMatch"}],definition:{de:["gleiche Bedeutung"],en:["same meaning"]},notation:["="],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u062A\u0627\u0645",be:"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u044C","be-tarask":"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",bn:"\u09B9\u09C1\u09AC\u09C1\u09B9\u09C1 \u09AE\u09BF\u09B2",bs:"ta\u010Dno podudaranje",ca:"equival\xE8ncia exacta",cs:"p\u0159esn\xE1 shoda",da:"exact match",de:"exakte \xDCbereinstimmung",en:"exact match",eo:"ekzakta ekvivalento",es:"equivalencia exacta",fi:"vastaava k\xE4site",fr:"\xE9quivalence exacte",gl:"correspondencia exacta",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05DE\u05D3\u05D5\u05D9\u05E7\u05EA",hu:"pontos egyez\xE9s",id:"sama persis",it:"corrispondenza esatta",ja:"\u5B8C\u5168\u4E00\u81F4",lv:"tie\u0161a sakrit\u012Bba",mk:"\u0442\u043E\u0447\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan tepat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062A\u06A4\u062A",nb:"eksakt samsvar",nl:"exacte match",nn:"eksakt samsvar",pl:"dok\u0142adne dopasowanie",pt:"correspond\xEAncia exata",ro:"echivalentul exact",ru:"\u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sq:"p\xEBrputhje e p\xEBrpikt\xEB",sr:"\u0442\u0430\u0447\u043D\u043E \u043F\u043E\u0434\u0443\u0434\u0430\u0440\u0430\u045A\u0435",sv:"exakt tr\xE4ff",tr:"tam e\u015Fle\u015Fme",uk:"\u0442\u043E\u0447\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u0456\u0441\u0442\u044C",ur:"\u0628\u0627\u0644\u06A9\u0644 \u062F\u0631\u0633\u062A \u062C\u0648\u0691",zh:"\u7CBE\u78BA\u5339\u914D","zh-cn":"\u7CBE\u786E\u5339\u914D","zh-hans":"\u7CBE\u786E\u5339\u914D","zh-hant":"\u7CBE\u78BA\u5339\u914D"},SHORT:"exact",uri:"http://www.w3.org/2004/02/skos/core#exactMatch"},{RELEVANCE:"high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["in etwa gleiche Bedeutung"],en:["same general idea but not fully identical meaning"]},notation:["\u2248"],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u0642\u0631\u064A\u0628","be-tarask":"\u0431\u043B\u0456\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"equival\xE8ncia inexacta",de:"hohe \xDCbereinstimmung",en:"close match",eo:"proksima kongrua\u0135o",es:"equivalencia inexacta",fi:"l\xE4hes vastaava k\xE4site",fr:"quasi-\xE9quivalence",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E8\u05D5\u05D1\u05D4",hu:"kv\xE1zi-egyen\xE9rt\xE9k\u0171s\xE9g",it:"corrispondenza parziale",mk:"\u0431\u043B\u0438\u0441\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan dekat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062F\u06A9\u062A",nb:"n\xE6rt samsvar",nl:"nabije match",nn:"n\xE6rt samsvar",pl:"cz\u0119\u015Bciowe dopasowanie",pt:"correspond\xEAncia pr\xF3xima",ru:"\u0431\u043B\u0438\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0431\u043B\u0438\u0441\u043A\u043E \u043F\u043E\u043A\u043B\u0430\u043F\u0430\u045A\u0435",sv:"n\xE4ra matchning",tr:"yak\u0131n e\u015Fle\u015Fme","zh-hans":"\u9AD8\u5EA6\u5339\u914D"},SHORT:"close",uri:"http://www.w3.org/2004/02/skos/core#closeMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["umfassendere Bedeutung"],en:["broader meaning"]},notation:[">"],prefLabel:{"be-tarask":"\u0448\u044B\u0440\u043E\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 llunyana",cs:"\u0161ir\u0161\xED koncept",de:"allgemeinere Bedeutung",en:"broad match",eo:"malstrikta kongruo",fi:"vastaava laajempi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E8\u05D7\u05D1\u05D4",it:"corrispondenza con termine pi\xF9 generico",ja:"\u90E8\u5206\u4E00\u81F4",mk:"\u043F\u043E\u0448\u0438\u0440\u043E\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"bredere samsvar",nl:"brede match",nn:"breitt samsvar",pl:"dopasowanie poj\u0119cia o szerszym znaczeniu","pt-br":"correspond\xEAncia gen\xE9rica",ru:"\u0431\u043E\u043B\u0435\u0435 \u0448\u0438\u0440\u043E\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0448\u0438\u0440\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"bred tr\xE4ff","zh-hans":"\u5E7F\u6CDB\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"}],SHORT:"broad",uri:"http://www.w3.org/2004/02/skos/core#broadMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{en:["more specific meaning"]},notation:["<"],prefLabel:{"be-tarask":"\u0432\u0443\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 estreta",de:"spezifischere Bedeutung",en:"narrow match",eo:"strikta kongruo",fi:"vastaava suppeampi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E6\u05E8\u05D4",it:"corrispondenza con termine pi\xF9 specifico",mk:"\u043F\u043E\u0442\u0435\u0441\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"smalere samsvar",nl:"nauwe match",nn:"snevert samsvar",pl:"dopasowanie poj\u0119cia o w\u0119\u017Cszym znaczeniu","pt-br":"correspond\xEAncia aproximada",ru:"\u0431\u043E\u043B\u0435\u0435 \u0443\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0443\u0436\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"smal tr\xE4ff",ur:"\u0646\u06CC\u0631\u0648 \u0645\u06CC\u0686","zh-hans":"\u6709\u9650\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#broadMatch"}],SHORT:"narrow",uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"},{RELEVANCE:"low",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["assoziative Verkn\xFCpfung unterschiedlicher Bedeutungen"],en:["associative link between meanings"]},notation:["~"],prefLabel:{"be-tarask":"\u0437\u044C\u0432\u044F\u0437\u0430\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"parella relacionada",de:"verwandte Bedeutung",en:"related match",eo:"rilata kongruo",fi:"liittyv\xE4 k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E9\u05D5\u05E8\u05D4",it:"corrispondenza correlata",lv:"saist\u012Bta sakrit\u012Bba",mk:"\u043F\u043E\u0432\u0440\u0437\u0430\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan berkaitan","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u0628\u0631\u06A9\u0627\u0621\u064A\u062A\u0646",nb:"relatert samsvar",nl:"gerelateerde match",pl:"dopasowanie poj\u0119cia o powi\u0105zanym znaczeniu",ru:"\u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",tr:"ili\u015Fkili benze\u015Fme",ur:"\u0645\u062A\u0639\u0644\u0642\u06C1 \u0645\u06CC\u0686",vec:"parente\u0142a re\u0142asionada","zh-hans":"\u5173\u8054\u5339\u914D"},SHORT:"related",uri:"http://www.w3.org/2004/02/skos/core#relatedMatch"},{RELEVANCE:"generic",definition:{de:["unbekannter Bedeutungszusammenhang"],en:["unknown type of link between meanings"]},notation:["\u2192"],prefLabel:{ar:"\u0646\u0648\u0639 \u0639\u0644\u0627\u0642\u0629 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",be:"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u044F","be-tarask":"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u044C\u043D\u044F",ca:"relaci\xF3 de mapatge",de:"allgemeine Mapping-Relation",en:"SKOS generic mapping relation",fi:"SKOS mappaussuhde",fr:"lien de correspondance SKOS",he:"\u05D9\u05D7\u05E1 \u05DE\u05D9\u05E4\u05D5\u05D9 \u05DB\u05DC\u05DC\u05D9",id:"relasi pemetaan",ja:"SKOS\u4E00\u822C\u30DE\u30C3\u30D4\u30F3\u30B0\u95A2\u4FC2",mk:"\u043F\u0440\u0435\u0441\u043B\u0438\u043A\u0443\u0432\u0430\u0447\u043A\u0438 \u043E\u0434\u043D\u043E\u0441",nb:"SKOS generisk mappingrelasjon","pt-br":"rela\xE7\xE3o gen\xE9rica de mapeamento",sr:"\u0440\u0435\u043B\u0430\u0446\u0438\u0458\u0430 \u043C\u0430\u043F\u0438\u0440\u0430\u045A\u0430",sv:"mappnings relation",zh:"\u6620\u5C04\u95DC\u4FC2","zh-hant":"\u6620\u5C04\u95DC\u4FC2"},SHORT:"",uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}]});var $p=_((NM,kp)=>{var EC=Ps(),ei={Concept:{type:["http://www.w3.org/2004/02/skos/core#Concept"]},ConceptScheme:{type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"]},ConceptMapping:{type:EC.map(r=>r.uri)},ConceptOccurrence:{type:["http://purl.org/cld/cdtype/CatalogueOrIndex"]},Registry:{type:["http://www.w3.org/ns/dcat#Catalog"]},Distribution:{type:["http://www.w3.org/ns/dcat#Distribution"]},Concordance:{type:["http://rdfs.org/ns/void#Linkset","http://rdf-vocabulary.ddialliance.org/xkos#Correspondence"]},Resource:{},Item:{},ConceptBundle:{},Annotation:{type:["Annotation","http://www.w3.org/ns/oa#Annotation"]}},Qn=Object.keys(ei).reduce((r,e)=>{for(let t of ei[e].type||[])r[t]=e;return r},{});function CC(r,e=!1){var t;if(typeof r=="string"&&r)r in Qn?t=Qn[r]:(r=r.toLowerCase().replace(/s$/,""),t=Object.keys(ei).find(n=>{let i=n.toLowerCase();if(i===r||i==="concept"+r)return!0}));else if(typeof r=="object"&&r.type){let n=Array.isArray(r.type)?r.type:[r.type];for(let i of n)if(i in Qn){t=Qn[i];break}}return e&&t?t.toLowerCase().replace(/^concept(.+)/,"$1"):t}kp.exports={objectTypes:ei,guessObjectType:CC}});var Rs=_((jM,zp)=>{var TC=/[\\^$.*+?()[\]{}|]/g,IC=r=>r.replace(TC,"\\$&"),PC=/[%ÄÖÜäöü ]/g,qs=class{constructor(e={}){if(Object.assign(this,e),this.notationPattern||(this.notationPattern=".+"),!this.uriPattern&&this.namespace){this.uriPattern="^"+IC(this.namespace);let t=this.notationPattern.replace(PC,encodeURI);this.uriPattern+="("+t+")$"}this.NOTATION_REGEX=RegExp("^"+this.notationPattern+"$"),this.uriPattern&&(this.URI_REGEX=RegExp(this.uriPattern))}isValidNotation(e){return this.NOTATION_REGEX.exec(e)}notationFromUri(e){if(this.URI_REGEX){let t=this.URI_REGEX.exec(e);if(t)return decodeURI(t[1])}}uriFromNotation(e){if(this.uriPattern)return e=encodeURI(e),this.uriPattern.replace(/^\^|\$$/g,"").replace(/\\/g,"").replace(/\(.*\)/,e)}conceptFromUri(e,t={}){let n=this.notationFromUri(e);if(n===void 0)return;let i={uri:e,notation:[n]};return t.inScheme&&(i.inScheme=[{uri:this.uri}]),t.topConcept&&(i.topConceptOf=[{uri:this.uri}]),i}conceptFromNotation(e,t){if(this.isValidNotation(e))return this.conceptFromUri(this.uriFromNotation(e),t)}};zp.exports=qs});var Ms=_((UM,Wp)=>{var qC=Is(),ri={store:null,path:"",defaults:["en"],getLanguages:Hp,selectLanguage:RC};function Hp(){return qC.get(ri.store,ri.path)||ri.defaults}function RC(r){if(!r)return null;for(let e of Hp())if(r[e])return e;for(let e of Object.keys(r))if(e!="-")return e;return null}Wp.exports=ri});var ed=_((DM,Qp)=>{var ie=Is(),MC=r=>/^[A-Z]*$/.test(r),wt=(r,e)=>e.split(".").reduce((t,n)=>t&&t[n]?t[n]:null,r),LC=r=>((r instanceof Array?r:[r]).forEach(t=>{t["@context"]="https://gbv.github.io/jskos/context.json"}),r),Us=r=>(Object.keys(r).forEach(e=>{MC(e)||e.startsWith("_")?delete r[e]:r[e]!=null&&typeof r[e]=="object"&&(r[e]=Us(r[e]))}),r),NC=Us,ti=(r,e=[],t=!0)=>{e=e.concat(["ancestors","narrower","broader","mappings","memberList","TOPCONCEPTS","MAPPINGS","PROVIDER"]);let n=Array.isArray(r)?[]:{};for(let i in r)if(!(t&&i[0]=="_")){if(e.includes(i))if(r[i]&&Array.isArray(r[i])){r[i].length>0?n[i]=[null]:n[i]=[];continue}else{n[i]=null;continue}if(i=="inScheme"){let s=[];for(let o of r.inScheme){let u={uri:o.uri};o.notation&&(u.notation=o.notation),o.prefLabel&&(u.prefLabel=o.prefLabel),s.push(u)}n.inScheme=s;continue}r[i]!=null&&typeof r[i]=="object"?n[i]=ti(r[i]):n[i]=r[i]}return n},jC=ti,Ls=r=>r?(r.uri?[r.uri]:[]).concat(r.identifier||[]):[],Ar=(r,e)=>{if(r==null&&e==null)return!0;let t=s=>s.replace("http://").replace("https://"),n=Ls(r).map(t),i=Ls(e).map(t);return ie.intersection(n,i).length>0},UC=Ar,DC=Ar,FC=Ar,BC=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#Concept")||ie.get(r,"inScheme")!=null||ie.get(r,"topConceptOf")!=null,Gp=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#ConceptScheme"),Kp=(r,e)=>{if(!r||!e)return!1;for(let t of e)if(Ar(r,t))return!0;return!1},kC=Kp,$C=(r,e=!1)=>r.sort((t,n)=>{let i=ie.get(t,"notation[0]"),s=ie.get(n,"notation[0]");if(i&&s&&(i=i.toLowerCase(),s=s.toLowerCase()),e&&(i=parseFloat(i)||i,s=parseFloat(s)||s),(!i||!s||i==s)&&(i=t.uri,s=n.uri),i&&s){if(i>s)return 1;if(i<s)return-1}return 0}),zC=r=>{let e=["notation[0]",["prefLabel.de","prefLabel.en"],"uri"];return r.sort((t,n)=>{for(let i of e){let s,o;if(Array.isArray(i))for(let u of i)s=s||ie.get(t,u),o=o||ie.get(n,u);else s=ie.get(t,i),o=ie.get(n,i);if(s!=null&&o!=null){if(s=s.toLowerCase(),o=o.toLowerCase(),s>o)return 1;if(s<o)return-1}}return 0})},HC=r=>{let e=ie.pick(ti(r),["from","to","fromScheme","toScheme","creator","contributor","type","created","modified","note","identifier","uri","partOf","mappingRelevance"]);for(let t of[e.from,e.to])ie.forOwn(t,(n,i)=>{let s=[];for(let o of n)s.push(ie.pick(o,["uri","notation"]));t[i]=s});return e.fromScheme&&(e.fromScheme=ie.pick(e.fromScheme,["uri","notation"])),e.toScheme&&(e.toScheme=ie.pick(e.toScheme,["uri","notation"])),e.partOf&&(e.partOf=e.partOf.map(t=>ie.pick(t,["uri"]))),e},Jp=Ps(),un=function(r){for(let e of Jp)if(r==e.uri)return e;return null},Vp=un("http://www.w3.org/2004/02/skos/core#mappingRelation"),WC=function(r,e=Vp){let t;return Array.isArray(r)&&r.length>0?t=r[0]:t=r,un(t)||e},GC=(r,e={})=>{let{language:t}=e,n=wt(r,"from.memberSet.0.notation.0"),i=wt(r,"to.memberSet.0.notation.0");n=n!==null?n:"",i=i!==null?i:"";let s=un(wt(r,"type.0"));s=s?s.SHORT:"";let o=_t(wt(r,"from.memberSet.0"),{language:t,fallbackToUri:!1})||"",u=_t(wt(r,"to.memberSet.0"),{language:t,fallbackToUri:!1})||"",a=_t(wt(r,"creator.0"),{language:t,fallbackToUri:!1})||"";return{fromNotation:n,toNotation:i,fromLabel:o,toLabel:u,type:s,creator:a}},KC=(r={})=>{let e=r.delimiter||",",t=r.quoteChar||'"',n=r.lineTerminator||`
11
+ `,i=t+t,s=o=>t+(o==null?"":o.split(t).join(i))+t;return o=>o.map(s).join(e)+n},Hr=(r,e)=>{let t=[];for(let n of["from","to"])(e==null||n===e)&&(t=t.concat(ie.get(r,`${n}.memberSet`)||ie.get(r,`${n}.memberChoice`)||ie.get(r,`${n}.memberList`)||[]));return t.filter(n=>n!=null)},JC=(r={})=>{let e=KC(r),t=r.language||"en";r.type==null&&(r.type=!0);let n=o=>{o=o||[];let u=[];for(let a of["from","to"]){r.schemes&&u.push(`${a}Scheme`);let f=Math.max(...o.map(d=>Hr(d,a).length),1);for(let d=0;d<f;d+=1)u.push(`${a}Notation${d?d+1:""}`),r.labels&&u.push(`${a}Label${d?d+1:""}`)}return r.type&&u.push("type"),r.creator&&u.push("creator"),e(u)},i=(o,u={})=>{let a=[];for(let f of["from","to"]){r.schemes&&a.push(ie.get(o,`${f}Scheme.notation[0]`,""));let d=Hr(o,f),v=u[`${f}Count`];v==null&&(v=d.length),v=Math.max(v,1);for(let w=0;w<v;w+=1)a.push(ie.get(d[w],"notation[0]","")),r.labels&&a.push(_t(d[w],{language:t,fallbackToUri:!1}))}return r.type&&a.push(ie.get(un(ie.get(o,"type[0]")),"SHORT","")),r.creator&&a.push(_t(ie.get(o,"creator[0]"),{language:t,fallbackToUri:!1})),e(a)};return{header:n,fromMapping:i,fromMappings:(o,u={header:!0})=>{let a="";u.header&&(a+=n(o));let f={fromCount:Math.max(...o.map(d=>Hr(d,"from").length)),toCount:Math.max(...o.map(d=>Hr(d,"to").length))};for(let d of o)a+=i(d,f);return a}}};function VC(r,e){return ie.isEqualWith(r,e,(t,n,i)=>{let s={[i]:t},o={[i]:n};if(i=="from"||i=="to")return ie.isEqualWith(Object.getOwnPropertyNames(ie.get(t,i,{})),Object.getOwnPropertyNames(ie.get(n,i,{})))?ie.isEqualWith(Hr(s,i),Hr(o,i),(u,a,f)=>{if(f!=null)return Ar(u,a)}):!1;if(i=="fromScheme"||i=="toScheme")return Ar(t,n)})}var{objectTypes:YC,guessObjectType:Ns}=$p(),XC=(r,e)=>{let t=Ns(r),n=Ns(e);return!(t&&n&&t!=n)},Yp=r=>{Array.isArray(r)&&r.sort((e,t)=>e===null?1:t===null?-1:0)},Xp=(r,e)=>(!r||!e||((Array.isArray(r.identifier)||Array.isArray(e.identifier))&&(r.identifier=ie.union(r.identifier||[],e.identifier||[])),!r.uri&&e.uri&&(r.uri=e.uri),r.uri&&e.uri&&r.uri!=e.uri&&!(r.identifier||[]).includes(e.uri)&&(r.identifier=(r.identifier||[]).concat([e.uri])),Array.isArray(r.identifier)&&r.uri&&(r.identifier=r.identifier.filter(t=>t!==r.uri)),(r.identifier||[]).length==0&&delete r.identifier,Yp(r.identifier)),r),Zp=(r,e,t)=>{if(!r||!e)return r||e;t=t||{};let n=t._path||"",i=t.detectMismatch||[],s=t.skipPaths||[],o={};return ie.forOwn(r,(u,a)=>{if(!s.includes(n+a))if(Array.isArray(u)&&Array.isArray(e[a]))o[a]=ie.unionWith(u,e[a],(f,d)=>ie.isObject(f)&&ie.isObject(d)?Ar(f,d):f===d),Yp(o[a]);else if(ie.isObject(u)&&ie.isObject(e[a]))o[a]=Zp(u,e[a],Object.assign({_path:`${n}${a}.`},t));else{if(u&&e[a]&&i.includes(n+a)&&!ie.isEqualWith(u,e[a]))throw new Error("Property mismatch in "+n+a);o[a]=u}}),ie.forOwn(e,(u,a)=>{r[a]||(o[a]=u)}),n==""&&ie.omitMod(o,s),t.mergeUris&&Xp(o,e),o},js=r=>Array.isArray(r)?r.map(e=>js(e)):ie.isObject(r)?(ie.forOwn(r,(e,t)=>{r[t]=js(e)}),r):ie.isString(r)?r.normalize():r,ZC=r=>{var e=/^[A-Za-z][A-Za-z0-9+\-.]*:(?:\/\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\.[A-Za-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\?(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$/;return r.match(e)!==null},QC={mappingsByConcepts:(r,e,t)=>{let n=["memberSet","memberList","memberChoice"],i,s;for(let o of n)i=i||ie.get(r,t+"."+o+"[0].notation[0]"),s=s||ie.get(e,t+"."+o+"[0].notation[0]");return i==null||i<s?-1:s==null||i>s?1:0}},eT=(r,e)=>!r||!e?!1:[r.uri].concat(Object.values(r.identities||{}).map(t=>t.uri)).filter(t=>t!=null).includes(ie.get(e,"creator[0].uri")),rT=Rs(),tT=Ms();function nT(r,e){let t;if(r&&r.notation&&r.notation.length)t=r.notation[0],(Gp(r)||e=="scheme")&&(t=t.toUpperCase());else if(r&&r.inScheme&&r.inScheme[0]&&r.uri)try{t=new rT(r&&r.inScheme&&r.inScheme[0]).notationFromUri(r.uri)}catch(n){}return t||""}function Ds(r,e,{language:t}={}){let n=r&&e?r[e]:r;return n&&(n[t]||(t=tT.selectLanguage(n),t))?n[t]:null}function _t(r,e={}){e=e||{};let t=e.fallbackToUri==null?!0:e.fallbackToUri;return ie.get(r,`prefLabel.${e.language}`)||Ds(r,"prefLabel",e)||(t&&r&&r.uri?r.uri:"")}function iT(r,e={}){e=e||{};let t=ie.get(r,`definition.${e.language}`)||Ds(r,"definition",e)||[];return ie.isString(t)&&(t=[t]),t}function sT(r){return ie.get(r,"stored",ie.get(r,"constructor.stored",ie.get(r,"provider.constructor.stored",!1)))}function oT(r){return ie.isString(r.creator)?r.creator:r.creator&&r.creator.id}function aT(r){return ie.get(r,"creator.name")||""}function uT(r,e){return!!(r&&ie.isString(r.creator)?e&&e.includes(r.creator):e&&r.creator&&e.includes(r.creator.id))}Qp.exports={addContext:LC,clean:Us,cleanJSKOS:NC,copyDeep:ti,deepCopy:jC,getAllUris:Ls,compare:Ar,compareObjects:UC,compareSchemes:DC,compareConcepts:FC,isConcept:BC,isScheme:Gp,isContainedIn:Kp,isSchemeInList:kC,sortConcepts:$C,sortSchemes:zC,minifyMapping:HC,mappingTypes:Jp,mappingTypeByUri:un,mappingTypeByType:WC,flattenMapping:GC,mappingCSV:JC,defaultMappingType:Vp,conceptsOfMapping:Hr,compareMappingsDeep:VC,objectTypes:YC,guessObjectType:Ns,matchObjectTypes:XC,mergeUris:Xp,merge:Zp,normalize:js,isValidUri:ZC,compareFunctions:QC,userOwnsMapping:eT,notation:nT,languageMapContent:Ds,prefLabel:_t,definition:iT,mappingRegistryIsStored:sT,annotationCreatorUri:oT,annotationCreatorName:aT,annotationCreatorMatches:uT}});var Ge=_((FM,rd)=>{var fT=Dp(),cT=ed(),lT=Rs(),hT=Ms();rd.exports=Object.assign({ConceptScheme:lT,languagePreference:hT},fT,cT)});var nd=_((td,Bs)=>{(function(r){if(typeof td=="object"&&typeof Bs!="undefined")Bs.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function n(i,s,o){function u(d,v){if(!s[d]){if(!i[d]){var w=typeof Ct=="function"&&Ct;if(!v&&w)return w(d,!0);if(a)return a(d,!0);var O=new Error("Cannot find module '"+d+"'");throw O.code="MODULE_NOT_FOUND",O}var p=s[d]={exports:{}};i[d][0].call(p.exports,function(C){var G=i[d][1][C];return u(G||C)},p,p.exports,n,i,s,o)}return s[d].exports}for(var a=typeof Ct=="function"&&Ct,f=0;f<o.length;f++)u(o[f]);return u}({1:[function(n,i,s){(function(o){"use strict";var u=o.MutationObserver||o.WebKitMutationObserver,a;if(u){var f=0,d=new u(C),v=o.document.createTextNode("");d.observe(v,{characterData:!0}),a=function(){v.data=f=++f%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var w=new o.MessageChannel;w.port1.onmessage=C,a=function(){w.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var K=o.document.createElement("script");K.onreadystatechange=function(){C(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},o.document.documentElement.appendChild(K)}:a=function(){setTimeout(C,0)};var O,p=[];function C(){O=!0;for(var K,te,D=p.length;D;){for(te=p,p=[],K=-1;++K<D;)te[K]();D=p.length}O=!1}i.exports=G;function G(K){p.push(K)===1&&!O&&a()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,s){"use strict";var o=n(1);function u(){}var a={},f=["REJECTED"],d=["FULFILLED"],v=["PENDING"];i.exports=w;function w(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,E!==u&&G(this,E)}w.prototype.catch=function(E){return this.then(null,E)},w.prototype.then=function(E,ee){if(typeof E!="function"&&this.state===d||typeof ee!="function"&&this.state===f)return this;var J=new this.constructor(u);if(this.state!==v){var ge=this.state===d?E:ee;p(J,ge,this.outcome)}else this.queue.push(new O(J,E,ee));return J};function O(E,ee,J){this.promise=E,typeof ee=="function"&&(this.onFulfilled=ee,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}O.prototype.callFulfilled=function(E){a.resolve(this.promise,E)},O.prototype.otherCallFulfilled=function(E){p(this.promise,this.onFulfilled,E)},O.prototype.callRejected=function(E){a.reject(this.promise,E)},O.prototype.otherCallRejected=function(E){p(this.promise,this.onRejected,E)};function p(E,ee,J){o(function(){var ge;try{ge=ee(J)}catch(Te){return a.reject(E,Te)}ge===E?a.reject(E,new TypeError("Cannot resolve promise with itself")):a.resolve(E,ge)})}a.resolve=function(E,ee){var J=K(C,ee);if(J.status==="error")return a.reject(E,J.value);var ge=J.value;if(ge)G(E,ge);else{E.state=d,E.outcome=ee;for(var Te=-1,we=E.queue.length;++Te<we;)E.queue[Te].callFulfilled(ee)}return E},a.reject=function(E,ee){E.state=f,E.outcome=ee;for(var J=-1,ge=E.queue.length;++J<ge;)E.queue[J].callRejected(ee);return E};function C(E){var ee=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof ee=="function")return function(){ee.apply(E,arguments)}}function G(E,ee){var J=!1;function ge(Me){J||(J=!0,a.reject(E,Me))}function Te(Me){J||(J=!0,a.resolve(E,Me))}function we(){ee(Te,ge)}var ke=K(we);ke.status==="error"&&ge(ke.value)}function K(E,ee){var J={};try{J.value=E(ee),J.status="success"}catch(ge){J.status="error",J.value=ge}return J}w.resolve=te;function te(E){return E instanceof this?E:a.resolve(new this(u),E)}w.reject=D;function D(E){var ee=new this(u);return a.reject(ee,E)}w.all=Q;function Q(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=new Array(J),we=0,ke=-1,Me=new this(u);++ke<J;)Ye(E[ke],ke);return Me;function Ye(dr,Ur){ee.resolve(dr).then(Je,function(mr){ge||(ge=!0,a.reject(Me,mr))});function Je(mr){Te[Ur]=mr,++we===J&&!ge&&(ge=!0,a.resolve(Me,Te))}}}w.race=ne;function ne(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=-1,we=new this(u);++Te<J;)ke(E[Te]);return we;function ke(Me){ee.resolve(Me).then(function(Ye){ge||(ge=!0,a.resolve(we,Ye))},function(Ye){ge||(ge=!0,a.reject(we,Ye))})}}},{1:1}],3:[function(n,i,s){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(n,i,s){"use strict";var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function u(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(c){return}}var f=a();function d(){try{if(!f||!f.open)return!1;var c=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),y=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||y)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(l){return!1}}function v(c,y){c=c||[],y=y||{};try{return new Blob(c,y)}catch(b){if(b.name!=="TypeError")throw b;for(var l=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,S=new l,x=0;x<c.length;x+=1)S.append(c[x]);return S.getBlob(y.type)}}typeof Promise=="undefined"&&n(3);var w=Promise;function O(c,y){y&&c.then(function(l){y(null,l)},function(l){y(l)})}function p(c,y,l){typeof y=="function"&&c.then(y),typeof l=="function"&&c.catch(l)}function C(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function G(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var K="local-forage-detect-blob-support",te=void 0,D={},Q=Object.prototype.toString,ne="readonly",E="readwrite";function ee(c){for(var y=c.length,l=new ArrayBuffer(y),S=new Uint8Array(l),x=0;x<y;x++)S[x]=c.charCodeAt(x);return l}function J(c){return new w(function(y){var l=c.transaction(K,E),S=v([""]);l.objectStore(K).put(S,"key"),l.onabort=function(x){x.preventDefault(),x.stopPropagation(),y(!1)},l.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),b=navigator.userAgent.match(/Edge\//);y(b||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function ge(c){return typeof te=="boolean"?w.resolve(te):J(c).then(function(y){return te=y,te})}function Te(c){var y=D[c.name],l={};l.promise=new w(function(S,x){l.resolve=S,l.reject=x}),y.deferredOperations.push(l),y.dbReady?y.dbReady=y.dbReady.then(function(){return l.promise}):y.dbReady=l.promise}function we(c){var y=D[c.name],l=y.deferredOperations.pop();if(l)return l.resolve(),l.promise}function ke(c,y){var l=D[c.name],S=l.deferredOperations.pop();if(S)return S.reject(y),S.promise}function Me(c,y){return new w(function(l,S){if(D[c.name]=D[c.name]||g(),c.db)if(y)Te(c),c.db.close();else return l(c.db);var x=[c.name];y&&x.push(c.version);var b=f.open.apply(f,x);y&&(b.onupgradeneeded=function(P){var j=b.result;try{j.createObjectStore(c.storeName),P.oldVersion<=1&&j.createObjectStore(K)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw F}}),b.onerror=function(P){P.preventDefault(),S(b.error)},b.onsuccess=function(){var P=b.result;P.onversionchange=function(j){j.target.close()},l(P),we(c)}})}function Ye(c){return Me(c,!1)}function dr(c){return Me(c,!0)}function Ur(c,y){if(!c.db)return!0;var l=!c.db.objectStoreNames.contains(c.storeName),S=c.version<c.db.version,x=c.version>c.db.version;if(S&&(c.version!==y&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),x||l){if(l){var b=c.db.version+1;b>c.version&&(c.version=b)}return!0}return!1}function Je(c){return new w(function(y,l){var S=new FileReader;S.onerror=l,S.onloadend=function(x){var b=btoa(x.target.result||"");y({__local_forage_encoded_blob:!0,data:b,type:c.type})},S.readAsBinaryString(c)})}function mr(c){var y=ee(atob(c.data));return v([y],{type:c.type})}function ar(c){return c&&c.__local_forage_encoded_blob}function fi(c){var y=this,l=y._initReady().then(function(){var S=D[y._dbInfo.name];if(S&&S.dbReady)return S.dbReady});return p(l,c,c),l}function h(c){Te(c);for(var y=D[c.name],l=y.forages,S=0;S<l.length;S++){var x=l[S];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return c.db=null,Ye(c).then(function(b){return c.db=b,Ur(c)?dr(c):b}).then(function(b){c.db=y.db=b;for(var P=0;P<l.length;P++)l[P]._dbInfo.db=b}).catch(function(b){throw ke(c,b),b})}function m(c,y,l,S){S===void 0&&(S=1);try{var x=c.db.transaction(c.storeName,y);l(null,x)}catch(b){if(S>0&&(!c.db||b.name==="InvalidStateError"||b.name==="NotFoundError"))return w.resolve().then(function(){if(!c.db||b.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),dr(c)}).then(function(){return h(c).then(function(){m(c,y,l,S-1)})}).catch(l);l(b)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function A(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=c[S];var x=D[l.name];x||(x=g(),D[l.name]=x),x.forages.push(y),y._initReady||(y._initReady=y.ready,y.ready=fi);var b=[];function P(){return w.resolve()}for(var j=0;j<x.forages.length;j++){var F=x.forages[j];F!==y&&b.push(F._initReady().catch(P))}var B=x.forages.slice(0);return w.all(b).then(function(){return l.db=x.db,Ye(l)}).then(function(z){return l.db=z,Ur(l,y._defaultConfig.version)?dr(l):z}).then(function(z){l.db=x.db=z,y._dbInfo=l;for(var Z=0;Z<B.length;Z++){var fe=B[Z];fe!==y&&(fe._dbInfo.db=l.db,fe._dbInfo.version=l.version)}})}function T(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.get(c);B.onsuccess=function(){var z=B.result;z===void 0&&(z=null),ar(z)&&(z=mr(z)),x(z)},B.onerror=function(){b(B.error)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function q(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.openCursor(),z=1;B.onsuccess=function(){var Z=B.result;if(Z){var fe=Z.value;ar(fe)&&(fe=mr(fe));var me=c(fe,Z.key,z++);me!==void 0?x(me):Z.continue()}else x()},B.onerror=function(){b(B.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function N(c,y,l){var S=this;c=C(c);var x=new w(function(b,P){var j;S.ready().then(function(){return j=S._dbInfo,Q.call(y)==="[object Blob]"?ge(j.db).then(function(F){return F?y:Je(y)}):y}).then(function(F){m(S._dbInfo,E,function(B,z){if(B)return P(B);try{var Z=z.objectStore(S._dbInfo.storeName);F===null&&(F=void 0);var fe=Z.put(F,c);z.oncomplete=function(){F===void 0&&(F=null),b(F)},z.onabort=z.onerror=function(){var me=fe.error?fe.error:fe.transaction.error;P(me)}}catch(me){P(me)}})}).catch(P)});return O(x,l),x}function R(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,E,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.delete(c);j.oncomplete=function(){x()},j.onerror=function(){b(B.error)},j.onabort=function(){var z=B.error?B.error:B.transaction.error;b(z)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function U(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,E,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.clear();P.oncomplete=function(){S()},P.onabort=P.onerror=function(){var B=F.error?F.error:F.transaction.error;x(B)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function $(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.count();F.onsuccess=function(){S(F.result)},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function X(c,y){var l=this,S=new w(function(x,b){if(c<0){x(null);return}l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=!1,z=F.openKeyCursor();z.onsuccess=function(){var Z=z.result;if(!Z){x(null);return}c===0||B?x(Z.key):(B=!0,Z.advance(c))},z.onerror=function(){b(z.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function Y(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.openKeyCursor(),B=[];F.onsuccess=function(){var z=F.result;if(!z){S(B);return}B.push(z.key),z.continue()},F.onerror=function(){x(F.error)}}catch(z){x(z)}})}).catch(x)});return O(l,c),l}function W(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;if(!c.name)x=w.reject("Invalid arguments");else{var b=c.name===l.name&&S._dbInfo.db,P=b?w.resolve(S._dbInfo.db):Ye(c).then(function(j){var F=D[c.name],B=F.forages;F.db=j;for(var z=0;z<B.length;z++)B[z]._dbInfo.db=j;return j});c.storeName?x=P.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var F=j.version+1;Te(c);var B=D[c.name],z=B.forages;j.close();for(var Z=0;Z<z.length;Z++){var fe=z[Z];fe._dbInfo.db=null,fe._dbInfo.version=F}var me=new w(function(ye,Ce){var Ee=f.open(c.name,F);Ee.onerror=function(Ve){var Ot=Ee.result;Ot.close(),Ce(Ve)},Ee.onupgradeneeded=function(){var Ve=Ee.result;Ve.deleteObjectStore(c.storeName)},Ee.onsuccess=function(){var Ve=Ee.result;Ve.close(),ye(Ve)}});return me.then(function(ye){B.db=ye;for(var Ce=0;Ce<z.length;Ce++){var Ee=z[Ce];Ee._dbInfo.db=ye,we(Ee._dbInfo)}}).catch(function(ye){throw(ke(c,ye)||w.resolve()).catch(function(){}),ye})}}):x=P.then(function(j){Te(c);var F=D[c.name],B=F.forages;j.close();for(var z=0;z<B.length;z++){var Z=B[z];Z._dbInfo.db=null}var fe=new w(function(me,ye){var Ce=f.deleteDatabase(c.name);Ce.onerror=function(){var Ee=Ce.result;Ee&&Ee.close(),ye(Ce.error)},Ce.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Ce.onsuccess=function(){var Ee=Ce.result;Ee&&Ee.close(),me(Ee)}});return fe.then(function(me){F.db=me;for(var ye=0;ye<B.length;ye++){var Ce=B[ye];we(Ce._dbInfo)}}).catch(function(me){throw(ke(c,me)||w.resolve()).catch(function(){}),me})})}return O(x,y),x}var ae={_driver:"asyncStorage",_initStorage:A,_support:d(),iterate:q,getItem:T,setItem:N,removeItem:R,clear:U,length:$,key:X,keys:Y,dropInstance:W};function oe(){return typeof openDatabase=="function"}var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e="~~local_forage_type~",ve=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ue=se.length,de="arbf",$e="blob",Pe="si08",Le="ui08",Xe="uic8",Xr="si16",Dr="si32",Zr="ur16",Fr="ui32",pn="fl32",Br="fl64",Zs=ue+de.length,Qs=Object.prototype.toString;function eo(c){var y=c.length*.75,l=c.length,S,x=0,b,P,j,F;c[c.length-1]==="="&&(y--,c[c.length-2]==="="&&y--);var B=new ArrayBuffer(y),z=new Uint8Array(B);for(S=0;S<l;S+=4)b=he.indexOf(c[S]),P=he.indexOf(c[S+1]),j=he.indexOf(c[S+2]),F=he.indexOf(c[S+3]),z[x++]=b<<2|P>>4,z[x++]=(P&15)<<4|j>>2,z[x++]=(j&3)<<6|F&63;return B}function ci(c){var y=new Uint8Array(c),l="",S;for(S=0;S<y.length;S+=3)l+=he[y[S]>>2],l+=he[(y[S]&3)<<4|y[S+1]>>4],l+=he[(y[S+1]&15)<<2|y[S+2]>>6],l+=he[y[S+2]&63];return y.length%3===2?l=l.substring(0,l.length-1)+"=":y.length%3===1&&(l=l.substring(0,l.length-2)+"=="),l}function hd(c,y){var l="";if(c&&(l=Qs.call(c)),c&&(l==="[object ArrayBuffer]"||c.buffer&&Qs.call(c.buffer)==="[object ArrayBuffer]")){var S,x=se;c instanceof ArrayBuffer?(S=c,x+=de):(S=c.buffer,l==="[object Int8Array]"?x+=Pe:l==="[object Uint8Array]"?x+=Le:l==="[object Uint8ClampedArray]"?x+=Xe:l==="[object Int16Array]"?x+=Xr:l==="[object Uint16Array]"?x+=Zr:l==="[object Int32Array]"?x+=Dr:l==="[object Uint32Array]"?x+=Fr:l==="[object Float32Array]"?x+=pn:l==="[object Float64Array]"?x+=Br:y(new Error("Failed to get type for BinaryArray"))),y(x+ci(S))}else if(l==="[object Blob]"){var b=new FileReader;b.onload=function(){var P=_e+c.type+"~"+ci(this.result);y(se+$e+P)},b.readAsArrayBuffer(c)}else try{y(JSON.stringify(c))}catch(P){console.error("Couldn't convert value into a JSON string: ",c),y(null,P)}}function pd(c){if(c.substring(0,ue)!==se)return JSON.parse(c);var y=c.substring(Zs),l=c.substring(ue,Zs),S;if(l===$e&&ve.test(y)){var x=y.match(ve);S=x[1],y=y.substring(x[0].length)}var b=eo(y);switch(l){case de:return b;case $e:return v([b],{type:S});case Pe:return new Int8Array(b);case Le:return new Uint8Array(b);case Xe:return new Uint8ClampedArray(b);case Xr:return new Int16Array(b);case Zr:return new Uint16Array(b);case Dr:return new Int32Array(b);case Fr:return new Uint32Array(b);case pn:return new Float32Array(b);case Br:return new Float64Array(b);default:throw new Error("Unkown type: "+l)}}var li={serialize:hd,deserialize:pd,stringToBuffer:eo,bufferToString:ci};function ro(c,y,l,S){c.executeSql("CREATE TABLE IF NOT EXISTS "+y.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],l,S)}function dd(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=typeof c[S]!="string"?c[S].toString():c[S];var x=new w(function(b,P){try{l.db=openDatabase(l.name,String(l.version),l.description,l.size)}catch(j){return P(j)}l.db.transaction(function(j){ro(j,l,function(){y._dbInfo=l,b()},function(F,B){P(B)})},P)});return l.serializer=li,x}function gr(c,y,l,S,x,b){c.executeSql(l,S,x,function(P,j){j.code===j.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[y.storeName],function(F,B){B.rows.length?b(F,j):ro(F,y,function(){F.executeSql(l,S,x,b)},b)},b):b(P,j)},b)}function md(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[c],function(F,B){var z=B.rows.length?B.rows.item(0).value:null;z&&(z=P.serializer.deserialize(z)),x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function gd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"SELECT * FROM "+P.storeName,[],function(F,B){for(var z=B.rows,Z=z.length,fe=0;fe<Z;fe++){var me=z.item(fe),ye=me.value;if(ye&&(ye=P.serializer.deserialize(ye)),ye=c(ye,me.key,fe+1),ye!==void 0){x(ye);return}}x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function to(c,y,l,S){var x=this;c=C(c);var b=new w(function(P,j){x.ready().then(function(){y===void 0&&(y=null);var F=y,B=x._dbInfo;B.serializer.serialize(y,function(z,Z){Z?j(Z):B.db.transaction(function(fe){gr(fe,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[c,z],function(){P(F)},function(me,ye){j(ye)})},function(fe){if(fe.code===fe.QUOTA_ERR){if(S>0){P(to.apply(x,[c,F,l,S-1]));return}j(fe)}})})}).catch(j)});return O(b,l),b}function yd(c,y,l){return to.apply(this,[c,y,l,1])}function vd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[c],function(){x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function wd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){gr(P,b,"DELETE FROM "+b.storeName,[],function(){S()},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function _d(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){gr(P,b,"SELECT COUNT(key) as c FROM "+b.storeName,[],function(j,F){var B=F.rows.item(0).c;S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function bd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){gr(j,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[c+1],function(F,B){var z=B.rows.length?B.rows.item(0).key:null;x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function Sd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){gr(P,b,"SELECT key FROM "+b.storeName,[],function(j,F){for(var B=[],z=0;z<F.rows.length;z++)B.push(F.rows.item(z).key);S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function xd(c){return new w(function(y,l){c.transaction(function(S){S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,b){for(var P=[],j=0;j<b.rows.length;j++)P.push(b.rows.item(j).name);y({db:c,storeNames:P})},function(x,b){l(b)})},function(S){l(S)})})}function Ad(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;return c.name?x=new w(function(b){var P;c.name===l.name?P=S._dbInfo.db:P=openDatabase(c.name,"","",0),c.storeName?b({db:P,storeNames:[c.storeName]}):b(xd(P))}).then(function(b){return new w(function(P,j){b.db.transaction(function(F){function B(me){return new w(function(ye,Ce){F.executeSql("DROP TABLE IF EXISTS "+me,[],function(){ye()},function(Ee,Ve){Ce(Ve)})})}for(var z=[],Z=0,fe=b.storeNames.length;Z<fe;Z++)z.push(B(b.storeNames[Z]));w.all(z).then(function(){P()}).catch(function(me){j(me)})},function(F){j(F)})})}):x=w.reject("Invalid arguments"),O(x,y),x}var Od={_driver:"webSQLStorage",_initStorage:dd,_support:oe(),iterate:gd,getItem:md,setItem:yd,removeItem:vd,clear:wd,length:_d,key:bd,keys:Sd,dropInstance:Ad};function Ed(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(c){return!1}}function no(c,y){var l=c.name+"/";return c.storeName!==y.storeName&&(l+=c.storeName+"/"),l}function Cd(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch(y){return!0}}function Td(){return!Cd()||localStorage.length>0}function Id(c){var y=this,l={};if(c)for(var S in c)l[S]=c[S];return l.keyPrefix=no(c,y._defaultConfig),Td()?(y._dbInfo=l,l.serializer=li,w.resolve()):w.reject()}function Pd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var b=localStorage.key(x);b.indexOf(S)===0&&localStorage.removeItem(b)}});return O(l,c),l}function qd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo,b=localStorage.getItem(x.keyPrefix+c);return b&&(b=x.serializer.deserialize(b)),b});return O(S,y),S}function Rd(c,y){var l=this,S=l.ready().then(function(){for(var x=l._dbInfo,b=x.keyPrefix,P=b.length,j=localStorage.length,F=1,B=0;B<j;B++){var z=localStorage.key(B);if(z.indexOf(b)===0){var Z=localStorage.getItem(z);if(Z&&(Z=x.serializer.deserialize(Z)),Z=c(Z,z.substring(P),F++),Z!==void 0)return Z}}});return O(S,y),S}function Md(c,y){var l=this,S=l.ready().then(function(){var x=l._dbInfo,b;try{b=localStorage.key(c)}catch(P){b=null}return b&&(b=b.substring(x.keyPrefix.length)),b});return O(S,y),S}function Ld(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo,x=localStorage.length,b=[],P=0;P<x;P++){var j=localStorage.key(P);j.indexOf(S.keyPrefix)===0&&b.push(j.substring(S.keyPrefix.length))}return b});return O(l,c),l}function Nd(c){var y=this,l=y.keys().then(function(S){return S.length});return O(l,c),l}function jd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo;localStorage.removeItem(x.keyPrefix+c)});return O(S,y),S}function Ud(c,y,l){var S=this;c=C(c);var x=S.ready().then(function(){y===void 0&&(y=null);var b=y;return new w(function(P,j){var F=S._dbInfo;F.serializer.serialize(y,function(B,z){if(z)j(z);else try{localStorage.setItem(F.keyPrefix+c,B),P(b)}catch(Z){(Z.name==="QuotaExceededError"||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(Z),j(Z)}})})});return O(x,l),x}function Dd(c,y){if(y=G.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var l=this.config();c.name=c.name||l.name,c.storeName=c.storeName||l.storeName}var S=this,x;return c.name?x=new w(function(b){c.storeName?b(no(c,S._defaultConfig)):b(c.name+"/")}).then(function(b){for(var P=localStorage.length-1;P>=0;P--){var j=localStorage.key(P);j.indexOf(b)===0&&localStorage.removeItem(j)}}):x=w.reject("Invalid arguments"),O(x,y),x}var Fd={_driver:"localStorageWrapper",_initStorage:Id,_support:Ed(),iterate:Rd,getItem:qd,setItem:Ud,removeItem:jd,clear:Pd,length:Nd,key:Md,keys:Ld,dropInstance:Dd},Bd=function(y,l){return y===l||typeof y=="number"&&typeof l=="number"&&isNaN(y)&&isNaN(l)},kd=function(y,l){for(var S=y.length,x=0;x<S;){if(Bd(y[x],l))return!0;x++}return!1},io=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},At={},so={},Qr={INDEXEDDB:ae,WEBSQL:Od,LOCALSTORAGE:Fd},$d=[Qr.INDEXEDDB._driver,Qr.WEBSQL._driver,Qr.LOCALSTORAGE._driver],dn=["dropInstance"],hi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(dn),zd={description:"",driver:$d.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Hd(c,y){c[y]=function(){var l=arguments;return c.ready().then(function(){return c[y].apply(c,l)})}}function pi(){for(var c=1;c<arguments.length;c++){var y=arguments[c];if(y)for(var l in y)y.hasOwnProperty(l)&&(io(y[l])?arguments[0][l]=y[l].slice():arguments[0][l]=y[l])}return arguments[0]}var Wd=function(){function c(y){u(this,c);for(var l in Qr)if(Qr.hasOwnProperty(l)){var S=Qr[l],x=S._driver;this[l]=x,At[x]||this.defineDriver(S)}this._defaultConfig=pi({},zd),this._config=pi({},this._defaultConfig,y),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(l){if((typeof l=="undefined"?"undefined":o(l))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in l){if(S==="storeName"&&(l[S]=l[S].replace(/\W/g,"_")),S==="version"&&typeof l[S]!="number")return new Error("Database version must be a number.");this._config[S]=l[S]}return"driver"in l&&l.driver?this.setDriver(this._config.driver):!0}else return typeof l=="string"?this._config[l]:this._config},c.prototype.defineDriver=function(l,S,x){var b=new w(function(P,j){try{var F=l._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!l._driver){j(B);return}for(var z=hi.concat("_initStorage"),Z=0,fe=z.length;Z<fe;Z++){var me=z[Z],ye=!kd(dn,me);if((ye||l[me])&&typeof l[me]!="function"){j(B);return}}var Ce=function(){for(var Ot=function(Jd){return function(){var Vd=new Error("Method "+Jd+" is not implemented by the current driver"),oo=w.reject(Vd);return O(oo,arguments[arguments.length-1]),oo}},di=0,Kd=dn.length;di<Kd;di++){var mi=dn[di];l[mi]||(l[mi]=Ot(mi))}};Ce();var Ee=function(Ot){At[F]&&console.info("Redefining LocalForage driver: "+F),At[F]=l,so[F]=Ot,P()};"_support"in l?l._support&&typeof l._support=="function"?l._support().then(Ee,j):Ee(!!l._support):Ee(!0)}catch(Ve){j(Ve)}});return p(b,S,x),b},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(l,S,x){var b=At[l]?w.resolve(At[l]):w.reject(new Error("Driver not found."));return p(b,S,x),b},c.prototype.getSerializer=function(l){var S=w.resolve(li);return p(S,l),S},c.prototype.ready=function(l){var S=this,x=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return p(x,l,l),x},c.prototype.setDriver=function(l,S,x){var b=this;io(l)||(l=[l]);var P=this._getSupportedDrivers(l);function j(){b._config.driver=b.driver()}function F(Z){return b._extend(Z),j(),b._ready=b._initStorage(b._config),b._ready}function B(Z){return function(){var fe=0;function me(){for(;fe<Z.length;){var ye=Z[fe];return fe++,b._dbInfo=null,b._ready=null,b.getDriver(ye).then(F).catch(me)}j();var Ce=new Error("No available storage method found.");return b._driverSet=w.reject(Ce),b._driverSet}return me()}}var z=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=z.then(function(){var Z=P[0];return b._dbInfo=null,b._ready=null,b.getDriver(Z).then(function(fe){b._driver=fe._driver,j(),b._wrapLibraryMethodsWithReady(),b._initDriver=B(P)})}).catch(function(){j();var Z=new Error("No available storage method found.");return b._driverSet=w.reject(Z),b._driverSet}),p(this._driverSet,S,x),this._driverSet},c.prototype.supports=function(l){return!!so[l]},c.prototype._extend=function(l){pi(this,l)},c.prototype._getSupportedDrivers=function(l){for(var S=[],x=0,b=l.length;x<b;x++){var P=l[x];this.supports(P)&&S.push(P)}return S},c.prototype._wrapLibraryMethodsWithReady=function(){for(var l=0,S=hi.length;l<S;l++)Hd(this,hi[l])},c.prototype.createInstance=function(l){return new c(l)},c}(),Gd=new Wd;i.exports=Gd},{3:3}]},{},[4])(4)})});var Ks=_((Gs,ad)=>{"use strict";(function(r,e,t){let n;(n=t.define)&&n.amd?n([],function(){return e}):(n=t.modules)?n[r.toLowerCase()]=e:typeof Gs=="object"?ad.exports=e:t[r]=e})("FlexSearch",function r(e){function t(h,m){let g=m?m.id:h&&h.id;this.id=g||g===0?g:Ye++,this.init(h,m),u(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),u(this,"length",function(){return this.index.length})}function n(h,m,g,A){return this.u!==this.g&&(this.o=this.o.concat(g),this.u++,A&&this.o.length>=A&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(m,this.o),this.F&&this.F(this.o))),this}function i(h){let m=J();for(let g in h)if(h.hasOwnProperty(g)){let A=h[g];D(A)?m[g]=A.slice(0):ne(A)?m[g]=i(A):m[g]=A}return m}function s(h,m){let g=h.length,A=Q(m),T=[];for(let q=0,N=0;q<g;q++){let R=h[q];(A&&m(R)||!A&&!m[R])&&(T[N++]=R)}return T}function o(h,m,g,A,T,q,N,R,U,$){g=K(g,N?0:T,R,q,m,U,$);let X;if(R&&(R=g.page,X=g.next,g=g.result),N)m=this.where(N,null,T,g);else{for(m=g,g=this.l,T=m.length,q=Array(T),N=0;N<T;N++)q[N]=g[m[N]];m=q}return g=m,A&&(Q(A)||(Je=A.split(":"),1<Je.length?A=C:(Je=Je[0],A=p)),g.sort(A)),g=G(R,X,g),this.cache&&this.j.set(h,g),g}function u(h,m,g){Object.defineProperty(h,m,{get:g})}function a(h){return new RegExp(h,"g")}function f(h,m){for(let g=0;g<m.length;g+=2)h=h.replace(m[g],m[g+1]);return h}function d(h,m,g,A,T,q,N,R){return m[g]?m[g]:(T=T?(R-(N||R/1.5))*q+(N||R/1.5)*T:q,m[g]=T,T>=N&&(h=h[R-(T+.5>>0)],h=h[g]||(h[g]=[]),h[h.length]=A),T)}function v(h,m){if(h){let g=Object.keys(h);for(let A=0,T=g.length;A<T;A++){let q=g[A],N=h[q];if(N)for(let R=0,U=N.length;R<U;R++)if(N[R]===m){U===1?delete h[q]:N.splice(R,1);break}else ne(N[R])&&v(N[R],m)}}}function w(h){let m="",g="";var A="";for(let T=0;T<h.length;T++){let q=h[T];q!==g&&(T&&q==="h"?(A=A==="a"||A==="e"||A==="i"||A==="o"||A==="u"||A==="y",((g==="a"||g==="e"||g==="i"||g==="o"||g==="u"||g==="y")&&A||g===" ")&&(m+=q)):m+=q),A=T===h.length-1?"":h[T+1],g=q}return m}function O(h,m){return h=h.length-m.length,0>h?1:h?-1:0}function p(h,m){return h=h[Je],m=m[Je],h<m?-1:h>m?1:0}function C(h,m){let g=Je.length;for(let A=0;A<g;A++)h=h[Je[A]],m=m[Je[A]];return h<m?-1:h>m?1:0}function G(h,m,g){return h?{page:h,next:m?""+m:null,result:g}:g}function K(h,m,g,A,T,q,N){let R,U=[];if(g===!0){g="0";var $=""}else $=g&&g.split(":");let X=h.length;if(1<X){let ve=J(),se=[],ue,de;var Y=0,W;let $e;var ae=!0;let Pe,Le=0,Xe,Xr,Dr,Zr;if($&&($.length===2?(Dr=$,$=!1):$=Zr=parseInt($[0],10)),N){for(ue=J();Y<X;Y++)if(T[Y]==="not")for(de=h[Y],$e=de.length,W=0;W<$e;W++)ue["@"+de[W]]=1;else Xr=Y+1;if(E(Xr))return G(g,R,U);Y=0}else Xe=te(T)&&T;let Fr;for(;Y<X;Y++){let pn=Y===(Xr||X)-1;if(!Xe||!Y)if((W=Xe||T&&T[Y])&&W!=="and")if(W==="or")Fr=!1;else continue;else Fr=q=!0;if(de=h[Y],$e=de.length){if(ae)if(Pe){var oe=Pe.length;for(W=0;W<oe;W++){ae=Pe[W];var he="@"+ae;N&&ue[he]||(ve[he]=1,q||(U[Le++]=ae))}Pe=null,ae=!1}else{Pe=de;continue}for(he=!1,W=0;W<$e;W++){oe=de[W];var _e="@"+oe;let Br=q?ve[_e]||0:Y;if(!(!Br&&!A||N&&ue[_e]||!q&&ve[_e]))if(Br===Y){if(pn){if((!Zr||--Zr<Le)&&(U[Le++]=oe,m&&Le===m))return G(g,Le+($||0),U)}else ve[_e]=Y+1;he=!0}else A&&(_e=se[Br]||(se[Br]=[]),_e[_e.length]=oe)}if(Fr&&!he&&!A)break}else if(Fr&&!A)return G(g,R,de)}if(Pe)if(Y=Pe.length,N)for(W=$?parseInt($,10):0;W<Y;W++)h=Pe[W],ue["@"+h]||(U[Le++]=h);else U=Pe;if(A){for(Le=U.length,Dr?(Y=parseInt(Dr[0],10)+1,W=parseInt(Dr[1],10)+1):(Y=se.length,W=0);Y--;)if(oe=se[Y]){for($e=oe.length;W<$e;W++)if(A=oe[W],(!N||!ue["@"+A])&&(U[Le++]=A,m&&Le===m))return G(g,Y+":"+W,U);W=0}}}else!X||T&&T[0]==="not"||(U=h[0],$&&($=parseInt($[0],10)));return m&&(N=U.length,$&&$>N&&($=0),$=$||0,R=$+m,R<N?U=U.slice($,R):(R=0,$&&(U=U.slice($)))),G(g,R,U)}function te(h){return typeof h=="string"}function D(h){return h.constructor===Array}function Q(h){return typeof h=="function"}function ne(h){return typeof h=="object"}function E(h){return typeof h=="undefined"}function ee(h){let m=Array(h);for(let g=0;g<h;g++)m[g]=J();return m}function J(){return Object.create(null)}function ge(){let h,m;self.onmessage=function(g){if(g=g.data)if(g.search){let A=m.search(g.content,g.threshold?{limit:g.limit,threshold:g.threshold,where:g.where}:g.limit);self.postMessage({id:h,content:g.content,limit:g.limit,result:A})}else g.add?m.add(g.id,g.content):g.update?m.update(g.id,g.content):g.remove?m.remove(g.id):g.clear?m.clear():g.info?(g=m.info(),g.worker=h,console.log(g)):g.register&&(h=g.id,g.options.cache=!1,g.options.async=!1,g.options.worker=!1,m=new Function(g.register.substring(g.register.indexOf("{")+1,g.register.lastIndexOf("}")))(),m=new m(g.options))}}function Te(h,m,g,A){h=e("flexsearch","id"+h,ge,function(q){(q=q.data)&&q.result&&A(q.id,q.content,q.result,q.limit,q.where,q.cursor,q.suggest)},m);let T=r.toString();return g.id=m,h.postMessage({register:T,options:g,id:m}),h}let we={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},ke={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Me=[],Ye=0,dr={},Ur={};t.create=function(h,m){return new t(h,m)},t.registerMatcher=function(h){for(let m in h)h.hasOwnProperty(m)&&Me.push(a(m),h[m]);return this},t.registerEncoder=function(h,m){return ar[h]=m.bind(ar),this},t.registerLanguage=function(h,m){return dr[h]=m.filter,Ur[h]=m.stemmer,this},t.encode=function(h,m){return ar[h](m)},t.prototype.init=function(h,m){if(this.v=[],m){var g=m.preset;h=m}else h||(h=we),g=h.preset;if(m={},te(h)?(m=ke[h],h={}):g&&(m=ke[g]),g=h.worker)if(typeof Worker=="undefined")h.worker=!1,this.m=null;else{var A=parseInt(g,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(A);for(var T=0;T<A;T++)this.m[T]=Te(this.id,T,h,n.bind(this))}if(this.f=h.tokenize||m.f||this.f||we.f,this.split=E(g=h.split)?this.split||we.split:te(g)?a(g):g,this.D=h.rtl||this.D||we.D,this.async=typeof Promise=="undefined"||E(g=h.async)?this.async||we.async:g,this.g=E(g=h.worker)?this.g||we.g:g,this.threshold=E(g=h.threshold)?m.threshold||this.threshold||we.threshold:g,this.b=E(g=h.resolution)?g=m.b||this.b||we.b:g,g<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||E(g=h.depth)?m.depth||this.depth||we.depth:g,this.w=(g=E(g=h.encode)?m.encode||we.encode:g)&&ar[g]&&ar[g].bind(ar)||(Q(g)?g:this.w||!1),(g=h.matcher)&&this.addMatcher(g),g=(m=h.lang)||h.filter){if(te(g)&&(g=dr[g]),D(g)){A=this.w,T=J();for(var q=0;q<g.length;q++){var N=A?A(g[q]):g[q];T[N]=1}g=T}this.filter=g}if(g=m||h.stemmer){var R;m=te(g)?Ur[g]:g,A=this.w,T=[];for(R in m)m.hasOwnProperty(R)&&(q=A?A(R):R,T.push(a(q+"($|\\W)"),A?A(m[R]):m[R]));this.stemmer=R=T}if(this.a=T=(g=h.doc)?i(g):this.a||we.a,this.i=ee(this.b-(this.threshold||0)),this.h=J(),this.c=J(),T){if(this.l=J(),h.doc=null,R=T.index={},m=T.keys=[],A=T.field,q=T.tag,N=T.store,D(T.id)||(T.id=T.id.split(":")),N){var U=J();if(te(N))U[N]=1;else if(D(N))for(let $=0;$<N.length;$++)U[N[$]]=1;else ne(N)&&(U=N);T.store=U}if(q){if(this.G=J(),N=J(),A)if(te(A))N[A]=h;else if(D(A))for(U=0;U<A.length;U++)N[A[U]]=h;else ne(A)&&(N=A);for(D(q)||(T.tag=q=[q]),A=0;A<q.length;A++)this.G[q[A]]=J();this.I=q,A=N}if(A){let $;for(D(A)||(ne(A)?($=A,T.field=A=Object.keys(A)):T.field=A=[A]),T=0;T<A.length;T++)q=A[T],D(q)||($&&(h=$[q]),m[T]=q,A[T]=q.split(":")),R[q]=new t(h)}h.doc=g}return this.B=!0,this.j=(this.cache=g=E(g=h.cache)?this.cache||we.cache:g)?new fi(g):!1,this},t.prototype.encode=function(h){return h&&(Me.length&&(h=f(h,Me)),this.v.length&&(h=f(h,this.v)),this.w&&(h=this.w(h)),this.stemmer&&(h=f(h,this.stemmer))),h},t.prototype.addMatcher=function(h){let m=this.v;for(let g in h)h.hasOwnProperty(g)&&m.push(a(g),h[g]);return this},t.prototype.add=function(h,m,g,A,T){if(this.a&&ne(h))return this.A("add",h,m);if(m&&te(m)&&(h||h===0)){var q="@"+h;if(this.c[q]&&!A)return this.update(h,m);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:h,content:m}),this.c[q]=""+this.C,g&&g(),this;if(!T){if(this.async&&typeof importScripts!="function"){let se=this;if(q=new Promise(function(ue){setTimeout(function(){se.add(h,m,null,A,!0),se=null,ue()})}),g)q.then(g);else return q;return this}if(g)return this.add(h,m,null,A,!0),g(),this}if(m=this.encode(m),!m.length)return this;g=this.f,T=Q(g)?g(m):m.split(this.split),this.filter&&(T=s(T,this.filter));let Y=J();Y._ctx=J();let W=T.length,ae=this.threshold,oe=this.depth,he=this.b,_e=this.i,ve=this.D;for(let se=0;se<W;se++){var N=T[se];if(N){var R=N.length,U=(ve?se+1:W-se)/W,$="";switch(g){case"reverse":case"both":for(var X=R;--X;)$=N[X]+$,d(_e,Y,$,h,ve?1:(R-X)/R,U,ae,he-1);$="";case"forward":for(X=0;X<R;X++)$+=N[X],d(_e,Y,$,h,ve?(X+1)/R:1,U,ae,he-1);break;case"full":for(X=0;X<R;X++){let ue=(ve?X+1:R-X)/R;for(let de=R;de>X;de--)$=N.substring(X,de),d(_e,Y,$,h,ue,U,ae,he-1)}break;default:if(R=d(_e,Y,N,h,1,U,ae,he-1),oe&&1<W&&R>=ae)for(R=Y._ctx[N]||(Y._ctx[N]=J()),N=this.h[N]||(this.h[N]=ee(he-(ae||0))),U=se-oe,$=se+oe+1,0>U&&(U=0),$>W&&($=W);U<$;U++)U!==se&&d(N,R,T[U],h,0,he-(U<se?se-U:U-se),ae,he-1)}}}this.c[q]=1,this.B=!1}return this},t.prototype.A=function(h,m,g){if(D(m)){var A=m.length;if(A--){for(var T=0;T<A;T++)this.A(h,m[T]);return this.A(h,m[A],g)}}else{var q=this.a.index,N=this.a.keys,R=this.a.tag;T=this.a.store;var U,$=this.a.id;A=m;for(var X=0;X<$.length;X++)A=A[$[X]];if(h==="remove"&&(delete this.l[A],$=N.length,$--)){for(m=0;m<$;m++)q[N[m]].remove(A);return q[N[$]].remove(A,g)}if(R){for(U=0;U<R.length;U++){var Y=R[U],W=m;for($=Y.split(":"),X=0;X<$.length;X++)W=W[$[X]];W="@"+W}U=this.G[Y],U=U[W]||(U[W]=[])}$=this.a.field;for(let ae=0,oe=$.length;ae<oe;ae++){for(Y=$[ae],R=m,W=0;W<Y.length;W++)R=R[Y[W]];Y=q[N[ae]],W=h==="add"?Y.add:Y.update,ae===oe-1?W.call(Y,A,R,g):W.call(Y,A,R)}if(T){for(g=Object.keys(T),h=J(),q=0;q<g.length;q++)if(N=g[q],T[N]){N=N.split(":");let ae,oe;for($=0;$<N.length;$++)R=N[$],ae=(ae||m)[R],oe=(oe||h)[R]=ae}m=h}U&&(U[U.length]=m),this.l[A]=m}return this},t.prototype.update=function(h,m,g){return this.a&&ne(h)?this.A("update",h,m):(this.c["@"+h]&&te(m)&&(this.remove(h),this.add(h,m,g,!0)),this)},t.prototype.remove=function(h,m,g){if(this.a&&ne(h))return this.A("remove",h,m);var A="@"+h;if(this.c[A]){if(this.g)return this.m[this.c[A]].postMessage({remove:!0,id:h}),delete this.c[A],m&&m(),this;if(!g){if(this.async&&typeof importScripts!="function"){let T=this;if(A=new Promise(function(q){setTimeout(function(){T.remove(h,null,!0),T=null,q()})}),m)A.then(m);else return A;return this}if(m)return this.remove(h,null,!0),m(),this}for(m=0;m<this.b-(this.threshold||0);m++)v(this.i[m],h);this.depth&&v(this.h,h),delete this.c[A],this.B=!1}return this};let Je;t.prototype.search=function(h,m,g,A){if(ne(m)){if(D(m))for(var T=0;T<m.length;T++)m[T].query=h;else m.query=h;h=m,m=1e3}else m&&Q(m)?(g=m,m=1e3):m||m===0||(m=1e3);if(this.g){this.F=g,this.u=0,this.o=[];for(var q=0;q<this.g;q++)this.m[q].postMessage({search:!0,limit:m,content:h})}else{var N=[],R=h;if(ne(h)&&!D(h)){g||(g=h.callback)&&(R.callback=null);var U=h.sort,$=h.page;m=h.limit,q=h.threshold;var X=h.suggest;h=h.query}if(this.a){q=this.a.index;let ve=R.where;var Y=R.bool||"or",W=R.field;let se=Y,ue,de;if(W)D(W)||(W=[W]);else if(D(R)){var ae=R;W=[],se=[];for(var oe=0;oe<R.length;oe++)A=R[oe],T=A.bool||Y,W[oe]=A.field,se[oe]=T,T==="not"?ue=!0:T==="and"&&(de=!0)}else W=this.a.keys;for(Y=W.length,oe=0;oe<Y;oe++)ae&&(R=ae[oe]),$&&!te(R)&&(R.page=null,R.limit=0),N[oe]=q[W[oe]].search(R,0);if(g)return g(o.call(this,h,se,N,U,m,X,ve,$,de,ue));if(this.async){let $e=this;return new Promise(function(Pe){Promise.all(N).then(function(Le){Pe(o.call($e,h,se,Le,U,m,X,ve,$,de,ue))})})}return o.call(this,h,se,N,U,m,X,ve,$,de,ue)}if(q||(q=this.threshold||0),!A){if(this.async&&typeof importScripts!="function"){let ve=this;if(q=new Promise(function(se){setTimeout(function(){se(ve.search(R,m,null,!0)),ve=null})}),g)q.then(g);else return q;return this}if(g)return g(this.search(R,m,null,!0)),this}if(!h||!te(h))return N;if(R=h,this.cache)if(this.B){if(g=this.j.get(h))return g}else this.j.clear(),this.B=!0;if(R=this.encode(R),!R.length)return N;g=this.f,g=Q(g)?g(R):R.split(this.split),this.filter&&(g=s(g,this.filter)),ae=g.length,A=!0,T=[];var he=J(),_e=0;if(1<ae&&(this.depth&&this.f==="strict"?Y=!0:g.sort(O)),!Y||(oe=this.h)){let ve=this.b;for(;_e<ae;_e++){let se=g[_e];if(se){if(Y){if(!W){if(oe[se])W=se,he[se]=1;else if(!X)return N}if(X&&_e===ae-1&&!T.length)Y=!1,se=W||se,he[se]=0;else if(!W)continue}if(!he[se]){let ue=[],de=!1,$e=0,Pe=Y?oe[W]:this.i;if(Pe){let Le;for(let Xe=0;Xe<ve-q;Xe++)(Le=Pe[Xe]&&Pe[Xe][se])&&(ue[$e++]=Le,de=!0)}if(de)W=se,T[T.length]=1<$e?ue.concat.apply([],ue):ue[0];else if(!X){A=!1;break}he[se]=1}}}}else A=!1;return A&&(N=K(T,m,$,X)),this.cache&&this.j.set(h,N),N}},t.prototype.find=function(h,m){return this.where(h,m,1)[0]||null},t.prototype.where=function(h,m,g,A){let T=this.l,q=[],N=0,R;var U;let $;if(ne(h)){g||(g=m);var X=Object.keys(h),Y=X.length;if(R=!1,Y===1&&X[0]==="id")return[T[h.id]];if((U=this.I)&&!A)for(var W=0;W<U.length;W++){var ae=U[W],oe=h[ae];if(!E(oe)){if($=this.G[ae]["@"+oe],--Y===0)return $;X.splice(X.indexOf(ae),1),delete h[ae];break}}for(U=Array(Y),W=0;W<Y;W++)U[W]=X[W].split(":")}else{if(Q(h)){for(m=A||Object.keys(T),g=m.length,X=0;X<g;X++)Y=T[m[X]],h(Y)&&(q[N++]=Y);return q}if(E(m))return[T[h]];if(h==="id")return[T[m]];X=[h],Y=1,U=[h.split(":")],R=!0}for(A=$||A||Object.keys(T),W=A.length,ae=0;ae<W;ae++){oe=$?A[ae]:T[A[ae]];let he=!0;for(let _e=0;_e<Y;_e++){R||(m=h[X[_e]]);let ve=U[_e],se=ve.length,ue=oe;if(1<se)for(let de=0;de<se;de++)ue=ue[ve[de]];else ue=ue[ve[0]];if(ue!==m){he=!1;break}}if(he&&(q[N++]=oe,g&&N===g))break}return q},t.prototype.info=function(){if(this.g)for(let h=0;h<this.g;h++)this.m[h].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Me.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},t.prototype.clear=function(){return this.destroy().init()},t.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){let h=this.a.keys;for(let m=0;m<h.length;m++)this.a.index[h[m]].destroy();this.a=this.l=null}return this},t.prototype.export=function(h){let m=!h||E(h.serialize)||h.serialize;if(this.a){let A=!h||E(h.doc)||h.doc;var g=!h||E(h.index)||h.index;h=[];let T=0;if(g)for(g=this.a.keys;T<g.length;T++){let q=this.a.index[g[T]];h[T]=[q.i,q.h,Object.keys(q.c)]}A&&(h[T]=this.l)}else h=[this.i,this.h,Object.keys(this.c)];return m&&(h=JSON.stringify(h)),h},t.prototype.import=function(h,m){(!m||E(m.serialize)||m.serialize)&&(h=JSON.parse(h));let g=J();if(this.a){var A=!m||E(m.doc)||m.doc,T=0;if(!m||E(m.index)||m.index){m=this.a.keys;let N=m.length;for(var q=h[0][2];T<q.length;T++)g[q[T]]=1;for(T=0;T<N;T++){q=this.a.index[m[T]];let R=h[T];R&&(q.i=R[0],q.h=R[1],q.c=g)}}A&&(this.l=ne(A)?A:h[T])}else{for(A=h[2],T=0;T<A.length;T++)g[A[T]]=1;this.i=h[0],this.h=h[1],this.c=g}};let mr=function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=[a("[-/]")," ",m,"",h," "];return function(A){return w(f(A.toLowerCase(),g))}}(),ar={icase:function(h){return h.toLowerCase()},simple:function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=a("[-/]"),A=a("[\xE0\xE1\xE2\xE3\xE4\xE5]"),T=a("[\xE8\xE9\xEA\xEB]"),q=a("[\xEC\xED\xEE\xEF]"),N=a("[\xF2\xF3\xF4\xF5\xF6\u0151]"),R=a("[\xF9\xFA\xFB\xFC\u0171]"),U=a("[\xFD\u0177\xFF]"),$=a("\xF1"),X=a("[\xE7c]"),Y=a("\xDF"),W=a(" & "),ae=[A,"a",T,"e",q,"i",N,"o",R,"u",U,"y",$,"n",X,"k",Y,"s",W," and ",g," ",m,"",h," "];return function(oe){return oe=f(oe.toLowerCase(),ae),oe===" "?"":oe}}(),advanced:function(){let h=a("ae"),m=a("ai"),g=a("ay"),A=a("ey"),T=a("oe"),q=a("ue"),N=a("ie"),R=a("sz"),U=a("zs"),$=a("ck"),X=a("cc"),Y=a("sh"),W=a("th"),ae=a("dt"),oe=a("ph"),he=a("pf"),_e=a("ou"),ve=a("uo"),se=[h,"a",m,"ei",g,"ei",A,"ei",T,"o",q,"u",N,"i",R,"s",U,"s",Y,"s",$,"k",X,"k",W,"t",ae,"t",oe,"f",he,"f",_e,"o",ve,"u"];return function(ue,de){return ue&&(ue=this.simple(ue),2<ue.length&&(ue=f(ue,se)),de||1<ue.length&&(ue=w(ue)),ue)}}(),extra:function(){let h=a("p"),m=a("z"),g=a("[cgq]"),A=a("n"),T=a("d"),q=a("[vw]"),N=a("[aeiouy]"),R=[h,"b",m,"s",g,"k",A,"m",T,"t",q,"f",N,""];return function(U){if(!U)return U;if(U=this.advanced(U,!0),1<U.length){U=U.split(" ");for(let $=0;$<U.length;$++){let X=U[$];1<X.length&&(U[$]=X[0]+f(X.substring(1),R))}U=U.join(" "),U=w(U)}return U}}(),balance:mr},fi=function(){function h(m){this.clear(),this.H=m!==!0&&m}return h.prototype.clear=function(){this.cache=J(),this.count=J(),this.index=J(),this.s=[]},h.prototype.set=function(m,g){if(this.H&&E(this.cache[m])){let A=this.s.length;if(A===this.H){A--;let T=this.s[A];delete this.cache[T],delete this.count[T],delete this.index[T]}this.index[m]=A,this.s[A]=m,this.count[m]=-1,this.cache[m]=g,this.get(m)}else this.cache[m]=g},h.prototype.get=function(m){let g=this.cache[m];if(this.H&&g){var A=++this.count[m];let q=this.index,N=q[m];if(0<N){let R=this.s;for(var T=N;this.count[R[--N]]<=A&&N!==-1;);if(N++,N!==T){for(A=T;A>N;A--)T=R[A-1],R[A]=T,q[T]=A;R[N]=m,q[m]=N}}}return g},h}();return t}(function(){let r={},e=typeof Blob!="undefined"&&typeof URL!="undefined"&&URL.createObjectURL;return function(t,n,i,s,o){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):t+".min.js",t+="-"+n,r[t]||(r[t]=[]),r[t][o]=new Worker(i),r[t][o].onmessage=s,r[t][o]}}()),Gs)});var _T={};gn(_T,{BaseProvider:()=>le,CocodaSDK:()=>jr,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>Ir,LobidApiProvider:()=>Yr,LocApiProvider:()=>qr,LocalMappingsProvider:()=>Er,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Lr,OccurrencesApiProvider:()=>Cr,ReconciliationApiProvider:()=>Tr,SkohubProvider:()=>Rr,SkosmosApiProvider:()=>Pr,addAllProviders:()=>wT,cdk:()=>ld,errors:()=>Ue,utils:()=>Or});var Ue={};gn(Ue,{BackendError:()=>It,BackendUnavailableError:()=>Pt,CDKError:()=>qe,InvalidOrMissingParameterError:()=>H,InvalidProviderError:()=>et,InvalidRequestError:()=>tr,MethodNotImplementedError:()=>Tt,MissingApiUrlError:()=>ze,NetworkError:()=>qt});var qe=class extends Error{constructor({message:e="",relatedError:t=null,code:n=null}={}){!e&&t&&t.message&&(e=t.message),super(e),this.name=this.constructor.name,this.relatedError=t,this.code=n}},Tt=class extends qe{constructor(i){var s=i,{method:e,message:t=""}=s,n=V(s,["method","message"]);n.message=`Method not implemented: ${e} (${t})`,super(n)}},H=class extends qe{constructor(i){var s=i,{parameter:e,message:t=""}=s,n=V(s,["parameter","message"]);n.message=`Invalid or missing parameter: ${e} (${t})`,super(n)}},tr=class extends qe{},It=class extends qe{},Pt=class extends qe{},qt=class extends qe{},ze=class extends qe{},et=class extends qe{};function Rt(r,e){return function(){return r.apply(e,arguments)}}var{toString:ho}=Object.prototype,{getPrototypeOf:wi}=Object,_i=(r=>e=>{let t=ho.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ur=r=>(r=r.toLowerCase(),e=>_i(e)===r),vn=r=>e=>typeof e===r,{isArray:rt}=Array,Mt=vn("undefined");function nm(r){return r!==null&&!Mt(r)&&r.constructor!==null&&!Mt(r.constructor)&&yr(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var po=ur("ArrayBuffer");function im(r){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&po(r.buffer),e}var sm=vn("string"),yr=vn("function"),mo=vn("number"),bi=r=>r!==null&&typeof r=="object",om=r=>r===!0||r===!1,yn=r=>{if(_i(r)!=="object")return!1;let e=wi(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},am=ur("Date"),um=ur("File"),fm=ur("Blob"),cm=ur("FileList"),lm=r=>bi(r)&&yr(r.pipe),hm=r=>{let e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||ho.call(r)===e||yr(r.toString)&&r.toString()===e)},pm=ur("URLSearchParams"),dm=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lt(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r=="undefined")return;let n,i;if(typeof r!="object"&&(r=[r]),rt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{let s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length,u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function go(r,e){e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}var yo=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),vo=r=>!Mt(r)&&r!==yo;function vi(){let{caseless:r}=vo(this)&&this||{},e={},t=(n,i)=>{let s=r&&go(e,i)||i;yn(e[s])&&yn(n)?e[s]=vi(e[s],n):yn(n)?e[s]=vi({},n):rt(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Lt(arguments[n],t);return e}var mm=(r,e,t,{allOwnKeys:n}={})=>(Lt(e,(i,s)=>{t&&yr(i)?r[s]=Rt(i,t):r[s]=i},{allOwnKeys:n}),r),gm=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),ym=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},vm=(r,e,t,n)=>{let i,s,o,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&wi(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},wm=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},_m=r=>{if(!r)return null;if(rt(r))return r;let e=r.length;if(!mo(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},bm=(r=>e=>r&&e instanceof r)(typeof Uint8Array!="undefined"&&wi(Uint8Array)),Sm=(r,e)=>{let n=(r&&r[Symbol.iterator]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},xm=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Am=ur("HTMLFormElement"),Om=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),co=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Em=ur("RegExp"),wo=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Lt(t,(i,s)=>{e(i,s,r)!==!1&&(n[s]=i)}),Object.defineProperties(r,n)},Cm=r=>{wo(r,(e,t)=>{if(yr(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(yr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Tm=(r,e)=>{let t={},n=i=>{i.forEach(s=>{t[s]=!0})};return rt(r)?n(r):n(String(r).split(e)),t},Im=()=>{},Pm=(r,e)=>(r=+r,Number.isFinite(r)?r:e),yi="abcdefghijklmnopqrstuvwxyz",lo="0123456789",_o={DIGIT:lo,ALPHA:yi,ALPHA_DIGIT:yi+yi.toUpperCase()+lo},qm=(r=16,e=_o.ALPHA_DIGIT)=>{let t="",{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function Rm(r){return!!(r&&yr(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var Mm=r=>{let e=new Array(10),t=(n,i)=>{if(bi(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=rt(n)?[]:{};return Lt(n,(o,u)=>{let a=t(o,i+1);!Mt(a)&&(s[u]=a)}),e[i]=void 0,s}}return n};return t(r,0)},I={isArray:rt,isArrayBuffer:po,isBuffer:nm,isFormData:hm,isArrayBufferView:im,isString:sm,isNumber:mo,isBoolean:om,isObject:bi,isPlainObject:yn,isUndefined:Mt,isDate:am,isFile:um,isBlob:fm,isRegExp:Em,isFunction:yr,isStream:lm,isURLSearchParams:pm,isTypedArray:bm,isFileList:cm,forEach:Lt,merge:vi,extend:mm,trim:dm,stripBOM:gm,inherits:ym,toFlatObject:vm,kindOf:_i,kindOfTest:ur,endsWith:wm,toArray:_m,forEachEntry:Sm,matchAll:xm,isHTMLForm:Am,hasOwnProperty:co,hasOwnProp:co,reduceDescriptors:wo,freezeMethods:Cm,toObjectSet:Tm,toCamelCase:Om,noop:Im,toFiniteNumber:Pm,findKey:go,global:yo,isContextDefined:vo,ALPHABET:_o,generateString:qm,isSpecCompliantForm:Rm,toJSONObject:Mm};function tt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}I.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var bo=tt.prototype,So={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{So[r]={value:r}});Object.defineProperties(tt,So);Object.defineProperty(bo,"isAxiosError",{value:!0});tt.from=(r,e,t,n,i,s)=>{let o=Object.create(bo);return I.toFlatObject(r,o,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),tt.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};var ce=tt;var wn=null;function Si(r){return I.isPlainObject(r)||I.isArray(r)}function Ao(r){return I.endsWith(r,"[]")?r.slice(0,-2):r}function xo(r,e,t){return r?r.concat(e).map(function(i,s){return i=Ao(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function Lm(r){return I.isArray(r)&&!r.some(Si)}var Nm=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function jm(r,e,t){if(!I.isObject(r))throw new TypeError("target must be an object");e=e||new(wn||FormData),t=I.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,G){return!I.isUndefined(G[C])});let n=t.metaTokens,i=t.visitor||d,s=t.dots,o=t.indexes,a=(t.Blob||typeof Blob!="undefined"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!a&&I.isBlob(p))throw new ce("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,C,G){let K=p;if(p&&!G&&typeof p=="object"){if(I.endsWith(C,"{}"))C=n?C:C.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&Lm(p)||(I.isFileList(p)||I.endsWith(C,"[]"))&&(K=I.toArray(p)))return C=Ao(C),K.forEach(function(D,Q){!(I.isUndefined(D)||D===null)&&e.append(o===!0?xo([C],Q,s):o===null?C:C+"[]",f(D))}),!1}return Si(p)?!0:(e.append(xo(G,C,s),f(p)),!1)}let v=[],w=Object.assign(Nm,{defaultVisitor:d,convertValue:f,isVisitable:Si});function O(p,C){if(!I.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(p),I.forEach(p,function(K,te){(!(I.isUndefined(K)||K===null)&&i.call(e,K,I.isString(te)?te.trim():te,C,w))===!0&&O(K,C?C.concat(te):[te])}),v.pop()}}if(!I.isObject(r))throw new TypeError("data must be an object");return O(r),e}var vr=jm;function Oo(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eo(r,e){this._pairs=[],r&&vr(r,this,e)}var Co=Eo.prototype;Co.append=function(e,t){this._pairs.push([e,t])};Co.toString=function(e){let t=e?function(n){return e.call(this,n,Oo)}:Oo;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};var _n=Eo;function Um(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(r,e,t){if(!e)return r;let n=t&&t.encode||Um,i=t&&t.serialize,s;if(i?s=i(e,t):s=I.isURLSearchParams(e)?e.toString():new _n(e,t).toString(n),s){let o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var xi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(n){n!==null&&e(n)})}},Ai=xi;var bn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var To=typeof URLSearchParams!="undefined"?URLSearchParams:_n;var Io=FormData;var Dm=(()=>{let r;return typeof navigator!="undefined"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Fm=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),De={isBrowser:!0,classes:{URLSearchParams:To,FormData:Io,Blob},isStandardBrowserEnv:Dm,isStandardBrowserWebWorkerEnv:Fm,protocols:["http","https","file","blob","url","data"]};function Oi(r,e){return vr(r,new De.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return De.isNode&&I.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Bm(r){return I.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function km(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function $m(r){function e(t,n,i,s){let o=t[s++],u=Number.isFinite(+o),a=s>=t.length;return o=!o&&I.isArray(i)?i.length:o,a?(I.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!I.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&I.isArray(i[o])&&(i[o]=km(i[o])),!u)}if(I.isFormData(r)&&I.isFunction(r.entries)){let t={};return I.forEachEntry(r,(n,i)=>{e(Bm(n),i,t,0)}),t}return null}var Sn=$m;var zm={"Content-Type":void 0};function Hm(r,e,t){if(I.isString(r))try{return(e||JSON.parse)(r),I.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var xn={transitional:bn,adapter:["xhr","http"],transformRequest:[function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=I.isObject(e);if(s&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return i&&i?JSON.stringify(Sn(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Oi(e,this.formSerializer).toString();if((u=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return vr(u?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),Hm(e)):e}],transformResponse:[function(e){let t=this.transitional||xn.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&I.isString(e)&&(n&&!this.responseType||i)){let o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?ce.from(u,ce.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){xn.headers[e]={}});I.forEach(["post","put","patch"],function(e){xn.headers[e]=I.merge(zm)});var nt=xn;var Wm=I.toObjectSet(["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"]),Po=r=>{let e={},t,n,i;return r&&r.split(`
12
+ `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&Wm[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var qo=Symbol("internals");function jt(r){return r&&String(r).trim().toLowerCase()}function An(r){return r===!1||r==null?r:I.isArray(r)?r.map(An):String(r)}function Gm(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}function Km(r){return/^[-_a-zA-Z]+$/.test(r.trim())}function Ei(r,e,t,n){if(I.isFunction(n))return n.call(this,e,t);if(I.isString(e)){if(I.isString(n))return e.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(e)}}function Jm(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Vm(r,e){let t=I.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var it=class{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,a,f){let d=jt(a);if(!d)throw new Error("header name must be a non-empty string");let v=I.findKey(i,d);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||a]=An(u))}let o=(u,a)=>I.forEach(u,(f,d)=>s(f,d,a));return I.isPlainObject(e)||e instanceof this.constructor?o(e,t):I.isString(e)&&(e=e.trim())&&!Km(e)?o(Po(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=jt(e),e){let n=I.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return Gm(i);if(I.isFunction(t))return t.call(this,i,n);if(I.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jt(e),e){let n=I.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ei(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(o){if(o=jt(o),o){let u=I.findKey(n,o);u&&(!t||Ei(n,n[u],u,t))&&(delete n[u],i=!0)}}return I.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||Ei(this,this[s],s,e))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return I.forEach(this,(i,s)=>{let o=I.findKey(n,s);if(o){t[o]=An(i),delete t[s];return}let u=e?Jm(s):String(s).trim();u!==s&&delete t[s],t[u]=An(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return I.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&I.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
13
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[qo]=this[qo]={accessors:{}}).accessors,i=this.prototype;function s(o){let u=jt(o);n[u]||(Vm(i,o),n[u]=!0)}return I.isArray(e)?e.forEach(s):s(e),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.freezeMethods(it.prototype);I.freezeMethods(it);var He=it;function Ut(r,e){let t=this||nt,n=e||t,i=He.from(n.headers),s=n.data;return I.forEach(r,function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Dt(r){return!!(r&&r.__CANCEL__)}function Ro(r,e,t){ce.call(this,r==null?"canceled":r,ce.ERR_CANCELED,e,t),this.name="CanceledError"}I.inherits(Ro,ce,{__CANCEL__:!0});var wr=Ro;function Ci(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new ce("Request failed with status code "+t.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var Mo=De.isStandardBrowserEnv?function(){return{write:function(t,n,i,s,o,u){let a=[];a.push(t+"="+encodeURIComponent(n)),I.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),I.isString(s)&&a.push("path="+s),I.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){let n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ti(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ii(r,e){return e?r.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):r}function Ft(r,e){return r&&!Ti(e)?Ii(r,e):e}var Lo=De.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){let u=I.isString(o)?i(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Pi(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Ym(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,o;return e=e!==void 0?e:1e3,function(a){let f=Date.now(),d=n[s];o||(o=f),t[i]=a,n[i]=f;let v=s,w=0;for(;v!==i;)w+=t[v++],v=v%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),f-o<e)return;let O=d&&f-d;return O?Math.round(w*1e3/O):void 0}}var No=Ym;function jo(r,e){let t=0,n=No(50,250);return i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,u=s-t,a=n(u),f=s<=o;t=s;let d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:a||void 0,estimated:a&&o&&f?(o-s)/a:void 0,event:i};d[e?"download":"upload"]=!0,r(d)}}var Xm=typeof XMLHttpRequest!="undefined",Uo=Xm&&function(r){return new Promise(function(t,n){let i=r.data,s=He.from(r.headers).normalize(),o=r.responseType,u;function a(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}I.isFormData(i)&&(De.isStandardBrowserEnv||De.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let f=new XMLHttpRequest;if(r.auth){let O=r.auth.username||"",p=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.set("Authorization","Basic "+btoa(O+":"+p))}let d=Ft(r.baseURL,r.url);f.open(r.method.toUpperCase(),Nt(d,r.params,r.paramsSerializer),!0),f.timeout=r.timeout;function v(){if(!f)return;let O=He.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:r,request:f};Ci(function(K){t(K),a()},function(K){n(K),a()},C),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(n(new ce("Request aborted",ce.ECONNABORTED,r,f)),f=null)},f.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,r,f)),f=null},f.ontimeout=function(){let p=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",C=r.transitional||bn;r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),n(new ce(p,C.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,r,f)),f=null},De.isStandardBrowserEnv){let O=(r.withCredentials||Lo(d))&&r.xsrfCookieName&&Mo.read(r.xsrfCookieName);O&&s.set(r.xsrfHeaderName,O)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&I.forEach(s.toJSON(),function(p,C){f.setRequestHeader(C,p)}),I.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),o&&o!=="json"&&(f.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&f.addEventListener("progress",jo(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",jo(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=O=>{f&&(n(!O||O.type?new wr(null,r,f):O),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let w=Pi(d);if(w&&De.protocols.indexOf(w)===-1){n(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,r));return}f.send(i||null)})};var On={http:wn,xhr:Uo};I.forEach(On,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});var Do={getAdapter:r=>{r=I.isArray(r)?r:[r];let{length:e}=r,t,n;for(let i=0;i<e&&(t=r[i],!(n=I.isString(t)?On[t.toLowerCase()]:t));i++);if(!n)throw n===!1?new ce(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(I.hasOwnProp(On,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`);if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:On};function qi(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new wr(null,r)}function En(r){return qi(r),r.headers=He.from(r.headers),r.data=Ut.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Do.getAdapter(r.adapter||nt.adapter)(r).then(function(n){return qi(r),n.data=Ut.call(r,r.transformResponse,n),n.headers=He.from(n.headers),n},function(n){return Dt(n)||(qi(r),n&&n.response&&(n.response.data=Ut.call(r,r.transformResponse,n.response),n.response.headers=He.from(n.response.headers))),Promise.reject(n)})}var Fo=r=>r instanceof He?r.toJSON():r;function fr(r,e){e=e||{};let t={};function n(f,d,v){return I.isPlainObject(f)&&I.isPlainObject(d)?I.merge.call({caseless:v},f,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(f,d,v){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f,v)}else return n(f,d,v)}function s(f,d){if(!I.isUndefined(d))return n(void 0,d)}function o(f,d){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,v){if(v in e)return n(f,d);if(v in r)return n(void 0,f)}let a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d)=>i(Fo(f),Fo(d),!0)};return I.forEach(Object.keys(r).concat(Object.keys(e)),function(d){let v=a[d]||i,w=v(r[d],e[d],d);I.isUndefined(w)&&v!==u||(t[d]=w)}),t}var Cn="1.3.2";var Ri={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Ri[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var Bo={};Ri.transitional=function(e,t,n){function i(s,o){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new ce(i(o," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!Bo[o]&&(Bo[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,u):!0}};function Zm(r,e,t){if(typeof r!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let u=r[s],a=u===void 0||o(u,s,r);if(a!==!0)throw new ce("option "+s+" must be "+a,ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}var Tn={assertOptions:Zm,validators:Ri};var _r=Tn.validators,st=class{constructor(e){this.defaults=e,this.interceptors={request:new Ai,response:new Ai}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=fr(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Tn.assertOptions(n,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),i!==void 0&&Tn.assertOptions(i,{encode:_r.function,serialize:_r.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=s&&I.merge(s.common,s[t.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),t.headers=He.concat(o,s);let u=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(a=a&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});let f=[];this.interceptors.response.forEach(function(C){f.push(C.fulfilled,C.rejected)});let d,v=0,w;if(!a){let p=[En.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),w=p.length,d=Promise.resolve(t);v<w;)d=d.then(p[v++],p[v++]);return d}w=u.length;let O=t;for(v=0;v<w;){let p=u[v++],C=u[v++];try{O=p(O)}catch(G){C.call(this,G);break}}try{d=En.call(this,O)}catch(p){return Promise.reject(p)}for(v=0,w=f.length;v<w;)d=d.then(f[v++],f[v++]);return d}getUri(e){e=fr(this.defaults,e);let t=Ft(e.baseURL,e.url);return Nt(t,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){st.prototype[e]=function(t,n){return this.request(fr(n||{},{method:e,url:t,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(e){function t(n){return function(s,o,u){return this.request(fr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)});var Bt=st;var kt=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new wr(s,o,u),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt(function(i){e=i}),cancel:e}}},ko=kt;function Mi(r){return function(t){return r.apply(null,t)}}function Li(r){return I.isObject(r)&&r.isAxiosError===!0}var Ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ni).forEach(([r,e])=>{Ni[e]=r});var $o=Ni;function zo(r){let e=new Bt(r),t=Rt(Bt.prototype.request,e);return I.extend(t,Bt.prototype,e,{allOwnKeys:!0}),I.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return zo(fr(r,i))},t}var Ie=zo(nt);Ie.Axios=Bt;Ie.CanceledError=wr;Ie.CancelToken=ko;Ie.isCancel=Dt;Ie.VERSION=Cn;Ie.toFormData=vr;Ie.AxiosError=ce;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=Mi;Ie.isAxiosError=Li;Ie.mergeConfig=fr;Ie.AxiosHeaders=He;Ie.formToJSON=r=>Sn(I.isHTMLForm(r)?new FormData(r):r);Ie.HttpStatusCode=$o;Ie.default=Ie;var Fe=Ie;var{Axios:YI,AxiosError:XI,CanceledError:ZI,isCancel:QI,CancelToken:eP,VERSION:rP,all:tP,Cancel:nP,isAxiosError:iP,spread:sP,toFormData:oP,AxiosHeaders:aP,HttpStatusCode:uP,formToJSON:fP,mergeConfig:cP}=Fe;var re=pe(Iu(),1),Ae=pe(Fu(),1),xr=pe(lf(),1),on=pe(jf(),1),Ss=pe(Yf(),1),xs=pe(Oc(),1),Re=pe(We(),1),an=pe(er(),1),xe=pe(Cc(),1),As=pe($c(),1),nr=pe(Ll(),1),SC=pe(_h(),1),Os=pe(ws(),1),cr=pe(xp(),1),Es=pe(Op(),1);var Nr=pe(Ge(),1);var hn={};gn(hn,{BaseProvider:()=>le,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>Ir,LobidApiProvider:()=>Yr,LocApiProvider:()=>qr,LocalMappingsProvider:()=>Er,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Lr,OccurrencesApiProvider:()=>Cr,ReconciliationApiProvider:()=>Tr,SkohubProvider:()=>Rr,SkosmosApiProvider:()=>Pr});var bt=pe(Ge(),1);var Or={};gn(Or,{concatUrl:()=>lr,listOfCapabilities:()=>Oe,requestMethods:()=>Fs,withCustomProps:()=>Wr});var Fs=[{method:"getRegistries",fallback:[],type:"Registries"},{method:"getSchemes",fallback:[],type:"Schemes"},{method:"vocSearch",fallback:[],type:"Schemes"},{method:"getTypes",fallback:[],type:"Types"},{method:"suggest",fallback:["",[],[],[]]},{method:"vocSuggest",fallback:["",[],[],[]]},{method:"getConcordances",fallback:[],type:"Concordances"},{method:"getOccurrences",fallback:[],type:"Occurrences"},{method:"getTop",fallback:[],type:"Concepts"},{method:"getConcepts",fallback:[],type:"Concepts"},{method:"getNarrower",fallback:[],type:"Concepts"},{method:"getAncestors",fallback:[],type:"Concepts"},{method:"search",fallback:[],type:"Concepts"},{method:"getMapping",fallback:null,type:"Mapping"},{method:"getMappings",fallback:[],type:"Mappings"},{method:"postMapping",fallback:null,type:"Mapping"},{method:"postMappings",fallback:[],type:"Mapping"},{method:"putMapping",fallback:null,type:"Mapping"},{method:"patchMapping",fallback:null,type:"Mapping"},{method:"deleteMapping",fallback:!1},{method:"deleteMappings",fallback:[]},{method:"getAnnotations",fallback:[],type:"Annotations"},{method:"postAnnotation",fallback:null,type:"Annotation"},{method:"putAnnotation",fallback:null,type:"Annotation"},{method:"patchAnnotation",fallback:null,type:"Annotation"},{method:"deleteAnnotation",fallback:!1}];function lr(...r){let[e,...t]=r;for(let n of t)e.endsWith("/")||(e+="/"),n.startsWith("/")&&(n=n.slice(1)),e+=n;return e}function Wr(r,e){return r._totalCount=e._totalCount,r._url=e._url,r}var Oe=["schemes","top","data","concepts","narrower","ancestors","types","suggest","search","auth","mappings","concordances","annotations","occurrences"];var le=class{constructor(e={}){this._jskos=e,this.axios=Fe.create({timeout:2e4}),this._path=typeof window!="undefined"&&window.location.pathname,this.has={},this._defaultLanguages="en,de,fr,es,nl,it,fi,pl,ru,cs,jp".split(","),this.languages=[],this._auth={key:null,bearerToken:null},this._repeating=[],this._api={status:e.status,schemes:Array.isArray(e.schemes)?void 0:e.schemes,top:e.top,data:e.data,concepts:e.concepts,narrower:e.narrower,ancestors:e.ancestors,types:e.types,suggest:e.suggest,search:e.search,"voc-suggest":e["voc-suggest"],"voc-search":e["voc-search"],mappings:e.mappings,concordances:e.concordances,annotations:e.annotations,occurrences:e.occurrences,reconcile:e.reconcile,api:e.api},this._config={},this.setRetryConfig(),this.axios.interceptors.request.use(n=>{if(!n._skipAdditionalParameters){let i=xr.default([].concat(re.default(n,"params.language","").split(","),this.languages,this._defaultLanguages).filter(s=>s!="")).join(",");Ae.default(n,"params.language",i),this.has.auth&&this._auth.bearerToken&&!re.default(n,"headers.Authorization")&&Ae.default(n,"headers.Authorization",`Bearer ${this._auth.bearerToken}`)}if(n.url.startsWith("http:")&&typeof window!="undefined"&&window.location.protocol=="https:")throw new Fe.Cancel("Can't call http API from https.");return n}),this.axios.interceptors.response.use(({data:n,headers:i={},config:s={}})=>{n=bt.default.normalize(n);let o=s.url;if(o.endsWith("?")||(o+="?"),xs.default(s.params||{},(u,a)=>{o+=`${a}=${encodeURIComponent(u)}&`}),Re.default(n)||an.default(n)){let u=parseInt(i["x-total-count"]);isNaN(u)||(n._totalCount=u),n._url=o}return n},n=>{let i=re.default(n,"config._retryCount",0),s=re.default(n,"config.method"),o=re.default(n,"response.status");return this._retryConfig.methods.includes(s)&&this._retryConfig.statusCodes.includes(o)&&i<this._retryConfig.count?(n.config._retryCount=i+1,n.config.data&&(n.config.data=JSON.parse(n.config.data)),new Promise((u,a)=>{setTimeout(()=>{this.axios(n.config).then(u).catch(a)},(()=>{let f=this._retryConfig.delay;return typeof f=="function"?f(i):f})())})):Promise.reject(n)});let t=[];for(let{method:n,type:i}of Fs){let s=this[n]&&this[n].bind(this);if(!s){this[n]=()=>{throw new Tt({method:n})};continue}this[n]=(o={})=>{if(o._raw)return delete o._raw,s(o);let u=t.find(v=>v.method==n&&nr.default(v.options,o));if(u)return u.promise;let a;o.cancelToken||(a=this.getCancelTokenSource(),o.cancelToken=a.token);let f=this.init().then(()=>s(o)).then(v=>(Re.default(v)&&v._totalCount===void 0?v._totalCount=v.length:an.default(v)&&v._totalCount===void 0&&(v._totalCount=1),v&&i&&this[`adjust${i}`]&&(v=this[`adjust${i}`](v)),v)).catch(v=>{throw v instanceof qe?v:v.response?v.response.status.toString().startsWith(4)?new tr({relatedError:v,code:v.response.status}):new It({relatedError:v,code:v.response.status}):v.request?typeof navigator!="undefined"&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)?new Pt({relatedError:v}):new qt({relatedError:v}):new qe({relatedError:v})});a&&(f.cancel=(...v)=>a.cancel(...v));let d={method:n,options:cr.default(o,["cancelToken"]),promise:f};return t.push(d),f.catch(()=>{}).then(()=>t.splice(t.indexOf(d),1)),f}}}get uri(){return this._jskos.uri}get notation(){return this._jskos.notation}get prefLabel(){return this._jskos.prefLabel}get definition(){return this._jskos.definition}get schemes(){return this._jskos.schemes}get excludedSchemes(){return this._jskos.excludedSchemes}get stored(){return this._jskos.stored!==void 0?this._jskos.stored:this.constructor.stored}init(){return L(this,null,function*(){return this._init?this._init:(this._init=(()=>L(this,null,function*(){this._prepare();let e;if(xe.default(this._api.status))try{e=yield this.axios({method:"get",url:this._api.status})}catch(t){re.default(t,"response.status")===404&&(this._api.status=null)}else e=this._api.status;if(an.default(e)&&!As.default(e)){this._config=e.config||{};for(let t of Object.keys(this._api))this._api[t]===void 0&&(this._api[t]=e[t]||null)}this._setup()}))(),this._init)})}_prepare(){}_setup(){}getCancelTokenSource(){return Fe.CancelToken.source()}setAuth({key:e=this._auth.key,bearerToken:t=this._auth.bearerToken}){this._auth.key=e,this._auth.bearerToken=t}setRetryConfig(e={}){this._retryConfig=Object.assign({methods:["get","head","options"],statusCodes:[401,403],count:3,delay:t=>300*t},e)}isAuthorizedFor({type:e,action:t,user:n,crossUser:i}){if(t=="read"&&this.has[e]===!0)return!0;if(!this.has[e])return!1;let s=re.default(this._config,`${e}.${t}`);if(!s)return!!this.has[e][t];if(s.auth&&(!n||!this._auth.key)||s.auth&&this._auth.key!=re.default(this._config,"auth.key"))return!1;let o=[n.uri].concat(Object.values(n.identities||{}).map(u=>u.uri)).filter(u=>u!=null);if(s.auth&&s.identities&&on.default(o,s.identities).length==0)return!1;if(s.auth&&s.identityProviders){let u=Object.keys(n&&n.identities||{});if(on.default(u,s.identityProviders).length==0)return!1}return i?s.crossUser===!0||on.default(s.crossUser||[],o).length>0:!!this.has[e][t]}supportsScheme(e){if(!e)return!1;let t=Re.default(this.schemes)?this.schemes:null;return t==null&&!bt.default.isContainedIn(e,this.excludedSchemes||[])?!0:bt.default.isContainedIn(e,t)}adjustConcept(e){if(!e||e.__SAVED__)return e;e._getNarrower=t=>this.getNarrower(k(M({},t),{concept:e})),e._getAncestors=t=>this.getAncestors(k(M({},t),{concept:e})),e._getDetails=t=>L(this,null,function*(){return(yield this.getConcepts(k(M({},t),{concepts:[e]})))[0]});for(let t of["broader","narrower","ancestors"])Array.isArray(e[t])&&e[t].length&&!e[t].includes(null)&&(e[t]=this.adjustConcepts(e[t]));return e._registry=this,e}adjustConcepts(e){return Wr(e.map(t=>this.adjustConcept(t)),e)}adjustRegistries(e){return e}adjustScheme(e){if(!e||e.__SAVED__)return e;let t=e._registry;return e._registry=this.cdk&&this.cdk.registryForScheme(e),!e._registry||t===e._registry||e._registry._api.api===this._api.api?e._registry=t||this:["concepts","topConcepts"].forEach(n=>{Array.isArray(e[n])&&(e[n].length===0||e[n][0]===null)&&delete e[n]}),e._registry&&(e._getTop=n=>e._registry.getTop(k(M({},n),{scheme:e})),e._getTypes=n=>e._registry.getTypes(k(M({},n),{scheme:e})),e._suggest=s=>{var o=s,{search:n}=o,i=V(o,["search"]);return e._registry.suggest(k(M({},i),{search:n,scheme:e}))}),e}adjustSchemes(e){return Wr(e.map(t=>this.adjustScheme(t)),e)}adjustConcordances(e){for(let t of e)t._registry=this;return e}adjustMapping(e){for(let t of["from","to"]){let n=`${t}Scheme`;e[n]||(e[n]=re.default(bt.default.conceptsOfMapping(e,t),"[0].inScheme[0]",null))}if(e._registry=this,!e.identifier){let t=re.default(bt.default.addMappingIdentifiers(e),"identifier");t&&(e.identifier=t)}return e}adjustMappings(e){return Wr(e.map(t=>this.adjustMapping(t)),e)}postMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"postMapping",items:e,itemProperty:"mapping",config:t})})}deleteMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"deleteMapping",items:e,itemProperty:"mapping",config:t})})}_callHelperForArrayWrappers(s){return L(this,arguments,function*({method:e,items:t,itemProperty:n,config:i}){let o=[],u=yield Promise.all(t.map(a=>L(this,null,function*(){try{return yield this[e](k(M({[n]:a},i),{_raw:!0}))}catch(f){return o[t.indexOf(a)]=f,null}})));return u._errors=o,u})}};le.providerName="Base";var je=pe(Ge(),1);var hr=pe(nd(),1);var ni,pT=new Uint8Array(16);function ks(){if(!ni&&(ni=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ni))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ni(pT)}var Ne=[];for(let r=0;r<256;++r)Ne.push((r+256).toString(16).slice(1));function id(r,e=0){return(Ne[r[e+0]]+Ne[r[e+1]]+Ne[r[e+2]]+Ne[r[e+3]]+"-"+Ne[r[e+4]]+Ne[r[e+5]]+"-"+Ne[r[e+6]]+Ne[r[e+7]]+"-"+Ne[r[e+8]]+Ne[r[e+9]]+"-"+Ne[r[e+10]]+Ne[r[e+11]]+Ne[r[e+12]]+Ne[r[e+13]]+Ne[r[e+14]]+Ne[r[e+15]]).toLowerCase()}var dT=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$s={randomUUID:dT};function mT(r,e,t){if($s.randomUUID&&!e&&!r)return $s.randomUUID();r=r||{};let n=r.random||(r.rng||ks)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return id(n)}var ii=mT;var si="urn:uuid:",Er=class extends le{_prepare(){this.has.mappings={read:!0,create:!0,update:!0,delete:!0},Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this.queue=[],this.localStorageKey="cocoda-mappings--"+this._path;let e="mappings",t=()=>hr.default.getItem(this.localStorageKey).then(n=>{n=n||[];let i=0;for(let s of n.filter(o=>!o.uri||!o.uri.startsWith(si)))s.uri&&(s.identifier||(s.identifier=[]),s.identifier.push(s.uri)),s.uri=`${si}${ii()}`,i+=1;return i&&console.warn(`URIs added to ${i} local mappings.`),hr.default.setItem(this.localStorageKey,n)});hr.default.getItem(e).then(n=>{n&&console.warn(`Warning: There is old data in local storage (or IndexedDB, depending on the ) with the key "${e}". This data will not be used anymore. A manual export is necessary to get this data back.`)}),this.queue.push(t().catch(n=>{console.warn("Error when adding URIs to local mappings:",n)}))}isAuthorizedFor({type:e,action:t}){return e=="mappings"&&t!="anonymous"}_getMappingsQueue(){let e=Os.default(this.queue)||Promise.resolve();return new Promise(t=>{function n(){var o,u,a=new Promise((f,d)=>{o=f,u=d});return a.resolve=o,a.reject=u,a}let i=n(),s=()=>{i.resolve()};this.queue.push(i),e.then(()=>hr.default.getItem(this.localStorageKey)).then(o=>{t({mappings:o,done:s})})})}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(t._raw=!0,!e||!e.uri)throw new H({parameter:"mapping"});return(yield this.getMappings(k(M({},t),{uri:e.uri})))[0]})}getMappings(){return L(this,arguments,function*({from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,uri:O}={}){let p={};return e&&(p.from=xe.default(e)?e:e.uri),t&&(p.fromScheme=xe.default(t)?{uri:t}:t),n&&(p.to=xe.default(n)?n:n.uri),i&&(p.toScheme=xe.default(i)?{uri:i}:i),s&&(p.creator=xe.default(s)?s:je.default.prefLabel(s)),o&&(p.type=xe.default(o)?o:o.uri),u&&(p.partOf=xe.default(u)?u:u.uri),a&&(p.offset=a),f&&(p.limit=f),d&&(p.direction=d),v&&(p.mode=v),w&&(p.identifier=w),O&&(p.uri=O),this._getMappingsQueue().catch(C=>{throw new qe({message:"Could not get mappings from local storage",relatedError:C})}).then(({mappings:C,done:G})=>{G();let K=(D,Q)=>D.uri==Q||Q&&D.notation&&D.notation[0].toLowerCase()==Q.toLowerCase();if((p.from||p.to)&&(C=C.filter(D=>{let Q=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.from))!=null,ne=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.from))!=null,E=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.to))!=null,ee=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.to))!=null;return p.direction=="backward"?p.mode=="or"?p.from&&ne||p.to&&E:(!p.from||ne)&&(!p.to||E):p.direction=="both"?p.mode=="or"?p.from&&(Q||ne)||p.to&&(E||ee):(!p.from||Q)&&(!p.to||ee)||(!p.from||ne)&&(!p.to||E):p.mode=="or"?p.from&&Q||p.to&&ee:(!p.from||Q)&&(!p.to||ee)})),(p.fromScheme||p.toScheme)&&(C=C.filter(D=>{let Q=je.default.compare(D.fromScheme,p.fromScheme),ne=je.default.compare(D.toScheme,p.fromScheme),E=je.default.compare(D.fromScheme,p.toScheme),ee=je.default.compare(D.toScheme,p.toScheme);return p.direction=="backward"?p.mode=="or"?p.fromScheme&&ne||p.toScheme&&E:(!p.fromScheme||ne)&&(!p.toScheme||E):p.direction=="both"?p.mode=="or"?p.fromScheme&&(Q||ne)||p.toScheme&&(E||ee):(!p.fromScheme||Q)&&(!p.toScheme||ee)||(!p.fromScheme||ne)&&(!p.toScheme||E):p.mode=="or"?p.fromScheme&&Q||p.toScheme&&ee:(!p.fromScheme||Q)&&(!p.toScheme||ee)})),p.creator){let D=p.creator.split("|");C=C.filter(Q=>(Q.creator&&Q.creator.find(ne=>D.includes(je.default.prefLabel(ne))||D.includes(ne.uri)))!=null)}p.type&&(C=C.filter(D=>(D.type||[je.default.defaultMappingType.uri]).includes(p.type))),p.partOf&&(C=C.filter(D=>D.partOf!=null&&D.partOf.find(Q=>je.default.compare(Q,{uri:p.partOf}))!=null)),p.identifier&&(C=C.filter(D=>p.identifier.split("|").map(Q=>(D.identifier||[]).includes(Q)||D.uri==Q).reduce((Q,ne)=>Q||ne))),p.uri&&(C=C.filter(D=>D.uri==p.uri));let te=C.length;return C=C.sort((D,Q)=>{let ne=D.modified||D.created,E=Q.modified||Q.created;return E==null?-1:ne==null?1:ne>E?-1:1}),C=C.slice(p.offset||0),C=C.slice(0,p.limit),C._totalCount=te,C})})}postMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();if((!e.uri||!e.uri.startsWith(si))&&(e.uri&&(e.identifier||(e.identifier=[]),e.identifier.push(e.uri)),e.uri=`${si}${ii()}`),n.find(s=>s.uri==e.uri))throw i(),new H({parameter:"mapping",message:"Duplicate URI"});e.created||(e.created=new Date().toISOString()),e.modified||(e.modified=e.created),n.push(e),n=n.map(s=>je.default.minifyMapping(s));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(s){throw i(),s}})}putMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=e,n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}patchMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=Object.assign(n[s],e),n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}deleteMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();try{return n=n.filter(s=>s.uri!=e.uri),n=n.map(s=>je.default.minifyMapping(s)),yield hr.default.setItem(this.localStorageKey,n),i(),!0}catch(s){throw i(),s}})}};Er.providerName="LocalMappings";Er.stored=!0;var St=pe(Ge(),1);var ir=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.mappings=!0,this.has.concordances=!0,this.has.annotations=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={mappings:"/mappings",concordances:"/concordances",annotations:"/annotations"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.mappings=this._api.mappings?{}:!1,this.has.mappings&&(this.has.mappings.read=!!re.default(this._config,"mappings.read",!0),this.has.mappings.create=!!re.default(this._config,"mappings.create"),this.has.mappings.update=!!re.default(this._config,"mappings.update"),this.has.mappings.delete=!!re.default(this._config,"mappings.delete"),this.has.mappings.anonymous=!!re.default(this._config,"mappings.anonymous")),this.has.concordances=this._api.concordances?{}:!1,this.has.concordances&&(this.has.concordances.read=!!re.default(this._config,"concordances.read"),this.has.concordances.create=!!re.default(this._config,"concordances.create"),this.has.concordances.update=!!re.default(this._config,"concordances.update"),this.has.concordances.delete=!!re.default(this._config,"concordances.delete")),this.has.annotations=this._api.annotations?{}:!1,this.has.annotations&&(this.has.annotations.read=!!re.default(this._config,"annotations.read"),this.has.annotations.create=!!re.default(this._config,"annotations.create"),this.has.annotations.update=!!re.default(this._config,"annotations.update"),this.has.annotations.delete=!!re.default(this._config,"annotations.delete")),this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"annotations"}}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});if(!e.uri||!e.uri.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});try{return yield this.axios(k(M({},t),{url:e.uri,params:M(M({},this._defaultParams),t.params||{})}))}catch(s){if(re.default(s,"response.status")==404)return null;throw s}})}getMappings(Q){return L(this,null,function*(){var ne=Q,{from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,cardinality:O,annotatedBy:p,annotatedFor:C,annotatedWith:G,sort:K,order:te}=ne,D=V(ne,["from","fromScheme","to","toScheme","creator","type","partOf","offset","limit","direction","mode","identifier","cardinality","annotatedBy","annotatedFor","annotatedWith","sort","order"]);let E={},ee=this._api.mappings;return e&&(E.from=xe.default(e)?e:e.uri),t&&(E.fromScheme=xe.default(t)?t:t.uri),n&&(E.to=xe.default(n)?n:n.uri),i&&(E.toScheme=xe.default(i)?i:i.uri),s&&(E.creator=xe.default(s)?s:St.default.prefLabel(s)),o&&(E.type=xe.default(o)?o:o.uri),u&&(E.partOf=xe.default(u)?u:u.uri),a&&(E.offset=a),f&&(E.limit=f),d&&(E.direction=d),O&&(E.cardinality=O),p&&(E.annotatedBy=p),C&&(E.annotatedFor=C),G&&(E.annotatedWith=G),v&&(E.mode=v),w&&(E.identifier=w),K&&(E.sort=K),te&&(E.order=te),this.axios(k(M({},D),{method:"get",url:ee,params:M(M(M({},this._defaultParams),D.params||{}),E)}))})}postMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});return e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e),this.axios(k(M({},t),{method:"post",url:this._api.mappings,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e);let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getAnnotations(n){return L(this,null,function*(){var i=n,{target:e}=i,t=V(i,["target"]);return e&&Ae.default(t,"params.target",e),this.axios(k(M({},t),{method:"get",url:this._api.annotations}))})}postAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);return this.axios(k(M({},t),{method:"post",url:this._api.annotations,data:e}))})}putAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e}))})}patchAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:e}))})}deleteAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getConcordances(e){return L(this,null,function*(){return this.axios(k(M({},e),{method:"get",url:this._api.concordances}))})}postConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});return this.axios(k(M({},t),{method:"post",url:this._api.concordances,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}};ir.providerName="MappingsApi";ir.stored=!0;var xt=pe(Ge(),1);var zs={},Cr=class extends le{get _cache(){return zs[this.uri]}_prepare(){zs[this.uri]=[],this._occurrencesSupportedSchemes=[],this.has.occurrences=!0,this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_occurrencesIsSupported(e){return L(this,null,function*(){if(!(this._occurrencesSupportedSchemes&&this._occurrencesSupportedSchemes.length))try{let n=lr(this._api.api,"voc"),i=yield this.axios({method:"get",url:n});this._occurrencesSupportedSchemes=i||[]}catch(n){}let t=!1;for(let n of this._occurrencesSupportedSchemes)xt.default.compare(e,n)&&(t=!0);return t})}getMappings(e){return L(this,null,function*(){let t=yield this.getOccurrences(e),n=e.from,i=re.default(n,"inScheme[0]")||e.fromScheme,s=e.to,o=re.default(s,"inScheme[0]")||e.toScheme,u=[];for(let a of t){if(!a)continue;let f={};f.from=re.default(a,"memberSet[0]"),f.from?f.from={memberSet:[f.from]}:f.from=null,f.fromScheme=re.default(a,"memberSet[0].inScheme[0]"),f.to=re.default(a,"memberSet[1]"),f.to?f.to={memberSet:[f.to]}:f.to={memberSet:[]},f.toScheme=re.default(a,"memberSet[1].inScheme[0]"),(n&&xt.default.compare(n,re.default(f,"to.memberSet[0]"))||s&&xt.default.compare(s,re.default(f,"from.memberSet[0]")))&&([f.from,f.fromScheme,f.to,f.toScheme]=[f.to,f.toScheme,f.from,f.fromScheme]),!f.fromScheme&&i&&(f.fromScheme=i),!f.toScheme&&o&&(f.toScheme=o),f.type=[xt.default.defaultMappingType.uri],f._occurrence=a,f=xt.default.addMappingIdentifiers(f),u.push(f)}return u._url=t._url,u})}getOccurrences(o){return L(this,null,function*(){var u=o,{from:e,to:t,concepts:n,threshold:i=0}=u,s=V(u,["from","to","concepts","threshold"]);let a=[];n=(n||[]).concat([e,t]).filter(p=>!!p);for(let p of n)a.push(this._occurrencesIsSupported(re.default(p,"inScheme[0]")).then(C=>C&&p.uri?p.uri:null));let f=yield Promise.all(a);if(f=f.filter(p=>p!=null),f.length==0)throw new H({parameter:"concepts"});a=[];for(let p of f)a.push(this._getOccurrences(k(M({},s),{params:{member:p,scheme:"*",threshold:i}})));let d=yield Promise.all(a),v=Es.default([],...d),w=[],O=[];for(let p=0;p<v.length;p+=1){let C=v[p];if(!C)continue;let G=C.memberSet.reduce((K,te)=>K.concat(te.uri),[]).sort().join(" ");w.includes(G)?O.push(p):w.push(G)}return O.forEach(p=>{delete v[p]}),v=v.filter(p=>p!=null),v=v.sort((p,C)=>parseInt(C.count||0)-parseInt(p.count||0)),v._url=d.map(p=>p._url),v})}_getOccurrences(e){return L(this,null,function*(){let t=this._cache.find(i=>nr.default(i.config.params,e.params));if(t)return t.data;let n=yield this.axios(k(M({},e),{method:"get",url:this._api.api}));return this._cache.push({config:e,data:n}),this._cache.length>20&&(zs[this.uri]=this._cache.slice(this._cache.length-20)),n})}};Cr.providerName="OccurrencesApi";Cr.stored=!1;var Gr=pe(Ge(),1);var sr=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,this.has.auth=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={schemes:"/voc",top:"/voc/top",concepts:"/voc/concepts",data:"/data",narrower:"/narrower",ancestors:"/ancestors",types:"/types",suggest:"/suggest",search:"/search"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.schemes=!!this._api.schemes,!this.has.schemes&&Array.isArray(this.schemes)&&(this.has.schemes=!0),this.has.top=!!this._api.top,this.has.data=!!this._api.data,this.has.concepts=!!this._api.concepts||this.has.data,this.has.narrower=!!this._api.narrower,this.has.ancestors=!!this._api.ancestors,this.has.types=!!this._api.types,this.has.suggest=!!this._api.suggest,this.has.search=!!this._api.search,this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"+created,issued,modified,editorialNote,scopeNote"}}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e,schemes:[t]}}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(s=>Gr.default.compare(e,s));if(t)return t.uri;if(this._rejectedSchemes.find(s=>Gr.default.compare(e,s)))return null;let i=(yield this.getSchemes({params:{uri:Gr.default.getAllUris(e).join("|")}})).find(s=>Gr.default.compare(s,e));return i?(this._approvedSchemes.push({uri:i.uri,identifier:Gr.default.getAllUris(e)}),i.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}getSchemes(e){return L(this,null,function*(){if(!this._api.schemes){if(Array.isArray(this.schemes))return this.schemes;throw new ze}let t=yield this.axios(k(M({},e),{method:"get",url:this._api.schemes,params:M(k(M({},this._defaultParams),{limit:500}),e.params||{})}));return Array.isArray(this.schemes)?Wr(t.filter(n=>Gr.default.isContainedIn(n,this.schemes)),t):t})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.top)throw new ze;if(!e)throw new H({parameter:"scheme"});let s=yield this._getSchemeUri(e);if(!s)throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Array.isArray(this._api.top)?this._api.top:this.axios(k(M({},t),{method:"get",url:this._api.top,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:s})}))})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);if(this.has.data===!1)throw new ze;if(!e)throw new H({parameter:"concepts"});Array.isArray(e)||(e=[e]);let s=e.map(o=>o.uri).filter(o=>o!=null);return this.axios(k(M({},t),{method:"get",url:this._api.data,params:k(M(k(M({},this._defaultParams),{limit:500}),t.params||{}),{uri:s.join("|")})}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.narrower)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.narrower,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.ancestors)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.ancestors,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}suggest(o){return L(this,null,function*(){var u=o,{use:e="notation,label",types:t=[],sort:n="score",params:i={}}=u,s=V(u,["use","types","sort","params"]);return this._search(k(M({},s),{endpoint:"suggest",params:k(M({},i),{type:t.join("|"),use:e,sort:n})}))})}search(i){return L(this,null,function*(){var s=i,{types:e=[],params:t={}}=s,n=V(s,["types","params"]);return this._search(k(M({},n),{endpoint:"search",params:k(M({},t),{type:e.join("|")})}))})}vocSuggest(s){return L(this,null,function*(){var o=s,{use:e="notation,label",sort:t="score",params:n={}}=o,i=V(o,["use","sort","params"]);return this._search(k(M({},i),{endpoint:"voc-suggest",params:k(M({},n),{use:e,sort:t})}))})}vocSearch(e){return L(this,null,function*(){return this._search(k(M({},e),{endpoint:"voc-search"}))})}_search(f){return L(this,null,function*(){var d=f,{endpoint:e,scheme:t,search:n,limit:i,offset:s,params:o,url:u}=d,a=V(d,["endpoint","scheme","search","limit","offset","params","url"]);if(u=u!=null?u:this._api[e],!u)throw new ze;if(!n)throw new H({parameter:"search"});i=i||this._jskos.suggestResultLimit||100,s=s||0;let v=t&&(yield this._getSchemeUri(t));return u=u.replace("{searchTerms}",n),this.axios(k(M({},a),{params:k(M(M({},this._defaultParams),o),{limit:i,count:i,offset:s,search:n,query:n,voc:v}),method:"get",url:u}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.types)throw new ze;if(Array.isArray(this._api.types))return this._api.types;let s=e&&(yield this._getSchemeUri(e));return s&&Ae.default(t,"params.uri",s),this.axios(k(M({},t),{method:"get",url:this._api.types}))})}};sr.providerName="ConceptApi";sr.providerType="http://bartoc.org/api-type/jskos";var fn=pe(Ge(),1);var Hs={},Tr=class extends le{get _cache(){return Hs[this.uri]}_prepare(){Hs[this.uri]=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}getMappings(s){return L(this,null,function*(){var o=s,{from:e,to:t,mode:n}=o,i=V(o,["from","to","mode"]);let u=[];Re.default(this.schemes)&&(u=this.schemes);let a,f,d=re.default(e,"inScheme[0]"),v=re.default(t,"inScheme[0]"),w,O;if(!e||fn.default.isContainedIn(d,u)?(a=!0,f=t,w=v,O=u.find(E=>fn.default.compare(E,d))||u[0]):(a=!1,f=e,w=d,O=u.find(E=>fn.default.compare(E,v))||u[0]),n!="or")return[];if(!this._api.api)throw new ze;if(!f)throw new H({parameter:a?"to":"from"});let p=fn.default.languagePreference.selectLanguage(f.prefLabel);if(!p)throw new H({parameter:a?"to":"from",message:"Missing language"});let C=re.default(f,`altLabel.${p}`,[]);xe.default(C)&&(C=[C]);let G=re.default(f,`prefLabel.${p}`),K=C.concat([G]);K=[G];let{url:te,data:D}=yield this._getReconciliationResults(k(M({},i),{labels:K,language:p}));D=[].concat(...Object.values(D).map(E=>E.result)).filter(E=>E),D=D.sort((E,ee)=>E.score!=ee.score?ee.score-E.score:E.match!=ee.match?E.match?-1:1:E.id.length-ee.id.length);let Q=re.default(O,"namespace",""),ne=D.map(E=>({fromScheme:w,from:{memberSet:[f]},toScheme:O,to:{memberSet:[{uri:Q+E.id}]},type:[E.match?"http://www.w3.org/2004/02/skos/core#exactMatch":E.score>=80?"http://www.w3.org/2004/02/skos/core#closeMatch":"http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return a&&(ne=ne.map(E=>Object.assign(E,{fromScheme:E.toScheme,from:E.to,toScheme:E.fromScheme,to:E.from}))),ne._url=te,ne})}_getReconciliationResults(i){return L(this,null,function*(){var s=i,{labels:e,language:t}=s,n=V(s,["labels","language"]);e=e.sort();let o=this._cache.find(O=>nr.default(O.labels,e)&&O.language==t);if(o)return o;let u={},a=0;for(let O of e)u[`q${a}`]={query:O},a+=1;let f=this._api.api;t&&(f=f.replace("{language}",t));let d=`queries=${encodeURIComponent(JSON.stringify(u))}`;Ae.default(n,["headers","Content-Type"],"application/x-www-form-urlencoded");let v=yield this.axios(k(M({},n),{method:"post",url:f,data:d}));v=v||{};let w={labels:e,language:t,data:v,url:`${f}${f.includes("?")?"&":"?"}${d}`};return this._cache.push(w),this._cache.length>20&&(Hs[this.uri]=this._cache.slice(this._cache.length-20)),w})}};Tr.providerName="ReconciliationApi";Tr.stored=!1;var Kr=pe(Ge(),1);var Ir=class extends le{_prepare(){this._cache=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}supportsScheme(e){return super.supportsScheme(e)&&re.default(e,"_registry.has.search",!1)}getMappings(u){return L(this,null,function*(){var a=u,{from:e,to:t,mode:n,selected:i,limit:s=10}=a,o=V(a,["from","to","mode","selected","limit"]);if(n!="or")return[];if(!i)throw new H({parameter:"selected"});let f=[];e&&this.supportsScheme(i.scheme[!1])?f.push(this._getMappings(k(M({},o),{concept:e,sourceScheme:i.scheme[!0],targetScheme:i.scheme[!1],limit:s}))):f.push(Promise.resolve([])),t&&this.supportsScheme(i.scheme[!0])?f.push(this._getMappings(k(M({},o),{concept:t,sourceScheme:i.scheme[!1],targetScheme:i.scheme[!0],limit:s,swap:!0}))):f.push(Promise.resolve([]));let[d,v]=yield Promise.all(f);for(v=v.filter(w=>!d.find(O=>Kr.default.compareMappingMembers(w,O)));d.length+v.length>s;)v.length>=d.length?v=v.slice(0,-1):d=d.slice(0,-1);return Ss.default(d,v)})}_getMappings(u){return L(this,null,function*(){var a=u,{concept:e,sourceScheme:t,targetScheme:n,limit:i,swap:s=!1}=a,o=V(a,["concept","sourceScheme","targetScheme","limit","swap"]);var p;if(!e||!t||!n)return[];if(Kr.default.compare(t,n))return[];let f=Kr.default.languagePreference.selectLanguage(e.prefLabel)||this._defaultLanguages[0],d=Kr.default.prefLabel(e,{fallbackToUri:!1,language:f});if(!d)return[];let v=/^[\s\wäüöÄÜÖß]*\w/.exec(d);d=v?v[0]:d;let w=yield this._getResults(k(M({},o),{label:d,targetScheme:n,limit:i}));if(!w.length&&((p=e.broader)!=null&&p.length))for(let C of e.broader){let G=Kr.default.prefLabel(C,{fallbackToUri:!1,language:f});if(G&&(w=yield this._getResults(k(M({},o),{label:G,targetScheme:n,limit:i})),w.length))break}let O=w.map(C=>({fromScheme:t,from:{memberSet:[e]},toScheme:n,to:{memberSet:[C]},type:["http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return s&&(O=O.map(C=>Object.assign(C,{fromScheme:C.toScheme,from:C.to,toScheme:C.fromScheme,to:C.from}))),O})}_getResults(s){return L(this,null,function*(){var o=s,{label:e,targetScheme:t,limit:n}=o,i=V(o,["label","targetScheme","limit"]);var v;let u=(this._cache[t.uri]||{})[e];if(u&&u._limit>=n)return u;let a=re.default(t,"_registry");if(!a||a.has.search===!1)return[];let f=(v=(this._jskos.overrides||[]).find(w=>Kr.default.compare(w,t)))==null?void 0:v.search,d=yield a.search(k(M({},i),{url:f,search:e,scheme:t,limit:n}));return this._cache[t.uri]||(this._cache[t.uri]={}),this._cache[t.uri][e]=d,this._cache[t.uri][e]._limit=n,d})}};Ir.providerName="LabelSearchSuggestion";Ir.stored=!1;var Be=pe(Ge(),1);var Pr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){if(!e||!t)return null;let n={},i=e.match(/(.+\/)([^/]+)\/$/);return i?(n.api=i[1]+"rest/v1/",t.VOCID=i[2],n.schemes=[t],n):null}get _language(){return this.languages[0]||this._defaultLanguages[0]||"en"}_getApiUrl(e,t,n){let i=e&&e.VOCID||re.default(this.schemes.find(o=>Be.default.compare(o,e)),"VOCID");if(!i)throw new H({parameter:"scheme",message:"Missing scheme or VOCID property on scheme"});t=t||"",n=n||{},n.lang||(n.lang=this._language);let s=Object.keys(n).map(o=>`${o}=${encodeURIComponent(n[o])}`).join("&");return`${this._api.api}${i}${t}${s?"?"+s:""}`}_getDataUrl(e,{addFormatParameter:t=!0}={}){let n=re.default(e,"inScheme[0]");if(!e||!e.uri)throw new H({parameter:"concept",message:"Missing concept URI"});return this._getApiUrl(n,"/data",t?{format:"application/json"}:{})}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(o=>Be.default.compare(e,o));if(t)return t.uri;if(this._rejectedSchemes.find(o=>Be.default.compare(e,o)))return null;let n=this._getApiUrl(e,"/"),s=(yield this.axios({method:"get",url:n})).conceptschemes.find(o=>Be.default.compare(o,e));return s?(this._approvedSchemes.push({uri:s.uri,identifier:Be.default.getAllUris(e)}),s.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}_toJskosConcept(e,{concept:t,scheme:n,result:i,language:s}={}){if(!e)return null;t=Be.default.deepCopy(t||{}),s=s||e.lang||"en",t.uri=e.uri,n&&(t.inScheme=[n]);let o=e.matchedPrefLabel||e.prefLabel||e.label;if(xe.default(o))Ae.default(t,`prefLabel.${s}`,o);else{o&&!Re.default(o)&&(o=[o]);for(let f of o||[])Ae.default(t,`prefLabel.${f.lang}`,f.value)}let u=e.altLabel;if(xe.default(u))Ae.default(t,`altLabel.${s}`,[u]);else{u&&!Re.default(u)&&(u=[u]);for(let f of u||[])re.default(t,`altLabel.${f.lang}`)?(t.altLabel[f.lang].push(f.value),t.altLabel[f.lang]=xr.default(t.altLabel[f.lang])):Ae.default(t,`altLabel.${f.lang}`,[f.value])}let a=e.notation||e["skos:notation"]||Be.default.notation(t);a&&(t.notation=[a.value||a]),e.broader&&(Re.default(e.broader)||(e.broader=[e.broader]),t.broader=e.broader.map(f=>xe.default(f)?{uri:f}:f)),e.hasChildren===!0?t.narrower=[null]:e.hasChildren===!1&&(t.narrower=[]),e.type&&!Re.default(e.type)&&(e.type=[e.type]),t.type=t.type||[];for(let f of e.type||[]){if(!Be.default.isValidUri(f))continue;let d=f.slice(0,f.indexOf(":"));i&&i["@context"]&&i["@context"][d]&&(f=f.replace(d+":",i["@context"][d])),t.type.push(f)}return t.type=xr.default(t.type),t.type.length||(t.type=["http://www.w3.org/2004/02/skos/core#Concept"]),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);let n=[];for(let i of this.schemes||[]){let s=this._getApiUrl(i,"/"),u=(yield this.axios(k(M({},e),{method:"get",url:s}))).conceptschemes.find(f=>Be.default.compare(f,i)),a=u&&(u.prefLabel||u.label||u.title);a&&Ae.default(i,`prefLabel.${this._language}`,a),n.push(i),this._approvedSchemes=this._approvedSchemes||[],this._approvedSchemes.find(f=>Be.default.compare(i,f))||this._approvedSchemes.push({uri:u.uri,identifier:Be.default.getAllUris(i)})}return n})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/topConcepts"),o=yield this._getSchemeUri(e);if(!o)throw new H({parameter:"scheme",message:"Missing or unsupported scheme or VOCID property on scheme"});Ae.default(t,"params.scheme",o);let u=yield this.axios(k(M({},t),{method:"get",url:s})),a=[];for(let f of u.topconcepts||[]){let d=this._toJskosConcept(f,{scheme:e,language:this._language});d.topConceptOf=[e],a.push(d)}return a})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);Re.default(e)||(e=[e]),e=e.map(o=>({uri:o.uri,inScheme:o.inScheme}));let s=[];for(let o of e){let u=this._getDataUrl(o,{addFormatParameter:!1});if(!u)continue;let a=yield this.axios(k(M({},t),{method:"get",url:u,params:{uri:o.uri,format:"application/json"}})),f=a&&a.graph&&a.graph.find(d=>Be.default.compare(d,o));if(f){let d=this._toJskosConcept(f,{concept:o,result:a});for(let v of["broader","narrower"]){let w=f[v]||d[v];w&&!Re.default(w)&&(w=[w]),w||(w=[]),d[v]=w.map(O=>this._toJskosConcept(a.graph.find(p=>Be.default.compare(p,O)),{scheme:o.inScheme[0],result:a}))}d.ancestors=[],s.push(d)}}return s})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/children");return Ae.default(t,"params.uri",e.uri),((yield this.axios(k(M({},t),{method:"get",url:o}))).narrower||[]).map(f=>this._toJskosConcept(f,{scheme:s}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/broaderTransitive");Ae.default(t,"params.uri",e.uri);let u=yield this.axios(k(M({},t),{method:"get",url:o})),a=[],f=e.uri;for(;f;){if(f!=e.uri){let v=re.default(u,`broaderTransitive["${f}"]`);a=a.concat([v])}f=re.default(u,`broaderTransitive["${f}"].broader[0]`)}return a.map(v=>this._toJskosConcept(v,{scheme:s})).filter(v=>v.uri!=e.uri)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Be.default.notation(i),o=Be.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}search(o){return L(this,null,function*(){var u=o,{search:e,scheme:t,limit:n,types:i=[]}=u,s=V(u,["search","scheme","limit","types"]);let a=this._getApiUrl(t,"/search");return Ae.default(s,"params.query",`${e}*`),Ae.default(s,"params.unique",1),Ae.default(s,"params.maxhits",n||100),Ae.default(s,"params.type",i.join(" ")),((yield this.axios(k(M({},s),{method:"get",url:a}))).results||[]).map(v=>this._toJskosConcept(v,{scheme:t}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/types"),o=[],u=yield this.axios(k(M({},t),{method:"get",url:s}));for(let a of u&&u.types||[])a.uri!="http://www.w3.org/2004/02/skos/core#Concept"&&(a.label&&(a.prefLabel={[u["@context"]["@language"]]:a.label},delete a.label),o.push(a));return o._url=s,o})}};Pr.providerName="SkosmosApi";Pr.providerType="http://bartoc.org/api-type/skosmos";var pr=pe(Ge(),1);var ai="http://id.loc.gov/authorities/",oi=[{uri:`${ai}subjects`,identifier:["http://bartoc.org/en/node/454"],notation:["LCSH"],concepts:[null],topConcepts:[]},{uri:`${ai}names`,identifier:["http://bartoc.org/en/node/18536"],notation:["LCNAF"],concepts:[null],topConcepts:[]}],sd=`${ai}classification`;function od(r){let e={};e.uri=r["@id"],e.notation=(r["http://www.loc.gov/mads/rdf/v1#code"]||[]).map(i=>i["@value"]);let t=r["http://www.loc.gov/mads/rdf/v1#authoritativeLabel"]||r["http://www.w3.org/2000/01/rdf-schema#label"]||[];t.length&&(e.prefLabel={},e.prefLabel[t[0]["@language"]||"en"]=t[0]["@value"]);let n=r["http://www.w3.org/2004/02/skos/core#altLabel"]||[];n.length&&(e.altLabel={en:n.map(i=>i["@value"])});for(let i of r["http://www.w3.org/2000/01/rdf-schema#comment"]||[])e.definition=e.definition||{},e.definition.en=e.definition.en||[],e.definition.en.push(i["@value"]);return e}function gT(r){let e=od(r);return e.namespace=e.uri+"/",e.type=["http://www.w3.org/2004/02/skos/core#ConceptScheme"],e}var Ws=r=>e=>!e||!r||!r.namespace?!0:e.uri.startsWith(r.namespace);function yT(r,{scheme:e}){let t=od(r);t.type=["http://www.w3.org/2004/02/skos/core#Concept"],t.inScheme=e?[e]:(r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme"]||[]).map(s=>oi.find(o=>o.uri===s["@id"])),(!t.inScheme.length||!t.inScheme[0])&&delete t.inScheme;let n=r["http://www.loc.gov/mads/rdf/v1#hasNarrowerAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#hasMADSCollectionMember"]||[];t.narrower=n.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0]));let i=r["http://www.loc.gov/mads/rdf/v1#hasBroaderAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection"]||[];return t.broader=i.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0])),t}var qr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!1,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!1,this.has.ancestors=!1,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({scheme:e}={}){return!e||!oi.find(t=>pr.default.compare(t,e))?null:{schemes:[e]}}getSchemes(){return L(this,null,function*(){let e=[];for(let t of yield Promise.all(oi.filter(n=>!this.schemes||!this.schemes.length||this.schemes.find(i=>pr.default.compare(n,i))).map(n=>Fe({method:"get",url:`${n.uri.replace("http:","https:")}.json`}).then(({status:i,data:s})=>{if(i===200){let o=s.find(u=>n.uri===u["@id"]);if(o)return o=pr.default.merge(gT(o),n),o.topConcepts=(o.topConcepts||[]).filter(u=>u),o}return null}))))t&&e.push(t);return e})}getConcepts(t){return L(this,arguments,function*({concepts:e}){Array.isArray(e)||(e=[e]);let n=[];for(let i of yield Promise.all(e.map(s=>Fe({method:"get",url:`${s.uri.replace("http:","https:")}.json`}).then(({status:o,data:u})=>{if(o===200){let a=u.find(f=>s.uri===f["@id"]);return a?yT(a,{scheme:s.inScheme&&s.inScheme[0]}):null}}))))i&&n.push(i);return n})}suggest(e){return L(this,null,function*(){let t=yield this.search(e);return[e.search,t.map(n=>pr.default.prefLabel(n,{fallbackToUri:!0})),[],t.map(n=>n.uri)]})}search(s){return L(this,arguments,function*({search:e,scheme:t,limit:n,offset:i}){let o=pr.default.getAllUris(t).find(a=>a.startsWith(ai));if(!o||!oi.find(a=>pr.default.compare(a,{uri:o})))throw new H({parameter:"scheme",message:"provided scheme is not supported (yet)"});if(!e)throw new H({parameter:"search",message:"parameter is empty or missing"});n=n||this._jskos.suggestResultLimit||100,i=i||0;let{data:u}=yield Fe({method:"get",url:`${o}/suggest2`.replace("http:","https:"),params:{q:e,count:n||100,offset:i,searchtype:"keyword"}});return(u.hits||[]).map(a=>({uri:a.uri,notation:[a.token],prefLabel:{en:a.aLabel},inScheme:[t]})).filter(Ws(t))})}};qr.providerName="LocApi";qr.providerType="http://bartoc.org/api-type/loc";var Vr=pe(Ge(),1),ud=pe(Ks(),1);function ui(r){return r.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})}var Jr={},Rr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1}),Jr[this.uri]={index:{},conceptCache:{},schemeCache:{}}}get _index(){return Jr[this.uri]&&Jr[this.uri].index}get _conceptCache(){return Jr[this.uri]&&Jr[this.uri].conceptCache}get _schemeCache(){return Jr[this.uri]&&Jr[this.uri].schemeCache}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{schemes:[{uri:e,identifier:Vr.default.getAllUris(t).filter(i=>i!==e)}]}}_loadScheme(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=Vr.default.getAllUris(e);for(let p of s)if(this._schemeCache[p])return this._schemeCache[p];let o=this.schemes.find(p=>Vr.default.compare(p,e));if(!o||!o.uri)throw new tr({message:`Tried to load unsupported scheme (${e&&e.uri})`});let u=o.uri;s=xr.default(s.concat(Vr.default.getAllUris(o)));let a=".json";u.endsWith("/")&&(a="index.json");let f=yield this.axios(k(M({},t),{url:`${u}${a}`,_skipAdditionalParameters:!0}));if(f.id!==u)throw new tr({message:"Skohub URL did not return expected concept scheme"});let{title:d,preferredNamespaceUri:v,hasTopConcept:w,description:O}=f;e={uri:u,identifier:s.filter(p=>p!==u)},e.prefLabel=d,Object.keys(e.prefLabel||{}).forEach(p=>{e.prefLabel[p]=ui(e.prefLabel[p])}),e.namespace=v,e.topConcepts=(w||[]).map(p=>this._toJskosConcept(p)),e.concepts=[null],O&&(e.definition=O,Object.keys(e.definition).forEach(p=>{e.definition[p]=[ui(e.definition[p])]}));for(let p of Object.keys(e).filter(C=>!e[C]))delete e[p];for(let p of s)this._schemeCache[p]=e;return e})}_loadConcept(n){return L(this,null,function*(){var i=n,{uri:e}=i,t=V(i,["uri"]);if(this._conceptCache[e])return this._conceptCache[e];try{let s=yield this.axios(k(M({},t),{url:`${e}.json`,_skipAdditionalParameters:!0}));if(s.id!==e)throw new tr({message:"Skohub URL did not return expected concept URI"});let o=this._toJskosConcept(s);return this._conceptCache[e]=o,o}catch(s){return null}})}_toJskosConcept(e){let t={uri:e.id};return t.prefLabel=e.prefLabel,Object.keys(t.prefLabel||{}).forEach(n=>{t.prefLabel[n]=ui(t.prefLabel[n])}),t.narrower=(e.narrower||[]).map(n=>this._toJskosConcept(n)),t.notation=e.notation||[],e.broader&&e.broader.id&&(t.broader=[{uri:e.broader.id}]),e.inScheme&&e.inScheme.id&&(t.inScheme=[{uri:e.inScheme.id}]),e.scopeNote&&(t.scopeNote=e.scopeNote,Object.keys(t.scopeNote).forEach(n=>{t.scopeNote[n]=[ui(t.scopeNote[n])]})),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);return Promise.all(this.schemes.map(n=>this._loadScheme(k(M({},e),{scheme:n}))))})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});return e=yield this._loadScheme(M({scheme:e},t)),e.topConcepts||[]})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),(yield Promise.all(e.map(({uri:s})=>this._loadConcept(k(M({},t),{uri:s}))))).filter(Boolean)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;if(e=yield this._loadConcept(k(M({},t),{uri:e.uri})),!e||!e.broader||!e.broader.length)return[];let s=e.broader[0];return[s].concat(yield this.getAncestors(M({concept:s},t))).map(o=>({uri:o.uri}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null||(e=yield this._loadConcept(k(M({},t),{uri:e.uri}))),e.narrower})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(t=yield this._loadScheme({scheme:t}),!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});let s;this._index[t.uri]||(this._index[t.uri]={});for(let a of[""].concat(this.languages)){if(this._index[t.uri][a]){s=this._index[t.uri][a];break}if(this._index[t.uri][a]!==null)try{let f=a?`.${a}.index`:".index";t.uri.endsWith("/")&&(f=`index${f}`);let d=yield this.axios({url:`${t.uri}${f}`,_skipAdditionalParameters:!0});if(d.length<100){this._index[t.uri][a]=null;continue}s=ud.default.create(),s.import(d),this._index[t.uri][a]=s;break}catch(f){this._index[t.uri][a]=null}}if(!s)throw new tr({message:"Could not find search index for any of the available languages "+this.languages.join(",")});let o=s.search(e);return(yield this.getConcepts({concepts:o.map(a=>({uri:a}))})).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Vr.default.notation(i),o=Vr.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Rr.providerName="Skohub";Rr.providerType="http://bartoc.org/api-type/skohub";var cn=pe(Ge(),1);var Mr={uri:"http://bartoc.org/en/node/430",concepts:[null],topConcepts:[],type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"],DISPLAY:{hideNotation:!0},identifier:["http://www.wikidata.org/entity/Q36578"],license:[{uri:"http://creativecommons.org/publicdomain/zero/1.0/"}],namespace:"https://d-nb.info/gnd/",notation:["GND"],notationPattern:"[0-9X-]+",prefLabel:{de:"Gemeinsame Normdatei",en:"Integrated Authority File"},types:[{uri:"https://d-nb.info/standards/elementset/gnd#DifferentiatedPerson",prefLabel:{de:"Person",en:"Person"}},{uri:"https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName",prefLabel:{de:"Geografikum",en:"Place"}},{uri:"https://d-nb.info/standards/elementset/gnd#CorporateBody",prefLabel:{de:"Organisation",en:"Organization"}},{uri:"https://d-nb.info/standards/elementset/gnd#SubjectHeading",prefLabel:{de:"Sachbegriff",en:"Subject"}},{uri:"https://d-nb.info/standards/elementset/gnd#Work",prefLabel:{de:"Werk",en:"Work"}},{uri:"https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent",prefLabel:{de:"Konferenz oder Veranstaltung",en:"ConferenceOrEvent"}}]},Ys=new cn.default.ConceptScheme({uri:"https://d-nb.info/standards/elementset/gnd",namespace:"https://d-nb.info/standards/elementset/gnd#"});Mr.types.forEach(r=>{r.notation=[Ys.notationFromUri(r.uri)]});var vT=new cn.default.ConceptScheme(Mr),fd=["broaderTerm","broaderTermGeneral","broaderTermGeneric","broaderTermInstantial","broaderTermPartitive"];function Js(r){let e={uri:r.id,notation:[r.gndIdentifier],prefLabel:{de:r.preferredName},inScheme:[{uri:Mr.uri}]};return r.variantName&&(e.altLabel={de:r.variantName}),e.type=r.type.map(t=>Ys.uriFromNotation(t)).filter(Boolean),e.broader=[],fd.forEach(t=>{e.broader=e.broader.concat(r[t]||[])}),e.broader=e.broader.map(t=>({uri:t.id})),e.identifier=[e.uri.replace("https://","http://")],e}function Vs(r){return r&&r.startsWith("http://")?r.replace("http://","https://"):r}var Yr=class extends le{_prepare(){this.has.schemes=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.suggest=!0,this.has.search=!0,this.has.types=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t||!cn.default.compare(t,Mr)||e!=="https://lobid.org/gnd/api"?null:{api:"https://lobid.org/gnd/",schemes:[Mr]}}getSchemes(){return L(this,null,function*(){return[Mr]})}getTop(){return L(this,null,function*(){return[]})}getConcepts(t){return L(this,arguments,function*({concepts:e}){if(!e)throw new i.InvalidOrMissingParameterError({parameter:"concepts"});Array.isArray(e)||(e=[e]);let n=e.map(o=>{var u,a;return(u=o==null?void 0:o.notation)!=null&&u[0]?(a=o==null?void 0:o.notation)==null?void 0:a[0]:vT.notationFromUri(Vs(o==null?void 0:o.uri))}).filter(Boolean),i=[],s=yield Promise.all(n.map(o=>L(this,null,function*(){try{let u=yield Fe.get(`${this._api.api}${o}.json`);return Js(u.data)}catch(u){i.push(u)}})));if(i.length===e.length)throw i[0];return s.filter(Boolean)})}getNarrower(i){return L(this,arguments,function*({concept:e,limit:t=200,offset:n=0}){if(!e||!e.uri)throw new H({parameter:"concept"});let s=Vs(e.uri),o=fd.map(a=>`${a}.id:"${s}"`).join(" OR ");return(yield Fe.get(`${this._api.api}search`,{params:{q:o,format:"json",size:t,from:n}})).data.member.map(a=>Js(a))})}suggest(e){return L(this,null,function*(){let t=yield this._search(k(M({},e),{format:"json:suggest"}));return[e.search,t.map(n=>n.label),[],t.map(n=>n.id)]})}search(e){return L(this,null,function*(){return(yield this._search(e)).member.map(n=>Js(n))})}_search(o){return L(this,arguments,function*({search:e,types:t,limit:n=100,offset:i=0,format:s="json"}){if(!e)throw new H({parameter:"search"});let u="";return t=(t==null?void 0:t.map(f=>Ys.notationFromUri(Vs(f))).filter(Boolean))||[],t.length&&(u=t.map(f=>`type:${f}`).join(" OR ")),(yield Fe.get(`${this._api.api}search`,{params:{q:e,filter:u,format:s,size:n,from:i}})).data})}getTypes(t){return L(this,arguments,function*({scheme:e}){if(!e||!cn.default.compare(e,Mr))throw new H({parameter:"search",message:e!=null&&e.uri?`scheme ${e==null?void 0:e.uri} not supported`:""});return Mr.types})}};Yr.providerName="LobidApi";var ln=pe(Ge(),1),cd=pe(Ks(),1);var Ke={},Lr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._scheme=null}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e}}_schemeInfoToJSKOS(e){let t=e.labels.find(s=>s.lang==="x-uri").text,n={};e.labels.filter(s=>!s.lang.startsWith("x-")).forEach(s=>{n[s.lang]=s.text});let i={uri:t,prefLabel:n};return e.categories&&e.categories.length&&(i.topConcepts=[null]),e.category&&e.category.length&&(i.concepts=[null]),i}_categoryToJSKOS(e,{scheme:t,broader:n=[]}){if(!e||!t)return null;let i=e.ID,s=`${t.uri}/${i}`;if(Ke[t.uri].concepts[s])return Ke[t.uri].concepts[s];let o={};e.labels.filter(a=>!a.lang.startsWith("x-")&&a.text).forEach(a=>{o[a.lang]=a.text.replace(`${i} `,""),Ke[t.uri].searchIndex.add(s,o[a.lang])});let u={};return e.labels.filter(a=>!a.lang.startsWith("x-")&&a.description).forEach(a=>{u[a.lang]||(u[a.lang]=[]),u[a.lang].push(a.description)}),Ke[t.uri].concepts[s]={uri:s,notation:[i],prefLabel:o,scopeNote:u,inScheme:[{uri:t.uri}],narrower:(e.categories||[]).map(a=>({uri:`${t.uri}/${a.ID}`})),broader:n},Ke[t.uri].concepts[s]}_removeNarrower(e){return e&&Object.assign({},e,{narrower:e.narrower&&e.narrower.length?[null]:[]})}_loadSchemeData(e){return L(this,null,function*(){let t=yield this.axios(k(M({},e),{method:"get",url:this._api.api,_skipAdditionalParameters:!0}));this._scheme=this._schemeInfoToJSKOS(t);let n=this._scheme.uri;Ke[n]={schemeInfo:t,searchIndex:cd.default.create({tokenize:"full"}),concepts:{}};let i=(s,{broader:o=[]}={})=>{let u=this._categoryToJSKOS(s,{scheme:this._scheme,broader:o});(s.categories||[]).forEach(a=>i(a,{broader:[{uri:u.uri}]}))};t.categories.forEach(s=>i(s)),Ke[n].topConcepts=t.categories.map(s=>this._categoryToJSKOS(s,{scheme:this._scheme}))})}getSchemes(){return L(this,arguments,function*(e={}){if(!this._api.api)throw new ze;return this._scheme||(this._loadSchemeDataPromise||(this._loadSchemeDataPromise=this._loadSchemeData(e)),yield this._loadSchemeDataPromise),[this._scheme]})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes(t)),!ln.default.compare(e,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Ke[this._scheme.uri].topConcepts.map(this._removeNarrower)})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),this._scheme||(yield this.getSchemes(t)),e.map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri];let s=e&&e.broader&&e.broader[0];return s?[s].concat(yield this.getAncestors(M({concept:s},t))):[]})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null?e.narrower:(this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri],(e&&e.narrower||[]).map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower))})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});if(!t||!t.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes()),!ln.default.compare(t,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return(yield Ke[this._scheme.uri].searchIndex.search(e)).map(o=>Ke[this._scheme.uri].concepts[o]).map(this._removeNarrower).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=ln.default.notation(i),o=ln.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Lr.providerName="MyCoRe";Lr.providerType="http://bartoc.org/api-type/mycore";var or={[le.providerName]:le,init(r){if(this[r.provider])return new this[r.provider](r);throw new et},addProvider(r){if(r.prototype instanceof le||r===le)this[r.providerName]=r;else throw new et}};or.addProvider(sr);or.addProvider(ir);Object.values(hn).forEach(r=>{or.addProvider(r)});var Xs={},jr=class{constructor(e){this.config=e,this.axios=Fe.create()}setConfig(e){this.config=e}get config(){return this._config}set config(e){e=e||{},e.registries=e.registries||[],e.registries=e.registries.map(t=>or.init(t)).filter(t=>t),e.registries.forEach(t=>{t.cdk=this}),this._config=e}get providers(){return or}createInstance(e){return new jr(e)}loadConfig(e){return L(this,null,function*(){let t=yield this.axios.get(e);this.config=t.data})}loadBuildInfo(o){var u=o,{url:e,buildInfo:t=null,interval:n=6e4,callback:i}=u,s=V(u,["url","buildInfo","interval","callback"]);if(!e&&!this.config.cocodaBaseUrl)throw new qe({message:"Could not determine URL to load build config."});return e||(e=`${this.config.cocodaBaseUrl}build-info.json`),this.repeat(k(M({},s),{function:()=>L(this,null,function*(){return(yield this.axios.get(e,{headers:{"Cache-Control":"no-cache"}})).data}),interval:n,callback:(a,f,d)=>{a?i(a):(d||!d&&t&&!nr.default(f,t))&&i(null,f,d||t)}}))}getRegistryForUri(e){return this.config.registries.find(t=>t.uri==e)}initializeRegistry(e){return e=or.init(e),e.cdk=this,e}addProvider(e){or.addProvider(e)}static addProvider(e){or.addProvider(e)}repeat({function:e,interval:t=15e3,callback:n,callImmediately:i=!0}={}){if(!e)throw new H({parameter:"function"});if(typeof e!="function")throw new H({parameter:"function",message:"function needs to be a function"});let s=()=>L(this,null,function*(){return e()});if(t=parseInt(t),isNaN(t))throw new H({parameter:"interval"});if(!n)throw new H({parameter:"callback"});if(typeof n!="function")throw new H({parameter:"callback",message:"callback needs to be a function"});let o={timer:null,result:null,error:null,isPaused:!1,interval:t},u=w=>{let O=o.result;nr.default(O,w)||(o.result=w,o.error=null,n(null,w,O))},a=w=>{o.error=w,n(w)},f=w=>{o.isPaused||(o.timer=setTimeout(()=>{w()},o.interval))},d=()=>s().then(u).catch(a).then(()=>f(d)),v=(w=i)=>{w?d():f(d)};return v(),{start:(...w)=>{o.isPaused=!1,v(...w)},stop:()=>{o.isPaused=!0,o.timer?clearTimeout(o.timer):setTimeout(()=>{o.timer&&clearTimeout(o.timer)},o.interval)},get isPaused(){return o.isPaused},get lastResult(){return o.result},get hasErrored(){return!!o.error},get interval(){return o.interval},set interval(w){o.interval=w}}}getSchemes(){return L(this,arguments,function*(e={}){let t=[],n=[];for(let i of this.config.registries)if(i.has.schemes!==!1){let s=i.getSchemes(e).then(o=>{for(let u of o){u._registry=i,u.__DETAILSLOADED__=1,u.type=u.type||["http://www.w3.org/2004/02/skos/core#ConceptScheme"];let a=t.find(w=>Nr.default.compare(w,u)),f,d,v=!1;if(a){f=this.config.registries.indexOf(i),f!=-1&&(f=this.config.registries.length-f),d=this.config.registries.indexOf(re.default(a,"_registry")),d!=-1&&(d=this.config.registries.length-d);let w=u.concepts?u.concepts.length==0?-1:1:0,O=a.concepts?a.concepts.length==0?-1:1:0;w>O?v=!0:w<O?v=!1:v=d<f}if(!a||v){if(v){let w=t.findIndex(O=>Nr.default.compare(O,a));w!=-1&&t.splice(w,1),u=Nr.default.merge(u,cr.default(a,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]})}u._registry=i,t.push(u)}else{let w=t.findIndex(O=>Nr.default.compare(O,u));if(w!=-1){let O=t[w]._registry;t[w]=Nr.default.merge(t[w],cr.default(u,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]}),t[w]._registry=O}}}}).catch(o=>{console.warn("Couldn't load schemes for registry",i.uri,o)});n.push(s)}return yield Promise.all(n),t.forEach(i=>{let s=i._registry;delete i._registry;let o=this.registryForScheme(i);!o||o._api.api===s._api.api?i._registry=s:i._registry=o}),Nr.default.sortSchemes(t.filter(Boolean))})}registryForScheme(e){let t=e._registry;if(t)return t;for(let n of e.API||[]){let i=n,{type:s}=i,o=V(i,["type"]);let u=o.url;if(Xs[u]){let a=Xs[u];return Array.isArray(a._jskos.schemes)&&!Nr.default.isContainedIn(e,a._jskos.schemes)&&a._jskos.schemes.push(e),a}else{o.scheme=e;for(let a of Object.values(or)){if(a.providerType&&a.providerType!==s||!a._registryConfigForBartocApiConfig)continue;let f=a.providerName,d=or[f]._registryConfigForBartocApiConfig(o);if(d){d.provider=f;try{if(t=this.initializeRegistry(d),t)return Xs[u]=t,t}catch(v){continue}}}}}return null}};var ld=new jr;function wT(r){Object.values(hn).forEach(e=>(r||ld).addProvider(e))}return tm(_T);})();
14
+ /*! Bundled license information:
15
+
16
+ localforage/dist/localforage.js:
17
+ (*!
18
+ localForage -- Offline Storage, Improved
19
+ Version 1.10.0
20
+ https://localforage.github.io/localForage
21
+ (c) 2013-2017 Mozilla, Apache License 2.0
22
+ *)
18
23
  */
19
24
  //# sourceMappingURL=cocoda-sdk.js.map