@blueskyproject/tiled 0.0.33 → 0.0.34
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Tiled/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAiD,MAAM,SAAS,CAAC;AAC1H,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,MAAM,OAAO,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,wBAAgB,aAAa,CACzB,SAAS,EAAE,eAAe,CAAC,cAAc,CAAC,EAC1C,cAAc,EAAE,OAAO,GACxB,OAAO,CAmBT;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,SAAU,eAAe,CAAC,eAAe,CAAC,QAAO,MAAM;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Tiled/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAiD,MAAM,SAAS,CAAC;AAC1H,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,MAAM,OAAO,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,wBAAgB,aAAa,CACzB,SAAS,EAAE,eAAe,CAAC,cAAc,CAAC,EAC1C,cAAc,EAAE,OAAO,GACxB,OAAO,CAmBT;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,SAAU,eAAe,CAAC,eAAe,CAAC,QAAO,MAAM;;;;;;;;CAU3F,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,SAAU,eAAe,CAAC,eAAe,CAAC,4CA4B3E,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,SAAU,eAAe,CAAC,eAAe,CAAC,UAAS,MAAM,KAAE,MAQzF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkCpD,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,cAAa,MAAM,SAI5C,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,gBAAgB,MAAM,SAAQ,MAAM,EAAE,aAa/D,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,0BAOzC,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,6BAA6B,SAAS,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,uBASvF,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,0BAWrC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;;aAenC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,YAKrC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,iBAAiB,MAAM,eAAc,MAAM,SAI7E,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,cAAc,eAAe,CAAC,cAAc,CAAC,oBAAmB,MAAM;;;CAqB3G,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,SAAS,eAAe,CAAC,eAAe,CAAC,YAOrE,CAAA;AAGD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAqC9E"}
|
package/dist/tiled.es.js
CHANGED
|
@@ -2957,7 +2957,7 @@ function fR(e, t) {
|
|
|
2957
2957
|
return s && (n && n.indexOf("channel") !== -1 ? u = n.indexOf("channel") === 0 : u = r[0] === 3 && r[r.length - 1] !== 3), { autoRGB: i, canToggleRGB: o, isRGB: s, channelFirst: u };
|
|
2958
2958
|
}
|
|
2959
2959
|
const dR = (e, t) => {
|
|
2960
|
-
const r = { ...e.links }, n = t ?? `${window.location.protocol}//${window.location.hostname}:8000/api/v1
|
|
2960
|
+
const r = { ...e.links }, n = t ?? (typeof window > "u" ? "" : `${window.location.protocol}//${window.location.hostname}:8000/api/v1`), a = Ln(e);
|
|
2961
2961
|
return r.default = n + "/" + a, r;
|
|
2962
2962
|
}, Ep = (e) => {
|
|
2963
2963
|
const t = e.attributes.structure_family;
|
|
@@ -2967,7 +2967,7 @@ const dR = (e, t) => {
|
|
|
2967
2967
|
let n = e.attributes.ancestors.length > 0 ? e.attributes.ancestors.join("/") + "/" : "";
|
|
2968
2968
|
return n += e.id, t && (n += `/${t}`), n;
|
|
2969
2969
|
}, hR = (e) => {
|
|
2970
|
-
window.open(e, "_blank", "noopener,noreferrer");
|
|
2970
|
+
typeof window > "u" || window.open(e, "_blank", "noopener,noreferrer");
|
|
2971
2971
|
}, pR = (e, t) => {
|
|
2972
2972
|
const r = [];
|
|
2973
2973
|
for (let n = 0; n < e; n++) {
|
|
@@ -2981,21 +2981,26 @@ const dR = (e, t) => {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
return r;
|
|
2983
2983
|
}, mR = () => {
|
|
2984
|
+
if (typeof window > "u") return;
|
|
2984
2985
|
const e = localStorage.getItem("lastSearchHistory");
|
|
2985
2986
|
if (e)
|
|
2986
2987
|
return e;
|
|
2987
2988
|
}, ii = (e) => {
|
|
2988
|
-
if (typeof
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2989
|
+
if (!(typeof window > "u")) {
|
|
2990
|
+
if (typeof e == "string" || !e)
|
|
2991
|
+
localStorage.setItem("lastSearchHistory", "");
|
|
2992
|
+
else if (e) {
|
|
2993
|
+
const t = Ln(e);
|
|
2994
|
+
return localStorage.setItem("lastSearchHistory", t), t;
|
|
2995
|
+
}
|
|
2993
2996
|
}
|
|
2994
2997
|
}, vR = () => {
|
|
2998
|
+
if (typeof window > "u") return;
|
|
2995
2999
|
const e = localStorage.getItem("tiledApiKey");
|
|
2996
3000
|
if (e)
|
|
2997
3001
|
return e.length === 0 ? void 0 : e;
|
|
2998
3002
|
}, tg = () => {
|
|
3003
|
+
if (typeof window > "u") return;
|
|
2999
3004
|
const e = localStorage.getItem("tiledRefreshToken"), t = localStorage.getItem("tiledAccessToken");
|
|
3000
3005
|
if (e && t)
|
|
3001
3006
|
return e.length === 0 || t.length === 0 ? void 0 : {
|
|
@@ -3003,9 +3008,9 @@ const dR = (e, t) => {
|
|
|
3003
3008
|
accessToken: t
|
|
3004
3009
|
};
|
|
3005
3010
|
}, c4 = () => {
|
|
3006
|
-
localStorage.removeItem("tiledRefreshToken"), localStorage.removeItem("tiledAccessToken"), localStorage.removeItem("tiledApiKey");
|
|
3011
|
+
typeof window > "u" || (localStorage.removeItem("tiledRefreshToken"), localStorage.removeItem("tiledAccessToken"), localStorage.removeItem("tiledApiKey"));
|
|
3007
3012
|
}, ty = (e, t) => {
|
|
3008
|
-
localStorage.setItem("tiledRefreshToken", e), localStorage.setItem("tiledAccessToken", t);
|
|
3013
|
+
typeof window > "u" || (localStorage.setItem("tiledRefreshToken", e), localStorage.setItem("tiledAccessToken", t));
|
|
3009
3014
|
}, gR = (e) => {
|
|
3010
3015
|
var t, r, n;
|
|
3011
3016
|
return e.attributes.structure_family === "container" && ((n = (r = (t = e == null ? void 0 : e.attributes) == null ? void 0 : t.specs) == null ? void 0 : r[0]) == null ? void 0 : n.name) === "BlueskyRun";
|
package/dist/tiled.umd.js
CHANGED
|
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
35
35
|
`);return o===-1?"":a.stack.slice(o+1)})();try{if(!n.stack)n.stack=i;else if(i){const o=i.indexOf(`
|
|
36
36
|
`),s=o===-1?-1:i.indexOf(`
|
|
37
37
|
`,o+1),u=s===-1?"":i.slice(s+1);String(n.stack).endsWith(u)||(n.stack+=`
|
|
38
|
-
`+i)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ja(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&ju.assertOptions(n,{silentJSONParsing:Nr.transitional(Nr.boolean),forcedJSONParsing:Nr.transitional(Nr.boolean),clarifyTimeoutError:Nr.transitional(Nr.boolean),legacyInterceptorReqResOrdering:Nr.transitional(Nr.boolean),advertiseZstdAcceptEncoding:Nr.transitional(Nr.boolean),validateStatusUndefinedResolves:Nr.transitional(Nr.boolean)},!1),a!=null&&(oe.isFunction(a)?r.paramsSerializer={serialize:a}:ju.assertOptions(a,{encode:Nr.function,serialize:Nr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ju.assertOptions(r,{baseUrl:Nr.spelling("baseURL"),withXsrfToken:Nr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&oe.merge(i.common,i[r.method]);i&&oe.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete i[p]}),r.headers=Cr.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(r)===!1)return;u=u&&v.synchronous;const y=r.transitional||dh;y&&y.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const l=[];this.interceptors.response.forEach(function(v){l.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!u){const p=[xy.bind(this),void 0];for(p.unshift(...s),p.push(...l),d=p.length,c=Promise.resolve(r);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;let m=r;for(;f<d;){const p=s[f++],v=s[f++];try{m=p(m)}catch(y){v.call(this,y);break}}try{c=xy.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,d=l.length;f<d;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=Ja(this.defaults,t);const r=cy(t.baseURL,t.url,t.allowAbsoluteUrls,t);return ey(r,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(r,n){return this.request(Ja(n||{},{method:t,url:r,data:n&&oe.hasOwnProp(n,"data")?n.data:void 0}))}}),oe.forEach(["post","put","patch","query"],function(t){function r(n){return function(i,o,s){return this.request(Ja(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ei.prototype[t]=r(),t!=="query"&&(ei.prototype[t+"Form"]=r(!0))});let H3=class Kk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new Bo(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Kk(function(a){t=a}),cancel:t}}};function B3(e){return function(r){return e.apply(null,r)}}function W3(e){return oe.isObject(e)&&e.isAxiosError===!0}const bh={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bh).forEach(([e,t])=>{bh[t]=e});function _y(e){const t=new ei(e),r=q1(ei.prototype.request,t);return oe.extend(r,ei.prototype,t,{allOwnKeys:!0}),oe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return _y(Ja(e,a))},r}const fr=_y(Ho);fr.Axios=ei,fr.CanceledError=Bo,fr.CancelToken=H3,fr.isCancel=iy,fr.VERSION=vh,fr.toFormData=Ru,fr.AxiosError=Be,fr.Cancel=fr.CanceledError,fr.all=function(t){return Promise.all(t)},fr.spread=B3,fr.isAxiosError=W3,fr.mergeConfig=Ja,fr.AxiosHeaders=Cr,fr.formToJSON=e=>ay(oe.isHTMLForm(e)?new FormData(e):e),fr.getAdapter=by.getAdapter,fr.HttpStatusCode=bh,fr.default=fr;const{Axios:lU,AxiosError:cU,CanceledError:fU,isCancel:dU,CancelToken:hU,VERSION:pU,all:mU,Cancel:vU,isAxiosError:gU,spread:yU,toFormData:bU,AxiosHeaders:xU,HttpStatusCode:wU,formToJSON:_U,getAdapter:OU,mergeConfig:SU,create:PU}=fr,ti={folder:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"})}),bracketSquare:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"})}),table:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z"})}),question:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"})}),gridline:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM104,144V112h48v32Zm48,16v32H104V160ZM40,112H88v32H40Zm64-16V64h48V96Zm64,16h48v32H168Zm48-16H168V64h48ZM88,64V96H40V64ZM40,160H88v32H40Zm176,32H168V160h48v32Z"})}),xarray:F.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:[F.jsx("path",{fill:"currentColor",d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"}),F.jsx("circle",{cx:"108",cy:"108",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"128",cy:"108",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"148",cy:"108",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"108",cy:"128",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"128",cy:"128",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"148",cy:"128",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"108",cy:"148",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"128",cy:"148",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"148",cy:"148",r:"4",fill:"currentColor"})]}),blueskyRun:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M152,88a32,32,0,1,0-32-32A32,32,0,0,0,152,88Zm0-48a16,16,0,1,1-16,16A16,16,0,0,1,152,40Zm67.31,100.68c-.61.28-7.49,3.28-19.67,3.28-13.85,0-34.55-3.88-60.69-20a169.31,169.31,0,0,1-15.41,32.34,104.29,104.29,0,0,1,31.31,15.81C173.92,186.65,184,207.35,184,232a8,8,0,0,1-16,0c0-41.7-34.69-56.71-54.14-61.85-.55.7-1.12,1.41-1.69,2.1-19.64,23.8-44.25,36.18-71.63,36.18A92.29,92.29,0,0,1,31.2,208,8,8,0,0,1,32.8,192c25.92,2.58,48.47-7.49,67-30,12.49-15.14,21-33.61,25.25-47C86.13,92.35,61.27,111.63,61,111.84A8,8,0,1,1,51,99.36c1.5-1.2,37.22-29,89.51,6.57,45.47,30.91,71.93,20.31,72.18,20.19a8,8,0,1,1,6.63,14.56Z"})})},Lu=e=>e.attributes.structure_family==="array",xh=e=>e.attributes.structure_family==="table",Wo=e=>e.attributes.structure_family==="container"||e.attributes.structure_family==="composite",Oy=e=>e.attributes.structure_family==="awkward",Sy=e=>e.attributes.structure_family==="sparse",Py=e=>e.attributes.structure_family==="array"&&"fields"in e.attributes.structure.data_type,My=e=>e.attributes.structure_family==="array"&&e.attributes.specs.some(t=>t.name==="xarray_coord"||t.name==="xarray_data_var"||t.name.startsWith("xarray_"))&&e.attributes.structure.dims!==null;function G3(e){return e&&typeof e.api_version=="number"&&typeof e.library_version=="string"&&e.formats&&e.aliases}function Z3(e,t){var l;const r=e.attributes.structure.shape,n=e.attributes.structure.dims,i=((l=e.attributes.metadata)==null?void 0:l.color_mode)==="RGB",o=!i&&r.length>=3&&r[r.length-1]===3,s=i||o&&t;let u=!1;return s&&(n&&n.indexOf("channel")!==-1?u=n.indexOf("channel")===0:u=r[0]===3&&r[r.length-1]!==3),{autoRGB:i,canToggleRGB:o,isRGB:s,channelFirst:u}}const Y3=(e,t)=>{const r={...e.links},n=t??`${window.location.protocol}//${window.location.hostname}:8000/api/v1`,a=bn(e);return r.default=n+"/"+a,r},wh=e=>{const t=e.attributes.structure_family;let r=ti.question;return(t==="array"||t==="awkward"||t==="sparse")&&(Py(e)?r=ti.table:My(e)?r=ti.xarray:r=ti.bracketSquare),t==="table"&&(r=ti.gridline),(t==="container"||t==="composite")&&(eR(e)?r=ti.blueskyRun:r=ti.folder),r},bn=(e,t)=>{let n=e.attributes.ancestors.length>0?e.attributes.ancestors.join("/")+"/":"";return n+=e.id,t&&(n+=`/${t}`),n},K3=e=>{window.open(e,"_blank","noopener,noreferrer")},X3=(e,t)=>{const r=[];for(let n=0;n<e;n++){const a={min:0,max:t[n]-1,index:n,value:Math.floor(t[n]/2)};r.push(a)}return r},Q3=()=>{const e=localStorage.getItem("lastSearchHistory");if(e)return e},ri=e=>{if(typeof e=="string"||!e)localStorage.setItem("lastSearchHistory","");else if(e){const t=bn(e);return localStorage.setItem("lastSearchHistory",t),t}},J3=()=>{const e=localStorage.getItem("tiledApiKey");if(e)return e.length===0?void 0:e},_h=()=>{const e=localStorage.getItem("tiledRefreshToken"),t=localStorage.getItem("tiledAccessToken");if(e&&t)return e.length===0||t.length===0?void 0:{refreshToken:e,accessToken:t}},ky=()=>{localStorage.removeItem("tiledRefreshToken"),localStorage.removeItem("tiledAccessToken"),localStorage.removeItem("tiledApiKey")},Ay=(e,t)=>{localStorage.setItem("tiledRefreshToken",e),localStorage.setItem("tiledAccessToken",t)},eR=e=>{var t,r,n;return e.attributes.structure_family==="container"&&((n=(r=(t=e==null?void 0:e.attributes)==null?void 0:t.specs)==null?void 0:r[0])==null?void 0:n.name)==="BlueskyRun"};function Ry(e={}){var t;return e.structure??((t=e.arrayItem)==null?void 0:t.attributes.structure)}function tR(e,t={}){const r=e.shape;return r.length<2?{height:1,width:r[0]??1,channels:1}:t.isRGB&&t.channelFirst&&r.length>=3&&r[0]===3?{height:r[1],width:r[2],channels:3}:t.isRGB&&r.length>=3&&r[r.length-1]===3?{height:r[r.length-3],width:r[r.length-2],channels:3}:{height:r[r.length-2],width:r[r.length-1],channels:1}}const Ey={b:1,i:4,u:4,f:8,c:16,m:8,M:8};function rR(e){var n,a,i;const t=(n=e.data_type)==null?void 0:n.itemsize;if(typeof t=="number"&&t>0)return t;const r=(i=(a=e.data_type)==null?void 0:a.kind)==null?void 0:i[0];return r&&Ey[r]?Ey[r]:1}function Ty(e,t){if(t.downSampleRatio&&t.downSampleRatio>1){const f=Math.ceil(t.downSampleRatio);return{stepX:f,stepY:f}}if(!e)return{stepX:1,stepY:1};const{width:r,height:n,channels:a}=tR(e,t),i=1e6,o=rR(e),s=t.maxBytesAllowed??i,u=r*n*a*o;if(u<=s)return{stepX:1,stepY:1};const l=u/s,c=Math.ceil(Math.sqrt(l));return{stepX:c,stepY:c}}function Cy(e,t){const{stepX:r,stepY:n}=t,a=e.stack??[],i=a.length>0?`${a.join(",")},`:"";return e.isRGB&&e.channelFirst?`:,${i}::${n},::${r}`:e.isRGB?`${i}::${n},::${r},:`:`${i}::${n},::${r}`}function nR(e={}){return Ty(Ry(e),e)}async function aR(e,t={},r){let n=Ry(t);if(!n&&r)try{n=await r(e)}catch{}return Ty(n,t)}function iR(e={}){return Cy(e,nR(e))}async function Oh(e,t={},r){const n=await aR(e,t,r);return Cy(t,n)}function oR(e={}){var a,i,o;const t={},{searchFilters:r,searchOptions:n}=e;return n&&(n.pageOffset!==void 0&&(t["page[offset]"]=String(n.pageOffset)),n.pageLimit!==void 0&&(t["page[limit]"]=String(n.pageLimit)),n.sort&&(t.sort=n.sort),n.selectMetadata&&(t.select_metadata=n.selectMetadata),n.omitLinks!==void 0&&(t.omit_links=String(n.omitLinks)),n.includeDataSources!==void 0&&(t.include_data_sources=String(n.includeDataSources)),(a=n.fields)!=null&&a.length&&(t.fields=n.fields)),r&&(r.fulltext&&(t["filter[fulltext][condition][text]"]=r.fulltext.text),r.lookup&&(t["filter[lookup][condition][key]"]=r.lookup.key),(i=r.keysFilter)!=null&&i.keys.length&&(t["filter[keys][condition][keys][]"]=r.keysFilter.keys),r.regex&&(t["filter[regex][condition][key]"]=r.regex.key,t["filter[regex][condition][pattern]"]=r.regex.pattern,r.regex.caseSensitive!==void 0&&(t["filter[regex][condition][case_sensitive]"]=String(r.regex.caseSensitive))),r.eq&&(t["filter[eq][condition][key]"]=r.eq.key,t["filter[eq][condition][value]"]=r.eq.value),r.noteq&&(t["filter[noteq][condition][key]"]=r.noteq.key,t["filter[noteq][condition][value]"]=r.noteq.value),r.comparison&&(t["filter[comparison][condition][operator]"]=r.comparison.operator,t["filter[comparison][condition][key]"]=r.comparison.key,t["filter[comparison][condition][value]"]=r.comparison.value),r.contains&&(t["filter[contains][condition][key]"]=r.contains.key,t["filter[contains][condition][value]"]=r.contains.value),r.in&&(t["filter[in][condition][key]"]=r.in.key,t["filter[in][condition][value][]"]=r.in.value),r.notin&&(t["filter[notin][condition][key]"]=r.notin.key,t["filter[notin][condition][value][]"]=r.notin.value),r.keyPresent&&(t["filter[key_present][condition][key]"]=r.keyPresent.key,t["filter[key_present][condition][exists]"]=String(r.keyPresent.exists)),r.like&&(t["filter[like][condition][key]"]=r.like.key,t["filter[like][condition][pattern]"]=r.like.pattern),r.specs&&(t["filter[specs][condition][include]"]=JSON.stringify(r.specs.include),t["filter[specs][condition][exclude]"]=JSON.stringify(r.specs.exclude)),r.accessBlob&&(r.accessBlob.userId&&(t["filter[access_blob][condition][user_id]"]=r.accessBlob.userId),(o=r.accessBlob.tags)!=null&&o.length&&(t["filter[access_blob][condition][tags][]"]=r.accessBlob.tags)),r.structureFamily&&(t["filter[structure_family][condition][value]"]=r.structureFamily.value)),t}function Ny(e){if(typeof e=="string"){const t=e.trim();return t?t.split(`
|
|
38
|
+
`+i)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ja(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&ju.assertOptions(n,{silentJSONParsing:Nr.transitional(Nr.boolean),forcedJSONParsing:Nr.transitional(Nr.boolean),clarifyTimeoutError:Nr.transitional(Nr.boolean),legacyInterceptorReqResOrdering:Nr.transitional(Nr.boolean),advertiseZstdAcceptEncoding:Nr.transitional(Nr.boolean),validateStatusUndefinedResolves:Nr.transitional(Nr.boolean)},!1),a!=null&&(oe.isFunction(a)?r.paramsSerializer={serialize:a}:ju.assertOptions(a,{encode:Nr.function,serialize:Nr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ju.assertOptions(r,{baseUrl:Nr.spelling("baseURL"),withXsrfToken:Nr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&oe.merge(i.common,i[r.method]);i&&oe.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete i[p]}),r.headers=Cr.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(r)===!1)return;u=u&&v.synchronous;const y=r.transitional||dh;y&&y.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const l=[];this.interceptors.response.forEach(function(v){l.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!u){const p=[xy.bind(this),void 0];for(p.unshift(...s),p.push(...l),d=p.length,c=Promise.resolve(r);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;let m=r;for(;f<d;){const p=s[f++],v=s[f++];try{m=p(m)}catch(y){v.call(this,y);break}}try{c=xy.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,d=l.length;f<d;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=Ja(this.defaults,t);const r=cy(t.baseURL,t.url,t.allowAbsoluteUrls,t);return ey(r,t.params,t.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(r,n){return this.request(Ja(n||{},{method:t,url:r,data:n&&oe.hasOwnProp(n,"data")?n.data:void 0}))}}),oe.forEach(["post","put","patch","query"],function(t){function r(n){return function(i,o,s){return this.request(Ja(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ei.prototype[t]=r(),t!=="query"&&(ei.prototype[t+"Form"]=r(!0))});let H3=class Kk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new Bo(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Kk(function(a){t=a}),cancel:t}}};function B3(e){return function(r){return e.apply(null,r)}}function W3(e){return oe.isObject(e)&&e.isAxiosError===!0}const bh={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bh).forEach(([e,t])=>{bh[t]=e});function _y(e){const t=new ei(e),r=q1(ei.prototype.request,t);return oe.extend(r,ei.prototype,t,{allOwnKeys:!0}),oe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return _y(Ja(e,a))},r}const fr=_y(Ho);fr.Axios=ei,fr.CanceledError=Bo,fr.CancelToken=H3,fr.isCancel=iy,fr.VERSION=vh,fr.toFormData=Ru,fr.AxiosError=Be,fr.Cancel=fr.CanceledError,fr.all=function(t){return Promise.all(t)},fr.spread=B3,fr.isAxiosError=W3,fr.mergeConfig=Ja,fr.AxiosHeaders=Cr,fr.formToJSON=e=>ay(oe.isHTMLForm(e)?new FormData(e):e),fr.getAdapter=by.getAdapter,fr.HttpStatusCode=bh,fr.default=fr;const{Axios:lU,AxiosError:cU,CanceledError:fU,isCancel:dU,CancelToken:hU,VERSION:pU,all:mU,Cancel:vU,isAxiosError:gU,spread:yU,toFormData:bU,AxiosHeaders:xU,HttpStatusCode:wU,formToJSON:_U,getAdapter:OU,mergeConfig:SU,create:PU}=fr,ti={folder:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"})}),bracketSquare:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"})}),table:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z"})}),question:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"})}),gridline:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{d:"M216,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM104,144V112h48v32Zm48,16v32H104V160ZM40,112H88v32H40Zm64-16V64h48V96Zm64,16h48v32H168Zm48-16H168V64h48ZM88,64V96H40V64ZM40,160H88v32H40Zm176,32H168V160h48v32Z"})}),xarray:F.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:[F.jsx("path",{fill:"currentColor",d:"M48,48V208H80a8,8,0,0,1,0,16H40a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16ZM216,32H176a8,8,0,0,0,0,16h32V208H176a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Z"}),F.jsx("circle",{cx:"108",cy:"108",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"128",cy:"108",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"148",cy:"108",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"108",cy:"128",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"128",cy:"128",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"148",cy:"128",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"108",cy:"148",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"128",cy:"148",r:"4",fill:"currentColor"}),F.jsx("circle",{cx:"148",cy:"148",r:"4",fill:"currentColor"})]}),blueskyRun:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",viewBox:"0 0 256 256",children:F.jsx("path",{fill:"currentColor",d:"M152,88a32,32,0,1,0-32-32A32,32,0,0,0,152,88Zm0-48a16,16,0,1,1-16,16A16,16,0,0,1,152,40Zm67.31,100.68c-.61.28-7.49,3.28-19.67,3.28-13.85,0-34.55-3.88-60.69-20a169.31,169.31,0,0,1-15.41,32.34,104.29,104.29,0,0,1,31.31,15.81C173.92,186.65,184,207.35,184,232a8,8,0,0,1-16,0c0-41.7-34.69-56.71-54.14-61.85-.55.7-1.12,1.41-1.69,2.1-19.64,23.8-44.25,36.18-71.63,36.18A92.29,92.29,0,0,1,31.2,208,8,8,0,0,1,32.8,192c25.92,2.58,48.47-7.49,67-30,12.49-15.14,21-33.61,25.25-47C86.13,92.35,61.27,111.63,61,111.84A8,8,0,1,1,51,99.36c1.5-1.2,37.22-29,89.51,6.57,45.47,30.91,71.93,20.31,72.18,20.19a8,8,0,1,1,6.63,14.56Z"})})},Lu=e=>e.attributes.structure_family==="array",xh=e=>e.attributes.structure_family==="table",Wo=e=>e.attributes.structure_family==="container"||e.attributes.structure_family==="composite",Oy=e=>e.attributes.structure_family==="awkward",Sy=e=>e.attributes.structure_family==="sparse",Py=e=>e.attributes.structure_family==="array"&&"fields"in e.attributes.structure.data_type,My=e=>e.attributes.structure_family==="array"&&e.attributes.specs.some(t=>t.name==="xarray_coord"||t.name==="xarray_data_var"||t.name.startsWith("xarray_"))&&e.attributes.structure.dims!==null;function G3(e){return e&&typeof e.api_version=="number"&&typeof e.library_version=="string"&&e.formats&&e.aliases}function Z3(e,t){var l;const r=e.attributes.structure.shape,n=e.attributes.structure.dims,i=((l=e.attributes.metadata)==null?void 0:l.color_mode)==="RGB",o=!i&&r.length>=3&&r[r.length-1]===3,s=i||o&&t;let u=!1;return s&&(n&&n.indexOf("channel")!==-1?u=n.indexOf("channel")===0:u=r[0]===3&&r[r.length-1]!==3),{autoRGB:i,canToggleRGB:o,isRGB:s,channelFirst:u}}const Y3=(e,t)=>{const r={...e.links},n=t??(typeof window>"u"?"":`${window.location.protocol}//${window.location.hostname}:8000/api/v1`),a=bn(e);return r.default=n+"/"+a,r},wh=e=>{const t=e.attributes.structure_family;let r=ti.question;return(t==="array"||t==="awkward"||t==="sparse")&&(Py(e)?r=ti.table:My(e)?r=ti.xarray:r=ti.bracketSquare),t==="table"&&(r=ti.gridline),(t==="container"||t==="composite")&&(eR(e)?r=ti.blueskyRun:r=ti.folder),r},bn=(e,t)=>{let n=e.attributes.ancestors.length>0?e.attributes.ancestors.join("/")+"/":"";return n+=e.id,t&&(n+=`/${t}`),n},K3=e=>{typeof window>"u"||window.open(e,"_blank","noopener,noreferrer")},X3=(e,t)=>{const r=[];for(let n=0;n<e;n++){const a={min:0,max:t[n]-1,index:n,value:Math.floor(t[n]/2)};r.push(a)}return r},Q3=()=>{if(typeof window>"u")return;const e=localStorage.getItem("lastSearchHistory");if(e)return e},ri=e=>{if(!(typeof window>"u")){if(typeof e=="string"||!e)localStorage.setItem("lastSearchHistory","");else if(e){const t=bn(e);return localStorage.setItem("lastSearchHistory",t),t}}},J3=()=>{if(typeof window>"u")return;const e=localStorage.getItem("tiledApiKey");if(e)return e.length===0?void 0:e},_h=()=>{if(typeof window>"u")return;const e=localStorage.getItem("tiledRefreshToken"),t=localStorage.getItem("tiledAccessToken");if(e&&t)return e.length===0||t.length===0?void 0:{refreshToken:e,accessToken:t}},ky=()=>{typeof window>"u"||(localStorage.removeItem("tiledRefreshToken"),localStorage.removeItem("tiledAccessToken"),localStorage.removeItem("tiledApiKey"))},Ay=(e,t)=>{typeof window>"u"||(localStorage.setItem("tiledRefreshToken",e),localStorage.setItem("tiledAccessToken",t))},eR=e=>{var t,r,n;return e.attributes.structure_family==="container"&&((n=(r=(t=e==null?void 0:e.attributes)==null?void 0:t.specs)==null?void 0:r[0])==null?void 0:n.name)==="BlueskyRun"};function Ry(e={}){var t;return e.structure??((t=e.arrayItem)==null?void 0:t.attributes.structure)}function tR(e,t={}){const r=e.shape;return r.length<2?{height:1,width:r[0]??1,channels:1}:t.isRGB&&t.channelFirst&&r.length>=3&&r[0]===3?{height:r[1],width:r[2],channels:3}:t.isRGB&&r.length>=3&&r[r.length-1]===3?{height:r[r.length-3],width:r[r.length-2],channels:3}:{height:r[r.length-2],width:r[r.length-1],channels:1}}const Ey={b:1,i:4,u:4,f:8,c:16,m:8,M:8};function rR(e){var n,a,i;const t=(n=e.data_type)==null?void 0:n.itemsize;if(typeof t=="number"&&t>0)return t;const r=(i=(a=e.data_type)==null?void 0:a.kind)==null?void 0:i[0];return r&&Ey[r]?Ey[r]:1}function Ty(e,t){if(t.downSampleRatio&&t.downSampleRatio>1){const f=Math.ceil(t.downSampleRatio);return{stepX:f,stepY:f}}if(!e)return{stepX:1,stepY:1};const{width:r,height:n,channels:a}=tR(e,t),i=1e6,o=rR(e),s=t.maxBytesAllowed??i,u=r*n*a*o;if(u<=s)return{stepX:1,stepY:1};const l=u/s,c=Math.ceil(Math.sqrt(l));return{stepX:c,stepY:c}}function Cy(e,t){const{stepX:r,stepY:n}=t,a=e.stack??[],i=a.length>0?`${a.join(",")},`:"";return e.isRGB&&e.channelFirst?`:,${i}::${n},::${r}`:e.isRGB?`${i}::${n},::${r},:`:`${i}::${n},::${r}`}function nR(e={}){return Ty(Ry(e),e)}async function aR(e,t={},r){let n=Ry(t);if(!n&&r)try{n=await r(e)}catch{}return Ty(n,t)}function iR(e={}){return Cy(e,nR(e))}async function Oh(e,t={},r){const n=await aR(e,t,r);return Cy(t,n)}function oR(e={}){var a,i,o;const t={},{searchFilters:r,searchOptions:n}=e;return n&&(n.pageOffset!==void 0&&(t["page[offset]"]=String(n.pageOffset)),n.pageLimit!==void 0&&(t["page[limit]"]=String(n.pageLimit)),n.sort&&(t.sort=n.sort),n.selectMetadata&&(t.select_metadata=n.selectMetadata),n.omitLinks!==void 0&&(t.omit_links=String(n.omitLinks)),n.includeDataSources!==void 0&&(t.include_data_sources=String(n.includeDataSources)),(a=n.fields)!=null&&a.length&&(t.fields=n.fields)),r&&(r.fulltext&&(t["filter[fulltext][condition][text]"]=r.fulltext.text),r.lookup&&(t["filter[lookup][condition][key]"]=r.lookup.key),(i=r.keysFilter)!=null&&i.keys.length&&(t["filter[keys][condition][keys][]"]=r.keysFilter.keys),r.regex&&(t["filter[regex][condition][key]"]=r.regex.key,t["filter[regex][condition][pattern]"]=r.regex.pattern,r.regex.caseSensitive!==void 0&&(t["filter[regex][condition][case_sensitive]"]=String(r.regex.caseSensitive))),r.eq&&(t["filter[eq][condition][key]"]=r.eq.key,t["filter[eq][condition][value]"]=r.eq.value),r.noteq&&(t["filter[noteq][condition][key]"]=r.noteq.key,t["filter[noteq][condition][value]"]=r.noteq.value),r.comparison&&(t["filter[comparison][condition][operator]"]=r.comparison.operator,t["filter[comparison][condition][key]"]=r.comparison.key,t["filter[comparison][condition][value]"]=r.comparison.value),r.contains&&(t["filter[contains][condition][key]"]=r.contains.key,t["filter[contains][condition][value]"]=r.contains.value),r.in&&(t["filter[in][condition][key]"]=r.in.key,t["filter[in][condition][value][]"]=r.in.value),r.notin&&(t["filter[notin][condition][key]"]=r.notin.key,t["filter[notin][condition][value][]"]=r.notin.value),r.keyPresent&&(t["filter[key_present][condition][key]"]=r.keyPresent.key,t["filter[key_present][condition][exists]"]=String(r.keyPresent.exists)),r.like&&(t["filter[like][condition][key]"]=r.like.key,t["filter[like][condition][pattern]"]=r.like.pattern),r.specs&&(t["filter[specs][condition][include]"]=JSON.stringify(r.specs.include),t["filter[specs][condition][exclude]"]=JSON.stringify(r.specs.exclude)),r.accessBlob&&(r.accessBlob.userId&&(t["filter[access_blob][condition][user_id]"]=r.accessBlob.userId),(o=r.accessBlob.tags)!=null&&o.length&&(t["filter[access_blob][condition][tags][]"]=r.accessBlob.tags)),r.structureFamily&&(t["filter[structure_family][condition][value]"]=r.structureFamily.value)),t}function Ny(e){if(typeof e=="string"){const t=e.trim();return t?t.split(`
|
|
39
39
|
`).filter(Boolean).map(r=>JSON.parse(r)):[]}if(Array.isArray(e))return e;if(e&&typeof e=="object")return[e];throw new Error("Could not parse JSON sequence table response.")}class Sh{constructor(t={}){ka(this,"client");ka(this,"baseUrl");ka(this,"initialPath");ka(this,"apiKey");ka(this,"signal");ka(this,"maxArrayBytes");ka(this,"authErrorCallback");ka(this,"refreshPromise",null);this.client=t.client??fr.create({baseURL:Du(t.baseUrl??""),withCredentials:!0}),this.baseUrl=Du(t.baseUrl??""),this.initialPath=Go(t.initialPath??""),this.apiKey=t.apiKey??null,this.signal=t.signal,this.maxArrayBytes=t.maxArrayBytes,this.authErrorCallback=t.onAuthError,this.client.interceptors.request.use(r=>(this.apiKey&&!r.headers.Authorization&&(r.headers.Authorization=`ApiKey ${this.apiKey}`),r)),this.client.interceptors.response.use(r=>r,async r=>{var i;const n=r,a=n.config;if(((i=n.response)==null?void 0:i.status)!==401||!a||a._retry)return Promise.reject(r);a._retry=!0,this.refreshPromise||(this.refreshPromise=this.doTokenRefresh(a.baseURL).finally(()=>{this.refreshPromise=null}));try{const o=await this.refreshPromise;return a.headers={...a.headers,Authorization:`Bearer ${o}`},this.client(a)}catch{return Promise.reject(r)}})}setBaseUrl(t){this.baseUrl=Du(t),this.client.defaults.baseURL=this.baseUrl}getBaseUrl(){return this.baseUrl}setInitialPath(t){this.initialPath=Go(t)}getInitialPath(){return this.initialPath}setApiKey(t){this.apiKey=t}getApiKey(){return this.apiKey}getAxiosClient(){return this.client}setSignal(t){this.signal=t}getSignal(){return this.signal}setMaxArrayBytes(t){this.maxArrayBytes=t}getMaxArrayBytes(){return this.maxArrayBytes}setAuthErrorCallback(t){this.authErrorCallback=t}setBearerToken(t){t?this.client.defaults.headers.common.Authorization=`Bearer ${t}`:delete this.client.defaults.headers.common.Authorization}async doTokenRefresh(t){var n,a;const r=_h();if(!r)throw(n=this.authErrorCallback)==null||n.call(this,null),new Error("No stored auth tokens");try{const i=t.indexOf("/api/v1"),o=i!==-1?t.slice(0,i+7):this.baseUrl,s=await fr.post(`${o}/auth/session/refresh`,{refresh_token:r.refreshToken});let u;if(s.status===404?u=(await fr.post(`${o}/auth/refresh`,{refresh_token:r.refreshToken})).data.access_token:u=s.data.access_token,!u)throw new Error("No access token returned from refresh endpoint");return Ay(r.refreshToken,u),this.setBearerToken(u),u}catch(i){throw ky(),(a=this.authErrorCallback)==null||a.call(this,i),i}}resolveArrayOptions(t){return this.maxArrayBytes===void 0||t.maxBytesAllowed!==void 0?t:{...t,maxBytesAllowed:this.maxArrayBytes}}async getArrayAs(t,r,n={}){switch(r){case"JSON":return this.getArrayAsJSON(t,n);case"PNG":return this.getArrayAsPng(t,n);case"BUFFER":return this.getArrayAsBuffer(t,n);case"IMAGE_PATH":return Promise.resolve(this.getArrayAsImagePath(t,n));default:throw new Error(`Unsupported array return type: ${r}`)}}async getArrayAsJSON(t,r={}){r=this.resolveArrayOptions(r);const n=this.resolveArrayFullEndpoint(t,r),a=await Oh(t,r,this.makeStructureFetcher(r));return this.get(n,r,{params:{format:r.format??"application/json",slice:a},headers:{Accept:r.format??"application/json"}})}async getArrayAsPng(t,r={}){r=this.resolveArrayOptions(r);const n=this.resolveArrayFullEndpoint(t,r),a=r.format??"image/png",i=await Oh(t,r,this.makeStructureFetcher(r));return this.get(n,r,{responseType:"blob",params:{format:a,slice:i},headers:{Accept:a}})}async getArrayAsBuffer(t,r={}){r=this.resolveArrayOptions(r);const n=this.resolveArrayFullEndpoint(t,r),a=r.format??"application/octet-stream",i=await Oh(t,r,this.makeStructureFetcher(r));return this.get(n,r,{responseType:"arraybuffer",params:{format:a,slice:i},headers:{Accept:a}})}getArrayAsImagePath(t,r={}){r=this.resolveArrayOptions(r);const n=this.resolveBaseUrl(r),a=this.resolveArrayFullEndpoint(t,r),i=new URL(`${n}${a}`),o=r.format??"image/png";i.searchParams.set("format",o);const s=iR(r);return s&&i.searchParams.set("slice",s),i.toString()}async getMetadata(t,r={}){const n=this.resolveMetadataEndpoint(t,r);return(await this.get(n,r,{headers:{Accept:"application/json"}})).data}async getTableAs(t,r="JSON",n="partition",a={}){if(n==="full")switch(r){case"JSON":return this.getTableFullAsJSON(t,a);case"JSON_SEQ":return this.getTableFullAsJSONSequence(t,a);default:throw new Error(`Unsupported table return type: ${String(r)}`)}switch(r){case"JSON":return this.getTablePartitionAsJSON(t,a);case"JSON_SEQ":return this.getTablePartitionAsJSONSequence(t,a);default:throw new Error(`Unsupported table return type: ${String(r)}`)}}async getTablePartitionAsJSON(t,r={}){const n=this.resolveTablePartitionEndpoint(t,r),a=r.format??"application/json";return this.get(n,r,{params:{partition:r.partition??0,format:a},headers:{Accept:a}})}async getTablePartitionAsJSONSequence(t,r={}){const n=this.resolveTablePartitionEndpoint(t,r),a=r.format??"application/json-seq",i=await this.get(n,r,{responseType:"text",params:{partition:r.partition??0,format:a},headers:{Accept:a}});return Ny(i)}async getTableFullAsJSON(t,r={}){const n=this.resolveTableFullEndpoint(t,r),a=r.format??"application/json";return this.get(n,r,{params:{format:a},headers:{Accept:a}})}async getTableFullAsJSONSequence(t,r={}){const n=this.resolveTableFullEndpoint(t,r),a=r.format??"application/json-seq",i=await this.get(n,r,{responseType:"text",params:{format:a},headers:{Accept:a}});return Ny(i)}async get(t,r={},n={}){const a=this.resolveClient(r),i=this.resolveBaseUrl(r),o=r.apiKey!==void 0?r.apiKey:this.apiKey,s=o?{Authorization:`Apikey ${o}`}:{};return(await a.get(t,{...n,baseURL:i,signal:r.signal??this.signal,params:uR({...n.params}),headers:{...s,...n.headers}})).data}resolveClient(t={}){return t.client??this.client}resolveBaseUrl(t={}){return Du(t.baseUrl??this.baseUrl)}resolveArrayFullEndpoint(t,r={}){return`/array/full/${this.resolveEncodedPath(t,r)}`}resolveArrayBlockEndpoint(t,r={}){return`/array/block/${this.resolveEncodedPath(t,r)}`}async getServerInfo(t={}){try{const r=await this.get("/",t,{headers:{Accept:"application/json"}});return G3(r)?r:null}catch{return null}}async getSearch(t,r={},n={}){const a=this.resolveSearchEndpoint(t,n);return this.get(a,n,{params:oR(r),headers:{Accept:"application/json"}})}resolveSearchEndpoint(t,r={}){const n=this.resolveEncodedPath(t,r);return n?`/search/${n}`:"/search/"}makeStructureFetcher(t){return r=>this.getMetadata(r,t).then(n=>n.attributes.structure).catch(()=>{})}resolveMetadataEndpoint(t,r={}){return`/metadata/${this.resolveEncodedPath(t,r)}`}resolveTableFullEndpoint(t,r={}){return`/table/full/${this.resolveEncodedPath(t,r)}`}resolveTablePartitionEndpoint(t,r={}){return`/table/partition/${this.resolveEncodedPath(t,r)}`}async loginWithUsernamePassword(t,r,n,a){var i,o,s;try{let u="";if(a&&(a.mode==="password"||a.mode==="internal")){if(!((i=a.links)!=null&&i.auth_endpoint))return console.error("Provided authentication provider is missing auth_endpoint"),null;u=a.links.auth_endpoint}else{const m=await this.getServerInfo(n?{baseUrl:n}:{});if(!((o=m==null?void 0:m.authentication)!=null&&o.providers))return console.error("No authentication providers found in server info"),null;const p=m.authentication.providers.find(v=>v.mode==="password"||v.mode==="internal");if(!((s=p==null?void 0:p.links)!=null&&s.auth_endpoint))return console.error("No password authentication provider found"),null;u=p.links.auth_endpoint}const l=new FormData;l.append("username",t),l.append("password",r);const c=await this.client.post(u,l,{headers:{"Content-Type":"multipart/form-data"}}),{access_token:f,refresh_token:d}=c.data;return f&&d?(Ay(d,f),this.setBearerToken(f),{access_token:f,refresh_token:d}):(console.error("Login response missing required tokens"),null)}catch(u){return console.error("Login failed:",u),null}}resolveEncodedPath(t,r={}){const n=this.resolveTiledPath(t,r);return sR(n)}resolveTiledPath(t,r={}){const n=r.pathMode??"relative",a=Go(t);if(n==="absolute")return a;const i=Go(r.initialPath??this.initialPath);return i?a?`${i}/${a}`:i:a}}function Du(e){return e.replace(/\/+$/,"")}function Go(e){return e.split("/").filter(Boolean).join("/")}function sR(e){return Go(e).split("/").map(encodeURIComponent).join("/")}function uR(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function jy(){return typeof window<"u"?`${window.location.protocol}//${window.location.hostname}:8000/api/v1`:""}let jr=new Sh({baseUrl:jy()});function zn(){return jr}function lR(e){jr=e}function cR(){jr=new Sh({baseUrl:jy()})}function fR(e){jr.setBaseUrl(e)}function Ly(e){jr.setInitialPath(e)}function Dy(){return jr.getInitialPath()}function qy(e){jr.setApiKey(e)}function dR(e){jr.setMaxArrayBytes(e)}function hR(e,t="BUFFER",r={}){return jr.getArrayAs(e,t,r)}function qu(e,t={}){return jr.getArrayAsJSON(e,t)}function Fy(e,t={}){return jr.getArrayAsPng(e,t)}function Iy(e,t={}){return jr.getArrayAsImagePath(e,t)}function pR(e,t={}){return jr.getArrayAsBuffer(e,t)}function mR(e,t="JSON",r="partition",n={}){return zn().getTableAs(e,t,r,n)}function vR(e,t={}){return zn().getTablePartitionAsJSON(e,t)}function Ph(e,t={}){return zn().getTablePartitionAsJSONSequence(e,t)}function gR(e,t={}){return zn().getTableFullAsJSON(e,t)}function yR(e,t={}){return zn().getTableFullAsJSONSequence(e,t)}function Mh(e={}){return zn().getServerInfo(e)}function $y(e,t={}){return zn().getMetadata(e,t)}function en(e,t={},r={}){return zn().getSearch(e,t,r)}function bR(e,t,r=[],n={},a={}){return en(e,{searchFilters:{specs:{include:t,exclude:r}},searchOptions:n},a)}function xR(e,t,r={},n={}){return en(e,{searchFilters:{fulltext:{text:t}},searchOptions:r},n)}function wR(e,t,r,n={},a={}){return en(e,{searchFilters:{eq:{key:t,value:r}},searchOptions:n},a)}function _R(e,t,r={},n={}){return en(e,{searchFilters:{structureFamily:{value:t}},searchOptions:r},n)}function kh(e){jr.setBearerToken(e)}function zy(e){jr.setAuthErrorCallback(e)}function Vy(e,t,r,n){return jr.loginWithUsernamePassword(e,t,r,n)}const OR="data:image/png;base64,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",SR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),U.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),PR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M140,104V64a12,12,0,0,1,24,0V75l35.51-35.52a12,12,0,0,1,17,17L181,92h11a12,12,0,0,1,0,24H152A12,12,0,0,1,140,104Zm-36,36H64a12,12,0,0,0,0,24H75L39.51,199.51a12,12,0,0,0,17,17L92,181v11a12,12,0,0,0,24,0V152A12,12,0,0,0,104,140Zm77,24h11a12,12,0,0,0,0-24H152a12,12,0,0,0-12,12v40a12,12,0,0,0,24,0V181l35.51,35.52a12,12,0,0,0,17-17ZM104,52A12,12,0,0,0,92,64V75L56.49,39.51a12,12,0,0,0-17,17L75,92H64a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V64A12,12,0,0,0,104,52Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z",opacity:"0.2"}),U.createElement("path",{d:"M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M144,104V64a8,8,0,0,1,13.66-5.66L172,72.69l30.34-30.35a8,8,0,0,1,11.32,11.32L183.31,84l14.35,14.34A8,8,0,0,1,192,112H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0-5.66,13.66L72.69,172,42.34,202.34a8,8,0,0,0,11.32,11.32L84,183.31l14.34,14.35A8,8,0,0,0,112,192V152A8,8,0,0,0,104,144Zm3.06-87.39a8,8,0,0,0-8.72,1.73L84,72.69,53.66,42.34A8,8,0,0,0,42.34,53.66L72.69,84,58.34,98.34A8,8,0,0,0,64,112h40a8,8,0,0,0,8-8V64A8,8,0,0,0,107.06,56.61ZM183.31,172l14.35-14.34A8,8,0,0,0,192,144H152a8,8,0,0,0-8,8v40a8,8,0,0,0,13.66,5.66L172,183.31l30.34,30.35a8,8,0,0,0,11.32-11.32Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M146,104V64a6,6,0,0,1,12,0V89.51l45.76-45.75a6,6,0,0,1,8.48,8.48L166.48,98H192a6,6,0,0,1,0,12H152A6,6,0,0,1,146,104Zm-42,42H64a6,6,0,0,0,0,12H89.52L43.76,203.76a6,6,0,1,0,8.48,8.48L98,166.48V192a6,6,0,0,0,12,0V152A6,6,0,0,0,104,146Zm62.48,12H192a6,6,0,0,0,0-12H152a6,6,0,0,0-6,6v40a6,6,0,0,0,12,0V166.48l45.76,45.76a6,6,0,0,0,8.48-8.48ZM104,58a6,6,0,0,0-6,6V89.51L52.24,43.76a6,6,0,0,0-8.48,8.48L89.52,98H64a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V64A6,6,0,0,0,104,58Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M148,104V64a4,4,0,0,1,8,0V94.34l49.17-49.17a4,4,0,1,1,5.66,5.66L161.66,100H192a4,4,0,0,1,0,8H152A4,4,0,0,1,148,104Zm-44,44H64a4,4,0,0,0,0,8H94.34L45.17,205.17a4,4,0,0,0,5.66,5.66L100,161.66V192a4,4,0,0,0,8,0V152A4,4,0,0,0,104,148Zm57.66,8H192a4,4,0,0,0,0-8H152a4,4,0,0,0-4,4v40a4,4,0,0,0,8,0V161.66l49.17,49.17a4,4,0,0,0,5.66-5.66ZM104,60a4,4,0,0,0-4,4V94.34L50.83,45.17a4,4,0,0,0-5.66,5.66L94.34,100H64a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V64A4,4,0,0,0,104,60Z"}))]]),MR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,48V208H48V48Z",opacity:"0.2"}),U.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z"}))]]),kR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),U.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),AR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),U.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),RR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),U.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),ER=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),U.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),TR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v85.55L88.1,95a12,12,0,0,1,15.1-.57l56.22,42.16L216.1,87A12,12,0,1,1,231.9,105l-64,56a12,12,0,0,1-15.1.57L96.58,119.44,44,165.45V196H224A12,12,0,0,1,236,208Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),U.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,176a8,8,0,0,1,0,16H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v62.92l34.88-29.07a8,8,0,0,1,9.56-.51l43,28.69,43.41-36.18a8,8,0,0,1,10.24,12.3l-48,40a8,8,0,0,1-9.56.51l-43-28.69L64,155.75V176Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0v98.78l54.05-47.3a6,6,0,0,1,7.55-.28l60.11,45.08,60.34-52.8a6,6,0,0,1,7.9,9l-64,56a6,6,0,0,1-7.55.28L96.29,111.72,38,162.72V202H224A6,6,0,0,1,230,208Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V151.19L93.37,101a4,4,0,0,1,5-.19l61.41,46.05L221.37,93a4,4,0,0,1,5.26,6l-64,56a4,4,0,0,1-5,.19l-61.41-46L36,161.81V204H224A4,4,0,0,1,228,208Z"}))]]),CR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),U.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),NR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),U.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),jR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),U.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),LR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"}),U.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z"}))]]),DR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),U.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),qR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M203.57,51A107.9,107.9,0,0,0,20,128c0,44.72,27.6,82.25,72,97.94A36,36,0,0,0,140,192a12,12,0,0,1,12-12h46.21a35.79,35.79,0,0,0,35.1-28A108.6,108.6,0,0,0,236,127.09,107.23,107.23,0,0,0,203.57,51Zm6.34,95.67a11.91,11.91,0,0,1-11.7,9.3H152a36,36,0,0,0-36,36,12,12,0,0,1-16,11.3c-16.65-5.88-30.65-15.76-40.48-28.56A76,76,0,0,1,44,128a84,84,0,0,1,83.13-84H128a84.35,84.35,0,0,1,84,83.29A84.72,84.72,0,0,1,209.91,146.71ZM144,76a16,16,0,1,1-16-16A16,16,0,0,1,144,76Zm-44,24A16,16,0,1,1,84,84,16,16,0,0,1,100,100Zm0,56a16,16,0,1,1-16-16A16,16,0,0,1,100,156Zm88-56a16,16,0,1,1-16-16A16,16,0,0,1,188,100Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,127.17a96.48,96.48,0,0,1-2.39,22.18A24,24,0,0,1,198.21,168H152a24,24,0,0,0-24,24,24,24,0,0,1-32,22.61C58.73,201.44,32,169.81,32,128a96,96,0,0,1,95-96C179.84,31.47,223.55,74.35,224,127.17Z",opacity:"0.2"}),U.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89ZM84,168a12,12,0,1,1,12-12A12,12,0,0,1,84,168Zm0-56a12,12,0,1,1,12-12A12,12,0,0,1,84,112Zm44-24a12,12,0,1,1,12-12A12,12,0,0,1,128,88Zm44,24a12,12,0,1,1,12-12A12,12,0,0,1,172,112Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M199.37,55.31A101.32,101.32,0,0,0,128,26h-1A102,102,0,0,0,26,128c0,42.09,26.07,77.44,68,92.26A30.21,30.21,0,0,0,104.11,222,30.06,30.06,0,0,0,134,192a18,18,0,0,1,18-18h46.21a29.82,29.82,0,0,0,29.25-23.31A102.71,102.71,0,0,0,230,127.11,101.25,101.25,0,0,0,199.37,55.31ZM215.76,148a17.89,17.89,0,0,1-17.55,14H152a30,30,0,0,0-30,30,18,18,0,0,1-24,17C61,195.86,38,164.85,38,128a90,90,0,0,1,89.07-90H128a90.34,90.34,0,0,1,90,89.22A90.46,90.46,0,0,1,215.76,148ZM138,76a10,10,0,1,1-10-10A10,10,0,0,1,138,76ZM94,100A10,10,0,1,1,84,90,10,10,0,0,1,94,100Zm0,56a10,10,0,1,1-10-10A10,10,0,0,1,94,156Zm88-56a10,10,0,1,1-10-10A10,10,0,0,1,182,100Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M200.77,53.89A103.27,103.27,0,0,0,128,24h-1.07A104,104,0,0,0,24,128c0,43,26.58,79.06,69.36,94.17A32,32,0,0,0,136,192a16,16,0,0,1,16-16h46.21a31.81,31.81,0,0,0,31.2-24.88,104.43,104.43,0,0,0,2.59-24A103.28,103.28,0,0,0,200.77,53.89Zm13,93.71A15.89,15.89,0,0,1,198.21,160H152a32,32,0,0,0-32,32,16,16,0,0,1-21.31,15.07C62.49,194.3,40,164,40,128a88,88,0,0,1,87.09-88h.9a88.35,88.35,0,0,1,88,87.25A88.86,88.86,0,0,1,213.81,147.6ZM140,76a12,12,0,1,1-12-12A12,12,0,0,1,140,76ZM96,100A12,12,0,1,1,84,88,12,12,0,0,1,96,100Zm0,56a12,12,0,1,1-12-12A12,12,0,0,1,96,156Zm88-56a12,12,0,1,1-12-12A12,12,0,0,1,184,100Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M198,56.74A99.31,99.31,0,0,0,128,28h-1A100,100,0,0,0,28,128c0,41.22,25.55,75.85,66.69,90.38a28.34,28.34,0,0,0,9.42,1.63A28,28,0,0,0,132,192a20,20,0,0,1,20-20h46.21a27.84,27.84,0,0,0,27.3-21.76,100.37,100.37,0,0,0,2.49-23.1A99.26,99.26,0,0,0,198,56.74Zm19.74,91.72A19.89,19.89,0,0,1,198.21,164H152a28,28,0,0,0-28,28,20,20,0,0,1-26.64,18.83C59.51,197.46,36,165.72,36,128a92,92,0,0,1,91.05-92H128a92,92,0,0,1,89.72,112.46ZM136,76a8,8,0,1,1-8-8A8,8,0,0,1,136,76ZM92,100a8,8,0,1,1-8-8A8,8,0,0,1,92,100Zm0,56a8,8,0,1,1-8-8A8,8,0,0,1,92,156Zm88-56a8,8,0,1,1-8-8A8,8,0,0,1,180,100Z"}))]]),FR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),U.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),IR=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),U.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),$R=new Map([["bold",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",U.createElement(U.Fragment,null,U.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),U.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",U.createElement(U.Fragment,null,U.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",U.createElement(U.Fragment,null,U.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",U.createElement(U.Fragment,null,U.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",U.createElement(U.Fragment,null,U.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),zR=O.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),_r=U.forwardRef((e,t)=>{const{alt:r,color:n,size:a,weight:i,mirrored:o,children:s,weights:u,...l}=e,{color:c="currentColor",size:f,weight:d="regular",mirrored:m=!1,...p}=U.useContext(zR);return U.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:a??f,height:a??f,fill:n??c,viewBox:"0 0 256 256",transform:o||m?"scale(-1, 1)":void 0,...p,...l},!!r&&U.createElement("title",null,r),s,u.get(i??d))});_r.displayName="IconBase";const Uy=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:SR}));Uy.displayName="ArrowUpRightIcon";const VR=Uy,Hy=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:PR}));Hy.displayName="ArrowsInIcon";const By=Hy,Wy=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:MR}));Wy.displayName="ArrowsOutIcon";const Gy=Wy,Zy=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:kR}));Zy.displayName="CaretDownIcon";const Yy=Zy,Ky=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:AR}));Ky.displayName="CaretLeftIcon";const UR=Ky,Xy=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:RR}));Xy.displayName="CaretRightIcon";const Qy=Xy,Jy=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:ER}));Jy.displayName="CaretUpIcon";const HR=Jy,eb=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:TR}));eb.displayName="ChartLineIcon";const BR=eb,tb=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:CR}));tb.displayName="CircleNotchIcon";const WR=tb,rb=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:NR}));rb.displayName="DownloadSimpleIcon";const GR=rb,nb=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:jR}));nb.displayName="InfoIcon";const ZR=nb,ab=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:LR}));ab.displayName="LockIcon";const YR=ab,ib=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:DR}));ib.displayName="MagnifyingGlassIcon";const KR=ib,ob=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:qR}));ob.displayName="PaletteIcon";const sb=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:FR}));sb.displayName="QuestionIcon";const XR=sb,ub=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:IR}));ub.displayName="WarningIcon";const lb=ub,cb=U.forwardRef((e,t)=>U.createElement(_r,{ref:t,...e,weights:$R}));cb.displayName="XIcon";const QR=cb;function JR({handleSearchIdClick:e,handleSearchMetadataClick:t,handleSearchSpecClick:r,debounceMs:n=300}){const[a,i]=O.useState(!1),[o,s]=O.useState(""),[u,l]=O.useState(!1),[c,f]=O.useState(!1),[d,m]=O.useState(null),[p,v]=O.useState(-1),y=O.useRef(null),g=O.useRef(null),x=O.useRef(null),_=["id","metadata","spec"],M=O.useCallback((N,q)=>{if(!N.trim())return;switch(q||"id"){case"id":e==null||e(N);break;case"metadata":t==null||t(N);break;case"spec":r==null||r(N);break}},[e,t,r]);O.useEffect(()=>(x.current&&clearTimeout(x.current),o.trim()&&a&&(x.current=setTimeout(()=>{M(o,d)},n)),()=>{x.current&&clearTimeout(x.current)}),[o,a,n,M,d]),O.useEffect(()=>{a&&y.current&&y.current.focus()},[a]),O.useEffect(()=>{const N=q=>{g.current&&!g.current.contains(q.target)&&(i(!1),l(!1),f(!1),s(""),m(null))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const S=()=>{i(!0)},R=N=>{const q=N.target.value;s(q),l(q.length>0),v(-1)},E=N=>{var q,$,V;if(N.key==="Escape"){N.preventDefault(),u?(l(!1),v(-1),(q=y.current)==null||q.focus()):(i(!1),s(""),m(null),v(-1));return}if(!(!u||o.length===0))switch(N.key){case"ArrowDown":N.preventDefault(),v(H=>H<_.length-1?H+1:H);break;case"ArrowUp":N.preventDefault(),v(H=>H>0?H-1:-1),p===0&&(v(-1),($=y.current)==null||$.focus());break;case"Enter":N.preventDefault(),p>=0&&p<_.length?j(_[p]):j("id");break;default:N.key.length===1&&N.key.match(/[a-zA-Z0-9]/)&&(v(-1),(V=y.current)==null||V.focus());break}},j=N=>{switch(m(N),l(!1),f(!1),v(-1),N){case"id":e==null||e(o);break;case"metadata":console.log("handleOptionClick metadata"),t==null||t(o);break;case"spec":r==null||r(o);break}},T=N=>{N.stopPropagation(),f(!c),l(!1)},k=N=>{if(m(N),f(!1),o)switch(N){case"id":e==null||e(o);break;case"metadata":console.log("handleTypeChange metadata"),t==null||t(o);break;case"spec":r==null||r(o);break}},I=()=>{switch(d){case"id":return"id";case"metadata":return"md";case"spec":return"spec";default:return null}};return F.jsxs("div",{className:"relative flex justify-end w-64 h-10 ",ref:g,children:[F.jsxs("div",{className:`
|
|
40
40
|
flex items-center transition-all duration-300 ease-in-out cursor-pointer
|
|
41
41
|
${a?"w-64 h-full border border-slate-300 rounded-md px-3 py-4 bg-white":"w-8 h-full"}
|
package/package.json
CHANGED
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { TiledInfoResponse, TiledSearchResult, TiledAuthProvider, TiledTableRow, TiledStructuredArrayData, TiledTableJSONResponse, TiledBlueskyPlanMetadataResponse, TiledSearchMetadataResult } from './types';
|
|
2
|
-
import { TiledSearchConfig, TiledSearchOptions } from './apiTypes';
|
|
3
|
-
/**
|
|
4
|
-
* Sets the global Tiled server URL that will be used for all subsequent API requests
|
|
5
|
-
* @param url - The Tiled server URL to set, or null to clear it
|
|
6
|
-
* @returns The Tiled server URL that was set
|
|
7
|
-
*/
|
|
8
|
-
export declare const setGlobalUrl: (url: string | null) => string | null;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the global initial path that will be prepended to all search paths
|
|
11
|
-
* Automatically removes leading slash to ensure proper path formatting
|
|
12
|
-
* @param path - The initial path to set, or null to clear it
|
|
13
|
-
* @returns The formatted initial path that was set
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* setInitialPath('my-data-folder'); // Sets path to 'my-data-folder'
|
|
17
|
-
* setInitialPath('/my-data-folder'); // Also sets path to 'my-data-folder' (leading slash removed)
|
|
18
|
-
* setInitialPath(null); // Clears the initial path
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare const setInitialPath: (path: string | null) => string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Configures whether search results should be returned in reverse order
|
|
24
|
-
* @param reverse - If true, results will be sorted in descending order
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* setReverseSort(true); // Enable reverse sorting
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare const setReverseSort: (reverse: boolean | undefined) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves the current global initial path setting
|
|
33
|
-
* @returns The current initial path string, or null if not set
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* const currentPath = getInitialPath();
|
|
37
|
-
* if (currentPath) {
|
|
38
|
-
* console.log('Current initial path:', currentPath);
|
|
39
|
-
* }
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare const getInitialPath: () => string | null;
|
|
43
|
-
/**
|
|
44
|
-
* Sets the global API key that will be used for all subsequent Tiled API requests
|
|
45
|
-
* This key will be automatically included in authentication headers for API calls
|
|
46
|
-
* @param apiKey - The API key string to use for authentication, or null to clear it
|
|
47
|
-
* @returns The API key that was set
|
|
48
|
-
* @example
|
|
49
|
-
* ```typescript
|
|
50
|
-
* setGlobalApiKey('my-secret-api-key'); // Sets global API key
|
|
51
|
-
* setGlobalApiKey(null); // Clears the global API key
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
export declare const setGlobalApiKey: (apiKey: string | null) => string | null;
|
|
55
|
-
type AuthErrorCallback = (error: any) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Sets a callback function to handle authentication errors
|
|
58
|
-
* This callback will be invoked when a 401 authentication error occurs and token refresh fails
|
|
59
|
-
* Useful for implementing custom error handling, logout flows, or user notifications
|
|
60
|
-
* @param callback - Function to call when authentication errors occur. Receives the error as a parameter
|
|
61
|
-
* @example
|
|
62
|
-
* ```typescript
|
|
63
|
-
* setAuthErrorCallback((error) => {
|
|
64
|
-
* console.log('Authentication failed:', error);
|
|
65
|
-
* // Redirect to login page or show error message
|
|
66
|
-
* window.location.href = '/login';
|
|
67
|
-
* });
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export declare const setAuthErrorCallback: (callback: AuthErrorCallback) => void;
|
|
71
|
-
/**
|
|
72
|
-
* Returns the active Tiled server URL: globalUrl if set, otherwise constructs one from current hostname
|
|
73
|
-
* @returns The Tiled server URL string
|
|
74
|
-
*/
|
|
75
|
-
export declare const getDefaultTiledUrl: () => string;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the Bearer token for authentication in axios requests
|
|
78
|
-
* @param token - The Bearer token string
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* setBearerToken('your-bearer-token-here');
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
export declare const setBearerToken: (token: string) => void;
|
|
85
|
-
/**
|
|
86
|
-
* Searches for data in a Tiled server instance
|
|
87
|
-
* @param searchPath - Optional path to search within (e.g., 'folder/subfolder')
|
|
88
|
-
* @param url - Optional custom Tiled server URL (defaults to environment variable or localhost:8000)
|
|
89
|
-
* @param cb - Optional callback function that receives the search results
|
|
90
|
-
* @param mock - If true, returns sample mock data instead of making API call
|
|
91
|
-
* @param parameters - Optional additional query parameters to include in the request
|
|
92
|
-
* @param sortingKey - Optional key to sort results by (prefix with '-' for descending)
|
|
93
|
-
* @returns Promise that resolves to TiledSearchResult or null if error occurs
|
|
94
|
-
* @example
|
|
95
|
-
* ```typescript
|
|
96
|
-
* const results = await getSearchResults('my-data-folder');
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
export declare const getSearchResultsOld: (searchPath?: string, url?: string, cb?: (res: TiledSearchResult) => void, mock?: boolean, parameters?: Record<string, string | number | boolean>, sortingKey?: string) => Promise<TiledSearchResult | null>;
|
|
100
|
-
/**
|
|
101
|
-
* Performs the first search with an API key, which sets up authentication for subsequent requests
|
|
102
|
-
* @param apiKey - The API key for authentication with the Tiled server
|
|
103
|
-
* @param searchPath - Optional path to search within
|
|
104
|
-
* @param url - Optional custom Tiled server URL
|
|
105
|
-
* @param cb - Optional callback function that receives the search results
|
|
106
|
-
* @param mock - If true, returns sample mock data instead of making API call
|
|
107
|
-
* @returns Promise that resolves to TiledSearchResult or null if error occurs
|
|
108
|
-
* @example
|
|
109
|
-
* ```typescript
|
|
110
|
-
* const results = await getFirstSearchWithApiKey('your-api-key', 'data-folder');
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
export declare const getFirstSearchWithApiKey: (apiKey: string, searchPath?: string, url?: string, cb?: (res: TiledSearchResult) => void, mock?: boolean) => Promise<TiledSearchResult | null>;
|
|
114
|
-
/**
|
|
115
|
-
* Searches for items that include specific specs
|
|
116
|
-
* @param searchPath - Optional path to search within
|
|
117
|
-
* @param includeSpecs - Array of spec names to include in results
|
|
118
|
-
* @param excludeSpecs - Optional array of spec names to exclude from results
|
|
119
|
-
* @param url - Optional custom Tiled server URL
|
|
120
|
-
* @param cb - Optional callback function that receives the search results
|
|
121
|
-
* @returns Promise that resolves to TiledSearchResult or null if error occurs
|
|
122
|
-
* @example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* // Search for BlueskyEventStream specs
|
|
125
|
-
* const results = await getSearchResultsBySpecs('my-path', ['BlueskyEventStream']);
|
|
126
|
-
*
|
|
127
|
-
* // Search for multiple specs but exclude BlueskyRun
|
|
128
|
-
* const results = await getSearchResultsBySpecs('my-path', ['BlueskyEventStream'], ['BlueskyRun']);
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
export declare const getSearchResultsBySpecs: (searchPath?: string, includeSpecs?: string[], excludeSpecs?: string[], url?: string, cb?: (res: TiledSearchResult) => void) => Promise<TiledSearchResult | null>;
|
|
132
|
-
/**
|
|
133
|
-
* Retrieves metadata for a specific item from a Tiled server
|
|
134
|
-
* @param searchPath - The path to the item
|
|
135
|
-
* @param url - Optional custom Tiled server URL
|
|
136
|
-
* @param cb - Optional callback function that receives the metadata
|
|
137
|
-
* @returns Promise that resolves to metadata object or null if error occurs
|
|
138
|
-
* @example
|
|
139
|
-
* ```typescript
|
|
140
|
-
* const metadata = await getItemMetadata('my-item-id');
|
|
141
|
-
* // Returns: { data: { id: "...", attributes: {...} }, ... }
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
export declare const getItemMetadata: (searchPath: string, url?: string, cb?: (metadata: {
|
|
145
|
-
[key: string]: unknown;
|
|
146
|
-
}) => void) => Promise<TiledSearchMetadataResult | null>;
|
|
147
|
-
/**
|
|
148
|
-
* Retrieves Bluesky plan metadata for a specific item from a Tiled server
|
|
149
|
-
* @param searchPath - The path to the Bluesky plan item
|
|
150
|
-
* @param url - Optional custom Tiled server URL
|
|
151
|
-
* @param cb - Optional callback function that receives the structured metadata
|
|
152
|
-
* @returns Promise that resolves to Bluesky plan metadata or null if error occurs
|
|
153
|
-
* @example
|
|
154
|
-
* ```typescript
|
|
155
|
-
* const planMetadata = await getBlueskyPlanMetadata('aba7753b-ec5f-464d-abc2-809b620bb66b');
|
|
156
|
-
* if (planMetadata?.data.attributes.metadata.start) {
|
|
157
|
-
* console.log('Plan name:', planMetadata.data.attributes.metadata.start.plan_name);
|
|
158
|
-
* }
|
|
159
|
-
* ```
|
|
160
|
-
*/
|
|
161
|
-
export declare const getBlueskyPlanMetadata: (searchPath: string, url?: string, cb?: (metadata: TiledBlueskyPlanMetadataResponse) => void) => Promise<TiledBlueskyPlanMetadataResponse | null>;
|
|
162
|
-
/**
|
|
163
|
-
* Retrieves table data from a Tiled server for a specific partition
|
|
164
|
-
* @param searchPath - The path to the table data
|
|
165
|
-
* @param partition - The partition number to retrieve (0-based index)
|
|
166
|
-
* @param url - Optional custom Tiled server URL
|
|
167
|
-
* @param cb - Optional callback function that receives the parsed data
|
|
168
|
-
* @returns Promise that resolves to an array of parsed table rows or null if error occurs
|
|
169
|
-
* @example
|
|
170
|
-
* ```typescript
|
|
171
|
-
* const tableData = await getTableDataAsSequence('my-table', 0);
|
|
172
|
-
* // Returns: [{ A: 0.5699, B: 1.1398, C: 1.7098 }, ...]
|
|
173
|
-
* ```
|
|
174
|
-
*/
|
|
175
|
-
export declare const getTableDataAsSequence: (searchPath: string, partition: number, url?: string, cb?: (parsedData: TiledTableRow[]) => void) => Promise<any[] | null>;
|
|
176
|
-
/**
|
|
177
|
-
* Retrieves table data from a Tiled server for a specific partition in JSON format
|
|
178
|
-
* @param searchPath - The path to the table data
|
|
179
|
-
* @param partition - The partition number to retrieve (0-based index)
|
|
180
|
-
* @param url - Optional custom Tiled server URL
|
|
181
|
-
* @param cb - Optional callback function that receives the parsed data
|
|
182
|
-
* @returns Promise that resolves to an array of parsed table rows or null if error occurs
|
|
183
|
-
* @example
|
|
184
|
-
* ```typescript
|
|
185
|
-
* const tableData = await getTableDataAsJson('my-table', 0);
|
|
186
|
-
* // Returns: { A: [0.5699, ...], B: [1.1398, ...], C: [1.7098, ...] }
|
|
187
|
-
* ```
|
|
188
|
-
*/
|
|
189
|
-
export declare const getTableDataAsJson: (searchPath: string, partition: number, url?: string, cb?: (parsedData: TiledTableJSONResponse) => void) => Promise<TiledTableJSONResponse>;
|
|
190
|
-
/**
|
|
191
|
-
* Retrieves structured array data from a Tiled server for a specific block
|
|
192
|
-
* @param searchPath - The path to the structured array data
|
|
193
|
-
* @param block - The block number to retrieve (0-based index)
|
|
194
|
-
* @param url - Optional custom Tiled server URL
|
|
195
|
-
* @param cb - Optional callback function that receives the parsed data
|
|
196
|
-
* @returns Promise that resolves to an array of structured data rows or null if error occurs
|
|
197
|
-
* @example
|
|
198
|
-
* ```typescript
|
|
199
|
-
* const structuredData = await getStructuredArrayData('structured_data/pets', 0);
|
|
200
|
-
* // Returns: [{ name: "Fluffy", age: 3, weight: 4.2 }, ...]
|
|
201
|
-
* ```
|
|
202
|
-
*/
|
|
203
|
-
export declare const getStructuredArrayData: (searchPath: string, block: number, url?: string, cb?: (parsedData: TiledStructuredArrayData) => void) => Promise<any>;
|
|
204
|
-
/**
|
|
205
|
-
* Generates a URL path for retrieving a full PNG image from a Tiled array
|
|
206
|
-
* @param searchPath - The path to the array data
|
|
207
|
-
* @param stepY - Step size for Y-axis sampling (default: 1)
|
|
208
|
-
* @param stepX - Step size for X-axis sampling (default: 1)
|
|
209
|
-
* @param stack - Optional array of stack indices for multi-dimensional arrays
|
|
210
|
-
* @param url - Optional custom Tiled server URL
|
|
211
|
-
* @returns Complete URL string for the PNG image
|
|
212
|
-
* @example
|
|
213
|
-
* ```typescript
|
|
214
|
-
* const imageUrl = generateFullImagePngPath('my-image', 1, 1, [0, 5]);
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
export declare const generateFullImagePngPath: (searchPath?: string, stepY?: number, stepX?: number, stack?: number[], url?: string) => string;
|
|
218
|
-
/**
|
|
219
|
-
* Resets all global state variables to their default values
|
|
220
|
-
* Useful for testing to ensure clean state between tests
|
|
221
|
-
* @example
|
|
222
|
-
* ```typescript
|
|
223
|
-
* resetGlobalState(); // Clears all global variables
|
|
224
|
-
* ```
|
|
225
|
-
*/
|
|
226
|
-
export declare const resetGlobalState: () => void;
|
|
227
|
-
/**
|
|
228
|
-
* Retrieves XArray data from a Tiled server for a specific stack
|
|
229
|
-
* @param searchPath - The path to the XArray data
|
|
230
|
-
* @param stack - Optional array of stack indices for multi-dimensional arrays
|
|
231
|
-
* @param url - Optional custom Tiled server URL
|
|
232
|
-
* @param cb - Optional callback function that receives the parsed data
|
|
233
|
-
* @returns Promise that resolves to parsed XArray data or null if error occurs
|
|
234
|
-
* @example
|
|
235
|
-
* ```typescript
|
|
236
|
-
* const xarrayData = await getXArrayData('xarray_dataset/time', [0, 5]);
|
|
237
|
-
* ```
|
|
238
|
-
*/
|
|
239
|
-
export declare const getXArrayData: (searchPath: string, stack: number[], url?: string, cb?: (parsedData: number[][]) => void) => Promise<any>;
|
|
240
|
-
/**
|
|
241
|
-
* Fetches server information from a Tiled server
|
|
242
|
-
* @param url - Optional custom Tiled server URL
|
|
243
|
-
* @returns Promise that resolves to server information or null if error occurs
|
|
244
|
-
* @example
|
|
245
|
-
* ```typescript
|
|
246
|
-
* const serverInfo = await getServerInfo();
|
|
247
|
-
* ```
|
|
248
|
-
*/
|
|
249
|
-
export declare const getServerInfo: (url?: string) => Promise<TiledInfoResponse | null>;
|
|
250
|
-
/**
|
|
251
|
-
* Logs in a user with username and password authentication
|
|
252
|
-
* @param username - The username for authentication
|
|
253
|
-
* @param password - The password for authentication
|
|
254
|
-
* @param url - Optional custom Tiled server URL
|
|
255
|
-
* @param provider - Optional specific authentication provider to use
|
|
256
|
-
* @returns Promise that resolves to authentication tokens or null if login fails
|
|
257
|
-
* @example
|
|
258
|
-
* ```typescript
|
|
259
|
-
* const authResult = await loginUser('myusername', 'mypassword');
|
|
260
|
-
* if (authResult) {
|
|
261
|
-
* console.log('Login successful:', authResult.access_token);
|
|
262
|
-
* }
|
|
263
|
-
* ```
|
|
264
|
-
*/
|
|
265
|
-
export declare const loginUserWithNamePassword: (username: string, password: string, url?: string, provider?: TiledAuthProvider) => Promise<{
|
|
266
|
-
access_token: string;
|
|
267
|
-
refresh_token: string;
|
|
268
|
-
} | null>;
|
|
269
|
-
/**
|
|
270
|
-
* Fetches an image with authentication and returns a blob URL
|
|
271
|
-
* @param imagePath - The complete URL path to the image
|
|
272
|
-
* @returns Promise that resolves to a blob URL string
|
|
273
|
-
*/
|
|
274
|
-
export declare const getAuthenticatedImage: (imagePath: string) => Promise<string>;
|
|
275
|
-
/**
|
|
276
|
-
* Comprehensive search function for Tiled API with full filter and option support
|
|
277
|
-
* @param config - Complete search configuration object
|
|
278
|
-
* @returns Promise<TiledSearchResult[]>
|
|
279
|
-
*/
|
|
280
|
-
export declare const getSearchResults: (config: TiledSearchConfig, cb?: (res: TiledSearchResult) => void) => Promise<TiledSearchResult>;
|
|
281
|
-
/**
|
|
282
|
-
* Search by specs with include/exclude arrays
|
|
283
|
-
* @param baseUrl - Tiled server base URL
|
|
284
|
-
* @param include - Array of specs to include
|
|
285
|
-
* @param exclude - Array of specs to exclude (defaults to empty array)
|
|
286
|
-
* @param path - Optional path within the Tiled server
|
|
287
|
-
* @param options - Additional search options
|
|
288
|
-
* @param apiKey - Optional API key
|
|
289
|
-
* @param initialPath - Optional initial path that takes priority over globalInitialPath
|
|
290
|
-
* @returns Promise<TiledSearchResult[]>
|
|
291
|
-
*/
|
|
292
|
-
export declare const searchBySpecs: (baseUrl: string, include: string[], exclude?: string[], path?: string, options?: TiledSearchOptions, apiKey?: string, initialPath?: string) => Promise<TiledSearchResult>;
|
|
293
|
-
/**
|
|
294
|
-
* Search by fulltext
|
|
295
|
-
* @param baseUrl - Tiled server base URL
|
|
296
|
-
* @param text - Text to search for
|
|
297
|
-
* @param path - Optional path within the Tiled server
|
|
298
|
-
* @param options - Additional search options
|
|
299
|
-
* @param apiKey - Optional API key
|
|
300
|
-
* @param initialPath - Optional initial path that takes priority over globalInitialPath
|
|
301
|
-
* @returns Promise<TiledSearchResult[]>
|
|
302
|
-
*/
|
|
303
|
-
export declare const searchByFulltext: (baseUrl: string, text: string, path?: string, options?: TiledSearchOptions, apiKey?: string, initialPath?: string) => Promise<TiledSearchResult>;
|
|
304
|
-
/**
|
|
305
|
-
* Search by metadata key equality
|
|
306
|
-
* @param baseUrl - Tiled server base URL
|
|
307
|
-
* @param key - Metadata key to search
|
|
308
|
-
* @param value - Value to match
|
|
309
|
-
* @param path - Optional path within the Tiled server
|
|
310
|
-
* @param options - Additional search options
|
|
311
|
-
* @param apiKey - Optional API key
|
|
312
|
-
* @param initialPath - Optional initial path that takes priority over globalInitialPath
|
|
313
|
-
* @returns Promise<TiledSearchResult[]>
|
|
314
|
-
*/
|
|
315
|
-
export declare const searchByMetadataEquals: (baseUrl: string, key: string, value: string, path?: string, options?: TiledSearchOptions, apiKey?: string, initialPath?: string) => Promise<TiledSearchResult>;
|
|
316
|
-
/**
|
|
317
|
-
* Search by metadata key comparison
|
|
318
|
-
* @param baseUrl - Tiled server base URL
|
|
319
|
-
* @param key - Metadata key to search
|
|
320
|
-
* @param operator - Comparison operator ('gt', 'gte', 'lt', 'lte')
|
|
321
|
-
* @param value - Value to compare against
|
|
322
|
-
* @param path - Optional path within the Tiled server
|
|
323
|
-
* @param options - Additional search options
|
|
324
|
-
* @param apiKey - Optional API key
|
|
325
|
-
* @param initialPath - Optional initial path that takes priority over globalInitialPath
|
|
326
|
-
* @returns Promise<TiledSearchResult[]>
|
|
327
|
-
*/
|
|
328
|
-
export declare const searchByMetadataComparison: (baseUrl: string, key: string, operator: "gt" | "gte" | "lt" | "lte", value: string, path?: string, options?: TiledSearchOptions, apiKey?: string, initialPath?: string) => Promise<TiledSearchResult>;
|
|
329
|
-
/**
|
|
330
|
-
* Search by regex pattern on metadata key
|
|
331
|
-
* @param baseUrl - Tiled server base URL
|
|
332
|
-
* @param key - Metadata key to search
|
|
333
|
-
* @param pattern - Regex pattern to match
|
|
334
|
-
* @param caseSensitive - Whether regex should be case sensitive (defaults to false)
|
|
335
|
-
* @param path - Optional path within the Tiled server
|
|
336
|
-
* @param options - Additional search options
|
|
337
|
-
* @param apiKey - Optional API key
|
|
338
|
-
* @param initialPath - Optional initial path that takes priority over globalInitialPath
|
|
339
|
-
* @returns Promise<TiledSearchResult[]>
|
|
340
|
-
*/
|
|
341
|
-
export declare const searchByRegex: (baseUrl: string, key: string, pattern: string, caseSensitive?: boolean, path?: string, options?: TiledSearchOptions, apiKey?: string, initialPath?: string) => Promise<TiledSearchResult>;
|
|
342
|
-
/**
|
|
343
|
-
* Search by structure family
|
|
344
|
-
* @param baseUrl - Tiled server base URL
|
|
345
|
-
* @param structureFamily - Structure family to filter by
|
|
346
|
-
* @param path - Optional path within the Tiled server
|
|
347
|
-
* @param options - Additional search options
|
|
348
|
-
* @param apiKey - Optional API key
|
|
349
|
-
* @param initialPath - Optional initial path that takes priority over globalInitialPath
|
|
350
|
-
* @returns Promise<TiledSearchResult[]>
|
|
351
|
-
*/
|
|
352
|
-
export declare const searchByStructureFamily: (baseUrl: string, structureFamily: "container" | "array" | "table" | "awkward" | "sparse", path?: string, options?: TiledSearchOptions, apiKey?: string, initialPath?: string) => Promise<TiledSearchResult>;
|
|
353
|
-
/**
|
|
354
|
-
* Searches for a specific item by ID with graceful error handling
|
|
355
|
-
* Unlike the normal getSearchResults, this function more gracefully handles failed search paths
|
|
356
|
-
* by returning null instead of throwing errors when the path is not found (404 status).
|
|
357
|
-
* @param config - Complete search configuration object including path, filters, and options
|
|
358
|
-
* @param cb - Optional callback function that receives the search results if found
|
|
359
|
-
* @returns Promise that resolves to TiledSearchResult if found, or null if not found or on error
|
|
360
|
-
* @example
|
|
361
|
-
* ```typescript
|
|
362
|
-
* const config = {
|
|
363
|
-
* baseUrl: 'https://my-tiled-server.com/api/v1',
|
|
364
|
-
* path: 'some-item-id',
|
|
365
|
-
* apiKey: 'my-api-key'
|
|
366
|
-
* };
|
|
367
|
-
* const result = await searchById(config);
|
|
368
|
-
* if (result) {
|
|
369
|
-
* console.log('Item found:', result.data);
|
|
370
|
-
* } else {
|
|
371
|
-
* console.log('Item not found');
|
|
372
|
-
* }
|
|
373
|
-
* ```
|
|
374
|
-
*/
|
|
375
|
-
export declare const searchById: (config: TiledSearchConfig, cb?: (res: TiledSearchResult) => void) => Promise<TiledSearchResult | null>;
|
|
376
|
-
export {};
|
|
377
|
-
//# sourceMappingURL=archived_apiClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"archived_apiClient.d.ts","sourceRoot":"","sources":["../../../src/components/Tiled/archived_apiClient.ts"],"names":[],"mappings":"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"}
|