@story-protocol/ipkit 0.4.0-beta.10 → 0.4.0-beta.11

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,2 +1,2 @@
1
- import e,{useMemo as t}from"react";import{useQuery as r}from"@tanstack/react-query";var o,n;!function(e){e.STAGING="https://staging-api.storyprotocol.net/api/v4",e.PRODUCTION="https://api.storyapis.com/api/v4"}(o||(o={})),function(e){e.AENEID_TESTNET="story-aeneid",e.STORY_MAINNET="story"}(n||(n={}));var i,s,a={name:"Wrapped IP",address:"0x1514000000000000000000000000000000000000",symbol:"WIP"},l={id:1315,name:"story-aeneid",apiVersion:"v3",displayName:"Story Aeneid Testnet",rpcUrl:"https://aeneid.storyrpc.io/",blockExplorerUrl:"https://aeneid.storyscan.io",protocolExplorerUrl:"https://aeneid.explorer.story.foundation",defaultCurrency:a},c={id:1514,name:"story",apiVersion:"v3",displayName:"Story Mainnet",rpcUrl:"https://mainnet.storyrpc.io",blockExplorerUrl:"https://storyscan.io",protocolExplorerUrl:"https://explorer.story.foundation",defaultCurrency:a},d=((i={})[l.name]=l,i[c.name]=c,i),u={1315:"story-aeneid",1514:"story"},p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)};function f(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}function h(e,t){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function b(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=b(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}"function"==typeof SuppressedError&&SuppressedError,function(e){e.NON_COMMERCIAL_SOCIAL_REMIXING="Non-Commercial Social Remixing",e.COMMERCIAL_USE="Commercial Use",e.COMMERCIAL_REMIX="Commercial Remix",e.CUSTOM="Custom",e.OPEN_USE="Open Use"}(s||(s={}));const y="-";function m(e){const t=function(e){const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]},n=function(e,t){if(!t)return e;return e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))]))}(Object.entries(e.classGroups),r);return n.forEach((([e,r])=>{w(r,o,e,t)})),o}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const r=e.split(y);return""===r[0]&&1!==r.length&&r.shift(),v(r,t)||function(e){if(g.test(e)){const t=g.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){const n=r[e]||[];return t&&o[e]?[...n,...o[e]]:n}}}function v(e,t){if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?v(e.slice(1),o):void 0;if(n)return n;if(0===t.validators.length)return;const i=e.join(y);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const g=/^\[(.+)\]$/;function w(e,t,r,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void w(e(o),t,r,o):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,n])=>{w(n,x(t,e),r,o)}))}else{(""===e?t:x(t,e)).classGroupId=r}}))}function x(e,t){let r=e;return t.split(y).forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function C(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function n(n,i){r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(n(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):n(e,t)}}}const I="!";function k(e){const t=e.separator,r=1===t.length,o=t[0],n=t.length;return function(e){const i=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===a){if(d===o&&(r||e.slice(c,c+n)===t)){i.push(e.slice(l,c)),l=c+n;continue}if("/"===d){s=c;continue}}"["===d?a++:"]"===d&&a--}const c=0===i.length?e:e.substring(l),d=c.startsWith(I);return{modifiers:i,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}}}const q=/\s+/;function E(){let e,t,r=0,o="";for(;r<arguments.length;)(e=arguments[r++])&&(t=K(e))&&(o&&(o+=" "),o+=t);return o}function K(e){if("string"==typeof e)return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=K(e[o]))&&(r&&(r+=" "),r+=t);return r}function O(e,...t){let r,o,n,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return r=function(e){return{cache:C(e.cacheSize),splitModifiers:k(e),...m(e)}}(l),o=r.cache.get,n=r.cache.set,i=s,s(a)};function s(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,i=new Set;return e.trim().split(q).map((e=>{const{modifiers:t,hasImportantModifier:n,baseClassName:i,maybePostfixModifierPosition:s}=r(e);let a=o(s?i.substring(0,s):i),l=Boolean(s);if(!a){if(!s)return{isTailwindClass:!1,originalClassName:e};if(a=o(i),!a)return{isTailwindClass:!1,originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:n?c+I:c,classGroupId:a,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:r,hasPostfixModifier:o}=e,s=t+r;return!i.has(s)&&(i.add(s),n(r,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,r);return n(e,i),i}return function(){return i(E.apply(null,arguments))}}function A(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const R=/^\[(?:([a-z-]+):)?(.+)\]$/i,j=/^\d+\/\d+$/,T=new Set(["px","full","screen"]),S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function U(e){return $(e)||T.has(e)||j.test(e)}function G(e){return Q(e,"length",ee)}function $(e){return Boolean(e)&&!Number.isNaN(Number(e))}function D(e){return Q(e,"number",$)}function L(e){return Boolean(e)&&Number.isInteger(Number(e))}function _(e){return e.endsWith("%")&&$(e.slice(0,-1))}function F(e){return R.test(e)}function H(e){return S.test(e)}const W=new Set(["length","size","percentage"]);function B(e){return Q(e,W,te)}function X(e){return Q(e,"position",te)}const J=new Set(["image","url"]);function V(e){return Q(e,J,oe)}function Y(e){return Q(e,"",re)}function Z(){return!0}function Q(e,t,r){const o=R.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):r(o[2]))}function ee(e){return z.test(e)&&!N.test(e)}function te(){return!1}function re(e){return P.test(e)}function oe(e){return M.test(e)}function ne(){const e=A("colors"),t=A("spacing"),r=A("blur"),o=A("brightness"),n=A("borderColor"),i=A("borderRadius"),s=A("borderSpacing"),a=A("borderWidth"),l=A("contrast"),c=A("grayscale"),d=A("hueRotate"),u=A("invert"),p=A("gap"),f=A("gradientColorStops"),h=A("gradientColorStopPositions"),b=A("inset"),y=A("margin"),m=A("opacity"),v=A("padding"),g=A("saturate"),w=A("scale"),x=A("sepia"),C=A("skew"),I=A("space"),k=A("translate"),q=()=>["auto",F,t],E=()=>[F,t],K=()=>["",U,G],O=()=>["auto",$,F],R=()=>["","0",F],j=()=>[$,D],T=()=>[$,F];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[U,G],blur:["none","",H,F],brightness:j(),borderColor:[e],borderRadius:["none","","full",H,F],borderSpacing:E(),borderWidth:K(),contrast:j(),grayscale:R(),hueRotate:T(),invert:R(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[_,G],inset:q(),margin:q(),opacity:j(),padding:E(),saturate:j(),scale:j(),sepia:R(),skew:T(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",F]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",L,F]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",L,F]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",L,F]},F]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[L,F]},F]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,t]}],"min-w":[{"min-w":[F,t,"min","max","fit"]}],"max-w":[{"max-w":[F,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[F,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",D]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",F]}],"line-clamp":[{"line-clamp":["none",$,D]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,G]}],"underline-offset":[{"underline-offset":["auto",U,F]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",X]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",B]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[U,F]}],"outline-w":[{outline:[U,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[U,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Y]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",H,F]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[g]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[L,F]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,G,D]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function ie(e,t,r){void 0!==r&&(e[t]=r)}function se(e,t){if(t)for(const r in t)ie(e,r,t[r])}function ae(e,t){if(t)for(const r in t){const o=t[r];void 0!==o&&(e[r]=(e[r]||[]).concat(o))}}var le=function(e,...t){return"function"==typeof e?O(ne,e,...t):O((()=>function(e,{cacheSize:t,prefix:r,separator:o,extend:n={},override:i={}}){ie(e,"cacheSize",t),ie(e,"prefix",r),ie(e,"separator",o);for(const t in i)se(e[t],i[t]);for(const t in n)ae(e[t],n[t]);return e}(ne(),e)),...t)}({prefix:"sk-"});function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return le(function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=b(e))&&(o&&(o+=" "),o+=t);return o}(e))}function de(e,t){if(void 0===t&&(t=4),!e)return"";if(e.length<2*t+2)return e;var r=e.substring(0,t+2),o=e.substring(e.length-t);return"".concat(r,"...").concat(o)}function ue(e){return e.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(function(e,t){return 0==+e?"":0===t?e.toLowerCase():e.toUpperCase()}))}function pe(e){var t=e.commercialUse,r=e.derivativesAllowed,o=e.derivativesAttribution,n=e.commercialRevShare;return!t&&r?o?s.NON_COMMERCIAL_SOCIAL_REMIXING:s.OPEN_USE:!t||r||o||0!==n?t&&r&&o&&n&&n>0?s.COMMERCIAL_REMIX:s.CUSTOM:s.COMMERCIAL_USE}function fe(e){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,fetch(e).then((function(e){return e.json()}))];case 1:return[2,he(t.sent().image)]}}))}))}function he(e){if(!e.startsWith("ipfs://"))return e;var t=e.slice(7);return"https://ipfs.io/ipfs/".concat(t)}function be(e){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,fetch(e).then((function(e){return e.json()}))];case 1:return[2,t.sent()]}}))}))}function ye(e){return f(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return""===e?[2]:(t=e,e.startsWith("https://github.com/")&&(t=e.replace("https://github.com/","https://raw.githubusercontent.com/").replace("/blob/","/")),[4,be(he(t))]);case 1:return[2,r.sent()]}}))}))}function me(e){return e.reduce((function(e,t){return e[ue(t.trait_type)]="true"===t.value||"false"!==t.value&&t.value,e}),{})}const ve=/\{[^{}]+\}/g;function ge(e){let{baseUrl:t="",Request:r=globalThis.Request,fetch:o=globalThis.fetch,querySerializer:n,bodySerializer:i,headers:s,requestInitExt:a,...l}={...e};a="object"==typeof process&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici?a:void 0,t=Ee(t);const c=[];async function d(e,d){const{baseUrl:u,fetch:p=o,Request:f=r,headers:h,params:b={},parseAs:y="json",querySerializer:m,bodySerializer:v=i??ke,body:g,...w}=d||{};u&&(t=Ee(u));let x="function"==typeof n?n:Ie(n);m&&(x="function"==typeof m?m:Ie({..."object"==typeof n?n:{},...m}));const C=void 0===g?void 0:v(g),I=void 0===C||C instanceof FormData?{}:{"Content-Type":"application/json"},k={redirect:"follow",...l,...w,body:C,headers:qe(I,s,h,b.header)};let q,E,K,O=new r(function(e,t){let r=`${t.baseUrl}${e}`;t.params?.path&&(r=function(e,t){let r=e;for(const o of e.match(ve)??[]){let e=o.substring(1,o.length-1),n=!1,i="simple";if(e.endsWith("*")&&(n=!0,e=e.substring(0,e.length-1)),e.startsWith(".")?(i="label",e=e.substring(1)):e.startsWith(";")&&(i="matrix",e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;const s=t[e];Array.isArray(s)?r=r.replace(o,Ce(e,s,{style:i,explode:n})):r="object"!=typeof s?"matrix"!==i?r.replace(o,"label"===i?`.${encodeURIComponent(s)}`:encodeURIComponent(s)):r.replace(o,`;${we(e,s)}`):r.replace(o,xe(e,s,{style:i,explode:n}))}return r}(r,t.params.path));let o=t.querySerializer(t.params.query??{});o.startsWith("?")&&(o=o.substring(1));o&&(r+=`?${o}`);return r}(e,{baseUrl:t,params:b,querySerializer:x}),k);for(const e in w)e in O||(O[e]=w[e]);if(c.length){q=Math.random().toString(36).slice(2,11),E=Object.freeze({baseUrl:t,fetch:p,parseAs:y,querySerializer:x,bodySerializer:v});for(const t of c)if(t&&"object"==typeof t&&"function"==typeof t.onRequest){const o=await t.onRequest({request:O,schemaPath:e,params:b,options:E,id:q});if(o){if(!(o instanceof r)){if(o instanceof Response){K=o;break}throw new Error("onRequest: must return new Request() or Response() when modifying the request")}O=o}}}if(!K){try{K=await p(O,a)}catch(A){let t=A;if(c.length)for(let r=c.length-1;r>=0;r--){const o=c[r];if(o&&"object"==typeof o&&"function"==typeof o.onError){const r=await o.onError({request:O,error:t,schemaPath:e,params:b,options:E,id:q});if(r){if(r instanceof Response){t=void 0,K=r;break}if(r instanceof Error){t=r;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(t)throw t}if(c.length)for(let t=c.length-1;t>=0;t--){const r=c[t];if(r&&"object"==typeof r&&"function"==typeof r.onResponse){const t=await r.onResponse({request:O,response:K,schemaPath:e,params:b,options:E,id:q});if(t){if(!(t instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");K=t}}}}if(204===K.status||"0"===K.headers.get("Content-Length"))return K.ok?{data:void 0,response:K}:{error:void 0,response:K};if(K.ok)return"stream"===y?{data:K.body,response:K}:{data:await K[y](),response:K};let A=await K.text();try{A=JSON.parse(A)}catch{}return{error:A,response:K}}return{request:(e,t,r)=>d(t,{...r,method:e.toUpperCase()}),GET:(e,t)=>d(e,{...t,method:"GET"}),PUT:(e,t)=>d(e,{...t,method:"PUT"}),POST:(e,t)=>d(e,{...t,method:"POST"}),DELETE:(e,t)=>d(e,{...t,method:"DELETE"}),OPTIONS:(e,t)=>d(e,{...t,method:"OPTIONS"}),HEAD:(e,t)=>d(e,{...t,method:"HEAD"}),PATCH:(e,t)=>d(e,{...t,method:"PATCH"}),TRACE:(e,t)=>d(e,{...t,method:"TRACE"}),use(...e){for(const t of e)if(t){if("object"!=typeof t||!("onRequest"in t||"onResponse"in t||"onError"in t))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");c.push(t)}},eject(...e){for(const t of e){const e=c.indexOf(t);-1!==e&&c.splice(e,1)}}}}function we(e,t,r){if(null==t)return"";if("object"==typeof t)throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${!0===r?.allowReserved?t:encodeURIComponent(t)}`}function xe(e,t,r){if(!t||"object"!=typeof t)return"";const o=[],n={simple:",",label:".",matrix:";"}[r.style]||"&";if("deepObject"!==r.style&&!1===r.explode){for(const e in t)o.push(e,!0===r.allowReserved?t[e]:encodeURIComponent(t[e]));const n=o.join(",");switch(r.style){case"form":return`${e}=${n}`;case"label":return`.${n}`;case"matrix":return`;${e}=${n}`;default:return n}}for(const n in t){const i="deepObject"===r.style?`${e}[${n}]`:n;o.push(we(i,t[n],r))}const i=o.join(n);return"label"===r.style||"matrix"===r.style?`${n}${i}`:i}function Ce(e,t,r){if(!Array.isArray(t))return"";if(!1===r.explode){const o={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",n=(!0===r.allowReserved?t:t.map((e=>encodeURIComponent(e)))).join(o);switch(r.style){case"simple":return n;case"label":return`.${n}`;case"matrix":return`;${e}=${n}`;default:return`${e}=${n}`}}const o={simple:",",label:".",matrix:";"}[r.style]||"&",n=[];for(const o of t)"simple"===r.style||"label"===r.style?n.push(!0===r.allowReserved?o:encodeURIComponent(o)):n.push(we(e,o,r));return"label"===r.style||"matrix"===r.style?`${o}${n.join(o)}`:n.join(o)}function Ie(e){return function(t){const r=[];if(t&&"object"==typeof t)for(const o in t){const n=t[o];if(null!=n)if(Array.isArray(n)){if(0===n.length)continue;r.push(Ce(o,n,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}))}else"object"!=typeof n?r.push(we(o,n,e)):r.push(xe(o,n,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}))}return r.join("&")}}function ke(e){return e instanceof FormData?e:JSON.stringify(e)}function qe(...e){const t=new Headers;for(const r of e){if(!r||"object"!=typeof r)continue;const e=r instanceof Headers?r.entries():Object.entries(r);for(const[r,o]of e)if(null===o)t.delete(r);else if(Array.isArray(o))for(const e of o)t.append(r,e);else void 0!==o&&t.set(r,o)}return t}function Ee(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var Ke={onRequest:function(e){return f(this,arguments,void 0,(function(e){var t=e.request;return h(this,(function(e){return t.headers.set("Content-Type","application/json"),[2,t]}))}))}},Oe=function(e){var t=ge({baseUrl:e});return t.use(Ke),t},Ae=Oe(o.STAGING),Re=Oe(o.PRODUCTION);function je(e){var t=e.apiClient,r=e.path,o=e.apiKey,n=e.body,i=e.additionalHeaders,s={params:{header:p({"X-Api-Key":o},i)}},a={body:n||{}};return t.POST(r,p(p({},s),a))}function Te(e){var t=e.collectionAddresses,r=e.apiClient,o=e.options,n=e.apiKey;return je({apiClient:r,path:"/collections",body:p(p({orderBy:"updatedAt",orderDirection:"desc"},o),{where:p(p({},null==o?void 0:o.where),t?{collectionAddresses:t}:{})}),apiKey:n})}function Se(e){return function(e){var t=e.apiClient,r=e.path,o=e.apiKey,n=e.pathParams,i=e.additionalHeaders,s={params:{path:n,header:p({"X-Api-Key":o},i)}};return t.GET(r,s)}({apiClient:e.apiClient,path:"/disputes/{disputeId}",pathParams:{disputeId:e.disputeId},apiKey:e.apiKey})}function ze(e){var t=e.apiClient,r=e.initiator,o=e.targetIpId,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/disputes",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},n),{where:p(p(p({},null==n?void 0:n.where),r?{initiator:r}:{}),o?{targetIpId:o}:{})}),apiKey:i})}function Ne(e){var t=e.apiClient,r=e.ipId,o=e.parentIpId,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/assets/edges",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},n),{where:p(p(p({},null==n?void 0:n.where),r?{childIpId:r}:{}),o?{parentIpId:o}:{})}),apiKey:i})}function Pe(e){var t=e.apiClient,r=e.ownerAddress,o=e.tokenContract,n=e.includeLicenses,i=e.moderated,s=e.ipIds,a=e.options,l=e.apiKey;return je({apiClient:t,path:"/assets",body:p(p({orderBy:"blockNumber",orderDirection:"desc",includeLicenses:null!=n&&n,moderated:null!=i&&i},a),{where:p(p(p(p({},null==a?void 0:a.where),s?{ipIds:s}:{}),r?{ownerAddress:r}:{}),o?{tokenContract:o}:{})}),apiKey:l})}function Me(e){var t=e.apiClient,r=e.ownerAddress,o=e.licensorIpId,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/licenses/tokens",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},n),{where:p(p(p({},null==n?void 0:n.where),(null==r?void 0:r.length)?{ownerAddress:r}:{}),(null==o?void 0:o.length)?{licensorIpId:o}:{})}),apiKey:i})}function Ue(e){var t=e.apiClient,r=e.query,o=e.mediaType,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/search",body:p(p({query:r},o?{mediaType:o}:{}),n),apiKey:i})}function Ge(e){var t=e.apiClient,r=e.txHashes,o=e.ipIds,n=e.initiators,i=e.eventTypes,s=e.options,a=e.apiKey;return je({apiClient:t,path:"/transactions",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},s),{where:p(p(p(p(p({},null==s?void 0:s.where),r?{txHashes:r}:{}),o?{ipIds:o}:{}),n?{initiators:n}:{}),i?{eventTypes:i}:{})}),apiKey:a})}var $e=e.createContext(null),De=function(r){var i=r.apiKey,s=r.appId,a=r.children,l=r.isTestnet,c=r.mode,u=r.theme,p=void 0===u?"default":u,f=t((function(){return d[l?n.AENEID_TESTNET:n.STORY_MAINNET]}),[l]),h=t((function(){return l?o.STAGING:o.PRODUCTION}),[l]),b=t((function(){return Oe(h)}),[h]);return e.createElement($e.Provider,{value:{apiBaseUrl:h,apiClient:b,apiKey:i,appId:s,chain:f,mode:c,theme:p,themeClass:"".concat(p).concat(c?"-".concat(c):"")}},e.createElement("div",{className:ce(p)},a))},Le=function(){var t=e.useContext($e);if(!t)throw new Error("useIpKit must be used within an IpKitProvider");return t};function _e(e){var t=this,o=e.collectionAddress,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getCollection",o],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(i){switch(i.label){case 0:return[4,Te({collectionAddresses:[o],apiKey:s,apiClient:a})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[0])||null]}}))}))},enabled:!!o.length},n))}function Fe(e){var t=this,o=void 0===e?{}:e,n=o.collectionAddresses,i=o.options,s=o.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getCollections",n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Te({collectionAddresses:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function He(e){var t=this,o=e.disputeId,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getDispute",o],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(n){switch(n.label){case 0:return[4,Se({disputeId:o,apiKey:s,apiClient:a})];case 1:if(e=n.sent(),t=e.data,r=e.error)throw r;return[2,(null==t?void 0:t.data)||null]}}))}))},enabled:!!o.length},n))}function We(e){var t=this,o=void 0===e?{}:e,n=o.initiator,i=o.targetIpId,s=o.options,a=o.queryOptions,l=Le(),c=l.apiKey,d=l.apiClient;return r(p({queryKey:["getDisputes",s,n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,ze({initiator:n,targetIpId:i,options:s,apiKey:c,apiClient:d})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},a))}function Be(e){var t=this,o=e.ipId,n=e.includeLicenses,i=e.queryOptions,s=Le(),a=s.apiKey,l=s.apiClient;return r(p({queryKey:["getIpAsset",o,n],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,i;return h(this,(function(s){switch(s.label){case 0:return[4,Pe({ipIds:[o],includeLicenses:n,apiKey:a,apiClient:l})];case 1:if(e=s.sent(),t=e.data,r=e.error)throw r;return[2,(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i[0])||null]}}))}))},enabled:!!o.length},i))}function Xe(e){var t=this,o=void 0===e?{}:e,n=o.ipId,i=o.options,s=o.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getIpAssetEdges",void 0,n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ne({parentIpId:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function Je(e){var t=this,o=void 0===e?{}:e,n=o.ipId,i=o.parentIpId,s=o.options,a=o.queryOptions,l=Le(),c=l.apiKey,d=l.apiClient;return r(p({queryKey:["getIpAssetEdges",n,i,s],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ne({ipId:n,parentIpId:i,options:s,apiKey:c,apiClient:d})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},a))}function Ve(e){var t=this,o=e.ipId,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getIpAsset",o,!0],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(i){switch(i.label){case 0:return[4,Pe({ipIds:[o],includeLicenses:!0,apiKey:s,apiClient:a})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[0].licenses)||null]}}))}))},enabled:!!o.length},n))}function Ye(e){var t=this,o=void 0===e?{}:e,n=o.ipId,i=o.options,s=o.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getIpAssetEdges",n,void 0,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ne({ipId:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function Ze(e){var t=this,o=void 0===e?{}:e,n=o.ipIds,i=o.tokenContract,s=o.includeLicenses,a=o.moderated,l=o.options,c=o.queryOptions,d=Le(),u=d.apiKey,b=d.apiClient;return r(p({queryKey:["getIpAssets",n,i,s,a,l],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Pe({ipIds:n,tokenContract:i,includeLicenses:s,moderated:a,options:l,apiKey:u,apiClient:b})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},c))}function Qe(e){var t=this,o=void 0===e?{}:e,n=o.ownerAddress,i=o.includeLicenses,s=o.moderated,a=o.options,l=o.queryOptions,c=Le(),d=c.apiKey,u=c.apiClient;return r(p({queryKey:["getIpAssets",n,i,s,a],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Pe({ownerAddress:n,includeLicenses:i,moderated:s,options:a,apiKey:d,apiClient:u})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},l))}function et(e){var t=this,o=e.ownerAddress,n=e.licensorIpId,i=e.options,s=e.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getLicenseTokens",o,n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(s){switch(s.label){case 0:return[4,Me({ownerAddress:o,licensorIpId:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=s.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))},enabled:!!o.length},s))}function tt(e){var t=this,o=e.query,n=e.mediaType,i=e.queryOptions,s=Le(),a=s.apiKey,l=s.apiClient;return r(p({queryKey:["getSearch",o,n],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(i){switch(i.label){case 0:return[4,Ue({query:o,mediaType:n,apiKey:a,apiClient:l})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))},enabled:!!o.length},i))}function rt(e){var t=this,o=e.txHash,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getTransactions",o],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(i){switch(i.label){case 0:return[4,Ge({txHashes:[o],apiKey:s,apiClient:a})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[0])||null]}}))}))},enabled:!!o.length},n))}function ot(e){var t=this,o=void 0===e?{}:e,n=o.txHashes,i=o.ipIds,s=o.initiators,a=o.eventTypes,l=o.options,c=o.queryOptions,d=Le(),u=d.apiKey,b=d.apiClient;return r(p({queryKey:["getTransactions",n,i,s,a,l],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ge({txHashes:n,ipIds:i,initiators:s,eventTypes:a,options:l,apiKey:u,apiClient:b})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},c))}export{o as API_URL,u as CHAINID_TO_CHAINNAME,d as CHAINS,n as IPKIT_SUPPORTED_CHAIN,De as IpKitProvider,s as PIL_FLAVOR,l as STORY_AENEID,c as STORY_MAINNET,a as WRAPPED_IP,ue as camelize,ce as cn,he as convertIpfsUriToUrl,me as convertLicenseTermObject,Oe as createApiClient,ye as fetchLicenseOffChainData,Te as getCollections,Se as getDispute,ze as getDisputes,fe as getImageUrlFromIpfsUrl,Ne as getIpAssetEdges,Pe as getIpAssets,Me as getLicenseTokens,be as getMetadataFromIpfs,pe as getPilFlavorByLicenseTerms,Ue as getSearch,Ge as getTransactions,Re as prodClient,de as shortenAddress,Ae as stagingClient,_e as useCollection,Fe as useCollections,He as useDispute,We as useDisputes,Be as useIpAsset,Xe as useIpAssetChildren,Je as useIpAssetEdges,Ve as useIpAssetLicenses,Ye as useIpAssetParents,Ze as useIpAssets,Qe as useIpAssetsByOwner,Le as useIpKit,et as useLicenseTokens,tt as useSearch,rt as useTransaction,ot as useTransactions};
1
+ import e,{useMemo as t}from"react";import{useQuery as r}from"@tanstack/react-query";var o,n;!function(e){e.STAGING="https://staging-api.storyprotocol.net/api/v4",e.PRODUCTION="https://api.storyapis.com/api/v4"}(o||(o={})),function(e){e.AENEID_TESTNET="story-aeneid",e.STORY_MAINNET="story"}(n||(n={}));var i,s,a={name:"Wrapped IP",address:"0x1514000000000000000000000000000000000000",symbol:"WIP"},l={id:1315,name:"story-aeneid",apiVersion:"v3",displayName:"Story Aeneid Testnet",rpcUrl:"https://aeneid.storyrpc.io/",blockExplorerUrl:"https://aeneid.storyscan.io",protocolExplorerUrl:"https://aeneid.explorer.story.foundation",defaultCurrency:a},c={id:1514,name:"story",apiVersion:"v3",displayName:"Story Mainnet",rpcUrl:"https://mainnet.storyrpc.io",blockExplorerUrl:"https://storyscan.io",protocolExplorerUrl:"https://explorer.story.foundation",defaultCurrency:a},d=((i={})[l.name]=l,i[c.name]=c,i),u={1315:"story-aeneid",1514:"story"},p=function(){return p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},p.apply(this,arguments)};function f(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}function h(e,t){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function b(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=b(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}"function"==typeof SuppressedError&&SuppressedError,function(e){e.NON_COMMERCIAL_SOCIAL_REMIXING="Non-Commercial Social Remixing",e.COMMERCIAL_USE="Commercial Use",e.COMMERCIAL_REMIX="Commercial Remix",e.CUSTOM="Custom",e.OPEN_USE="Open Use"}(s||(s={}));const y="-";function m(e){const t=function(e){const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]},n=function(e,t){if(!t)return e;return e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))]))}(Object.entries(e.classGroups),r);return n.forEach((([e,r])=>{w(r,o,e,t)})),o}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const r=e.split(y);return""===r[0]&&1!==r.length&&r.shift(),v(r,t)||function(e){if(g.test(e)){const t=g.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){const n=r[e]||[];return t&&o[e]?[...n,...o[e]]:n}}}function v(e,t){if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?v(e.slice(1),o):void 0;if(n)return n;if(0===t.validators.length)return;const i=e.join(y);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const g=/^\[(.+)\]$/;function w(e,t,r,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void w(e(o),t,r,o):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,n])=>{w(n,x(t,e),r,o)}))}else{(""===e?t:x(t,e)).classGroupId=r}}))}function x(e,t){let r=e;return t.split(y).forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function C(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function n(n,i){r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(n(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):n(e,t)}}}const I="!";function k(e){const t=e.separator,r=1===t.length,o=t[0],n=t.length;return function(e){const i=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===a){if(d===o&&(r||e.slice(c,c+n)===t)){i.push(e.slice(l,c)),l=c+n;continue}if("/"===d){s=c;continue}}"["===d?a++:"]"===d&&a--}const c=0===i.length?e:e.substring(l),d=c.startsWith(I);return{modifiers:i,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}}}const q=/\s+/;function E(){let e,t,r=0,o="";for(;r<arguments.length;)(e=arguments[r++])&&(t=K(e))&&(o&&(o+=" "),o+=t);return o}function K(e){if("string"==typeof e)return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=K(e[o]))&&(r&&(r+=" "),r+=t);return r}function O(e,...t){let r,o,n,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return r=function(e){return{cache:C(e.cacheSize),splitModifiers:k(e),...m(e)}}(l),o=r.cache.get,n=r.cache.set,i=s,s(a)};function s(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,i=new Set;return e.trim().split(q).map((e=>{const{modifiers:t,hasImportantModifier:n,baseClassName:i,maybePostfixModifierPosition:s}=r(e);let a=o(s?i.substring(0,s):i),l=Boolean(s);if(!a){if(!s)return{isTailwindClass:!1,originalClassName:e};if(a=o(i),!a)return{isTailwindClass:!1,originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:n?c+I:c,classGroupId:a,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:r,hasPostfixModifier:o}=e,s=t+r;return!i.has(s)&&(i.add(s),n(r,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,r);return n(e,i),i}return function(){return i(E.apply(null,arguments))}}function A(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const R=/^\[(?:([a-z-]+):)?(.+)\]$/i,j=/^\d+\/\d+$/,T=new Set(["px","full","screen"]),S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function U(e){return $(e)||T.has(e)||j.test(e)}function G(e){return Q(e,"length",ee)}function $(e){return Boolean(e)&&!Number.isNaN(Number(e))}function D(e){return Q(e,"number",$)}function L(e){return Boolean(e)&&Number.isInteger(Number(e))}function _(e){return e.endsWith("%")&&$(e.slice(0,-1))}function F(e){return R.test(e)}function H(e){return S.test(e)}const W=new Set(["length","size","percentage"]);function B(e){return Q(e,W,te)}function X(e){return Q(e,"position",te)}const J=new Set(["image","url"]);function V(e){return Q(e,J,oe)}function Y(e){return Q(e,"",re)}function Z(){return!0}function Q(e,t,r){const o=R.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):r(o[2]))}function ee(e){return z.test(e)&&!N.test(e)}function te(){return!1}function re(e){return P.test(e)}function oe(e){return M.test(e)}function ne(){const e=A("colors"),t=A("spacing"),r=A("blur"),o=A("brightness"),n=A("borderColor"),i=A("borderRadius"),s=A("borderSpacing"),a=A("borderWidth"),l=A("contrast"),c=A("grayscale"),d=A("hueRotate"),u=A("invert"),p=A("gap"),f=A("gradientColorStops"),h=A("gradientColorStopPositions"),b=A("inset"),y=A("margin"),m=A("opacity"),v=A("padding"),g=A("saturate"),w=A("scale"),x=A("sepia"),C=A("skew"),I=A("space"),k=A("translate"),q=()=>["auto",F,t],E=()=>[F,t],K=()=>["",U,G],O=()=>["auto",$,F],R=()=>["","0",F],j=()=>[$,D],T=()=>[$,F];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[U,G],blur:["none","",H,F],brightness:j(),borderColor:[e],borderRadius:["none","","full",H,F],borderSpacing:E(),borderWidth:K(),contrast:j(),grayscale:R(),hueRotate:T(),invert:R(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[_,G],inset:q(),margin:q(),opacity:j(),padding:E(),saturate:j(),scale:j(),sepia:R(),skew:T(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",F]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",L,F]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",L,F]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",L,F]},F]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[L,F]},F]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,t]}],"min-w":[{"min-w":[F,t,"min","max","fit"]}],"max-w":[{"max-w":[F,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[F,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",D]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",F]}],"line-clamp":[{"line-clamp":["none",$,D]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,G]}],"underline-offset":[{"underline-offset":["auto",U,F]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",X]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",B]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[U,F]}],"outline-w":[{outline:[U,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[U,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Y]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",H,F]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[g]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[L,F]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,G,D]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function ie(e,t,r){void 0!==r&&(e[t]=r)}function se(e,t){if(t)for(const r in t)ie(e,r,t[r])}function ae(e,t){if(t)for(const r in t){const o=t[r];void 0!==o&&(e[r]=(e[r]||[]).concat(o))}}var le=function(e,...t){return"function"==typeof e?O(ne,e,...t):O((()=>function(e,{cacheSize:t,prefix:r,separator:o,extend:n={},override:i={}}){ie(e,"cacheSize",t),ie(e,"prefix",r),ie(e,"separator",o);for(const t in i)se(e[t],i[t]);for(const t in n)ae(e[t],n[t]);return e}(ne(),e)),...t)}({prefix:"sk-"});function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return le(function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=b(e))&&(o&&(o+=" "),o+=t);return o}(e))}function de(e,t){if(void 0===t&&(t=4),!e)return"";if(e.length<2*t+2)return e;var r=e.substring(0,t+2),o=e.substring(e.length-t);return"".concat(r,"...").concat(o)}function ue(e){return e.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(function(e,t){return 0==+e?"":0===t?e.toLowerCase():e.toUpperCase()}))}function pe(e){var t=e.commercialUse,r=e.derivativesAllowed,o=e.derivativesAttribution,n=e.commercialRevShare;return!t&&r?o?s.NON_COMMERCIAL_SOCIAL_REMIXING:s.OPEN_USE:!t||r||o||0!==n?t&&r&&o&&n&&n>0?s.COMMERCIAL_REMIX:s.CUSTOM:s.COMMERCIAL_USE}function fe(e){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,fetch(e).then((function(e){return e.json()}))];case 1:return[2,he(t.sent().image)]}}))}))}function he(e){if(!e.startsWith("ipfs://"))return e;var t=e.slice(7);return"https://ipfs.io/ipfs/".concat(t)}function be(e){return f(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,fetch(e).then((function(e){return e.json()}))];case 1:return[2,t.sent()]}}))}))}function ye(e){return f(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return""===e?[2]:(t=e,e.startsWith("https://github.com/")&&(t=e.replace("https://github.com/","https://raw.githubusercontent.com/").replace("/blob/","/")),[4,be(he(t))]);case 1:return[2,r.sent()]}}))}))}function me(e){return e.reduce((function(e,t){return e[ue(t.trait_type)]="true"===t.value||"false"!==t.value&&t.value,e}),{})}const ve=/\{[^{}]+\}/g;function ge(e){let{baseUrl:t="",Request:r=globalThis.Request,fetch:o=globalThis.fetch,querySerializer:n,bodySerializer:i,headers:s,requestInitExt:a,...l}={...e};a="object"==typeof process&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici?a:void 0,t=Ee(t);const c=[];async function d(e,d){const{baseUrl:u,fetch:p=o,Request:f=r,headers:h,params:b={},parseAs:y="json",querySerializer:m,bodySerializer:v=i??ke,body:g,...w}=d||{};u&&(t=Ee(u));let x="function"==typeof n?n:Ie(n);m&&(x="function"==typeof m?m:Ie({..."object"==typeof n?n:{},...m}));const C=void 0===g?void 0:v(g),I=void 0===C||C instanceof FormData?{}:{"Content-Type":"application/json"},k={redirect:"follow",...l,...w,body:C,headers:qe(I,s,h,b.header)};let q,E,K,O=new r(function(e,t){let r=`${t.baseUrl}${e}`;t.params?.path&&(r=function(e,t){let r=e;for(const o of e.match(ve)??[]){let e=o.substring(1,o.length-1),n=!1,i="simple";if(e.endsWith("*")&&(n=!0,e=e.substring(0,e.length-1)),e.startsWith(".")?(i="label",e=e.substring(1)):e.startsWith(";")&&(i="matrix",e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;const s=t[e];Array.isArray(s)?r=r.replace(o,Ce(e,s,{style:i,explode:n})):r="object"!=typeof s?"matrix"!==i?r.replace(o,"label"===i?`.${encodeURIComponent(s)}`:encodeURIComponent(s)):r.replace(o,`;${we(e,s)}`):r.replace(o,xe(e,s,{style:i,explode:n}))}return r}(r,t.params.path));let o=t.querySerializer(t.params.query??{});o.startsWith("?")&&(o=o.substring(1));o&&(r+=`?${o}`);return r}(e,{baseUrl:t,params:b,querySerializer:x}),k);for(const e in w)e in O||(O[e]=w[e]);if(c.length){q=Math.random().toString(36).slice(2,11),E=Object.freeze({baseUrl:t,fetch:p,parseAs:y,querySerializer:x,bodySerializer:v});for(const t of c)if(t&&"object"==typeof t&&"function"==typeof t.onRequest){const o=await t.onRequest({request:O,schemaPath:e,params:b,options:E,id:q});if(o){if(!(o instanceof r)){if(o instanceof Response){K=o;break}throw new Error("onRequest: must return new Request() or Response() when modifying the request")}O=o}}}if(!K){try{K=await p(O,a)}catch(A){let t=A;if(c.length)for(let r=c.length-1;r>=0;r--){const o=c[r];if(o&&"object"==typeof o&&"function"==typeof o.onError){const r=await o.onError({request:O,error:t,schemaPath:e,params:b,options:E,id:q});if(r){if(r instanceof Response){t=void 0,K=r;break}if(r instanceof Error){t=r;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(t)throw t}if(c.length)for(let t=c.length-1;t>=0;t--){const r=c[t];if(r&&"object"==typeof r&&"function"==typeof r.onResponse){const t=await r.onResponse({request:O,response:K,schemaPath:e,params:b,options:E,id:q});if(t){if(!(t instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");K=t}}}}if(204===K.status||"0"===K.headers.get("Content-Length"))return K.ok?{data:void 0,response:K}:{error:void 0,response:K};if(K.ok)return"stream"===y?{data:K.body,response:K}:{data:await K[y](),response:K};let A=await K.text();try{A=JSON.parse(A)}catch{}return{error:A,response:K}}return{request:(e,t,r)=>d(t,{...r,method:e.toUpperCase()}),GET:(e,t)=>d(e,{...t,method:"GET"}),PUT:(e,t)=>d(e,{...t,method:"PUT"}),POST:(e,t)=>d(e,{...t,method:"POST"}),DELETE:(e,t)=>d(e,{...t,method:"DELETE"}),OPTIONS:(e,t)=>d(e,{...t,method:"OPTIONS"}),HEAD:(e,t)=>d(e,{...t,method:"HEAD"}),PATCH:(e,t)=>d(e,{...t,method:"PATCH"}),TRACE:(e,t)=>d(e,{...t,method:"TRACE"}),use(...e){for(const t of e)if(t){if("object"!=typeof t||!("onRequest"in t||"onResponse"in t||"onError"in t))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");c.push(t)}},eject(...e){for(const t of e){const e=c.indexOf(t);-1!==e&&c.splice(e,1)}}}}function we(e,t,r){if(null==t)return"";if("object"==typeof t)throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${!0===r?.allowReserved?t:encodeURIComponent(t)}`}function xe(e,t,r){if(!t||"object"!=typeof t)return"";const o=[],n={simple:",",label:".",matrix:";"}[r.style]||"&";if("deepObject"!==r.style&&!1===r.explode){for(const e in t)o.push(e,!0===r.allowReserved?t[e]:encodeURIComponent(t[e]));const n=o.join(",");switch(r.style){case"form":return`${e}=${n}`;case"label":return`.${n}`;case"matrix":return`;${e}=${n}`;default:return n}}for(const n in t){const i="deepObject"===r.style?`${e}[${n}]`:n;o.push(we(i,t[n],r))}const i=o.join(n);return"label"===r.style||"matrix"===r.style?`${n}${i}`:i}function Ce(e,t,r){if(!Array.isArray(t))return"";if(!1===r.explode){const o={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",n=(!0===r.allowReserved?t:t.map((e=>encodeURIComponent(e)))).join(o);switch(r.style){case"simple":return n;case"label":return`.${n}`;case"matrix":return`;${e}=${n}`;default:return`${e}=${n}`}}const o={simple:",",label:".",matrix:";"}[r.style]||"&",n=[];for(const o of t)"simple"===r.style||"label"===r.style?n.push(!0===r.allowReserved?o:encodeURIComponent(o)):n.push(we(e,o,r));return"label"===r.style||"matrix"===r.style?`${o}${n.join(o)}`:n.join(o)}function Ie(e){return function(t){const r=[];if(t&&"object"==typeof t)for(const o in t){const n=t[o];if(null!=n)if(Array.isArray(n)){if(0===n.length)continue;r.push(Ce(o,n,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}))}else"object"!=typeof n?r.push(we(o,n,e)):r.push(xe(o,n,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}))}return r.join("&")}}function ke(e){return e instanceof FormData?e:JSON.stringify(e)}function qe(...e){const t=new Headers;for(const r of e){if(!r||"object"!=typeof r)continue;const e=r instanceof Headers?r.entries():Object.entries(r);for(const[r,o]of e)if(null===o)t.delete(r);else if(Array.isArray(o))for(const e of o)t.append(r,e);else void 0!==o&&t.set(r,o)}return t}function Ee(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var Ke={onRequest:function(e){return f(this,arguments,void 0,(function(e){var t=e.request;return h(this,(function(e){return t.headers.set("Content-Type","application/json"),[2,t]}))}))}},Oe=function(e){var t=ge({baseUrl:e});return t.use(Ke),t},Ae=Oe(o.STAGING),Re=Oe(o.PRODUCTION);function je(e){var t=e.apiClient,r=e.path,o=e.apiKey,n=e.body,i=e.additionalHeaders,s={params:{header:p({"X-Api-Key":o},i)}},a={body:n||{}};return t.POST(r,p(p({},s),a))}function Te(e){var t=e.collectionAddresses,r=e.apiClient,o=e.options,n=e.apiKey;return je({apiClient:r,path:"/collections",body:p(p({orderBy:"updatedAt",orderDirection:"desc"},o),{where:p(p({},null==o?void 0:o.where),t?{collectionAddresses:t}:{})}),apiKey:n})}function Se(e){return function(e){var t=e.apiClient,r=e.path,o=e.apiKey,n=e.pathParams,i=e.additionalHeaders,s={params:{path:n,header:p({"X-Api-Key":o},i)}};return t.GET(r,s)}({apiClient:e.apiClient,path:"/disputes/{disputeId}",pathParams:{disputeId:e.disputeId},apiKey:e.apiKey})}function ze(e){var t=e.apiClient,r=e.initiator,o=e.targetIpId,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/disputes",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},n),{where:p(p(p({},null==n?void 0:n.where),r?{initiator:r}:{}),o?{targetIpId:o}:{})}),apiKey:i})}function Ne(e){var t=e.apiClient,r=e.ipId,o=e.parentIpId,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/assets/edges",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},n),{where:p(p(p({},null==n?void 0:n.where),r?{childIpId:r}:{}),o?{parentIpId:o}:{})}),apiKey:i})}function Pe(e){var t=e.apiClient,r=e.ownerAddress,o=e.tokenContract,n=e.includeLicenses,i=e.moderated,s=e.ipIds,a=e.options,l=e.apiKey;return je({apiClient:t,path:"/assets",body:p(p({orderBy:"blockNumber",orderDirection:"desc",includeLicenses:null!=n&&n,moderated:null!=i&&i},a),{where:p(p(p(p({},null==a?void 0:a.where),s?{ipIds:s}:{}),r?{ownerAddress:r}:{}),o?{tokenContract:o}:{})}),apiKey:l})}function Me(e){var t=e.apiClient,r=e.ownerAddress,o=e.licensorIpId,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/licenses/tokens",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},n),{where:p(p(p({},null==n?void 0:n.where),(null==r?void 0:r.length)?{ownerAddress:r}:{}),(null==o?void 0:o.length)?{licensorIpId:o}:{})}),apiKey:i})}function Ue(e){var t=e.apiClient,r=e.query,o=e.mediaType,n=e.options,i=e.apiKey;return je({apiClient:t,path:"/search",body:p(p({query:r},o?{mediaType:o}:{}),n),apiKey:i})}function Ge(e){var t=e.apiClient,r=e.txHashes,o=e.ipIds,n=e.initiators,i=e.eventTypes,s=e.options,a=e.apiKey;return je({apiClient:t,path:"/transactions",body:p(p({orderBy:"blockNumber",orderDirection:"desc"},s),{where:p(p(p(p(p({},null==s?void 0:s.where),r?{txHashes:r}:{}),o?{ipIds:o}:{}),n?{initiators:n}:{}),i?{eventTypes:i}:{})}),apiKey:a})}var $e=e.createContext(null),De=function(r){var i=r.apiKey,s=r.appId,a=r.children,l=r.isTestnet,c=r.mode,u=r.theme,p=void 0===u?"default":u,f=t((function(){return d[l?n.AENEID_TESTNET:n.STORY_MAINNET]}),[l]),h=t((function(){return l?o.STAGING:o.PRODUCTION}),[l]),b=t((function(){return Oe(h)}),[h]);return e.createElement($e.Provider,{value:{apiBaseUrl:h,apiClient:b,apiKey:i,appId:s,chain:f,mode:c,theme:p,themeClass:"".concat(p).concat(c?"-".concat(c):"")}},e.createElement("div",{className:ce(p)},a))},Le=function(){var t=e.useContext($e);if(!t)throw new Error("useIpKit must be used within an IpKitProvider");return t};function _e(e){var t=this,o=e.collectionAddress,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getCollection",o],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(i){switch(i.label){case 0:return[4,Te({collectionAddresses:[o],apiKey:s,apiClient:a})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[0])||null]}}))}))},enabled:!!(null==o?void 0:o.length)},n))}function Fe(e){var t=this,o=void 0===e?{}:e,n=o.collectionAddresses,i=o.options,s=o.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getCollections",n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Te({collectionAddresses:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function He(e){var t=this,o=e.disputeId,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getDispute",o],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(n){switch(n.label){case 0:return[4,Se({disputeId:o,apiKey:s,apiClient:a})];case 1:if(e=n.sent(),t=e.data,r=e.error)throw r;return[2,(null==t?void 0:t.data)||null]}}))}))},enabled:!!(null==o?void 0:o.length)},n))}function We(e){var t=this,o=void 0===e?{}:e,n=o.initiator,i=o.targetIpId,s=o.options,a=o.queryOptions,l=Le(),c=l.apiKey,d=l.apiClient;return r(p({queryKey:["getDisputes",s,n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,ze({initiator:n,targetIpId:i,options:s,apiKey:c,apiClient:d})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},a))}function Be(e){var t=this,o=e.ipId,n=e.includeLicenses,i=e.queryOptions,s=Le(),a=s.apiKey,l=s.apiClient;return r(p({queryKey:["getIpAsset",o,n],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,i;return h(this,(function(s){switch(s.label){case 0:return[4,Pe({ipIds:[o],includeLicenses:n,apiKey:a,apiClient:l})];case 1:if(e=s.sent(),t=e.data,r=e.error)throw r;return[2,(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i[0])||null]}}))}))},enabled:!!(null==o?void 0:o.length)},i))}function Xe(e){var t=this,o=void 0===e?{}:e,n=o.ipId,i=o.options,s=o.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getIpAssetEdges",void 0,n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ne({parentIpId:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function Je(e){var t=this,o=void 0===e?{}:e,n=o.ipId,i=o.parentIpId,s=o.options,a=o.queryOptions,l=Le(),c=l.apiKey,d=l.apiClient;return r(p({queryKey:["getIpAssetEdges",n,i,s],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ne({ipId:n,parentIpId:i,options:s,apiKey:c,apiClient:d})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},a))}function Ve(e){var t=this,o=e.ipId,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getIpAsset",o,!0],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(i){switch(i.label){case 0:return[4,Pe({ipIds:[o],includeLicenses:!0,apiKey:s,apiClient:a})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[0].licenses)||null]}}))}))},enabled:!!(null==o?void 0:o.length)},n))}function Ye(e){var t=this,o=void 0===e?{}:e,n=o.ipId,i=o.options,s=o.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getIpAssetEdges",n,void 0,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ne({ipId:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function Ze(e){var t=this,o=void 0===e?{}:e,n=o.ipIds,i=o.tokenContract,s=o.includeLicenses,a=o.moderated,l=o.options,c=o.queryOptions,d=Le(),u=d.apiKey,b=d.apiClient;return r(p({queryKey:["getIpAssets",n,i,s,a,l],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Pe({ipIds:n,tokenContract:i,includeLicenses:s,moderated:a,options:l,apiKey:u,apiClient:b})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},c))}function Qe(e){var t=this,o=void 0===e?{}:e,n=o.ownerAddress,i=o.includeLicenses,s=o.moderated,a=o.options,l=o.queryOptions,c=Le(),d=c.apiKey,u=c.apiClient;return r(p({queryKey:["getIpAssets",n,i,s,a],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Pe({ownerAddress:n,includeLicenses:i,moderated:s,options:a,apiKey:d,apiClient:u})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},l))}function et(e){var t=this,o=e.ownerAddress,n=e.licensorIpId,i=e.options,s=e.queryOptions,a=Le(),l=a.apiKey,c=a.apiClient;return r(p({queryKey:["getLicenseTokens",o,n,i],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(s){switch(s.label){case 0:return[4,Me({ownerAddress:o,licensorIpId:n,options:i,apiKey:l,apiClient:c})];case 1:if(e=s.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},s))}function tt(e){var t=this,o=e.query,n=e.mediaType,i=e.queryOptions,s=Le(),a=s.apiKey,l=s.apiClient;return r(p({queryKey:["getSearch",o,n],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(i){switch(i.label){case 0:return[4,Ue({query:o,mediaType:n,apiKey:a,apiClient:l})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))},enabled:!!(null==o?void 0:o.length)},i))}function rt(e){var t=this,o=e.txHash,n=e.queryOptions,i=Le(),s=i.apiKey,a=i.apiClient;return r(p({queryKey:["getTransactions",o],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r,n;return h(this,(function(i){switch(i.label){case 0:return[4,Ge({txHashes:[o],apiKey:s,apiClient:a})];case 1:if(e=i.sent(),t=e.data,r=e.error)throw r;return[2,(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n[0])||null]}}))}))},enabled:!!(null==o?void 0:o.length)},n))}function ot(e){var t=this,o=void 0===e?{}:e,n=o.txHashes,i=o.ipIds,s=o.initiators,a=o.eventTypes,l=o.options,c=o.queryOptions,d=Le(),u=d.apiKey,b=d.apiClient;return r(p({queryKey:["getTransactions",n,i,s,a,l],queryFn:function(){return f(t,void 0,void 0,(function(){var e,t,r;return h(this,(function(o){switch(o.label){case 0:return[4,Ge({txHashes:n,ipIds:i,initiators:s,eventTypes:a,options:l,apiKey:u,apiClient:b})];case 1:if(e=o.sent(),t=e.data,r=e.error)throw r;return[2,t]}}))}))}},c))}export{o as API_URL,u as CHAINID_TO_CHAINNAME,d as CHAINS,n as IPKIT_SUPPORTED_CHAIN,De as IpKitProvider,s as PIL_FLAVOR,l as STORY_AENEID,c as STORY_MAINNET,a as WRAPPED_IP,ue as camelize,ce as cn,he as convertIpfsUriToUrl,me as convertLicenseTermObject,Oe as createApiClient,ye as fetchLicenseOffChainData,Te as getCollections,Se as getDispute,ze as getDisputes,fe as getImageUrlFromIpfsUrl,Ne as getIpAssetEdges,Pe as getIpAssets,Me as getLicenseTokens,be as getMetadataFromIpfs,pe as getPilFlavorByLicenseTerms,Ue as getSearch,Ge as getTransactions,Re as prodClient,de as shortenAddress,Ae as stagingClient,_e as useCollection,Fe as useCollections,He as useDispute,We as useDisputes,Be as useIpAsset,Xe as useIpAssetChildren,Je as useIpAssetEdges,Ve as useIpAssetLicenses,Ye as useIpAssetParents,Ze as useIpAssets,Qe as useIpAssetsByOwner,Le as useIpKit,et as useLicenseTokens,tt as useSearch,rt as useTransaction,ot as useTransactions};
2
2
  //# sourceMappingURL=storyprotocol-storykit.esm.js.map