diff --git a/Resources/Public/AssetEditor/Plugin.js b/Resources/Public/AssetEditor/Plugin.js index 9f5f82ef7..d15871f88 100644 --- a/Resources/Public/AssetEditor/Plugin.js +++ b/Resources/Public/AssetEditor/Plugin.js @@ -25,7 +25,10 @@ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr } `;n(38),n(11),n(48)},function(e,t,n){"use strict";n.d(t,"L",(function(){return a})),n.d(t,"y",(function(){return i})),n.d(t,"x",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"p",(function(){return c})),n.d(t,"o",(function(){return d})),n.d(t,"r",(function(){return T})),n.d(t,"s",(function(){return A})),n.d(t,"n",(function(){return j})),n.d(t,"t",(function(){return k})),n.d(t,"q",(function(){return I})),n.d(t,"m",(function(){return N})),n.d(t,"E",(function(){return h})),n.d(t,"C",(function(){return m})),n.d(t,"z",(function(){return E})),n.d(t,"A",(function(){return w})),n.d(t,"M",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"K",(function(){return O})),n.d(t,"u",(function(){return g})),n.d(t,"v",(function(){return S})),n.d(t,"d",(function(){return P})),n.d(t,"g",(function(){return U})),n.d(t,"J",(function(){return B})),n.d(t,"I",(function(){return V})),n.d(t,"c",(function(){return G.a})),n.d(t,"G",(function(){return z})),n.d(t,"H",(function(){return Q})),n.d(t,"b",(function(){return H})),n.d(t,"i",(function(){return J})),n.d(t,"F",(function(){return Z})),n.d(t,"D",(function(){return ee})),n.d(t,"f",(function(){return te})),n.d(t,"a",(function(){return oe})),n.d(t,"l",(function(){return ne})),n.d(t,"B",(function(){return ae})),n.d(t,"w",(function(){return ie})),n.d(t,"h",(function(){return se})),n.d(t,"j",(function(){return le}));var r=n(135),o=n(8);function a(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if("skip"===(n=e.name.value)||"include"===n){var n,r=e.arguments;e.name.value;Object(o.b)(r&&1===r.length,39);var a=r[0];Object(o.b)(a.name&&"if"===a.name.value,40);var i=a.value;Object(o.b)(i&&("Variable"===i.kind||"BooleanValue"===i.kind),41),t.push({directive:e,ifArgument:a})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,a=!1;return"Variable"===r.value.kind?(a=t&&t[r.value.name.value],Object(o.b)(void 0!==a,38)):a=r.value.value,"skip"===n.name.value?!a:a}))}function i(e,t){return function(e){var t=[];return Object(r.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&i(["client"],e)&&i(["export"],e)}var l=n(2);function c(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new o.a(42);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(Object(o.b)(1===r.length,43),n=r[0].name.value),Object(l.a)(Object(l.a)({},e),{definitions:Object(l.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function u(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function d(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return Object(o.b)(n,44),n;default:return null}}var f=n(136),p=n.n(f);function h(e){return{__ref:String(e)}}function m(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function v(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var a={};n.fields.map((function(e){return v(a,e.name,e.value,r)})),e[t.value]=a}else if(function(e){return"Variable"===e.kind}(n)){var i=(r||{})[n.name.value];e[t.value]=i}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return v(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new o.a(53);e[t.value]=null}}function b(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,a=r.value;return v(n[e.name.value],o,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return v(r,n,o,t)}))),g(e.name.value,r,n)}var y=["connection","include","skip","client","rest","export"];function g(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach((function(e){o[e]=t[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var i=p()(t);a+="("+i+")"}return n&&Object.keys(n).forEach((function(e){-1===y.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function _(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return v(n,r,o,t)})),n}return null}function O(e){return e.alias?e.alias.value:e.name.value}function S(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,o=t.selections;r1)for(var r=new H,o=1;o0}function ie(e){return e.errors&&e.errors.length>0||!1}ne(oe);var se="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function le(){for(var e=[],t=0;te(o).map(e=>({assetId:e.id,assetSourceId:e.assetSource.id}))}),i=Object(r.b)({key:"ConstraintsState",default:{assetSources:[],mediaTypes:[]}});var s=n(22);const l=Object(r.b)({key:"currentPageState",default:1,effects:[Object(s.a)("currentPageState",e=>isNaN(e)?1:e)]}),c=Object(r.b)({key:"FeatureFlagsState",default:{useNewMediaSelection:!0,queryAssetUsage:!1,pollForChanges:!0,showSimilarAssets:!1,showVariantsEditor:!1,createAssetRedirectsOption:!0,pagination:{assetsPerPage:20,maximumLinks:5},propertyEditor:{collapsed:!1},limitToSingleAssetCollectionPerAsset:!0,mediaTypeFilterOptions:{all:{},image:{},video:{},document:{},audio:{}}}}),u=Object(r.b)({key:"InitialLoadCompleteState",default:!1}),d=Object(r.b)({key:"loadingState",default:!1});var f=n(53);const p=Object(r.b)({key:"searchTermState",default:f.a.fromString(""),effects:[Object(s.a)("searchTermState",({value:e})=>{const t=f.a.fromString(e);return t.empty()?void 0:t})]});var h=n(14),m=n(12),v=n(20);const b=Object(r.b)({key:"applicationContext",default:"browser"}),y=Object(r.c)({key:"selectedInspectorViewForContextState",default:null,effects:e=>[Object(s.a)("selectedInspectorViewState",void 0,e)]}),g=Object(r.d)({key:"selectedInspectorViewState",get:({get:e})=>e(y(e(b))),set:({get:e,set:t},n)=>t(y(e(b)),n)}),_=Object(r.c)({key:"selectedAssetIdForContextState",default:null,effects:e=>[Object(s.a)("selectedAssetIdForContextState",void 0,e)]}),O=Object(r.d)({key:"selectedAssetIdState",get:({get:e})=>e(_(e(b))),set:({get:e,set:t},n)=>t(_(e(b)),n)}),S=Object(r.d)({key:"SelectedTagIdProxySelector",get:({get:e})=>({tagId:e(h.c),assetCollectionId:e(m.f)}),set:({set:e},t)=>{e(g,t.tagId?"tag":"assetCollection"),e(h.c,t.tagId),e(O,null),e(l,1),e(m.f,t.assetCollectionId),e(v.f,!1)}}),E=Object(r.b)({key:"selectedMediaTypeState",default:"",effects:[Object(s.a)("selectedMediaTypeState")]}),w=Object(r.b)({key:"selectedAssetTypeInternalState",default:"",effects:[Object(s.a)("selectedAssetTypeState")]}),C=Object(r.d)({key:"selectedAssetTypeState",get:({get:e})=>{const t=e(w),n=e(i);return(null==n?void 0:n.assetType)?n.assetType:t},set:({get:e,set:t},n)=>{const r=e(i);(null==r?void 0:r.assetType)&&r.assetType!==n&&(n=r.assetType),t(w,n)}});var T=n(31)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(134),o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,i=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",a(r,t.prototype),r}return Object(r.a)(t,e),t}(Error);function s(e,t){if(!e)throw new i(t)}var l=["log","warn","error","silent"],c=l.indexOf("log");function u(e){return function(){if(l.indexOf(e)>=c)return console[e].apply(console,arguments)}}function d(e){var t=l[c];return c=Math.max(0,l.indexOf(e)),t}!function(e){e.log=u("log"),e.warn=u("warn"),e.error=u("error")}(s||(s={}));"object"==typeof e&&e.env}).call(this,n(97))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return S})),n.d(t,"f",(function(){return E})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return T})),n.d(t,"i",(function(){return A})),n.d(t,"j",(function(){return j})),n.d(t,"k",(function(){return k})),n.d(t,"l",(function(){return I}));var r=n(84),o=n(4),a=n(37);function i(e){const{data:t,loading:n,refetch:r}=Object(o.useQuery)(a.a,{variables:{id:null==e?void 0:e.assetId,assetSourceId:null==e?void 0:e.assetSourceId},skip:!e});return{asset:(null==t?void 0:t.asset)||null,loading:n,refetch:r}}var s=n(0),l=n(1),c=n(14),u=n(12),d=n(23),f=n(7);var p=()=>{const{pagination:{assetsPerPage:e}}=Object(l.g)(f.f),t=Object(l.g)(f.j),n=Object(l.g)(u.f),r=Object(l.g)(d.d),i=Object(l.g)(c.c),p=Object(l.g)(f.o),h=Object(l.g)(f.m),m=Object(l.g)(f.p),v=Object(l.g)(f.e),b=Object(l.h)(f.h),y=Object(l.h)(f.g),[g,_]=Object(l.f)(f.c),O=(v-1)*e,[S,{loading:E,error:w,data:C,refetch:T}]=Object(o.useLazyQuery)(a.b,{notifyOnNetworkStatusChange:!1,variables:{searchTerm:t.toString(),assetSourceId:r,assetCollectionId:n,assetType:h,mediaType:p,tagId:i,limit:e,offset:O,sortBy:m.sortBy,sortDirection:m.sortDirection}});return Object(s.useEffect)(()=>{E||(S({variables:{searchTerm:t.toString(),assetSourceId:r,assetCollectionId:n,assetType:h,mediaType:p,tagId:i,limit:e,offset:O,sortBy:m.sortBy,sortDirection:m.sortDirection}}),b(!0))},[S,E,O,t,r,n,p,i,m,h,e,b]),Object(s.useEffect)(()=>{!E&&C&&(_(e=>C&&JSON.stringify(e)==JSON.stringify(C.assets)?e:C.assets||[]),b(!1),y(!0))},[E,C,_,y,b]),{error:w,assets:g,refetch:T}};var h=()=>{const{data:e,loading:t}=Object(o.useQuery)(a.d);return{config:null==e?void 0:e.config,loading:t}};var m=o.gql` mutation DeleteAsset($id: AssetId!, $assetSourceId: AssetSourceId!) { - deleteAsset(id: $id, assetSourceId: $assetSourceId) + deleteAsset(id: $id, assetSourceId: $assetSourceId) { + success + messages + } } `,v=n(21);var b=o.gql` mutation ImportAsset($id: AssetId!, $assetSourceId: AssetSourceId!, $includeUsage: Boolean = false) { @@ -93,7 +96,7 @@ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr } } ${v.a} -`,O=n(38);function S(){const[e,{error:t,data:n}]=Object(o.useMutation)(m),r=Object(l.h)(f.l),i=O.b;return{deleteAsset:({assetId:t,assetSourceId:n})=>e({variables:{id:t,assetSourceId:n},refetchQueries:[{query:a.a,variables:{id:t,assetSourceId:n}}],update:(e,{data:{deleteAsset:n}})=>{n&&(e.evict({id:e.identify({__typename:"Asset",id:t})}),e.gc())}}).then(({data:{deleteAsset:e}})=>{if(!e)throw new Error("Could not delete asset");i({assetId:t,assetSourceId:n}),r(e=>e.assetId===t?null:e)}),data:n,error:t}}function E(e){return e}function w(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(b);return{importAsset:t=>e({variables:{id:t.assetId,assetSourceId:t.assetSourceId}}),data:n,error:t,loading:r}}var C=n(24);var T=()=>{const e=Object(l.h)(f.l),t=Object(l.h)(f.n),{handleSelectAsset:n,selectionMode:r}=Object(C.g)();return Object(s.useCallback)(o=>{o&&(n(o),r||(e(o),t("asset")))},[r,e,n,t])};var A=()=>{const e=Object(l.g)(f.l),{asset:t}=i(e);return t};function j(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(y);return{setAssetCollections:({asset:t,assetCollections:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,assetCollectionIds:n.map(e=>e.id)},optimisticResponse:!0,refetchQueries:["ASSETS","ASSET_COLLECTIONS"],update:(e,{data:r})=>{r&&e.modify({id:e.identify({__typename:"Asset",id:t.id}),fields:{assetCollections:()=>null==n?void 0:n.map(t=>({__ref:e.identify({__typename:"AssetCollection",id:t.id})}))}})}}),data:n,error:t,loading:r}}function k(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(g);return{setAssetTags:({asset:t,tags:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,tagIds:n.map(e=>e.id)},optimisticResponse:{__typename:"Mutation",setAssetTags:{...t,tags:n}},refetchQueries:["ASSETS","TAGS"]}),data:n,error:t,loading:r}}function I(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(_);return{updateAsset:({asset:t,label:n,caption:r,copyrightNotice:o})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,label:n,caption:r,copyrightNotice:o},optimisticResponse:{__typename:"Mutation",updateAsset:{...t,label:n,caption:r,copyrightNotice:o}}}),data:n,error:t,loading:r}}},function(e,t,n){"use strict";var r,o=n(40),a=(r=o)&&r.__esModule?r:{default:r};e.exports=(0,a.default)("vendor")().PropTypes},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return O})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"e",(function(){return j}));var r=n(0),o=n.n(r),a=n(71),i=n.n(a),s=n(3),l=n(58),c=n.n(l);const u=e=>{const t=o.a.useRef();return o.a.useEffect(()=>{var e;if(t.current){const n=i.a.findDOMNode(t.current);null===(e=null==n?void 0:n.firstElementChild)||void 0===e||e.setAttribute("data-ignore_click_outside","true")}},[t]),o.a.createElement(s.Dialog,{...e,autoFocus:!0,ref:t,className:c.a.mediaModuleTheme})};var d=n(130),f=n.n(d);var p=r.memo(({label:e})=>r.createElement("span",{className:f.a.assetLabel},e)),h=n(131),m=n.n(h);var v=({children:e})=>o.a.createElement("div",{className:m.a.column},e),b=n(13),y=n.n(b),g=n(78),_=n.n(g);var O=o.a.memo(({icon:e="question",iconUri:t="",label:n="",className:r="",children:a=null})=>o.a.createElement("span",{className:y()(_.a.wrapper,r)},o.a.createElement("span",{className:_.a.iconWrap},t?o.a.createElement("img",{src:t,alt:n,className:_.a.imgIcon}):o.a.createElement(s.Icon,{icon:e})),o.a.createElement("span",{className:_.a.label},a||n||""))),S=n(132),E=n.n(S);var w=o.a.memo(({children:e})=>o.a.createElement("dl",{className:E.a.propertyList},e));var C=o.a.memo(({label:e,value:t})=>o.a.createElement(o.a.Fragment,null,o.a.createElement("dt",null,e),o.a.createElement("dd",{title:t},t))),T=n(133),A=n.n(T);const j=({primaryIcon:e,secondaryIcon:t})=>o.a.createElement("div",{className:A.a.iconStack},o.a.createElement(s.Icon,{icon:e}),t&&o.a.createElement(s.Icon,{icon:t}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return _})),n.d(t,"b",(function(){return Y})),n.d(t,"c",(function(){return Z})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return F})),n.d(t,"d",(function(){return ee}));var r=n(4),o=n(35);const a=r.gql` +`,O=n(38);function S(){const[e,{error:t,data:n}]=Object(o.useMutation)(m),r=Object(l.h)(f.l),i=O.b;return{deleteAsset:({assetId:t,assetSourceId:n})=>e({variables:{id:t,assetSourceId:n},refetchQueries:[{query:a.a,variables:{id:t,assetSourceId:n}},"ASSET_COLLECTIONS"],update:(e,{data:{deleteAsset:n}})=>{n&&(e.evict({id:e.identify({__typename:"Asset",id:t})}),e.gc())}}).then(({data:{deleteAsset:e}})=>{if(!e.success)throw new Error(e.messages.join(", "));i({assetId:t,assetSourceId:n}),r(e=>(null==e?void 0:e.assetId)===t?null:e)}),data:n,error:t}}function E(e){return e}function w(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(b);return{importAsset:t=>e({variables:{id:t.assetId,assetSourceId:t.assetSourceId}}),data:n,error:t,loading:r}}var C=n(24);var T=()=>{const e=Object(l.h)(f.l),t=Object(l.h)(f.n),{handleSelectAsset:n,selectionMode:r}=Object(C.g)();return Object(s.useCallback)(o=>{o&&(n(o),r||(e(o),t("asset")))},[r,e,n,t])};var A=()=>{const e=Object(l.g)(f.l),{asset:t}=i(e);return t};function j(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(y);return{setAssetCollections:({asset:t,assetCollections:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,assetCollectionIds:n.map(e=>e.id)},optimisticResponse:!0,refetchQueries:["ASSETS","ASSET_COLLECTIONS"],update:(e,{data:r})=>{r&&e.modify({id:e.identify({__typename:"Asset",id:t.id}),fields:{assetCollections:()=>null==n?void 0:n.map(t=>({__ref:e.identify({__typename:"AssetCollection",id:t.id})}))}})}}),data:n,error:t,loading:r}}function k(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(g);return{setAssetTags:({asset:t,tags:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,tagIds:n.map(e=>e.id)},optimisticResponse:{__typename:"Mutation",setAssetTags:{...t,tags:n}},refetchQueries:["ASSETS","TAGS"]}),data:n,error:t,loading:r}}function I(){const[e,{error:t,data:n,loading:r}]=Object(o.useMutation)(_);return{updateAsset:({asset:t,label:n,caption:r,copyrightNotice:o})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,label:n,caption:r,copyrightNotice:o},optimisticResponse:{__typename:"Mutation",updateAsset:{...t,label:n,caption:r,copyrightNotice:o}}}),data:n,error:t,loading:r}}},function(e,t,n){"use strict";var r,o=n(40),a=(r=o)&&r.__esModule?r:{default:r};e.exports=(0,a.default)("vendor")().PropTypes},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return O})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"e",(function(){return j}));var r=n(0),o=n.n(r),a=n(71),i=n.n(a),s=n(3),l=n(58),c=n.n(l);const u=e=>{const t=o.a.useRef();return o.a.useEffect(()=>{var e;if(t.current){const n=i.a.findDOMNode(t.current);null===(e=null==n?void 0:n.firstElementChild)||void 0===e||e.setAttribute("data-ignore_click_outside","true")}},[t]),o.a.createElement(s.Dialog,{...e,autoFocus:!0,ref:t,className:c.a.mediaModuleTheme})};var d=n(130),f=n.n(d);var p=r.memo(({label:e})=>r.createElement("span",{className:f.a.assetLabel},e)),h=n(131),m=n.n(h);var v=({children:e})=>o.a.createElement("div",{className:m.a.column},e),b=n(13),y=n.n(b),g=n(78),_=n.n(g);var O=o.a.memo(({icon:e="question",iconUri:t="",label:n="",className:r="",children:a=null})=>o.a.createElement("span",{className:y()(_.a.wrapper,r)},o.a.createElement("span",{className:_.a.iconWrap},t?o.a.createElement("img",{src:t,alt:n,className:_.a.imgIcon}):o.a.createElement(s.Icon,{icon:e})),o.a.createElement("span",{className:_.a.label},a||n||""))),S=n(132),E=n.n(S);var w=o.a.memo(({children:e})=>o.a.createElement("dl",{className:E.a.propertyList},e));var C=o.a.memo(({label:e,value:t})=>o.a.createElement(o.a.Fragment,null,o.a.createElement("dt",null,e),o.a.createElement("dd",{title:t},t))),T=n(133),A=n.n(T);const j=({primaryIcon:e,secondaryIcon:t})=>o.a.createElement("div",{className:A.a.iconStack},o.a.createElement(s.Icon,{icon:e}),t&&o.a.createElement(s.Icon,{icon:t}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return _})),n.d(t,"b",(function(){return Y})),n.d(t,"c",(function(){return Z})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return F})),n.d(t,"d",(function(){return ee}));var r=n(4),o=n(35);const a=r.gql` fragment AssetCollectionProps on AssetCollection { id title @@ -362,7 +365,7 @@ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr currentServerTime } } -`},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var r=n(93),o=n.n(r);function a(e){const t=e=>{t.publish(e)};return t.subscribe=t=>o.a.subscribe(e,t),t.unsubscribe=e=>{o.a.unsubscribe(e)},t.publish=t=>o.a.publish(e,t),t}const i=a("ASSET_CREATED"),s=a("ASSET_REMOVED"),l=a("ASSET_UPDATED")},function(e,t,n){e.exports={assetsFilter:"AssetsFilter-module__assetsFilter___3rCkH",active:"AssetsFilter-module__active___3caFq",filterList:"AssetsFilter-module__filterList___3vink",typeFilter:"AssetsFilter-module__typeFilter___1WqE8",selectBox:"AssetsFilter-module__selectBox___12L48"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t;if(window["@Neos:HostPluginAPI"]&&window["@Neos:HostPluginAPI"]["@"+e])return(t=window["@Neos:HostPluginAPI"])["@"+e].apply(t,arguments);throw new Error("You are trying to read from a consumer api that hasn't been initialized yet!")}}},function(e,t,n){"use strict";var r=n(85);n.d(t,"ApolloCache",(function(){return r.a}));var o=n(117);n.d(t,"Cache",(function(){return o.a}));var a=n(57);n.d(t,"MissingFieldError",(function(){return a.a}));n(6);var i=n(129);n.d(t,"InMemoryCache",(function(){return i.a}));var s=n(43);n.d(t,"makeVar",(function(){return s.c})),n.d(t,"cacheSlot",(function(){return s.a}));var l=n(73);n.d(t,"defaultDataIdFromObject",(function(){return l.b}));n(83)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=null,o={},a=1,i=Array,s=i["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",a++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===o)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=o),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,o){var a,i=((a={__proto__:null})[this.id]=e,a),s=r;r={parent:s,slots:i};try{return t.apply(o,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var o=r;try{return r=null,e.apply(n,t)}finally{r=o}},e}();try{Object.defineProperty(i,"@wry/context:Slot",{value:i["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();s.bind,s.noContext},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n(25),o=new(n(42).a);function a(e,t){if(e.size){var n=[];e.forEach((function(e){return n.push(e)})),e.clear(),n.forEach(t)}}var i=new WeakMap;function s(e){var t=i.get(e);return t||i.set(e,t={vars:new Set,dep:Object(r.b)()}),t}function l(e){s(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){s(e).vars.forEach((function(t){return t.attachCache(e)}))}function u(e){var t=new Set,n=new Set,r=function(l){if(arguments.length>0)e!==l&&(e=l,t.forEach((function(e){s(e).dep.dirty(r),d(e)})),a(n,(function(t){return t(e)})));else{var c=o.getValue();c&&(i(c),s(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),s(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function d(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,n){e.exports={variantContainer:"Variant-module__variantContainer___1Rz5s",picture:"Variant-module__picture___FTBHB",image:"Variant-module__image___2HAPN",caption:"Variant-module__caption___fS3Y6",infoContainer:"Variant-module__infoContainer___1P2bn",info:"Variant-module__info___1QLy6",variantSizes:"Variant-module__variantSizes___1bXmk"}},function(e,t,n){e.exports={listView:"ListView-module__listView___OX0zS","listView--fullHeight":"ListView-module__listView--fullHeight___36H-z",tableHeader:"ListView-module__tableHeader___2ADYa"}},function(e,t,n){e.exports={listViewItem:"ListViewItem-module__listViewItem___Fd0jz",selected:"ListViewItem-module__selected___3DAUq",textColumn:"ListViewItem-module__textColumn___1z3sq",previewColumn:"ListViewItem-module__previewColumn___qhg-o",labelColumn:"ListViewItem-module__labelColumn___1N00U ListViewItem-module__textColumn___1z3sq",lastModifiedColumn:"ListViewItem-module__lastModifiedColumn___331Rr ListViewItem-module__textColumn___1z3sq",fileSizeColumn:"ListViewItem-module__fileSizeColumn___3vlGC ListViewItem-module__textColumn___1z3sq",mediaTypeColumn:"ListViewItem-module__mediaTypeColumn___11TSD ListViewItem-module__textColumn___1z3sq",actionsColumn:"ListViewItem-module__actionsColumn___18fhN ListViewItem-module__textColumn___1z3sq"}},function(e,t,n){e.exports={mediaModuleApp:"App-module__mediaModuleApp___16GgU",container:"App-module__container___1eV11",fullHeight:"App-module__fullHeight___3WKdi",selectionMode:"App-module__selectionMode___2O0-t",gridColumn:"App-module__gridColumn___pTlSy",gridRight:"App-module__gridRight___1ZvBy App-module__gridColumn___pTlSy",gridLeft:"App-module__gridLeft___1vBO6 App-module__gridColumn___pTlSy",gridMain:"App-module__gridMain___1cIQ3 App-module__gridColumn___pTlSy",gridTop:"App-module__gridTop___2aVks"}},function(e,t,n){"use strict";function r(e,t=!1){const n=t?1e3:1024;if(Math.abs(e)=n&&o0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var p=[".DS_Store","Thumbs.db"];function h(e){return(null!==e.target&&e.target.files?b(e.target.files):[]).map((function(e){return f(e)}))}function m(e,t){return Object(u.b)(this,void 0,void 0,(function(){var n;return Object(u.c)(this,(function(r){switch(r.label){case 0:return e.items?(n=b(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(y))]):[3,2];case 1:return[2,v(g(r.sent()))];case 2:return[2,v(b(e.files).map((function(e){return f(e)})))]}}))}))}function v(e){return e.filter((function(e){return-1===p.indexOf(e.name)}))}function b(e){for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,k(n)];if(e.sizen)return[!1,k(n)]}return[!0,null]}function D(e){return null!=e}function M(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=T(x(e,n),1)[0],a=T(R(e,r,o),1)[0];return t&&a}))}function L(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function P(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function F(e){e.preventDefault()}function B(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function U(e){return-1!==e.indexOf("Edge/")}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return B(e)||U(e)}function q(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var X=Object(r.forwardRef)((function(e,t){var n=e.children,a=ee(Y(e,["children"])),i=a.open,s=Y(a,["open"]);return Object(r.useImperativeHandle)(t,(function(){return{open:i}}),[i]),o.a.createElement(r.Fragment,null,n(K(K({},s),{},{open:i})))}));X.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(e){return Object(u.b)(this,void 0,void 0,(function(){return Object(u.c)(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?m(e.dataTransfer,e.type):h(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};X.defaultProps=J,X.propTypes={children:c.a.func,accept:c.a.oneOfType([c.a.string,c.a.arrayOf(c.a.string)]),multiple:c.a.bool,preventDropOnDocument:c.a.bool,noClick:c.a.bool,noKeyboard:c.a.bool,noDrag:c.a.bool,noDragEventsBubbling:c.a.bool,minSize:c.a.number,maxSize:c.a.number,maxFiles:c.a.number,disabled:c.a.bool,getFilesFromEvent:c.a.func,onFileDialogCancel:c.a.func,onDragEnter:c.a.func,onDragLeave:c.a.func,onDragOver:c.a.func,onDrop:c.a.func,onDropAccepted:c.a.func,onDropRejected:c.a.func,validator:c.a.func};var Z={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=K(K({},J),e),n=t.accept,o=t.disabled,a=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,b=t.preventDropOnDocument,y=t.noClick,g=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,S=t.validator,E=Object(r.useRef)(null),w=Object(r.useRef)(null),C=Object(r.useReducer)(te,Z),T=Q(C,2),A=T[0],j=T[1],k=A.isFocused,I=A.isFileDialogActive,D=A.draggedFiles,B=Object(r.useCallback)((function(){w.current&&(j({type:"openDialog"}),w.current.value=null,w.current.click())}),[j]),U=function(){I&&setTimeout((function(){w.current&&(w.current.files.length||(j({type:"closeDialog"}),"function"==typeof v&&v()))}),300)};Object(r.useEffect)((function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}}),[w,I,v]);var $=Object(r.useCallback)((function(e){E.current&&E.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),B()))}),[E,w]),W=Object(r.useCallback)((function(){j({type:"focus"})}),[]),H=Object(r.useCallback)((function(){j({type:"blur"})}),[]),X=Object(r.useCallback)((function(){y||(V()?setTimeout(B,0):B())}),[w,y]),ee=Object(r.useRef)([]),ne=function(e){E.current&&E.current.contains(e.target)||(e.preventDefault(),ee.current=[])};Object(r.useEffect)((function(){return b&&(document.addEventListener("dragover",F,!1),document.addEventListener("drop",ne,!1)),function(){b&&(document.removeEventListener("dragover",F),document.removeEventListener("drop",ne))}}),[E,b]);var re=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e),ee.current=[].concat(z(ee.current),[e.target]),P(e)&&Promise.resolve(a(e)).then((function(t){L(e)&&!O||(j({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,O]),oe=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e);var t=P(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,O]),ae=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e);var t=ee.current.filter((function(e){return E.current&&E.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ee.current=t,t.length>0||(j({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),P(e)&&d&&d(e))}),[E,d,O]),ie=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e),ee.current=[],P(e)&&Promise.resolve(a(e)).then((function(t){if(!L(e)||O){var r=[],o=[];t.forEach((function(e){var t=Q(x(e,n),2),a=t[0],l=t[1],c=Q(R(e,s,i),2),u=c[0],d=c[1],f=S?S(e):null;if(a&&u&&!f)r.push(e);else{var p=[l,d];f&&(p=p.concat(f)),o.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach((function(e){o.push({file:e,errors:[N]})})),r.splice(0)),j({acceptedFiles:r,fileRejections:o,type:"setFiles"}),p&&p(r,o,e),o.length>0&&m&&m(o,e),r.length>0&&h&&h(r,e)}})),j({type:"reset"})}),[l,n,s,i,c,a,p,h,m,O]),se=function(e){return o?null:e},le=function(e){return g?null:se(e)},ce=function(e){return _?null:se(e)},ue=function(e){O&&e.stopPropagation()},de=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onKeyDown,a=e.onFocus,i=e.onBlur,s=e.onClick,l=e.onDragEnter,c=e.onDragOver,u=e.onDragLeave,d=e.onDrop,f=Y(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return K(K(G({onKeyDown:le(q(r,$)),onFocus:le(q(a,W)),onBlur:le(q(i,H)),onClick:se(q(s,X)),onDragEnter:ce(q(l,re)),onDragOver:ce(q(c,oe)),onDragLeave:ce(q(u,ae)),onDrop:ce(q(d,ie))},n,E),o||g?{}:{tabIndex:0}),f)}}),[E,$,W,H,X,re,oe,ae,ie,g,_,o]),fe=Object(r.useCallback)((function(e){e.stopPropagation()}),[]),pe=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,a=e.onClick,i=Y(e,["refKey","onChange","onClick"]),s=G({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:se(q(o,ie)),onClick:se(q(a,fe)),autoComplete:"off",tabIndex:-1},r,w);return K(K({},s),i)}}),[w,n,l,ie,o]),he=D.length,me=he>0&&M({files:D,accept:n,minSize:s,maxSize:i,multiple:l,maxFiles:c}),ve=he>0&&!me;return K(K({},A),{},{isDragAccept:me,isDragReject:ve,isFocused:k&&!o,getRootProps:de,getInputProps:pe,rootRef:E,inputRef:w,open:se(B)})}function te(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},e),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return K(K({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return K(K({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}var ne=n(13),re=n.n(ne),oe=n(9),ae=n(48),ie=n(80),se=n.n(ie);var le=o.a.memo(({acceptedFileTypes:e,files:t,loading:n,maxFiles:r,onSetFiles:a})=>{const{translate:s}=Object(i.d)(),l=Object(i.f)(),{dummyImage:c}=Object(i.e)(),{config:u}=Object(oe.d)(),d=r?Math.min(r,null==u?void 0:u.uploadMaxFileUploadLimit):(null==u?void 0:u.uploadMaxFileUploadLimit)||1,{getRootProps:f,getInputProps:p,isDragAccept:h,isDragActive:m,isDragReject:v}=ee({onDrop:e=>{if(0===e.length)return;const n=d-t.length;if(e.length>n&&l.error(s("uploadDialog.warning.maxFiles","You can only upload a maximum of {limit} files. {rejected} File(s) rejected",{limit:d,rejected:e.length-n})),0===n)return;const r=(e.length(e.id=`${e.name}-${e.size}-${e.lastModified}`,0===e.type.indexOf("image")?e.preview=URL.createObjectURL(e):e.preview=c,e));a(t.concat(r))},disabled:n,onDropRejected:e=>{e.forEach(e=>{l.warning(s("uploadDialog.warning.fileRejected","The given file cannot be uploaded."),e.errors.reduce((e,t)=>`${e} ${t.message}`,""))})},maxSize:(null==u?void 0:u.uploadMaxFileSize)||0,maxFiles:d,multiple:d>1,preventDropOnDocument:!0,accept:e});return o.a.createElement("section",null,o.a.createElement("div",{...f({className:re()(se.a.dropzone,h&&se.a.dropzoneAccept,m&&se.a.dropzoneActive,v&&se.a.dropzoneReject)})},o.a.createElement("input",{...p()}),o.a.createElement("p",null,s("uploadDialog.dropzone.caption","Drag 'n' drop some files here, or click to select files")),(null==u?void 0:u.uploadMaxFileSize)>0&&o.a.createElement("p",null,s("uploadDialog.maxFileSize","Maximum file size is {size} and file limit is {limit}",{size:Object(ae.a)(u.uploadMaxFileSize),limit:d}))),n&&o.a.createElement("p",null,s("uploadDialog.label.uploading","Uploading…")))}),ce=n(55),ue=n.n(ce);var de=o.a.memo(({file:e,loading:t=!1,fileState:n})=>{const r=null==n?void 0:n.success,i=n&&!r;return o.a.createElement("div",{className:re()(ue.a.thumb,i?ue.a.error:r?ue.a.success:t&&ue.a.loading),title:e.name},o.a.createElement("div",{className:ue.a.thumbInner},o.a.createElement("img",{src:e.preview,alt:e.name,className:ue.a.img}),t&&o.a.createElement(a.Icon,{icon:"spinner",spin:!0}),r&&o.a.createElement(a.Icon,{icon:"check"}),i&&o.a.createElement(a.Icon,{icon:"exclamation-circle"}),(null==n?void 0:n.result)&&o.a.createElement("span",null,n.result)))}),fe=n(81),pe=n.n(fe);var he=o.a.memo(({files:e,loading:t,uploadState:n})=>{const{translate:r}=Object(i.d)();return o.a.createElement("aside",{className:pe.a.fileList},e.selected.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:pe.a.fileListHeader},r("uploadDialog.fileList.header","Selected files")),e.selected.map(e=>o.a.createElement(de,{file:e,loading:t,fileState:n.find(t=>t.filename===e.name),key:e.id}))),e.rejected.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:pe.a.fileListHeader},r("uploadDialog.fileList.uploadedHeader","Failed uploads")),e.rejected.map(e=>o.a.createElement(de,{file:e,fileState:n.find(t=>t.filename===e.name),key:e.id}))),e.finished.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:pe.a.fileListHeader},r("uploadDialog.fileList.uploadedHeader","Successful uploads")),e.finished.map(e=>o.a.createElement(de,{file:e,fileState:n.find(t=>t.filename===e.name),key:e.id}))))}),me=n(1),ve=n(59),be=n(30);var ye=()=>{const[e,t]=Object(r.useState)({selected:[],finished:[],rejected:[]}),[n,o]=Object(me.f)(ve.a),a=Object(r.useCallback)(()=>{e.selected.forEach(e=>URL.revokeObjectURL(e.preview)),e.finished.forEach(e=>URL.revokeObjectURL(e.preview)),e.rejected.forEach(e=>URL.revokeObjectURL(e.preview)),t({selected:[],finished:[],rejected:[]}),o({uploadType:be.a.new,visible:!1})},[e,t,o]);return{state:{...n,files:e},closeDialog:a,setFiles:t}},ge=n(4),_e=n(14),Oe=n(12);var Se=ge.gql` +`},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var r=n(93),o=n.n(r);function a(e){const t=e=>{t.publish(e)};return t.subscribe=t=>o.a.subscribe(e,t),t.unsubscribe=e=>{o.a.unsubscribe(e)},t.publish=t=>o.a.publish(e,t),t}const i=a("ASSET_CREATED"),s=a("ASSET_REMOVED"),l=a("ASSET_UPDATED")},function(e,t,n){e.exports={assetsFilter:"AssetsFilter-module__assetsFilter___3rCkH",active:"AssetsFilter-module__active___3caFq",filterList:"AssetsFilter-module__filterList___3vink",typeFilter:"AssetsFilter-module__typeFilter___1WqE8",selectBox:"AssetsFilter-module__selectBox___12L48"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t;if(window["@Neos:HostPluginAPI"]&&window["@Neos:HostPluginAPI"]["@"+e])return(t=window["@Neos:HostPluginAPI"])["@"+e].apply(t,arguments);throw new Error("You are trying to read from a consumer api that hasn't been initialized yet!")}}},function(e,t,n){"use strict";var r=n(85);n.d(t,"ApolloCache",(function(){return r.a}));var o=n(117);n.d(t,"Cache",(function(){return o.a}));var a=n(57);n.d(t,"MissingFieldError",(function(){return a.a}));n(6);var i=n(129);n.d(t,"InMemoryCache",(function(){return i.a}));var s=n(43);n.d(t,"makeVar",(function(){return s.c})),n.d(t,"cacheSlot",(function(){return s.a}));var l=n(73);n.d(t,"defaultDataIdFromObject",(function(){return l.b}));n(83)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=null,o={},a=1,i=Array,s=i["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",a++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===o)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=o),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,o){var a,i=((a={__proto__:null})[this.id]=e,a),s=r;r={parent:s,slots:i};try{return t.apply(o,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var o=r;try{return r=null,e.apply(n,t)}finally{r=o}},e}();try{Object.defineProperty(i,"@wry/context:Slot",{value:i["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();s.bind,s.noContext},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n(25),o=new(n(42).a);function a(e,t){if(e.size){var n=[];e.forEach((function(e){return n.push(e)})),e.clear(),n.forEach(t)}}var i=new WeakMap;function s(e){var t=i.get(e);return t||i.set(e,t={vars:new Set,dep:Object(r.b)()}),t}function l(e){s(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){s(e).vars.forEach((function(t){return t.attachCache(e)}))}function u(e){var t=new Set,n=new Set,r=function(l){if(arguments.length>0)e!==l&&(e=l,t.forEach((function(e){s(e).dep.dirty(r),d(e)})),a(n,(function(t){return t(e)})));else{var c=o.getValue();c&&(i(c),s(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),s(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function d(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,n){e.exports={variantContainer:"Variant-module__variantContainer___1Rz5s",picture:"Variant-module__picture___FTBHB",image:"Variant-module__image___2HAPN",caption:"Variant-module__caption___fS3Y6",infoContainer:"Variant-module__infoContainer___1P2bn",info:"Variant-module__info___1QLy6",variantSizes:"Variant-module__variantSizes___1bXmk"}},function(e,t,n){e.exports={listView:"ListView-module__listView___OX0zS","listView--fullHeight":"ListView-module__listView--fullHeight___36H-z",tableHeader:"ListView-module__tableHeader___2ADYa"}},function(e,t,n){e.exports={listViewItem:"ListViewItem-module__listViewItem___Fd0jz",selected:"ListViewItem-module__selected___3DAUq",textColumn:"ListViewItem-module__textColumn___1z3sq",previewColumn:"ListViewItem-module__previewColumn___qhg-o",labelColumn:"ListViewItem-module__labelColumn___1N00U ListViewItem-module__textColumn___1z3sq",lastModifiedColumn:"ListViewItem-module__lastModifiedColumn___331Rr ListViewItem-module__textColumn___1z3sq",fileSizeColumn:"ListViewItem-module__fileSizeColumn___3vlGC ListViewItem-module__textColumn___1z3sq",mediaTypeColumn:"ListViewItem-module__mediaTypeColumn___11TSD ListViewItem-module__textColumn___1z3sq",actionsColumn:"ListViewItem-module__actionsColumn___18fhN ListViewItem-module__textColumn___1z3sq"}},function(e,t,n){e.exports={mediaModuleApp:"App-module__mediaModuleApp___16GgU",container:"App-module__container___1eV11",fullHeight:"App-module__fullHeight___3WKdi",selectionMode:"App-module__selectionMode___2O0-t",gridColumn:"App-module__gridColumn___pTlSy",gridRight:"App-module__gridRight___1ZvBy App-module__gridColumn___pTlSy",gridLeft:"App-module__gridLeft___1vBO6 App-module__gridColumn___pTlSy",gridMain:"App-module__gridMain___1cIQ3 App-module__gridColumn___pTlSy",gridTop:"App-module__gridTop___2aVks"}},function(e,t,n){"use strict";function r(e,t=!0){const n=t?1e3:1024;if(Math.abs(e)=n&&o0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var p=[".DS_Store","Thumbs.db"];function h(e){return(null!==e.target&&e.target.files?b(e.target.files):[]).map((function(e){return f(e)}))}function m(e,t){return Object(u.b)(this,void 0,void 0,(function(){var n;return Object(u.c)(this,(function(r){switch(r.label){case 0:return e.items?(n=b(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(y))]):[3,2];case 1:return[2,v(g(r.sent()))];case 2:return[2,v(b(e.files).map((function(e){return f(e)})))]}}))}))}function v(e){return e.filter((function(e){return-1===p.indexOf(e.name)}))}function b(e){for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,k(n)];if(e.sizen)return[!1,k(n)]}return[!0,null]}function D(e){return null!=e}function M(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=T(x(e,n),1)[0],a=T(R(e,r,o),1)[0];return t&&a}))}function L(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function P(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function F(e){e.preventDefault()}function B(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function U(e){return-1!==e.indexOf("Edge/")}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return B(e)||U(e)}function q(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var X=Object(r.forwardRef)((function(e,t){var n=e.children,a=ee(Y(e,["children"])),i=a.open,s=Y(a,["open"]);return Object(r.useImperativeHandle)(t,(function(){return{open:i}}),[i]),o.a.createElement(r.Fragment,null,n(K(K({},s),{},{open:i})))}));X.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(e){return Object(u.b)(this,void 0,void 0,(function(){return Object(u.c)(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?m(e.dataTransfer,e.type):h(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};X.defaultProps=J,X.propTypes={children:c.a.func,accept:c.a.oneOfType([c.a.string,c.a.arrayOf(c.a.string)]),multiple:c.a.bool,preventDropOnDocument:c.a.bool,noClick:c.a.bool,noKeyboard:c.a.bool,noDrag:c.a.bool,noDragEventsBubbling:c.a.bool,minSize:c.a.number,maxSize:c.a.number,maxFiles:c.a.number,disabled:c.a.bool,getFilesFromEvent:c.a.func,onFileDialogCancel:c.a.func,onDragEnter:c.a.func,onDragLeave:c.a.func,onDragOver:c.a.func,onDrop:c.a.func,onDropAccepted:c.a.func,onDropRejected:c.a.func,validator:c.a.func};var Z={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=K(K({},J),e),n=t.accept,o=t.disabled,a=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,b=t.preventDropOnDocument,y=t.noClick,g=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,S=t.validator,E=Object(r.useRef)(null),w=Object(r.useRef)(null),C=Object(r.useReducer)(te,Z),T=Q(C,2),A=T[0],j=T[1],k=A.isFocused,I=A.isFileDialogActive,D=A.draggedFiles,B=Object(r.useCallback)((function(){w.current&&(j({type:"openDialog"}),w.current.value=null,w.current.click())}),[j]),U=function(){I&&setTimeout((function(){w.current&&(w.current.files.length||(j({type:"closeDialog"}),"function"==typeof v&&v()))}),300)};Object(r.useEffect)((function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}}),[w,I,v]);var $=Object(r.useCallback)((function(e){E.current&&E.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),B()))}),[E,w]),W=Object(r.useCallback)((function(){j({type:"focus"})}),[]),H=Object(r.useCallback)((function(){j({type:"blur"})}),[]),X=Object(r.useCallback)((function(){y||(V()?setTimeout(B,0):B())}),[w,y]),ee=Object(r.useRef)([]),ne=function(e){E.current&&E.current.contains(e.target)||(e.preventDefault(),ee.current=[])};Object(r.useEffect)((function(){return b&&(document.addEventListener("dragover",F,!1),document.addEventListener("drop",ne,!1)),function(){b&&(document.removeEventListener("dragover",F),document.removeEventListener("drop",ne))}}),[E,b]);var re=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e),ee.current=[].concat(z(ee.current),[e.target]),P(e)&&Promise.resolve(a(e)).then((function(t){L(e)&&!O||(j({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,O]),oe=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e);var t=P(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,O]),ae=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e);var t=ee.current.filter((function(e){return E.current&&E.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ee.current=t,t.length>0||(j({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),P(e)&&d&&d(e))}),[E,d,O]),ie=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ue(e),ee.current=[],P(e)&&Promise.resolve(a(e)).then((function(t){if(!L(e)||O){var r=[],o=[];t.forEach((function(e){var t=Q(x(e,n),2),a=t[0],l=t[1],c=Q(R(e,s,i),2),u=c[0],d=c[1],f=S?S(e):null;if(a&&u&&!f)r.push(e);else{var p=[l,d];f&&(p=p.concat(f)),o.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach((function(e){o.push({file:e,errors:[N]})})),r.splice(0)),j({acceptedFiles:r,fileRejections:o,type:"setFiles"}),p&&p(r,o,e),o.length>0&&m&&m(o,e),r.length>0&&h&&h(r,e)}})),j({type:"reset"})}),[l,n,s,i,c,a,p,h,m,O]),se=function(e){return o?null:e},le=function(e){return g?null:se(e)},ce=function(e){return _?null:se(e)},ue=function(e){O&&e.stopPropagation()},de=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onKeyDown,a=e.onFocus,i=e.onBlur,s=e.onClick,l=e.onDragEnter,c=e.onDragOver,u=e.onDragLeave,d=e.onDrop,f=Y(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return K(K(G({onKeyDown:le(q(r,$)),onFocus:le(q(a,W)),onBlur:le(q(i,H)),onClick:se(q(s,X)),onDragEnter:ce(q(l,re)),onDragOver:ce(q(c,oe)),onDragLeave:ce(q(u,ae)),onDrop:ce(q(d,ie))},n,E),o||g?{}:{tabIndex:0}),f)}}),[E,$,W,H,X,re,oe,ae,ie,g,_,o]),fe=Object(r.useCallback)((function(e){e.stopPropagation()}),[]),pe=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,a=e.onClick,i=Y(e,["refKey","onChange","onClick"]),s=G({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:se(q(o,ie)),onClick:se(q(a,fe)),autoComplete:"off",tabIndex:-1},r,w);return K(K({},s),i)}}),[w,n,l,ie,o]),he=D.length,me=he>0&&M({files:D,accept:n,minSize:s,maxSize:i,multiple:l,maxFiles:c}),ve=he>0&&!me;return K(K({},A),{},{isDragAccept:me,isDragReject:ve,isFocused:k&&!o,getRootProps:de,getInputProps:pe,rootRef:E,inputRef:w,open:se(B)})}function te(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},e),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return K(K({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return K(K({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}var ne=n(13),re=n.n(ne),oe=n(9),ae=n(48),ie=n(80),se=n.n(ie);var le=o.a.memo(({acceptedFileTypes:e,files:t,loading:n,maxFiles:r,onSetFiles:a})=>{const{translate:s}=Object(i.d)(),l=Object(i.f)(),{dummyImage:c}=Object(i.e)(),{config:u}=Object(oe.d)(),d=r?Math.min(r,null==u?void 0:u.uploadMaxFileUploadLimit):(null==u?void 0:u.uploadMaxFileUploadLimit)||1,{getRootProps:f,getInputProps:p,isDragAccept:h,isDragActive:m,isDragReject:v}=ee({onDrop:e=>{if(0===e.length)return;const n=d-t.length;if(e.length>n&&l.error(s("uploadDialog.warning.maxFiles","You can only upload a maximum of {limit} files. {rejected} File(s) rejected",{limit:d,rejected:e.length-n})),0===n)return;const r=(e.length(e.id=`${e.name}-${e.size}-${e.lastModified}`,0===e.type.indexOf("image")?e.preview=URL.createObjectURL(e):e.preview=c,e));a(t.concat(r))},disabled:n,onDropRejected:e=>{e.forEach(e=>{l.warning(s("uploadDialog.warning.fileRejected","The given file cannot be uploaded."),e.errors.reduce((e,t)=>`${e} ${t.message}`,""))})},maxSize:(null==u?void 0:u.uploadMaxFileSize)||0,maxFiles:d,multiple:d>1,preventDropOnDocument:!0,accept:e});return o.a.createElement("section",null,o.a.createElement("div",{...f({className:re()(se.a.dropzone,h&&se.a.dropzoneAccept,m&&se.a.dropzoneActive,v&&se.a.dropzoneReject)})},o.a.createElement("input",{...p()}),o.a.createElement("p",null,s("uploadDialog.dropzone.caption","Drag 'n' drop some files here, or click to select files")),(null==u?void 0:u.uploadMaxFileSize)>0&&o.a.createElement("p",null,s("uploadDialog.maxFileSize","Maximum file size is {size} and file limit is {limit}",{size:Object(ae.a)(u.uploadMaxFileSize),limit:d}))),n&&o.a.createElement("p",null,s("uploadDialog.label.uploading","Uploading…")))}),ce=n(55),ue=n.n(ce);var de=o.a.memo(({file:e,loading:t=!1,fileState:n})=>{const r=null==n?void 0:n.success,i=n&&!r;return o.a.createElement("div",{className:re()(ue.a.thumb,i?ue.a.error:r?ue.a.success:t&&ue.a.loading),title:e.name},o.a.createElement("div",{className:ue.a.thumbInner},o.a.createElement("img",{src:e.preview,alt:e.name,className:ue.a.img}),t&&o.a.createElement(a.Icon,{icon:"spinner",spin:!0}),r&&o.a.createElement(a.Icon,{icon:"check"}),i&&o.a.createElement(a.Icon,{icon:"exclamation-circle"}),(null==n?void 0:n.result)&&o.a.createElement("span",null,n.result)))}),fe=n(81),pe=n.n(fe);var he=o.a.memo(({files:e,loading:t,uploadState:n})=>{const{translate:r}=Object(i.d)();return o.a.createElement("aside",{className:pe.a.fileList},e.selected.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:pe.a.fileListHeader},r("uploadDialog.fileList.header","Selected files")),e.selected.map(e=>o.a.createElement(de,{file:e,loading:t,fileState:n.find(t=>t.filename===e.name),key:e.id}))),e.rejected.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:pe.a.fileListHeader},r("uploadDialog.fileList.uploadedHeader","Failed uploads")),e.rejected.map(e=>o.a.createElement(de,{file:e,fileState:n.find(t=>t.filename===e.name),key:e.id}))),e.finished.length>0&&o.a.createElement(o.a.Fragment,null,o.a.createElement("h4",{className:pe.a.fileListHeader},r("uploadDialog.fileList.uploadedHeader","Successful uploads")),e.finished.map(e=>o.a.createElement(de,{file:e,fileState:n.find(t=>t.filename===e.name),key:e.id}))))}),me=n(1),ve=n(59),be=n(30);var ye=()=>{const[e,t]=Object(r.useState)({selected:[],finished:[],rejected:[]}),[n,o]=Object(me.f)(ve.a),a=Object(r.useCallback)(()=>{e.selected.forEach(e=>URL.revokeObjectURL(e.preview)),e.finished.forEach(e=>URL.revokeObjectURL(e.preview)),e.rejected.forEach(e=>URL.revokeObjectURL(e.preview)),t({selected:[],finished:[],rejected:[]}),o({uploadType:be.a.new,visible:!1})},[e,t,o]);return{state:{...n,files:e},closeDialog:a,setFiles:t}},ge=n(4),_e=n(14),Oe=n(12);var Se=ge.gql` mutation ReplaceAsset( $id: AssetId! $assetSourceId: AssetSourceId! @@ -391,7 +394,7 @@ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr result } } -`;var we=n(148),Ce=n.n(we);var Te=o.a.memo(()=>{const{translate:e}=Object(i.d)(),t=Object(i.f)(),{uploadFiles:n,uploadState:l,loading:c}=function(){const[e,{error:t,data:n,loading:r}]=Object(ge.useMutation)(Ee),o=Object(me.g)(_e.c),a=Object(me.g)(Oe.f);return{uploadFiles:t=>e({variables:{files:t,tagId:o,assetCollectionId:a}}),uploadState:(null==n?void 0:n.uploadFiles)||[],error:t,loading:r}}(),{state:u,closeDialog:d,setFiles:f}=ye(),{refetch:p}=Object(oe.c)(),h=!c&&u.files.selected.length>0,m=Object(r.useCallback)(()=>{n(u.files.selected).then(({data:{uploadFiles:n}})=>{f(e=>({selected:[],finished:[...e.finished,...e.selected.filter(e=>n.find(t=>t.success&&t.filename===e.name))],rejected:[...e.rejected,...e.selected.filter(e=>n.find(t=>!t.success&&t.filename===e.name))]})),n.some(e=>!e.success)?t.warning(e("uploadDialog.uploadFinishedWithErrors","Some files could not be uploaded")):t.ok(e("uploadDialog.uploadFinished","Upload finished")),n.some(e=>e.success)&&p()}).catch(n=>{t.error(e("fileUpload.error","Upload failed"),n)})},[n,u.files.selected,f,t,e,p]),v=Object(r.useCallback)(e=>{f(t=>({...t,selected:e}))},[f]);return o.a.createElement(s.c,{isOpen:u.visible,title:e("uploadDialog.title","Upload assets"),onRequestClose:d,actions:[o.a.createElement(a.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:d},l?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),o.a.createElement(a.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!h,onClick:m},e("uploadDialog.upload","Upload"))],style:"wide"},o.a.createElement("section",{className:Ce.a.uploadArea},o.a.createElement(le,{files:u.files.selected,loading:c,onSetFiles:v}),o.a.createElement(he,{files:u.files,loading:c,uploadState:l})))}),Ae=n(7);var je=n(56),ke=n.n(je);var Ie=o.a.memo(()=>{const{translate:e}=Object(i.d)(),t=Object(i.f)(),n=Object(oe.i)(),{replaceAsset:l,uploadState:c,loading:u}=function(){const[e,{error:t,data:n,loading:r}]=Object(ge.useMutation)(Se);return{replaceAsset:({asset:t,file:n,options:r})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,file:n,options:r}}),uploadState:(null==n?void 0:n.replaceAsset)||null,error:t,loading:r}}(),{refetch:d}=Object(oe.c)(),{approvalAttainmentStrategy:{obtainApprovalToReplaceAsset:f}}=Object(i.e)(),p=Object(me.g)(Ae.f),{state:h,closeDialog:m,setFiles:v}=ye(),[b,y]=o.a.useState({keepOriginalFilename:!1,generateRedirects:!1}),g=!u&&h.files.selected.length>0,_=Object(r.useMemo)(()=>{var e,t;const r=null===(t=null===(e=(null==n?void 0:n.file.mediaType).match(/^(?(?:[.!#%&'`^~$*+\-|\w]+))\//))||void 0===e?void 0:e.groups)||void 0===t?void 0:t.type;return r?r+"/*":""},[n]),O=Object(r.useCallback)(async()=>{if(0===h.files.selected.length)return;const r=h.files.selected[0];if(await f({asset:n}))try{await l({asset:n,file:r,options:b}),t.ok(e("uploadDialog.replacementFinished","Replacement finished")),m(),d()}catch(n){t.error(e("assetReplacement.error","Replacement failed"),n)}},[l,t,e,h,b,d,n,m,f]),S=Object(r.useCallback)(e=>{v(t=>({...t,selected:e}))},[v]);return o.a.createElement(s.c,{isOpen:h.visible,title:e("uploadDialog.replaceAsset","Replace Asset"),onRequestClose:m,actions:[o.a.createElement(a.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:m},c?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),o.a.createElement(a.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!g,onClick:O},e("uploadDialog.replace","Replace"))],style:"wide"},o.a.createElement("section",{className:ke.a.uploadArea},o.a.createElement(le,{files:h.files.selected,loading:u,onSetFiles:S,maxFiles:1,acceptedFileTypes:_}),o.a.createElement("section",{className:ke.a.optionSection},p.createAssetRedirectsOption&&o.a.createElement("div",{className:ke.a.option},o.a.createElement(a.Label,{className:ke.a.label},o.a.createElement(a.CheckBox,{isChecked:b.generateRedirects,onChange:e=>y({...b,generateRedirects:e})}),o.a.createElement("span",null,e("uploadDialog.generateRedirects","Generate redirects")))),o.a.createElement("div",{className:ke.a.option},o.a.createElement(a.Label,{className:ke.a.label},o.a.createElement(a.CheckBox,{isChecked:b.keepOriginalFilename,onChange:e=>y({...b,keepOriginalFilename:e})}),o.a.createElement("span",null,e("uploadDialog.keepOriginalFilename","Keep original filename"))))),o.a.createElement(he,{files:h.files,loading:u,uploadState:c?[c]:[]})))});var Ne=r.memo(()=>{const{visible:e,uploadType:t}=Object(me.g)(be.b);return e&&(t===be.a.update?r.createElement(Ie,null):r.createElement(Te,null))||null});var xe=r.memo(()=>{const[e,t]=Object(me.f)(be.b),{translate:n}=Object(i.d)();return r.createElement(a.Button,{size:"regular",style:e.visible&&e.uploadType===be.a.update?"brand":"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:be.a.update})},r.createElement(a.Icon,{icon:"exchange-alt"}),n("assetReplacement.toggle","Replace asset"))});function Re(){const{translate:e}=Object(i.d)(),t=Object(me.h)(be.b);return r.createElement("div",null,r.createElement(a.Button,{size:"regular",style:"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:be.a.new})},r.createElement(a.Icon,{icon:"upload"})," ",e("uploadButton.label","Upload")))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),a=n(1),i=n(3),s=n(5);var l=Object(a.b)({key:"similarAssetsModalState",default:!1});var c=r.memo(()=>{const[e,t]=Object(a.f)(l),{translate:n}=Object(s.d)();return r.createElement(i.Button,{size:"regular",style:e?"brand":"lighter",hoverStyle:"brand",onClick:()=>t(!0)},r.createElement(i.Icon,{icon:"equals"}),n("similarAssetsModal.show","Show similar assets"))}),u=n(9),d=n(4),f=n(21);var p=d.gql` +`;var we=n(148),Ce=n.n(we);var Te=o.a.memo(()=>{const{translate:e}=Object(i.d)(),t=Object(i.f)(),{uploadFiles:n,uploadState:l,loading:c}=function(){const[e,{error:t,data:n,loading:r}]=Object(ge.useMutation)(Ee),o=Object(me.g)(_e.c),a=Object(me.g)(Oe.f);return{uploadFiles:t=>e({variables:{files:t,tagId:o,assetCollectionId:a},refetchQueries:["ASSET_COLLECTIONS"]}),uploadState:(null==n?void 0:n.uploadFiles)||[],error:t,loading:r}}(),{state:u,closeDialog:d,setFiles:f}=ye(),{refetch:p}=Object(oe.c)(),h=!c&&u.files.selected.length>0,m=Object(r.useCallback)(()=>{n(u.files.selected).then(({data:{uploadFiles:n}})=>{f(e=>({selected:[],finished:[...e.finished,...e.selected.filter(e=>n.find(t=>t.success&&t.filename===e.name))],rejected:[...e.rejected,...e.selected.filter(e=>n.find(t=>!t.success&&t.filename===e.name))]})),n.some(e=>!e.success)?t.warning(e("uploadDialog.uploadFinishedWithErrors","Some files could not be uploaded")):t.ok(e("uploadDialog.uploadFinished","Upload finished")),n.some(e=>e.success)&&p()}).catch(n=>{t.error(e("fileUpload.error","Upload failed"),n)})},[n,u.files.selected,f,t,e,p]),v=Object(r.useCallback)(e=>{f(t=>({...t,selected:e}))},[f]);return o.a.createElement(s.c,{isOpen:u.visible,title:e("uploadDialog.title","Upload assets"),onRequestClose:d,actions:[o.a.createElement(a.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:d},l?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),o.a.createElement(a.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!h,onClick:m},e("uploadDialog.upload","Upload"))],style:"wide"},o.a.createElement("section",{className:Ce.a.uploadArea},o.a.createElement(le,{files:u.files.selected,loading:c,onSetFiles:v}),o.a.createElement(he,{files:u.files,loading:c,uploadState:l})))}),Ae=n(7);var je=n(56),ke=n.n(je);var Ie=o.a.memo(()=>{const{translate:e}=Object(i.d)(),t=Object(i.f)(),n=Object(oe.i)(),{replaceAsset:l,uploadState:c,loading:u}=function(){const[e,{error:t,data:n,loading:r}]=Object(ge.useMutation)(Se);return{replaceAsset:({asset:t,file:n,options:r})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,file:n,options:r}}),uploadState:(null==n?void 0:n.replaceAsset)||null,error:t,loading:r}}(),{refetch:d}=Object(oe.c)(),{approvalAttainmentStrategy:{obtainApprovalToReplaceAsset:f}}=Object(i.e)(),p=Object(me.g)(Ae.f),{state:h,closeDialog:m,setFiles:v}=ye(),[b,y]=o.a.useState({keepOriginalFilename:!1,generateRedirects:!1}),g=!u&&h.files.selected.length>0,_=Object(r.useMemo)(()=>{var e,t;const r=null===(t=null===(e=(null==n?void 0:n.file.mediaType).match(/^(?(?:[.!#%&'`^~$*+\-|\w]+))\//))||void 0===e?void 0:e.groups)||void 0===t?void 0:t.type;return r?r+"/*":""},[n]),O=Object(r.useCallback)(async()=>{if(0===h.files.selected.length)return;const r=h.files.selected[0];if(await f({asset:n}))try{await l({asset:n,file:r,options:b}),t.ok(e("uploadDialog.replacementFinished","Replacement finished")),m(),d()}catch(n){t.error(e("assetReplacement.error","Replacement failed"),n)}},[l,t,e,h,b,d,n,m,f]),S=Object(r.useCallback)(e=>{v(t=>({...t,selected:e}))},[v]);return o.a.createElement(s.c,{isOpen:h.visible,title:e("uploadDialog.replaceAsset","Replace Asset"),onRequestClose:m,actions:[o.a.createElement(a.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:m},c?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),o.a.createElement(a.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!g,onClick:O},e("uploadDialog.replace","Replace"))],style:"wide"},o.a.createElement("section",{className:ke.a.uploadArea},o.a.createElement(le,{files:h.files.selected,loading:u,onSetFiles:S,maxFiles:1,acceptedFileTypes:_}),o.a.createElement("section",{className:ke.a.optionSection},p.createAssetRedirectsOption&&o.a.createElement("div",{className:ke.a.option},o.a.createElement(a.Label,{className:ke.a.label},o.a.createElement(a.CheckBox,{isChecked:b.generateRedirects,onChange:e=>y({...b,generateRedirects:e})}),o.a.createElement("span",null,e("uploadDialog.generateRedirects","Generate redirects")))),o.a.createElement("div",{className:ke.a.option},o.a.createElement(a.Label,{className:ke.a.label},o.a.createElement(a.CheckBox,{isChecked:b.keepOriginalFilename,onChange:e=>y({...b,keepOriginalFilename:e})}),o.a.createElement("span",null,e("uploadDialog.keepOriginalFilename","Keep original filename"))))),o.a.createElement(he,{files:h.files,loading:u,uploadState:c?[c]:[]})))});var Ne=r.memo(()=>{const{visible:e,uploadType:t}=Object(me.g)(be.b);return e&&(t===be.a.update?r.createElement(Ie,null):r.createElement(Te,null))||null});var xe=r.memo(()=>{const[e,t]=Object(me.f)(be.b),{translate:n}=Object(i.d)();return r.createElement(a.Button,{size:"regular",style:e.visible&&e.uploadType===be.a.update?"brand":"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:be.a.update})},r.createElement(a.Icon,{icon:"exchange-alt"}),n("assetReplacement.toggle","Replace asset"))});function Re(){const{translate:e}=Object(i.d)(),t=Object(me.h)(be.b);return r.createElement("div",null,r.createElement(a.Button,{size:"regular",style:"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:be.a.new})},r.createElement(a.Icon,{icon:"upload"})," ",e("uploadButton.label","Upload")))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),a=n(1),i=n(3),s=n(5);var l=Object(a.b)({key:"similarAssetsModalState",default:!1});var c=r.memo(()=>{const[e,t]=Object(a.f)(l),{translate:n}=Object(s.d)();return r.createElement(i.Button,{size:"regular",style:e?"brand":"lighter",hoverStyle:"brand",onClick:()=>t(!0)},r.createElement(i.Icon,{icon:"equals"}),n("similarAssetsModal.show","Show similar assets"))}),u=n(9),d=n(4),f=n(21);var p=d.gql` query SIMILAR_ASSETS($id: AssetId!, $assetSourceId: AssetSourceId!, $includeUsage: Boolean = false) { includeUsage @client(always: true) @export(as: "includeUsage") similarAssets(id: $id, assetSourceId: $assetSourceId) { @@ -478,4 +481,4 @@ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr fragment AssetLastModified on Asset { lastModified } -`;var w=o.a.memo(()=>{const e=function(){const{config:e}=Object(v.d)(),[t,n]=Object(r.useState)(null),[o,a]=Object(r.useState)([]),{data:s,client:l}=Object(i.useQuery)(S,{variables:{since:null!=t?t:null==e?void 0:e.currentServerTime},pollInterval:5e3,skip:!(null==e?void 0:e.currentServerTime)});return Object(r.useEffect)(()=>{if(!(null==s?void 0:s.changedAssets))return;const{lastModified:e,changes:t}=s.changedAssets;e&&n(e);const r=t.filter(e=>{if("ASSET_CREATED"===e.type)return!0;const t=l.cache.readFragment({fragment:E,id:l.cache.identify({__typename:"Asset",id:e.assetId})});return!!t&&t.lastModified0===r.length?e:r)},[null==s?void 0:s.changedAssets,l]),o}(),{refetch:t}=Object(v.b)(),{refetch:n}=Object(v.c)();return Object(r.useEffect)(()=>{null==e||e.forEach(e=>{switch(e.type){case"ASSET_REPLACED":case"ASSET_UPDATED":t({id:e.assetId,assetSourceId:O.c}).then(()=>{console.info(e.assetId,e.type,"An asset was updated due to a remote change")}),Object(_.c)({assetId:e.assetId,assetSourceId:O.c});break;case"ASSET_CREATED":n().then(()=>{console.info(e.assetId,e.type,"An asset was created remotely")}),Object(_.a)({assetId:e.assetId,assetSourceId:O.c});break;case"ASSET_REMOVED":n().then(()=>{console.info(e.assetId,e.type,"An asset was removed remotely")}),Object(_.b)({assetId:e.assetId,assetSourceId:O.c});break;default:console.debug(e,"unhandled remote change")}})},[e,t,n]),null}),C=n(50),T=n(59),A=n(49),j=n(157);n(195);var k=Object(m.b)({key:"selectedAssetForPreviewState",default:null}),I=n(159),N=n.n(I);function x(){const{containerRef:e,isInNodeCreationDialog:t}=Object(f.e)(),n=Object(m.g)(b.c),[a,i]=Object(m.f)(k),{asset:s}=Object(v.b)(a),l=((e=null)=>{const t=o.a.useRef(e);return o.a.useEffect(()=>{if(null===e){const e=document.createElement("div");return e.setAttribute("data-ignore_click_outside","true"),document.body.appendChild(e),t.current=e,()=>e.remove()}t.current=e},[e]),t})(t?null:e.current),[c,u]=Object(r.useMemo)(()=>{if(!s)return[null,null];const e=n.findIndex(({id:e})=>e===s.id);return[e>0?n[e-1]:null,el.current},wrapperClassName:N.a.lightbox,mainSrc:s.previewUrl,mainSrcThumbnail:s.thumbnailUrl,imageTitle:s.label,imageCaption:s.caption,onCloseRequest:()=>i(null),prevSrc:null==c?void 0:c.previewUrl,prevSrcThumbnail:null==c?void 0:c.thumbnailUrl,prevLabel:null==c?void 0:c.label,onMovePrevRequest:()=>i(c?{assetId:c.id,assetSourceId:c.assetSource.id}:null),nextSrc:null==u?void 0:u.previewUrl,nextSrcThumbnail:null==u?void 0:u.thumbnailUrl,nextLabel:null==u?void 0:u.label,onMoveNextRequest:()=>i(u?{assetId:u.id,assetSourceId:u.assetSource.id}:null)}):null}var R=n(77),D=n(14),M=n(12),L=n(11);var P=o.a.memo(()=>{const{selectionMode:e}=Object(f.e)(),t=[!e&&A.b,O.b,M.b,O.a].filter(Boolean);return o.a.createElement(L.b,null,t.map((e,t)=>o.a.createElement(e,{key:t})))}),F=n(54),B=n(3),U=n(67),V=n.n(U);var q=o.a.memo(()=>{const e=Object(M.h)(),t=Object(D.f)(),n=Object(m.h)(b.k),a=Object(m.g)(b.n),{translate:i}=Object(f.d)(),{assetCollections:s}=Object(M.g)(),l=Object(r.useMemo)(()=>{let n="question",r=null,o=[];return"asset"!==a&&(e&&(o=Object(M.d)(e,s)),"assetCollection"===a?(n="folder",r=null==e?void 0:e.title):"tag"===a&&(n="tag",r=null==t?void 0:t.label)),{icon:n,label:r,path:o}},[t,e,a,s]);return l.label&&"asset"!==a?o.a.createElement("div",{className:V.a.currentSelection},o.a.createElement(B.Headline,{type:"h2",className:V.a.headline},"assetCollection"===a?i("currentSelection.assetCollection.headline","Selected collection"):i("currentSelection.tag.headline","Selected tag")),o.a.createElement(L.d,{icon:l.icon,className:V.a.label,label:l.label}),o.a.createElement(B.Headline,{type:"h3",className:V.a.headline},i("currentSelection.path.headline","Path")),o.a.createElement("div",{className:V.a.breadcrumb},o.a.createElement("button",{type:"button",onClick:()=>n({assetCollectionId:null,tagId:null})},"/"),l.path.map(({id:e,title:t})=>o.a.createElement("button",{key:e,type:"button",onClick:()=>n({assetCollectionId:e,tagId:null})},t)))):null});var z,Q=o.a.memo(()=>{const e=[q,F.b,F.a,F.f,F.d];return o.a.createElement(L.b,null,e.map((e,t)=>o.a.createElement(e,{key:t})))}),$=n(90);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CLIPBOARD=1]="CLIPBOARD",e[e.UNUSED_ASSETS=2]="UNUSED_ASSETS"}(z||(z={}));const W=Object(m.d)({key:"mainViewState",get:({get:e})=>{const t=e(g.f),n=e(y.d);return t?z.CLIPBOARD:n?z.UNUSED_ASSETS:z.DEFAULT}});var H;!function(e){e.Thumbnails="thumbnails",e.List="list"}(H||(H={}));const K=Object(m.b)({key:"ViewModeState",default:H.Thumbnails,effects:[Object(b.i)("ViewModeState")]});var G=()=>{const{assetCount:e}=Object(v.a)(),t=Object(m.g)(W),{called:n,load:o,unusedAssetCount:a}=Object(y.f)(),i=t===z.UNUSED_ASSETS?a:e;return Object(r.useEffect)(()=>{t!==z.UNUSED_ASSETS||n||o()},[t,n,o]),i},Y=n(160),X=n.n(Y);var J=o.a.memo(()=>{const{translate:e}=Object(f.d)(),t=G();return o.a.createElement("div",{className:X.a.assetCount},t," ",e("pagination.assetCount","assets"))}),Z=n(106),ee=n.n(Z);var te=o.a.memo(({title:e,label:t,onClick:n,page:r=null,selected:a=!1,disabled:i=!1,icon:s})=>o.a.createElement("li",{className:c()(ee.a.item,a&&ee.a.selected)},s?o.a.createElement(B.IconButton,{icon:s,disabled:i,size:"regular",style:"transparent",hoverStyle:"brand",title:e,onClick:()=>n(r)}):o.a.createElement(B.Button,{icon:s,disabled:i,size:"regular",style:a?"brand":"transparent",hoverStyle:"brand",title:e,onClick:()=>n(r)},t||r))),ne=n(68),re=n.n(ne);var oe=o.a.memo(()=>{const[e,t]=Object(m.f)(b.e),n=G(),{pagination:{assetsPerPage:a,maximumLinks:i}}=Object(m.g)(b.f),{translate:s}=Object(f.d)(),l=Object(m.g)(W),u=![z.DEFAULT,z.UNUSED_ASSETS].includes(l),d=Math.ceil(n/a),[p,h]=Object(r.useState)({start:0,end:0,hasLessPages:!1,hasMorePages:!1,pages:[]}),v=Object(r.useCallback)(e=>t(e),[t]),y=Object(r.useCallback)(()=>t(e=>e-1),[t]),g=Object(r.useCallback)(()=>t(e=>e+1),[t]);return Object(r.useMemo)(()=>{const t=Math.min(i,d),n=Math.floor(t/2);let r=e-n,o=e+n+(t%2==0?1:0);r<1&&(o-=r-1),o>d&&(r-=o-d),r=Math.max(r,1),o=Math.min(o,d);const a=[...Array(o-r+1)].map((e,t)=>t+r);h({start:r,end:o,hasLessPages:r>2,hasMorePages:o+10&&o.a.createElement("ol",{className:c()(re.a.list,u&&re.a.disabled)},o.a.createElement(te,{icon:"angle-left",title:s("pagination.previousPageTitle","Go to previous page"),onClick:y,disabled:u||e<=1}),p.start>1&&o.a.createElement(te,{title:s("pagination.firstPageTitle","Go to first page"),onClick:v,disabled:u,page:1}),p.hasLessPages&&o.a.createElement("li",{className:re.a.ellipsis},"…"),p.pages.map(t=>o.a.createElement(te,{key:t,selected:e===t,onClick:v,disabled:u,title:s("pagination.page","Go to page "+t,[t]),page:t})),p.hasMorePages&&o.a.createElement("li",{className:re.a.ellipsis},"…"),p.end{const{isInNodeCreationDialog:e,selectionMode:t}=Object(f.e)(),n=[J,oe,g.b];return o.a.createElement("div",{className:c()(ie.a.bottomBar,{[ie.a.selectionMode]:e||t,[ie.a.isInNodeCreationDialog]:e})},n.map((e,t)=>o.a.createElement(e,{key:t})))}),le=n(31),ce=n(96),ue=n.n(ce);var de=o.a.memo(()=>{const{isInNodeCreationDialog:e,selectionMode:t}=Object(f.e)(),[n,a]=Object(m.f)(le.c),{translate:i}=Object(f.d)(),s=e||t,l=Object(r.useCallback)(e=>{a({...n,sortBy:e})},[n,a]),c=Object(m.g)(W),u=Object(r.useCallback)(()=>{a({...n,sortDirection:n.sortDirection===le.b.Asc?le.b.Desc:le.b.Asc})},[n,a]),d=Object(r.useMemo)(()=>[{value:le.a.LastModified,label:i("sortingState.sortBy.values.lastModified","Last Modified"),icon:s?"":"calendar"},{value:le.a.Name,label:i("sortingState.sortBy.values.name","Name"),icon:s?"":"font"},{value:le.a.Size,label:i("sortingState.sortBy.values.size","File size"),icon:s?"":"weight-hanging"}],[i,s]);return[z.DEFAULT,z.UNUSED_ASSETS].includes(c)?o.a.createElement("div",{className:ue.a.sortingState},o.a.createElement("div",{className:ue.a.selectBox},o.a.createElement(B.SelectBox,{className:ue.a.selectBox,options:Object.values(d),onValueChange:l,value:n.sortBy,optionValueField:"value"})),o.a.createElement(B.IconButton,{icon:n.sortDirection===le.b.Asc?"sort-amount-up":"sort-amount-down",size:"regular",title:i("sortingState.dortOrder.value."+(n.sortDirection===le.b.Asc?le.b.Desc:le.b.Asc),"Switch sort direction"),style:"neutral",hoverStyle:"brand",onClick:u})):null}),fe=n(39),pe=n.n(fe);var he=o.a.memo(()=>{const{translate:e}=Object(f.d)(),{mediaTypeFilterOptions:t}=Object(m.g)(b.f),[n,a]=Object(m.f)(b.o),i=Object(m.g)(b.m),s=Object(m.h)(b.e),l=Object(m.g)(y.d),c=Object(m.g)(b.d),u=n,d=Object(r.useCallback)(e=>{a(e),s(1)},[s,a]),p=Object(r.useMemo)(()=>{if(!t||!i||"all"==i||l)return[];const e=t[i];return Object.keys(e).filter(e=>{var t;return!c.mediaTypes||(null===(t=c.mediaTypes)||void 0===t?void 0:t.includes(e))}).map(t=>({label:e[t],value:t}))},[i,c.mediaTypes,t,l]);return 0===p.length?null:o.a.createElement("div",{className:pe.a.typeFilter},o.a.createElement(B.SelectBox,{className:pe.a.selectBox,options:p,onValueChange:d,value:u,allowEmpty:!c.mediaTypes||c.mediaTypes.length>1,placeholder:e("typeFilter.assetType.values.all","Mediatype"),optionValueField:"value"}))});var me=o.a.memo(()=>{const e=Object(m.g)(b.f),{assetType:t}=Object(m.g)(b.d),[n,a]=Object(m.f)(b.m),i=Object(m.h)(b.o),[s,l]=Object(m.f)(y.d),c=Object(m.h)(b.e),{translate:u}=Object(f.d)(),d=s?"unused":n,p=Object(r.useCallback)(e=>{l("unused"===e),i(""),"unused"!==e&&a(e),c(1)},[l,c,a,i]),h=Object(r.useMemo)(()=>{const n=t&&"all"!==t,r={video:{value:"video",label:u("typeFilter.assetType.values.video","Video"),disabled:n&&"video"!==t},audio:{value:"audio",label:u("typeFilter.assetType.values.audio","Audio"),disabled:n&&"audio"!==t},image:{value:"image",label:u("typeFilter.assetType.values.image","Image"),disabled:n&&"image"!==t},document:{value:"document",label:u("typeFilter.assetType.values.document","Document"),disabled:n&&"document"!==t}};return e.queryAssetUsage&&(r.unused={value:"unused",label:u("typeFilter.assetType.values.unused","Unused"),disabled:n}),r},[u,e,t]);return o.a.createElement("div",{className:pe.a.typeFilter},o.a.createElement(B.SelectBox,{className:pe.a.selectBox,options:Object.values(h),onValueChange:p,value:d,allowEmpty:!t||"all"===t,placeholder:u("typeFilter.assetType.values.all","All"),optionValueField:"value"}))});var ve=o.a.memo(()=>{const{translate:e}=Object(f.d)(),t=Object(m.g)(W),n=Object(m.g)(b.m),a=Object(m.g)(b.o),i=Object(r.useRef)(),s=[me,he];return Object(r.useEffect)(()=>{var e;(null===(e=i.current)||void 0===e?void 0:e.open)&&(i.current.open=!1)},[a]),[z.DEFAULT,z.UNUSED_ASSETS].includes(t)?o.a.createElement("details",{ref:i,className:c()(pe.a.assetsFilter,(n||a)&&pe.a.active)},o.a.createElement("summary",{title:e("AssetsFilter.title","Toggle asset filters")},o.a.createElement(L.d,{icon:"filter",label:"Filter"})),o.a.createElement("div",{className:pe.a.filterList},s.map((e,t)=>o.a.createElement(e,{key:t})))):null}),be=n(161),ye=n.n(be);var ge=o.a.memo(()=>{const{translate:e}=Object(f.d)(),[t,n]=Object(m.f)(K);return o.a.createElement("div",{className:ye.a.viewModeSelector},o.a.createElement(B.IconButton,{icon:t===H.List?"th":"th-list",size:"regular",title:e("viewModeSelector.viewMode."+(t===H.List?H.Thumbnails:H.List),"Switch mode"),style:"neutral",hoverStyle:"brand",onClick:()=>n(e=>e===H.List?H.Thumbnails:H.List)}))}),_e=n(53),Oe=n(162),Se=n.n(Oe);var Ee=o.a.memo(()=>{const[e,t]=Object(m.f)(b.j),n=Object(m.h)(b.e),[a,i]=Object(r.useState)(e.toString()),{translate:s}=Object(f.d)(),l=Object(m.g)(W),c=Object(r.useCallback)(()=>{t(_e.a.fromString(a)),n(1)},[a,n,t]);return l!==z.DEFAULT?null:o.a.createElement("div",{className:Se.a.searchBox},o.a.createElement(B.TextInput,{value:a,type:"search",onChange:e=>i(e),onEnterKey:c,placeholder:s("searchBox.placeholder","Search")}))}),we=n(107),Ce=n.n(we);var Te=o.a.memo(()=>{const{selectionMode:e}=Object(f.e)(),t=[g.a,Ee,ve,de,ge];return o.a.createElement("div",{className:c()(Ce.a.topBar,e&&Ce.a.topBarSelectionMode)},t.map((e,t)=>o.a.createElement(e,{key:t})))});var Ae=o.a.memo(({asset:e})=>{var t;const{translate:n}=Object(f.d)(),a=Object(f.f)(),{approvalAttainmentStrategy:i}=Object(f.e)(),s=Object(m.h)(k),{importAsset:l}=Object(v.g)(),{deleteAsset:c}=Object(v.e)(),[u,d]=Object(m.f)(Object(g.d)({assetId:e.id,assetSourceId:e.assetSource.id})),p=Object(r.useCallback)(()=>{l({assetId:e.id,assetSourceId:e.assetSource.id}).then(()=>{a.ok(n("assetActions.import.success","Asset was successfully imported"))}).catch(e=>{a.error(n("assetActions.import.error","Failed to import asset"),e.message)})},[l,e,a,n]),h=Object(r.useCallback)(async e=>{if(await i.obtainApprovalToDeleteAsset({asset:e}))try{return await c({assetId:e.id,assetSourceId:e.assetSource.id}),a.ok(n("action.deleteAsset.success","The asset has been deleted")),!0}catch({message:e}){a.error(n("action.deleteAsset.error","Error while trying to delete the asset"),e)}return!1},[a,n,c,i]);return e?o.a.createElement(o.a.Fragment,null,o.a.createElement(B.IconButton,{title:n("itemActions.preview","Preview asset"),icon:"expand-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:()=>s({assetId:e.id,assetSourceId:e.assetSource.id})}),!e.imported&&!e.localId&&o.a.createElement(B.IconButton,{title:n("itemActions.import","Import asset"),icon:"cloud-download-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:p}),!e.assetSource.readOnly&&o.a.createElement(B.IconButton,{title:e.isInUse?n("itemActions.delete.disabled","Cannot delete an asset that is in use"):n("itemActions.delete","Delete asset"),disabled:e.isInUse,icon:"trash",size:"regular",style:"transparent",hoverStyle:"error",onClick:()=>h(e)}),(null===(t=e.file)||void 0===t?void 0:t.url)&&o.a.createElement("a",{href:e.file.url,download:!0,title:n("itemActions.download","Download asset")},o.a.createElement(B.IconButton,{icon:"download",size:"regular",style:"transparent",hoverStyle:"success"})),e.localId&&o.a.createElement(B.IconButton,{title:n("itemActions.copyToClipboard","Copy to clipboard"),icon:u?"clipboard-check":"clipboard",size:"regular",style:"transparent",hoverStyle:"brand",className:u?"button--active":"",onClick:d})):null}),je=n(45),ke=n.n(je);var Ie=o.a.memo(({assetIdentities:e})=>{const{isInNodeCreationDialog:t}=Object(f.e)(),{translate:n}=Object(f.d)(),a=Object(m.h)(k),i=Object(v.h)(),s=Object(r.useCallback)((e,t=!1)=>{t?a(e):i(e)},[a,i]);return o.a.createElement("section",{className:c()(ke.a.listView,t&&ke.a.listViewFullHeight)},o.a.createElement("table",null,o.a.createElement("thead",null,o.a.createElement("tr",null,o.a.createElement("th",{className:ke.a.tableHeader}),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.name","Name")),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.lastModified","Last Modified")),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.fileSize","File size")),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.mediaType","Type")),o.a.createElement("th",{className:ke.a.tableHeader}))),o.a.createElement("tbody",null,e.map((e,t)=>o.a.createElement(Pe,{key:t,assetIdentity:e,onSelect:s})))))}),Ne=n(48);var xe=o.a.memo(({assetIdentity:e})=>{const{translate:t}=Object(f.d)(),[n,r]=Object(m.f)(Object(g.d)(e));return n?o.a.createElement(B.IconButton,{title:t("itemActions.removeFromClipboard","Remove from clipboard"),icon:"trash",size:"regular",style:"transparent",hoverStyle:"warn",onClick:r}):null}),Re=n(46),De=n.n(Re);const Me={weekday:"short",year:"numeric",month:"short",day:"numeric"},Le=Object(m.e)({key:"ListViewItemSelection",get:e=>({get:t})=>{var n;return(null===(n=t(b.l))||void 0===n?void 0:n.assetId)===e}});var Pe=o.a.memo(({assetIdentity:e,onSelect:t})=>{const{dummyImage:n,isAssetSelectable:a,selectionMode:i}=Object(f.e)(),{asset:s,loading:l}=Object(v.b)(e),u=Object(m.g)(Le(e.assetId)),d=Object(r.useMemo)(()=>a(s),[s,a]),p=Object(r.useCallback)(()=>t(e,u&&!i),[t,e,u,i]);return o.a.createElement("tr",{className:c()(De.a.listViewItem,u&&De.a.selected)},o.a.createElement("td",{className:De.a.previewColumn,onClick:p},o.a.createElement("picture",null,d?o.a.createElement("img",{src:(null==s?void 0:s.thumbnailUrl)||n,alt:null==s?void 0:s.label,width:40,height:36}):o.a.createElement(B.Icon,{icon:"ban",color:"error"}))),o.a.createElement("td",{className:De.a.labelColumn,onClick:p},s&&o.a.createElement(L.a,{label:s.label})),o.a.createElement("td",{className:De.a.lastModifiedColumn,onClick:p},s&&new Date(s.lastModified).toLocaleString([],Me)),o.a.createElement("td",{className:De.a.fileSizeColumn,onClick:p},s&&Object(Ne.a)(s.file.size)),o.a.createElement("td",{className:De.a.mediaTypeColumn,onClick:p,title:null==s?void 0:s.file.mediaType},null==s?void 0:s.file.mediaType),o.a.createElement("td",{className:De.a.actionsColumn},!l&&(s?o.a.createElement(Ae,{asset:s}):o.a.createElement(xe,{assetIdentity:e}))))},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId);var Fe=o.a.memo(({loadingText:e,emptyText:t})=>{const n=Object(m.g)(b.h);return o.a.createElement("div",{className:"loadingLabel"},n?e:t)}),Be=n(163),Ue=n.n(Be);var Ve=o.a.memo(()=>{const e=Object(m.g)(K),{assets:t}=Object(y.g)(),n=Object(m.g)(g.e),a=Object(m.g)(W),i=Object(m.h)(g.f),s=Object(m.g)(b.j),{translate:l}=Object(f.d)(),c=Object(m.g)(b.b),[u,d]=Object(r.useState)(c),p=Object(r.useMemo)(()=>t.filter(e=>null==e?void 0:e.id).map(({id:e,assetSource:t})=>({assetId:e,assetSourceId:t.id})),[t]);return Object(r.useEffect)(()=>{a===z.CLIPBOARD?d(n):a===z.UNUSED_ASSETS?d(p):d(c)},[a,c,p,n]),u.length>0?e===H.List?o.a.createElement(Ie,{assetIdentities:u}):o.a.createElement(Ke,{assetIdentities:u}):o.a.createElement("div",{className:Ue.a.emptyStateWrapper},a===z.CLIPBOARD?o.a.createElement(B.Button,{size:"regular",style:"brand",hoverStyle:"brand",onClick:()=>i(!1)},l("clipboard.close","Close clipboard")):o.a.createElement(Fe,{loadingText:l("assetList.loading","Loading assets"),emptyText:(null==s?void 0:s.toString())?l("assetList.emptyForSearchTerm",`No assets found for "${s}"`,{searchTerm:s}):l("assetList.empty","No assets found")}))}),qe=n(51),ze=n.n(qe);const Qe=Object(m.e)({key:"ThumbnailSelection",get:e=>({get:t})=>{var n;return(null===(n=t(b.l))||void 0===n?void 0:n.assetId)===e}});var $e=o.a.memo(({assetIdentity:e,onSelect:t})=>{const{translate:n}=Object(f.d)(),{dummyImage:a,isAssetSelectable:i,selectionMode:s}=Object(f.e)(),{asset:l,loading:u}=Object(v.b)(e),d=Object(m.g)(Qe(e.assetId)),p=Object(r.useMemo)(()=>i(l),[l,i]);return o.a.createElement("figure",{className:c()(ze.a.thumbnail,!p&&ze.a.disabled),title:null==l?void 0:l.label},(null==l?void 0:l.imported)&&o.a.createElement("span",{className:ze.a.label},n("asset.label.imported","Imported")),o.a.createElement("picture",{onClick:()=>t(e,d&&!s),className:ze.a.picture},o.a.createElement("img",{src:u||!l?a:l.thumbnailUrl,alt:null==l?void 0:l.label})),o.a.createElement("figcaption",{className:c()(ze.a.caption,d&&ze.a.selected)},l&&o.a.createElement(o.a.Fragment,null,p&&l.file?o.a.createElement("img",{src:l.file.typeIcon.url,alt:l.file.typeIcon.alt}):o.a.createElement(B.Icon,{icon:"ban",color:"error"}),o.a.createElement(L.a,{label:l.label}))),o.a.createElement("div",{className:ze.a.toolBar},!u&&(l?o.a.createElement(Ae,{asset:l}):o.a.createElement(xe,{assetIdentity:e}))))},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId),We=n(164),He=n.n(We);var Ke=o.a.memo(({assetIdentities:e})=>{const t=Object(m.h)(k),n=Object(v.h)(),a=Object(r.useCallback)((e,r=!1)=>{r?t(e):n(e)},[t,n]);return o.a.createElement("section",{className:He.a.thumbnailView},e.map((e,t)=>o.a.createElement($e,{key:t,assetIdentity:e,onSelect:a})))}),Ge=n(60),Ye=n(58),Xe=n.n(Ye),Je=n(47),Ze=n.n(Je);n(196);var et=o.a.memo(()=>{const{selectionMode:e,isInNodeCreationDialog:t,containerRef:n}=Object(f.e)(),r=Object(m.g)(T.a),a=Object(m.g)(D.b),i=Object(m.g)(M.e),s=Object(m.g)(R.c),l=Object(m.g)(y.c),u=Object(m.g)(C.c),d=Object(m.g)(b.j),p=Object(v.h)(),h=Object(m.h)(O.d);return o.a.useEffect(()=>{const e=d.getAssetIdentifierIfPresent();e&&(p(e),h("neos"))},[d]),o.a.createElement("div",{className:c()(Ze.a.container,Ze.a.mediaModuleApp,Xe.a.mediaModuleTheme,{[Ze.a.selectionMode]:e,[Ze.a.fullHeight]:t}),ref:n},o.a.createElement($.a,null),o.a.createElement("div",{className:Ze.a.gridLeft},o.a.createElement(Ge.a,null,o.a.createElement(P,null))),o.a.createElement("div",{className:Ze.a.gridTop},o.a.createElement(Te,null)),o.a.createElement("div",{className:Ze.a.gridMain},o.a.createElement(Ge.a,null,o.a.createElement(Ve,null))),o.a.createElement(se,null),!e&&o.a.createElement("div",{className:Ze.a.gridRight},o.a.createElement(Ge.a,null,o.a.createElement(Q,null))),o.a.createElement(x,null),l&&o.a.createElement(y.a,null),r.visible&&o.a.createElement(A.c,null),s&&o.a.createElement(R.a,null),a.visible&&o.a.createElement(D.a,null),i&&o.a.createElement(M.c,null),u&&o.a.createElement(C.a,null),o.a.createElement(f.a,null),o.a.createElement(g.c,null),o.a.createElement(w,null))}),tt=n(108),nt=n.n(tt);let rt=null;class ot extends o.a.PureComponent{constructor(e){super(e),this.translate=(e,t,n,r="Flowpack.Media.Ui",o="Main")=>this.props.i18nRegistry.translate(e,t,n,r,o),this.getInitialState=()=>{const{frontendConfiguration:e,constraints:t,type:n}=this.props;return{applicationContext:"selection",featureFlags:e,constraints:{...t||{},assetType:"images"===n?"image":n}}},this.state={initialLeftSideBarHiddenState:!1,initialNodeCreationDialogOpenState:!1},this.notificationHandler={info:t=>e.addFlashMessage(t,t,"info"),ok:t=>e.addFlashMessage(t,t,"success"),notice:t=>e.addFlashMessage(t,t,"info"),warning:(t,n="")=>e.addFlashMessage(t,n,"error"),error:(t,n="")=>e.addFlashMessage(t,n,"error")}}componentDidMount(){const{isLeftSideBarHidden:e,isNodeCreationDialogOpen:t,toggleSidebar:n}=this.props;this.setState({initialLeftSideBarHiddenState:e,initialNodeCreationDialogOpenState:t}),e||t||n()}componentWillUnmount(){const{isLeftSideBarHidden:e,toggleSidebar:t}=this.props,{initialLeftSideBarHiddenState:n,initialNodeCreationDialogOpenState:r}=this.state;n===e||r||t()}getConfig(){return{endpoints:{graphql:"/neos/graphql/media-assets",upload:"/neos/media-ui/upload"},dummyImage:"/_Resources/Static/Packages/Neos.Neos/Images/dummy-image.svg"}}getApolloClient(){if(!rt){const{endpoints:e}=this.getConfig(),t=h.a.createCache(this.props.frontendConfiguration);rt=new i.ApolloClient({cache:t,link:i.ApolloLink.from([Object(h.c)(this.notificationHandler),Object(s.createUploadLink)({uri:e.graphql,credentials:"same-origin"})]),typeDefs:[f.c,y.e]})}return rt}render(){const{onComplete:e}=this.props,{dummyImage:t}=this.getConfig(),n=Object(r.createRef)(),a=this.state.initialNodeCreationDialogOpenState;return o.a.createElement("div",{className:c()(nt.a.mediaSelectionScreen,{[nt.a.isInNodeCreationDialog]:a})},o.a.createElement(p.a,{client:this.getApolloClient(),translate:this.translate,notificationApi:this.notificationHandler,initialState:this.getInitialState()},o.a.createElement(f.b,{dummyImage:t,onAssetSelection:e,selectionMode:!0,isInNodeCreationDialog:a,containerRef:n},o.a.createElement(et,null))))}}const at=Object(u.neos)(e=>({i18nRegistry:e.get("i18n"),frontendConfiguration:e.get("frontendConfiguration").get("Flowpack.Media.Ui")}));var it=Object(a.connect)(()=>({}),{addFlashMessage:d.actions.UI.FlashMessages.add,toggleSidebar:d.actions.UI.LeftSideBar.toggle})(Object(a.connect)(e=>({isLeftSideBarHidden:e.ui.leftSideBar.isHidden,isNodeCreationDialogOpen:e.ui.nodeCreationDialog.isOpen}))(at(ot)))},function(e,t,n){"use strict";n.r(t),n.d(t,"MediaDetailsScreen",(function(){return $}));var r=n(0),o=n.n(r),a=n(74),i=n(4),s=n(91),l=n(87),c=n(75),u=n(5),d=n(89),f=n(62),p=n(1),h=n(13),m=n.n(h),v=n(9),b=n(19),y=n(50),g=n(59),_=n(49),O=n(90),S=n(60),E=n(54),w=n(14),C=n(12),T=n(3),A=n(20);var j=o.a.memo(({asset:e,buildLinkToMediaUi:t})=>{var n,r;const{translate:a}=Object(u.d)(),[i,s]=Object(p.f)(Object(A.d)({assetId:e.id,assetSourceId:e.assetSource.id}));return o.a.createElement(o.a.Fragment,null,o.a.createElement("a",{href:t(e),title:a("previewActions.openInMediaModule","Open asset in media module"),target:"_blank",rel:"noreferrer noopener"},o.a.createElement(T.IconButton,{icon:"image",size:"regular",style:"transparent",hoverStyle:"brand"})),(null===(n=e.file)||void 0===n?void 0:n.url)&&o.a.createElement("a",{href:e.file.url,title:a("previewActions.openInNewTab","Open asset in a new browser tab"),target:"_blank",rel:"noreferrer noopener"},o.a.createElement(T.IconButton,{icon:"external-link-alt",size:"regular",style:"transparent",hoverStyle:"brand"})),(null===(r=e.file)||void 0===r?void 0:r.url)&&o.a.createElement("a",{href:e.file.url,download:!0,title:a("previewActions.download","Download asset")},o.a.createElement(T.IconButton,{icon:"download",size:"regular",style:"transparent",hoverStyle:"warn"})),e.localId&&o.a.createElement(T.IconButton,{title:a("itemActions.copyToClipboard","Copy to clipboard"),icon:i?"clipboard-check":"clipboard",size:"regular",style:"transparent",hoverStyle:"brand",className:i?"button--active":"",onClick:s}))}),k=n(65),I=n.n(k);var N=o.a.memo(({asset:e,loading:t,buildLinkToMediaUi:n})=>{const{translate:r}=Object(u.d)(),{dummyImage:a}=Object(u.e)();return o.a.createElement("figure",{className:m()(I.a.preview,t&&I.a.loading),title:null==e?void 0:e.label},(null==e?void 0:e.imported)&&o.a.createElement("span",{className:I.a.label},r("asset.label.imported","Imported")),o.a.createElement("picture",{className:I.a.picture},o.a.createElement("img",{src:t||!e?a:e.previewUrl,alt:null==e?void 0:e.label}),o.a.createElement("div",{className:I.a.toolBar},!t&&e&&o.a.createElement(j,{asset:e,buildLinkToMediaUi:n}))))},(e,t)=>{var n,r;return(null===(n=e.asset)||void 0===n?void 0:n.id)===(null===(r=t.asset)||void 0===r?void 0:r.id)}),x=n(58),R=n.n(x),D=n(66),M=n.n(D),L=n(7);var P=o.a.memo(({buildLinkToMediaUi:e})=>{const{containerRef:t}=Object(u.e)(),{visible:n}=Object(p.g)(g.a),{visible:r}=Object(p.g)(w.b),a=Object(p.g)(C.e),i=Object(p.g)(b.c),s=Object(p.g)(y.c),l=Object(p.g)(L.l),{asset:c,loading:d}=Object(v.b)(l);return o.a.createElement("div",{className:m()(M.a.container,R.a.mediaModuleTheme,d&&M.a.loading),ref:t},o.a.createElement(O.a,null),o.a.createElement("div",{className:m()(M.a.main,d&&M.a.loading)},o.a.createElement(S.a,null,o.a.createElement("div",{className:M.a.inspector},o.a.createElement(E.b,null)),o.a.createElement(N,{asset:c,loading:d,buildLinkToMediaUi:e}))),i&&o.a.createElement(b.a,null),n&&o.a.createElement(_.c,null),r&&o.a.createElement(w.a,null),a&&o.a.createElement(C.c,null),s&&o.a.createElement(y.a,null),o.a.createElement(u.a,null))}),F=n(92);const B=e=>({...F.a,obtainApprovalToUpdateAsset:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.updateAsset.confirm.title","Update Asset",[t.label]),message:e.intl.translate("actions.updateAsset.confirm.message",`Please be aware that updating asset "${t.label}" will affect all of its occurrences on every page. Do you still wish to proceed?`,[t.label]),buttonLabel:e.intl.translate("actions.updateAsset.confirm.buttonLabel","Yes, proceed with updating the asset",[t.label])}),obtainApprovalToSetAssetTags:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.setAssetTags.confirm.title","Set Asset Tags",[t.label]),message:e.intl.translate("actions.setAssetTags.confirm.message",`Please be aware that changing the asset tags of asset "${t.label}" will affect all of its occurrences on every page. Do you still wish to proceed?`,[t.label]),buttonLabel:e.intl.translate("actions.setAssetTags.confirm.buttonLabel","Yes, proceed with setting the asset tags",[t.label])}),obtainApprovalToSetAssetCollections:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.setAssetCollections.confirm.title","Set Asset Collections",[t.label]),message:e.intl.translate("actions.setAssetCollections.confirm.message",`Please be aware that changing the asset collections of asset "${t.label}" will affect all of its occurrences on every page. Do you still wish to proceed?`,[t.label]),buttonLabel:e.intl.translate("actions.setAssetCollections.confirm.buttonLabel","Yes, proceed with setting the asset collections",[t.label])}),obtainApprovalToDeleteAsset:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.deleteAsset.confirm.title","Delete Asset",[t.label]),message:e.intl.translate("action.deleteAsset.confirm.message",`Do you really want to delete the asset "${t.label}"?`,[t.label]),buttonLabel:e.intl.translate("actions.deleteAsset.confirm.buttonLabel","Yes, proceed with deleting the asset",[t.label])}),obtainApprovalToReplaceAsset:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.replaceAsset.confirm.title","Replace Asset",[t.label]),message:e.intl.translate("action.replaceAsset.confirm.message",`Do you really want to replace the asset "${t.label}"?`,[t.label]),buttonLabel:e.intl.translate("actions.replaceAsset.confirm.buttonLabel","Yes, proceed with replacing the asset",[t.label])})});var U=n(156),V=n.n(U);let q=null;class z extends o.a.PureComponent{constructor(e){super(e),this.translate=(e,t,n,r="Flowpack.Media.Ui",o="Main")=>this.props.i18nRegistry.translate(e,t,n,r,o),this.getInitialState=()=>{const{frontendConfiguration:e,imageIdentity:t,type:n,constraints:r}=this.props;return{applicationContext:"details",featureFlags:e,selectedAsset:{assetId:t,assetSourceId:"neos"},selectedInspectorView:"asset",constraints:{...r||{},assetType:"images"===n?"image":n}}},this.notificationHandler={info:t=>e.addFlashMessage(t,t,"info"),ok:t=>e.addFlashMessage(t,t,"success"),notice:t=>e.addFlashMessage(t,t,"info"),warning:(t,n="")=>e.addFlashMessage(t,n,"error"),error:(t,n="")=>e.addFlashMessage(t,n,"error")}}getConfig(){return{endpoints:{graphql:"/neos/graphql/media-assets",upload:"/neos/media-ui/upload"},dummyImage:"/_Resources/Static/Packages/Neos.Neos/Images/dummy-image.svg",buildLinkToMediaUi:e=>"/neos/management/mediaui?searchTerm=id:"+e.id}}getApolloClient(){if(!q){const{endpoints:e}=this.getConfig(),t=f.a.createCache(this.props.frontendConfiguration);q=new i.ApolloClient({cache:t,link:i.ApolloLink.from([Object(f.c)(this.notificationHandler),Object(s.createUploadLink)({uri:e.graphql,credentials:"same-origin"})]),typeDefs:[u.c,b.e]})}return q}render(){const{addFlashMessage:e,onComplete:t}=this.props,{dummyImage:n,buildLinkToMediaUi:a}=this.getConfig(),i=Object(r.createRef)(),s={info:t=>e(t,t,"info"),ok:t=>e(t,t,"success"),notice:t=>e(t,t,"info"),warning:(t,n="")=>e(t,n,"error"),error:(t,n="")=>e(t,n,"error")};return o.a.createElement("div",{className:V.a.mediaDetailsScreen},o.a.createElement(d.a,{client:this.getApolloClient(),translate:this.translate,notificationApi:s,initialState:this.getInitialState()},o.a.createElement(u.b,{dummyImage:n,onAssetSelection:t,selectionMode:!0,containerRef:i,approvalAttainmentStrategyFactory:B},o.a.createElement(P,{buildLinkToMediaUi:a}))))}}const Q=Object(l.neos)(e=>({i18nRegistry:e.get("i18n"),frontendConfiguration:e.get("frontendConfiguration").get("Flowpack.Media.Ui")}));var $=Object(a.connect)(()=>({}),{addFlashMessage:c.actions.UI.FlashMessages.add})(Q(z))}]); \ No newline at end of file +`;var w=o.a.memo(()=>{const e=function(){const{config:e}=Object(v.d)(),[t,n]=Object(r.useState)(null),[o,a]=Object(r.useState)([]),{data:s,client:l}=Object(i.useQuery)(S,{variables:{since:null!=t?t:null==e?void 0:e.currentServerTime},pollInterval:5e3,skip:!(null==e?void 0:e.currentServerTime)});return Object(r.useEffect)(()=>{if(!(null==s?void 0:s.changedAssets))return;const{lastModified:e,changes:t}=s.changedAssets;e&&n(e);const r=t.filter(e=>{if("ASSET_CREATED"===e.type)return!0;const t=l.cache.readFragment({fragment:E,id:l.cache.identify({__typename:"Asset",id:e.assetId})});return!!t&&t.lastModified0===r.length?e:r)},[null==s?void 0:s.changedAssets,l]),o}(),{refetch:t}=Object(v.b)(),{refetch:n}=Object(v.c)();return Object(r.useEffect)(()=>{null==e||e.forEach(e=>{switch(e.type){case"ASSET_REPLACED":case"ASSET_UPDATED":t({id:e.assetId,assetSourceId:O.c}).then(()=>{console.info(e.assetId,e.type,"An asset was updated due to a remote change")}),Object(_.c)({assetId:e.assetId,assetSourceId:O.c});break;case"ASSET_CREATED":n().then(()=>{console.info(e.assetId,e.type,"An asset was created remotely")}),Object(_.a)({assetId:e.assetId,assetSourceId:O.c});break;case"ASSET_REMOVED":n().then(()=>{console.info(e.assetId,e.type,"An asset was removed remotely")}),Object(_.b)({assetId:e.assetId,assetSourceId:O.c});break;default:console.debug(e,"unhandled remote change")}})},[e,t,n]),null}),C=n(50),T=n(59),A=n(49),j=n(157);n(195);var k=Object(m.b)({key:"selectedAssetForPreviewState",default:null}),I=n(159),N=n.n(I);function x(){const{containerRef:e,isInNodeCreationDialog:t}=Object(f.e)(),n=Object(m.g)(b.c),[a,i]=Object(m.f)(k),{asset:s}=Object(v.b)(a),l=((e=null)=>{const t=o.a.useRef(e);return o.a.useEffect(()=>{if(null===e){const e=document.createElement("div");return e.setAttribute("data-ignore_click_outside","true"),document.body.appendChild(e),t.current=e,()=>e.remove()}t.current=e},[e]),t})(t?null:e.current),[c,u]=Object(r.useMemo)(()=>{if(!s)return[null,null];const e=n.findIndex(({id:e})=>e===s.id);return[e>0?n[e-1]:null,el.current},wrapperClassName:N.a.lightbox,mainSrc:s.previewUrl,mainSrcThumbnail:s.thumbnailUrl,imageTitle:s.label,imageCaption:s.caption,onCloseRequest:()=>i(null),prevSrc:null==c?void 0:c.previewUrl,prevSrcThumbnail:null==c?void 0:c.thumbnailUrl,prevLabel:null==c?void 0:c.label,onMovePrevRequest:()=>i(c?{assetId:c.id,assetSourceId:c.assetSource.id}:null),nextSrc:null==u?void 0:u.previewUrl,nextSrcThumbnail:null==u?void 0:u.thumbnailUrl,nextLabel:null==u?void 0:u.label,onMoveNextRequest:()=>i(u?{assetId:u.id,assetSourceId:u.assetSource.id}:null)}):null}var R=n(77),D=n(14),M=n(12),L=n(11);var P=o.a.memo(()=>{const{selectionMode:e}=Object(f.e)(),t=[!e&&A.b,O.b,M.b,O.a].filter(Boolean);return o.a.createElement(L.b,null,t.map((e,t)=>o.a.createElement(e,{key:t})))}),F=n(54),B=n(3),U=n(67),V=n.n(U);var q=o.a.memo(()=>{const e=Object(M.h)(),t=Object(D.f)(),n=Object(m.h)(b.k),a=Object(m.g)(b.n),{translate:i}=Object(f.d)(),{assetCollections:s}=Object(M.g)(),l=Object(r.useMemo)(()=>{let n="question",r=null,o=[];return"asset"!==a&&(e&&(o=Object(M.d)(e,s)),"assetCollection"===a?(n="folder",r=null==e?void 0:e.title):"tag"===a&&(n="tag",r=null==t?void 0:t.label)),{icon:n,label:r,path:o}},[t,e,a,s]);return l.label&&"asset"!==a?o.a.createElement("div",{className:V.a.currentSelection},o.a.createElement(B.Headline,{type:"h2",className:V.a.headline},"assetCollection"===a?i("currentSelection.assetCollection.headline","Selected collection"):i("currentSelection.tag.headline","Selected tag")),o.a.createElement(L.d,{icon:l.icon,className:V.a.label,label:l.label}),o.a.createElement(B.Headline,{type:"h3",className:V.a.headline},i("currentSelection.path.headline","Path")),o.a.createElement("div",{className:V.a.breadcrumb},o.a.createElement("button",{type:"button",onClick:()=>n({assetCollectionId:null,tagId:null})},"/"),l.path.map(({id:e,title:t})=>o.a.createElement("button",{key:e,type:"button",onClick:()=>n({assetCollectionId:e,tagId:null})},t)))):null});var z,Q=o.a.memo(()=>{const e=[q,F.b,F.a,F.f,F.d];return o.a.createElement(L.b,null,e.map((e,t)=>o.a.createElement(e,{key:t})))}),$=n(90);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CLIPBOARD=1]="CLIPBOARD",e[e.UNUSED_ASSETS=2]="UNUSED_ASSETS"}(z||(z={}));const W=Object(m.d)({key:"mainViewState",get:({get:e})=>{const t=e(g.f),n=e(y.d);return t?z.CLIPBOARD:n?z.UNUSED_ASSETS:z.DEFAULT}});var H;!function(e){e.Thumbnails="thumbnails",e.List="list"}(H||(H={}));const K=Object(m.b)({key:"ViewModeState",default:H.Thumbnails,effects:[Object(b.i)("ViewModeState")]});var G=()=>{const{assetCount:e}=Object(v.a)(),t=Object(m.g)(W),{called:n,load:o,unusedAssetCount:a}=Object(y.f)(),i=t===z.UNUSED_ASSETS?a:e;return Object(r.useEffect)(()=>{t!==z.UNUSED_ASSETS||n||o()},[t,n,o]),i},Y=n(160),X=n.n(Y);var J=o.a.memo(()=>{const{translate:e}=Object(f.d)(),t=G();return o.a.createElement("div",{className:X.a.assetCount},t," ",e("pagination.assetCount","assets"))}),Z=n(106),ee=n.n(Z);var te=o.a.memo(({title:e,label:t,onClick:n,page:r=null,selected:a=!1,disabled:i=!1,icon:s})=>o.a.createElement("li",{className:c()(ee.a.item,a&&ee.a.selected)},s?o.a.createElement(B.IconButton,{icon:s,disabled:i,size:"regular",style:"transparent",hoverStyle:"brand",title:e,onClick:()=>n(r)}):o.a.createElement(B.Button,{icon:s,disabled:i,size:"regular",style:a?"brand":"transparent",hoverStyle:"brand",title:e,onClick:()=>n(r)},t||r))),ne=n(68),re=n.n(ne);var oe=o.a.memo(()=>{const[e,t]=Object(m.f)(b.e),n=G(),{pagination:{assetsPerPage:a,maximumLinks:i}}=Object(m.g)(b.f),{translate:s}=Object(f.d)(),l=Object(m.g)(W),u=![z.DEFAULT,z.UNUSED_ASSETS].includes(l),d=Math.ceil(n/a),[p,h]=Object(r.useState)({start:0,end:0,hasLessPages:!1,hasMorePages:!1,pages:[]}),v=Object(r.useCallback)(e=>t(e),[t]),y=Object(r.useCallback)(()=>t(e=>e-1),[t]),g=Object(r.useCallback)(()=>t(e=>e+1),[t]);return Object(r.useMemo)(()=>{const t=Math.min(i,d),n=Math.floor(t/2);let r=e-n,o=e+n+(t%2==0?1:0);r<1&&(o-=r-1),o>d&&(r-=o-d),r=Math.max(r,1),o=Math.min(o,d);const a=[...Array(o-r+1)].map((e,t)=>t+r);h({start:r,end:o,hasLessPages:r>2,hasMorePages:o+10&&o.a.createElement("ol",{className:c()(re.a.list,u&&re.a.disabled)},o.a.createElement(te,{icon:"angle-left",title:s("pagination.previousPageTitle","Go to previous page"),onClick:y,disabled:u||e<=1}),p.start>1&&o.a.createElement(te,{title:s("pagination.firstPageTitle","Go to first page"),onClick:v,disabled:u,page:1}),p.hasLessPages&&o.a.createElement("li",{className:re.a.ellipsis},"…"),p.pages.map(t=>o.a.createElement(te,{key:t,selected:e===t,onClick:v,disabled:u,title:s("pagination.page","Go to page "+t,[t]),page:t})),p.hasMorePages&&o.a.createElement("li",{className:re.a.ellipsis},"…"),p.end{const{isInNodeCreationDialog:e,selectionMode:t}=Object(f.e)(),n=[J,oe,g.b];return o.a.createElement("div",{className:c()(ie.a.bottomBar,{[ie.a.selectionMode]:e||t,[ie.a.isInNodeCreationDialog]:e})},n.map((e,t)=>o.a.createElement(e,{key:t})))}),le=n(31),ce=n(96),ue=n.n(ce);var de=o.a.memo(()=>{const{isInNodeCreationDialog:e,selectionMode:t}=Object(f.e)(),[n,a]=Object(m.f)(le.c),{translate:i}=Object(f.d)(),s=e||t,l=Object(r.useCallback)(e=>{a({...n,sortBy:e})},[n,a]),c=Object(m.g)(W),u=Object(r.useCallback)(()=>{a({...n,sortDirection:n.sortDirection===le.b.Asc?le.b.Desc:le.b.Asc})},[n,a]),d=Object(r.useMemo)(()=>[{value:le.a.LastModified,label:i("sortingState.sortBy.values.lastModified","Last Modified"),icon:s?"":"calendar"},{value:le.a.Name,label:i("sortingState.sortBy.values.name","Name"),icon:s?"":"font"},{value:le.a.Size,label:i("sortingState.sortBy.values.size","File size"),icon:s?"":"weight-hanging"}],[i,s]);return[z.DEFAULT,z.UNUSED_ASSETS].includes(c)?o.a.createElement("div",{className:ue.a.sortingState},o.a.createElement("div",{className:ue.a.selectBox},o.a.createElement(B.SelectBox,{className:ue.a.selectBox,options:Object.values(d),onValueChange:l,value:n.sortBy,optionValueField:"value"})),o.a.createElement(B.IconButton,{icon:n.sortDirection===le.b.Asc?"sort-amount-up":"sort-amount-down",size:"regular",title:i("sortingState.dortOrder.value."+(n.sortDirection===le.b.Asc?le.b.Desc:le.b.Asc),"Switch sort direction"),style:"neutral",hoverStyle:"brand",onClick:u})):null}),fe=n(39),pe=n.n(fe);var he=o.a.memo(()=>{const{translate:e}=Object(f.d)(),{mediaTypeFilterOptions:t}=Object(m.g)(b.f),[n,a]=Object(m.f)(b.o),i=Object(m.g)(b.m),s=Object(m.h)(b.e),l=Object(m.g)(y.d),c=Object(m.g)(b.d),u=n,d=Object(r.useCallback)(e=>{a(e),s(1)},[s,a]),p=Object(r.useMemo)(()=>{if(!t||!i||"all"==i||l)return[];const e=t[i];return Object.keys(e).filter(e=>{var t;return!c.mediaTypes||(null===(t=c.mediaTypes)||void 0===t?void 0:t.includes(e))}).map(t=>({label:e[t],value:t}))},[i,c.mediaTypes,t,l]);return 0===p.length?null:o.a.createElement("div",{className:pe.a.typeFilter},o.a.createElement(B.SelectBox,{className:pe.a.selectBox,options:p,onValueChange:d,value:u,allowEmpty:!c.mediaTypes||c.mediaTypes.length>1,placeholder:e("typeFilter.assetType.values.all","Mediatype"),optionValueField:"value"}))});var me=o.a.memo(()=>{const e=Object(m.g)(b.f),{assetType:t}=Object(m.g)(b.d),[n,a]=Object(m.f)(b.m),i=Object(m.h)(b.o),[s,l]=Object(m.f)(y.d),c=Object(m.h)(b.e),{translate:u}=Object(f.d)(),d=s?"unused":n,p=Object(r.useCallback)(e=>{l("unused"===e),i(""),"unused"!==e&&a(e),c(1)},[l,c,a,i]),h=Object(r.useMemo)(()=>{const n=t&&"all"!==t,r={video:{value:"video",label:u("typeFilter.assetType.values.video","Video"),disabled:n&&"video"!==t},audio:{value:"audio",label:u("typeFilter.assetType.values.audio","Audio"),disabled:n&&"audio"!==t},image:{value:"image",label:u("typeFilter.assetType.values.image","Image"),disabled:n&&"image"!==t},document:{value:"document",label:u("typeFilter.assetType.values.document","Document"),disabled:n&&"document"!==t}};return e.queryAssetUsage&&(r.unused={value:"unused",label:u("typeFilter.assetType.values.unused","Unused"),disabled:n}),r},[u,e,t]);return o.a.createElement("div",{className:pe.a.typeFilter},o.a.createElement(B.SelectBox,{className:pe.a.selectBox,options:Object.values(h),onValueChange:p,value:d,allowEmpty:!t||"all"===t,placeholder:u("typeFilter.assetType.values.all","All"),optionValueField:"value"}))});var ve=o.a.memo(()=>{const{translate:e}=Object(f.d)(),t=Object(m.g)(W),n=Object(m.g)(b.m),a=Object(m.g)(b.o),i=Object(r.useRef)(),s=[me,he];return Object(r.useEffect)(()=>{var e;(null===(e=i.current)||void 0===e?void 0:e.open)&&(i.current.open=!1)},[a]),[z.DEFAULT,z.UNUSED_ASSETS].includes(t)?o.a.createElement("details",{ref:i,className:c()(pe.a.assetsFilter,(n||a)&&pe.a.active)},o.a.createElement("summary",{title:e("AssetsFilter.title","Toggle asset filters")},o.a.createElement(L.d,{icon:"filter",label:"Filter"})),o.a.createElement("div",{className:pe.a.filterList},s.map((e,t)=>o.a.createElement(e,{key:t})))):null}),be=n(161),ye=n.n(be);var ge=o.a.memo(()=>{const{translate:e}=Object(f.d)(),[t,n]=Object(m.f)(K);return o.a.createElement("div",{className:ye.a.viewModeSelector},o.a.createElement(B.IconButton,{icon:t===H.List?"th":"th-list",size:"regular",title:e("viewModeSelector.viewMode."+(t===H.List?H.Thumbnails:H.List),"Switch mode"),style:"neutral",hoverStyle:"brand",onClick:()=>n(e=>e===H.List?H.Thumbnails:H.List)}))}),_e=n(53),Oe=n(162),Se=n.n(Oe);var Ee=o.a.memo(()=>{const[e,t]=Object(m.f)(b.j),n=Object(m.h)(b.e),[a,i]=Object(r.useState)(e.toString()),{translate:s}=Object(f.d)(),l=Object(m.g)(W),c=Object(r.useCallback)(()=>{t(_e.a.fromString(a)),n(1)},[a,n,t]);return l!==z.DEFAULT?null:o.a.createElement("div",{className:Se.a.searchBox},o.a.createElement(B.TextInput,{value:a,type:"search",onChange:e=>i(e),onEnterKey:c,placeholder:s("searchBox.placeholder","Search")}))}),we=n(107),Ce=n.n(we);var Te=o.a.memo(()=>{const{selectionMode:e}=Object(f.e)(),t=[g.a,Ee,ve,de,ge];return o.a.createElement("div",{className:c()(Ce.a.topBar,e&&Ce.a.topBarSelectionMode)},t.map((e,t)=>o.a.createElement(e,{key:t})))});var Ae=o.a.memo(({asset:e})=>{var t;const{translate:n}=Object(f.d)(),a=Object(f.f)(),{approvalAttainmentStrategy:i}=Object(f.e)(),s=Object(m.h)(k),{importAsset:l}=Object(v.g)(),{deleteAsset:c}=Object(v.e)(),[u,d]=Object(m.f)(Object(g.d)({assetId:e.id,assetSourceId:e.assetSource.id})),p=Object(r.useCallback)(()=>{l({assetId:e.id,assetSourceId:e.assetSource.id}).then(()=>{a.ok(n("assetActions.import.success","Asset was successfully imported"))}).catch(e=>{a.error(n("assetActions.import.error","Failed to import asset"),e.message)})},[l,e,a,n]),h=Object(r.useCallback)(async e=>{if(await i.obtainApprovalToDeleteAsset({asset:e}))try{return await c({assetId:e.id,assetSourceId:e.assetSource.id}),a.ok(n("action.deleteAsset.success","The asset has been deleted")),!0}catch({message:e}){a.error(e)}return!1},[a,n,c,i]);return e?o.a.createElement(o.a.Fragment,null,o.a.createElement(B.IconButton,{title:n("itemActions.preview","Preview asset"),icon:"expand-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:()=>s({assetId:e.id,assetSourceId:e.assetSource.id})}),!e.imported&&!e.localId&&o.a.createElement(B.IconButton,{title:n("itemActions.import","Import asset"),icon:"cloud-download-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:p}),!e.assetSource.readOnly&&o.a.createElement(B.IconButton,{title:e.isInUse?n("itemActions.delete.disabled","Cannot delete an asset that is in use"):n("itemActions.delete","Delete asset"),disabled:e.isInUse,icon:"trash",size:"regular",style:"transparent",hoverStyle:"error",onClick:()=>h(e)}),(null===(t=e.file)||void 0===t?void 0:t.url)&&o.a.createElement("a",{href:e.file.url,download:!0,title:n("itemActions.download","Download asset")},o.a.createElement(B.IconButton,{icon:"download",size:"regular",style:"transparent",hoverStyle:"success"})),e.localId&&o.a.createElement(B.IconButton,{title:n("itemActions.copyToClipboard","Copy to clipboard"),icon:u?"clipboard-check":"clipboard",size:"regular",style:"transparent",hoverStyle:"brand",className:u?"button--active":"",onClick:d})):null}),je=n(45),ke=n.n(je);var Ie=o.a.memo(({assetIdentities:e})=>{const{isInNodeCreationDialog:t}=Object(f.e)(),{translate:n}=Object(f.d)(),a=Object(m.h)(k),i=Object(v.h)(),s=Object(r.useCallback)((e,t=!1)=>{t?a(e):i(e)},[a,i]);return o.a.createElement("section",{className:c()(ke.a.listView,t&&ke.a.listViewFullHeight)},o.a.createElement("table",null,o.a.createElement("thead",null,o.a.createElement("tr",null,o.a.createElement("th",{className:ke.a.tableHeader}),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.name","Name")),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.lastModified","Last Modified")),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.fileSize","File size")),o.a.createElement("th",{className:ke.a.tableHeader},n("thumbnailView.header.mediaType","Type")),o.a.createElement("th",{className:ke.a.tableHeader}))),o.a.createElement("tbody",null,e.map((e,t)=>o.a.createElement(Pe,{key:t,assetIdentity:e,onSelect:s})))))}),Ne=n(48);var xe=o.a.memo(({assetIdentity:e})=>{const{translate:t}=Object(f.d)(),[n,r]=Object(m.f)(Object(g.d)(e));return n?o.a.createElement(B.IconButton,{title:t("itemActions.removeFromClipboard","Remove from clipboard"),icon:"trash",size:"regular",style:"transparent",hoverStyle:"warn",onClick:r}):null}),Re=n(46),De=n.n(Re);const Me={weekday:"short",year:"numeric",month:"short",day:"numeric"},Le=Object(m.e)({key:"ListViewItemSelection",get:e=>({get:t})=>{var n;return(null===(n=t(b.l))||void 0===n?void 0:n.assetId)===e}});var Pe=o.a.memo(({assetIdentity:e,onSelect:t})=>{const{dummyImage:n,isAssetSelectable:a,selectionMode:i}=Object(f.e)(),{asset:s,loading:l}=Object(v.b)(e),u=Object(m.g)(Le(e.assetId)),d=Object(r.useMemo)(()=>a(s),[s,a]),p=Object(r.useCallback)(()=>t(e,u&&!i),[t,e,u,i]);return o.a.createElement("tr",{className:c()(De.a.listViewItem,u&&De.a.selected)},o.a.createElement("td",{className:De.a.previewColumn,onClick:p},o.a.createElement("picture",null,d?o.a.createElement("img",{src:(null==s?void 0:s.thumbnailUrl)||n,alt:null==s?void 0:s.label,width:40,height:36}):o.a.createElement(B.Icon,{icon:"ban",color:"error"}))),o.a.createElement("td",{className:De.a.labelColumn,onClick:p},s&&o.a.createElement(L.a,{label:s.label})),o.a.createElement("td",{className:De.a.lastModifiedColumn,onClick:p},s&&new Date(s.lastModified).toLocaleString([],Me)),o.a.createElement("td",{className:De.a.fileSizeColumn,onClick:p},s&&Object(Ne.a)(s.file.size)),o.a.createElement("td",{className:De.a.mediaTypeColumn,onClick:p,title:null==s?void 0:s.file.mediaType},null==s?void 0:s.file.mediaType),o.a.createElement("td",{className:De.a.actionsColumn},!l&&(s?o.a.createElement(Ae,{asset:s}):o.a.createElement(xe,{assetIdentity:e}))))},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId);var Fe=o.a.memo(({loadingText:e,emptyText:t})=>{const n=Object(m.g)(b.h);return o.a.createElement("div",{className:"loadingLabel"},n?e:t)}),Be=n(163),Ue=n.n(Be);var Ve=o.a.memo(()=>{const e=Object(m.g)(K),{assets:t}=Object(y.g)(),n=Object(m.g)(g.e),a=Object(m.g)(W),i=Object(m.h)(g.f),s=Object(m.g)(b.j),{translate:l}=Object(f.d)(),c=Object(m.g)(b.b),[u,d]=Object(r.useState)(c),p=Object(r.useMemo)(()=>t.filter(e=>null==e?void 0:e.id).map(({id:e,assetSource:t})=>({assetId:e,assetSourceId:t.id})),[t]);return Object(r.useEffect)(()=>{a===z.CLIPBOARD?d(n):a===z.UNUSED_ASSETS?d(p):d(c)},[a,c,p,n]),u.length>0?e===H.List?o.a.createElement(Ie,{assetIdentities:u}):o.a.createElement(Ke,{assetIdentities:u}):o.a.createElement("div",{className:Ue.a.emptyStateWrapper},a===z.CLIPBOARD?o.a.createElement(B.Button,{size:"regular",style:"brand",hoverStyle:"brand",onClick:()=>i(!1)},l("clipboard.close","Close clipboard")):o.a.createElement(Fe,{loadingText:l("assetList.loading","Loading assets"),emptyText:(null==s?void 0:s.toString())?l("assetList.emptyForSearchTerm",`No assets found for "${s}"`,{searchTerm:s}):l("assetList.empty","No assets found")}))}),qe=n(51),ze=n.n(qe);const Qe=Object(m.e)({key:"ThumbnailSelection",get:e=>({get:t})=>{var n;return(null===(n=t(b.l))||void 0===n?void 0:n.assetId)===e}});var $e=o.a.memo(({assetIdentity:e,onSelect:t})=>{const{translate:n}=Object(f.d)(),{dummyImage:a,isAssetSelectable:i,selectionMode:s}=Object(f.e)(),{asset:l,loading:u}=Object(v.b)(e),d=Object(m.g)(Qe(e.assetId)),p=Object(r.useMemo)(()=>i(l),[l,i]);return o.a.createElement("figure",{className:c()(ze.a.thumbnail,!p&&ze.a.disabled),title:null==l?void 0:l.label},(null==l?void 0:l.imported)&&o.a.createElement("span",{className:ze.a.label},n("asset.label.imported","Imported")),o.a.createElement("picture",{onClick:()=>t(e,d&&!s),className:ze.a.picture},o.a.createElement("img",{src:u||!l?a:l.thumbnailUrl,alt:null==l?void 0:l.label})),o.a.createElement("figcaption",{className:c()(ze.a.caption,d&&ze.a.selected)},l&&o.a.createElement(o.a.Fragment,null,p&&l.file?o.a.createElement("img",{src:l.file.typeIcon.url,alt:l.file.typeIcon.alt}):o.a.createElement(B.Icon,{icon:"ban",color:"error"}),o.a.createElement(L.a,{label:l.label}))),o.a.createElement("div",{className:ze.a.toolBar},!u&&(l?o.a.createElement(Ae,{asset:l}):o.a.createElement(xe,{assetIdentity:e}))))},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId),We=n(164),He=n.n(We);var Ke=o.a.memo(({assetIdentities:e})=>{const t=Object(m.h)(k),n=Object(v.h)(),a=Object(r.useCallback)((e,r=!1)=>{r?t(e):n(e)},[t,n]);return o.a.createElement("section",{className:He.a.thumbnailView},e.map((e,t)=>o.a.createElement($e,{key:t,assetIdentity:e,onSelect:a})))}),Ge=n(60),Ye=n(58),Xe=n.n(Ye),Je=n(47),Ze=n.n(Je);n(196);var et=o.a.memo(()=>{const{selectionMode:e,isInNodeCreationDialog:t,containerRef:n}=Object(f.e)(),r=Object(m.g)(T.a),a=Object(m.g)(D.b),i=Object(m.g)(M.e),s=Object(m.g)(R.c),l=Object(m.g)(y.c),u=Object(m.g)(C.c),d=Object(m.g)(b.j),p=Object(v.h)(),h=Object(m.h)(O.d);return o.a.useEffect(()=>{const e=d.getAssetIdentifierIfPresent();e&&(p(e),h("neos"))},[d]),o.a.createElement("div",{className:c()(Ze.a.container,Ze.a.mediaModuleApp,Xe.a.mediaModuleTheme,{[Ze.a.selectionMode]:e,[Ze.a.fullHeight]:t}),ref:n},o.a.createElement($.a,null),o.a.createElement("div",{className:Ze.a.gridLeft},o.a.createElement(Ge.a,null,o.a.createElement(P,null))),o.a.createElement("div",{className:Ze.a.gridTop},o.a.createElement(Te,null)),o.a.createElement("div",{className:Ze.a.gridMain},o.a.createElement(Ge.a,null,o.a.createElement(Ve,null))),o.a.createElement(se,null),!e&&o.a.createElement("div",{className:Ze.a.gridRight},o.a.createElement(Ge.a,null,o.a.createElement(Q,null))),o.a.createElement(x,null),l&&o.a.createElement(y.a,null),r.visible&&o.a.createElement(A.c,null),s&&o.a.createElement(R.a,null),a.visible&&o.a.createElement(D.a,null),i&&o.a.createElement(M.c,null),u&&o.a.createElement(C.a,null),o.a.createElement(f.a,null),o.a.createElement(g.c,null),o.a.createElement(w,null))}),tt=n(108),nt=n.n(tt);let rt=null;class ot extends o.a.PureComponent{constructor(e){super(e),this.translate=(e,t,n,r="Flowpack.Media.Ui",o="Main")=>this.props.i18nRegistry.translate(e,t,n,r,o),this.getInitialState=()=>{const{frontendConfiguration:e,constraints:t,type:n}=this.props;return{applicationContext:"selection",featureFlags:e,constraints:{...t||{},assetType:"images"===n?"image":n}}},this.state={initialLeftSideBarHiddenState:!1,initialNodeCreationDialogOpenState:!1},this.notificationHandler={info:t=>e.addFlashMessage(t,t,"info"),ok:t=>e.addFlashMessage(t,t,"success"),notice:t=>e.addFlashMessage(t,t,"info"),warning:(t,n="")=>e.addFlashMessage(t,n,"error"),error:(t,n="")=>e.addFlashMessage(t,n,"error")}}componentDidMount(){const{isLeftSideBarHidden:e,isNodeCreationDialogOpen:t,toggleSidebar:n}=this.props;this.setState({initialLeftSideBarHiddenState:e,initialNodeCreationDialogOpenState:t}),e||t||n()}componentWillUnmount(){const{isLeftSideBarHidden:e,toggleSidebar:t}=this.props,{initialLeftSideBarHiddenState:n,initialNodeCreationDialogOpenState:r}=this.state;n===e||r||t()}getConfig(){return{endpoints:{graphql:"/neos/graphql/media-assets",upload:"/neos/media-ui/upload"},dummyImage:"/_Resources/Static/Packages/Neos.Neos/Images/dummy-image.svg"}}getApolloClient(){if(!rt){const{endpoints:e}=this.getConfig(),t=h.a.createCache(this.props.frontendConfiguration);rt=new i.ApolloClient({cache:t,link:i.ApolloLink.from([Object(h.c)(this.notificationHandler),Object(s.createUploadLink)({uri:e.graphql,credentials:"same-origin"})]),typeDefs:[f.c,y.e]})}return rt}render(){const{onComplete:e}=this.props,{dummyImage:t}=this.getConfig(),n=Object(r.createRef)(),a=this.state.initialNodeCreationDialogOpenState;return o.a.createElement("div",{className:c()(nt.a.mediaSelectionScreen,{[nt.a.isInNodeCreationDialog]:a})},o.a.createElement(p.a,{client:this.getApolloClient(),translate:this.translate,notificationApi:this.notificationHandler,initialState:this.getInitialState()},o.a.createElement(f.b,{dummyImage:t,onAssetSelection:e,selectionMode:!0,isInNodeCreationDialog:a,containerRef:n},o.a.createElement(et,null))))}}const at=Object(u.neos)(e=>({i18nRegistry:e.get("i18n"),frontendConfiguration:e.get("frontendConfiguration").get("Flowpack.Media.Ui")}));var it=Object(a.connect)(()=>({}),{addFlashMessage:d.actions.UI.FlashMessages.add,toggleSidebar:d.actions.UI.LeftSideBar.toggle})(Object(a.connect)(e=>({isLeftSideBarHidden:e.ui.leftSideBar.isHidden,isNodeCreationDialogOpen:e.ui.nodeCreationDialog.isOpen}))(at(ot)))},function(e,t,n){"use strict";n.r(t),n.d(t,"MediaDetailsScreen",(function(){return $}));var r=n(0),o=n.n(r),a=n(74),i=n(4),s=n(91),l=n(87),c=n(75),u=n(5),d=n(89),f=n(62),p=n(1),h=n(13),m=n.n(h),v=n(9),b=n(19),y=n(50),g=n(59),_=n(49),O=n(90),S=n(60),E=n(54),w=n(14),C=n(12),T=n(3),A=n(20);var j=o.a.memo(({asset:e,buildLinkToMediaUi:t})=>{var n,r;const{translate:a}=Object(u.d)(),[i,s]=Object(p.f)(Object(A.d)({assetId:e.id,assetSourceId:e.assetSource.id}));return o.a.createElement(o.a.Fragment,null,o.a.createElement("a",{href:t(e),title:a("previewActions.openInMediaModule","Open asset in media module"),target:"_blank",rel:"noreferrer noopener"},o.a.createElement(T.IconButton,{icon:"image",size:"regular",style:"transparent",hoverStyle:"brand"})),(null===(n=e.file)||void 0===n?void 0:n.url)&&o.a.createElement("a",{href:e.file.url,title:a("previewActions.openInNewTab","Open asset in a new browser tab"),target:"_blank",rel:"noreferrer noopener"},o.a.createElement(T.IconButton,{icon:"external-link-alt",size:"regular",style:"transparent",hoverStyle:"brand"})),(null===(r=e.file)||void 0===r?void 0:r.url)&&o.a.createElement("a",{href:e.file.url,download:!0,title:a("previewActions.download","Download asset")},o.a.createElement(T.IconButton,{icon:"download",size:"regular",style:"transparent",hoverStyle:"warn"})),e.localId&&o.a.createElement(T.IconButton,{title:a("itemActions.copyToClipboard","Copy to clipboard"),icon:i?"clipboard-check":"clipboard",size:"regular",style:"transparent",hoverStyle:"brand",className:i?"button--active":"",onClick:s}))}),k=n(65),I=n.n(k);var N=o.a.memo(({asset:e,loading:t,buildLinkToMediaUi:n})=>{const{translate:r}=Object(u.d)(),{dummyImage:a}=Object(u.e)();return o.a.createElement("figure",{className:m()(I.a.preview,t&&I.a.loading),title:null==e?void 0:e.label},(null==e?void 0:e.imported)&&o.a.createElement("span",{className:I.a.label},r("asset.label.imported","Imported")),o.a.createElement("picture",{className:I.a.picture},o.a.createElement("img",{src:t||!e?a:e.previewUrl,alt:null==e?void 0:e.label}),o.a.createElement("div",{className:I.a.toolBar},!t&&e&&o.a.createElement(j,{asset:e,buildLinkToMediaUi:n}))))},(e,t)=>{var n,r;return(null===(n=e.asset)||void 0===n?void 0:n.id)===(null===(r=t.asset)||void 0===r?void 0:r.id)}),x=n(58),R=n.n(x),D=n(66),M=n.n(D),L=n(7);var P=o.a.memo(({buildLinkToMediaUi:e})=>{const{containerRef:t}=Object(u.e)(),{visible:n}=Object(p.g)(g.a),{visible:r}=Object(p.g)(w.b),a=Object(p.g)(C.e),i=Object(p.g)(b.c),s=Object(p.g)(y.c),l=Object(p.g)(L.l),{asset:c,loading:d}=Object(v.b)(l);return o.a.createElement("div",{className:m()(M.a.container,R.a.mediaModuleTheme,d&&M.a.loading),ref:t},o.a.createElement(O.a,null),o.a.createElement("div",{className:m()(M.a.main,d&&M.a.loading)},o.a.createElement(S.a,null,o.a.createElement("div",{className:M.a.inspector},o.a.createElement(E.b,null)),o.a.createElement(N,{asset:c,loading:d,buildLinkToMediaUi:e}))),i&&o.a.createElement(b.a,null),n&&o.a.createElement(_.c,null),r&&o.a.createElement(w.a,null),a&&o.a.createElement(C.c,null),s&&o.a.createElement(y.a,null),o.a.createElement(u.a,null))}),F=n(92);const B=e=>({...F.a,obtainApprovalToUpdateAsset:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.updateAsset.confirm.title","Update Asset",[t.label]),message:e.intl.translate("actions.updateAsset.confirm.message",`Please be aware that updating asset "${t.label}" will affect all of its occurrences on every page. Do you still wish to proceed?`,[t.label]),buttonLabel:e.intl.translate("actions.updateAsset.confirm.buttonLabel","Yes, proceed with updating the asset",[t.label])}),obtainApprovalToSetAssetTags:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.setAssetTags.confirm.title","Set Asset Tags",[t.label]),message:e.intl.translate("actions.setAssetTags.confirm.message",`Please be aware that changing the asset tags of asset "${t.label}" will affect all of its occurrences on every page. Do you still wish to proceed?`,[t.label]),buttonLabel:e.intl.translate("actions.setAssetTags.confirm.buttonLabel","Yes, proceed with setting the asset tags",[t.label])}),obtainApprovalToSetAssetCollections:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.setAssetCollections.confirm.title","Set Asset Collections",[t.label]),message:e.intl.translate("actions.setAssetCollections.confirm.message",`Please be aware that changing the asset collections of asset "${t.label}" will affect all of its occurrences on every page. Do you still wish to proceed?`,[t.label]),buttonLabel:e.intl.translate("actions.setAssetCollections.confirm.buttonLabel","Yes, proceed with setting the asset collections",[t.label])}),obtainApprovalToDeleteAsset:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.deleteAsset.confirm.title","Delete Asset",[t.label]),message:e.intl.translate("action.deleteAsset.confirm.message",`Do you really want to delete the asset "${t.label}"?`,[t.label]),buttonLabel:e.intl.translate("actions.deleteAsset.confirm.buttonLabel","Yes, proceed with deleting the asset",[t.label])}),obtainApprovalToReplaceAsset:({asset:t})=>e.interaction.confirm({title:e.intl.translate("actions.replaceAsset.confirm.title","Replace Asset",[t.label]),message:e.intl.translate("action.replaceAsset.confirm.message",`Do you really want to replace the asset "${t.label}"?`,[t.label]),buttonLabel:e.intl.translate("actions.replaceAsset.confirm.buttonLabel","Yes, proceed with replacing the asset",[t.label])})});var U=n(156),V=n.n(U);let q=null;class z extends o.a.PureComponent{constructor(e){super(e),this.translate=(e,t,n,r="Flowpack.Media.Ui",o="Main")=>this.props.i18nRegistry.translate(e,t,n,r,o),this.getInitialState=()=>{const{frontendConfiguration:e,imageIdentity:t,type:n,constraints:r}=this.props;return{applicationContext:"details",featureFlags:e,selectedAsset:{assetId:t,assetSourceId:"neos"},selectedInspectorView:"asset",constraints:{...r||{},assetType:"images"===n?"image":n}}},this.notificationHandler={info:t=>e.addFlashMessage(t,t,"info"),ok:t=>e.addFlashMessage(t,t,"success"),notice:t=>e.addFlashMessage(t,t,"info"),warning:(t,n="")=>e.addFlashMessage(t,n,"error"),error:(t,n="")=>e.addFlashMessage(t,n,"error")}}getConfig(){return{endpoints:{graphql:"/neos/graphql/media-assets",upload:"/neos/media-ui/upload"},dummyImage:"/_Resources/Static/Packages/Neos.Neos/Images/dummy-image.svg",buildLinkToMediaUi:e=>"/neos/management/mediaui?searchTerm=id:"+e.id}}getApolloClient(){if(!q){const{endpoints:e}=this.getConfig(),t=f.a.createCache(this.props.frontendConfiguration);q=new i.ApolloClient({cache:t,link:i.ApolloLink.from([Object(f.c)(this.notificationHandler),Object(s.createUploadLink)({uri:e.graphql,credentials:"same-origin"})]),typeDefs:[u.c,b.e]})}return q}render(){const{addFlashMessage:e,onComplete:t}=this.props,{dummyImage:n,buildLinkToMediaUi:a}=this.getConfig(),i=Object(r.createRef)(),s={info:t=>e(t,t,"info"),ok:t=>e(t,t,"success"),notice:t=>e(t,t,"info"),warning:(t,n="")=>e(t,n,"error"),error:(t,n="")=>e(t,n,"error")};return o.a.createElement("div",{className:V.a.mediaDetailsScreen},o.a.createElement(d.a,{client:this.getApolloClient(),translate:this.translate,notificationApi:s,initialState:this.getInitialState()},o.a.createElement(u.b,{dummyImage:n,onAssetSelection:t,selectionMode:!0,containerRef:i,approvalAttainmentStrategyFactory:B},o.a.createElement(P,{buildLinkToMediaUi:a}))))}}const Q=Object(l.neos)(e=>({i18nRegistry:e.get("i18n"),frontendConfiguration:e.get("frontendConfiguration").get("Flowpack.Media.Ui")}));var $=Object(a.connect)(()=>({}),{addFlashMessage:c.actions.UI.FlashMessages.add})(Q(z))}]); \ No newline at end of file diff --git a/Resources/Public/Assets/main.bundle.js b/Resources/Public/Assets/main.bundle.js index 67bc55fa6..01020d529 100644 --- a/Resources/Public/Assets/main.bundle.js +++ b/Resources/Public/Assets/main.bundle.js @@ -223,9 +223,12 @@ currentServerTime } } -`;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hFrZn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);var o=e("@apollo/client"),a=e("../queries");function i(e){let{data:t,loading:r,refetch:n}=(0,o.useQuery)(a.ASSET,{variables:{id:e?.assetId,assetSourceId:e?.assetSourceId},skip:!e});return{asset:t?.asset||null,loading:r,refetch:n}}},{"@apollo/client":"bWmmR","../queries":"euEE7","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"3UNSz":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("@apollo/client"),i=e("@media-ui/feature-asset-tags"),s=e("@media-ui/feature-asset-collections"),l=e("@media-ui/feature-asset-sources"),c=e("../state"),u=e("../queries");r.default=()=>{let{pagination:{assetsPerPage:e}}=(0,o.useRecoilValue)(c.featureFlagsState),t=(0,o.useRecoilValue)(c.searchTermState),r=(0,o.useRecoilValue)(s.selectedAssetCollectionIdState),f=(0,o.useRecoilValue)(l.selectedAssetSourceState),d=(0,o.useRecoilValue)(i.selectedTagIdState),p=(0,o.useRecoilValue)(c.selectedMediaTypeState),h=(0,o.useRecoilValue)(c.selectedAssetTypeState),m=(0,o.useRecoilValue)(c.selectedSortOrderState),v=(0,o.useRecoilValue)(c.currentPageState),g=(0,o.useSetRecoilState)(c.loadingState),y=(0,o.useSetRecoilState)(c.initialLoadCompleteState),[b,j]=(0,o.useRecoilState)(c.availableAssetsState),S=(v-1)*e,[x,{loading:_,error:w,data:k,refetch:E}]=(0,a.useLazyQuery)(u.ASSETS,{notifyOnNetworkStatusChange:!1,variables:{searchTerm:t.toString(),assetSourceId:f,assetCollectionId:r,assetType:h,mediaType:p,tagId:d,limit:e,offset:S,sortBy:m.sortBy,sortDirection:m.sortDirection}});return(0,n.useEffect)(()=>{_||(x({variables:{searchTerm:t.toString(),assetSourceId:f,assetCollectionId:r,assetType:h,mediaType:p,tagId:d,limit:e,offset:S,sortBy:m.sortBy,sortDirection:m.sortDirection}}),g(!0))},[x,_,S,t,f,r,p,d,m,h,e,g]),(0,n.useEffect)(()=>{!_&&k&&(j(e=>{let t=k&&JSON.stringify(e)==JSON.stringify(k.assets);return t?e:k.assets||[]}),g(!1),y(!0))},[_,k,j,y,g]),{error:w,assets:b,refetch:E}}},{react:"6uln9",recoil:"2QijJ","@apollo/client":"bWmmR","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF","@media-ui/feature-asset-sources":"9cP7j","../state":"jV1GH","../queries":"euEE7","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],c2M0S:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client"),o=e("../queries");r.default=()=>{let{data:e,loading:t}=(0,n.useQuery)(o.CONFIG);return{config:e?.config,loading:t}}},{"@apollo/client":"bWmmR","../queries":"euEE7","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"2YBVY":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>f);var o=e("@apollo/client"),a=e("recoil"),i=e("../mutations"),s=e("../state"),l=e("../queries"),c=e("./index"),u=e("../events");function f(){let[e,{error:t,data:r}]=(0,o.useMutation)(i.DELETE_ASSET),n=(0,a.useSetRecoilState)(s.selectedAssetIdState),f=(0,c.useEvent)(u.assetRemovedEvent);return{deleteAsset:({assetId:t,assetSourceId:r})=>e({variables:{id:t,assetSourceId:r},refetchQueries:[{query:l.ASSET,variables:{id:t,assetSourceId:r}}],update:(e,{data:{deleteAsset:r}})=>{r&&(e.evict({id:e.identify({__typename:"Asset",id:t})}),e.gc())}}).then(({data:{deleteAsset:e}})=>{if(!e)throw Error("Could not delete asset");f({assetId:t,assetSourceId:r}),n(e=>e.assetId===t?null:e)}),data:r,error:t}}},{"@apollo/client":"bWmmR",recoil:"2QijJ","../mutations":"2jX8C","../state":"jV1GH","../queries":"euEE7","./index":"b2lzd","../events":"59Xr2","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"2jX8C":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DELETE_ASSET",()=>a.default),n.export(r,"IMPORT_ASSET",()=>s.default),n.export(r,"SET_ASSET_COLLECTIONS",()=>c.default),n.export(r,"SET_ASSET_TAGS",()=>f.default),n.export(r,"TAG_ASSET",()=>p.default),n.export(r,"UNTAG_ASSET",()=>m.default),n.export(r,"UPDATE_ASSET",()=>g.default);var o=e("./deleteAsset"),a=n.interopDefault(o),i=e("./importAsset"),s=n.interopDefault(i),l=e("./setAssetCollections"),c=n.interopDefault(l),u=e("./setAssetTags"),f=n.interopDefault(u),d=e("./tagAsset"),p=n.interopDefault(d),h=e("./untagAsset"),m=n.interopDefault(h),v=e("./updateAsset"),g=n.interopDefault(v)},{"./deleteAsset":"27PAv","./importAsset":"KOw2i","./setAssetCollections":"duRMs","./setAssetTags":"aZ27z","./tagAsset":"i0lTa","./untagAsset":"iqIOB","./updateAsset":"ev3Jo","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"27PAv":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client");let o=(0,n.gql)` +`;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hFrZn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);var o=e("@apollo/client"),a=e("../queries");function i(e){let{data:t,loading:r,refetch:n}=(0,o.useQuery)(a.ASSET,{variables:{id:e?.assetId,assetSourceId:e?.assetSourceId},skip:!e});return{asset:t?.asset||null,loading:r,refetch:n}}},{"@apollo/client":"bWmmR","../queries":"euEE7","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"3UNSz":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("@apollo/client"),i=e("@media-ui/feature-asset-tags"),s=e("@media-ui/feature-asset-collections"),l=e("@media-ui/feature-asset-sources"),c=e("../state"),u=e("../queries");r.default=()=>{let{pagination:{assetsPerPage:e}}=(0,o.useRecoilValue)(c.featureFlagsState),t=(0,o.useRecoilValue)(c.searchTermState),r=(0,o.useRecoilValue)(s.selectedAssetCollectionIdState),f=(0,o.useRecoilValue)(l.selectedAssetSourceState),d=(0,o.useRecoilValue)(i.selectedTagIdState),p=(0,o.useRecoilValue)(c.selectedMediaTypeState),h=(0,o.useRecoilValue)(c.selectedAssetTypeState),m=(0,o.useRecoilValue)(c.selectedSortOrderState),v=(0,o.useRecoilValue)(c.currentPageState),g=(0,o.useSetRecoilState)(c.loadingState),y=(0,o.useSetRecoilState)(c.initialLoadCompleteState),[b,j]=(0,o.useRecoilState)(c.availableAssetsState),S=(v-1)*e,[x,{loading:_,error:w,data:k,refetch:E}]=(0,a.useLazyQuery)(u.ASSETS,{notifyOnNetworkStatusChange:!1,variables:{searchTerm:t.toString(),assetSourceId:f,assetCollectionId:r,assetType:h,mediaType:p,tagId:d,limit:e,offset:S,sortBy:m.sortBy,sortDirection:m.sortDirection}});return(0,n.useEffect)(()=>{_||(x({variables:{searchTerm:t.toString(),assetSourceId:f,assetCollectionId:r,assetType:h,mediaType:p,tagId:d,limit:e,offset:S,sortBy:m.sortBy,sortDirection:m.sortDirection}}),g(!0))},[x,_,S,t,f,r,p,d,m,h,e,g]),(0,n.useEffect)(()=>{!_&&k&&(j(e=>{let t=k&&JSON.stringify(e)==JSON.stringify(k.assets);return t?e:k.assets||[]}),g(!1),y(!0))},[_,k,j,y,g]),{error:w,assets:b,refetch:E}}},{react:"6uln9",recoil:"2QijJ","@apollo/client":"bWmmR","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF","@media-ui/feature-asset-sources":"9cP7j","../state":"jV1GH","../queries":"euEE7","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],c2M0S:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client"),o=e("../queries");r.default=()=>{let{data:e,loading:t}=(0,n.useQuery)(o.CONFIG);return{config:e?.config,loading:t}}},{"@apollo/client":"bWmmR","../queries":"euEE7","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"2YBVY":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>f);var o=e("@apollo/client"),a=e("recoil"),i=e("../mutations"),s=e("../state"),l=e("../queries"),c=e("./index"),u=e("../events");function f(){let[e,{error:t,data:r}]=(0,o.useMutation)(i.DELETE_ASSET),n=(0,a.useSetRecoilState)(s.selectedAssetIdState),f=(0,c.useEvent)(u.assetRemovedEvent);return{deleteAsset:({assetId:t,assetSourceId:r})=>e({variables:{id:t,assetSourceId:r},refetchQueries:[{query:l.ASSET,variables:{id:t,assetSourceId:r}},"ASSET_COLLECTIONS"],update:(e,{data:{deleteAsset:r}})=>{r&&(e.evict({id:e.identify({__typename:"Asset",id:t})}),e.gc())}}).then(({data:{deleteAsset:e}})=>{if(!e.success)throw Error(e.messages.join(", "));f({assetId:t,assetSourceId:r}),n(e=>e?.assetId===t?null:e)}),data:r,error:t}}},{"@apollo/client":"bWmmR",recoil:"2QijJ","../mutations":"2jX8C","../state":"jV1GH","../queries":"euEE7","./index":"b2lzd","../events":"59Xr2","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"2jX8C":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DELETE_ASSET",()=>a.default),n.export(r,"IMPORT_ASSET",()=>s.default),n.export(r,"SET_ASSET_COLLECTIONS",()=>c.default),n.export(r,"SET_ASSET_TAGS",()=>f.default),n.export(r,"TAG_ASSET",()=>p.default),n.export(r,"UNTAG_ASSET",()=>m.default),n.export(r,"UPDATE_ASSET",()=>g.default);var o=e("./deleteAsset"),a=n.interopDefault(o),i=e("./importAsset"),s=n.interopDefault(i),l=e("./setAssetCollections"),c=n.interopDefault(l),u=e("./setAssetTags"),f=n.interopDefault(u),d=e("./tagAsset"),p=n.interopDefault(d),h=e("./untagAsset"),m=n.interopDefault(h),v=e("./updateAsset"),g=n.interopDefault(v)},{"./deleteAsset":"27PAv","./importAsset":"KOw2i","./setAssetCollections":"duRMs","./setAssetTags":"aZ27z","./tagAsset":"i0lTa","./untagAsset":"iqIOB","./updateAsset":"ev3Jo","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"27PAv":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client");let o=(0,n.gql)` mutation DeleteAsset($id: AssetId!, $assetSourceId: AssetSourceId!) { - deleteAsset(id: $id, assetSourceId: $assetSourceId) + deleteAsset(id: $id, assetSourceId: $assetSourceId) { + success + messages + } } `;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],KOw2i:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client"),o=e("../fragments/asset");let a=(0,n.gql)` mutation ImportAsset($id: AssetId!, $assetSourceId: AssetSourceId!, $includeUsage: Boolean = false) { @@ -303,7 +306,7 @@ id: AssetId! assetSourceId: AssetSourceId! } -`},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"80jPI":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"humanFileSize",()=>a.default);var o=e("./humanFileSize"),a=n.interopDefault(o)},{"./humanFileSize":"i1FiL","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i1FiL:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function o(e,t=!1){let r=t?1e3:1024;if(Math.abs(e)=r&&oo)},{"@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],HGtGw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("recoil"),s=e("@apollo/client"),l=e("../provider"),c=e("@media-ui/core/src/state"),u=e("../domain/SearchTerm");r.default=({children:e,client:t,translate:r,notificationApi:n,initialState:o})=>(0,a.default).createElement(l.IntlProvider,{translate:r},(0,a.default).createElement(l.NotifyProvider,{notificationApi:n},(0,a.default).createElement(l.InteractionProvider,null,(0,a.default).createElement(s.ApolloProvider,{client:t},(0,a.default).createElement(i.RecoilRoot,{initializeState:({set:e})=>{let{applicationContext:t,featureFlags:r,constraints:n,selectedInspectorView:a,selectedAsset:i}=o;e(c.applicationContextState,t),e(c.featureFlagsState,r),i&&e(c.selectedAssetIdState,i),a&&e(c.selectedInspectorViewState,a),e(c.constraintsState,n),n.mediaTypes?.length>0&&e(c.selectedMediaTypeState,null),n.assetType&&e(c.selectedAssetTypeState,n.assetType);let s=(0,u.SearchTerm).fromUrl(new URL(window.location.href));s.empty()||e(c.searchTermState,s)}},e)))))},{react:"6uln9",recoil:"2QijJ","@apollo/client":"bWmmR","../provider":"jhdjb","@media-ui/core/src/state":"jV1GH","../domain/SearchTerm":"bnHXU","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lWHpb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"typeDefs",()=>w.typeDefs),n.export(r,"ASSET_USAGE_DETAILS",()=>a.default),n.export(r,"AssetUsagesModal",()=>f.default),n.export(r,"AssetUsagesToggleButton",()=>p.default),n.export(r,"UNUSED_ASSETS",()=>s.default),n.export(r,"USAGE_DETAILS_GROUP_FRAGMENT",()=>c.default),n.export(r,"assetUsageDetailsModalState",()=>m.default),n.export(r,"showUnusedAssetsState",()=>g.default),n.export(r,"useAssetUsagesQuery",()=>b.default),n.export(r,"useUnusedAssetsQuery",()=>S.default),n.export(r,"useUnusedAssetCountQuery",()=>_.default);var o=e("./queries/assetUsages"),a=n.interopDefault(o),i=e("./queries/unusedAssets"),s=n.interopDefault(i),l=e("./fragments/usageDetailsGroupFragment"),c=n.interopDefault(l),u=e("./components/AssetUsagesModal"),f=n.interopDefault(u),d=e("./components/AssetUsagesToggleButton"),p=n.interopDefault(d),h=e("./state/assetUsageDetailsModalState"),m=n.interopDefault(h),v=e("./state/showUnusedAssetsState"),g=n.interopDefault(v),y=e("./hooks/useAssetUsages"),b=n.interopDefault(y),j=e("./hooks/useUnusedAssetsQuery"),S=n.interopDefault(j),x=e("./queries/useUnusedAssetCountQuery"),_=n.interopDefault(x),w=e("./typeDefs")},{"./queries/assetUsages":"aRCIR","./queries/unusedAssets":"jnqAx","./fragments/usageDetailsGroupFragment":"jN9il","./components/AssetUsagesModal":"kuLhm","./components/AssetUsagesToggleButton":"1ycJ1","./state/assetUsageDetailsModalState":"iO8J3","./state/showUnusedAssetsState":"VOAdR","./hooks/useAssetUsages":"9tyRJ","./hooks/useUnusedAssetsQuery":"6jRdf","./queries/useUnusedAssetCountQuery":"dGnBp","./typeDefs":"d0UHQ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],aRCIR:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("@apollo/client"),a=e("../fragments/usageDetailsGroupFragment"),i=n.interopDefault(a);let s=(0,o.gql)` +`},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"80jPI":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"humanFileSize",()=>a.default);var o=e("./humanFileSize"),a=n.interopDefault(o)},{"./humanFileSize":"i1FiL","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i1FiL:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function o(e,t=!0){let r=t?1e3:1024;if(Math.abs(e)=r&&oo)},{"@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],HGtGw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("recoil"),s=e("@apollo/client"),l=e("../provider"),c=e("@media-ui/core/src/state"),u=e("../domain/SearchTerm");r.default=({children:e,client:t,translate:r,notificationApi:n,initialState:o})=>(0,a.default).createElement(l.IntlProvider,{translate:r},(0,a.default).createElement(l.NotifyProvider,{notificationApi:n},(0,a.default).createElement(l.InteractionProvider,null,(0,a.default).createElement(s.ApolloProvider,{client:t},(0,a.default).createElement(i.RecoilRoot,{initializeState:({set:e})=>{let{applicationContext:t,featureFlags:r,constraints:n,selectedInspectorView:a,selectedAsset:i}=o;e(c.applicationContextState,t),e(c.featureFlagsState,r),i&&e(c.selectedAssetIdState,i),a&&e(c.selectedInspectorViewState,a),e(c.constraintsState,n),n.mediaTypes?.length>0&&e(c.selectedMediaTypeState,null),n.assetType&&e(c.selectedAssetTypeState,n.assetType);let s=(0,u.SearchTerm).fromUrl(new URL(window.location.href));s.empty()||e(c.searchTermState,s)}},e)))))},{react:"6uln9",recoil:"2QijJ","@apollo/client":"bWmmR","../provider":"jhdjb","@media-ui/core/src/state":"jV1GH","../domain/SearchTerm":"bnHXU","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lWHpb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"typeDefs",()=>w.typeDefs),n.export(r,"ASSET_USAGE_DETAILS",()=>a.default),n.export(r,"AssetUsagesModal",()=>f.default),n.export(r,"AssetUsagesToggleButton",()=>p.default),n.export(r,"UNUSED_ASSETS",()=>s.default),n.export(r,"USAGE_DETAILS_GROUP_FRAGMENT",()=>c.default),n.export(r,"assetUsageDetailsModalState",()=>m.default),n.export(r,"showUnusedAssetsState",()=>g.default),n.export(r,"useAssetUsagesQuery",()=>b.default),n.export(r,"useUnusedAssetsQuery",()=>S.default),n.export(r,"useUnusedAssetCountQuery",()=>_.default);var o=e("./queries/assetUsages"),a=n.interopDefault(o),i=e("./queries/unusedAssets"),s=n.interopDefault(i),l=e("./fragments/usageDetailsGroupFragment"),c=n.interopDefault(l),u=e("./components/AssetUsagesModal"),f=n.interopDefault(u),d=e("./components/AssetUsagesToggleButton"),p=n.interopDefault(d),h=e("./state/assetUsageDetailsModalState"),m=n.interopDefault(h),v=e("./state/showUnusedAssetsState"),g=n.interopDefault(v),y=e("./hooks/useAssetUsages"),b=n.interopDefault(y),j=e("./hooks/useUnusedAssetsQuery"),S=n.interopDefault(j),x=e("./queries/useUnusedAssetCountQuery"),_=n.interopDefault(x),w=e("./typeDefs")},{"./queries/assetUsages":"aRCIR","./queries/unusedAssets":"jnqAx","./fragments/usageDetailsGroupFragment":"jN9il","./components/AssetUsagesModal":"kuLhm","./components/AssetUsagesToggleButton":"1ycJ1","./state/assetUsageDetailsModalState":"iO8J3","./state/showUnusedAssetsState":"VOAdR","./hooks/useAssetUsages":"9tyRJ","./hooks/useUnusedAssetsQuery":"6jRdf","./queries/useUnusedAssetCountQuery":"dGnBp","./typeDefs":"d0UHQ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],aRCIR:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("@apollo/client"),a=e("../fragments/usageDetailsGroupFragment"),i=n.interopDefault(a);let s=(0,o.gql)` query ASSET_USAGE_DETAILS($id: AssetId!, $assetSourceId: AssetSourceId!) { assetUsageDetails(id: $id, assetSourceId: $assetSourceId) { ...UsageDetailsGroupProps @@ -372,7 +375,7 @@ } } ${o.ASSET_FRAGMENT} -`;r.default=a},{"@apollo/client":"bWmmR","@media-ui/core/src/fragments/asset":"cP1Zi","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9TrQp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("@media-ui/core"),s=e("./SimilarAsset.module.css"),l=n.interopDefault(s);r.default=(0,a.default).memo(({asset:e})=>{let{dummyImage:t}=(0,i.useMediaUi)();return(0,a.default).createElement("figure",{className:l.default.similarAsset},(0,a.default).createElement("picture",{className:l.default.picture},(0,a.default).createElement("img",{src:e?e.thumbnailUrl:t,alt:e?.label})),(0,a.default).createElement("figcaption",{className:l.default.caption},e&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("img",{src:e.file.typeIcon.url,alt:e.file.typeIcon.alt}),(0,a.default).createElement("span",null,e.label))))})},{react:"6uln9","@media-ui/core":"j3EAa","./SimilarAsset.module.css":"hL4ZQ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hL4ZQ:[function(e,t,r){t.exports.caption="mL8aSq_caption",t.exports.picture="mL8aSq_picture",t.exports.similarAsset="mL8aSq_similarAsset"},{}],lLlPK:[function(e,t,r){t.exports.assetUsage="-zEGyG_assetUsage"},{}],kJgrX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"uploadDialogState",()=>o.uploadDialogState);var o=e("./uploadDialogState")},{"./uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"1bQep":[function(e,t,r){var n,o,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"UPLOAD_TYPE",()=>o),a.export(r,"uploadDialogState",()=>s);var i=e("recoil");(n=o||(o={})).new="new",n.update="update";let s=(0,i.atom)({key:"uploadDialogState",default:{visible:!1,uploadType:o.new}})},{recoil:"2QijJ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],aZ3Bv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AssetReplacementButton",()=>g.default),n.export(r,"FilePreview",()=>f.default),n.export(r,"NewAssetDialog",()=>a.default),n.export(r,"PreviewSection",()=>p.default),n.export(r,"ReplaceAssetDialog",()=>s.default),n.export(r,"UploadButton",()=>b.default),n.export(r,"UploadDialog",()=>c.default),n.export(r,"UploadSection",()=>m.default);var o=e("./Dialogs/NewAssetDialog"),a=n.interopDefault(o),i=e("./Dialogs/ReplaceAssetDialog"),s=n.interopDefault(i),l=e("./Dialogs/UploadDialog"),c=n.interopDefault(l),u=e("./FilePreview"),f=n.interopDefault(u),d=e("./PreviewSection"),p=n.interopDefault(d),h=e("./UploadSection"),m=n.interopDefault(h),v=e("./AssetReplacementButton"),g=n.interopDefault(v),y=e("./UploadButton"),b=n.interopDefault(y)},{"./Dialogs/NewAssetDialog":"fwZlu","./Dialogs/ReplaceAssetDialog":"75MDD","./Dialogs/UploadDialog":"4JmWi","./FilePreview":"6tKrf","./PreviewSection":"cBrj6","./UploadSection":"i9dFh","./AssetReplacementButton":"1YqlF","./UploadButton":"bhq7y","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],fwZlu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("@neos-project/react-ui-components"),s=e("@media-ui/core"),l=e("@media-ui/core/src/components"),c=e("../UploadSection"),u=n.interopDefault(c),f=e("../PreviewSection"),d=n.interopDefault(f),p=e("../../hooks"),h=e("@media-ui/core/src/hooks"),m=e("./NewAssetDialog.module.css"),v=n.interopDefault(m);r.default=(0,a.default).memo(()=>{let{translate:e}=(0,s.useIntl)(),t=(0,s.useNotify)(),{uploadFiles:r,uploadState:n,loading:c}=(0,p.useUploadFiles)(),{state:f,closeDialog:m,setFiles:g}=(0,p.useUploadDialogState)(),{refetch:y}=(0,h.useAssetsQuery)(),b=!c&&f.files.selected.length>0,j=(0,o.useCallback)(()=>{r(f.files.selected).then(({data:{uploadFiles:r}})=>{g(e=>({selected:[],finished:[...e.finished,...e.selected.filter(e=>r.find(t=>t.success&&t.filename===e.name))],rejected:[...e.rejected,...e.selected.filter(e=>r.find(t=>!t.success&&t.filename===e.name))]})),r.some(e=>!e.success)?t.warning(e("uploadDialog.uploadFinishedWithErrors","Some files could not be uploaded")):t.ok(e("uploadDialog.uploadFinished","Upload finished")),r.some(e=>e.success)&&y()}).catch(r=>{t.error(e("fileUpload.error","Upload failed"),r)})},[r,f.files.selected,g,t,e,y]),S=(0,o.useCallback)(e=>{g(t=>({...t,selected:e}))},[g]);return(0,a.default).createElement(l.Dialog,{isOpen:f.visible,title:e("uploadDialog.title","Upload assets"),onRequestClose:m,actions:[(0,a.default).createElement(i.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:m},n?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),(0,a.default).createElement(i.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!b,onClick:j},e("uploadDialog.upload","Upload"))],style:"wide"},(0,a.default).createElement("section",{className:v.default.uploadArea},(0,a.default).createElement(u.default,{files:f.files.selected,loading:c,onSetFiles:S}),(0,a.default).createElement(d.default,{files:f.files,loading:c,uploadState:n})))})},{react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","../UploadSection":"i9dFh","../PreviewSection":"cBrj6","../../hooks":"cWFPh","@media-ui/core/src/hooks":"b2lzd","./NewAssetDialog.module.css":"lBk4j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i9dFh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("react-dropzone"),s=e("classnames"),l=n.interopDefault(s),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/helper"),d=e("./UploadSection.module.css"),p=n.interopDefault(d);r.default=(0,a.default).memo(({acceptedFileTypes:e,files:t,loading:r,maxFiles:n,onSetFiles:o})=>{let{translate:s}=(0,c.useIntl)(),d=(0,c.useNotify)(),{dummyImage:h}=(0,c.useMediaUi)(),{config:m}=(0,u.useConfigQuery)(),v=n?Math.min(n,m?.uploadMaxFileUploadLimit):m?.uploadMaxFileUploadLimit||1,{getRootProps:g,getInputProps:y,isDragAccept:b,isDragActive:j,isDragReject:S}=(0,i.useDropzone)({onDrop:e=>{if(0===e.length)return;let r=v-t.length;if(e.length>r&&d.error(s("uploadDialog.warning.maxFiles","You can only upload a maximum of {limit} files. {rejected} File(s) rejected",{limit:v,rejected:e.length-r})),0===r)return;let n=e.length(e.id=`${e.name}-${e.size}-${e.lastModified}`,0===e.type.indexOf("image")?e.preview=URL.createObjectURL(e):e.preview=h,e));o(t.concat(a))},disabled:r,onDropRejected:e=>{e.forEach(e=>{d.warning(s("uploadDialog.warning.fileRejected","The given file cannot be uploaded."),e.errors.reduce((e,t)=>`${e} ${t.message}`,""))})},maxSize:m?.uploadMaxFileSize||0,maxFiles:v,multiple:v>1,preventDropOnDocument:!0,accept:e});return(0,a.default).createElement("section",null,(0,a.default).createElement("div",g({className:(0,l.default)(p.default.dropzone,b&&p.default.dropzoneAccept,j&&p.default.dropzoneActive,S&&p.default.dropzoneReject)}),(0,a.default).createElement("input",y()),(0,a.default).createElement("p",null,s("uploadDialog.dropzone.caption","Drag 'n' drop some files here, or click to select files")),m?.uploadMaxFileSize>0&&(0,a.default).createElement("p",null,s("uploadDialog.maxFileSize","Maximum file size is {size} and file limit is {limit}",{size:(0,f.humanFileSize)(m.uploadMaxFileSize),limit:v}))),r&&(0,a.default).createElement("p",null,s("uploadDialog.label.uploading","Uploading…")))})},{react:"6uln9","react-dropzone":"46RRi",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/helper":"80jPI","./UploadSection.module.css":"2RExP","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"46RRi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useDropzone",()=>j);var o=e("react"),a=n.interopDefault(o),i=e("prop-types"),s=n.interopDefault(i),l=e("file-selector"),c=e("./utils/index");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}(e,t)||f(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var g=(0,o.forwardRef)(function(e,t){var r=e.children,n=j(v(e,["children"])),i=n.open,s=v(n,["open"]);return(0,o.useImperativeHandle)(t,function(){return{open:i}},[i]),(0,a.default).createElement(o.Fragment,null,r(h(h({},s),{},{open:i})))});g.displayName="Dropzone";var y={disabled:!1,getFilesFromEvent:l.fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};g.defaultProps=y,g.propTypes={children:s.default.func,accept:(0,s.default).oneOfType([s.default.string,(0,s.default).arrayOf(s.default.string)]),multiple:s.default.bool,preventDropOnDocument:s.default.bool,noClick:s.default.bool,noKeyboard:s.default.bool,noDrag:s.default.bool,noDragEventsBubbling:s.default.bool,minSize:s.default.number,maxSize:s.default.number,maxFiles:s.default.number,disabled:s.default.bool,getFilesFromEvent:s.default.func,onFileDialogCancel:s.default.func,onDragEnter:s.default.func,onDragLeave:s.default.func,onDragOver:s.default.func,onDrop:s.default.func,onDropAccepted:s.default.func,onDropRejected:s.default.func,validator:s.default.func},r.default=g;var b={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=h(h({},y),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,p=t.maxFiles,g=t.onDragEnter,j=t.onDragLeave,x=t.onDragOver,_=t.onDrop,w=t.onDropAccepted,k=t.onDropRejected,E=t.onFileDialogCancel,T=t.preventDropOnDocument,C=t.noClick,D=t.noKeyboard,O=t.noDrag,I=t.noDragEventsBubbling,A=t.validator,R=(0,o.useRef)(null),P=(0,o.useRef)(null),N=u((0,o.useReducer)(S,b),2),F=N[0],M=N[1],L=F.isFocused,B=F.isFileDialogActive,V=F.draggedFiles,U=(0,o.useCallback)(function(){P.current&&(M({type:"openDialog"}),P.current.value=null,P.current.click())},[M]),q=function(){B&&setTimeout(function(){P.current&&!P.current.files.length&&(M({type:"closeDialog"}),"function"==typeof E&&E())},300)};(0,o.useEffect)(function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}},[P,B,E]);var z=(0,o.useCallback)(function(e){R.current&&R.current.isEqualNode(e.target)&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),U())},[R,P]),W=(0,o.useCallback)(function(){M({type:"focus"})},[]),H=(0,o.useCallback)(function(){M({type:"blur"})},[]),G=(0,o.useCallback)(function(){C||((0,c.isIeOrEdge)()?setTimeout(U,0):U())},[P,C]),Q=(0,o.useRef)([]),K=function(e){R.current&&R.current.contains(e.target)||(e.preventDefault(),Q.current=[])};(0,o.useEffect)(function(){return T&&(document.addEventListener("dragover",c.onDocumentDragOver,!1),document.addEventListener("drop",K,!1)),function(){T&&(document.removeEventListener("dragover",c.onDocumentDragOver),document.removeEventListener("drop",K))}},[R,T]);var $=(0,o.useCallback)(function(e){var t;e.preventDefault(),e.persist(),er(e),Q.current=[].concat(function(e){if(Array.isArray(e))return d(e)}(t=Q.current)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(t)||f(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),(0,c.isEvtWithFiles)(e)&&Promise.resolve(a(e)).then(function(t){(!(0,c.isPropagationStopped)(e)||I)&&(M({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),g&&g(e))})},[a,g,I]),Y=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),er(e);var t=(0,c.isEvtWithFiles)(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&x&&x(e),!1},[x,I]),J=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),er(e);var t=Q.current.filter(function(e){return R.current&&R.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),Q.current=t,!(t.length>0)&&(M({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),(0,c.isEvtWithFiles)(e)&&j&&j(e))},[R,j,I]),X=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),er(e),Q.current=[],(0,c.isEvtWithFiles)(e)&&Promise.resolve(a(e)).then(function(t){if(!(0,c.isPropagationStopped)(e)||I){var n=[],o=[];t.forEach(function(e){var t=u((0,c.fileAccepted)(e,r),2),a=t[0],l=t[1],f=u((0,c.fileMatchSize)(e,s,i),2),d=f[0],p=f[1],h=A?A(e):null;if(a&&d&&!h)n.push(e);else{var m=[l,p];h&&(m=m.concat(h)),o.push({file:e,errors:m.filter(function(e){return e})})}}),(!l&&n.length>1||l&&p>=1&&n.length>p)&&(n.forEach(function(e){o.push({file:e,errors:[c.TOO_MANY_FILES_REJECTION]})}),n.splice(0)),M({acceptedFiles:n,fileRejections:o,type:"setFiles"}),_&&_(n,o,e),o.length>0&&k&&k(o,e),n.length>0&&w&&w(n,e)}}),M({type:"reset"})},[l,r,s,i,p,a,_,w,k,I]),Z=function(e){return n?null:e},ee=function(e){return D?null:Z(e)},et=function(e){return O?null:Z(e)},er=function(e){I&&e.stopPropagation()},en=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onKeyDown,a=e.onFocus,i=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,f=e.onDragLeave,d=e.onDrop,p=v(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return h(h(m({onKeyDown:ee((0,c.composeEventHandlers)(o,z)),onFocus:ee((0,c.composeEventHandlers)(a,W)),onBlur:ee((0,c.composeEventHandlers)(i,H)),onClick:Z((0,c.composeEventHandlers)(s,G)),onDragEnter:et((0,c.composeEventHandlers)(l,$)),onDragOver:et((0,c.composeEventHandlers)(u,Y)),onDragLeave:et((0,c.composeEventHandlers)(f,J)),onDrop:et((0,c.composeEventHandlers)(d,X))},r,R),n||D?{}:{tabIndex:0}),p)}},[R,z,W,H,G,$,Y,J,X,D,O,n]),eo=(0,o.useCallback)(function(e){e.stopPropagation()},[]),ea=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.onChange,a=e.onClick,i=v(e,["refKey","onChange","onClick"]);return h(h({},m({accept:r,multiple:l,type:"file",style:{display:"none"},onChange:Z((0,c.composeEventHandlers)(o,X)),onClick:Z((0,c.composeEventHandlers)(a,eo)),autoComplete:"off",tabIndex:-1},n,P)),i)}},[P,r,l,X,n]),ei=V.length,es=ei>0&&(0,c.allFilesAccepted)({files:V,accept:r,minSize:s,maxSize:i,multiple:l,maxFiles:p});return h(h({},F),{},{isDragAccept:es,isDragReject:ei>0&&!es,isFocused:L&&!n,getRootProps:en,getInputProps:ea,rootRef:R,inputRef:P,open:Z(U)})}function S(e,t){switch(t.type){case"focus":return h(h({},e),{},{isFocused:!0});case"blur":return h(h({},e),{},{isFocused:!1});case"openDialog":return h(h({},e),{},{isFileDialogActive:!0});case"closeDialog":return h(h({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return h(h({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return h(h({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return h(h({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}},{react:"6uln9","prop-types":"6FKs7","file-selector":"hptHR","./utils/index":"5A3CU","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hptHR:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromEvent",()=>o.fromEvent);var o=e("./file-selector")},{"./file-selector":"iTh16","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],iTh16:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromEvent",()=>s);var o=e("tslib"),a=e("./file"),i=[".DS_Store","Thumbs.db"];function s(e){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(t){return[2,e.dataTransfer&&e.dataTransfer?function(e,t){return(0,o.__awaiter)(this,void 0,void 0,function(){var r;return(0,o.__generator)(this,function(n){switch(n.label){case 0:if(!e.items)return[3,2];if(r=c(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,r];return[4,Promise.all(r.map(u))];case 1:return[2,l(function e(t){return t.reduce(function(t,r){return(0,o.__spread)(t,Array.isArray(r)?e(r):[r])},[])}(n.sent()))];case 2:return[2,l(c(e.files).map(function(e){return(0,a.toFileWithPath)(e)}))]}})})}(e.dataTransfer,e.type):(null!==e.target&&e.target.files?c(e.target.files):[]).map(function(e){return(0,a.toFileWithPath)(e)})]})})}function l(e){return e.filter(function(e){return -1===i.indexOf(e.name)})}function c(e){for(var t=[],r=0;ro),n.export(r,"toFileWithPath",()=>a);var o=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function a(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=o.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}},{"@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"5A3CU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FILE_INVALID_TYPE",()=>c),n.export(r,"FILE_TOO_LARGE",()=>u),n.export(r,"FILE_TOO_SMALL",()=>f),n.export(r,"TOO_MANY_FILES",()=>d),n.export(r,"getInvalidTypeRejectionErr",()=>p),n.export(r,"getTooLargeRejectionErr",()=>h),n.export(r,"getTooSmallRejectionErr",()=>m),n.export(r,"TOO_MANY_FILES_REJECTION",()=>v),n.export(r,"fileAccepted",()=>g),n.export(r,"fileMatchSize",()=>y),n.export(r,"allFilesAccepted",()=>j),n.export(r,"isPropagationStopped",()=>S),n.export(r,"isEvtWithFiles",()=>x),n.export(r,"isKindFile",()=>_),n.export(r,"onDocumentDragOver",()=>w),n.export(r,"isIeOrEdge",()=>k),n.export(r,"composeEventHandlers",()=>E);var o=e("attr-accept"),a=n.interopDefault(o);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rr)return[!1,h(r)];if(e.sizer)return[!1,h(r)]}return[!0,null]}function b(e){return null!=e}function j(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return(!!a||!(t.length>1))&&(!a||!(i>=1)||!(t.length>i))&&t.every(function(e){var t=s(g(e,r),1)[0],a=s(y(e,n,o),1)[0];return t&&a})}function S(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function x(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function _(e){return"object"===i(e)&&null!==e&&"file"===e.kind}function w(e){e.preventDefault()}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}function E(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),o=1;o{let{translate:n}=(0,i.useIntl)();return(0,a.default).createElement("aside",{className:u.default.fileList},e.selected.length>0&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("h4",{className:u.default.fileListHeader},n("uploadDialog.fileList.header","Selected files")),e.selected.map(e=>(0,a.default).createElement(l.default,{file:e,loading:t,fileState:r.find(t=>t.filename===e.name),key:e.id}))),e.rejected.length>0&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("h4",{className:u.default.fileListHeader},n("uploadDialog.fileList.uploadedHeader","Failed uploads")),e.rejected.map(e=>(0,a.default).createElement(l.default,{file:e,fileState:r.find(t=>t.filename===e.name),key:e.id}))),e.finished.length>0&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("h4",{className:u.default.fileListHeader},n("uploadDialog.fileList.uploadedHeader","Successful uploads")),e.finished.map(e=>(0,a.default).createElement(l.default,{file:e,fileState:r.find(t=>t.filename===e.name),key:e.id}))))})},{react:"6uln9","@media-ui/core":"j3EAa","./FilePreview":"6tKrf","./PreviewSection.module.css":"8kRuH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"6tKrf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("classnames"),s=n.interopDefault(i),l=e("@neos-project/react-ui-components"),c=e("./FilePreview.module.css"),u=n.interopDefault(c);r.default=(0,a.default).memo(({file:e,loading:t=!1,fileState:r})=>{let n=r?.success,o=r&&!n;return(0,a.default).createElement("div",{className:(0,s.default)(u.default.thumb,o?u.default.error:n?u.default.success:t&&u.default.loading),title:e.name},(0,a.default).createElement("div",{className:u.default.thumbInner},(0,a.default).createElement("img",{src:e.preview,alt:e.name,className:u.default.img}),t&&(0,a.default).createElement(l.Icon,{icon:"spinner",spin:!0}),n&&(0,a.default).createElement(l.Icon,{icon:"check"}),o&&(0,a.default).createElement(l.Icon,{icon:"exclamation-circle"}),r?.result&&(0,a.default).createElement("span",null,r.result)))})},{react:"6uln9",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","./FilePreview.module.css":"lblH4","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lblH4:[function(e,t,r){t.exports.error="_3DPMWa_error",t.exports.fileList="_3DPMWa_fileList",t.exports.fileListHeader="_3DPMWa_fileListHeader",t.exports.img="_3DPMWa_img",t.exports.loading="_3DPMWa_loading",t.exports.success="_3DPMWa_success",t.exports.thumb="_3DPMWa_thumb",t.exports.thumbInner="_3DPMWa_thumbInner",t.exports.warning="_3DPMWa_warning"},{}],"8kRuH":[function(e,t,r){t.exports.fileList="YW0qpa_fileList",t.exports.fileListHeader="YW0qpa_fileListHeader"},{}],cWFPh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useUploadDialogState",()=>a.default),n.export(r,"useUploadFiles",()=>c.default),n.export(r,"useUploadFile",()=>s.default);var o=e("./useUploadDialogState"),a=n.interopDefault(o),i=e("./useUploadFile"),s=n.interopDefault(i),l=e("./useUploadFiles"),c=n.interopDefault(l)},{"./useUploadDialogState":"ljxT5","./useUploadFile":"bMUbe","./useUploadFiles":"6Ubaq","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],ljxT5:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("../state"),i=e("../state/uploadDialogState");r.default=()=>{let[e,t]=(0,n.useState)({selected:[],finished:[],rejected:[]}),[r,s]=(0,o.useRecoilState)(a.uploadDialogState),l=(0,n.useCallback)(()=>{e.selected.forEach(e=>URL.revokeObjectURL(e.preview)),e.finished.forEach(e=>URL.revokeObjectURL(e.preview)),e.rejected.forEach(e=>URL.revokeObjectURL(e.preview)),t({selected:[],finished:[],rejected:[]}),s({uploadType:i.UPLOAD_TYPE.new,visible:!1})},[e,t,s]);return{state:{...r,files:e},closeDialog:l,setFiles:t}}},{react:"6uln9",recoil:"2QijJ","../state":"kJgrX","../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bMUbe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var o=e("@apollo/client"),a=e("recoil"),i=e("@media-ui/feature-asset-tags"),s=e("@media-ui/feature-asset-collections"),l=e("../mutations");function c(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(l.UPLOAD_FILE),c=(0,a.useRecoilValue)(i.selectedTagIdState),u=(0,a.useRecoilValue)(s.selectedAssetCollectionIdState);return{uploadFile:t=>e({variables:{file:t,tagId:c,assetCollectionId:u}}),uploadState:r?.uploadFile||{},error:t,loading:n}}},{"@apollo/client":"bWmmR",recoil:"2QijJ","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF","../mutations":"9WBt6","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9WBt6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"UPLOAD_FILES",()=>s.default),n.export(r,"UPLOAD_FILE",()=>c.default),n.export(r,"REPLACE_ASSET",()=>a.default);var o=e("./replaceAsset"),a=n.interopDefault(o),i=e("./uploadFiles"),s=n.interopDefault(i),l=e("./uploadFile"),c=n.interopDefault(l)},{"./replaceAsset":"g41Jc","./uploadFiles":"02I0p","./uploadFile":"joCLc","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],g41Jc:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client");let o=(0,n.gql)` +`;r.default=a},{"@apollo/client":"bWmmR","@media-ui/core/src/fragments/asset":"cP1Zi","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9TrQp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("@media-ui/core"),s=e("./SimilarAsset.module.css"),l=n.interopDefault(s);r.default=(0,a.default).memo(({asset:e})=>{let{dummyImage:t}=(0,i.useMediaUi)();return(0,a.default).createElement("figure",{className:l.default.similarAsset},(0,a.default).createElement("picture",{className:l.default.picture},(0,a.default).createElement("img",{src:e?e.thumbnailUrl:t,alt:e?.label})),(0,a.default).createElement("figcaption",{className:l.default.caption},e&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("img",{src:e.file.typeIcon.url,alt:e.file.typeIcon.alt}),(0,a.default).createElement("span",null,e.label))))})},{react:"6uln9","@media-ui/core":"j3EAa","./SimilarAsset.module.css":"hL4ZQ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hL4ZQ:[function(e,t,r){t.exports.caption="mL8aSq_caption",t.exports.picture="mL8aSq_picture",t.exports.similarAsset="mL8aSq_similarAsset"},{}],lLlPK:[function(e,t,r){t.exports.assetUsage="-zEGyG_assetUsage"},{}],kJgrX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"uploadDialogState",()=>o.uploadDialogState);var o=e("./uploadDialogState")},{"./uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"1bQep":[function(e,t,r){var n,o,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"UPLOAD_TYPE",()=>o),a.export(r,"uploadDialogState",()=>s);var i=e("recoil");(n=o||(o={})).new="new",n.update="update";let s=(0,i.atom)({key:"uploadDialogState",default:{visible:!1,uploadType:o.new}})},{recoil:"2QijJ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],aZ3Bv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AssetReplacementButton",()=>g.default),n.export(r,"FilePreview",()=>f.default),n.export(r,"NewAssetDialog",()=>a.default),n.export(r,"PreviewSection",()=>p.default),n.export(r,"ReplaceAssetDialog",()=>s.default),n.export(r,"UploadButton",()=>b.default),n.export(r,"UploadDialog",()=>c.default),n.export(r,"UploadSection",()=>m.default);var o=e("./Dialogs/NewAssetDialog"),a=n.interopDefault(o),i=e("./Dialogs/ReplaceAssetDialog"),s=n.interopDefault(i),l=e("./Dialogs/UploadDialog"),c=n.interopDefault(l),u=e("./FilePreview"),f=n.interopDefault(u),d=e("./PreviewSection"),p=n.interopDefault(d),h=e("./UploadSection"),m=n.interopDefault(h),v=e("./AssetReplacementButton"),g=n.interopDefault(v),y=e("./UploadButton"),b=n.interopDefault(y)},{"./Dialogs/NewAssetDialog":"fwZlu","./Dialogs/ReplaceAssetDialog":"75MDD","./Dialogs/UploadDialog":"4JmWi","./FilePreview":"6tKrf","./PreviewSection":"cBrj6","./UploadSection":"i9dFh","./AssetReplacementButton":"1YqlF","./UploadButton":"bhq7y","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],fwZlu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("@neos-project/react-ui-components"),s=e("@media-ui/core"),l=e("@media-ui/core/src/components"),c=e("../UploadSection"),u=n.interopDefault(c),f=e("../PreviewSection"),d=n.interopDefault(f),p=e("../../hooks"),h=e("@media-ui/core/src/hooks"),m=e("./NewAssetDialog.module.css"),v=n.interopDefault(m);r.default=(0,a.default).memo(()=>{let{translate:e}=(0,s.useIntl)(),t=(0,s.useNotify)(),{uploadFiles:r,uploadState:n,loading:c}=(0,p.useUploadFiles)(),{state:f,closeDialog:m,setFiles:g}=(0,p.useUploadDialogState)(),{refetch:y}=(0,h.useAssetsQuery)(),b=!c&&f.files.selected.length>0,j=(0,o.useCallback)(()=>{r(f.files.selected).then(({data:{uploadFiles:r}})=>{g(e=>({selected:[],finished:[...e.finished,...e.selected.filter(e=>r.find(t=>t.success&&t.filename===e.name))],rejected:[...e.rejected,...e.selected.filter(e=>r.find(t=>!t.success&&t.filename===e.name))]})),r.some(e=>!e.success)?t.warning(e("uploadDialog.uploadFinishedWithErrors","Some files could not be uploaded")):t.ok(e("uploadDialog.uploadFinished","Upload finished")),r.some(e=>e.success)&&y()}).catch(r=>{t.error(e("fileUpload.error","Upload failed"),r)})},[r,f.files.selected,g,t,e,y]),S=(0,o.useCallback)(e=>{g(t=>({...t,selected:e}))},[g]);return(0,a.default).createElement(l.Dialog,{isOpen:f.visible,title:e("uploadDialog.title","Upload assets"),onRequestClose:m,actions:[(0,a.default).createElement(i.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:m},n?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),(0,a.default).createElement(i.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!b,onClick:j},e("uploadDialog.upload","Upload"))],style:"wide"},(0,a.default).createElement("section",{className:v.default.uploadArea},(0,a.default).createElement(u.default,{files:f.files.selected,loading:c,onSetFiles:S}),(0,a.default).createElement(d.default,{files:f.files,loading:c,uploadState:n})))})},{react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","../UploadSection":"i9dFh","../PreviewSection":"cBrj6","../../hooks":"cWFPh","@media-ui/core/src/hooks":"b2lzd","./NewAssetDialog.module.css":"lBk4j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i9dFh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("react-dropzone"),s=e("classnames"),l=n.interopDefault(s),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/helper"),d=e("./UploadSection.module.css"),p=n.interopDefault(d);r.default=(0,a.default).memo(({acceptedFileTypes:e,files:t,loading:r,maxFiles:n,onSetFiles:o})=>{let{translate:s}=(0,c.useIntl)(),d=(0,c.useNotify)(),{dummyImage:h}=(0,c.useMediaUi)(),{config:m}=(0,u.useConfigQuery)(),v=n?Math.min(n,m?.uploadMaxFileUploadLimit):m?.uploadMaxFileUploadLimit||1,{getRootProps:g,getInputProps:y,isDragAccept:b,isDragActive:j,isDragReject:S}=(0,i.useDropzone)({onDrop:e=>{if(0===e.length)return;let r=v-t.length;if(e.length>r&&d.error(s("uploadDialog.warning.maxFiles","You can only upload a maximum of {limit} files. {rejected} File(s) rejected",{limit:v,rejected:e.length-r})),0===r)return;let n=e.length(e.id=`${e.name}-${e.size}-${e.lastModified}`,0===e.type.indexOf("image")?e.preview=URL.createObjectURL(e):e.preview=h,e));o(t.concat(a))},disabled:r,onDropRejected:e=>{e.forEach(e=>{d.warning(s("uploadDialog.warning.fileRejected","The given file cannot be uploaded."),e.errors.reduce((e,t)=>`${e} ${t.message}`,""))})},maxSize:m?.uploadMaxFileSize||0,maxFiles:v,multiple:v>1,preventDropOnDocument:!0,accept:e});return(0,a.default).createElement("section",null,(0,a.default).createElement("div",g({className:(0,l.default)(p.default.dropzone,b&&p.default.dropzoneAccept,j&&p.default.dropzoneActive,S&&p.default.dropzoneReject)}),(0,a.default).createElement("input",y()),(0,a.default).createElement("p",null,s("uploadDialog.dropzone.caption","Drag 'n' drop some files here, or click to select files")),m?.uploadMaxFileSize>0&&(0,a.default).createElement("p",null,s("uploadDialog.maxFileSize","Maximum file size is {size} and file limit is {limit}",{size:(0,f.humanFileSize)(m.uploadMaxFileSize),limit:v}))),r&&(0,a.default).createElement("p",null,s("uploadDialog.label.uploading","Uploading…")))})},{react:"6uln9","react-dropzone":"46RRi",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/helper":"80jPI","./UploadSection.module.css":"2RExP","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"46RRi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useDropzone",()=>j);var o=e("react"),a=n.interopDefault(o),i=e("prop-types"),s=n.interopDefault(i),l=e("file-selector"),c=e("./utils/index");function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}(e,t)||f(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var g=(0,o.forwardRef)(function(e,t){var r=e.children,n=j(v(e,["children"])),i=n.open,s=v(n,["open"]);return(0,o.useImperativeHandle)(t,function(){return{open:i}},[i]),(0,a.default).createElement(o.Fragment,null,r(h(h({},s),{},{open:i})))});g.displayName="Dropzone";var y={disabled:!1,getFilesFromEvent:l.fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};g.defaultProps=y,g.propTypes={children:s.default.func,accept:(0,s.default).oneOfType([s.default.string,(0,s.default).arrayOf(s.default.string)]),multiple:s.default.bool,preventDropOnDocument:s.default.bool,noClick:s.default.bool,noKeyboard:s.default.bool,noDrag:s.default.bool,noDragEventsBubbling:s.default.bool,minSize:s.default.number,maxSize:s.default.number,maxFiles:s.default.number,disabled:s.default.bool,getFilesFromEvent:s.default.func,onFileDialogCancel:s.default.func,onDragEnter:s.default.func,onDragLeave:s.default.func,onDragOver:s.default.func,onDrop:s.default.func,onDropAccepted:s.default.func,onDropRejected:s.default.func,validator:s.default.func},r.default=g;var b={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=h(h({},y),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,p=t.maxFiles,g=t.onDragEnter,j=t.onDragLeave,x=t.onDragOver,_=t.onDrop,w=t.onDropAccepted,k=t.onDropRejected,E=t.onFileDialogCancel,T=t.preventDropOnDocument,C=t.noClick,D=t.noKeyboard,O=t.noDrag,I=t.noDragEventsBubbling,A=t.validator,R=(0,o.useRef)(null),P=(0,o.useRef)(null),N=u((0,o.useReducer)(S,b),2),F=N[0],M=N[1],L=F.isFocused,B=F.isFileDialogActive,V=F.draggedFiles,U=(0,o.useCallback)(function(){P.current&&(M({type:"openDialog"}),P.current.value=null,P.current.click())},[M]),q=function(){B&&setTimeout(function(){P.current&&!P.current.files.length&&(M({type:"closeDialog"}),"function"==typeof E&&E())},300)};(0,o.useEffect)(function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}},[P,B,E]);var z=(0,o.useCallback)(function(e){R.current&&R.current.isEqualNode(e.target)&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),U())},[R,P]),W=(0,o.useCallback)(function(){M({type:"focus"})},[]),H=(0,o.useCallback)(function(){M({type:"blur"})},[]),G=(0,o.useCallback)(function(){C||((0,c.isIeOrEdge)()?setTimeout(U,0):U())},[P,C]),Q=(0,o.useRef)([]),K=function(e){R.current&&R.current.contains(e.target)||(e.preventDefault(),Q.current=[])};(0,o.useEffect)(function(){return T&&(document.addEventListener("dragover",c.onDocumentDragOver,!1),document.addEventListener("drop",K,!1)),function(){T&&(document.removeEventListener("dragover",c.onDocumentDragOver),document.removeEventListener("drop",K))}},[R,T]);var $=(0,o.useCallback)(function(e){var t;e.preventDefault(),e.persist(),er(e),Q.current=[].concat(function(e){if(Array.isArray(e))return d(e)}(t=Q.current)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(t)||f(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),(0,c.isEvtWithFiles)(e)&&Promise.resolve(a(e)).then(function(t){(!(0,c.isPropagationStopped)(e)||I)&&(M({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),g&&g(e))})},[a,g,I]),Y=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),er(e);var t=(0,c.isEvtWithFiles)(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&x&&x(e),!1},[x,I]),J=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),er(e);var t=Q.current.filter(function(e){return R.current&&R.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),Q.current=t,!(t.length>0)&&(M({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),(0,c.isEvtWithFiles)(e)&&j&&j(e))},[R,j,I]),X=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),er(e),Q.current=[],(0,c.isEvtWithFiles)(e)&&Promise.resolve(a(e)).then(function(t){if(!(0,c.isPropagationStopped)(e)||I){var n=[],o=[];t.forEach(function(e){var t=u((0,c.fileAccepted)(e,r),2),a=t[0],l=t[1],f=u((0,c.fileMatchSize)(e,s,i),2),d=f[0],p=f[1],h=A?A(e):null;if(a&&d&&!h)n.push(e);else{var m=[l,p];h&&(m=m.concat(h)),o.push({file:e,errors:m.filter(function(e){return e})})}}),(!l&&n.length>1||l&&p>=1&&n.length>p)&&(n.forEach(function(e){o.push({file:e,errors:[c.TOO_MANY_FILES_REJECTION]})}),n.splice(0)),M({acceptedFiles:n,fileRejections:o,type:"setFiles"}),_&&_(n,o,e),o.length>0&&k&&k(o,e),n.length>0&&w&&w(n,e)}}),M({type:"reset"})},[l,r,s,i,p,a,_,w,k,I]),Z=function(e){return n?null:e},ee=function(e){return D?null:Z(e)},et=function(e){return O?null:Z(e)},er=function(e){I&&e.stopPropagation()},en=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onKeyDown,a=e.onFocus,i=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,f=e.onDragLeave,d=e.onDrop,p=v(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return h(h(m({onKeyDown:ee((0,c.composeEventHandlers)(o,z)),onFocus:ee((0,c.composeEventHandlers)(a,W)),onBlur:ee((0,c.composeEventHandlers)(i,H)),onClick:Z((0,c.composeEventHandlers)(s,G)),onDragEnter:et((0,c.composeEventHandlers)(l,$)),onDragOver:et((0,c.composeEventHandlers)(u,Y)),onDragLeave:et((0,c.composeEventHandlers)(f,J)),onDrop:et((0,c.composeEventHandlers)(d,X))},r,R),n||D?{}:{tabIndex:0}),p)}},[R,z,W,H,G,$,Y,J,X,D,O,n]),eo=(0,o.useCallback)(function(e){e.stopPropagation()},[]),ea=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.onChange,a=e.onClick,i=v(e,["refKey","onChange","onClick"]);return h(h({},m({accept:r,multiple:l,type:"file",style:{display:"none"},onChange:Z((0,c.composeEventHandlers)(o,X)),onClick:Z((0,c.composeEventHandlers)(a,eo)),autoComplete:"off",tabIndex:-1},n,P)),i)}},[P,r,l,X,n]),ei=V.length,es=ei>0&&(0,c.allFilesAccepted)({files:V,accept:r,minSize:s,maxSize:i,multiple:l,maxFiles:p});return h(h({},F),{},{isDragAccept:es,isDragReject:ei>0&&!es,isFocused:L&&!n,getRootProps:en,getInputProps:ea,rootRef:R,inputRef:P,open:Z(U)})}function S(e,t){switch(t.type){case"focus":return h(h({},e),{},{isFocused:!0});case"blur":return h(h({},e),{},{isFocused:!1});case"openDialog":return h(h({},e),{},{isFileDialogActive:!0});case"closeDialog":return h(h({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return h(h({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return h(h({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return h(h({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}},{react:"6uln9","prop-types":"6FKs7","file-selector":"hptHR","./utils/index":"5A3CU","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hptHR:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromEvent",()=>o.fromEvent);var o=e("./file-selector")},{"./file-selector":"iTh16","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],iTh16:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromEvent",()=>s);var o=e("tslib"),a=e("./file"),i=[".DS_Store","Thumbs.db"];function s(e){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(t){return[2,e.dataTransfer&&e.dataTransfer?function(e,t){return(0,o.__awaiter)(this,void 0,void 0,function(){var r;return(0,o.__generator)(this,function(n){switch(n.label){case 0:if(!e.items)return[3,2];if(r=c(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,r];return[4,Promise.all(r.map(u))];case 1:return[2,l(function e(t){return t.reduce(function(t,r){return(0,o.__spread)(t,Array.isArray(r)?e(r):[r])},[])}(n.sent()))];case 2:return[2,l(c(e.files).map(function(e){return(0,a.toFileWithPath)(e)}))]}})})}(e.dataTransfer,e.type):(null!==e.target&&e.target.files?c(e.target.files):[]).map(function(e){return(0,a.toFileWithPath)(e)})]})})}function l(e){return e.filter(function(e){return -1===i.indexOf(e.name)})}function c(e){for(var t=[],r=0;ro),n.export(r,"toFileWithPath",()=>a);var o=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function a(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=o.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}},{"@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"5A3CU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FILE_INVALID_TYPE",()=>c),n.export(r,"FILE_TOO_LARGE",()=>u),n.export(r,"FILE_TOO_SMALL",()=>f),n.export(r,"TOO_MANY_FILES",()=>d),n.export(r,"getInvalidTypeRejectionErr",()=>p),n.export(r,"getTooLargeRejectionErr",()=>h),n.export(r,"getTooSmallRejectionErr",()=>m),n.export(r,"TOO_MANY_FILES_REJECTION",()=>v),n.export(r,"fileAccepted",()=>g),n.export(r,"fileMatchSize",()=>y),n.export(r,"allFilesAccepted",()=>j),n.export(r,"isPropagationStopped",()=>S),n.export(r,"isEvtWithFiles",()=>x),n.export(r,"isKindFile",()=>_),n.export(r,"onDocumentDragOver",()=>w),n.export(r,"isIeOrEdge",()=>k),n.export(r,"composeEventHandlers",()=>E);var o=e("attr-accept"),a=n.interopDefault(o);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rr)return[!1,h(r)];if(e.sizer)return[!1,h(r)]}return[!0,null]}function b(e){return null!=e}function j(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles;return(!!a||!(t.length>1))&&(!a||!(i>=1)||!(t.length>i))&&t.every(function(e){var t=s(g(e,r),1)[0],a=s(y(e,n,o),1)[0];return t&&a})}function S(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function x(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function _(e){return"object"===i(e)&&null!==e&&"file"===e.kind}function w(e){e.preventDefault()}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}function E(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),o=1;o{let{translate:n}=(0,i.useIntl)();return(0,a.default).createElement("aside",{className:u.default.fileList},e.selected.length>0&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("h4",{className:u.default.fileListHeader},n("uploadDialog.fileList.header","Selected files")),e.selected.map(e=>(0,a.default).createElement(l.default,{file:e,loading:t,fileState:r.find(t=>t.filename===e.name),key:e.id}))),e.rejected.length>0&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("h4",{className:u.default.fileListHeader},n("uploadDialog.fileList.uploadedHeader","Failed uploads")),e.rejected.map(e=>(0,a.default).createElement(l.default,{file:e,fileState:r.find(t=>t.filename===e.name),key:e.id}))),e.finished.length>0&&(0,a.default).createElement(a.default.Fragment,null,(0,a.default).createElement("h4",{className:u.default.fileListHeader},n("uploadDialog.fileList.uploadedHeader","Successful uploads")),e.finished.map(e=>(0,a.default).createElement(l.default,{file:e,fileState:r.find(t=>t.filename===e.name),key:e.id}))))})},{react:"6uln9","@media-ui/core":"j3EAa","./FilePreview":"6tKrf","./PreviewSection.module.css":"8kRuH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"6tKrf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("classnames"),s=n.interopDefault(i),l=e("@neos-project/react-ui-components"),c=e("./FilePreview.module.css"),u=n.interopDefault(c);r.default=(0,a.default).memo(({file:e,loading:t=!1,fileState:r})=>{let n=r?.success,o=r&&!n;return(0,a.default).createElement("div",{className:(0,s.default)(u.default.thumb,o?u.default.error:n?u.default.success:t&&u.default.loading),title:e.name},(0,a.default).createElement("div",{className:u.default.thumbInner},(0,a.default).createElement("img",{src:e.preview,alt:e.name,className:u.default.img}),t&&(0,a.default).createElement(l.Icon,{icon:"spinner",spin:!0}),n&&(0,a.default).createElement(l.Icon,{icon:"check"}),o&&(0,a.default).createElement(l.Icon,{icon:"exclamation-circle"}),r?.result&&(0,a.default).createElement("span",null,r.result)))})},{react:"6uln9",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","./FilePreview.module.css":"lblH4","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lblH4:[function(e,t,r){t.exports.error="_3DPMWa_error",t.exports.fileList="_3DPMWa_fileList",t.exports.fileListHeader="_3DPMWa_fileListHeader",t.exports.img="_3DPMWa_img",t.exports.loading="_3DPMWa_loading",t.exports.success="_3DPMWa_success",t.exports.thumb="_3DPMWa_thumb",t.exports.thumbInner="_3DPMWa_thumbInner",t.exports.warning="_3DPMWa_warning"},{}],"8kRuH":[function(e,t,r){t.exports.fileList="YW0qpa_fileList",t.exports.fileListHeader="YW0qpa_fileListHeader"},{}],cWFPh:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useUploadDialogState",()=>a.default),n.export(r,"useUploadFiles",()=>c.default),n.export(r,"useUploadFile",()=>s.default);var o=e("./useUploadDialogState"),a=n.interopDefault(o),i=e("./useUploadFile"),s=n.interopDefault(i),l=e("./useUploadFiles"),c=n.interopDefault(l)},{"./useUploadDialogState":"ljxT5","./useUploadFile":"bMUbe","./useUploadFiles":"6Ubaq","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],ljxT5:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("../state"),i=e("../state/uploadDialogState");r.default=()=>{let[e,t]=(0,n.useState)({selected:[],finished:[],rejected:[]}),[r,s]=(0,o.useRecoilState)(a.uploadDialogState),l=(0,n.useCallback)(()=>{e.selected.forEach(e=>URL.revokeObjectURL(e.preview)),e.finished.forEach(e=>URL.revokeObjectURL(e.preview)),e.rejected.forEach(e=>URL.revokeObjectURL(e.preview)),t({selected:[],finished:[],rejected:[]}),s({uploadType:i.UPLOAD_TYPE.new,visible:!1})},[e,t,s]);return{state:{...r,files:e},closeDialog:l,setFiles:t}}},{react:"6uln9",recoil:"2QijJ","../state":"kJgrX","../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bMUbe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var o=e("@apollo/client"),a=e("recoil"),i=e("@media-ui/feature-asset-tags"),s=e("@media-ui/feature-asset-collections"),l=e("../mutations");function c(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(l.UPLOAD_FILE),c=(0,a.useRecoilValue)(i.selectedTagIdState),u=(0,a.useRecoilValue)(s.selectedAssetCollectionIdState);return{uploadFile:t=>e({variables:{file:t,tagId:c,assetCollectionId:u},refetchQueries:["ASSET_COLLECTIONS"]}),uploadState:r?.uploadFile||{},error:t,loading:n}}},{"@apollo/client":"bWmmR",recoil:"2QijJ","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF","../mutations":"9WBt6","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9WBt6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"UPLOAD_FILES",()=>s.default),n.export(r,"UPLOAD_FILE",()=>c.default),n.export(r,"REPLACE_ASSET",()=>a.default);var o=e("./replaceAsset"),a=n.interopDefault(o),i=e("./uploadFiles"),s=n.interopDefault(i),l=e("./uploadFile"),c=n.interopDefault(l)},{"./replaceAsset":"g41Jc","./uploadFiles":"02I0p","./uploadFile":"joCLc","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],g41Jc:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client");let o=(0,n.gql)` mutation ReplaceAsset( $id: AssetId! $assetSourceId: AssetSourceId! @@ -401,7 +404,7 @@ result } } -`;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"6Ubaq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var o=e("@apollo/client"),a=e("recoil"),i=e("@media-ui/feature-asset-tags"),s=e("@media-ui/feature-asset-collections"),l=e("../mutations");function c(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(l.UPLOAD_FILES),c=(0,a.useRecoilValue)(i.selectedTagIdState),u=(0,a.useRecoilValue)(s.selectedAssetCollectionIdState);return{uploadFiles:t=>e({variables:{files:t,tagId:c,assetCollectionId:u}}),uploadState:r?.uploadFiles||[],error:t,loading:n}}},{"@apollo/client":"bWmmR",recoil:"2QijJ","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF","../mutations":"9WBt6","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lBk4j:[function(e,t,r){t.exports.uploadArea="j3Ge9q_uploadArea"},{}],"75MDD":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("recoil"),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/hooks"),u=e("@media-ui/core/src/components"),f=e("@media-ui/core/src/state"),d=e("../UploadSection"),p=n.interopDefault(d),h=e("../PreviewSection"),m=n.interopDefault(h),v=e("../../hooks"),g=e("../../hooks/useReplaceAsset"),y=n.interopDefault(g),b=e("./ReplaceAssetDialog.module.css"),j=n.interopDefault(b);r.default=(0,a.default).memo(()=>{let{translate:e}=(0,l.useIntl)(),t=(0,l.useNotify)(),r=(0,c.useSelectedAsset)(),{replaceAsset:n,uploadState:d,loading:h}=(0,y.default)(),{refetch:g}=(0,c.useAssetsQuery)(),{approvalAttainmentStrategy:{obtainApprovalToReplaceAsset:b}}=(0,l.useMediaUi)(),S=(0,i.useRecoilValue)(f.featureFlagsState),{state:x,closeDialog:_,setFiles:w}=(0,v.useUploadDialogState)(),[k,E]=(0,a.default).useState({keepOriginalFilename:!1,generateRedirects:!1}),T=!h&&x.files.selected.length>0,C=(0,o.useMemo)(()=>{let e=r?.file.mediaType,t=e.match(/^(?(?:[.!#%&'`^~$*+\-|\w]+))\//)?.groups?.type;return t?`${t}/*`:""},[r]),D=(0,o.useCallback)(async()=>{if(0===x.files.selected.length)return;let o=x.files.selected[0],a=await b({asset:r});if(a)try{await n({asset:r,file:o,options:k}),t.ok(e("uploadDialog.replacementFinished","Replacement finished")),_(),g()}catch(r){t.error(e("assetReplacement.error","Replacement failed"),r)}},[n,t,e,x,k,g,r,_,b]),O=(0,o.useCallback)(e=>{w(t=>({...t,selected:e}))},[w]);return(0,a.default).createElement(u.Dialog,{isOpen:x.visible,title:e("uploadDialog.replaceAsset","Replace Asset"),onRequestClose:_,actions:[(0,a.default).createElement(s.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:_},d?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),(0,a.default).createElement(s.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!T,onClick:D},e("uploadDialog.replace","Replace"))],style:"wide"},(0,a.default).createElement("section",{className:j.default.uploadArea},(0,a.default).createElement(p.default,{files:x.files.selected,loading:h,onSetFiles:O,maxFiles:1,acceptedFileTypes:C}),(0,a.default).createElement("section",{className:j.default.optionSection},S.createAssetRedirectsOption&&(0,a.default).createElement("div",{className:j.default.option},(0,a.default).createElement(s.Label,{className:j.default.label},(0,a.default).createElement(s.CheckBox,{isChecked:k.generateRedirects,onChange:e=>E({...k,generateRedirects:e})}),(0,a.default).createElement("span",null,e("uploadDialog.generateRedirects","Generate redirects")))),(0,a.default).createElement("div",{className:j.default.option},(0,a.default).createElement(s.Label,{className:j.default.label},(0,a.default).createElement(s.CheckBox,{isChecked:k.keepOriginalFilename,onChange:e=>E({...k,keepOriginalFilename:e})}),(0,a.default).createElement("span",null,e("uploadDialog.keepOriginalFilename","Keep original filename"))))),(0,a.default).createElement(m.default,{files:x.files,loading:h,uploadState:d?[d]:[]})))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","../UploadSection":"i9dFh","../PreviewSection":"cBrj6","../../hooks":"cWFPh","../../hooks/useReplaceAsset":"8pQeq","./ReplaceAssetDialog.module.css":"3ViDE","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"8pQeq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);var o=e("@apollo/client"),a=e("../mutations");function i(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(a.REPLACE_ASSET);return{replaceAsset:({asset:t,file:r,options:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,file:r,options:n}}),uploadState:r?.replaceAsset||null,error:t,loading:n}}},{"@apollo/client":"bWmmR","../mutations":"9WBt6","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"3ViDE":[function(e,t,r){t.exports.label="TdFhBW_label",t.exports.option="TdFhBW_option",t.exports.optionSection="TdFhBW_optionSection",t.exports.uploadArea="TdFhBW_uploadArea"},{}],"4JmWi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=e("recoil"),i=e("./NewAssetDialog"),s=n.interopDefault(i),l=e("./ReplaceAssetDialog"),c=n.interopDefault(l),u=e("../../state/uploadDialogState");r.default=o.memo(()=>{let{visible:e,uploadType:t}=(0,a.useRecoilValue)(u.uploadDialogState);return e&&(t===u.UPLOAD_TYPE.update?o.createElement(c.default,null):o.createElement(s.default,null))||null})},{react:"6uln9",recoil:"2QijJ","./NewAssetDialog":"fwZlu","./ReplaceAssetDialog":"75MDD","../../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"1YqlF":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("@neos-project/react-ui-components"),i=e("@media-ui/core"),s=e("../state/uploadDialogState");r.default=n.memo(()=>{let[e,t]=(0,o.useRecoilState)(s.uploadDialogState),{translate:r}=(0,i.useIntl)();return n.createElement(a.Button,{size:"regular",style:e.visible&&e.uploadType===s.UPLOAD_TYPE.update?"brand":"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:s.UPLOAD_TYPE.update})},n.createElement(a.Icon,{icon:"exchange-alt"}),r("assetReplacement.toggle","Replace asset"))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bhq7y:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var o=e("react"),a=e("recoil"),i=e("@neos-project/react-ui-components"),s=e("@media-ui/core"),l=e("../state/uploadDialogState");function c(){let{translate:e}=(0,s.useIntl)(),t=(0,a.useSetRecoilState)(l.uploadDialogState);return o.createElement("div",null,o.createElement(i.Button,{size:"regular",style:"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:l.UPLOAD_TYPE.new})},o.createElement(i.Icon,{icon:"upload"})," ",e("uploadButton.label","Upload")))}},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gaY0P:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"selectedAssetForPreviewState",()=>s.default),n.export(r,"AssetPreview",()=>a.default);var o=e("./components/AssetPreview"),a=n.interopDefault(o),i=e("./state/selectedAssetForPreviewState"),s=n.interopDefault(i)},{"./components/AssetPreview":"9EIdC","./state/selectedAssetForPreviewState":"f0JOr","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9EIdC":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>g);var o=e("react"),a=n.interopDefault(o),i=e("react-image-lightbox"),s=n.interopDefault(i),l=e("recoil");e("react-image-lightbox/style.css");var c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/core/src/hooks"),d=e("../state/selectedAssetForPreviewState"),p=n.interopDefault(d),h=e("./AssetPreview.module.css"),m=n.interopDefault(h);let v=(e=null)=>{let t=(0,a.default).useRef(e);return(0,a.default).useEffect(()=>{if(null===e){let e=document.createElement("div");return e.setAttribute("data-ignore_click_outside","true"),document.body.appendChild(e),t.current=e,()=>e.remove()}t.current=e},[e]),t};function g(){let{containerRef:e,isInNodeCreationDialog:t}=(0,c.useMediaUi)(),r=(0,l.useRecoilValue)(u.availableAssetsState),[n,i]=(0,l.useRecoilState)(p.default),{asset:d}=(0,f.useAssetQuery)(n),h=v(t?null:e.current),[g,y]=(0,o.useMemo)(()=>{if(!d)return[null,null];let e=r.findIndex(({id:e})=>e===d.id);return[e>0?r[e-1]:null,eh.current},wrapperClassName:m.default.lightbox,mainSrc:d.previewUrl,mainSrcThumbnail:d.thumbnailUrl,imageTitle:d.label,imageCaption:d.caption,onCloseRequest:()=>i(null),prevSrc:g?.previewUrl,prevSrcThumbnail:g?.thumbnailUrl,prevLabel:g?.label,onMovePrevRequest:()=>i(g?{assetId:g.id,assetSourceId:g.assetSource.id}:null),nextSrc:y?.previewUrl,nextSrcThumbnail:y?.thumbnailUrl,nextLabel:y?.label,onMoveNextRequest:()=>i(y?{assetId:y.id,assetSourceId:y.assetSource.id}:null)}):null}},{react:"6uln9","react-image-lightbox":"gZi0S",recoil:"2QijJ","react-image-lightbox/style.css":"59GbX","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/hooks":"b2lzd","../state/selectedAssetForPreviewState":"f0JOr","./AssetPreview.module.css":"igeYA","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gZi0S:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("prop-types"),s=n.interopDefault(i),l=e("react-modal"),c=n.interopDefault(l),u=arguments[3];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var r=e;return t&&Object.keys(t).forEach(function(e){r=r.replace(e,t[e])}),r}function w(){return void 0!==u.window?u.window.innerWidth:0}var k=function(){try{return u.window.location.hostname!==u.window.parent.location.hostname}catch(e){return!0}},E={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=v(i);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(e=r)&&("object"==typeof e||"function"==typeof e)?e:y(this)});function i(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=(0,a.default).createRef(),t.zoomInBtn=(0,a.default).createRef(),t.zoomOutBtn=(0,a.default).createRef(),t.caption=(0,a.default).createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(y(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(y(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(y(t)),t.handleKeyInput=t.handleKeyInput.bind(y(t)),t.handleMouseUp=t.handleMouseUp.bind(y(t)),t.handleMouseDown=t.handleMouseDown.bind(y(t)),t.handleMouseMove=t.handleMouseMove.bind(y(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(y(t)),t.handleTouchStart=t.handleTouchStart.bind(y(t)),t.handleTouchMove=t.handleTouchMove.bind(y(t)),t.handleTouchEnd=t.handleTouchEnd.bind(y(t)),t.handlePointerEvent=t.handlePointerEvent.bind(y(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(y(t)),t.handleWindowResize=t.handleWindowResize.bind(y(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(y(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(y(t)),t.requestClose=t.requestClose.bind(y(t)),t.requestMoveNext=t.requestMoveNext.bind(y(t)),t.requestMovePrev=t.requestMovePrev.bind(y(t)),t.timeouts=[],t.currentAction=0,t.eventsSource=0,t.pointerList=[],t.preventInnerClose=!1,t.preventInnerCloseTimeout=null,t.keyPressed=!1,t.imageCache={},t.lastKeyDownTime=0,t.resizeTimeout=null,t.wheelActionTimeout=null,t.resetScrollTimeout=null,t.scrollX=0,t.scrollY=0,t.moveStartX=0,t.moveStartY=0,t.moveStartOffsetX=0,t.moveStartOffsetY=0,t.swipeStartX=0,t.swipeStartY=0,t.swipeEndX=0,t.swipeEndY=0,t.pinchTouchList=null,t.pinchDistance=0,t.keyCounter=0,t.moveRequested=!1,t}return r=[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.window.self;return t===u.window.top?t:k()?t:e(t.parent)}(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach(function(t){e.windowContext.addEventListener(t,e.listeners[t])}),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach(function(r){t.props[r.name]!==e[r.name]&&(t.moveRequested=!1)}),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,r=!1,n={},o={};this.getSrcTypes().forEach(function(a){e[a.name]!==t.props[a.name]&&(r=!0,n[e[a.name]]=!0,o[t.props[a.name]]=!0)}),(r||this.moveRequested)&&(Object.keys(n).forEach(function(e){!(e in o)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)}),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach(function(t){e.windowContext.removeEventListener(t,e.listeners[t])}),this.timeouts.forEach(function(e){return clearTimeout(e)})}},{key:"setTimeout",value:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){var r=this,n=setTimeout(function(){r.timeouts=r.timeouts.filter(function(e){return e!==n}),e()},t);return this.timeouts.push(n),n})},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout(function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null},100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],r={};if(this.isImageLoaded(t))r=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],r=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:r.height,targetWidth:r.width}}},{key:"getFitSizes",value:function(e,t,r){var n=this.getLightboxRect(),o=n.height-2*this.props.imagePadding,a=n.width-2*this.props.imagePadding;return r||(o=Math.min(o,t),a=Math.min(a,e)),a/o>e/t?{width:e*o/t,height:o}:{width:a,height:t*a/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var r=this.getLightboxRect(),n=this.getZoomMultiplier(e),o=0;o=n*t.width-r.width<0?(r.width-n*t.width)/2:(n*t.width-r.width)/2;var a=0;return{maxX:o,maxY:a=n*t.height-r.height<0?(r.height-n*t.height)/2:(n*t.height-r.height)/2,minX:-1*o,minY:-1*a}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:w(),height:void 0!==u.window?u.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){this.timeouts=this.timeouts.filter(function(t){return t!==e}),clearTimeout(e)})},{key:"changeZoom",value:function(e,t,r){if(this.props.enableZoom){var n=Math.max(0,Math.min(300,e));if(n!==this.state.zoomLevel){if(0===n){this.setState({zoomLevel:n,offsetX:0,offsetY:0});return}var o=this.getBestImageForType("mainSrc");if(null!==o){var a=this.getZoomMultiplier(),i=this.getZoomMultiplier(n),s=this.getLightboxRect(),l=void 0!==t?t-s.left:s.width/2,c=void 0!==r?r-s.top:s.height/2,u=(s.width-o.width*a)/2,f=(s.height-o.height*a)/2,d=u-this.state.offsetX,p=f-this.state.offsetY,h=(s.width-o.width*i)/2,m=(s.height-o.height*i)/2,v=h-(l-(l-d)/a*i),g=m-(c-(c-p)/a*i);if(3!==this.currentAction){var y=this.getMaxOffsets();this.state.zoomLevel>n&&(v=Math.max(y.minX,Math.min(y.maxX,v)),g=Math.max(y.minY,Math.min(y.maxY,g)))}this.setState({zoomLevel:n,offsetX:v,offsetY:g})}}}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type){this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus;return}var t=e.which||e.keyCode,r=new Date;if(!(r.getTime()-this.lastKeyDownTime=200||e.deltaX>=100?(this.requestMoveNext(e),r=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),r=500,this.scrollX=0)),0!==r&&(this.wheelActionTimeout=this.setTimeout(function(){t.wheelActionTimeout=null},r)))}},{key:"handleImageMouseWheel",value:function(e){Math.abs(e.deltaY)>=Math.abs(e.deltaX)&&(e.stopPropagation(),1>Math.abs(e.deltaY)||(this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)))}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:if(1===this.eventsSource)return this.eventsSource=3,this.filterPointersBySource(),!0;return!1}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter(function(t){return t.id!==e.id})}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter(function(t){return t.source===e.eventsSource})}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&i.isTargetMatchImage(e.target)&&(this.addPointer(i.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[i.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(i.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":i.isTargetMatchImage(e.target)&&(this.addPointer(i.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[i.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(i.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&i.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,function(e){return t.addPointer(i.parseTouchPointer(e))}),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,function(e){return i.parseTouchPointer(e)}))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,function(e){return t.removePointer(i.parseTouchPointer(e))}),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,r=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=r,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,r=e.y,n=this.moveStartX-t+this.moveStartOffsetX,o=this.moveStartY-r+this.moveStartOffsetY;(this.state.offsetX!==n||this.state.offsetY!==o)&&this.setState({offsetX:n,offsetY:o})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),r=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),n=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));(r!==this.state.offsetX||n!==this.state.offsetY)&&(this.setState({offsetX:r,offsetY:n,shouldAnimate:!0}),this.setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,r=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=r,this.swipeEndX=t,this.swipeEndY=r}},{key:"handleSwipe",value:function(e){var t=e.x,r=e.y;this.swipeEndX=t,this.swipeEndY=r}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,r=Math.abs(t),n=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating())&&!(r<1.5*n)){if(r<200&&r0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=b(e,2),r=t[0],n=t[1];return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=b(e,2),r=t[0],n=t[1];return{x:r.x-(r.x-n.x)/2,y:r.y-(r.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map(function(e){return{id:e.id,x:e.x,y:e.y}}),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map(function(t){for(var r=0;r0&&t+o>=n||e.deltaY<0&&o<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,r){var n=this;if(this.isImageLoaded(t)){this.setTimeout(function(){r()},1);return}var o=new u.Image;this.props.imageCrossOrigin&&(o.crossOrigin=this.props.imageCrossOrigin),o.onerror=function(o){n.props.onImageLoadError(t,e,o),n.setState(function(t){return{loadErrorStatus:d(d({},t.loadErrorStatus),{},h({},e,!0))}}),r(o)},o.onload=function(){n.props.onImageLoad(t,e,o),n.imageCache[t]={loaded:!0,width:o.width,height:o.height},r()},o.src=t}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach(function(r){var n,o=r.name;t[o]&&e.state.loadErrorStatus[o]&&e.setState(function(e){return{loadErrorStatus:d(d({},e.loadErrorStatus),{},h({},o,!1))}}),t[o]&&!e.isImageLoaded(t[o])&&e.loadImage(o,t[o],(n=t[o],function(t){!t&&(e.props[o]!==n||e.didUnmount||e.forceUpdate())}))})}},{key:"requestClose",value:function(e){var t=this,r=function(){return t.props.onCloseRequest(e)};if(this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput){r();return}this.setState({isClosing:!0}),this.setTimeout(r,this.props.animationDuration)}},{key:"requestMove",value:function(e,t){var r=this,n={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(n.shouldAnimate=!0,this.setTimeout(function(){return r.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(n),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(n),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animationDisabled,n=t.animationDuration,o=t.clickOutsideToClose,s=t.discourageDownloads,l=t.enableZoom,f=t.imageTitle,p=t.nextSrc,h=t.prevSrc,v=t.toolbarButtons,g=t.reactModalStyle,y=t.onAfterOpen,b=t.imageCrossOrigin,S=t.reactModalProps,x=t.loader,w=this.state,k=w.zoomLevel,E=w.offsetX,T=w.offsetY,C=w.isClosing,D=w.loadErrorStatus,O=this.getLightboxRect(),I={};!r&&this.isAnimating()&&(I=d(d({},I),{},{transition:"transform ".concat(n,"ms")}));var A={};this.getSrcTypes().forEach(function(e){var t=e.name,r=e.keyEnding;A[t]=r});var R=[],P=function(t,r,n){if(e.props[t]){var o=e.getBestImageForType(t),l=d(d({},I),i.getTransform(d(d({},n),o)));if(k>0&&(l.cursor="move"),null===o&&Object.keys(D).some(function(e){return D[e]})){R.push((0,a.default).createElement("div",{className:"".concat(r," ril__image ril-errored"),style:l,key:e.props[t]+A[t]},(0,a.default).createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));return}if(null===o){var c=void 0!==x?x:(0,a.default).createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},j(Array(12)).map(function(e,t){return(0,a.default).createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})}));R.push((0,a.default).createElement("div",{className:"".concat(r," ril__image ril-not-loaded"),style:l,key:e.props[t]+A[t]},(0,a.default).createElement("div",{className:"ril__loadingContainer"},c)));return}var u=o.src;s?(l.backgroundImage="url('".concat(u,"')"),R.push((0,a.default).createElement("div",{className:"".concat(r," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:l,key:u+A[t]},(0,a.default).createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):R.push((0,a.default).createElement("img",m({},b?{crossOrigin:b}:{},{className:"".concat(r," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:l,src:u,key:u+A[t],alt:"string"==typeof f?f:_("Image"),draggable:!1})))}},N=this.getZoomMultiplier();P("nextSrc","ril-image-next ril__imageNext",{x:O.width}),P("mainSrc","ril-image-current",{x:-1*E,y:-1*T,zoom:N}),P("prevSrc","ril-image-prev ril__imagePrev",{x:-1*O.width});var F={overlay:d({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:d({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return(0,a.default).createElement(c.default,m({isOpen:!0,onRequestClose:o?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),y()},style:F,contentLabel:_("Lightbox"),appElement:void 0!==u.window?u.window.document.body:void 0},S),(0,a.default).createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(C?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(n,"ms"),animationDuration:"".concat(n,"ms"),animationDirection:C?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},(0,a.default).createElement("div",{className:"ril-inner ril__inner",onClick:o?this.closeIfClickInner:void 0},R),h&&(0,a.default).createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),p&&(0,a.default).createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),(0,a.default).createElement("div",{className:"ril-toolbar ril__toolbar"},(0,a.default).createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},f))),(0,a.default).createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},v&&v.map(function(e,t){return(0,a.default).createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)}),l&&(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(j(300===k?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||300===k,onClick:this.isAnimating()||300===k?void 0:this.handleZoomInButtonClick})),l&&(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(j(0===k?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===k,onClick:this.isAnimating()||0===k?void 0:this.handleZoomOutButtonClick})),(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&(0,a.default).createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},(0,a.default).createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],n=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,r=e.y,n=void 0===r?0:r,o=e.zoom,a=e.width,i=e.targetWidth,s=void 0===t?0:t,l=w();a>l&&(s+=(l-a)/2);var c=(void 0===o?1:o)*(i/a);return{transform:"translate3d(".concat(s,"px,").concat(n,"px,0) scale3d(").concat(c,",").concat(c,",1)")}}}],r&&p(i.prototype,r),n&&p(i,n),i}(o.Component);T.propTypes={mainSrc:s.default.string.isRequired,prevSrc:s.default.string,nextSrc:s.default.string,mainSrcThumbnail:s.default.string,prevSrcThumbnail:s.default.string,nextSrcThumbnail:s.default.string,onCloseRequest:s.default.func.isRequired,onMovePrevRequest:s.default.func,onMoveNextRequest:s.default.func,onImageLoadError:s.default.func,onImageLoad:s.default.func,onAfterOpen:s.default.func,discourageDownloads:s.default.bool,animationDisabled:s.default.bool,animationOnKeyInput:s.default.bool,animationDuration:s.default.number,keyRepeatLimit:s.default.number,keyRepeatKeyupBonus:s.default.number,imageTitle:s.default.node,imageCaption:s.default.node,imageCrossOrigin:s.default.string,reactModalStyle:(0,s.default).shape({}),imagePadding:s.default.number,wrapperClassName:s.default.string,toolbarButtons:(0,s.default).arrayOf(s.default.node),clickOutsideToClose:s.default.bool,enableZoom:s.default.bool,reactModalProps:(0,s.default).shape({}),nextLabel:s.default.string,prevLabel:s.default.string,zoomInLabel:s.default.string,zoomOutLabel:s.default.string,closeLabel:s.default.string,imageLoadErrorMessage:s.default.node,loader:s.default.node},T.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0},r.default=T},{react:"6uln9","prop-types":"6FKs7","react-modal":"7rd4n","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"7rd4n":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=e("5427ad131f8be9b0"))&&n.__esModule?n:{default:n};r.default=o.default,t.exports=r.default},{"5427ad131f8be9b0":"5jH0C"}],"5jH0C":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bodyOpenClassName=r.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t0&&0==(y-=1)&&u.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(l.returnFocus(r.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),h.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(l.setupScopedFocus(r.node),l.markForFocusLater()),r.setState({isOpen:!0},function(){r.openAnimationFrame=requestAnimationFrame(function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})})}))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())})},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,c.default)(r.content,e),r.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var n=(void 0===t?"undefined":o(t))==="object"?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},a=n.base;return r.state.afterOpen&&(a=a+" "+n.afterOpen),r.state.beforeClose&&(a=a+" "+n.beforeClose),"string"==typeof t&&t?a+" "+t:a},r.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(r,n){return r[e+"-"+n]=t[n],r},{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,n=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&f.add(i.body,o),n&&f.add(i.getElementsByTagName("html")[0],n),r&&(y+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=r?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(u,i);return this.props.overlayElement(c,f)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},r.default=b,t.exports=r.default},{"63dd19977a36a731":"6uln9",db21251b0abba1f9:"6FKs7","72a1f3baf76e104f":"9vnEU","3666f8b21d4423aa":"8iBrD",a3f43504eb483cba:"4un8b",c4947065f3b38ef3:"jJxBv","6a3b0e0de2312b17":"2U4pt","2f9954b1e0e9fb73":"aHNVt","78a4dea6acfbd6df":"i8C4X"}],"9vnEU":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){a=[]},r.log=function(){},r.handleBlur=l,r.handleFocus=c,r.markForFocusLater=function(){a.push(document.activeElement)},r.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},r.popWithoutFocus=function(){a.length>0&&a.pop()},r.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},r.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var n,o=(n=e("b839d05d7bb6834d"))&&n.__esModule?n:{default:n},a=[],i=null,s=!1;function l(){s=!0}function c(){s&&(s=!1,i&&setTimeout(function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()},0))}},{b839d05d7bb6834d:"UMEFP"}],UMEFP:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])},[]).filter(o)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t,r=e.getAttribute("tabindex");null===r&&(r=void 0);var o=isNaN(r);return(o||r>=0)&&(t=e.nodeName.toLowerCase(),(n.test(t)&&!e.disabled||"a"===t&&e.href||!o)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),n=r.getPropertyValue("display");return t?"contents"!==n&&("visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===n}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}t.exports=r.default},{}],"8iBrD":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var r=(0,o.default)(e);if(!r.length){t.preventDefault();return}var n=void 0,a=t.shiftKey,i=r[0],s=r[r.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!a)return;n=s}if(s!==l||a||(n=i),i===l&&a&&(n=s),n){t.preventDefault(),n.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=r.indexOf(l);if(u>-1&&(u+=a?-1:1),void 0===(n=r[u])){t.preventDefault(),(n=a?s:i).focus();return}t.preventDefault(),n.focus()}};var n,o=(n=e("353bf1d570e2f936"))&&n.__esModule?n:{default:n};t.exports=r.default},{"353bf1d570e2f936":"UMEFP"}],"4un8b":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(i).forEach(function(e){return e.removeAttribute("aria-hidden")})),i=null},r.log=function(){},r.assertNodeList=s,r.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var r=document.querySelectorAll(t);s(r,t),t=r}return i=t||i},r.validateElement=l,r.hide=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}},r.show=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}},r.documentNotReadyOrSSRTesting=function(){i=null};var n,o=(n=e("d5d50104403db2aa"))&&n.__esModule?n:{default:n},a=e("6b86617e1899709f"),i=null;function s(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},{d5d50104403db2aa:"cCKmo","6b86617e1899709f":"2U4pt"}],"2U4pt":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.canUseDOM=r.SafeNodeList=r.SafeHTMLCollection=void 0;var n,o=((n=e("1055eb882adb92ac"))&&n.__esModule?n:{default:n}).default,a=o.canUseDOM?window.HTMLElement:{};r.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},r.SafeNodeList=o.canUseDOM?window.NodeList:{},r.canUseDOM=o.canUseDOM,r.default=a},{"1055eb882adb92ac":"gGZ8o"}],jJxBv:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var r=document.body;for(var i in o)a(r,o[i]);n={},o={}},r.log=function(){};var n={},o={};function a(e,t){e.classList.remove(t)}var i=function(e,t,r){r.forEach(function(r){t[r]||(t[r]=0),t[r]+=1,e.add(r)})},s=function(e,t,r){r.forEach(function(r){t[r]&&(t[r]-=1),0===t[r]&&e.remove(r)})};r.add=function(e,t){return i(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))},r.remove=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))}},{}],aHNVt:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},r.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1!==r&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(r){return r(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new n;r.default=o},{}],i8C4X:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){for(var e=[a,i],t=0;t0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))})},{a4c68a1b57d39d:"aHNVt"}],"59GbX":[function(){},{}],f0JOr:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("recoil");let o=(0,n.atom)({key:"selectedAssetForPreviewState",default:null});r.default=o},{recoil:"2QijJ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],igeYA:[function(e,t,r){t.exports.lightbox="g4samW_lightbox",t.exports.ril__image="g4samW_ril__image"},{}],hp2Yk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"OpenAssetEditDialogButton",()=>a.default),n.export(r,"EditAssetDialog",()=>s.default),n.export(r,"editAssetDialogState",()=>c.default);var o=e("./components/OpenAssetEditDialogButton"),a=n.interopDefault(o),i=e("./components/EditAssetDialog"),s=n.interopDefault(i),l=e("./state/editAssetDialogState"),c=n.interopDefault(l)},{"./components/OpenAssetEditDialogButton":"bdwkt","./components/EditAssetDialog":"gna2Q","./state/editAssetDialogState":"i2DzX","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bdwkt:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=e("recoil"),i=e("@neos-project/react-ui-components"),s=e("@media-ui/core"),l=e("../state/editAssetDialogState"),c=n.interopDefault(l);r.default=o.memo(()=>{let[e,t]=(0,a.useRecoilState)(c.default),{translate:r}=(0,s.useIntl)();return o.createElement(i.Button,{size:"regular",style:e?"brand":"lighter",hoverStyle:"brand",onClick:()=>t(!0)},o.createElement(i.Icon,{icon:"edit"}),r("OpenAssetEditDialogButton.open","Rename asset"))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../state/editAssetDialogState":"i2DzX","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i2DzX:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("recoil");let o=(0,n.atom)({key:"editDialogState",default:!1});r.default=o},{recoil:"2QijJ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gna2Q:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("recoil"),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/components"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/state"),d=e("../state/editAssetDialogState"),p=n.interopDefault(d),h=e("../hooks/useEditAsset"),m=n.interopDefault(h),v=e("./EditAssetDialog.module.css"),g=n.interopDefault(v);r.default=(0,a.default).memo(()=>{let{translate:e}=(0,l.useIntl)(),t=(0,l.useNotify)(),r=(0,i.useRecoilValue)(f.featureFlagsState),[n,d]=(0,i.useRecoilState)(p.default),{editAsset:h,loading:v}=(0,m.default)(),{approvalAttainmentStrategy:{obtainApprovalToEditAsset:y}}=(0,l.useMediaUi)(),{refetch:b}=(0,u.useAssetsQuery)(),j=(0,o.useRef)(null),S=(0,u.useSelectedAsset)(),[x,_]=(0,a.default).useState({generateRedirects:!1}),w=(0,o.useCallback)(()=>{d(!1)},[d]),k=(0,o.useCallback)(async()=>{let r=await y({asset:S});if(r)try{await h({asset:S,filename:j.current.value,options:x}),t.ok(e("EditAssetDialog.updateFinished","Update finished")),w(),b()}catch(r){t.error(e("EditAssetDialog.updateError","Update failed"),r)}},[h,t,e,x,b,S,w,y,j]),E=S.filename.split(".").slice(0,-1).join("."),T=!v&&S.filename!=j.current?.value;return(0,a.default).createElement(c.Dialog,{isOpen:n,title:e("EditAssetDialog.title","Rename asset"),onRequestClose:()=>d(!1),actions:[(0,a.default).createElement(s.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:w},e("EditAssetDialog.cancel","Cancel")),(0,a.default).createElement(s.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!T,onClick:k},e("EditAssetDialog.update","Update"))],style:"wide"},(0,a.default).createElement("section",{className:g.default.editArea},(0,a.default).createElement(s.Label,{className:g.default.label},e("EditAssetDialog.filename","Filename"),(0,a.default).createElement("input",{className:g.default.filenameInput,type:"text",ref:j,defaultValue:E,onSubmit:k,disabled:v})),r.createAssetRedirectsOption&&(0,a.default).createElement(s.Label,{className:g.default.label},(0,a.default).createElement(s.CheckBox,{isChecked:x.generateRedirects,onChange:e=>_({...x,generateRedirects:e}),disabled:v}),(0,a.default).createElement("span",null,e("uploadDialog.generateRedirects","Generate redirects"))),v&&(0,a.default).createElement("p",null,e("EditAssetDialog.updating","Updating…"))))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","../state/editAssetDialogState":"i2DzX","../hooks/useEditAsset":"4VF7A","./EditAssetDialog.module.css":"gaK9p","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"4VF7A":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var o=e("@apollo/client"),a=e("../mutations/editAsset"),i=n.interopDefault(a);function s(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(i.default);return{editAsset:({asset:t,filename:r,options:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,filename:r,options:n}}),editState:r?.editAsset||null,error:t,loading:n}}},{"@apollo/client":"bWmmR","../mutations/editAsset":"lzEyw","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lzEyw:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client");let o=(0,n.gql)` +`;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"6Ubaq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var o=e("@apollo/client"),a=e("recoil"),i=e("@media-ui/feature-asset-tags"),s=e("@media-ui/feature-asset-collections"),l=e("../mutations");function c(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(l.UPLOAD_FILES),c=(0,a.useRecoilValue)(i.selectedTagIdState),u=(0,a.useRecoilValue)(s.selectedAssetCollectionIdState);return{uploadFiles:t=>e({variables:{files:t,tagId:c,assetCollectionId:u},refetchQueries:["ASSET_COLLECTIONS"]}),uploadState:r?.uploadFiles||[],error:t,loading:n}}},{"@apollo/client":"bWmmR",recoil:"2QijJ","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF","../mutations":"9WBt6","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lBk4j:[function(e,t,r){t.exports.uploadArea="j3Ge9q_uploadArea"},{}],"75MDD":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("recoil"),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/hooks"),u=e("@media-ui/core/src/components"),f=e("@media-ui/core/src/state"),d=e("../UploadSection"),p=n.interopDefault(d),h=e("../PreviewSection"),m=n.interopDefault(h),v=e("../../hooks"),g=e("../../hooks/useReplaceAsset"),y=n.interopDefault(g),b=e("./ReplaceAssetDialog.module.css"),j=n.interopDefault(b);r.default=(0,a.default).memo(()=>{let{translate:e}=(0,l.useIntl)(),t=(0,l.useNotify)(),r=(0,c.useSelectedAsset)(),{replaceAsset:n,uploadState:d,loading:h}=(0,y.default)(),{refetch:g}=(0,c.useAssetsQuery)(),{approvalAttainmentStrategy:{obtainApprovalToReplaceAsset:b}}=(0,l.useMediaUi)(),S=(0,i.useRecoilValue)(f.featureFlagsState),{state:x,closeDialog:_,setFiles:w}=(0,v.useUploadDialogState)(),[k,E]=(0,a.default).useState({keepOriginalFilename:!1,generateRedirects:!1}),T=!h&&x.files.selected.length>0,C=(0,o.useMemo)(()=>{let e=r?.file.mediaType,t=e.match(/^(?(?:[.!#%&'`^~$*+\-|\w]+))\//)?.groups?.type;return t?`${t}/*`:""},[r]),D=(0,o.useCallback)(async()=>{if(0===x.files.selected.length)return;let o=x.files.selected[0],a=await b({asset:r});if(a)try{await n({asset:r,file:o,options:k}),t.ok(e("uploadDialog.replacementFinished","Replacement finished")),_(),g()}catch(r){t.error(e("assetReplacement.error","Replacement failed"),r)}},[n,t,e,x,k,g,r,_,b]),O=(0,o.useCallback)(e=>{w(t=>({...t,selected:e}))},[w]);return(0,a.default).createElement(u.Dialog,{isOpen:x.visible,title:e("uploadDialog.replaceAsset","Replace Asset"),onRequestClose:_,actions:[(0,a.default).createElement(s.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:_},d?e("uploadDialog.close","Close"):e("uploadDialog.cancel","Cancel")),(0,a.default).createElement(s.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!T,onClick:D},e("uploadDialog.replace","Replace"))],style:"wide"},(0,a.default).createElement("section",{className:j.default.uploadArea},(0,a.default).createElement(p.default,{files:x.files.selected,loading:h,onSetFiles:O,maxFiles:1,acceptedFileTypes:C}),(0,a.default).createElement("section",{className:j.default.optionSection},S.createAssetRedirectsOption&&(0,a.default).createElement("div",{className:j.default.option},(0,a.default).createElement(s.Label,{className:j.default.label},(0,a.default).createElement(s.CheckBox,{isChecked:k.generateRedirects,onChange:e=>E({...k,generateRedirects:e})}),(0,a.default).createElement("span",null,e("uploadDialog.generateRedirects","Generate redirects")))),(0,a.default).createElement("div",{className:j.default.option},(0,a.default).createElement(s.Label,{className:j.default.label},(0,a.default).createElement(s.CheckBox,{isChecked:k.keepOriginalFilename,onChange:e=>E({...k,keepOriginalFilename:e})}),(0,a.default).createElement("span",null,e("uploadDialog.keepOriginalFilename","Keep original filename"))))),(0,a.default).createElement(m.default,{files:x.files,loading:h,uploadState:d?[d]:[]})))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","../UploadSection":"i9dFh","../PreviewSection":"cBrj6","../../hooks":"cWFPh","../../hooks/useReplaceAsset":"8pQeq","./ReplaceAssetDialog.module.css":"3ViDE","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"8pQeq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);var o=e("@apollo/client"),a=e("../mutations");function i(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(a.REPLACE_ASSET);return{replaceAsset:({asset:t,file:r,options:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,file:r,options:n}}),uploadState:r?.replaceAsset||null,error:t,loading:n}}},{"@apollo/client":"bWmmR","../mutations":"9WBt6","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"3ViDE":[function(e,t,r){t.exports.label="TdFhBW_label",t.exports.option="TdFhBW_option",t.exports.optionSection="TdFhBW_optionSection",t.exports.uploadArea="TdFhBW_uploadArea"},{}],"4JmWi":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=e("recoil"),i=e("./NewAssetDialog"),s=n.interopDefault(i),l=e("./ReplaceAssetDialog"),c=n.interopDefault(l),u=e("../../state/uploadDialogState");r.default=o.memo(()=>{let{visible:e,uploadType:t}=(0,a.useRecoilValue)(u.uploadDialogState);return e&&(t===u.UPLOAD_TYPE.update?o.createElement(c.default,null):o.createElement(s.default,null))||null})},{react:"6uln9",recoil:"2QijJ","./NewAssetDialog":"fwZlu","./ReplaceAssetDialog":"75MDD","../../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"1YqlF":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("@neos-project/react-ui-components"),i=e("@media-ui/core"),s=e("../state/uploadDialogState");r.default=n.memo(()=>{let[e,t]=(0,o.useRecoilState)(s.uploadDialogState),{translate:r}=(0,i.useIntl)();return n.createElement(a.Button,{size:"regular",style:e.visible&&e.uploadType===s.UPLOAD_TYPE.update?"brand":"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:s.UPLOAD_TYPE.update})},n.createElement(a.Icon,{icon:"exchange-alt"}),r("assetReplacement.toggle","Replace asset"))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bhq7y:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var o=e("react"),a=e("recoil"),i=e("@neos-project/react-ui-components"),s=e("@media-ui/core"),l=e("../state/uploadDialogState");function c(){let{translate:e}=(0,s.useIntl)(),t=(0,a.useSetRecoilState)(l.uploadDialogState);return o.createElement("div",null,o.createElement(i.Button,{size:"regular",style:"lighter",hoverStyle:"brand",onClick:()=>t({visible:!0,uploadType:l.UPLOAD_TYPE.new})},o.createElement(i.Icon,{icon:"upload"})," ",e("uploadButton.label","Upload")))}},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../state/uploadDialogState":"1bQep","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gaY0P:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"selectedAssetForPreviewState",()=>s.default),n.export(r,"AssetPreview",()=>a.default);var o=e("./components/AssetPreview"),a=n.interopDefault(o),i=e("./state/selectedAssetForPreviewState"),s=n.interopDefault(i)},{"./components/AssetPreview":"9EIdC","./state/selectedAssetForPreviewState":"f0JOr","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9EIdC":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>g);var o=e("react"),a=n.interopDefault(o),i=e("react-image-lightbox"),s=n.interopDefault(i),l=e("recoil");e("react-image-lightbox/style.css");var c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/core/src/hooks"),d=e("../state/selectedAssetForPreviewState"),p=n.interopDefault(d),h=e("./AssetPreview.module.css"),m=n.interopDefault(h);let v=(e=null)=>{let t=(0,a.default).useRef(e);return(0,a.default).useEffect(()=>{if(null===e){let e=document.createElement("div");return e.setAttribute("data-ignore_click_outside","true"),document.body.appendChild(e),t.current=e,()=>e.remove()}t.current=e},[e]),t};function g(){let{containerRef:e,isInNodeCreationDialog:t}=(0,c.useMediaUi)(),r=(0,l.useRecoilValue)(u.availableAssetsState),[n,i]=(0,l.useRecoilState)(p.default),{asset:d}=(0,f.useAssetQuery)(n),h=v(t?null:e.current),[g,y]=(0,o.useMemo)(()=>{if(!d)return[null,null];let e=r.findIndex(({id:e})=>e===d.id);return[e>0?r[e-1]:null,eh.current},wrapperClassName:m.default.lightbox,mainSrc:d.previewUrl,mainSrcThumbnail:d.thumbnailUrl,imageTitle:d.label,imageCaption:d.caption,onCloseRequest:()=>i(null),prevSrc:g?.previewUrl,prevSrcThumbnail:g?.thumbnailUrl,prevLabel:g?.label,onMovePrevRequest:()=>i(g?{assetId:g.id,assetSourceId:g.assetSource.id}:null),nextSrc:y?.previewUrl,nextSrcThumbnail:y?.thumbnailUrl,nextLabel:y?.label,onMoveNextRequest:()=>i(y?{assetId:y.id,assetSourceId:y.assetSource.id}:null)}):null}},{react:"6uln9","react-image-lightbox":"gZi0S",recoil:"2QijJ","react-image-lightbox/style.css":"59GbX","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/hooks":"b2lzd","../state/selectedAssetForPreviewState":"f0JOr","./AssetPreview.module.css":"igeYA","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gZi0S:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("prop-types"),s=n.interopDefault(i),l=e("react-modal"),c=n.interopDefault(l),u=arguments[3];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var r=e;return t&&Object.keys(t).forEach(function(e){r=r.replace(e,t[e])}),r}function w(){return void 0!==u.window?u.window.innerWidth:0}var k=function(){try{return u.window.location.hostname!==u.window.parent.location.hostname}catch(e){return!0}},E={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=v(i);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(e=r)&&("object"==typeof e||"function"==typeof e)?e:y(this)});function i(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=(0,a.default).createRef(),t.zoomInBtn=(0,a.default).createRef(),t.zoomOutBtn=(0,a.default).createRef(),t.caption=(0,a.default).createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(y(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(y(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(y(t)),t.handleKeyInput=t.handleKeyInput.bind(y(t)),t.handleMouseUp=t.handleMouseUp.bind(y(t)),t.handleMouseDown=t.handleMouseDown.bind(y(t)),t.handleMouseMove=t.handleMouseMove.bind(y(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(y(t)),t.handleTouchStart=t.handleTouchStart.bind(y(t)),t.handleTouchMove=t.handleTouchMove.bind(y(t)),t.handleTouchEnd=t.handleTouchEnd.bind(y(t)),t.handlePointerEvent=t.handlePointerEvent.bind(y(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(y(t)),t.handleWindowResize=t.handleWindowResize.bind(y(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(y(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(y(t)),t.requestClose=t.requestClose.bind(y(t)),t.requestMoveNext=t.requestMoveNext.bind(y(t)),t.requestMovePrev=t.requestMovePrev.bind(y(t)),t.timeouts=[],t.currentAction=0,t.eventsSource=0,t.pointerList=[],t.preventInnerClose=!1,t.preventInnerCloseTimeout=null,t.keyPressed=!1,t.imageCache={},t.lastKeyDownTime=0,t.resizeTimeout=null,t.wheelActionTimeout=null,t.resetScrollTimeout=null,t.scrollX=0,t.scrollY=0,t.moveStartX=0,t.moveStartY=0,t.moveStartOffsetX=0,t.moveStartOffsetY=0,t.swipeStartX=0,t.swipeStartY=0,t.swipeEndX=0,t.swipeEndY=0,t.pinchTouchList=null,t.pinchDistance=0,t.keyCounter=0,t.moveRequested=!1,t}return r=[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.window.self;return t===u.window.top?t:k()?t:e(t.parent)}(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach(function(t){e.windowContext.addEventListener(t,e.listeners[t])}),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach(function(r){t.props[r.name]!==e[r.name]&&(t.moveRequested=!1)}),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,r=!1,n={},o={};this.getSrcTypes().forEach(function(a){e[a.name]!==t.props[a.name]&&(r=!0,n[e[a.name]]=!0,o[t.props[a.name]]=!0)}),(r||this.moveRequested)&&(Object.keys(n).forEach(function(e){!(e in o)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)}),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach(function(t){e.windowContext.removeEventListener(t,e.listeners[t])}),this.timeouts.forEach(function(e){return clearTimeout(e)})}},{key:"setTimeout",value:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){var r=this,n=setTimeout(function(){r.timeouts=r.timeouts.filter(function(e){return e!==n}),e()},t);return this.timeouts.push(n),n})},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout(function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null},100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],r={};if(this.isImageLoaded(t))r=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],r=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:r.height,targetWidth:r.width}}},{key:"getFitSizes",value:function(e,t,r){var n=this.getLightboxRect(),o=n.height-2*this.props.imagePadding,a=n.width-2*this.props.imagePadding;return r||(o=Math.min(o,t),a=Math.min(a,e)),a/o>e/t?{width:e*o/t,height:o}:{width:a,height:t*a/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var r=this.getLightboxRect(),n=this.getZoomMultiplier(e),o=0;o=n*t.width-r.width<0?(r.width-n*t.width)/2:(n*t.width-r.width)/2;var a=0;return{maxX:o,maxY:a=n*t.height-r.height<0?(r.height-n*t.height)/2:(n*t.height-r.height)/2,minX:-1*o,minY:-1*a}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:w(),height:void 0!==u.window?u.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){this.timeouts=this.timeouts.filter(function(t){return t!==e}),clearTimeout(e)})},{key:"changeZoom",value:function(e,t,r){if(this.props.enableZoom){var n=Math.max(0,Math.min(300,e));if(n!==this.state.zoomLevel){if(0===n){this.setState({zoomLevel:n,offsetX:0,offsetY:0});return}var o=this.getBestImageForType("mainSrc");if(null!==o){var a=this.getZoomMultiplier(),i=this.getZoomMultiplier(n),s=this.getLightboxRect(),l=void 0!==t?t-s.left:s.width/2,c=void 0!==r?r-s.top:s.height/2,u=(s.width-o.width*a)/2,f=(s.height-o.height*a)/2,d=u-this.state.offsetX,p=f-this.state.offsetY,h=(s.width-o.width*i)/2,m=(s.height-o.height*i)/2,v=h-(l-(l-d)/a*i),g=m-(c-(c-p)/a*i);if(3!==this.currentAction){var y=this.getMaxOffsets();this.state.zoomLevel>n&&(v=Math.max(y.minX,Math.min(y.maxX,v)),g=Math.max(y.minY,Math.min(y.maxY,g)))}this.setState({zoomLevel:n,offsetX:v,offsetY:g})}}}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type){this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus;return}var t=e.which||e.keyCode,r=new Date;if(!(r.getTime()-this.lastKeyDownTime=200||e.deltaX>=100?(this.requestMoveNext(e),r=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),r=500,this.scrollX=0)),0!==r&&(this.wheelActionTimeout=this.setTimeout(function(){t.wheelActionTimeout=null},r)))}},{key:"handleImageMouseWheel",value:function(e){Math.abs(e.deltaY)>=Math.abs(e.deltaX)&&(e.stopPropagation(),1>Math.abs(e.deltaY)||(this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)))}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:if(1===this.eventsSource)return this.eventsSource=3,this.filterPointersBySource(),!0;return!1}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter(function(t){return t.id!==e.id})}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter(function(t){return t.source===e.eventsSource})}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&i.isTargetMatchImage(e.target)&&(this.addPointer(i.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[i.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(i.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":i.isTargetMatchImage(e.target)&&(this.addPointer(i.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[i.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(i.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&i.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,function(e){return t.addPointer(i.parseTouchPointer(e))}),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,function(e){return i.parseTouchPointer(e)}))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,function(e){return t.removePointer(i.parseTouchPointer(e))}),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,r=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=r,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,r=e.y,n=this.moveStartX-t+this.moveStartOffsetX,o=this.moveStartY-r+this.moveStartOffsetY;(this.state.offsetX!==n||this.state.offsetY!==o)&&this.setState({offsetX:n,offsetY:o})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),r=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),n=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));(r!==this.state.offsetX||n!==this.state.offsetY)&&(this.setState({offsetX:r,offsetY:n,shouldAnimate:!0}),this.setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,r=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=r,this.swipeEndX=t,this.swipeEndY=r}},{key:"handleSwipe",value:function(e){var t=e.x,r=e.y;this.swipeEndX=t,this.swipeEndY=r}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,r=Math.abs(t),n=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating())&&!(r<1.5*n)){if(r<200&&r0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=b(e,2),r=t[0],n=t[1];return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=b(e,2),r=t[0],n=t[1];return{x:r.x-(r.x-n.x)/2,y:r.y-(r.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map(function(e){return{id:e.id,x:e.x,y:e.y}}),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map(function(t){for(var r=0;r0&&t+o>=n||e.deltaY<0&&o<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,r){var n=this;if(this.isImageLoaded(t)){this.setTimeout(function(){r()},1);return}var o=new u.Image;this.props.imageCrossOrigin&&(o.crossOrigin=this.props.imageCrossOrigin),o.onerror=function(o){n.props.onImageLoadError(t,e,o),n.setState(function(t){return{loadErrorStatus:d(d({},t.loadErrorStatus),{},h({},e,!0))}}),r(o)},o.onload=function(){n.props.onImageLoad(t,e,o),n.imageCache[t]={loaded:!0,width:o.width,height:o.height},r()},o.src=t}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach(function(r){var n,o=r.name;t[o]&&e.state.loadErrorStatus[o]&&e.setState(function(e){return{loadErrorStatus:d(d({},e.loadErrorStatus),{},h({},o,!1))}}),t[o]&&!e.isImageLoaded(t[o])&&e.loadImage(o,t[o],(n=t[o],function(t){!t&&(e.props[o]!==n||e.didUnmount||e.forceUpdate())}))})}},{key:"requestClose",value:function(e){var t=this,r=function(){return t.props.onCloseRequest(e)};if(this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput){r();return}this.setState({isClosing:!0}),this.setTimeout(r,this.props.animationDuration)}},{key:"requestMove",value:function(e,t){var r=this,n={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(n.shouldAnimate=!0,this.setTimeout(function(){return r.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(n),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(n),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animationDisabled,n=t.animationDuration,o=t.clickOutsideToClose,s=t.discourageDownloads,l=t.enableZoom,f=t.imageTitle,p=t.nextSrc,h=t.prevSrc,v=t.toolbarButtons,g=t.reactModalStyle,y=t.onAfterOpen,b=t.imageCrossOrigin,S=t.reactModalProps,x=t.loader,w=this.state,k=w.zoomLevel,E=w.offsetX,T=w.offsetY,C=w.isClosing,D=w.loadErrorStatus,O=this.getLightboxRect(),I={};!r&&this.isAnimating()&&(I=d(d({},I),{},{transition:"transform ".concat(n,"ms")}));var A={};this.getSrcTypes().forEach(function(e){var t=e.name,r=e.keyEnding;A[t]=r});var R=[],P=function(t,r,n){if(e.props[t]){var o=e.getBestImageForType(t),l=d(d({},I),i.getTransform(d(d({},n),o)));if(k>0&&(l.cursor="move"),null===o&&Object.keys(D).some(function(e){return D[e]})){R.push((0,a.default).createElement("div",{className:"".concat(r," ril__image ril-errored"),style:l,key:e.props[t]+A[t]},(0,a.default).createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));return}if(null===o){var c=void 0!==x?x:(0,a.default).createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},j(Array(12)).map(function(e,t){return(0,a.default).createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})}));R.push((0,a.default).createElement("div",{className:"".concat(r," ril__image ril-not-loaded"),style:l,key:e.props[t]+A[t]},(0,a.default).createElement("div",{className:"ril__loadingContainer"},c)));return}var u=o.src;s?(l.backgroundImage="url('".concat(u,"')"),R.push((0,a.default).createElement("div",{className:"".concat(r," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:l,key:u+A[t]},(0,a.default).createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):R.push((0,a.default).createElement("img",m({},b?{crossOrigin:b}:{},{className:"".concat(r," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:l,src:u,key:u+A[t],alt:"string"==typeof f?f:_("Image"),draggable:!1})))}},N=this.getZoomMultiplier();P("nextSrc","ril-image-next ril__imageNext",{x:O.width}),P("mainSrc","ril-image-current",{x:-1*E,y:-1*T,zoom:N}),P("prevSrc","ril-image-prev ril__imagePrev",{x:-1*O.width});var F={overlay:d({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:d({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return(0,a.default).createElement(c.default,m({isOpen:!0,onRequestClose:o?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),y()},style:F,contentLabel:_("Lightbox"),appElement:void 0!==u.window?u.window.document.body:void 0},S),(0,a.default).createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(C?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(n,"ms"),animationDuration:"".concat(n,"ms"),animationDirection:C?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},(0,a.default).createElement("div",{className:"ril-inner ril__inner",onClick:o?this.closeIfClickInner:void 0},R),h&&(0,a.default).createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),p&&(0,a.default).createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),(0,a.default).createElement("div",{className:"ril-toolbar ril__toolbar"},(0,a.default).createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},f))),(0,a.default).createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},v&&v.map(function(e,t){return(0,a.default).createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)}),l&&(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(j(300===k?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||300===k,onClick:this.isAnimating()||300===k?void 0:this.handleZoomInButtonClick})),l&&(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(j(0===k?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===k,onClick:this.isAnimating()||0===k?void 0:this.handleZoomOutButtonClick})),(0,a.default).createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},(0,a.default).createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&(0,a.default).createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},(0,a.default).createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],n=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,r=e.y,n=void 0===r?0:r,o=e.zoom,a=e.width,i=e.targetWidth,s=void 0===t?0:t,l=w();a>l&&(s+=(l-a)/2);var c=(void 0===o?1:o)*(i/a);return{transform:"translate3d(".concat(s,"px,").concat(n,"px,0) scale3d(").concat(c,",").concat(c,",1)")}}}],r&&p(i.prototype,r),n&&p(i,n),i}(o.Component);T.propTypes={mainSrc:s.default.string.isRequired,prevSrc:s.default.string,nextSrc:s.default.string,mainSrcThumbnail:s.default.string,prevSrcThumbnail:s.default.string,nextSrcThumbnail:s.default.string,onCloseRequest:s.default.func.isRequired,onMovePrevRequest:s.default.func,onMoveNextRequest:s.default.func,onImageLoadError:s.default.func,onImageLoad:s.default.func,onAfterOpen:s.default.func,discourageDownloads:s.default.bool,animationDisabled:s.default.bool,animationOnKeyInput:s.default.bool,animationDuration:s.default.number,keyRepeatLimit:s.default.number,keyRepeatKeyupBonus:s.default.number,imageTitle:s.default.node,imageCaption:s.default.node,imageCrossOrigin:s.default.string,reactModalStyle:(0,s.default).shape({}),imagePadding:s.default.number,wrapperClassName:s.default.string,toolbarButtons:(0,s.default).arrayOf(s.default.node),clickOutsideToClose:s.default.bool,enableZoom:s.default.bool,reactModalProps:(0,s.default).shape({}),nextLabel:s.default.string,prevLabel:s.default.string,zoomInLabel:s.default.string,zoomOutLabel:s.default.string,closeLabel:s.default.string,imageLoadErrorMessage:s.default.node,loader:s.default.node},T.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0},r.default=T},{react:"6uln9","prop-types":"6FKs7","react-modal":"7rd4n","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"7rd4n":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=e("5427ad131f8be9b0"))&&n.__esModule?n:{default:n};r.default=o.default,t.exports=r.default},{"5427ad131f8be9b0":"5jH0C"}],"5jH0C":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bodyOpenClassName=r.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t0&&0==(y-=1)&&u.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(l.returnFocus(r.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),h.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(l.setupScopedFocus(r.node),l.markForFocusLater()),r.setState({isOpen:!0},function(){r.openAnimationFrame=requestAnimationFrame(function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})})}))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())})},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,c.default)(r.content,e),r.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var n=(void 0===t?"undefined":o(t))==="object"?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},a=n.base;return r.state.afterOpen&&(a=a+" "+n.afterOpen),r.state.beforeClose&&(a=a+" "+n.beforeClose),"string"==typeof t&&t?a+" "+t:a},r.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(r,n){return r[e+"-"+n]=t[n],r},{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,n=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&f.add(i.body,o),n&&f.add(i.getElementsByTagName("html")[0],n),r&&(y+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=r?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(u,i);return this.props.overlayElement(c,f)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},r.default=b,t.exports=r.default},{"63dd19977a36a731":"6uln9",db21251b0abba1f9:"6FKs7","72a1f3baf76e104f":"9vnEU","3666f8b21d4423aa":"8iBrD",a3f43504eb483cba:"4un8b",c4947065f3b38ef3:"jJxBv","6a3b0e0de2312b17":"2U4pt","2f9954b1e0e9fb73":"aHNVt","78a4dea6acfbd6df":"i8C4X"}],"9vnEU":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){a=[]},r.log=function(){},r.handleBlur=l,r.handleFocus=c,r.markForFocusLater=function(){a.push(document.activeElement)},r.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},r.popWithoutFocus=function(){a.length>0&&a.pop()},r.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},r.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var n,o=(n=e("b839d05d7bb6834d"))&&n.__esModule?n:{default:n},a=[],i=null,s=!1;function l(){s=!0}function c(){s&&(s=!1,i&&setTimeout(function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()},0))}},{b839d05d7bb6834d:"UMEFP"}],UMEFP:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])},[]).filter(o)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t,r=e.getAttribute("tabindex");null===r&&(r=void 0);var o=isNaN(r);return(o||r>=0)&&(t=e.nodeName.toLowerCase(),(n.test(t)&&!e.disabled||"a"===t&&e.href||!o)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),n=r.getPropertyValue("display");return t?"contents"!==n&&("visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===n}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}t.exports=r.default},{}],"8iBrD":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var r=(0,o.default)(e);if(!r.length){t.preventDefault();return}var n=void 0,a=t.shiftKey,i=r[0],s=r[r.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!a)return;n=s}if(s!==l||a||(n=i),i===l&&a&&(n=s),n){t.preventDefault(),n.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=r.indexOf(l);if(u>-1&&(u+=a?-1:1),void 0===(n=r[u])){t.preventDefault(),(n=a?s:i).focus();return}t.preventDefault(),n.focus()}};var n,o=(n=e("353bf1d570e2f936"))&&n.__esModule?n:{default:n};t.exports=r.default},{"353bf1d570e2f936":"UMEFP"}],"4un8b":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(i).forEach(function(e){return e.removeAttribute("aria-hidden")})),i=null},r.log=function(){},r.assertNodeList=s,r.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var r=document.querySelectorAll(t);s(r,t),t=r}return i=t||i},r.validateElement=l,r.hide=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}},r.show=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}},r.documentNotReadyOrSSRTesting=function(){i=null};var n,o=(n=e("d5d50104403db2aa"))&&n.__esModule?n:{default:n},a=e("6b86617e1899709f"),i=null;function s(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},{d5d50104403db2aa:"cCKmo","6b86617e1899709f":"2U4pt"}],"2U4pt":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.canUseDOM=r.SafeNodeList=r.SafeHTMLCollection=void 0;var n,o=((n=e("1055eb882adb92ac"))&&n.__esModule?n:{default:n}).default,a=o.canUseDOM?window.HTMLElement:{};r.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},r.SafeNodeList=o.canUseDOM?window.NodeList:{},r.canUseDOM=o.canUseDOM,r.default=a},{"1055eb882adb92ac":"gGZ8o"}],jJxBv:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var r=document.body;for(var i in o)a(r,o[i]);n={},o={}},r.log=function(){};var n={},o={};function a(e,t){e.classList.remove(t)}var i=function(e,t,r){r.forEach(function(r){t[r]||(t[r]=0),t[r]+=1,e.add(r)})},s=function(e,t,r){r.forEach(function(r){t[r]&&(t[r]-=1),0===t[r]&&e.remove(r)})};r.add=function(e,t){return i(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))},r.remove=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?n:o,t.split(" "))}},{}],aHNVt:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},r.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1!==r&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(r){return r(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new n;r.default=o},{}],i8C4X:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){for(var e=[a,i],t=0;t0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))})},{a4c68a1b57d39d:"aHNVt"}],"59GbX":[function(){},{}],f0JOr:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("recoil");let o=(0,n.atom)({key:"selectedAssetForPreviewState",default:null});r.default=o},{recoil:"2QijJ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],igeYA:[function(e,t,r){t.exports.lightbox="g4samW_lightbox",t.exports.ril__image="g4samW_ril__image"},{}],hp2Yk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"OpenAssetEditDialogButton",()=>a.default),n.export(r,"EditAssetDialog",()=>s.default),n.export(r,"editAssetDialogState",()=>c.default);var o=e("./components/OpenAssetEditDialogButton"),a=n.interopDefault(o),i=e("./components/EditAssetDialog"),s=n.interopDefault(i),l=e("./state/editAssetDialogState"),c=n.interopDefault(l)},{"./components/OpenAssetEditDialogButton":"bdwkt","./components/EditAssetDialog":"gna2Q","./state/editAssetDialogState":"i2DzX","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bdwkt:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=e("recoil"),i=e("@neos-project/react-ui-components"),s=e("@media-ui/core"),l=e("../state/editAssetDialogState"),c=n.interopDefault(l);r.default=o.memo(()=>{let[e,t]=(0,a.useRecoilState)(c.default),{translate:r}=(0,s.useIntl)();return o.createElement(i.Button,{size:"regular",style:e?"brand":"lighter",hoverStyle:"brand",onClick:()=>t(!0)},o.createElement(i.Icon,{icon:"edit"}),r("OpenAssetEditDialogButton.open","Rename asset"))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../state/editAssetDialogState":"i2DzX","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i2DzX:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("recoil");let o=(0,n.atom)({key:"editDialogState",default:!1});r.default=o},{recoil:"2QijJ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gna2Q:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("recoil"),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/components"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/state"),d=e("../state/editAssetDialogState"),p=n.interopDefault(d),h=e("../hooks/useEditAsset"),m=n.interopDefault(h),v=e("./EditAssetDialog.module.css"),g=n.interopDefault(v);r.default=(0,a.default).memo(()=>{let{translate:e}=(0,l.useIntl)(),t=(0,l.useNotify)(),r=(0,i.useRecoilValue)(f.featureFlagsState),[n,d]=(0,i.useRecoilState)(p.default),{editAsset:h,loading:v}=(0,m.default)(),{approvalAttainmentStrategy:{obtainApprovalToEditAsset:y}}=(0,l.useMediaUi)(),{refetch:b}=(0,u.useAssetsQuery)(),j=(0,o.useRef)(null),S=(0,u.useSelectedAsset)(),[x,_]=(0,a.default).useState({generateRedirects:!1}),w=(0,o.useCallback)(()=>{d(!1)},[d]),k=(0,o.useCallback)(async()=>{let r=await y({asset:S});if(r)try{await h({asset:S,filename:j.current.value,options:x}),t.ok(e("EditAssetDialog.updateFinished","Update finished")),w(),b()}catch(r){t.error(e("EditAssetDialog.updateError","Update failed"),r)}},[h,t,e,x,b,S,w,y,j]),E=S.filename.split(".").slice(0,-1).join("."),T=!v&&S.filename!=j.current?.value;return(0,a.default).createElement(c.Dialog,{isOpen:n,title:e("EditAssetDialog.title","Rename asset"),onRequestClose:()=>d(!1),actions:[(0,a.default).createElement(s.Button,{key:"cancel",style:"neutral",hoverStyle:"darken",onClick:w},e("EditAssetDialog.cancel","Cancel")),(0,a.default).createElement(s.Button,{key:"upload",style:"success",hoverStyle:"success",disabled:!T,onClick:k},e("EditAssetDialog.update","Update"))],style:"wide"},(0,a.default).createElement("section",{className:g.default.editArea},(0,a.default).createElement(s.Label,{className:g.default.label},e("EditAssetDialog.filename","Filename"),(0,a.default).createElement("input",{className:g.default.filenameInput,type:"text",ref:j,defaultValue:E,onSubmit:k,disabled:v})),r.createAssetRedirectsOption&&(0,a.default).createElement(s.Label,{className:g.default.label},(0,a.default).createElement(s.CheckBox,{isChecked:x.generateRedirects,onChange:e=>_({...x,generateRedirects:e}),disabled:v}),(0,a.default).createElement("span",null,e("uploadDialog.generateRedirects","Generate redirects"))),v&&(0,a.default).createElement("p",null,e("EditAssetDialog.updating","Updating…"))))})},{react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","../state/editAssetDialogState":"i2DzX","../hooks/useEditAsset":"4VF7A","./EditAssetDialog.module.css":"gaK9p","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"4VF7A":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var o=e("@apollo/client"),a=e("../mutations/editAsset"),i=n.interopDefault(a);function s(){let[e,{error:t,data:r,loading:n}]=(0,o.useMutation)(i.default);return{editAsset:({asset:t,filename:r,options:n})=>e({variables:{id:t.id,assetSourceId:t.assetSource.id,filename:r,options:n}}),editState:r?.editAsset||null,error:t,loading:n}}},{"@apollo/client":"bWmmR","../mutations/editAsset":"lzEyw","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lzEyw:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("@apollo/client");let o=(0,n.gql)` mutation EditAsset( $id: AssetId! $assetSourceId: AssetSourceId! @@ -433,5 +436,5 @@ x y } -`;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9Mdcq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("./Variant.module.css"),s=n.interopDefault(i);r.default=({presetIdentifier:e,variantName:t,width:r,height:n,previewUrl:o})=>(0,a.default).createElement("div",{className:s.default.variantContainer},(0,a.default).createElement("picture",{className:s.default.picture},(0,a.default).createElement("img",{className:s.default.image,src:o,alt:t})),(0,a.default).createElement("figcaption",{className:s.default.caption},(0,a.default).createElement("div",{className:s.default.infoContainer},e?(0,a.default).createElement("span",{className:s.default.info},"Preset: ",e):null,t?(0,a.default).createElement("span",{className:s.default.info},"Variant: ",t):null,(0,a.default).createElement("span",{className:s.default.variantSizes},"W: ",r," H: ",n))))},{react:"6uln9","./Variant.module.css":"bVB6o","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bVB6o:[function(e,t,r){t.exports.caption="GS2huq_caption",t.exports.image="GS2huq_image",t.exports.info="GS2huq_info",t.exports.infoContainer="GS2huq_infoContainer",t.exports.picture="GS2huq_picture",t.exports.variantContainer="GS2huq_variantContainer",t.exports.variantSizes="GS2huq_variantSizes"},{}],fGiiN:[function(e,t,r){t.exports.variantItem="RPvqMq_variantItem",t.exports.variantsContainer="RPvqMq_variantsContainer"},{}],elGDP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/components"),d=e("@media-ui/core/src/state"),p=e("./index"),h=e("./Property"),m=n.interopDefault(h),v=e("./Actions"),g=n.interopDefault(v),y=e("./InspectorContainer"),b=n.interopDefault(y),j=e("./Tasks"),S=n.interopDefault(j),x=e("./PropertyInspector.module.css"),_=n.interopDefault(x),w=e("@media-ui/feature-asset-sources");r.default=(0,i.default).memo(()=>{let e=(0,u.useSelectedAsset)(),{assetSources:t}=(0,w.useAssetSourcesQuery)(),r=(0,c.useNotify)(),{translate:n}=(0,c.useIntl)(),{approvalAttainmentStrategy:{obtainApprovalToUpdateAsset:i}}=(0,c.useMediaUi)(),h=(0,s.useRecoilValue)(d.featureFlagsState),[v,y]=(0,a.useState)(null),[j,x]=(0,a.useState)(null),[k,E]=(0,a.useState)(null),[T,C]=(0,a.useState)(h.propertyEditor.collapsed),{updateAsset:D,loading:O}=(0,u.useUpdateAsset)(),I=e?.localId&&!O,A=e&&(v!==e.label||j!==e.caption||k!==e.copyrightNotice),R=e?t.find(({id:t})=>t===e.assetSource.id):null,P=(0,a.useCallback)(()=>{e&&(y(e.label),x(e.caption),E(e.copyrightNotice))},[e,y,x,E]),N=(0,a.useCallback)(async()=>{if(v!==e.label||j!==e.caption||k!==e.copyrightNotice){let t=await i({asset:e});if(t)try{await D({asset:e,label:v,caption:j,copyrightNotice:k}),r.ok(n("actions.updateAsset.success","The asset has been updated"))}catch({message:e}){r.error(n("actions.deleteAsset.error","Error while updating the asset"),e)}}},[r,n,j,k,v,e,D,i]);return((0,a.useEffect)(()=>{P()},[e?.id]),e)?(0,o.jsxs)(b.default,{children:[(0,o.jsxs)(l.ToggablePanel,{closesToBottom:!0,className:_.default.propertyPanel,isOpen:!T,onPanelToggle:()=>C(e=>!e),children:[(0,o.jsx)(l.ToggablePanel.Header,{className:_.default.propertyPanelHeader,children:(0,o.jsx)(f.IconLabel,{icon:"pencil",label:n("propertyPanel.header","Properties")})}),(0,o.jsxs)(l.ToggablePanel.Contents,{className:_.default.propertyPanelContents,children:[(0,o.jsx)(m.default,{label:n("inspector.title","Title"),children:(0,o.jsx)(l.TextInput,{name:"label",disabled:!I,type:"text",value:v||"",onChange:y,onEnterKey:N})}),(0,o.jsx)(m.default,{label:n("inspector.caption","Caption"),children:(0,o.jsx)(l.TextArea,{name:"caption",className:_.default.textArea,disabled:!I,minRows:3,expandedRows:6,value:j||"",onChange:x})}),(0,o.jsx)(m.default,{label:n("inspector.copyrightNotice","Copyright notice"),children:(0,o.jsx)(l.TextArea,{name:"copyrightNotice",className:_.default.textArea,disabled:!I,minRows:2,expandedRows:4,value:k||"",onChange:E})}),I&&(0,o.jsx)(g.default,{handleApply:N,handleDiscard:P,hasUnpublishedChanges:A,inputValid:!!v})]})]}),R.supportsCollections&&(0,o.jsx)(p.CollectionSelectBox,{}),R.supportsTagging&&(0,o.jsx)(p.TagSelectBoxAsset,{}),(0,o.jsx)(S.default,{}),(0,o.jsx)(p.MetadataView,{})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","./index":"eMQJr","./Property":"i6Kvg","./Actions":"jKrDW","./InspectorContainer":"5SG0j","./Tasks":"dqcVs","./PropertyInspector.module.css":"jaNwZ","@media-ui/feature-asset-sources":"9cP7j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dqcVs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/components"),f=e("@media-ui/feature-asset-usage/src/index"),d=e("@media-ui/feature-similar-assets"),p=e("@media-ui/feature-asset-upload/src/components"),h=e("@media-ui/feature-asset-editing"),m=e("@media-ui/core/src/hooks"),v=e("@media-ui/core/src/state"),g=e("./Tasks.module.css"),y=n.interopDefault(g);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,c.useIntl)(),t=(0,m.useSelectedAsset)(),r=(0,s.useRecoilValue)(v.applicationContextState),{showSimilarAssets:n}=(0,s.useRecoilValue)(v.featureFlagsState);return t?(0,o.jsxs)("div",{className:y.default.tasks,children:[(0,o.jsx)(l.Headline,{type:"h2",children:(0,o.jsx)(u.IconLabel,{icon:"tasks",label:e("inspector.actions","Tasks")})}),(0,o.jsx)(f.AssetUsagesToggleButton,{}),n&&(0,o.jsx)(d.SimilarAssetsToggleButton,{}),!t.assetSource.readOnly&&"details"!==r&&(0,o.jsx)(p.AssetReplacementButton,{}),!t.assetSource.readOnly&&"details"!==r&&(0,o.jsx)(h.OpenAssetEditDialogButton,{})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@media-ui/feature-asset-usage/src/index":"lWHpb","@media-ui/feature-similar-assets":"fcGtf","@media-ui/feature-asset-upload/src/components":"aZ3Bv","@media-ui/feature-asset-editing":"hp2Yk","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","./Tasks.module.css":"i2qG2","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i2qG2:[function(e,t,r){t.exports.tasks="gOSwCW_tasks"},{}],jaNwZ:[function(e,t,r){t.exports.propertyPanelContents="QsDLeW_propertyPanelContents",t.exports.propertyPanelHeader="QsDLeW_propertyPanelHeader",t.exports.textArea="QsDLeW_textArea"},{}],dh8Aw:[function(e,t,r){t.exports.tabContent="_5E9l1q_tabContent"},{}],dODCE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/components"),d=e("@media-ui/core/src/state"),p=e("@media-ui/feature-asset-collections"),h=e("./CollectionSelectBox.module.css"),m=e("./AssetCollectionOptionPreviewElement");let v=(e,t)=>e.join(",")===t.collections.map(e=>e.id).join(",");r.default=(0,i.default).memo(()=>{let e=(0,c.useNotify)(),{translate:t}=(0,c.useIntl)(),{approvalAttainmentStrategy:{obtainApprovalToSetAssetCollections:r}}=(0,c.useMediaUi)(),{assetCollections:n}=(0,p.useAssetCollectionsQuery)(),{setAssetCollections:i,loading:g}=(0,u.useSetAssetCollections)(),y=(0,u.useSelectedAsset)(),{limitToSingleAssetCollectionPerAsset:b}=(0,s.useRecoilValue)(d.featureFlagsState),[j,S]=(0,a.useState)(""),x=(0,a.useMemo)(()=>n.map(e=>({label:e.title,id:e.id,secondaryLabel:e.parent?"/"+(0,p.collectionPath)(e,n).map(({title:e})=>e).join("/"):""})),[n]),_=(0,a.useMemo)(()=>x.filter(({label:e})=>e.toLowerCase().includes(j)),[x,j]),[w,k]=(0,a.useState)([]),E=(0,a.useCallback)(()=>k(y?.collections.map(({id:e})=>e)||[]),[y?.collections]),T=(0,a.useCallback)(async o=>{if(null===o?o=[]:"string"==typeof o&&(o=[o]),!v(o,y)){let a=n.filter(e=>o.includes(e.id)),s=await r({asset:y,newAssetCollections:a});if(s)try{await i({asset:y,assetCollections:a}),e.ok(t("actions.setAssetCollections.success","The collections for the asset have been set"))}catch({message:r}){e.error(t("actions.setAssetCollections.error","Error while setting the collections for the asset"),r)}else E()}},[e,y,i,n,t,E,r]),C=(0,a.useCallback)(e=>{S(e.toLowerCase())},[]);return((0,a.useEffect)(E,[E]),y)?(0,o.jsx)("div",{className:"collectionSelectBox",children:b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Headline,{type:"h2",children:(0,o.jsx)(f.IconLabel,{icon:"folder",label:t("inspector.assetCollection","Collection")})}),(0,o.jsx)(l.SelectBox,{className:h.collectionSelectBox,disabled:g||y.assetSource.readOnly,placeholder:t("inspector.collections.placeholder","Select a collection"),value:w.length?w[0]:null,optionValueField:"id",options:_,noMatchesFoundLabel:t("general.noMatchesFound","No matches found"),onValueChange:T,onSearchTermChange:C,ListPreviewElement:m.AssetCollectionOptionPreviewElement,displaySearchBox:!0,allowEmpty:!0,threshold:0})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Headline,{type:"h2",children:(0,o.jsx)(f.IconLabel,{icon:"folder",label:t("inspector.assetCollections","Collections")})}),(0,o.jsx)(l.MultiSelectBox,{className:h.collectionSelectBox,disabled:g||y.assetSource.readOnly,placeholder:t("inspector.collections.placeholder","Select a collection"),values:w,optionValueField:"id",options:x,searchOptions:_,noMatchesFoundLabel:t("general.noMatchesFound","No matches found"),onValuesChange:T,onSearchTermChange:C,ListPreviewElement:m.AssetCollectionOptionPreviewElement,displaySearchBox:!0,allowEmpty:!0,threshold:0})]})}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-collections":"ACGoF","./CollectionSelectBox.module.css":"4nwhZ","./AssetCollectionOptionPreviewElement":"4Vmvi","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"4nwhZ":[function(e,t,r){t.exports.collectionSelectBox="cQ-_Aa_collectionSelectBox"},{}],cVRYy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/hooks"),u=e("@media-ui/core/src/components"),f=e("./IptcMetadataInspector.module.css"),d=n.interopDefault(f);r.default=(0,i.default).memo(()=>{let e=(0,c.useSelectedAsset)(),{translate:t}=(0,l.useIntl)();return e?.iptcProperties?.length?(0,o.jsxs)("div",{className:d.default.iptcData,children:[(0,o.jsx)(s.Headline,{type:"h2",children:(0,o.jsx)(u.IconLabel,{icon:"camera",label:t("inspector.iptcMetadata","IPTC Metadata")})}),(0,o.jsx)(u.PropertyList,{children:e.iptcProperties.map(e=>(0,o.jsx)(u.PropertyListItem,{label:e.propertyName,value:e.value},e.propertyName))})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","./IptcMetadataInspector.module.css":"j7Y54","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],j7Y54:[function(e,t,r){t.exports.iptcData="_8r-_bG_iptcData"},{}],"2VlG8":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react/jsx-runtime"),o=e("react"),a=e("@neos-project/react-ui-components"),i=e("@media-ui/core"),s=e("@media-ui/core/src/hooks"),l=e("@media-ui/core/src/helper"),c=e("@media-ui/core/src/components");r.default=o.memo(()=>{let{translate:e}=(0,i.useIntl)(),t=(0,s.useSelectedAsset)();return t?(0,n.jsxs)("div",{children:[(0,n.jsx)(a.Headline,{type:"h2",children:(0,n.jsx)(c.IconLabel,{icon:"info-circle",label:e("inspector.metadata","Metadata")})}),(0,n.jsxs)(c.PropertyList,{children:[(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.dimensions","Dimensions"),value:`${t.width}px x ${t.height}px`}),t.file.size>0&&(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.fileSize","Size"),value:(0,l.humanFileSize)(t.file.size)}),(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.filename","Filename"),value:t.filename}),(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.lastModified","Last modified"),value:new Date(t.lastModified).toLocaleString()}),(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.mediaType","MIME type"),value:t.file.mediaType})]})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/helper":"80jPI","@media-ui/core/src/components":"5LFSk","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"8ozOG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=e("recoil"),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/state"),u=e("@media-ui/feature-asset-tags"),f=e("./Actions"),d=n.interopDefault(f),p=e("./Property"),h=n.interopDefault(p),m=e("./InspectorContainer"),v=n.interopDefault(m);r.default=a.memo(()=>{let e=(0,u.useSelectedTag)(),t=(0,i.useRecoilValue)(c.selectedInspectorViewState),r=(0,l.useNotify)(),{translate:n}=(0,l.useIntl)(),[f,p]=(0,a.useState)(null),{updateTag:m}=(0,u.useUpdateTag)(),g=e&&f!==e.label,y=(0,a.useCallback)(()=>{e&&p(e.label)},[e,p]),b=(0,a.useCallback)(()=>{f!==e.label&&m({tag:e,label:f}).then(()=>{r.ok(n("actions.updateTag.success","The tag has been updated"))}).catch(({message:e})=>{r.error(n("actions.updateTag.error","Error while updating the tag"),e)})},[r,n,e,m,f]);return((0,a.useEffect)(()=>{y()},[e?.id]),e&&"tag"===t)?(0,o.jsxs)(v.default,{children:[(0,o.jsx)(h.default,{label:n("inspector.label","Label"),children:(0,o.jsx)(s.TextInput,{type:"text",value:f||"",onChange:p,onEnterKey:b})}),(0,o.jsx)(d.default,{handleApply:b,handleDiscard:y,hasUnpublishedChanges:g})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-tags":"aqhtm","./Actions":"jKrDW","./Property":"i6Kvg","./InspectorContainer":"5SG0j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],k1P3m:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/components");r.default=(0,i.default).memo(({values:e,options:t,onChange:r,disabled:n=!1})=>{let{translate:a}=(0,l.useIntl)();return(0,o.jsxs)("div",{className:"tagSelectBox",children:[(0,o.jsx)(s.Headline,{type:"h2",children:(0,o.jsx)(c.IconLabel,{icon:"tags",label:a("inspector.tags","Tags")})}),(0,o.jsx)(s.MultiSelectBox,{className:"tagSelection",disabled:n,placeholder:a("inspector.tags.placeholder","Select a tag"),noMatchesFoundLabel:a("general.noMatchesFound","No matches found"),values:e,optionValueField:"id",options:t,searchOptions:t,onValuesChange:e=>r(e.map(e=>t.find(t=>t.id===e)))})]})})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"92cb0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core"),l=e("@media-ui/core/src/hooks"),c=e("@media-ui/feature-asset-tags"),u=e(".");let f=(e,t)=>e.map(e=>e.id).sort().join(",")===t.tags.map(e=>e.id).sort().join(",");r.default=(0,i.default).memo(()=>{let e=(0,s.useNotify)(),{translate:t}=(0,s.useIntl)(),{approvalAttainmentStrategy:{obtainApprovalToSetAssetTags:r}}=(0,s.useMediaUi)(),{tags:n}=(0,c.useTagsQuery)(),{setAssetTags:i,loading:d}=(0,l.useSetAssetTags)(),p=(0,l.useSelectedAsset)(),[h,m]=(0,a.useState)([]),v=(0,a.useCallback)(()=>m(p?.tags.map(({id:e})=>e).sort()),[p?.tags]),g=(0,a.useCallback)(async n=>{if(!f(n,p)){let o=await r({asset:p,newTags:n});if(o)try{await i({asset:p,tags:n}),e.ok(t("actions.setAssetTags.success","The asset has been tagged"))}catch({message:r}){e.error(t("actions.setAssetTags.error","Error while tagging the asset"),r)}else v()}},[e,p,i,t,v,r]);return((0,a.useEffect)(()=>v(),[v]),p)?(0,o.jsx)(u.TagSelectBox,{values:h,options:n,onChange:g,disabled:d||p.assetSource.readOnly}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-tags":"aqhtm",".":"eMQJr","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],esvmA:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core"),l=e("@media-ui/feature-asset-tags"),c=e("@media-ui/feature-asset-collections"),u=e(".");let f=(e,t)=>e.map(e=>e.id).sort().join(",")===t.tags.map(e=>e.id).sort().join(",");r.default=(0,i.default).memo(()=>{let e=(0,s.useNotify)(),{translate:t}=(0,s.useIntl)(),{tags:r}=(0,l.useTagsQuery)(),{updateAssetCollection:n}=(0,c.useUpdateAssetCollection)(),i=(0,c.useSelectedAssetCollection)(),d=(0,a.useMemo)(()=>i?.tags.map(({id:e})=>e).sort(),[i?.tags]),p=(0,a.useCallback)(r=>{f(r,i)||n({assetCollection:i,tags:r}).then(()=>{e.ok(t("actions.tagAssetCollection.success","The asset collection has been tagged"))}).catch(({message:r})=>{e.error(t("actions.tagAssetCollection.error","Error while tagging the asset collection"),r)})},[e,i,n,t]);return i?(0,o.jsx)(u.TagSelectBox,{values:d,options:r,onChange:p}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core":"j3EAa","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF",".":"eMQJr","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bK6dT:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/core/src/components"),d=e("@media-ui/feature-asset-collections"),p=e("@media-ui/feature-asset-tags"),h=e("./CurrentSelection.module.css"),m=n.interopDefault(h);r.default=(0,i.default).memo(()=>{let e=(0,d.useSelectedAssetCollection)(),t=(0,p.useSelectedTag)(),r=(0,s.useSetRecoilState)(u.selectedAssetCollectionAndTagState),n=(0,s.useRecoilValue)(u.selectedInspectorViewState),{translate:i}=(0,c.useIntl)(),{assetCollections:h}=(0,d.useAssetCollectionsQuery)(),v=(0,a.useMemo)(()=>{let r="question",o=null,a=[];return"asset"!==n&&(e&&(a=(0,d.collectionPath)(e,h)),"assetCollection"===n?(r="folder",o=e?.title):"tag"===n&&(r="tag",o=t?.label)),{icon:r,label:o,path:a}},[t,e,n,h]);return v.label&&"asset"!==n?(0,o.jsxs)("div",{className:m.default.currentSelection,children:[(0,o.jsx)(l.Headline,{type:"h2",className:m.default.headline,children:"assetCollection"===n?i("currentSelection.assetCollection.headline","Selected collection"):i("currentSelection.tag.headline","Selected tag")}),(0,o.jsx)(f.IconLabel,{icon:v.icon,className:m.default.label,label:v.label}),(0,o.jsx)(l.Headline,{type:"h3",className:m.default.headline,children:i("currentSelection.path.headline","Path")}),(0,o.jsxs)("div",{className:m.default.breadcrumb,children:[(0,o.jsx)("button",{type:"button",onClick:()=>r({assetCollectionId:null,tagId:null}),children:"/"}),v.path.map(({id:e,title:t})=>(0,o.jsx)("button",{type:"button",onClick:()=>r({assetCollectionId:e,tagId:null}),children:t},e))]})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/components":"5LFSk","@media-ui/feature-asset-collections":"ACGoF","@media-ui/feature-asset-tags":"aqhtm","./CurrentSelection.module.css":"bWZ7L","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bWZ7L:[function(e,t,r){t.exports.breadcrumb="zzq2Ja_breadcrumb",t.exports.currentSelection="zzq2Ja_currentSelection",t.exports.headline="zzq2Ja_headline",t.exports.label="zzq2Ja_label"},{}],"1t2UB":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react");n.interopDefault(a);var i=e("recoil"),s=e("@media-ui/core/src/state"),l=e("./LoadingIndicator.module.css"),c=n.interopDefault(l);r.default=()=>{let e=(0,i.useRecoilValue)(s.loadingState);return(0,o.jsx)("div",{className:c.default.indicator,"data-animated":e,role:"progressbar","aria-hidden":!0})}},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@media-ui/core/src/state":"jV1GH","./LoadingIndicator.module.css":"dIyLG","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dIyLG:[function(e,t,r){t.exports.cssLoadWidth="_5GQP0G_cssLoadWidth",t.exports.cssLoadWidth,t.exports.indicator="_5GQP0G_indicator"},{}],gzfIV:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BottomBar",()=>a.default);var o=e("./BottomBar"),a=n.interopDefault(o)},{"./BottomBar":"h8Akg","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],h8Akg:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("classnames"),l=n.interopDefault(s),c=e("@media-ui/core"),u=e("@media-ui/feature-clipboard"),f=e("./AssetCount/AssetCount"),d=n.interopDefault(f),p=e("./Pagination/Pagination"),h=n.interopDefault(p),m=e("./BottomBar.module.css"),v=n.interopDefault(m);r.default=(0,i.default).memo(()=>{let{isInNodeCreationDialog:e,selectionMode:t}=(0,c.useMediaUi)(),r=[d.default,h.default,u.ClipboardToggle];return(0,o.jsx)("div",{className:(0,l.default)(v.default.bottomBar,{[v.default.selectionMode]:e||t,[v.default.isInNodeCreationDialog]:e}),children:r.map((e,t)=>(0,o.jsx)(e,{},t))})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/feature-clipboard":"hHDiM","./AssetCount/AssetCount":"04BLa","./Pagination/Pagination":"4QfNK","./BottomBar.module.css":"hGqKo","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"04BLa":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core"),l=e("../../../hooks"),c=e("./AssetCount.module.css"),u=n.interopDefault(c);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,s.useIntl)(),t=(0,l.useAssetCount)();return(0,o.jsxs)("div",{className:u.default.assetCount,children:[t," ",e("pagination.assetCount","assets")]})})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core":"j3EAa","../../../hooks":"eJO7U","./AssetCount.module.css":"cHkV2","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],eJO7U:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useAssetCount",()=>a.default);var o=e("./useAssetCount"),a=n.interopDefault(o)},{"./useAssetCount":"cN12u","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],cN12u:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("@media-ui/core/src/hooks"),i=e("@media-ui/feature-asset-usage"),s=e("../state");r.default=()=>{let{assetCount:e}=(0,a.useAssetCountQuery)(),t=(0,o.useRecoilValue)(s.mainViewState),{called:r,load:l,unusedAssetCount:c}=(0,i.useUnusedAssetCountQuery)(),u=t===s.MainViewMode.UNUSED_ASSETS?c:e;return(0,n.useEffect)(()=>{t!==s.MainViewMode.UNUSED_ASSETS||r||l()},[t,r,l]),u}},{react:"6uln9",recoil:"2QijJ","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-usage":"lWHpb","../state":"4QYDB","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"4QYDB":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"mainViewState",()=>o.mainViewState),n.export(r,"MainViewMode",()=>o.MainViewMode),n.export(r,"viewModeState",()=>a.viewModeState),n.export(r,"VIEW_MODES",()=>a.VIEW_MODES);var o=e("./mainViewState"),a=e("./viewModeState")},{"./mainViewState":"1qula","./viewModeState":"ayK68","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"1qula":[function(e,t,r){var n,o,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"mainViewState",()=>c),a.export(r,"MainViewMode",()=>o);var i=e("recoil"),s=e("@media-ui/feature-clipboard"),l=e("@media-ui/feature-asset-usage");(n=o||(o={}))[n.DEFAULT=0]="DEFAULT",n[n.CLIPBOARD=1]="CLIPBOARD",n[n.UNUSED_ASSETS=2]="UNUSED_ASSETS";let c=(0,i.selector)({key:"mainViewState",get:({get:e})=>{let t=e(s.clipboardVisibleState),r=e(l.showUnusedAssetsState);return t?o.CLIPBOARD:r?o.UNUSED_ASSETS:o.DEFAULT}})},{recoil:"2QijJ","@media-ui/feature-clipboard":"hHDiM","@media-ui/feature-asset-usage":"lWHpb","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],ayK68:[function(e,t,r){var n,o,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"VIEW_MODES",()=>o),a.export(r,"viewModeState",()=>l);var i=e("recoil"),s=e("@media-ui/core/src/state");(n=o||(o={})).Thumbnails="thumbnails",n.List="list";let l=(0,i.atom)({key:"ViewModeState",default:o.Thumbnails,effects:[(0,s.localStorageEffect)("ViewModeState")]})},{recoil:"2QijJ","@media-ui/core/src/state":"jV1GH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],cHkV2:[function(e,t,r){t.exports.assetCount="ucPgIG_assetCount"},{}],"4QfNK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@media-ui/core"),c=e("@media-ui/core/src/state"),u=e("./PaginationItem"),f=n.interopDefault(u),d=e("../../../state"),p=e("../../../hooks"),h=e("./Pagination.module.css"),m=n.interopDefault(h),v=e("classnames"),g=n.interopDefault(v);r.default=(0,i.default).memo(()=>{let[e,t]=(0,s.useRecoilState)(c.currentPageState),r=(0,p.useAssetCount)(),{pagination:{assetsPerPage:n,maximumLinks:i}}=(0,s.useRecoilValue)(c.featureFlagsState),{translate:u}=(0,l.useIntl)(),h=(0,s.useRecoilValue)(d.mainViewState),v=![(0,d.MainViewMode).DEFAULT,(0,d.MainViewMode).UNUSED_ASSETS].includes(h),y=Math.ceil(r/n),[b,j]=(0,a.useState)({start:0,end:0,hasLessPages:!1,hasMorePages:!1,pages:[]}),S=(0,a.useCallback)(e=>t(e),[t]),x=(0,a.useCallback)(()=>t(e=>e-1),[t]),_=(0,a.useCallback)(()=>t(e=>e+1),[t]);return(0,a.useMemo)(()=>{let t=Math.min(i,y),r=Math.floor(t/2),n=e-r,o=e+r+(t%2==0?1:0);n<1&&(o-=n-1),o>y&&(n-=o-y),n=Math.max(n,1),o=Math.min(o,y);let a=[...Array(o-n+1)].map((e,t)=>t+n);j({start:n,end:o,hasLessPages:n>2,hasMorePages:o+10&&(0,o.jsxs)("ol",{className:(0,g.default)(m.default.list,v&&m.default.disabled),children:[(0,o.jsx)(f.default,{icon:"angle-left",title:u("pagination.previousPageTitle","Go to previous page"),onClick:x,disabled:v||e<=1}),b.start>1&&(0,o.jsx)(f.default,{title:u("pagination.firstPageTitle","Go to first page"),onClick:S,disabled:v,page:1}),b.hasLessPages&&(0,o.jsx)("li",{className:m.default.ellipsis,children:"…"}),b.pages.map(t=>(0,o.jsx)(f.default,{selected:e===t,onClick:S,disabled:v,title:u("pagination.page",`Go to page ${t}`,[t]),page:t},t)),b.hasMorePages&&(0,o.jsx)("li",{className:m.default.ellipsis,children:"…"}),b.end(0,o.jsx)("li",{className:(0,l.default)(f.default.item,a&&f.default.selected),children:s?(0,o.jsx)(c.IconButton,{icon:s,disabled:i,size:"regular",style:"transparent",hoverStyle:"brand",title:e,onClick:()=>r(n)}):(0,o.jsx)(c.Button,{icon:s,disabled:i,size:"regular",style:a?"brand":"transparent",hoverStyle:"brand",title:e,onClick:()=>r(n),children:t||n})}))},{"react/jsx-runtime":"gaGEj",react:"6uln9",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","./PaginationItem.module.css":"dTTOH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dTTOH:[function(e,t,r){t.exports.item="sNJnsW_item"},{}],"3masv":[function(e,t,r){t.exports.disabled="gZKlGG_disabled",t.exports.ellipsis="gZKlGG_ellipsis",t.exports.list="gZKlGG_list",t.exports.pagination="gZKlGG_pagination"},{}],hGqKo:[function(e,t,r){t.exports.bottomBar="VMKMXG_bottomBar",t.exports.isInNodeCreationDialog="VMKMXG_isInNodeCreationDialog",t.exports.selectionMode="VMKMXG_selectionMode"},{}],"92ap4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TopBar",()=>a.default);var o=e("./TopBar"),a=n.interopDefault(o)},{"./TopBar":"ipjmZ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],ipjmZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("classnames"),l=n.interopDefault(s),c=e("@media-ui/core"),u=e("@media-ui/feature-clipboard"),f=e("./SortOrderSelector"),d=n.interopDefault(f),p=e("./AssetsFilter/AssetsFilter"),h=n.interopDefault(p),m=e("./ViewModeSelector"),v=n.interopDefault(m),g=e("./SearchBox"),y=n.interopDefault(g),b=e("./TopBar.module.css"),j=n.interopDefault(b);r.default=(0,i.default).memo(()=>{let{selectionMode:e}=(0,c.useMediaUi)(),t=[u.ClipboardActions,y.default,h.default,d.default,v.default];return(0,o.jsx)("div",{className:(0,l.default)(j.default.topBar,e&&j.default.topBarSelectionMode),children:t.map((e,t)=>(0,o.jsx)(e,{},t))})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/feature-clipboard":"hHDiM","./SortOrderSelector":"hifqw","./AssetsFilter/AssetsFilter":"6QunU","./ViewModeSelector":"9801v","./SearchBox":"1Kpdk","./TopBar.module.css":"5CETV","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hifqw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state/selectedSortOrderState"),f=e("./SortOrderSelector.module.css"),d=n.interopDefault(f),p=e("../../state");r.default=(0,i.default).memo(()=>{let{isInNodeCreationDialog:e,selectionMode:t}=(0,c.useMediaUi)(),[r,n]=(0,s.useRecoilState)(u.selectedSortOrderState),{translate:i}=(0,c.useIntl)(),f=e||t,h=(0,a.useCallback)(e=>{n({...r,sortBy:e})},[r,n]),m=(0,s.useRecoilValue)(p.mainViewState),v=(0,a.useCallback)(()=>{n({...r,sortDirection:r.sortDirection===u.SORT_DIRECTION.Asc?u.SORT_DIRECTION.Desc:u.SORT_DIRECTION.Asc})},[r,n]),g=(0,a.useMemo)(()=>[{value:u.SORT_BY.LastModified,label:i("sortingState.sortBy.values.lastModified","Last Modified"),icon:f?"":"calendar"},{value:u.SORT_BY.Name,label:i("sortingState.sortBy.values.name","Name"),icon:f?"":"font"},{value:u.SORT_BY.Size,label:i("sortingState.sortBy.values.size","File size"),icon:f?"":"weight-hanging"}],[i,f]);return[(0,p.MainViewMode).DEFAULT,(0,p.MainViewMode).UNUSED_ASSETS].includes(m)?(0,o.jsxs)("div",{className:d.default.sortingState,children:[(0,o.jsx)("div",{className:d.default.selectBox,children:(0,o.jsx)(l.SelectBox,{className:d.default.selectBox,options:Object.values(g),onValueChange:h,value:r.sortBy,optionValueField:"value"})}),(0,o.jsx)(l.IconButton,{icon:r.sortDirection===u.SORT_DIRECTION.Asc?"sort-amount-up":"sort-amount-down",size:"regular",title:i(`sortingState.dortOrder.value.${r.sortDirection===u.SORT_DIRECTION.Asc?u.SORT_DIRECTION.Desc:u.SORT_DIRECTION.Asc}`,"Switch sort direction"),style:"neutral",hoverStyle:"brand",onClick:v})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state/selectedSortOrderState":"8xo0U","./SortOrderSelector.module.css":"bWrfr","../../state":"4QYDB","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bWrfr:[function(e,t,r){t.exports.selectBox="yiv2CG_selectBox",t.exports.sortingState="yiv2CG_sortingState"},{}],"6QunU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@media-ui/core"),f=e("@media-ui/core/src/components"),d=e("@media-ui/core/src/state"),p=e("../../../state"),h=e("./MediaTypeFilter"),m=n.interopDefault(h),v=e("./AssetTypeFilter"),g=n.interopDefault(v),y=e("./AssetsFilter.module.css"),b=n.interopDefault(y);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,u.useIntl)(),t=(0,s.useRecoilValue)(p.mainViewState),r=(0,s.useRecoilValue)(d.selectedAssetTypeState),n=(0,s.useRecoilValue)(d.selectedMediaTypeState),i=(0,a.useRef)(),l=[g.default,m.default];return((0,a.useEffect)(()=>{i.current?.open&&(i.current.open=!1)},[n]),[(0,p.MainViewMode).DEFAULT,(0,p.MainViewMode).UNUSED_ASSETS].includes(t))?(0,o.jsxs)("details",{ref:i,className:(0,c.default)(b.default.assetsFilter,(r||n)&&b.default.active),children:[(0,o.jsx)("summary",{title:e("AssetsFilter.title","Toggle asset filters"),children:(0,o.jsx)(f.IconLabel,{icon:"filter",label:"Filter"})}),(0,o.jsx)("div",{className:b.default.filterList,children:l.map((e,t)=>(0,o.jsx)(e,{},t))})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","../../../state":"4QYDB","./MediaTypeFilter":"aSwWH","./AssetTypeFilter":"bnrpW","./AssetsFilter.module.css":"hN2Wn","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],aSwWH:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/feature-asset-usage"),d=e("./AssetsFilter.module.css"),p=n.interopDefault(d);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,c.useIntl)(),{mediaTypeFilterOptions:t}=(0,s.useRecoilValue)(u.featureFlagsState),[r,n]=(0,s.useRecoilState)(u.selectedMediaTypeState),i=(0,s.useRecoilValue)(u.selectedAssetTypeState),d=(0,s.useSetRecoilState)(u.currentPageState),h=(0,s.useRecoilValue)(f.showUnusedAssetsState),m=(0,s.useRecoilValue)(u.constraintsState),v=(0,a.useCallback)(e=>{n(e),d(1)},[d,n]),g=(0,a.useMemo)(()=>{if(!t||!i||"all"==i||h)return[];let e=t[i];return Object.keys(e).filter(e=>!m.mediaTypes||m.mediaTypes?.includes(e)).map(t=>({label:e[t],value:t}))},[i,m.mediaTypes,t,h]);return 0===g.length?null:(0,o.jsx)("div",{className:p.default.typeFilter,children:(0,o.jsx)(l.SelectBox,{className:p.default.selectBox,options:g,onValueChange:v,value:r,allowEmpty:!m.mediaTypes||m.mediaTypes.length>1,placeholder:e("typeFilter.assetType.values.all","Mediatype"),optionValueField:"value"})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-usage":"lWHpb","./AssetsFilter.module.css":"hN2Wn","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hN2Wn:[function(e,t,r){t.exports.active="PUFj9a_active",t.exports.assetsFilter="PUFj9a_assetsFilter",t.exports.filterList="PUFj9a_filterList",t.exports.selectBox="PUFj9a_selectBox",t.exports.typeFilter="PUFj9a_typeFilter"},{}],bnrpW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/feature-asset-usage"),d=e("./AssetsFilter.module.css"),p=n.interopDefault(d);let h="unused";r.default=(0,i.default).memo(()=>{let e=(0,s.useRecoilValue)(u.featureFlagsState),{assetType:t}=(0,s.useRecoilValue)(u.constraintsState),[r,n]=(0,s.useRecoilState)(u.selectedAssetTypeState),i=(0,s.useSetRecoilState)(u.selectedMediaTypeState),[d,m]=(0,s.useRecoilState)(f.showUnusedAssetsState),v=(0,s.useSetRecoilState)(u.currentPageState),{translate:g}=(0,c.useIntl)(),y=d?h:r,b=(0,a.useCallback)(e=>{m("unused"===e),i(""),e!==h&&n(e),v(1)},[m,v,n,i]),j=(0,a.useMemo)(()=>{let r=t&&"all"!==t,n={video:{value:"video",label:g("typeFilter.assetType.values.video","Video"),disabled:r&&"video"!==t},audio:{value:"audio",label:g("typeFilter.assetType.values.audio","Audio"),disabled:r&&"audio"!==t},image:{value:"image",label:g("typeFilter.assetType.values.image","Image"),disabled:r&&"image"!==t},document:{value:"document",label:g("typeFilter.assetType.values.document","Document"),disabled:r&&"document"!==t}};return e.queryAssetUsage&&(n[h]={value:h,label:g("typeFilter.assetType.values.unused","Unused"),disabled:r}),n},[g,e,t]);return(0,o.jsx)("div",{className:p.default.typeFilter,children:(0,o.jsx)(l.SelectBox,{className:p.default.selectBox,options:Object.values(j),onValueChange:b,value:y,allowEmpty:!t||"all"===t,placeholder:g("typeFilter.assetType.values.all","All"),optionValueField:"value"})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-usage":"lWHpb","./AssetsFilter.module.css":"hN2Wn","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9801v":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("../../state"),f=e("./ViewModeSelector.module.css"),d=n.interopDefault(f);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,c.useIntl)(),[t,r]=(0,s.useRecoilState)(u.viewModeState);return(0,o.jsx)("div",{className:d.default.viewModeSelector,children:(0,o.jsx)(l.IconButton,{icon:t===u.VIEW_MODES.List?"th":"th-list",size:"regular",title:e(`viewModeSelector.viewMode.${t===u.VIEW_MODES.List?u.VIEW_MODES.Thumbnails:u.VIEW_MODES.List}`,"Switch mode"),style:"neutral",hoverStyle:"brand",onClick:()=>r(e=>e===u.VIEW_MODES.List?u.VIEW_MODES.Thumbnails:u.VIEW_MODES.List)})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../../state":"4QYDB","./ViewModeSelector.module.css":"lPz4j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lPz4j:[function(e,t,r){t.exports.selectBox="_5Oef7G_selectBox",t.exports.viewModeSelector="_5Oef7G_viewModeSelector"},{}],"1Kpdk":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/core/src/domain/SearchTerm"),d=e("../../state"),p=e("./SearchBox.module.css"),h=n.interopDefault(p);r.default=(0,i.default).memo(()=>{let[e,t]=(0,s.useRecoilState)(u.searchTermState),r=(0,s.useSetRecoilState)(u.currentPageState),[n,i]=(0,a.useState)(e.toString()),{translate:p}=(0,c.useIntl)(),m=(0,s.useRecoilValue)(d.mainViewState),v=(0,a.useCallback)(()=>{t((0,f.SearchTerm).fromString(n)),r(1)},[n,r,t]);return m!==d.MainViewMode.DEFAULT?null:(0,o.jsx)("div",{className:h.default.searchBox,children:(0,o.jsx)(l.TextInput,{value:n,type:"search",onChange:e=>i(e),onEnterKey:v,placeholder:p("searchBox.placeholder","Search")})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/domain/SearchTerm":"bnHXU","../../state":"4QYDB","./SearchBox.module.css":"0YpTH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"0YpTH":[function(e,t,r){t.exports.searchBox="rxR0KW_searchBox"},{}],"5CETV":[function(e,t,r){t.exports.topBar="h7QbgG_topBar",t.exports["topBar--selectionMode"]="h7QbgG_topBar--selectionMode"},{}],j5uvE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ThumbnailView",()=>m.default),n.export(r,"Thumbnail",()=>p.default),n.export(r,"ListView",()=>s.default),n.export(r,"ListViewItem",()=>c.default),n.export(r,"AssetActions",()=>a.default),n.export(r,"Main",()=>f.default);var o=e("./AssetActions"),a=n.interopDefault(o),i=e("./ListView"),s=n.interopDefault(i),l=e("./ListViewItem"),c=n.interopDefault(l),u=e("./Main"),f=n.interopDefault(u),d=e("./Thumbnail"),p=n.interopDefault(d),h=e("./ThumbnailView"),m=n.interopDefault(h)},{"./AssetActions":"bRcTI","./ListView":"9qgiA","./ListViewItem":"1ccnf","./Main":"6i7no","./Thumbnail":"ghtGP","./ThumbnailView":"8gC2C","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bRcTI:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/feature-asset-preview"),d=e("@media-ui/feature-clipboard");r.default=(0,i.default).memo(({asset:e})=>{let{translate:t}=(0,c.useIntl)(),r=(0,c.useNotify)(),{approvalAttainmentStrategy:n}=(0,c.useMediaUi)(),i=(0,s.useSetRecoilState)(f.selectedAssetForPreviewState),{importAsset:p}=(0,u.useImportAsset)(),{deleteAsset:h}=(0,u.useDeleteAsset)(),[m,v]=(0,s.useRecoilState)((0,d.clipboardItemState)({assetId:e.id,assetSourceId:e.assetSource.id})),g=(0,a.useCallback)(()=>{p({assetId:e.id,assetSourceId:e.assetSource.id}).then(()=>{r.ok(t("assetActions.import.success","Asset was successfully imported"))}).catch(e=>{r.error(t("assetActions.import.error","Failed to import asset"),e.message)})},[p,e,r,t]),y=(0,a.useCallback)(async e=>{let o=await n.obtainApprovalToDeleteAsset({asset:e});if(o)try{return await h({assetId:e.id,assetSourceId:e.assetSource.id}),r.ok(t("action.deleteAsset.success","The asset has been deleted")),!0}catch({message:e}){r.error(t("action.deleteAsset.error","Error while trying to delete the asset"),e)}return!1},[r,t,h,n]);return e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.IconButton,{title:t("itemActions.preview","Preview asset"),icon:"expand-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:()=>i({assetId:e.id,assetSourceId:e.assetSource.id})}),!e.imported&&!e.localId&&(0,o.jsx)(l.IconButton,{title:t("itemActions.import","Import asset"),icon:"cloud-download-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:g}),!e.assetSource.readOnly&&(0,o.jsx)(l.IconButton,{title:e.isInUse?t("itemActions.delete.disabled","Cannot delete an asset that is in use"):t("itemActions.delete","Delete asset"),disabled:e.isInUse,icon:"trash",size:"regular",style:"transparent",hoverStyle:"error",onClick:()=>y(e)}),e.file?.url&&(0,o.jsx)("a",{href:e.file.url,download:!0,title:t("itemActions.download","Download asset"),children:(0,o.jsx)(l.IconButton,{icon:"download",size:"regular",style:"transparent",hoverStyle:"success"})}),e.localId&&(0,o.jsx)(l.IconButton,{title:t("itemActions.copyToClipboard","Copy to clipboard"),icon:m?"clipboard-check":"clipboard",size:"regular",style:"transparent",hoverStyle:"brand",className:m?"button--active":"",onClick:v})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-preview":"gaY0P","@media-ui/feature-clipboard":"hHDiM","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9qgiA":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@media-ui/core"),f=e("@media-ui/core/src/hooks"),d=e("@media-ui/feature-asset-preview"),p=e("./index"),h=e("./ListView.module.css"),m=n.interopDefault(h);r.default=(0,i.default).memo(({assetIdentities:e})=>{let{isInNodeCreationDialog:t}=(0,u.useMediaUi)(),{translate:r}=(0,u.useIntl)(),n=(0,s.useSetRecoilState)(d.selectedAssetForPreviewState),i=(0,f.useSelectAsset)(),l=(0,a.useCallback)((e,t=!1)=>{t?n(e):i(e)},[n,i]);return(0,o.jsx)("section",{className:(0,c.default)(m.default.listView,t&&m.default.listViewFullHeight),children:(0,o.jsxs)("table",{children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:m.default.tableHeader}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.name","Name")}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.lastModified","Last Modified")}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.fileSize","File size")}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.mediaType","Type")}),(0,o.jsx)("th",{className:m.default.tableHeader})]})}),(0,o.jsx)("tbody",{children:e.map((e,t)=>(0,o.jsx)(p.ListViewItem,{assetIdentity:e,onSelect:l},t))})]})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-preview":"gaY0P","./index":"j5uvE","./ListView.module.css":"dci2O","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dci2O:[function(e,t,r){t.exports.listView="Rs4dJq_listView",t.exports["listView--fullHeight"]="Rs4dJq_listView--fullHeight",t.exports.tableHeader="Rs4dJq_tableHeader"},{}],"1ccnf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@neos-project/react-ui-components"),f=e("@media-ui/core"),d=e("@media-ui/core/src/hooks"),p=e("@media-ui/core/src/state"),h=e("@media-ui/core/src/helper"),m=e("@media-ui/core/src/components"),v=e("./index"),g=e("./MissingAssetActions"),y=n.interopDefault(g),b=e("./ListViewItem.module.css"),j=n.interopDefault(b);let S={weekday:"short",year:"numeric",month:"short",day:"numeric"},x=(0,s.selectorFamily)({key:"ListViewItemSelection",get:e=>({get:t})=>t(p.selectedAssetIdState)?.assetId===e});r.default=(0,i.default).memo(({assetIdentity:e,onSelect:t})=>{let{dummyImage:r,isAssetSelectable:n,selectionMode:i}=(0,f.useMediaUi)(),{asset:l,loading:p}=(0,d.useAssetQuery)(e),g=(0,s.useRecoilValue)(x(e.assetId)),b=(0,a.useMemo)(()=>n(l),[l,n]),_=(0,a.useCallback)(()=>t(e,g&&!i),[t,e,g,i]);return(0,o.jsxs)("tr",{className:(0,c.default)(j.default.listViewItem,g&&j.default.selected),children:[(0,o.jsx)("td",{className:j.default.previewColumn,onClick:_,children:(0,o.jsx)("picture",{children:b?(0,o.jsx)("img",{src:l?.thumbnailUrl||r,alt:l?.label,width:40,height:36}):(0,o.jsx)(u.Icon,{icon:"ban",color:"error"})})}),(0,o.jsx)("td",{className:j.default.labelColumn,onClick:_,children:l&&(0,o.jsx)(m.AssetLabel,{label:l.label})}),(0,o.jsx)("td",{className:j.default.lastModifiedColumn,onClick:_,children:l&&new Date(l.lastModified).toLocaleString([],S)}),(0,o.jsx)("td",{className:j.default.fileSizeColumn,onClick:_,children:l&&(0,h.humanFileSize)(l.file.size)}),(0,o.jsx)("td",{className:j.default.mediaTypeColumn,onClick:_,title:l?.file.mediaType,children:l?.file.mediaType}),(0,o.jsx)("td",{className:j.default.actionsColumn,children:!p&&(l?(0,o.jsx)(v.AssetActions,{asset:l}):(0,o.jsx)(y.default,{assetIdentity:e}))})]})},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId)},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/helper":"80jPI","@media-ui/core/src/components":"5LFSk","./index":"j5uvE","./MissingAssetActions":"bWiVp","./ListViewItem.module.css":"gxh3o","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bWiVp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/feature-clipboard");r.default=(0,i.default).memo(({assetIdentity:e})=>{let{translate:t}=(0,c.useIntl)(),[r,n]=(0,s.useRecoilState)((0,u.clipboardItemState)(e));return r?(0,o.jsx)(l.IconButton,{title:t("itemActions.removeFromClipboard","Remove from clipboard"),icon:"trash",size:"regular",style:"transparent",hoverStyle:"warn",onClick:n}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/feature-clipboard":"hHDiM","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gxh3o:[function(e,t,r){t.exports.textColumn="_0hU7dG_textColumn",t.exports.actionsColumn=`_0hU7dG_actionsColumn ${t.exports.textColumn}`,t.exports.fileSizeColumn=`_0hU7dG_fileSizeColumn ${t.exports.textColumn}`,t.exports.labelColumn=`_0hU7dG_labelColumn ${t.exports.textColumn}`,t.exports.lastModifiedColumn=`_0hU7dG_lastModifiedColumn ${t.exports.textColumn}`,t.exports.listViewItem="_0hU7dG_listViewItem",t.exports.mediaTypeColumn=`_0hU7dG_mediaTypeColumn ${t.exports.textColumn}`,t.exports.previewColumn="_0hU7dG_previewColumn",t.exports.selected="_0hU7dG_selected"},{}],"6i7no":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/feature-clipboard"),d=e("@media-ui/feature-asset-usage"),p=e("./index"),h=e("../LoadingLabel"),m=n.interopDefault(h),v=e("../../state"),g=e("./Main.module.css"),y=n.interopDefault(g);r.default=(0,i.default).memo(()=>{let e=(0,s.useRecoilValue)(v.viewModeState),{assets:t}=(0,d.useUnusedAssetsQuery)(),r=(0,s.useRecoilValue)(f.clipboardState),n=(0,s.useRecoilValue)(v.mainViewState),i=(0,s.useSetRecoilState)(f.clipboardVisibleState),h=(0,s.useRecoilValue)(u.searchTermState),{translate:g}=(0,c.useIntl)(),b=(0,s.useRecoilValue)(u.availableAssetIdentitiesState),[j,S]=(0,a.useState)(b),x=(0,a.useMemo)(()=>t.filter(e=>e?.id).map(({id:e,assetSource:t})=>({assetId:e,assetSourceId:t.id})),[t]);return(0,a.useEffect)(()=>{n===v.MainViewMode.CLIPBOARD?S(r):n===v.MainViewMode.UNUSED_ASSETS?S(x):S(b)},[n,b,x,r]),j.length>0?e===v.VIEW_MODES.List?(0,o.jsx)(p.ListView,{assetIdentities:j}):(0,o.jsx)(p.ThumbnailView,{assetIdentities:j}):(0,o.jsx)("div",{className:y.default.emptyStateWrapper,children:n===v.MainViewMode.CLIPBOARD?(0,o.jsx)(l.Button,{size:"regular",style:"brand",hoverStyle:"brand",onClick:()=>i(!1),children:g("clipboard.close","Close clipboard")}):(0,o.jsx)(m.default,{loadingText:g("assetList.loading","Loading assets"),emptyText:h?.toString()?g("assetList.emptyForSearchTerm",`No assets found for "${h}"`,{searchTerm:h}):g("assetList.empty","No assets found")})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-clipboard":"hHDiM","@media-ui/feature-asset-usage":"lWHpb","./index":"j5uvE","../LoadingLabel":"gEjcn","../../state":"4QYDB","./Main.module.css":"dc68i","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gEjcn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@media-ui/core/src/state");r.default=(0,i.default).memo(({loadingText:e,emptyText:t})=>{let r=(0,s.useRecoilValue)(l.loadingState);return(0,o.jsx)("div",{className:"loadingLabel",children:r?e:t})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@media-ui/core/src/state":"jV1GH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dc68i:[function(e,t,r){t.exports.emptyStateWrapper="LUZzHG_emptyStateWrapper"},{}],ghtGP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@neos-project/react-ui-components"),f=e("@media-ui/core"),d=e("@media-ui/core/src/hooks"),p=e("@media-ui/core/src/state"),h=e("@media-ui/core/src/components"),m=e("./index"),v=e("./MissingAssetActions"),g=n.interopDefault(v),y=e("./Thumbnail.module.css"),b=n.interopDefault(y);let j=(0,s.selectorFamily)({key:"ThumbnailSelection",get:e=>({get:t})=>t(p.selectedAssetIdState)?.assetId===e});r.default=(0,i.default).memo(({assetIdentity:e,onSelect:t})=>{let{translate:r}=(0,f.useIntl)(),{dummyImage:n,isAssetSelectable:i,selectionMode:l}=(0,f.useMediaUi)(),{asset:p,loading:v}=(0,d.useAssetQuery)(e),y=(0,s.useRecoilValue)(j(e.assetId)),S=(0,a.useMemo)(()=>i(p),[p,i]);return(0,o.jsxs)("figure",{className:(0,c.default)(b.default.thumbnail,!S&&b.default.disabled),title:p?.label,children:[p?.imported&&(0,o.jsx)("span",{className:b.default.label,children:r("asset.label.imported","Imported")}),(0,o.jsx)("picture",{onClick:()=>t(e,y&&!l),className:b.default.picture,children:(0,o.jsx)("img",{src:v||!p?n:p.thumbnailUrl,alt:p?.label})}),(0,o.jsx)("figcaption",{className:(0,c.default)(b.default.caption,y&&b.default.selected),children:p&&(0,o.jsxs)(o.Fragment,{children:[S&&p.file?(0,o.jsx)("img",{src:p.file.typeIcon.url,alt:p.file.typeIcon.alt}):(0,o.jsx)(u.Icon,{icon:"ban",color:"error"}),(0,o.jsx)(h.AssetLabel,{label:p.label})]})}),(0,o.jsx)("div",{className:b.default.toolBar,children:!v&&(p?(0,o.jsx)(m.AssetActions,{asset:p}):(0,o.jsx)(g.default,{assetIdentity:e}))})]})},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId)},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/components":"5LFSk","./index":"j5uvE","./MissingAssetActions":"bWiVp","./Thumbnail.module.css":"kSbP5","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],kSbP5:[function(e,t,r){t.exports["button--active"]="lKBwAW_button--active",t.exports.caption="lKBwAW_caption",t.exports.disabled="lKBwAW_disabled",t.exports.label="lKBwAW_label",t.exports.picture="lKBwAW_picture",t.exports.selected="lKBwAW_selected",t.exports.thumbnail="lKBwAW_thumbnail",t.exports.toolBar="lKBwAW_toolBar"},{}],"8gC2C":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@media-ui/core/src/hooks"),c=e("@media-ui/feature-asset-preview"),u=e("./index"),f=e("./ThumbnailView.module.css"),d=n.interopDefault(f);r.default=(0,i.default).memo(({assetIdentities:e})=>{let t=(0,s.useSetRecoilState)(c.selectedAssetForPreviewState),r=(0,l.useSelectAsset)(),n=(0,a.useCallback)((e,n=!1)=>{n?t(e):r(e)},[t,r]);return(0,o.jsx)("section",{className:d.default.thumbnailView,children:e.map((e,t)=>(0,o.jsx)(u.Thumbnail,{assetIdentity:e,onSelect:n},t))})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-preview":"gaY0P","./index":"j5uvE","./ThumbnailView.module.css":"d6Kuz","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],d6Kuz:[function(e,t,r){t.exports.thumbnailView="_5clkbq_thumbnailView"},{}],cumtn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core/src/provider/Notify");class l extends i.default.Component{static #e=(()=>{this.contextType=s.NotifyContext})();constructor(e){super(e),this.clearConfigAndReload=()=>{localStorage.clear(),this.reload()},this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){this.setState({error:e}),this.context.error(e.name,e.message)}reload(){window.location.reload()}render(){let{hasError:e,error:t}=this.state;return e?(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{style:{color:"red"},children:"The media application encountered an unexpected error:"}),(0,o.jsx)("br",{}),t&&(0,o.jsx)("pre",{children:t.message}),(0,o.jsx)("br",{}),(0,o.jsx)("button",{className:"neos-button",onClick:this.reload,children:"Reload"})," or ",(0,o.jsx)("button",{className:"neos-button",onClick:this.clearConfigAndReload,children:"Clear configuration & reload"})]}):this.props.children}}r.default=l},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core/src/provider/Notify":"hVocq","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dNd2w:[function(e,t,r){t.exports.container="rZ_p1G_container",t.exports.fullHeight="rZ_p1G_fullHeight",t.exports.gridColumn="rZ_p1G_gridColumn",t.exports.gridLeft=`rZ_p1G_gridLeft ${t.exports.gridColumn}`,t.exports.gridMain=`rZ_p1G_gridMain ${t.exports.gridColumn}`,t.exports.gridRight=`rZ_p1G_gridRight ${t.exports.gridColumn}`,t.exports.gridTop="rZ_p1G_gridTop",t.exports.selectionMode="rZ_p1G_selectionMode"},{}],aUsND:[function(e,t,r){},{}],"3DZN8":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>ec);var o=e("@fortawesome/fontawesome-svg-core"),a=e("@fortawesome/free-solid-svg-icons/faAngleLeft"),i=e("@fortawesome/free-solid-svg-icons/faAngleRight"),s=e("@fortawesome/free-solid-svg-icons/faBan"),l=e("@fortawesome/free-solid-svg-icons/faBox"),c=e("@fortawesome/free-solid-svg-icons/faCalendarAlt"),u=e("@fortawesome/free-solid-svg-icons/faCamera"),f=e("@fortawesome/free-solid-svg-icons/faCheck"),d=e("@fortawesome/free-solid-svg-icons/faChevronCircleDown"),p=e("@fortawesome/free-solid-svg-icons/faChevronCircleUp"),h=e("@fortawesome/free-solid-svg-icons/faChevronDown"),m=e("@fortawesome/free-solid-svg-icons/faChevronUp"),v=e("@fortawesome/free-solid-svg-icons/faClipboard"),g=e("@fortawesome/free-solid-svg-icons/faClipboardCheck"),y=e("@fortawesome/free-solid-svg-icons/faClipboardList"),b=e("@fortawesome/free-solid-svg-icons/faCloudDownloadAlt"),j=e("@fortawesome/free-solid-svg-icons/faDownload"),S=e("@fortawesome/free-solid-svg-icons/faExclamationCircle"),x=e("@fortawesome/free-solid-svg-icons/faExclamationTriangle"),_=e("@fortawesome/free-solid-svg-icons/faExpandAlt"),w=e("@fortawesome/free-solid-svg-icons/faExternalLinkAlt"),k=e("@fortawesome/free-solid-svg-icons/faFile"),E=e("@fortawesome/free-solid-svg-icons/faFileAudio"),T=e("@fortawesome/free-solid-svg-icons/faFileImage"),C=e("@fortawesome/free-solid-svg-icons/faFileVideo"),D=e("@fortawesome/free-solid-svg-icons/faFolder"),O=e("@fortawesome/free-solid-svg-icons/faFolderOpen"),I=e("@fortawesome/free-solid-svg-icons/faFont"),A=e("@fortawesome/free-solid-svg-icons/faGripLinesVertical"),R=e("@fortawesome/free-solid-svg-icons/faInfoCircle"),P=e("@fortawesome/free-solid-svg-icons/faImages"),N=e("@fortawesome/free-solid-svg-icons/faPencilAlt"),F=e("@fortawesome/free-solid-svg-icons/faPhotoVideo"),M=e("@fortawesome/free-solid-svg-icons/faPlus"),L=e("@fortawesome/free-solid-svg-icons/faQuestion"),B=e("@fortawesome/free-solid-svg-icons/faSpinner"),V=e("@fortawesome/free-solid-svg-icons/faSortAmountDown"),U=e("@fortawesome/free-solid-svg-icons/faSortAmountUp"),q=e("@fortawesome/free-solid-svg-icons/faSortDown"),z=e("@fortawesome/free-solid-svg-icons/faTag"),W=e("@fortawesome/free-solid-svg-icons/faTags"),H=e("@fortawesome/free-solid-svg-icons/faTh"),G=e("@fortawesome/free-solid-svg-icons/faThList"),Q=e("@fortawesome/free-solid-svg-icons/faTimes"),K=e("@fortawesome/free-solid-svg-icons/faTimesCircle"),$=e("@fortawesome/free-solid-svg-icons/faTrashAlt"),Y=e("@fortawesome/free-solid-svg-icons/faUpload"),J=e("@fortawesome/free-solid-svg-icons/faTasks"),X=e("@fortawesome/free-solid-svg-icons/faEdit"),Z=e("@fortawesome/free-solid-svg-icons/faExchangeAlt"),ee=e("@fortawesome/free-solid-svg-icons/faEquals"),et=e("@fortawesome/free-solid-svg-icons/faLink"),er=e("@fortawesome/free-solid-svg-icons/faStar"),en=e("@fortawesome/free-solid-svg-icons/faGlobe"),eo=e("@fortawesome/free-solid-svg-icons/faWeightHanging"),ea=e("@fortawesome/free-solid-svg-icons/faFilter"),ei=e("@fortawesome/free-solid-svg-icons/faSearch"),es=e("@fortawesome/free-brands-svg-icons/faNeos"),el=e("@fortawesome/free-brands-svg-icons/faCreativeCommonsZero");function ec(){(0,o.library).add(a.faAngleLeft,i.faAngleRight,s.faBan,l.faBox,c.faCalendarAlt,u.faCamera,f.faCheck,d.faChevronCircleDown,p.faChevronCircleUp,h.faChevronDown,m.faChevronUp,v.faClipboard,g.faClipboardCheck,y.faClipboardList,b.faCloudDownloadAlt,el.faCreativeCommonsZero,j.faDownload,S.faExclamationCircle,x.faExclamationTriangle,_.faExpandAlt,w.faExternalLinkAlt,k.faFile,E.faFileAudio,T.faFileImage,C.faFileVideo,D.faFolder,O.faFolderOpen,I.faFont,A.faGripLinesVertical,P.faImages,R.faInfoCircle,es.faNeos,N.faPencilAlt,F.faPhotoVideo,M.faPlus,L.faQuestion,B.faSpinner,V.faSortAmountDown,U.faSortAmountUp,q.faSortDown,z.faTag,W.faTags,H.faTh,G.faThList,Q.faTimes,K.faTimesCircle,$.faTrashAlt,Y.faUpload,J.faTasks,X.faEdit,Z.faExchangeAlt,ee.faEquals,et.faLink,er.faStar,en.faGlobe,eo.faWeightHanging,ea.faFilter,ei.faSearch)}o.config.familyPrefix="fa",o.config.replacementClass="svg-inline--fa"},{"@fortawesome/fontawesome-svg-core":"hWDUB","@fortawesome/free-solid-svg-icons/faAngleLeft":"eJTSD","@fortawesome/free-solid-svg-icons/faAngleRight":"1KG1q","@fortawesome/free-solid-svg-icons/faBan":"3q4s3","@fortawesome/free-solid-svg-icons/faBox":"irW8C","@fortawesome/free-solid-svg-icons/faCalendarAlt":"Bv8oJ","@fortawesome/free-solid-svg-icons/faCamera":"hP1HQ","@fortawesome/free-solid-svg-icons/faCheck":"1u3eU","@fortawesome/free-solid-svg-icons/faChevronCircleDown":"fSQDi","@fortawesome/free-solid-svg-icons/faChevronCircleUp":"76CJO","@fortawesome/free-solid-svg-icons/faChevronDown":"1VLaR","@fortawesome/free-solid-svg-icons/faChevronUp":"eN7cW","@fortawesome/free-solid-svg-icons/faClipboard":"ibL2F","@fortawesome/free-solid-svg-icons/faClipboardCheck":"kNAjL","@fortawesome/free-solid-svg-icons/faClipboardList":"eYbrH","@fortawesome/free-solid-svg-icons/faCloudDownloadAlt":"k2KBj","@fortawesome/free-solid-svg-icons/faDownload":"jnaX9","@fortawesome/free-solid-svg-icons/faExclamationCircle":"8zxAv","@fortawesome/free-solid-svg-icons/faExclamationTriangle":"2Aw4v","@fortawesome/free-solid-svg-icons/faExpandAlt":"i6kKv","@fortawesome/free-solid-svg-icons/faExternalLinkAlt":"9hrcn","@fortawesome/free-solid-svg-icons/faFile":"gCoxl","@fortawesome/free-solid-svg-icons/faFileAudio":"9zstr","@fortawesome/free-solid-svg-icons/faFileImage":"do6bX","@fortawesome/free-solid-svg-icons/faFileVideo":"5j9YR","@fortawesome/free-solid-svg-icons/faFolder":"hKVba","@fortawesome/free-solid-svg-icons/faFolderOpen":"iJZUd","@fortawesome/free-solid-svg-icons/faFont":"fqP9x","@fortawesome/free-solid-svg-icons/faGripLinesVertical":"ljzwn","@fortawesome/free-solid-svg-icons/faInfoCircle":"gJxfT","@fortawesome/free-solid-svg-icons/faImages":"g2xg7","@fortawesome/free-solid-svg-icons/faPencilAlt":"6fMXc","@fortawesome/free-solid-svg-icons/faPhotoVideo":"dB2iI","@fortawesome/free-solid-svg-icons/faPlus":"9qq97","@fortawesome/free-solid-svg-icons/faQuestion":"3lOe8","@fortawesome/free-solid-svg-icons/faSpinner":"11XPI","@fortawesome/free-solid-svg-icons/faSortAmountDown":"9zzLg","@fortawesome/free-solid-svg-icons/faSortAmountUp":"gcoac","@fortawesome/free-solid-svg-icons/faSortDown":"f8rdo","@fortawesome/free-solid-svg-icons/faTag":"2mxku","@fortawesome/free-solid-svg-icons/faTags":"fUQBW","@fortawesome/free-solid-svg-icons/faTh":"5TyUF","@fortawesome/free-solid-svg-icons/faThList":"7ePrD","@fortawesome/free-solid-svg-icons/faTimes":"83Vyx","@fortawesome/free-solid-svg-icons/faTimesCircle":"4lnvP","@fortawesome/free-solid-svg-icons/faTrashAlt":"2Hd3r","@fortawesome/free-solid-svg-icons/faUpload":"rQed8","@fortawesome/free-solid-svg-icons/faTasks":"45RWv","@fortawesome/free-solid-svg-icons/faEdit":"4b2Hz","@fortawesome/free-solid-svg-icons/faExchangeAlt":"fKute","@fortawesome/free-solid-svg-icons/faEquals":"aGt9j","@fortawesome/free-solid-svg-icons/faLink":"gkeru","@fortawesome/free-solid-svg-icons/faStar":"kPS6Z","@fortawesome/free-solid-svg-icons/faGlobe":"2Ys2o","@fortawesome/free-solid-svg-icons/faWeightHanging":"dSqSM","@fortawesome/free-solid-svg-icons/faFilter":"bZIh2","@fortawesome/free-solid-svg-icons/faSearch":"1xbTi","@fortawesome/free-brands-svg-icons/faNeos":"jHzbx","@fortawesome/free-brands-svg-icons/faCreativeCommonsZero":"9fZDp","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],eJTSD:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="angle-left",o=[],a="f104",i="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z";r.definition={prefix:"fas",iconName:n,icon:[256,512,o,a,i]},r.faAngleLeft=r.definition,r.prefix="fas",r.iconName=n,r.width=256,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1KG1q":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="angle-right",o=[],a="f105",i="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z";r.definition={prefix:"fas",iconName:n,icon:[256,512,o,a,i]},r.faAngleRight=r.definition,r.prefix="fas",r.iconName=n,r.width=256,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"3q4s3":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f05e",a="M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z";r.definition={prefix:"fas",iconName:"ban",icon:[512,512,n,o,a]},r.faBan=r.definition,r.prefix="fas",r.iconName="ban",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],irW8C:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f466",a="M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z";r.definition={prefix:"fas",iconName:"box",icon:[512,512,n,o,a]},r.faBox=r.definition,r.prefix="fas",r.iconName="box",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],Bv8oJ:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="calendar-alt",o=[],a="f073",i="M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faCalendarAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],hP1HQ:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="camera",o=[],a="f030",i="M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faCamera=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1u3eU":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="check",o=[],a="f00c",i="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faCheck=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],fSQDi:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-circle-down",o=[],a="f13a",i="M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faChevronCircleDown=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"76CJO":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-circle-up",o=[],a="f139",i="M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faChevronCircleUp=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1VLaR":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-down",o=[],a="f078",i="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faChevronDown=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],eN7cW:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-up",o=[],a="f077",i="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faChevronUp=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],ibL2F:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="clipboard",o=[],a="f328",i="M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faClipboard=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],kNAjL:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="clipboard-check",o=[],a="f46c",i="M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faClipboardCheck=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],eYbrH:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="clipboard-list",o=[],a="f46d",i="M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faClipboardList=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],k2KBj:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="cloud-download-alt",o=[],a="f381",i="M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z";r.definition={prefix:"fas",iconName:n,icon:[640,512,o,a,i]},r.faCloudDownloadAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=640,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],jnaX9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="download",o=[],a="f019",i="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faDownload=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"8zxAv":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="exclamation-circle",o=[],a="f06a",i="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faExclamationCircle=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2Aw4v":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="exclamation-triangle",o=[],a="f071",i="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faExclamationTriangle=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],i6kKv:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="expand-alt",o=[],a="f424",i="M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faExpandAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9hrcn":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="external-link-alt",o=[],a="f35d",i="M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faExternalLinkAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gCoxl:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file",o=[],a="f15b",i="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFile=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9zstr":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file-audio",o=[],a="f1c7",i="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFileAudio=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],do6bX:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file-image",o=[],a="f1c5",i="M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFileImage=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"5j9YR":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file-video",o=[],a="f1c8",i="M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFileVideo=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],hKVba:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="folder",o=[],a="f07b",i="M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faFolder=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],iJZUd:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="folder-open",o=[],a="f07c",i="M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faFolderOpen=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],fqP9x:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="font",o=[],a="f031",i="M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faFont=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],ljzwn:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="grip-lines-vertical",o=[],a="f7a5",i="M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z";r.definition={prefix:"fas",iconName:n,icon:[256,512,o,a,i]},r.faGripLinesVertical=r.definition,r.prefix="fas",r.iconName=n,r.width=256,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gJxfT:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="info-circle",o=[],a="f05a",i="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faInfoCircle=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],g2xg7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="images",o=[],a="f302",i="M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faImages=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"6fMXc":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="pencil-alt",o=[],a="f303",i="M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faPencilAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],dB2iI:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="photo-video",o=[],a="f87c",i="M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z";r.definition={prefix:"fas",iconName:n,icon:[640,512,o,a,i]},r.faPhotoVideo=r.definition,r.prefix="fas",r.iconName=n,r.width=640,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9qq97":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="plus",o=[],a="f067",i="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faPlus=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"3lOe8":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="question",o=[],a="f128",i="M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faQuestion=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"11XPI":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="spinner",o=[],a="f110",i="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSpinner=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9zzLg":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="sort-amount-down",o=[],a="f160",i="M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSortAmountDown=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gcoac:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="sort-amount-up",o=[],a="f161",i="M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSortAmountUp=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],f8rdo:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="sort-down",o=[],a="f0dd",i="M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z";r.definition={prefix:"fas",iconName:n,icon:[320,512,o,a,i]},r.faSortDown=r.definition,r.prefix="fas",r.iconName=n,r.width=320,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2mxku":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f02b",a="M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z";r.definition={prefix:"fas",iconName:"tag",icon:[512,512,n,o,a]},r.faTag=r.definition,r.prefix="fas",r.iconName="tag",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],fUQBW:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="tags",o=[],a="f02c",i="M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z";r.definition={prefix:"fas",iconName:n,icon:[640,512,o,a,i]},r.faTags=r.definition,r.prefix="fas",r.iconName=n,r.width=640,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"5TyUF":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f00a",a="M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z";r.definition={prefix:"fas",iconName:"th",icon:[512,512,n,o,a]},r.faTh=r.definition,r.prefix="fas",r.iconName="th",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],"7ePrD":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="th-list",o=[],a="f00b",i="M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faThList=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"83Vyx":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="times",o=[],a="f00d",i="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z";r.definition={prefix:"fas",iconName:n,icon:[352,512,o,a,i]},r.faTimes=r.definition,r.prefix="fas",r.iconName=n,r.width=352,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"4lnvP":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="times-circle",o=[],a="f057",i="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faTimesCircle=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2Hd3r":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="trash-alt",o=[],a="f2ed",i="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faTrashAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],rQed8:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="upload",o=[],a="f093",i="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faUpload=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"45RWv":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="tasks",o=[],a="f0ae",i="M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faTasks=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"4b2Hz":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="edit",o=[],a="f044",i="M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faEdit=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],fKute:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="exchange-alt",o=[],a="f362",i="M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faExchangeAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],aGt9j:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="equals",o=[],a="f52c",i="M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faEquals=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gkeru:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="link",o=[],a="f0c1",i="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faLink=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],kPS6Z:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="star",o=[],a="f005",i="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faStar=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2Ys2o":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="globe",o=[],a="f0ac",i="M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z";r.definition={prefix:"fas",iconName:n,icon:[496,512,o,a,i]},r.faGlobe=r.definition,r.prefix="fas",r.iconName=n,r.width=496,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],dSqSM:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="weight-hanging",o=[],a="f5cd",i="M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faWeightHanging=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],bZIh2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="filter",o=[],a="f0b0",i="M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faFilter=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1xbTi":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="search",o=[],a="f002",i="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSearch=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],jHzbx:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="neos",o=[],a="f612",i="M415.44 512h-95.11L212.12 357.46v91.1L125.69 512H28V29.82L68.47 0h108.05l123.74 176.13V63.45L386.69 0h97.69v461.5zM38.77 35.27V496l72-52.88V194l215.5 307.64h84.79l52.35-38.17h-78.27L69 13zm82.54 466.61l80-58.78v-101l-79.76-114.4v220.94L49 501.89h72.34zM80.63 10.77l310.6 442.57h82.37V10.77h-79.75v317.56L170.91 10.77zM311 191.65l72 102.81V15.93l-72 53v122.72z";r.definition={prefix:"fab",iconName:n,icon:[512,512,o,a,i]},r.faNeos=r.definition,r.prefix="fab",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9fZDp":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="creative-commons-zero",o=[],a="f4f3",i="M247.6 8C389.4 8 496 118.1 496 256c0 147.1-118.5 248-248.4 248C113.6 504 0 394.5 0 256 0 123.1 104.7 8 247.6 8zm.8 44.7C130.2 52.7 44.7 150.6 44.7 256c0 109.8 91.2 202.8 203.7 202.8 103.2 0 202.8-81.1 202.8-202.8.1-113.8-90.2-203.3-202.8-203.3zm-.4 60.5c-81.9 0-102.5 77.3-102.5 142.8 0 65.5 20.6 142.8 102.5 142.8S350.5 321.5 350.5 256c0-65.5-20.6-142.8-102.5-142.8zm0 53.9c3.3 0 6.4.5 9.2 1.2 5.9 5.1 8.8 12.1 3.1 21.9l-54.5 100.2c-1.7-12.7-1.9-25.1-1.9-34.4 0-28.8 2-88.9 44.1-88.9zm40.8 46.2c2.9 15.4 3.3 31.4 3.3 42.7 0 28.9-2 88.9-44.1 88.9-13.5 0-32.6-7.7-20.1-26.4l60.9-105.2z";r.definition={prefix:"fab",iconName:n,icon:[496,512,o,a,i]},r.faCreativeCommonsZero=r.definition,r.prefix="fab",r.iconName=n,r.width=496,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}]},["9M0Dq"],"9M0Dq","parcelRequirebe75"); +`;r.default=o},{"@apollo/client":"bWmmR","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9Mdcq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react"),a=n.interopDefault(o),i=e("./Variant.module.css"),s=n.interopDefault(i);r.default=({presetIdentifier:e,variantName:t,width:r,height:n,previewUrl:o})=>(0,a.default).createElement("div",{className:s.default.variantContainer},(0,a.default).createElement("picture",{className:s.default.picture},(0,a.default).createElement("img",{className:s.default.image,src:o,alt:t})),(0,a.default).createElement("figcaption",{className:s.default.caption},(0,a.default).createElement("div",{className:s.default.infoContainer},e?(0,a.default).createElement("span",{className:s.default.info},"Preset: ",e):null,t?(0,a.default).createElement("span",{className:s.default.info},"Variant: ",t):null,(0,a.default).createElement("span",{className:s.default.variantSizes},"W: ",r," H: ",n))))},{react:"6uln9","./Variant.module.css":"bVB6o","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bVB6o:[function(e,t,r){t.exports.caption="GS2huq_caption",t.exports.image="GS2huq_image",t.exports.info="GS2huq_info",t.exports.infoContainer="GS2huq_infoContainer",t.exports.picture="GS2huq_picture",t.exports.variantContainer="GS2huq_variantContainer",t.exports.variantSizes="GS2huq_variantSizes"},{}],fGiiN:[function(e,t,r){t.exports.variantItem="RPvqMq_variantItem",t.exports.variantsContainer="RPvqMq_variantsContainer"},{}],elGDP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/components"),d=e("@media-ui/core/src/state"),p=e("./index"),h=e("./Property"),m=n.interopDefault(h),v=e("./Actions"),g=n.interopDefault(v),y=e("./InspectorContainer"),b=n.interopDefault(y),j=e("./Tasks"),S=n.interopDefault(j),x=e("./PropertyInspector.module.css"),_=n.interopDefault(x),w=e("@media-ui/feature-asset-sources");r.default=(0,i.default).memo(()=>{let e=(0,u.useSelectedAsset)(),{assetSources:t}=(0,w.useAssetSourcesQuery)(),r=(0,c.useNotify)(),{translate:n}=(0,c.useIntl)(),{approvalAttainmentStrategy:{obtainApprovalToUpdateAsset:i}}=(0,c.useMediaUi)(),h=(0,s.useRecoilValue)(d.featureFlagsState),[v,y]=(0,a.useState)(null),[j,x]=(0,a.useState)(null),[k,E]=(0,a.useState)(null),[T,C]=(0,a.useState)(h.propertyEditor.collapsed),{updateAsset:D,loading:O}=(0,u.useUpdateAsset)(),I=e?.localId&&!O,A=e&&(v!==e.label||j!==e.caption||k!==e.copyrightNotice),R=e?t.find(({id:t})=>t===e.assetSource.id):null,P=(0,a.useCallback)(()=>{e&&(y(e.label),x(e.caption),E(e.copyrightNotice))},[e,y,x,E]),N=(0,a.useCallback)(async()=>{if(v!==e.label||j!==e.caption||k!==e.copyrightNotice){let t=await i({asset:e});if(t)try{await D({asset:e,label:v,caption:j,copyrightNotice:k}),r.ok(n("actions.updateAsset.success","The asset has been updated"))}catch({message:e}){r.error(n("actions.deleteAsset.error","Error while updating the asset"),e)}}},[r,n,j,k,v,e,D,i]);return((0,a.useEffect)(()=>{P()},[e?.id]),e)?(0,o.jsxs)(b.default,{children:[(0,o.jsxs)(l.ToggablePanel,{closesToBottom:!0,className:_.default.propertyPanel,isOpen:!T,onPanelToggle:()=>C(e=>!e),children:[(0,o.jsx)(l.ToggablePanel.Header,{className:_.default.propertyPanelHeader,children:(0,o.jsx)(f.IconLabel,{icon:"pencil",label:n("propertyPanel.header","Properties")})}),(0,o.jsxs)(l.ToggablePanel.Contents,{className:_.default.propertyPanelContents,children:[(0,o.jsx)(m.default,{label:n("inspector.title","Title"),children:(0,o.jsx)(l.TextInput,{name:"label",disabled:!I,type:"text",value:v||"",onChange:y,onEnterKey:N})}),(0,o.jsx)(m.default,{label:n("inspector.caption","Caption"),children:(0,o.jsx)(l.TextArea,{name:"caption",className:_.default.textArea,disabled:!I,minRows:3,expandedRows:6,value:j||"",onChange:x})}),(0,o.jsx)(m.default,{label:n("inspector.copyrightNotice","Copyright notice"),children:(0,o.jsx)(l.TextArea,{name:"copyrightNotice",className:_.default.textArea,disabled:!I,minRows:2,expandedRows:4,value:k||"",onChange:E})}),I&&(0,o.jsx)(g.default,{handleApply:N,handleDiscard:P,hasUnpublishedChanges:A,inputValid:!!v})]})]}),R.supportsCollections&&(0,o.jsx)(p.CollectionSelectBox,{}),R.supportsTagging&&(0,o.jsx)(p.TagSelectBoxAsset,{}),(0,o.jsx)(S.default,{}),(0,o.jsx)(p.MetadataView,{})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","./index":"eMQJr","./Property":"i6Kvg","./Actions":"jKrDW","./InspectorContainer":"5SG0j","./Tasks":"dqcVs","./PropertyInspector.module.css":"jaNwZ","@media-ui/feature-asset-sources":"9cP7j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dqcVs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/components"),f=e("@media-ui/feature-asset-usage/src/index"),d=e("@media-ui/feature-similar-assets"),p=e("@media-ui/feature-asset-upload/src/components"),h=e("@media-ui/feature-asset-editing"),m=e("@media-ui/core/src/hooks"),v=e("@media-ui/core/src/state"),g=e("./Tasks.module.css"),y=n.interopDefault(g);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,c.useIntl)(),t=(0,m.useSelectedAsset)(),r=(0,s.useRecoilValue)(v.applicationContextState),{showSimilarAssets:n}=(0,s.useRecoilValue)(v.featureFlagsState);return t?(0,o.jsxs)("div",{className:y.default.tasks,children:[(0,o.jsx)(l.Headline,{type:"h2",children:(0,o.jsx)(u.IconLabel,{icon:"tasks",label:e("inspector.actions","Tasks")})}),(0,o.jsx)(f.AssetUsagesToggleButton,{}),n&&(0,o.jsx)(d.SimilarAssetsToggleButton,{}),!t.assetSource.readOnly&&"details"!==r&&(0,o.jsx)(p.AssetReplacementButton,{}),!t.assetSource.readOnly&&"details"!==r&&(0,o.jsx)(h.OpenAssetEditDialogButton,{})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@media-ui/feature-asset-usage/src/index":"lWHpb","@media-ui/feature-similar-assets":"fcGtf","@media-ui/feature-asset-upload/src/components":"aZ3Bv","@media-ui/feature-asset-editing":"hp2Yk","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","./Tasks.module.css":"i2qG2","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],i2qG2:[function(e,t,r){t.exports.tasks="gOSwCW_tasks"},{}],jaNwZ:[function(e,t,r){t.exports.propertyPanelContents="QsDLeW_propertyPanelContents",t.exports.propertyPanelHeader="QsDLeW_propertyPanelHeader",t.exports.textArea="QsDLeW_textArea"},{}],dh8Aw:[function(e,t,r){t.exports.tabContent="_5E9l1q_tabContent"},{}],dODCE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/core/src/components"),d=e("@media-ui/core/src/state"),p=e("@media-ui/feature-asset-collections"),h=e("./CollectionSelectBox.module.css"),m=e("./AssetCollectionOptionPreviewElement");let v=(e,t)=>e.join(",")===t.collections.map(e=>e.id).join(",");r.default=(0,i.default).memo(()=>{let e=(0,c.useNotify)(),{translate:t}=(0,c.useIntl)(),{approvalAttainmentStrategy:{obtainApprovalToSetAssetCollections:r}}=(0,c.useMediaUi)(),{assetCollections:n}=(0,p.useAssetCollectionsQuery)(),{setAssetCollections:i,loading:g}=(0,u.useSetAssetCollections)(),y=(0,u.useSelectedAsset)(),{limitToSingleAssetCollectionPerAsset:b}=(0,s.useRecoilValue)(d.featureFlagsState),[j,S]=(0,a.useState)(""),x=(0,a.useMemo)(()=>n.map(e=>({label:e.title,id:e.id,secondaryLabel:e.parent?"/"+(0,p.collectionPath)(e,n).map(({title:e})=>e).join("/"):""})),[n]),_=(0,a.useMemo)(()=>x.filter(({label:e})=>e.toLowerCase().includes(j)),[x,j]),[w,k]=(0,a.useState)([]),E=(0,a.useCallback)(()=>k(y?.collections.map(({id:e})=>e)||[]),[y?.collections]),T=(0,a.useCallback)(async o=>{if(null===o?o=[]:"string"==typeof o&&(o=[o]),!v(o,y)){let a=n.filter(e=>o.includes(e.id)),s=await r({asset:y,newAssetCollections:a});if(s)try{await i({asset:y,assetCollections:a}),e.ok(t("actions.setAssetCollections.success","The collections for the asset have been set"))}catch({message:r}){e.error(t("actions.setAssetCollections.error","Error while setting the collections for the asset"),r)}else E()}},[e,y,i,n,t,E,r]),C=(0,a.useCallback)(e=>{S(e.toLowerCase())},[]);return((0,a.useEffect)(E,[E]),y)?(0,o.jsx)("div",{className:"collectionSelectBox",children:b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Headline,{type:"h2",children:(0,o.jsx)(f.IconLabel,{icon:"folder",label:t("inspector.assetCollection","Collection")})}),(0,o.jsx)(l.SelectBox,{className:h.collectionSelectBox,disabled:g||y.assetSource.readOnly,placeholder:t("inspector.collections.placeholder","Select a collection"),value:w.length?w[0]:null,optionValueField:"id",options:_,noMatchesFoundLabel:t("general.noMatchesFound","No matches found"),onValueChange:T,onSearchTermChange:C,ListPreviewElement:m.AssetCollectionOptionPreviewElement,displaySearchBox:!0,allowEmpty:!0,threshold:0})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.Headline,{type:"h2",children:(0,o.jsx)(f.IconLabel,{icon:"folder",label:t("inspector.assetCollections","Collections")})}),(0,o.jsx)(l.MultiSelectBox,{className:h.collectionSelectBox,disabled:g||y.assetSource.readOnly,placeholder:t("inspector.collections.placeholder","Select a collection"),values:w,optionValueField:"id",options:x,searchOptions:_,noMatchesFoundLabel:t("general.noMatchesFound","No matches found"),onValuesChange:T,onSearchTermChange:C,ListPreviewElement:m.AssetCollectionOptionPreviewElement,displaySearchBox:!0,allowEmpty:!0,threshold:0})]})}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-collections":"ACGoF","./CollectionSelectBox.module.css":"4nwhZ","./AssetCollectionOptionPreviewElement":"4Vmvi","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"4nwhZ":[function(e,t,r){t.exports.collectionSelectBox="cQ-_Aa_collectionSelectBox"},{}],cVRYy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/hooks"),u=e("@media-ui/core/src/components"),f=e("./IptcMetadataInspector.module.css"),d=n.interopDefault(f);r.default=(0,i.default).memo(()=>{let e=(0,c.useSelectedAsset)(),{translate:t}=(0,l.useIntl)();return e?.iptcProperties?.length?(0,o.jsxs)("div",{className:d.default.iptcData,children:[(0,o.jsx)(s.Headline,{type:"h2",children:(0,o.jsx)(u.IconLabel,{icon:"camera",label:t("inspector.iptcMetadata","IPTC Metadata")})}),(0,o.jsx)(u.PropertyList,{children:e.iptcProperties.map(e=>(0,o.jsx)(u.PropertyListItem,{label:e.propertyName,value:e.value},e.propertyName))})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/components":"5LFSk","./IptcMetadataInspector.module.css":"j7Y54","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],j7Y54:[function(e,t,r){t.exports.iptcData="_8r-_bG_iptcData"},{}],"2VlG8":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react/jsx-runtime"),o=e("react"),a=e("@neos-project/react-ui-components"),i=e("@media-ui/core"),s=e("@media-ui/core/src/hooks"),l=e("@media-ui/core/src/helper"),c=e("@media-ui/core/src/components");r.default=o.memo(()=>{let{translate:e}=(0,i.useIntl)(),t=(0,s.useSelectedAsset)();return t?(0,n.jsxs)("div",{children:[(0,n.jsx)(a.Headline,{type:"h2",children:(0,n.jsx)(c.IconLabel,{icon:"info-circle",label:e("inspector.metadata","Metadata")})}),(0,n.jsxs)(c.PropertyList,{children:[(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.dimensions","Dimensions"),value:`${t.width}px x ${t.height}px`}),t.file.size>0&&(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.fileSize","Size"),value:(0,l.humanFileSize)(t.file.size)}),(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.filename","Filename"),value:t.filename}),(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.lastModified","Last modified"),value:new Date(t.lastModified).toLocaleString()}),(0,n.jsx)(c.PropertyListItem,{label:e("inspector.property.mediaType","MIME type"),value:t.file.mediaType})]})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/helper":"80jPI","@media-ui/core/src/components":"5LFSk","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"8ozOG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=e("recoil"),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/state"),u=e("@media-ui/feature-asset-tags"),f=e("./Actions"),d=n.interopDefault(f),p=e("./Property"),h=n.interopDefault(p),m=e("./InspectorContainer"),v=n.interopDefault(m);r.default=a.memo(()=>{let e=(0,u.useSelectedTag)(),t=(0,i.useRecoilValue)(c.selectedInspectorViewState),r=(0,l.useNotify)(),{translate:n}=(0,l.useIntl)(),[f,p]=(0,a.useState)(null),{updateTag:m}=(0,u.useUpdateTag)(),g=e&&f!==e.label,y=(0,a.useCallback)(()=>{e&&p(e.label)},[e,p]),b=(0,a.useCallback)(()=>{f!==e.label&&m({tag:e,label:f}).then(()=>{r.ok(n("actions.updateTag.success","The tag has been updated"))}).catch(({message:e})=>{r.error(n("actions.updateTag.error","Error while updating the tag"),e)})},[r,n,e,m,f]);return((0,a.useEffect)(()=>{y()},[e?.id]),e&&"tag"===t)?(0,o.jsxs)(v.default,{children:[(0,o.jsx)(h.default,{label:n("inspector.label","Label"),children:(0,o.jsx)(s.TextInput,{type:"text",value:f||"",onChange:p,onEnterKey:b})}),(0,o.jsx)(d.default,{handleApply:b,handleDiscard:y,hasUnpublishedChanges:g})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-tags":"aqhtm","./Actions":"jKrDW","./Property":"i6Kvg","./InspectorContainer":"5SG0j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],k1P3m:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@neos-project/react-ui-components"),l=e("@media-ui/core"),c=e("@media-ui/core/src/components");r.default=(0,i.default).memo(({values:e,options:t,onChange:r,disabled:n=!1})=>{let{translate:a}=(0,l.useIntl)();return(0,o.jsxs)("div",{className:"tagSelectBox",children:[(0,o.jsx)(s.Headline,{type:"h2",children:(0,o.jsx)(c.IconLabel,{icon:"tags",label:a("inspector.tags","Tags")})}),(0,o.jsx)(s.MultiSelectBox,{className:"tagSelection",disabled:n,placeholder:a("inspector.tags.placeholder","Select a tag"),noMatchesFoundLabel:a("general.noMatchesFound","No matches found"),values:e,optionValueField:"id",options:t,searchOptions:t,onValuesChange:e=>r(e.map(e=>t.find(t=>t.id===e)))})]})})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"92cb0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core"),l=e("@media-ui/core/src/hooks"),c=e("@media-ui/feature-asset-tags"),u=e(".");let f=(e,t)=>e.map(e=>e.id).sort().join(",")===t.tags.map(e=>e.id).sort().join(",");r.default=(0,i.default).memo(()=>{let e=(0,s.useNotify)(),{translate:t}=(0,s.useIntl)(),{approvalAttainmentStrategy:{obtainApprovalToSetAssetTags:r}}=(0,s.useMediaUi)(),{tags:n}=(0,c.useTagsQuery)(),{setAssetTags:i,loading:d}=(0,l.useSetAssetTags)(),p=(0,l.useSelectedAsset)(),[h,m]=(0,a.useState)([]),v=(0,a.useCallback)(()=>m(p?.tags.map(({id:e})=>e).sort()),[p?.tags]),g=(0,a.useCallback)(async n=>{if(!f(n,p)){let o=await r({asset:p,newTags:n});if(o)try{await i({asset:p,tags:n}),e.ok(t("actions.setAssetTags.success","The asset has been tagged"))}catch({message:r}){e.error(t("actions.setAssetTags.error","Error while tagging the asset"),r)}else v()}},[e,p,i,t,v,r]);return((0,a.useEffect)(()=>v(),[v]),p)?(0,o.jsx)(u.TagSelectBox,{values:h,options:n,onChange:g,disabled:d||p.assetSource.readOnly}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-tags":"aqhtm",".":"eMQJr","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],esvmA:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core"),l=e("@media-ui/feature-asset-tags"),c=e("@media-ui/feature-asset-collections"),u=e(".");let f=(e,t)=>e.map(e=>e.id).sort().join(",")===t.tags.map(e=>e.id).sort().join(",");r.default=(0,i.default).memo(()=>{let e=(0,s.useNotify)(),{translate:t}=(0,s.useIntl)(),{tags:r}=(0,l.useTagsQuery)(),{updateAssetCollection:n}=(0,c.useUpdateAssetCollection)(),i=(0,c.useSelectedAssetCollection)(),d=(0,a.useMemo)(()=>i?.tags.map(({id:e})=>e).sort(),[i?.tags]),p=(0,a.useCallback)(r=>{f(r,i)||n({assetCollection:i,tags:r}).then(()=>{e.ok(t("actions.tagAssetCollection.success","The asset collection has been tagged"))}).catch(({message:r})=>{e.error(t("actions.tagAssetCollection.error","Error while tagging the asset collection"),r)})},[e,i,n,t]);return i?(0,o.jsx)(u.TagSelectBox,{values:d,options:r,onChange:p}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core":"j3EAa","@media-ui/feature-asset-tags":"aqhtm","@media-ui/feature-asset-collections":"ACGoF",".":"eMQJr","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bK6dT:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/core/src/components"),d=e("@media-ui/feature-asset-collections"),p=e("@media-ui/feature-asset-tags"),h=e("./CurrentSelection.module.css"),m=n.interopDefault(h);r.default=(0,i.default).memo(()=>{let e=(0,d.useSelectedAssetCollection)(),t=(0,p.useSelectedTag)(),r=(0,s.useSetRecoilState)(u.selectedAssetCollectionAndTagState),n=(0,s.useRecoilValue)(u.selectedInspectorViewState),{translate:i}=(0,c.useIntl)(),{assetCollections:h}=(0,d.useAssetCollectionsQuery)(),v=(0,a.useMemo)(()=>{let r="question",o=null,a=[];return"asset"!==n&&(e&&(a=(0,d.collectionPath)(e,h)),"assetCollection"===n?(r="folder",o=e?.title):"tag"===n&&(r="tag",o=t?.label)),{icon:r,label:o,path:a}},[t,e,n,h]);return v.label&&"asset"!==n?(0,o.jsxs)("div",{className:m.default.currentSelection,children:[(0,o.jsx)(l.Headline,{type:"h2",className:m.default.headline,children:"assetCollection"===n?i("currentSelection.assetCollection.headline","Selected collection"):i("currentSelection.tag.headline","Selected tag")}),(0,o.jsx)(f.IconLabel,{icon:v.icon,className:m.default.label,label:v.label}),(0,o.jsx)(l.Headline,{type:"h3",className:m.default.headline,children:i("currentSelection.path.headline","Path")}),(0,o.jsxs)("div",{className:m.default.breadcrumb,children:[(0,o.jsx)("button",{type:"button",onClick:()=>r({assetCollectionId:null,tagId:null}),children:"/"}),v.path.map(({id:e,title:t})=>(0,o.jsx)("button",{type:"button",onClick:()=>r({assetCollectionId:e,tagId:null}),children:t},e))]})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/components":"5LFSk","@media-ui/feature-asset-collections":"ACGoF","@media-ui/feature-asset-tags":"aqhtm","./CurrentSelection.module.css":"bWZ7L","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bWZ7L:[function(e,t,r){t.exports.breadcrumb="zzq2Ja_breadcrumb",t.exports.currentSelection="zzq2Ja_currentSelection",t.exports.headline="zzq2Ja_headline",t.exports.label="zzq2Ja_label"},{}],"1t2UB":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react");n.interopDefault(a);var i=e("recoil"),s=e("@media-ui/core/src/state"),l=e("./LoadingIndicator.module.css"),c=n.interopDefault(l);r.default=()=>{let e=(0,i.useRecoilValue)(s.loadingState);return(0,o.jsx)("div",{className:c.default.indicator,"data-animated":e,role:"progressbar","aria-hidden":!0})}},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@media-ui/core/src/state":"jV1GH","./LoadingIndicator.module.css":"dIyLG","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dIyLG:[function(e,t,r){t.exports.cssLoadWidth="_5GQP0G_cssLoadWidth",t.exports.cssLoadWidth,t.exports.indicator="_5GQP0G_indicator"},{}],gzfIV:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BottomBar",()=>a.default);var o=e("./BottomBar"),a=n.interopDefault(o)},{"./BottomBar":"h8Akg","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],h8Akg:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("classnames"),l=n.interopDefault(s),c=e("@media-ui/core"),u=e("@media-ui/feature-clipboard"),f=e("./AssetCount/AssetCount"),d=n.interopDefault(f),p=e("./Pagination/Pagination"),h=n.interopDefault(p),m=e("./BottomBar.module.css"),v=n.interopDefault(m);r.default=(0,i.default).memo(()=>{let{isInNodeCreationDialog:e,selectionMode:t}=(0,c.useMediaUi)(),r=[d.default,h.default,u.ClipboardToggle];return(0,o.jsx)("div",{className:(0,l.default)(v.default.bottomBar,{[v.default.selectionMode]:e||t,[v.default.isInNodeCreationDialog]:e}),children:r.map((e,t)=>(0,o.jsx)(e,{},t))})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/feature-clipboard":"hHDiM","./AssetCount/AssetCount":"04BLa","./Pagination/Pagination":"4QfNK","./BottomBar.module.css":"hGqKo","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"04BLa":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core"),l=e("../../../hooks"),c=e("./AssetCount.module.css"),u=n.interopDefault(c);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,s.useIntl)(),t=(0,l.useAssetCount)();return(0,o.jsxs)("div",{className:u.default.assetCount,children:[t," ",e("pagination.assetCount","assets")]})})},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core":"j3EAa","../../../hooks":"eJO7U","./AssetCount.module.css":"cHkV2","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],eJO7U:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"useAssetCount",()=>a.default);var o=e("./useAssetCount"),a=n.interopDefault(o)},{"./useAssetCount":"cN12u","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],cN12u:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("react"),o=e("recoil"),a=e("@media-ui/core/src/hooks"),i=e("@media-ui/feature-asset-usage"),s=e("../state");r.default=()=>{let{assetCount:e}=(0,a.useAssetCountQuery)(),t=(0,o.useRecoilValue)(s.mainViewState),{called:r,load:l,unusedAssetCount:c}=(0,i.useUnusedAssetCountQuery)(),u=t===s.MainViewMode.UNUSED_ASSETS?c:e;return(0,n.useEffect)(()=>{t!==s.MainViewMode.UNUSED_ASSETS||r||l()},[t,r,l]),u}},{react:"6uln9",recoil:"2QijJ","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-usage":"lWHpb","../state":"4QYDB","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"4QYDB":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"mainViewState",()=>o.mainViewState),n.export(r,"MainViewMode",()=>o.MainViewMode),n.export(r,"viewModeState",()=>a.viewModeState),n.export(r,"VIEW_MODES",()=>a.VIEW_MODES);var o=e("./mainViewState"),a=e("./viewModeState")},{"./mainViewState":"1qula","./viewModeState":"ayK68","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"1qula":[function(e,t,r){var n,o,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"mainViewState",()=>c),a.export(r,"MainViewMode",()=>o);var i=e("recoil"),s=e("@media-ui/feature-clipboard"),l=e("@media-ui/feature-asset-usage");(n=o||(o={}))[n.DEFAULT=0]="DEFAULT",n[n.CLIPBOARD=1]="CLIPBOARD",n[n.UNUSED_ASSETS=2]="UNUSED_ASSETS";let c=(0,i.selector)({key:"mainViewState",get:({get:e})=>{let t=e(s.clipboardVisibleState),r=e(l.showUnusedAssetsState);return t?o.CLIPBOARD:r?o.UNUSED_ASSETS:o.DEFAULT}})},{recoil:"2QijJ","@media-ui/feature-clipboard":"hHDiM","@media-ui/feature-asset-usage":"lWHpb","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],ayK68:[function(e,t,r){var n,o,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"VIEW_MODES",()=>o),a.export(r,"viewModeState",()=>l);var i=e("recoil"),s=e("@media-ui/core/src/state");(n=o||(o={})).Thumbnails="thumbnails",n.List="list";let l=(0,i.atom)({key:"ViewModeState",default:o.Thumbnails,effects:[(0,s.localStorageEffect)("ViewModeState")]})},{recoil:"2QijJ","@media-ui/core/src/state":"jV1GH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],cHkV2:[function(e,t,r){t.exports.assetCount="ucPgIG_assetCount"},{}],"4QfNK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@media-ui/core"),c=e("@media-ui/core/src/state"),u=e("./PaginationItem"),f=n.interopDefault(u),d=e("../../../state"),p=e("../../../hooks"),h=e("./Pagination.module.css"),m=n.interopDefault(h),v=e("classnames"),g=n.interopDefault(v);r.default=(0,i.default).memo(()=>{let[e,t]=(0,s.useRecoilState)(c.currentPageState),r=(0,p.useAssetCount)(),{pagination:{assetsPerPage:n,maximumLinks:i}}=(0,s.useRecoilValue)(c.featureFlagsState),{translate:u}=(0,l.useIntl)(),h=(0,s.useRecoilValue)(d.mainViewState),v=![(0,d.MainViewMode).DEFAULT,(0,d.MainViewMode).UNUSED_ASSETS].includes(h),y=Math.ceil(r/n),[b,j]=(0,a.useState)({start:0,end:0,hasLessPages:!1,hasMorePages:!1,pages:[]}),S=(0,a.useCallback)(e=>t(e),[t]),x=(0,a.useCallback)(()=>t(e=>e-1),[t]),_=(0,a.useCallback)(()=>t(e=>e+1),[t]);return(0,a.useMemo)(()=>{let t=Math.min(i,y),r=Math.floor(t/2),n=e-r,o=e+r+(t%2==0?1:0);n<1&&(o-=n-1),o>y&&(n-=o-y),n=Math.max(n,1),o=Math.min(o,y);let a=[...Array(o-n+1)].map((e,t)=>t+n);j({start:n,end:o,hasLessPages:n>2,hasMorePages:o+10&&(0,o.jsxs)("ol",{className:(0,g.default)(m.default.list,v&&m.default.disabled),children:[(0,o.jsx)(f.default,{icon:"angle-left",title:u("pagination.previousPageTitle","Go to previous page"),onClick:x,disabled:v||e<=1}),b.start>1&&(0,o.jsx)(f.default,{title:u("pagination.firstPageTitle","Go to first page"),onClick:S,disabled:v,page:1}),b.hasLessPages&&(0,o.jsx)("li",{className:m.default.ellipsis,children:"…"}),b.pages.map(t=>(0,o.jsx)(f.default,{selected:e===t,onClick:S,disabled:v,title:u("pagination.page",`Go to page ${t}`,[t]),page:t},t)),b.hasMorePages&&(0,o.jsx)("li",{className:m.default.ellipsis,children:"…"}),b.end(0,o.jsx)("li",{className:(0,l.default)(f.default.item,a&&f.default.selected),children:s?(0,o.jsx)(c.IconButton,{icon:s,disabled:i,size:"regular",style:"transparent",hoverStyle:"brand",title:e,onClick:()=>r(n)}):(0,o.jsx)(c.Button,{icon:s,disabled:i,size:"regular",style:a?"brand":"transparent",hoverStyle:"brand",title:e,onClick:()=>r(n),children:t||n})}))},{"react/jsx-runtime":"gaGEj",react:"6uln9",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","./PaginationItem.module.css":"dTTOH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dTTOH:[function(e,t,r){t.exports.item="sNJnsW_item"},{}],"3masv":[function(e,t,r){t.exports.disabled="gZKlGG_disabled",t.exports.ellipsis="gZKlGG_ellipsis",t.exports.list="gZKlGG_list",t.exports.pagination="gZKlGG_pagination"},{}],hGqKo:[function(e,t,r){t.exports.bottomBar="VMKMXG_bottomBar",t.exports.isInNodeCreationDialog="VMKMXG_isInNodeCreationDialog",t.exports.selectionMode="VMKMXG_selectionMode"},{}],"92ap4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TopBar",()=>a.default);var o=e("./TopBar"),a=n.interopDefault(o)},{"./TopBar":"ipjmZ","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],ipjmZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("classnames"),l=n.interopDefault(s),c=e("@media-ui/core"),u=e("@media-ui/feature-clipboard"),f=e("./SortOrderSelector"),d=n.interopDefault(f),p=e("./AssetsFilter/AssetsFilter"),h=n.interopDefault(p),m=e("./ViewModeSelector"),v=n.interopDefault(m),g=e("./SearchBox"),y=n.interopDefault(g),b=e("./TopBar.module.css"),j=n.interopDefault(b);r.default=(0,i.default).memo(()=>{let{selectionMode:e}=(0,c.useMediaUi)(),t=[u.ClipboardActions,y.default,h.default,d.default,v.default];return(0,o.jsx)("div",{className:(0,l.default)(j.default.topBar,e&&j.default.topBarSelectionMode),children:t.map((e,t)=>(0,o.jsx)(e,{},t))})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/feature-clipboard":"hHDiM","./SortOrderSelector":"hifqw","./AssetsFilter/AssetsFilter":"6QunU","./ViewModeSelector":"9801v","./SearchBox":"1Kpdk","./TopBar.module.css":"5CETV","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hifqw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state/selectedSortOrderState"),f=e("./SortOrderSelector.module.css"),d=n.interopDefault(f),p=e("../../state");r.default=(0,i.default).memo(()=>{let{isInNodeCreationDialog:e,selectionMode:t}=(0,c.useMediaUi)(),[r,n]=(0,s.useRecoilState)(u.selectedSortOrderState),{translate:i}=(0,c.useIntl)(),f=e||t,h=(0,a.useCallback)(e=>{n({...r,sortBy:e})},[r,n]),m=(0,s.useRecoilValue)(p.mainViewState),v=(0,a.useCallback)(()=>{n({...r,sortDirection:r.sortDirection===u.SORT_DIRECTION.Asc?u.SORT_DIRECTION.Desc:u.SORT_DIRECTION.Asc})},[r,n]),g=(0,a.useMemo)(()=>[{value:u.SORT_BY.LastModified,label:i("sortingState.sortBy.values.lastModified","Last Modified"),icon:f?"":"calendar"},{value:u.SORT_BY.Name,label:i("sortingState.sortBy.values.name","Name"),icon:f?"":"font"},{value:u.SORT_BY.Size,label:i("sortingState.sortBy.values.size","File size"),icon:f?"":"weight-hanging"}],[i,f]);return[(0,p.MainViewMode).DEFAULT,(0,p.MainViewMode).UNUSED_ASSETS].includes(m)?(0,o.jsxs)("div",{className:d.default.sortingState,children:[(0,o.jsx)("div",{className:d.default.selectBox,children:(0,o.jsx)(l.SelectBox,{className:d.default.selectBox,options:Object.values(g),onValueChange:h,value:r.sortBy,optionValueField:"value"})}),(0,o.jsx)(l.IconButton,{icon:r.sortDirection===u.SORT_DIRECTION.Asc?"sort-amount-up":"sort-amount-down",size:"regular",title:i(`sortingState.dortOrder.value.${r.sortDirection===u.SORT_DIRECTION.Asc?u.SORT_DIRECTION.Desc:u.SORT_DIRECTION.Asc}`,"Switch sort direction"),style:"neutral",hoverStyle:"brand",onClick:v})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state/selectedSortOrderState":"8xo0U","./SortOrderSelector.module.css":"bWrfr","../../state":"4QYDB","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bWrfr:[function(e,t,r){t.exports.selectBox="yiv2CG_selectBox",t.exports.sortingState="yiv2CG_sortingState"},{}],"6QunU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@media-ui/core"),f=e("@media-ui/core/src/components"),d=e("@media-ui/core/src/state"),p=e("../../../state"),h=e("./MediaTypeFilter"),m=n.interopDefault(h),v=e("./AssetTypeFilter"),g=n.interopDefault(v),y=e("./AssetsFilter.module.css"),b=n.interopDefault(y);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,u.useIntl)(),t=(0,s.useRecoilValue)(p.mainViewState),r=(0,s.useRecoilValue)(d.selectedAssetTypeState),n=(0,s.useRecoilValue)(d.selectedMediaTypeState),i=(0,a.useRef)(),l=[g.default,m.default];return((0,a.useEffect)(()=>{i.current?.open&&(i.current.open=!1)},[n]),[(0,p.MainViewMode).DEFAULT,(0,p.MainViewMode).UNUSED_ASSETS].includes(t))?(0,o.jsxs)("details",{ref:i,className:(0,c.default)(b.default.assetsFilter,(r||n)&&b.default.active),children:[(0,o.jsx)("summary",{title:e("AssetsFilter.title","Toggle asset filters"),children:(0,o.jsx)(f.IconLabel,{icon:"filter",label:"Filter"})}),(0,o.jsx)("div",{className:b.default.filterList,children:l.map((e,t)=>(0,o.jsx)(e,{},t))})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/core/src/components":"5LFSk","@media-ui/core/src/state":"jV1GH","../../../state":"4QYDB","./MediaTypeFilter":"aSwWH","./AssetTypeFilter":"bnrpW","./AssetsFilter.module.css":"hN2Wn","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],aSwWH:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/feature-asset-usage"),d=e("./AssetsFilter.module.css"),p=n.interopDefault(d);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,c.useIntl)(),{mediaTypeFilterOptions:t}=(0,s.useRecoilValue)(u.featureFlagsState),[r,n]=(0,s.useRecoilState)(u.selectedMediaTypeState),i=(0,s.useRecoilValue)(u.selectedAssetTypeState),d=(0,s.useSetRecoilState)(u.currentPageState),h=(0,s.useRecoilValue)(f.showUnusedAssetsState),m=(0,s.useRecoilValue)(u.constraintsState),v=(0,a.useCallback)(e=>{n(e),d(1)},[d,n]),g=(0,a.useMemo)(()=>{if(!t||!i||"all"==i||h)return[];let e=t[i];return Object.keys(e).filter(e=>!m.mediaTypes||m.mediaTypes?.includes(e)).map(t=>({label:e[t],value:t}))},[i,m.mediaTypes,t,h]);return 0===g.length?null:(0,o.jsx)("div",{className:p.default.typeFilter,children:(0,o.jsx)(l.SelectBox,{className:p.default.selectBox,options:g,onValueChange:v,value:r,allowEmpty:!m.mediaTypes||m.mediaTypes.length>1,placeholder:e("typeFilter.assetType.values.all","Mediatype"),optionValueField:"value"})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-usage":"lWHpb","./AssetsFilter.module.css":"hN2Wn","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],hN2Wn:[function(e,t,r){t.exports.active="PUFj9a_active",t.exports.assetsFilter="PUFj9a_assetsFilter",t.exports.filterList="PUFj9a_filterList",t.exports.selectBox="PUFj9a_selectBox",t.exports.typeFilter="PUFj9a_typeFilter"},{}],bnrpW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/feature-asset-usage"),d=e("./AssetsFilter.module.css"),p=n.interopDefault(d);let h="unused";r.default=(0,i.default).memo(()=>{let e=(0,s.useRecoilValue)(u.featureFlagsState),{assetType:t}=(0,s.useRecoilValue)(u.constraintsState),[r,n]=(0,s.useRecoilState)(u.selectedAssetTypeState),i=(0,s.useSetRecoilState)(u.selectedMediaTypeState),[d,m]=(0,s.useRecoilState)(f.showUnusedAssetsState),v=(0,s.useSetRecoilState)(u.currentPageState),{translate:g}=(0,c.useIntl)(),y=d?h:r,b=(0,a.useCallback)(e=>{m("unused"===e),i(""),e!==h&&n(e),v(1)},[m,v,n,i]),j=(0,a.useMemo)(()=>{let r=t&&"all"!==t,n={video:{value:"video",label:g("typeFilter.assetType.values.video","Video"),disabled:r&&"video"!==t},audio:{value:"audio",label:g("typeFilter.assetType.values.audio","Audio"),disabled:r&&"audio"!==t},image:{value:"image",label:g("typeFilter.assetType.values.image","Image"),disabled:r&&"image"!==t},document:{value:"document",label:g("typeFilter.assetType.values.document","Document"),disabled:r&&"document"!==t}};return e.queryAssetUsage&&(n[h]={value:h,label:g("typeFilter.assetType.values.unused","Unused"),disabled:r}),n},[g,e,t]);return(0,o.jsx)("div",{className:p.default.typeFilter,children:(0,o.jsx)(l.SelectBox,{className:p.default.selectBox,options:Object.values(j),onValueChange:b,value:y,allowEmpty:!t||"all"===t,placeholder:g("typeFilter.assetType.values.all","All"),optionValueField:"value"})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-asset-usage":"lWHpb","./AssetsFilter.module.css":"hN2Wn","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9801v":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("../../state"),f=e("./ViewModeSelector.module.css"),d=n.interopDefault(f);r.default=(0,i.default).memo(()=>{let{translate:e}=(0,c.useIntl)(),[t,r]=(0,s.useRecoilState)(u.viewModeState);return(0,o.jsx)("div",{className:d.default.viewModeSelector,children:(0,o.jsx)(l.IconButton,{icon:t===u.VIEW_MODES.List?"th":"th-list",size:"regular",title:e(`viewModeSelector.viewMode.${t===u.VIEW_MODES.List?u.VIEW_MODES.Thumbnails:u.VIEW_MODES.List}`,"Switch mode"),style:"neutral",hoverStyle:"brand",onClick:()=>r(e=>e===u.VIEW_MODES.List?u.VIEW_MODES.Thumbnails:u.VIEW_MODES.List)})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","../../state":"4QYDB","./ViewModeSelector.module.css":"lPz4j","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],lPz4j:[function(e,t,r){t.exports.selectBox="_5Oef7G_selectBox",t.exports.viewModeSelector="_5Oef7G_viewModeSelector"},{}],"1Kpdk":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/core/src/domain/SearchTerm"),d=e("../../state"),p=e("./SearchBox.module.css"),h=n.interopDefault(p);r.default=(0,i.default).memo(()=>{let[e,t]=(0,s.useRecoilState)(u.searchTermState),r=(0,s.useSetRecoilState)(u.currentPageState),[n,i]=(0,a.useState)(e.toString()),{translate:p}=(0,c.useIntl)(),m=(0,s.useRecoilValue)(d.mainViewState),v=(0,a.useCallback)(()=>{t((0,f.SearchTerm).fromString(n)),r(1)},[n,r,t]);return m!==d.MainViewMode.DEFAULT?null:(0,o.jsx)("div",{className:h.default.searchBox,children:(0,o.jsx)(l.TextInput,{value:n,type:"search",onChange:e=>i(e),onEnterKey:v,placeholder:p("searchBox.placeholder","Search")})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/domain/SearchTerm":"bnHXU","../../state":"4QYDB","./SearchBox.module.css":"0YpTH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"0YpTH":[function(e,t,r){t.exports.searchBox="rxR0KW_searchBox"},{}],"5CETV":[function(e,t,r){t.exports.topBar="h7QbgG_topBar",t.exports["topBar--selectionMode"]="h7QbgG_topBar--selectionMode"},{}],j5uvE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ThumbnailView",()=>m.default),n.export(r,"Thumbnail",()=>p.default),n.export(r,"ListView",()=>s.default),n.export(r,"ListViewItem",()=>c.default),n.export(r,"AssetActions",()=>a.default),n.export(r,"Main",()=>f.default);var o=e("./AssetActions"),a=n.interopDefault(o),i=e("./ListView"),s=n.interopDefault(i),l=e("./ListViewItem"),c=n.interopDefault(l),u=e("./Main"),f=n.interopDefault(u),d=e("./Thumbnail"),p=n.interopDefault(d),h=e("./ThumbnailView"),m=n.interopDefault(h)},{"./AssetActions":"bRcTI","./ListView":"9qgiA","./ListViewItem":"1ccnf","./Main":"6i7no","./Thumbnail":"ghtGP","./ThumbnailView":"8gC2C","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bRcTI:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/hooks"),f=e("@media-ui/feature-asset-preview"),d=e("@media-ui/feature-clipboard");r.default=(0,i.default).memo(({asset:e})=>{let{translate:t}=(0,c.useIntl)(),r=(0,c.useNotify)(),{approvalAttainmentStrategy:n}=(0,c.useMediaUi)(),i=(0,s.useSetRecoilState)(f.selectedAssetForPreviewState),{importAsset:p}=(0,u.useImportAsset)(),{deleteAsset:h}=(0,u.useDeleteAsset)(),[m,v]=(0,s.useRecoilState)((0,d.clipboardItemState)({assetId:e.id,assetSourceId:e.assetSource.id})),g=(0,a.useCallback)(()=>{p({assetId:e.id,assetSourceId:e.assetSource.id}).then(()=>{r.ok(t("assetActions.import.success","Asset was successfully imported"))}).catch(e=>{r.error(t("assetActions.import.error","Failed to import asset"),e.message)})},[p,e,r,t]),y=(0,a.useCallback)(async e=>{let o=await n.obtainApprovalToDeleteAsset({asset:e});if(o)try{return await h({assetId:e.id,assetSourceId:e.assetSource.id}),r.ok(t("action.deleteAsset.success","The asset has been deleted")),!0}catch({message:e}){r.error(e)}return!1},[r,t,h,n]);return e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.IconButton,{title:t("itemActions.preview","Preview asset"),icon:"expand-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:()=>i({assetId:e.id,assetSourceId:e.assetSource.id})}),!e.imported&&!e.localId&&(0,o.jsx)(l.IconButton,{title:t("itemActions.import","Import asset"),icon:"cloud-download-alt",size:"regular",style:"transparent",hoverStyle:"brand",onClick:g}),!e.assetSource.readOnly&&(0,o.jsx)(l.IconButton,{title:e.isInUse?t("itemActions.delete.disabled","Cannot delete an asset that is in use"):t("itemActions.delete","Delete asset"),disabled:e.isInUse,icon:"trash",size:"regular",style:"transparent",hoverStyle:"error",onClick:()=>y(e)}),e.file?.url&&(0,o.jsx)("a",{href:e.file.url,download:!0,title:t("itemActions.download","Download asset"),children:(0,o.jsx)(l.IconButton,{icon:"download",size:"regular",style:"transparent",hoverStyle:"success"})}),e.localId&&(0,o.jsx)(l.IconButton,{title:t("itemActions.copyToClipboard","Copy to clipboard"),icon:m?"clipboard-check":"clipboard",size:"regular",style:"transparent",hoverStyle:"brand",className:m?"button--active":"",onClick:v})]}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-preview":"gaY0P","@media-ui/feature-clipboard":"hHDiM","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],"9qgiA":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@media-ui/core"),f=e("@media-ui/core/src/hooks"),d=e("@media-ui/feature-asset-preview"),p=e("./index"),h=e("./ListView.module.css"),m=n.interopDefault(h);r.default=(0,i.default).memo(({assetIdentities:e})=>{let{isInNodeCreationDialog:t}=(0,u.useMediaUi)(),{translate:r}=(0,u.useIntl)(),n=(0,s.useSetRecoilState)(d.selectedAssetForPreviewState),i=(0,f.useSelectAsset)(),l=(0,a.useCallback)((e,t=!1)=>{t?n(e):i(e)},[n,i]);return(0,o.jsx)("section",{className:(0,c.default)(m.default.listView,t&&m.default.listViewFullHeight),children:(0,o.jsxs)("table",{children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:m.default.tableHeader}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.name","Name")}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.lastModified","Last Modified")}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.fileSize","File size")}),(0,o.jsx)("th",{className:m.default.tableHeader,children:r("thumbnailView.header.mediaType","Type")}),(0,o.jsx)("th",{className:m.default.tableHeader})]})}),(0,o.jsx)("tbody",{children:e.map((e,t)=>(0,o.jsx)(p.ListViewItem,{assetIdentity:e,onSelect:l},t))})]})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-preview":"gaY0P","./index":"j5uvE","./ListView.module.css":"dci2O","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dci2O:[function(e,t,r){t.exports.listView="Rs4dJq_listView",t.exports["listView--fullHeight"]="Rs4dJq_listView--fullHeight",t.exports.tableHeader="Rs4dJq_tableHeader"},{}],"1ccnf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@neos-project/react-ui-components"),f=e("@media-ui/core"),d=e("@media-ui/core/src/hooks"),p=e("@media-ui/core/src/state"),h=e("@media-ui/core/src/helper"),m=e("@media-ui/core/src/components"),v=e("./index"),g=e("./MissingAssetActions"),y=n.interopDefault(g),b=e("./ListViewItem.module.css"),j=n.interopDefault(b);let S={weekday:"short",year:"numeric",month:"short",day:"numeric"},x=(0,s.selectorFamily)({key:"ListViewItemSelection",get:e=>({get:t})=>t(p.selectedAssetIdState)?.assetId===e});r.default=(0,i.default).memo(({assetIdentity:e,onSelect:t})=>{let{dummyImage:r,isAssetSelectable:n,selectionMode:i}=(0,f.useMediaUi)(),{asset:l,loading:p}=(0,d.useAssetQuery)(e),g=(0,s.useRecoilValue)(x(e.assetId)),b=(0,a.useMemo)(()=>n(l),[l,n]),_=(0,a.useCallback)(()=>t(e,g&&!i),[t,e,g,i]);return(0,o.jsxs)("tr",{className:(0,c.default)(j.default.listViewItem,g&&j.default.selected),children:[(0,o.jsx)("td",{className:j.default.previewColumn,onClick:_,children:(0,o.jsx)("picture",{children:b?(0,o.jsx)("img",{src:l?.thumbnailUrl||r,alt:l?.label,width:40,height:36}):(0,o.jsx)(u.Icon,{icon:"ban",color:"error"})})}),(0,o.jsx)("td",{className:j.default.labelColumn,onClick:_,children:l&&(0,o.jsx)(m.AssetLabel,{label:l.label})}),(0,o.jsx)("td",{className:j.default.lastModifiedColumn,onClick:_,children:l&&new Date(l.lastModified).toLocaleString([],S)}),(0,o.jsx)("td",{className:j.default.fileSizeColumn,onClick:_,children:l&&(0,h.humanFileSize)(l.file.size)}),(0,o.jsx)("td",{className:j.default.mediaTypeColumn,onClick:_,title:l?.file.mediaType,children:l?.file.mediaType}),(0,o.jsx)("td",{className:j.default.actionsColumn,children:!p&&(l?(0,o.jsx)(v.AssetActions,{asset:l}):(0,o.jsx)(y.default,{assetIdentity:e}))})]})},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId)},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/helper":"80jPI","@media-ui/core/src/components":"5LFSk","./index":"j5uvE","./MissingAssetActions":"bWiVp","./ListViewItem.module.css":"gxh3o","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],bWiVp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/feature-clipboard");r.default=(0,i.default).memo(({assetIdentity:e})=>{let{translate:t}=(0,c.useIntl)(),[r,n]=(0,s.useRecoilState)((0,u.clipboardItemState)(e));return r?(0,o.jsx)(l.IconButton,{title:t("itemActions.removeFromClipboard","Remove from clipboard"),icon:"trash",size:"regular",style:"transparent",hoverStyle:"warn",onClick:n}):null})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/feature-clipboard":"hHDiM","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gxh3o:[function(e,t,r){t.exports.textColumn="_0hU7dG_textColumn",t.exports.actionsColumn=`_0hU7dG_actionsColumn ${t.exports.textColumn}`,t.exports.fileSizeColumn=`_0hU7dG_fileSizeColumn ${t.exports.textColumn}`,t.exports.labelColumn=`_0hU7dG_labelColumn ${t.exports.textColumn}`,t.exports.lastModifiedColumn=`_0hU7dG_lastModifiedColumn ${t.exports.textColumn}`,t.exports.listViewItem="_0hU7dG_listViewItem",t.exports.mediaTypeColumn=`_0hU7dG_mediaTypeColumn ${t.exports.textColumn}`,t.exports.previewColumn="_0hU7dG_previewColumn",t.exports.selected="_0hU7dG_selected"},{}],"6i7no":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@neos-project/react-ui-components"),c=e("@media-ui/core"),u=e("@media-ui/core/src/state"),f=e("@media-ui/feature-clipboard"),d=e("@media-ui/feature-asset-usage"),p=e("./index"),h=e("../LoadingLabel"),m=n.interopDefault(h),v=e("../../state"),g=e("./Main.module.css"),y=n.interopDefault(g);r.default=(0,i.default).memo(()=>{let e=(0,s.useRecoilValue)(v.viewModeState),{assets:t}=(0,d.useUnusedAssetsQuery)(),r=(0,s.useRecoilValue)(f.clipboardState),n=(0,s.useRecoilValue)(v.mainViewState),i=(0,s.useSetRecoilState)(f.clipboardVisibleState),h=(0,s.useRecoilValue)(u.searchTermState),{translate:g}=(0,c.useIntl)(),b=(0,s.useRecoilValue)(u.availableAssetIdentitiesState),[j,S]=(0,a.useState)(b),x=(0,a.useMemo)(()=>t.filter(e=>e?.id).map(({id:e,assetSource:t})=>({assetId:e,assetSourceId:t.id})),[t]);return(0,a.useEffect)(()=>{n===v.MainViewMode.CLIPBOARD?S(r):n===v.MainViewMode.UNUSED_ASSETS?S(x):S(b)},[n,b,x,r]),j.length>0?e===v.VIEW_MODES.List?(0,o.jsx)(p.ListView,{assetIdentities:j}):(0,o.jsx)(p.ThumbnailView,{assetIdentities:j}):(0,o.jsx)("div",{className:y.default.emptyStateWrapper,children:n===v.MainViewMode.CLIPBOARD?(0,o.jsx)(l.Button,{size:"regular",style:"brand",hoverStyle:"brand",onClick:()=>i(!1),children:g("clipboard.close","Close clipboard")}):(0,o.jsx)(m.default,{loadingText:g("assetList.loading","Loading assets"),emptyText:h?.toString()?g("assetList.emptyForSearchTerm",`No assets found for "${h}"`,{searchTerm:h}):g("assetList.empty","No assets found")})})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/state":"jV1GH","@media-ui/feature-clipboard":"hHDiM","@media-ui/feature-asset-usage":"lWHpb","./index":"j5uvE","../LoadingLabel":"gEjcn","../../state":"4QYDB","./Main.module.css":"dc68i","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],gEjcn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@media-ui/core/src/state");r.default=(0,i.default).memo(({loadingText:e,emptyText:t})=>{let r=(0,s.useRecoilValue)(l.loadingState);return(0,o.jsx)("div",{className:"loadingLabel",children:r?e:t})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@media-ui/core/src/state":"jV1GH","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dc68i:[function(e,t,r){t.exports.emptyStateWrapper="LUZzHG_emptyStateWrapper"},{}],ghtGP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("classnames"),c=n.interopDefault(l),u=e("@neos-project/react-ui-components"),f=e("@media-ui/core"),d=e("@media-ui/core/src/hooks"),p=e("@media-ui/core/src/state"),h=e("@media-ui/core/src/components"),m=e("./index"),v=e("./MissingAssetActions"),g=n.interopDefault(v),y=e("./Thumbnail.module.css"),b=n.interopDefault(y);let j=(0,s.selectorFamily)({key:"ThumbnailSelection",get:e=>({get:t})=>t(p.selectedAssetIdState)?.assetId===e});r.default=(0,i.default).memo(({assetIdentity:e,onSelect:t})=>{let{translate:r}=(0,f.useIntl)(),{dummyImage:n,isAssetSelectable:i,selectionMode:l}=(0,f.useMediaUi)(),{asset:p,loading:v}=(0,d.useAssetQuery)(e),y=(0,s.useRecoilValue)(j(e.assetId)),S=(0,a.useMemo)(()=>i(p),[p,i]);return(0,o.jsxs)("figure",{className:(0,c.default)(b.default.thumbnail,!S&&b.default.disabled),title:p?.label,children:[p?.imported&&(0,o.jsx)("span",{className:b.default.label,children:r("asset.label.imported","Imported")}),(0,o.jsx)("picture",{onClick:()=>t(e,y&&!l),className:b.default.picture,children:(0,o.jsx)("img",{src:v||!p?n:p.thumbnailUrl,alt:p?.label})}),(0,o.jsx)("figcaption",{className:(0,c.default)(b.default.caption,y&&b.default.selected),children:p&&(0,o.jsxs)(o.Fragment,{children:[S&&p.file?(0,o.jsx)("img",{src:p.file.typeIcon.url,alt:p.file.typeIcon.alt}):(0,o.jsx)(u.Icon,{icon:"ban",color:"error"}),(0,o.jsx)(h.AssetLabel,{label:p.label})]})}),(0,o.jsx)("div",{className:b.default.toolBar,children:!v&&(p?(0,o.jsx)(m.AssetActions,{asset:p}):(0,o.jsx)(g.default,{assetIdentity:e}))})]})},(e,t)=>e.assetIdentity.assetId===t.assetIdentity.assetId)},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ",classnames:"hVGzI","@neos-project/react-ui-components":"hWxzt","@media-ui/core":"j3EAa","@media-ui/core/src/hooks":"b2lzd","@media-ui/core/src/state":"jV1GH","@media-ui/core/src/components":"5LFSk","./index":"j5uvE","./MissingAssetActions":"bWiVp","./Thumbnail.module.css":"kSbP5","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],kSbP5:[function(e,t,r){t.exports["button--active"]="lKBwAW_button--active",t.exports.caption="lKBwAW_caption",t.exports.disabled="lKBwAW_disabled",t.exports.label="lKBwAW_label",t.exports.picture="lKBwAW_picture",t.exports.selected="lKBwAW_selected",t.exports.thumbnail="lKBwAW_thumbnail",t.exports.toolBar="lKBwAW_toolBar"},{}],"8gC2C":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("recoil"),l=e("@media-ui/core/src/hooks"),c=e("@media-ui/feature-asset-preview"),u=e("./index"),f=e("./ThumbnailView.module.css"),d=n.interopDefault(f);r.default=(0,i.default).memo(({assetIdentities:e})=>{let t=(0,s.useSetRecoilState)(c.selectedAssetForPreviewState),r=(0,l.useSelectAsset)(),n=(0,a.useCallback)((e,n=!1)=>{n?t(e):r(e)},[t,r]);return(0,o.jsx)("section",{className:d.default.thumbnailView,children:e.map((e,t)=>(0,o.jsx)(u.Thumbnail,{assetIdentity:e,onSelect:n},t))})})},{"react/jsx-runtime":"gaGEj",react:"6uln9",recoil:"2QijJ","@media-ui/core/src/hooks":"b2lzd","@media-ui/feature-asset-preview":"gaY0P","./index":"j5uvE","./ThumbnailView.module.css":"d6Kuz","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],d6Kuz:[function(e,t,r){t.exports.thumbnailView="_5clkbq_thumbnailView"},{}],cumtn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var o=e("react/jsx-runtime"),a=e("react"),i=n.interopDefault(a),s=e("@media-ui/core/src/provider/Notify");class l extends i.default.Component{static #e=(()=>{this.contextType=s.NotifyContext})();constructor(e){super(e),this.clearConfigAndReload=()=>{localStorage.clear(),this.reload()},this.state={hasError:!1,error:null}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){this.setState({error:e}),this.context.error(e.name,e.message)}reload(){window.location.reload()}render(){let{hasError:e,error:t}=this.state;return e?(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{style:{color:"red"},children:"The media application encountered an unexpected error:"}),(0,o.jsx)("br",{}),t&&(0,o.jsx)("pre",{children:t.message}),(0,o.jsx)("br",{}),(0,o.jsx)("button",{className:"neos-button",onClick:this.reload,children:"Reload"})," or ",(0,o.jsx)("button",{className:"neos-button",onClick:this.clearConfigAndReload,children:"Clear configuration & reload"})]}):this.props.children}}r.default=l},{"react/jsx-runtime":"gaGEj",react:"6uln9","@media-ui/core/src/provider/Notify":"hVocq","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],dNd2w:[function(e,t,r){t.exports.container="rZ_p1G_container",t.exports.fullHeight="rZ_p1G_fullHeight",t.exports.gridColumn="rZ_p1G_gridColumn",t.exports.gridLeft=`rZ_p1G_gridLeft ${t.exports.gridColumn}`,t.exports.gridMain=`rZ_p1G_gridMain ${t.exports.gridColumn}`,t.exports.gridRight=`rZ_p1G_gridRight ${t.exports.gridColumn}`,t.exports.gridTop="rZ_p1G_gridTop",t.exports.selectionMode="rZ_p1G_selectionMode"},{}],aUsND:[function(e,t,r){},{}],"3DZN8":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>ec);var o=e("@fortawesome/fontawesome-svg-core"),a=e("@fortawesome/free-solid-svg-icons/faAngleLeft"),i=e("@fortawesome/free-solid-svg-icons/faAngleRight"),s=e("@fortawesome/free-solid-svg-icons/faBan"),l=e("@fortawesome/free-solid-svg-icons/faBox"),c=e("@fortawesome/free-solid-svg-icons/faCalendarAlt"),u=e("@fortawesome/free-solid-svg-icons/faCamera"),f=e("@fortawesome/free-solid-svg-icons/faCheck"),d=e("@fortawesome/free-solid-svg-icons/faChevronCircleDown"),p=e("@fortawesome/free-solid-svg-icons/faChevronCircleUp"),h=e("@fortawesome/free-solid-svg-icons/faChevronDown"),m=e("@fortawesome/free-solid-svg-icons/faChevronUp"),v=e("@fortawesome/free-solid-svg-icons/faClipboard"),g=e("@fortawesome/free-solid-svg-icons/faClipboardCheck"),y=e("@fortawesome/free-solid-svg-icons/faClipboardList"),b=e("@fortawesome/free-solid-svg-icons/faCloudDownloadAlt"),j=e("@fortawesome/free-solid-svg-icons/faDownload"),S=e("@fortawesome/free-solid-svg-icons/faExclamationCircle"),x=e("@fortawesome/free-solid-svg-icons/faExclamationTriangle"),_=e("@fortawesome/free-solid-svg-icons/faExpandAlt"),w=e("@fortawesome/free-solid-svg-icons/faExternalLinkAlt"),k=e("@fortawesome/free-solid-svg-icons/faFile"),E=e("@fortawesome/free-solid-svg-icons/faFileAudio"),T=e("@fortawesome/free-solid-svg-icons/faFileImage"),C=e("@fortawesome/free-solid-svg-icons/faFileVideo"),D=e("@fortawesome/free-solid-svg-icons/faFolder"),O=e("@fortawesome/free-solid-svg-icons/faFolderOpen"),I=e("@fortawesome/free-solid-svg-icons/faFont"),A=e("@fortawesome/free-solid-svg-icons/faGripLinesVertical"),R=e("@fortawesome/free-solid-svg-icons/faInfoCircle"),P=e("@fortawesome/free-solid-svg-icons/faImages"),N=e("@fortawesome/free-solid-svg-icons/faPencilAlt"),F=e("@fortawesome/free-solid-svg-icons/faPhotoVideo"),M=e("@fortawesome/free-solid-svg-icons/faPlus"),L=e("@fortawesome/free-solid-svg-icons/faQuestion"),B=e("@fortawesome/free-solid-svg-icons/faSpinner"),V=e("@fortawesome/free-solid-svg-icons/faSortAmountDown"),U=e("@fortawesome/free-solid-svg-icons/faSortAmountUp"),q=e("@fortawesome/free-solid-svg-icons/faSortDown"),z=e("@fortawesome/free-solid-svg-icons/faTag"),W=e("@fortawesome/free-solid-svg-icons/faTags"),H=e("@fortawesome/free-solid-svg-icons/faTh"),G=e("@fortawesome/free-solid-svg-icons/faThList"),Q=e("@fortawesome/free-solid-svg-icons/faTimes"),K=e("@fortawesome/free-solid-svg-icons/faTimesCircle"),$=e("@fortawesome/free-solid-svg-icons/faTrashAlt"),Y=e("@fortawesome/free-solid-svg-icons/faUpload"),J=e("@fortawesome/free-solid-svg-icons/faTasks"),X=e("@fortawesome/free-solid-svg-icons/faEdit"),Z=e("@fortawesome/free-solid-svg-icons/faExchangeAlt"),ee=e("@fortawesome/free-solid-svg-icons/faEquals"),et=e("@fortawesome/free-solid-svg-icons/faLink"),er=e("@fortawesome/free-solid-svg-icons/faStar"),en=e("@fortawesome/free-solid-svg-icons/faGlobe"),eo=e("@fortawesome/free-solid-svg-icons/faWeightHanging"),ea=e("@fortawesome/free-solid-svg-icons/faFilter"),ei=e("@fortawesome/free-solid-svg-icons/faSearch"),es=e("@fortawesome/free-brands-svg-icons/faNeos"),el=e("@fortawesome/free-brands-svg-icons/faCreativeCommonsZero");function ec(){(0,o.library).add(a.faAngleLeft,i.faAngleRight,s.faBan,l.faBox,c.faCalendarAlt,u.faCamera,f.faCheck,d.faChevronCircleDown,p.faChevronCircleUp,h.faChevronDown,m.faChevronUp,v.faClipboard,g.faClipboardCheck,y.faClipboardList,b.faCloudDownloadAlt,el.faCreativeCommonsZero,j.faDownload,S.faExclamationCircle,x.faExclamationTriangle,_.faExpandAlt,w.faExternalLinkAlt,k.faFile,E.faFileAudio,T.faFileImage,C.faFileVideo,D.faFolder,O.faFolderOpen,I.faFont,A.faGripLinesVertical,P.faImages,R.faInfoCircle,es.faNeos,N.faPencilAlt,F.faPhotoVideo,M.faPlus,L.faQuestion,B.faSpinner,V.faSortAmountDown,U.faSortAmountUp,q.faSortDown,z.faTag,W.faTags,H.faTh,G.faThList,Q.faTimes,K.faTimesCircle,$.faTrashAlt,Y.faUpload,J.faTasks,X.faEdit,Z.faExchangeAlt,ee.faEquals,et.faLink,er.faStar,en.faGlobe,eo.faWeightHanging,ea.faFilter,ei.faSearch)}o.config.familyPrefix="fa",o.config.replacementClass="svg-inline--fa"},{"@fortawesome/fontawesome-svg-core":"hWDUB","@fortawesome/free-solid-svg-icons/faAngleLeft":"eJTSD","@fortawesome/free-solid-svg-icons/faAngleRight":"1KG1q","@fortawesome/free-solid-svg-icons/faBan":"3q4s3","@fortawesome/free-solid-svg-icons/faBox":"irW8C","@fortawesome/free-solid-svg-icons/faCalendarAlt":"Bv8oJ","@fortawesome/free-solid-svg-icons/faCamera":"hP1HQ","@fortawesome/free-solid-svg-icons/faCheck":"1u3eU","@fortawesome/free-solid-svg-icons/faChevronCircleDown":"fSQDi","@fortawesome/free-solid-svg-icons/faChevronCircleUp":"76CJO","@fortawesome/free-solid-svg-icons/faChevronDown":"1VLaR","@fortawesome/free-solid-svg-icons/faChevronUp":"eN7cW","@fortawesome/free-solid-svg-icons/faClipboard":"ibL2F","@fortawesome/free-solid-svg-icons/faClipboardCheck":"kNAjL","@fortawesome/free-solid-svg-icons/faClipboardList":"eYbrH","@fortawesome/free-solid-svg-icons/faCloudDownloadAlt":"k2KBj","@fortawesome/free-solid-svg-icons/faDownload":"jnaX9","@fortawesome/free-solid-svg-icons/faExclamationCircle":"8zxAv","@fortawesome/free-solid-svg-icons/faExclamationTriangle":"2Aw4v","@fortawesome/free-solid-svg-icons/faExpandAlt":"i6kKv","@fortawesome/free-solid-svg-icons/faExternalLinkAlt":"9hrcn","@fortawesome/free-solid-svg-icons/faFile":"gCoxl","@fortawesome/free-solid-svg-icons/faFileAudio":"9zstr","@fortawesome/free-solid-svg-icons/faFileImage":"do6bX","@fortawesome/free-solid-svg-icons/faFileVideo":"5j9YR","@fortawesome/free-solid-svg-icons/faFolder":"hKVba","@fortawesome/free-solid-svg-icons/faFolderOpen":"iJZUd","@fortawesome/free-solid-svg-icons/faFont":"fqP9x","@fortawesome/free-solid-svg-icons/faGripLinesVertical":"ljzwn","@fortawesome/free-solid-svg-icons/faInfoCircle":"gJxfT","@fortawesome/free-solid-svg-icons/faImages":"g2xg7","@fortawesome/free-solid-svg-icons/faPencilAlt":"6fMXc","@fortawesome/free-solid-svg-icons/faPhotoVideo":"dB2iI","@fortawesome/free-solid-svg-icons/faPlus":"9qq97","@fortawesome/free-solid-svg-icons/faQuestion":"3lOe8","@fortawesome/free-solid-svg-icons/faSpinner":"11XPI","@fortawesome/free-solid-svg-icons/faSortAmountDown":"9zzLg","@fortawesome/free-solid-svg-icons/faSortAmountUp":"gcoac","@fortawesome/free-solid-svg-icons/faSortDown":"f8rdo","@fortawesome/free-solid-svg-icons/faTag":"2mxku","@fortawesome/free-solid-svg-icons/faTags":"fUQBW","@fortawesome/free-solid-svg-icons/faTh":"5TyUF","@fortawesome/free-solid-svg-icons/faThList":"7ePrD","@fortawesome/free-solid-svg-icons/faTimes":"83Vyx","@fortawesome/free-solid-svg-icons/faTimesCircle":"4lnvP","@fortawesome/free-solid-svg-icons/faTrashAlt":"2Hd3r","@fortawesome/free-solid-svg-icons/faUpload":"rQed8","@fortawesome/free-solid-svg-icons/faTasks":"45RWv","@fortawesome/free-solid-svg-icons/faEdit":"4b2Hz","@fortawesome/free-solid-svg-icons/faExchangeAlt":"fKute","@fortawesome/free-solid-svg-icons/faEquals":"aGt9j","@fortawesome/free-solid-svg-icons/faLink":"gkeru","@fortawesome/free-solid-svg-icons/faStar":"kPS6Z","@fortawesome/free-solid-svg-icons/faGlobe":"2Ys2o","@fortawesome/free-solid-svg-icons/faWeightHanging":"dSqSM","@fortawesome/free-solid-svg-icons/faFilter":"bZIh2","@fortawesome/free-solid-svg-icons/faSearch":"1xbTi","@fortawesome/free-brands-svg-icons/faNeos":"jHzbx","@fortawesome/free-brands-svg-icons/faCreativeCommonsZero":"9fZDp","@parcel/transformer-js/src/esmodule-helpers.js":"k3151"}],eJTSD:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="angle-left",o=[],a="f104",i="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z";r.definition={prefix:"fas",iconName:n,icon:[256,512,o,a,i]},r.faAngleLeft=r.definition,r.prefix="fas",r.iconName=n,r.width=256,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1KG1q":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="angle-right",o=[],a="f105",i="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z";r.definition={prefix:"fas",iconName:n,icon:[256,512,o,a,i]},r.faAngleRight=r.definition,r.prefix="fas",r.iconName=n,r.width=256,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"3q4s3":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f05e",a="M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z";r.definition={prefix:"fas",iconName:"ban",icon:[512,512,n,o,a]},r.faBan=r.definition,r.prefix="fas",r.iconName="ban",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],irW8C:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f466",a="M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z";r.definition={prefix:"fas",iconName:"box",icon:[512,512,n,o,a]},r.faBox=r.definition,r.prefix="fas",r.iconName="box",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],Bv8oJ:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="calendar-alt",o=[],a="f073",i="M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faCalendarAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],hP1HQ:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="camera",o=[],a="f030",i="M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faCamera=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1u3eU":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="check",o=[],a="f00c",i="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faCheck=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],fSQDi:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-circle-down",o=[],a="f13a",i="M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faChevronCircleDown=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"76CJO":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-circle-up",o=[],a="f139",i="M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faChevronCircleUp=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1VLaR":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-down",o=[],a="f078",i="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faChevronDown=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],eN7cW:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="chevron-up",o=[],a="f077",i="M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faChevronUp=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],ibL2F:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="clipboard",o=[],a="f328",i="M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faClipboard=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],kNAjL:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="clipboard-check",o=[],a="f46c",i="M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faClipboardCheck=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],eYbrH:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="clipboard-list",o=[],a="f46d",i="M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faClipboardList=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],k2KBj:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="cloud-download-alt",o=[],a="f381",i="M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z";r.definition={prefix:"fas",iconName:n,icon:[640,512,o,a,i]},r.faCloudDownloadAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=640,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],jnaX9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="download",o=[],a="f019",i="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faDownload=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"8zxAv":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="exclamation-circle",o=[],a="f06a",i="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faExclamationCircle=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2Aw4v":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="exclamation-triangle",o=[],a="f071",i="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faExclamationTriangle=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],i6kKv:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="expand-alt",o=[],a="f424",i="M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faExpandAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9hrcn":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="external-link-alt",o=[],a="f35d",i="M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faExternalLinkAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gCoxl:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file",o=[],a="f15b",i="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFile=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9zstr":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file-audio",o=[],a="f1c7",i="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFileAudio=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],do6bX:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file-image",o=[],a="f1c5",i="M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFileImage=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"5j9YR":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="file-video",o=[],a="f1c8",i="M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faFileVideo=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],hKVba:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="folder",o=[],a="f07b",i="M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faFolder=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],iJZUd:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="folder-open",o=[],a="f07c",i="M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faFolderOpen=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],fqP9x:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="font",o=[],a="f031",i="M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faFont=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],ljzwn:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="grip-lines-vertical",o=[],a="f7a5",i="M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z";r.definition={prefix:"fas",iconName:n,icon:[256,512,o,a,i]},r.faGripLinesVertical=r.definition,r.prefix="fas",r.iconName=n,r.width=256,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gJxfT:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="info-circle",o=[],a="f05a",i="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faInfoCircle=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],g2xg7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="images",o=[],a="f302",i="M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faImages=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"6fMXc":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="pencil-alt",o=[],a="f303",i="M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faPencilAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],dB2iI:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="photo-video",o=[],a="f87c",i="M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z";r.definition={prefix:"fas",iconName:n,icon:[640,512,o,a,i]},r.faPhotoVideo=r.definition,r.prefix="fas",r.iconName=n,r.width=640,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9qq97":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="plus",o=[],a="f067",i="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faPlus=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"3lOe8":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="question",o=[],a="f128",i="M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z";r.definition={prefix:"fas",iconName:n,icon:[384,512,o,a,i]},r.faQuestion=r.definition,r.prefix="fas",r.iconName=n,r.width=384,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"11XPI":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="spinner",o=[],a="f110",i="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSpinner=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9zzLg":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="sort-amount-down",o=[],a="f160",i="M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSortAmountDown=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gcoac:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="sort-amount-up",o=[],a="f161",i="M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSortAmountUp=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],f8rdo:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="sort-down",o=[],a="f0dd",i="M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z";r.definition={prefix:"fas",iconName:n,icon:[320,512,o,a,i]},r.faSortDown=r.definition,r.prefix="fas",r.iconName=n,r.width=320,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2mxku":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f02b",a="M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z";r.definition={prefix:"fas",iconName:"tag",icon:[512,512,n,o,a]},r.faTag=r.definition,r.prefix="fas",r.iconName="tag",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],fUQBW:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="tags",o=[],a="f02c",i="M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z";r.definition={prefix:"fas",iconName:n,icon:[640,512,o,a,i]},r.faTags=r.definition,r.prefix="fas",r.iconName=n,r.width=640,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"5TyUF":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=[],o="f00a",a="M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z";r.definition={prefix:"fas",iconName:"th",icon:[512,512,n,o,a]},r.faTh=r.definition,r.prefix="fas",r.iconName="th",r.width=512,r.height=512,r.ligatures=n,r.unicode=o,r.svgPathData=a},{}],"7ePrD":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="th-list",o=[],a="f00b",i="M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faThList=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"83Vyx":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="times",o=[],a="f00d",i="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z";r.definition={prefix:"fas",iconName:n,icon:[352,512,o,a,i]},r.faTimes=r.definition,r.prefix="fas",r.iconName=n,r.width=352,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"4lnvP":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="times-circle",o=[],a="f057",i="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faTimesCircle=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2Hd3r":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="trash-alt",o=[],a="f2ed",i="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faTrashAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],rQed8:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="upload",o=[],a="f093",i="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faUpload=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"45RWv":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="tasks",o=[],a="f0ae",i="M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faTasks=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"4b2Hz":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="edit",o=[],a="f044",i="M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faEdit=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],fKute:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="exchange-alt",o=[],a="f362",i="M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faExchangeAlt=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],aGt9j:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="equals",o=[],a="f52c",i="M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z";r.definition={prefix:"fas",iconName:n,icon:[448,512,o,a,i]},r.faEquals=r.definition,r.prefix="fas",r.iconName=n,r.width=448,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],gkeru:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="link",o=[],a="f0c1",i="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faLink=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],kPS6Z:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="star",o=[],a="f005",i="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z";r.definition={prefix:"fas",iconName:n,icon:[576,512,o,a,i]},r.faStar=r.definition,r.prefix="fas",r.iconName=n,r.width=576,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"2Ys2o":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="globe",o=[],a="f0ac",i="M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z";r.definition={prefix:"fas",iconName:n,icon:[496,512,o,a,i]},r.faGlobe=r.definition,r.prefix="fas",r.iconName=n,r.width=496,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],dSqSM:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="weight-hanging",o=[],a="f5cd",i="M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faWeightHanging=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],bZIh2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="filter",o=[],a="f0b0",i="M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faFilter=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"1xbTi":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="search",o=[],a="f002",i="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z";r.definition={prefix:"fas",iconName:n,icon:[512,512,o,a,i]},r.faSearch=r.definition,r.prefix="fas",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],jHzbx:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="neos",o=[],a="f612",i="M415.44 512h-95.11L212.12 357.46v91.1L125.69 512H28V29.82L68.47 0h108.05l123.74 176.13V63.45L386.69 0h97.69v461.5zM38.77 35.27V496l72-52.88V194l215.5 307.64h84.79l52.35-38.17h-78.27L69 13zm82.54 466.61l80-58.78v-101l-79.76-114.4v220.94L49 501.89h72.34zM80.63 10.77l310.6 442.57h82.37V10.77h-79.75v317.56L170.91 10.77zM311 191.65l72 102.81V15.93l-72 53v122.72z";r.definition={prefix:"fab",iconName:n,icon:[512,512,o,a,i]},r.faNeos=r.definition,r.prefix="fab",r.iconName=n,r.width=512,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}],"9fZDp":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="creative-commons-zero",o=[],a="f4f3",i="M247.6 8C389.4 8 496 118.1 496 256c0 147.1-118.5 248-248.4 248C113.6 504 0 394.5 0 256 0 123.1 104.7 8 247.6 8zm.8 44.7C130.2 52.7 44.7 150.6 44.7 256c0 109.8 91.2 202.8 203.7 202.8 103.2 0 202.8-81.1 202.8-202.8.1-113.8-90.2-203.3-202.8-203.3zm-.4 60.5c-81.9 0-102.5 77.3-102.5 142.8 0 65.5 20.6 142.8 102.5 142.8S350.5 321.5 350.5 256c0-65.5-20.6-142.8-102.5-142.8zm0 53.9c3.3 0 6.4.5 9.2 1.2 5.9 5.1 8.8 12.1 3.1 21.9l-54.5 100.2c-1.7-12.7-1.9-25.1-1.9-34.4 0-28.8 2-88.9 44.1-88.9zm40.8 46.2c2.9 15.4 3.3 31.4 3.3 42.7 0 28.9-2 88.9-44.1 88.9-13.5 0-32.6-7.7-20.1-26.4l60.9-105.2z";r.definition={prefix:"fab",iconName:n,icon:[496,512,o,a,i]},r.faCreativeCommonsZero=r.definition,r.prefix="fab",r.iconName=n,r.width=496,r.height=512,r.ligatures=o,r.unicode=a,r.svgPathData=i},{}]},["9M0Dq"],"9M0Dq","parcelRequirebe75"); //# sourceMappingURL=main.bundle.js.map diff --git a/Resources/Public/Assets/main.bundle.js.map b/Resources/Public/Assets/main.bundle.js.map index b35a0d343..cbad15168 100644 --- a/Resources/Public/Assets/main.bundle.js.map +++ b/Resources/Public/Assets/main.bundle.js.map @@ -1 +1 @@ -{"mappings":"C,A,S,C,C,C,C,C,C,C,C,C,E,I,E,A,a,O,W,W,A,a,O,K,K,A,a,O,O,O,A,a,O,O,O,C,E,E,A,Y,O,C,C,E,E,C,C,E,C,E,E,O,C,E,E,A,a,O,Q,A,Y,O,O,S,O,Q,K,Q,S,E,C,C,C,E,G,C,C,C,E,C,C,G,C,C,C,E,C,C,I,E,A,Y,O,C,C,E,E,C,C,E,C,G,C,G,E,O,E,E,C,G,G,E,O,E,E,C,G,G,G,A,U,O,E,O,E,G,I,E,A,M,uB,E,I,O,E,K,mB,C,C,E,Q,S,C,E,I,E,C,C,E,C,E,C,E,C,O,A,M,E,E,C,E,E,M,C,E,I,E,C,C,E,C,I,E,O,G,C,C,E,C,E,C,K,E,Q,E,E,E,Q,I,C,C,O,C,C,E,C,Q,S,E,C,E,I,E,E,Q,G,M,A,C,I,E,C,E,E,E,C,C,E,gB,C,E,E,O,S,C,E,I,C,G,E,I,C,O,E,I,C,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,gBAAiB,qBACjB,gBAAiB,qBACjB,QAAS,aACT,QAAW,mBACX,OAAU,oBACV,WAAc,wBACd,WAAc,YACd,YAAe,0BACf,gBAAiB,2BACjB,gBAAiB,6BACjB,gBAAiB,0BACjB,gBAAiB,oCACjB,gBAAiB,0BACjB,aAAc,mBACd,gBAAiB,qBACjB,cAAe,mBACf,OAAU,oBACV,iBAAkB,sBAClB,kBAAmB,sBACnB,oBAAqB,sBACrB,cAAe,2BACf,cAAe,2BACf,eAAgB,4BAChB,YAAa,yBACb,MAAS,mBACT,UAAW,mBACX,IAAO,mBACP,eAAgB,mBAChB,SAAY,cACZ,aAAc,gBACd,IAAO,qBACP,gBAAiB,qBACjB,SAAU,cACV,MAAS,sBACT,UAAW,sBACX,eAAgB,eAChB,MAAS,iBACT,uBAAwB,sBACxB,QAAW,8BACX,OAAU,gBACV,iBAAkB,yBAClB,iBAAkB,sBAClB,IAAO,kBACP,sBAAuB,qBACvB,GAAM,sBACN,YAAa,qBACb,IAAO,kBACP,eAAgB,iBAChB,iBAAkB,gBACtB,EAIM,EAAgC,CAClC,QACA,kBACA,WACA,MACA,WACA,iBACA,UACA,SACA,aACA,SACA,UACA,YACA,gBACA,UACA,YACA,gBACA,QACA,QACA,YACA,aACA,UACA,eACA,UACA,SACA,MACA,WACA,UACA,iBACA,YACA,YACA,UACA,OACA,YACA,aACA,UACA,YACA,YACA,cACA,MACA,mBACA,aACA,gBACA,UACA,eACA,iBACA,cACA,SACA,gBACA,YACA,YACA,UACA,aACA,SACA,aACA,aACA,eACA,UACA,WACA,iBACA,SACA,SACA,mBACA,sBACA,sBACA,yBACA,yBACA,sBACA,sBACA,0BACA,yBACA,sBACA,4BACA,iCACA,yBACA,OACA,WACA,aACA,UACA,WACA,YACA,YACA,UACA,aACA,OACA,gBACA,UACA,YACA,SACA,SACA,gBACA,WACA,kBACA,UACA,SACA,SACA,aACA,OACA,OACA,YACA,OACA,QACA,SACA,SACA,SACA,WACA,OACA,eACA,WACA,aACA,qBACA,kBACA,UACA,cACA,kBACA,aACA,SACA,YACA,MACA,eACA,mBACA,oBACA,yBACA,YACA,eACA,eACA,mBACA,WACA,aACA,iBACA,UACA,UACA,oBACA,kBACA,aACA,KACA,YACA,MACA,aACA,SACA,aACA,gBACA,YACA,SACA,SACA,QACA,UACA,SACA,YACA,cACA,SACA,eACA,cACA,cACA,gBACA,qBACA,gBACA,WACA,OACA,WACA,QACA,OACA,cACA,qBACA,aACA,OACA,gBACA,QACA,WACA,SACA,QACA,QACA,UACA,OACA,YACA,oBACA,UACA,SACA,cACA,OACA,aACA,UACA,QACA,SACA,KACA,YACA,WACA,SACA,UACA,SACA,cACA,gBACA,SACA,UACA,SACA,gBACA,UACA,OACA,OACA,WACA,cACA,SACA,QACA,OACA,UACA,YACA,cACA,WACA,WACA,SACA,UACA,SACA,WACA,QACA,SACA,WACA,YACA,MACA,WACA,SACA,OACA,SACA,UACA,OACA,SACA,kBACA,OACA,UACA,MACA,MACA,cACA,gBACA,uBACA,eACA,WACA,SACA,QACA,gBACA,MACA,QACA,YACA,SACA,UACA,SACA,YACA,cACA,oBACA,mBACA,MACA,aACA,iBACA,iBACA,gBACA,YACA,cACA,mBACA,cACA,eACA,SACA,SACA,KACA,YACA,QACA,YACA,UACA,QACA,SACA,QACA,YACA,SACA,eACA,gBACA,UACA,SACA,SACA,eACA,YACA,MACA,aACA,UACA,SACA,OACA,SACA,SACA,cACA,WACA,SACA,eACA,eACA,WACA,cACA,UACA,OACA,WACA,QACA,QACA,aACA,aACA,WACA,iBACA,kBACA,aACA,UACA,UACA,cACA,iBACA,iBACA,aACA,QACA,eACA,eACA,eACA,SACA,SACA,WACA,eACA,cACA,qBACA,cACA,SACA,YACA,WACA,iBACA,gBACA,UACA,YACA,mBACA,SACA,cACA,SACA,gBACA,SACA,UACA,iBACA,QACA,OACA,QACA,cACA,UACA,MACA,WACA,SACA,UACA,SACA,gBACA,QACA,QACA,eACA,UACA,OACA,KACA,MACA,QACA,SACA,QACA,SACA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AAW,OAGX,EAAY,EAAE,CACd,EAAU,OACV,EAAc,yWAElB,CAAA,EAAQ,WAAa,CACnB,OATW,MAUX,SAAU,EACV,KAAM,CATI,IACC,IAWT,EACA,EACA,EACD,AAAA,EAEH,EAAQ,OAAS,EAAQ,WACzB,EAAQ,OApBK,MAqBb,EAAQ,SAAW,EACnB,EAAQ,MApBI,IAqBZ,EAAQ,OApBK,IAqBb,EAAQ,UAAY,EACpB,EAAQ,QAAU,EAClB,EAAQ,YAAc,C,E,C,E,C,Q,C,S,C,C,C,C,C,EC5BtB,aACA,OAAO,eAAe,EAAS,aAAc,CAAE,MAAO,CAAA,CAAK,GAE3D,IAAI,EAAW,wBAGX,EAAY,EAAE,CACd,EAAU,OACV,EAAc,0kBAElB,CAAA,EAAQ,WAAa,CACnB,OATW,MAUX,SAAU,EACV,KAAM,CATI,IACC,IAWT,EACA,EACA,EACD,AAAA,EAEH,EAAQ,sBAAwB,EAAQ,WACxC,EAAQ,OApBK,MAqBb,EAAQ,SAAW,EACnB,EAAQ,MApBI,IAqBZ,EAAQ,OApBK,IAqBb,EAAQ,UAAY,EACpB,EAAQ,QAAU,EAClB,EAAQ,YAAc,C,E,C,E,E,C,Q,C,Q","sources":["","Resources/Private/JavaScript/media-module/src/index.tsx","node_modules/react/jsx-runtime.js","node_modules/react/cjs/react-jsx-runtime.production.min.js","node_modules/object-assign/index.js","node_modules/react/index.js","node_modules/react/cjs/react.production.min.js","node_modules/react-dom/index.js","node_modules/react-dom/cjs/react-dom.production.min.js","node_modules/scheduler/index.js","node_modules/scheduler/cjs/scheduler.production.min.js","node_modules/react-modal/lib/index.js","node_modules/react-modal/lib/components/Modal.js","node_modules/prop-types/index.js","node_modules/prop-types/factoryWithThrowingShims.js","node_modules/prop-types/lib/ReactPropTypesSecret.js","node_modules/react-modal/lib/components/ModalPortal.js","node_modules/react-modal/lib/helpers/focusManager.js","node_modules/react-modal/lib/helpers/tabbable.js","node_modules/react-modal/lib/helpers/scopeTab.js","node_modules/react-modal/lib/helpers/ariaAppHider.js","node_modules/warning/warning.js","node_modules/react-modal/lib/helpers/safeHTMLElement.js","node_modules/exenv/index.js","node_modules/react-modal/lib/helpers/classList.js","node_modules/react-modal/lib/helpers/portalOpenInstances.js","node_modules/react-modal/lib/helpers/bodyTrap.js","node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","node_modules/@parcel/transformer-js/src/esmodule-helpers.js","node_modules/react-dnd/dist/esm/index.js","node_modules/react-dnd/dist/esm/common/index.js","node_modules/react-dnd/dist/esm/common/DndContext.js","node_modules/dnd-core/dist/esm/index.js","node_modules/dnd-core/dist/esm/interfaces.js","node_modules/dnd-core/dist/esm/factories.js","node_modules/dnd-core/dist/esm/DragDropManagerImpl.js","node_modules/redux/es/redux.js","node_modules/redux/node_modules/@babel/runtime/helpers/esm/objectSpread2.js","node_modules/redux/node_modules/@babel/runtime/helpers/esm/defineProperty.js","node_modules/dnd-core/dist/esm/reducers/index.js","node_modules/dnd-core/dist/esm/reducers/dragOffset.js","node_modules/dnd-core/dist/esm/actions/dragDrop/index.js","node_modules/dnd-core/dist/esm/actions/dragDrop/beginDrag.js","node_modules/@react-dnd/invariant/dist/invariant.esm.js","node_modules/@react-dnd/invariant/src/index.ts","node_modules/dnd-core/dist/esm/actions/dragDrop/local/setClientOffset.js","node_modules/dnd-core/dist/esm/actions/dragDrop/types.js","node_modules/dnd-core/dist/esm/utils/js_utils.js","node_modules/dnd-core/dist/esm/actions/dragDrop/publishDragSource.js","node_modules/dnd-core/dist/esm/actions/dragDrop/hover.js","node_modules/dnd-core/dist/esm/utils/matchesType.js","node_modules/dnd-core/dist/esm/actions/dragDrop/drop.js","node_modules/dnd-core/dist/esm/actions/dragDrop/endDrag.js","node_modules/dnd-core/dist/esm/utils/equality.js","node_modules/dnd-core/dist/esm/reducers/dragOperation.js","node_modules/dnd-core/dist/esm/actions/registry.js","node_modules/dnd-core/dist/esm/reducers/refCount.js","node_modules/dnd-core/dist/esm/reducers/dirtyHandlerIds.js","node_modules/dnd-core/dist/esm/utils/dirtiness.js","node_modules/dnd-core/dist/esm/reducers/stateId.js","node_modules/dnd-core/dist/esm/DragDropMonitorImpl.js","node_modules/dnd-core/dist/esm/utils/coords.js","node_modules/dnd-core/dist/esm/HandlerRegistryImpl.js","node_modules/dnd-core/dist/esm/utils/getNextUniqueId.js","node_modules/dnd-core/dist/esm/contracts.js","node_modules/@react-dnd/asap/dist/esm/browser/index.js","node_modules/@react-dnd/asap/dist/esm/browser/asap.js","node_modules/@react-dnd/asap/dist/esm/browser/raw.js","node_modules/react-dnd/dist/esm/common/DndProvider.js","node_modules/react-dnd/dist/esm/hooks/index.js","node_modules/react-dnd/dist/esm/hooks/useDragLayer.js","node_modules/react-dnd/dist/esm/hooks/internal/useDragDropManager.js","node_modules/react-dnd/dist/esm/hooks/internal/useCollector.js","node_modules/@react-dnd/shallowequal/dist/shallowequal.esm.js","node_modules/@react-dnd/shallowequal/src/index.ts","node_modules/react-dnd/dist/esm/hooks/internal/useIsomorphicLayoutEffect.js","node_modules/react-dnd/dist/esm/decorators/index.js","node_modules/react-dnd/dist/esm/decorators/DragSource.js","node_modules/react-dnd/dist/esm/utils/js_utils.js","node_modules/react-dnd/dist/esm/decorators/utils.js","node_modules/react-dnd/dist/esm/decorators/decorateHandler.js","node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","node_modules/react-is/index.js","node_modules/react-is/cjs/react-is.production.min.js","node_modules/react-dnd/dist/esm/decorators/disposables.js","node_modules/react-dnd/dist/esm/common/registration.js","node_modules/react-dnd/dist/esm/common/DragSourceMonitorImpl.js","node_modules/react-dnd/dist/esm/common/SourceConnector.js","node_modules/react-dnd/dist/esm/common/wrapConnectorHooks.js","node_modules/react-dnd/dist/esm/utils/cloneWithRef.js","node_modules/react-dnd/dist/esm/utils/isRef.js","node_modules/react-dnd/dist/esm/utils/isValidType.js","node_modules/react-dnd/dist/esm/decorators/createSourceFactory.js","node_modules/react-dnd/dist/esm/decorators/DropTarget.js","node_modules/react-dnd/dist/esm/common/TargetConnector.js","node_modules/react-dnd/dist/esm/common/DropTargetMonitorImpl.js","node_modules/react-dnd/dist/esm/decorators/createTargetFactory.js","node_modules/react-dnd-html5-backend/dist/esm/index.js","node_modules/react-dnd-html5-backend/dist/esm/HTML5Backend.js","node_modules/react-dnd-html5-backend/dist/esm/EnterLeaveCounter.js","node_modules/react-dnd-html5-backend/dist/esm/utils/js_utils.js","node_modules/react-dnd-html5-backend/dist/esm/BrowserDetector.js","node_modules/react-dnd-html5-backend/dist/esm/OffsetUtils.js","node_modules/react-dnd-html5-backend/dist/esm/MonotonicInterpolant.js","node_modules/react-dnd-html5-backend/dist/esm/NativeDragSources/index.js","node_modules/react-dnd-html5-backend/dist/esm/NativeDragSources/nativeTypesConfig.js","node_modules/react-dnd-html5-backend/dist/esm/NativeTypes.js","node_modules/react-dnd-html5-backend/dist/esm/NativeDragSources/getDataFromDataTransfer.js","node_modules/react-dnd-html5-backend/dist/esm/NativeDragSources/NativeDragSource.js","node_modules/react-dnd-html5-backend/dist/esm/OptionsReader.js","node_modules/react-dnd-html5-backend/dist/esm/getEmptyImage.js","node_modules/@apollo/client/index.js","node_modules/@apollo/src/index.ts","node_modules/@apollo/client/core/index.js","node_modules/@apollo/src/core/index.ts","node_modules/@apollo/client/core/ApolloClient.js","node_modules/@apollo/src/core/ApolloClient.ts","node_modules/@apollo/client/node_modules/tslib/tslib.es6.js","node_modules/@apollo/client/node_modules/ts-invariant/lib/invariant.esm.js","node_modules/@apollo/client/node_modules/ts-invariant/src/invariant.ts","node_modules/process/browser.js","node_modules/@apollo/client/node_modules/ts-invariant/node_modules/tslib/tslib.es6.js","node_modules/@apollo/client/link/core/index.js","node_modules/@apollo/src/link/core/index.ts","node_modules/@apollo/client/link/core/empty.js","node_modules/@apollo/src/link/core/empty.ts","node_modules/@apollo/client/link/core/ApolloLink.js","node_modules/@apollo/src/link/core/ApolloLink.ts","node_modules/@apollo/client/utilities/index.js","node_modules/@apollo/src/utilities/index.ts","node_modules/@apollo/client/utilities/graphql/directives.js","node_modules/@apollo/src/utilities/graphql/directives.ts","node_modules/graphql/index.mjs","node_modules/graphql/language/index.mjs","node_modules/graphql/language/source.mjs","node_modules/graphql/polyfills/symbols.mjs","node_modules/graphql/jsutils/inspect.mjs","node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs","node_modules/graphql/jsutils/devAssert.mjs","node_modules/graphql/jsutils/instanceOf.mjs","node_modules/graphql/language/location.mjs","node_modules/graphql/language/printLocation.mjs","node_modules/graphql/language/kinds.mjs","node_modules/graphql/language/tokenKind.mjs","node_modules/graphql/language/lexer.mjs","node_modules/graphql/error/syntaxError.mjs","node_modules/graphql/error/GraphQLError.mjs","node_modules/graphql/jsutils/isObjectLike.mjs","node_modules/graphql/language/ast.mjs","node_modules/graphql/jsutils/defineInspect.mjs","node_modules/graphql/jsutils/invariant.mjs","node_modules/graphql/language/blockString.mjs","node_modules/graphql/language/parser.mjs","node_modules/graphql/language/directiveLocation.mjs","node_modules/graphql/language/printer.mjs","node_modules/graphql/language/visitor.mjs","node_modules/@apollo/client/utilities/graphql/fragments.js","node_modules/@apollo/src/utilities/graphql/fragments.ts","node_modules/@apollo/client/utilities/graphql/getFromAST.js","node_modules/@apollo/src/utilities/graphql/getFromAST.ts","node_modules/@apollo/client/utilities/graphql/storeUtils.js","node_modules/@apollo/src/utilities/graphql/storeUtils.ts","node_modules/fast-json-stable-stringify/index.js","node_modules/@apollo/client/utilities/graphql/transform.js","node_modules/@apollo/src/utilities/graphql/transform.ts","node_modules/@apollo/client/utilities/common/filterInPlace.js","node_modules/@apollo/src/utilities/common/filterInPlace.ts","node_modules/@apollo/client/utilities/policies/pagination.js","node_modules/@apollo/src/utilities/policies/pagination.ts","node_modules/@apollo/client/utilities/common/mergeDeep.js","node_modules/@apollo/src/utilities/common/mergeDeep.ts","node_modules/@apollo/client/utilities/observables/Observable.js","node_modules/@apollo/src/utilities/observables/Observable.ts","node_modules/zen-observable/index.js","node_modules/zen-observable/lib/Observable.js","node_modules/symbol-observable/es/index.js","node_modules/symbol-observable/es/ponyfill.js","node_modules/@apollo/client/utilities/common/cloneDeep.js","node_modules/@apollo/src/utilities/common/cloneDeep.ts","node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js","node_modules/@apollo/src/utilities/common/maybeDeepFreeze.ts","node_modules/@apollo/client/utilities/common/environment.js","node_modules/@apollo/src/utilities/common/environment.ts","node_modules/@apollo/client/utilities/observables/iteration.js","node_modules/@apollo/src/utilities/observables/iteration.ts","node_modules/@apollo/client/utilities/observables/asyncMap.js","node_modules/@apollo/src/utilities/observables/asyncMap.ts","node_modules/@apollo/client/utilities/observables/Concast.js","node_modules/@apollo/src/utilities/observables/Concast.ts","node_modules/@apollo/client/utilities/observables/subclassing.js","node_modules/@apollo/src/utilities/observables/subclassing.ts","node_modules/@apollo/client/utilities/common/arrays.js","node_modules/@apollo/src/utilities/common/arrays.ts","node_modules/@apollo/client/utilities/common/errorHandling.js","node_modules/@apollo/src/utilities/common/errorHandling.ts","node_modules/@apollo/client/utilities/common/canUse.js","node_modules/@apollo/src/utilities/common/canUse.ts","node_modules/@apollo/client/utilities/common/compact.js","node_modules/@apollo/src/utilities/common/compact.ts","node_modules/@apollo/client/link/utils/index.js","node_modules/@apollo/src/link/utils/index.ts","node_modules/@apollo/client/link/utils/fromError.js","node_modules/@apollo/src/link/utils/fromError.ts","node_modules/@apollo/client/link/utils/toPromise.js","node_modules/@apollo/src/link/utils/toPromise.ts","node_modules/@apollo/client/link/utils/fromPromise.js","node_modules/@apollo/src/link/utils/fromPromise.ts","node_modules/@apollo/client/link/utils/throwServerError.js","node_modules/@apollo/src/link/utils/throwServerError.ts","node_modules/@apollo/client/link/utils/validateOperation.js","node_modules/@apollo/src/link/utils/validateOperation.ts","node_modules/@apollo/client/link/utils/createOperation.js","node_modules/@apollo/src/link/utils/createOperation.ts","node_modules/@apollo/client/link/utils/transformOperation.js","node_modules/@apollo/src/link/utils/transformOperation.ts","node_modules/@apollo/client/link/core/from.js","node_modules/@apollo/src/link/core/from.ts","node_modules/@apollo/client/link/core/split.js","node_modules/@apollo/src/link/core/split.ts","node_modules/@apollo/client/link/core/concat.js","node_modules/@apollo/src/link/core/concat.ts","node_modules/@apollo/client/link/core/execute.js","node_modules/@apollo/src/link/core/execute.ts","node_modules/@apollo/src/link/core/types.ts","node_modules/@apollo/client/version.js","node_modules/@apollo/src/version.ts","node_modules/@apollo/client/link/http/index.js","node_modules/@apollo/src/link/http/index.ts","node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js","node_modules/@apollo/src/link/http/parseAndCheckHttpResponse.ts","node_modules/@apollo/client/link/http/serializeFetchParameter.js","node_modules/@apollo/src/link/http/serializeFetchParameter.ts","node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js","node_modules/@apollo/src/link/http/selectHttpOptionsAndBody.ts","node_modules/@apollo/client/link/http/checkFetcher.js","node_modules/@apollo/src/link/http/checkFetcher.ts","node_modules/@apollo/client/link/http/createSignalIfSupported.js","node_modules/@apollo/src/link/http/createSignalIfSupported.ts","node_modules/@apollo/client/link/http/selectURI.js","node_modules/@apollo/src/link/http/selectURI.ts","node_modules/@apollo/client/link/http/createHttpLink.js","node_modules/@apollo/src/link/http/createHttpLink.ts","node_modules/@apollo/client/link/http/rewriteURIForGET.js","node_modules/@apollo/src/link/http/rewriteURIForGET.ts","node_modules/@apollo/client/link/http/HttpLink.js","node_modules/@apollo/src/link/http/HttpLink.ts","node_modules/@apollo/client/core/QueryManager.js","node_modules/@apollo/src/core/QueryManager.ts","node_modules/@wry/equality/lib/equality.esm.js","node_modules/@wry/equality/src/equality.ts","node_modules/@apollo/client/errors/index.js","node_modules/@apollo/src/errors/index.ts","node_modules/@apollo/client/core/ObservableQuery.js","node_modules/@apollo/src/core/ObservableQuery.ts","node_modules/@apollo/client/core/networkStatus.js","node_modules/@apollo/src/core/networkStatus.ts","node_modules/@apollo/client/core/Reobserver.js","node_modules/@apollo/src/core/Reobserver.ts","node_modules/@apollo/client/core/LocalState.js","node_modules/@apollo/src/core/LocalState.ts","node_modules/@apollo/client/cache/index.js","node_modules/@apollo/src/cache/index.ts","node_modules/@apollo/client/cache/core/cache.js","node_modules/@apollo/src/cache/core/cache.ts","node_modules/optimism/lib/bundle.esm.js","node_modules/optimism/src/cache.ts","node_modules/optimism/src/context.ts","node_modules/optimism/src/helpers.ts","node_modules/optimism/src/entry.ts","node_modules/optimism/src/dep.ts","node_modules/optimism/src/index.ts","node_modules/@wry/trie/lib/trie.esm.js","node_modules/@wry/trie/src/trie.ts","node_modules/@wry/context/lib/context.esm.js","node_modules/@wry/context/src/slot.ts","node_modules/@wry/context/src/context.ts","node_modules/@apollo/client/cache/core/types/Cache.js","node_modules/@apollo/src/cache/core/types/Cache.ts","node_modules/@apollo/client/cache/core/types/common.js","node_modules/@apollo/src/cache/core/types/common.ts","node_modules/@apollo/client/cache/inmemory/inMemoryCache.js","node_modules/@apollo/src/cache/inmemory/inMemoryCache.ts","node_modules/@apollo/src/cache/inmemory/fixPolyfills.ts","node_modules/@apollo/client/cache/inmemory/readFromStore.js","node_modules/@apollo/src/cache/inmemory/readFromStore.ts","node_modules/@apollo/client/cache/inmemory/entityStore.js","node_modules/@apollo/src/cache/inmemory/entityStore.ts","node_modules/@apollo/client/cache/inmemory/helpers.js","node_modules/@apollo/src/cache/inmemory/helpers.ts","node_modules/@apollo/client/cache/inmemory/writeToStore.js","node_modules/@apollo/src/cache/inmemory/writeToStore.ts","node_modules/@apollo/client/cache/inmemory/reactiveVars.js","node_modules/@apollo/src/cache/inmemory/reactiveVars.ts","node_modules/@apollo/client/cache/inmemory/policies.js","node_modules/@apollo/src/cache/inmemory/policies.ts","node_modules/@apollo/src/cache/inmemory/types.ts","node_modules/@apollo/client/core/QueryInfo.js","node_modules/@apollo/src/core/QueryInfo.ts","node_modules/@apollo/src/core/types.ts","node_modules/graphql-tag/lib/index.js","node_modules/graphql-tag/src/index.ts","node_modules/tslib/tslib.es6.js","node_modules/@apollo/client/react/index.js","node_modules/@apollo/src/react/index.ts","node_modules/@apollo/client/react/context/index.js","node_modules/@apollo/src/react/context/index.ts","node_modules/@apollo/client/react/context/ApolloConsumer.js","node_modules/@apollo/src/react/context/ApolloConsumer.tsx","node_modules/@apollo/client/react/context/ApolloContext.js","node_modules/@apollo/src/react/context/ApolloContext.ts","node_modules/@apollo/client/react/context/ApolloProvider.js","node_modules/@apollo/src/react/context/ApolloProvider.tsx","node_modules/@apollo/client/react/hooks/index.js","node_modules/@apollo/src/react/hooks/index.ts","node_modules/@apollo/client/react/hooks/useApolloClient.js","node_modules/@apollo/src/react/hooks/useApolloClient.ts","node_modules/@apollo/client/react/hooks/useLazyQuery.js","node_modules/@apollo/src/react/hooks/useLazyQuery.ts","node_modules/@apollo/client/react/hooks/utils/useBaseQuery.js","node_modules/@apollo/src/react/hooks/utils/useBaseQuery.ts","node_modules/@apollo/client/react/data/index.js","node_modules/@apollo/src/react/data/index.ts","node_modules/@apollo/client/react/data/SubscriptionData.js","node_modules/@apollo/src/react/data/SubscriptionData.ts","node_modules/@apollo/client/react/data/OperationData.js","node_modules/@apollo/src/react/data/OperationData.ts","node_modules/@apollo/client/react/parser/index.js","node_modules/@apollo/src/react/parser/index.ts","node_modules/@apollo/client/react/data/MutationData.js","node_modules/@apollo/src/react/data/MutationData.ts","node_modules/@apollo/client/react/data/QueryData.js","node_modules/@apollo/src/react/data/QueryData.ts","node_modules/@apollo/client/react/hooks/utils/useDeepMemo.js","node_modules/@apollo/src/react/hooks/utils/useDeepMemo.ts","node_modules/@apollo/client/react/hooks/useMutation.js","node_modules/@apollo/src/react/hooks/useMutation.ts","node_modules/@apollo/client/react/hooks/useQuery.js","node_modules/@apollo/src/react/hooks/useQuery.ts","node_modules/@apollo/client/react/hooks/useSubscription.js","node_modules/@apollo/src/react/hooks/useSubscription.ts","node_modules/@apollo/client/react/hooks/useReactiveVar.js","node_modules/@apollo/src/react/hooks/useReactiveVar.ts","node_modules/@apollo/src/react/types/types.ts","node_modules/apollo-upload-client/public/index.mjs","node_modules/apollo-upload-client/public/createUploadLink.js","node_modules/@babel/runtime/helpers/extends.js","node_modules/extract-files/public/extractFiles.js","node_modules/extract-files/public/isExtractableFile.js","node_modules/extract-files/public/ReactNativeFile.js","node_modules/apollo-upload-client/public/formDataAppendFile.js","node_modules/apollo-upload-client/public/isExtractableFile.js","Resources/Private/JavaScript/core/src/index.ts","Resources/Private/JavaScript/core/src/provider/index.ts","Resources/Private/JavaScript/core/src/provider/Notify.tsx","Resources/Private/JavaScript/core/src/provider/MediaUiProvider.tsx","node_modules/matcher/index.js","node_modules/matcher/node_modules/escape-string-regexp/index.js","Resources/Private/JavaScript/core/src/hooks/index.ts","Resources/Private/JavaScript/core/src/hooks/useAssetCountQuery.ts","node_modules/recoil/es/index.js","Resources/Private/JavaScript/asset-sources/src/index.ts","Resources/Private/JavaScript/asset-sources/src/components/AssetSourceDescription.tsx","node_modules/@neos-project/react-ui-components/dist/index.js","node_modules/@neos-project/react-ui-components/src/index.ts","node_modules/@neos-project/react-ui-components/dist/enhanceWithClickOutside/index.js","node_modules/@neos-project/react-ui-components/src/enhanceWithClickOutside/index.tsx","node_modules/@neos-project/react-ui-components/dist/Button/index.js","node_modules/@neos-project/react-ui-components/src/Button/index.ts","node_modules/@friendsofreactjs/react-css-themr/lib/index.js","node_modules/@friendsofreactjs/react-css-themr/lib/components/ThemeProvider.js","node_modules/@friendsofreactjs/react-css-themr/lib/utils/themr-shape.js","node_modules/@friendsofreactjs/react-css-themr/lib/components/themr.js","node_modules/invariant/browser.js","node_modules/@neos-project/react-ui-components/dist/identifiers.js","node_modules/@neos-project/react-ui-components/src/identifiers.ts","node_modules/@neos-project/react-ui-components/dist/Button/button.js","node_modules/@neos-project/react-ui-components/src/Button/button.tsx","node_modules/classnames/index.js","node_modules/@neos-project/react-ui-components/dist/_lib/focusNode.js","node_modules/@neos-project/react-ui-components/src/_lib/focusNode.ts","node_modules/@neos-project/react-ui-components/dist/CheckBox/index.js","node_modules/@neos-project/react-ui-components/src/CheckBox/index.ts","node_modules/@neos-project/react-ui-components/dist/CheckBox/checkBox.js","node_modules/@neos-project/react-ui-components/src/CheckBox/checkBox.tsx","node_modules/@neos-project/react-ui-components/dist/Icon/index.js","node_modules/@neos-project/react-ui-components/src/Icon/index.ts","node_modules/@neos-project/react-ui-components/dist/Icon/icon.js","node_modules/@neos-project/react-ui-components/src/Icon/icon.tsx","node_modules/@neos-project/react-ui-components/dist/Icon/fontAwesomeIcon.js","node_modules/@neos-project/react-ui-components/src/Icon/fontAwesomeIcon.tsx","node_modules/@neos-project/react-ui-components/node_modules/@fortawesome/react-fontawesome/index.es.js","node_modules/@fortawesome/fontawesome-svg-core/index.es.js","node_modules/@neos-project/react-ui-components/dist/Icon/iconDefaultProps.js","node_modules/@neos-project/react-ui-components/src/Icon/iconDefaultProps.ts","node_modules/@neos-project/react-ui-components/dist/Icon/mapper.js","node_modules/@neos-project/react-ui-components/src/Icon/mapper.ts","node_modules/@neos-project/react-ui-components/dist/Icon/resourceIcon.js","node_modules/@neos-project/react-ui-components/src/Icon/resourceIcon.tsx","node_modules/react-svg/dist/react-svg.esm.js","node_modules/react-svg/compiled/shallow-differs.js","node_modules/react-svg/compiled/ReactSVG.js","node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","node_modules/@babel/runtime/helpers/inheritsLoose.js","node_modules/@babel/runtime/helpers/setPrototypeOf.js","node_modules/@tanem/svg-injector/dist/svg-injector.esm.js","node_modules/@tanem/svg-injector/src/clone-svg.ts","node_modules/@tanem/svg-injector/src/is-local.ts","node_modules/@tanem/svg-injector/src/make-ajax-request.ts","node_modules/@tanem/svg-injector/src/svg-cache.ts","node_modules/@tanem/svg-injector/src/request-queue.ts","node_modules/@tanem/svg-injector/src/load-svg-cached.ts","node_modules/@tanem/svg-injector/src/load-svg-uncached.ts","node_modules/@tanem/svg-injector/src/unique-id.ts","node_modules/@tanem/svg-injector/src/inject-element.ts","node_modules/@tanem/svg-injector/src/svg-injector.ts","node_modules/@tanem/svg-injector/node_modules/content-type/index.js","node_modules/react-dom/server.browser.js","node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","node_modules/@neos-project/react-ui-components/dist/Dialog/index.js","node_modules/@neos-project/react-ui-components/src/Dialog/index.ts","node_modules/@neos-project/react-ui-components/dist/Dialog/dialog.js","node_modules/@neos-project/react-ui-components/src/Dialog/dialog.tsx","node_modules/react-close-on-escape/dist/index.js","node_modules/react-portal/es/index.js","node_modules/react-portal/es/PortalCompat.js","node_modules/react-portal/es/Portal.js","node_modules/react-portal/es/utils.js","node_modules/react-portal/es/LegacyPortal.js","node_modules/@neos-project/react-ui-components/dist/DropDown/index.js","node_modules/@neos-project/react-ui-components/src/DropDown/index.ts","node_modules/@neos-project/react-ui-components/dist/DropDown/wrapper.js","node_modules/@neos-project/react-ui-components/src/DropDown/wrapper.tsx","node_modules/lodash.omit/index.js","node_modules/@neos-project/react-ui-components/dist/DropDown/header.js","node_modules/@neos-project/react-ui-components/src/DropDown/header.tsx","node_modules/@neos-project/react-ui-components/dist/DropDown/contents.js","node_modules/@neos-project/react-ui-components/src/DropDown/contents.tsx","node_modules/@neos-project/react-ui-components/dist/Headline/index.js","node_modules/@neos-project/react-ui-components/src/Headline/index.ts","node_modules/@neos-project/react-ui-components/dist/Headline/headline.js","node_modules/@neos-project/react-ui-components/src/Headline/headline.tsx","node_modules/@neos-project/react-ui-components/dist/IconButton/index.js","node_modules/@neos-project/react-ui-components/src/IconButton/index.ts","node_modules/@neos-project/react-ui-components/dist/IconButton/iconButton.js","node_modules/@neos-project/react-ui-components/src/IconButton/iconButton.tsx","node_modules/@neos-project/react-ui-components/dist/Label/index.js","node_modules/@neos-project/react-ui-components/src/Label/index.ts","node_modules/@neos-project/react-ui-components/dist/Label/label.js","node_modules/@neos-project/react-ui-components/src/Label/label.tsx","node_modules/@neos-project/react-ui-components/dist/SelectBox/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox/index.js","node_modules/react-keydown/es/index.js","node_modules/react-keydown/es/lib/array.from.js","node_modules/react-keydown/es/decorators/index.js","node_modules/react-keydown/es/decorators/class_decorator.js","node_modules/react-keydown/es/store.js","node_modules/react-keydown/es/lib/match_keys.js","node_modules/react-keydown/es/lib/keys.js","node_modules/react-keydown/es/lib/parse_keys.js","node_modules/react-keydown/es/lib/uuid.js","node_modules/react-keydown/es/event_handlers.js","node_modules/react-keydown/es/lib/dom_helpers.js","node_modules/react-keydown/es/lib/listeners.js","node_modules/react-keydown/es/decorators/method_decorator.js","node_modules/react-keydown/es/decorators/method_decorator_scoped.js","node_modules/@neos-project/react-ui-components/dist/SelectBox/config.js","node_modules/@neos-project/react-ui-components/src/SelectBox/config.js","node_modules/@neos-project/react-ui-components/dist/SelectBox/selectBox.js","node_modules/@neos-project/react-ui-components/src/SelectBox/selectBox.js","node_modules/plow-js/dist/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_Option_SingleLine/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_Option_SingleLine/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_Option_SingleLine/selectBox_Option_SingleLine.js","node_modules/@neos-project/react-ui-components/src/SelectBox_Option_SingleLine/selectBox_Option_SingleLine.js","node_modules/@neos-project/react-ui-components/dist/ListPreviewElement/index.js","node_modules/@neos-project/react-ui-components/src/ListPreviewElement/index.js","node_modules/@neos-project/react-ui-components/dist/ListPreviewElement/listPreviewElement.js","node_modules/@neos-project/react-ui-components/src/ListPreviewElement/listPreviewElement.js","node_modules/@neos-project/react-ui-components/dist/_lib/injectProps.js","node_modules/@neos-project/react-ui-components/src/_lib/injectProps.js","node_modules/lodash.isequal/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_Header/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_Header/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_Header/selectBox_Header.js","node_modules/@neos-project/react-ui-components/src/SelectBox_Header/selectBox_Header.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_HeaderWithSearchInput/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_HeaderWithSearchInput/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_HeaderWithSearchInput/selectBox_HeaderWithSearchInput.js","node_modules/@neos-project/react-ui-components/src/SelectBox_HeaderWithSearchInput/selectBox_HeaderWithSearchInput.js","node_modules/@neos-project/react-ui-components/dist/TextInput/index.js","node_modules/@neos-project/react-ui-components/src/TextInput/index.ts","node_modules/@neos-project/react-ui-components/dist/TextInput/textInput.js","node_modules/@neos-project/react-ui-components/src/TextInput/textInput.tsx","node_modules/@neos-project/react-ui-components/dist/SelectBox_ListPreview/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_ListPreview/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_ListPreview/selectBox_ListPreview.js","node_modules/@neos-project/react-ui-components/src/SelectBox_ListPreview/selectBox_ListPreview.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_CreateNew/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_CreateNew/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_CreateNew/selectBox_CreateNew.js","node_modules/@neos-project/react-ui-components/src/SelectBox_CreateNew/selectBox_CreateNew.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_ListPreviewFlat/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_ListPreviewFlat/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_ListPreviewFlat/selectBox_ListPreviewFlat.js","node_modules/@neos-project/react-ui-components/src/SelectBox_ListPreviewFlat/selectBox_ListPreviewFlat.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_ListPreviewGrouped/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_ListPreviewGrouped/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_ListPreviewGrouped/selectBox_ListPreviewGrouped.js","node_modules/@neos-project/react-ui-components/src/SelectBox_ListPreviewGrouped/selectBox_ListPreviewGrouped.js","node_modules/@neos-project/react-ui-components/dist/Tabs/index.js","node_modules/@neos-project/react-ui-components/src/Tabs/index.ts","node_modules/@neos-project/react-ui-components/dist/Tabs/tabs.js","node_modules/@neos-project/react-ui-components/src/Tabs/tabs.tsx","node_modules/@neos-project/react-ui-components/dist/Tabs/panel.index.js","node_modules/@neos-project/react-ui-components/src/Tabs/panel.index.ts","node_modules/@neos-project/react-ui-components/dist/Tabs/panel.js","node_modules/@neos-project/react-ui-components/src/Tabs/panel.tsx","node_modules/@neos-project/react-ui-components/dist/TextArea/index.js","node_modules/@neos-project/react-ui-components/src/TextArea/index.ts","node_modules/@neos-project/react-ui-components/dist/TextArea/textArea.js","node_modules/@neos-project/react-ui-components/src/TextArea/textArea.tsx","node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js","node_modules/@babel/runtime/helpers/esm/extends.js","node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","node_modules/use-latest/dist/use-latest.esm.js","node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js","node_modules/use-composed-ref/dist/use-composed-ref.esm.js","node_modules/@neos-project/react-ui-components/dist/ToggablePanel/index.js","node_modules/@neos-project/react-ui-components/src/ToggablePanel/index.js","node_modules/@neos-project/react-ui-components/dist/ToggablePanel/toggablePanel.js","node_modules/@neos-project/react-ui-components/src/ToggablePanel/toggablePanel.js","node_modules/react-collapse/lib/index.js","node_modules/react-collapse/lib/Collapse.js","node_modules/react-collapse/lib/UnmountClosed.js","node_modules/@neos-project/react-ui-components/dist/Tree/index.js","node_modules/@neos-project/react-ui-components/src/Tree/index.js","node_modules/@neos-project/react-ui-components/dist/Tree/tree.js","node_modules/@neos-project/react-ui-components/src/Tree/tree.js","node_modules/@neos-project/react-ui-components/dist/Tree/reactDndScrollzoneFork.js","node_modules/@neos-project/react-ui-components/src/Tree/reactDndScrollzoneFork.js","node_modules/lodash.throttle/index.js","node_modules/raf/index.js","node_modules/performance-now/lib/performance-now.js","node_modules/performance-now/src/performance-now.coffee","node_modules/@neos-project/react-ui-components/dist/Tree/node.js","node_modules/@neos-project/react-ui-components/src/Tree/node.js","node_modules/@neos-project/react-ui-components/dist/Tree/dragLayer.js","node_modules/@neos-project/react-ui-components/src/Tree/dragLayer.js","node_modules/@neos-project/react-ui-components/dist/MultiSelectBox/index.js","node_modules/@neos-project/react-ui-components/src/MultiSelectBox/index.js","node_modules/@neos-project/react-ui-components/dist/MultiSelectBox/multiSelectBox.js","node_modules/@neos-project/react-ui-components/src/MultiSelectBox/multiSelectBox.js","node_modules/@neos-project/react-ui-components/dist/MultiSelectBox_ListPreviewSortable/index.js","node_modules/@neos-project/react-ui-components/src/MultiSelectBox_ListPreviewSortable/index.js","node_modules/@neos-project/react-ui-components/dist/MultiSelectBox_ListPreviewSortable/multiSelectBox_ListPreviewSortable.js","node_modules/@neos-project/react-ui-components/src/MultiSelectBox_ListPreviewSortable/multiSelectBox_ListPreviewSortable.js","node_modules/@neos-project/react-ui-components/dist/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/index.js","node_modules/@neos-project/react-ui-components/src/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/index.js","node_modules/@neos-project/react-ui-components/dist/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/multiSelectBox_ListPreviewSortable_DraggableListPreviewElement.js","node_modules/@neos-project/react-ui-components/src/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/multiSelectBox_ListPreviewSortable_DraggableListPreviewElement.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_Option_MultiLineWithThumbnail/index.js","node_modules/@neos-project/react-ui-components/src/SelectBox_Option_MultiLineWithThumbnail/index.js","node_modules/@neos-project/react-ui-components/dist/SelectBox_Option_MultiLineWithThumbnail/selectBox_Option_MultiLineWithThumbnail.js","node_modules/@neos-project/react-ui-components/src/SelectBox_Option_MultiLineWithThumbnail/selectBox_Option_MultiLineWithThumbnail.js","Resources/Private/JavaScript/core/src/components/index.ts","Resources/Private/JavaScript/core/src/components/Dialog.tsx","Resources/Private/JavaScript/core/src/Theme.module.css","Resources/Private/JavaScript/core/src/components/AssetLabel.tsx","Resources/Private/JavaScript/core/src/components/AssetLabel.module.css","Resources/Private/JavaScript/core/src/components/Column.tsx","Resources/Private/JavaScript/core/src/components/Column.module.css","Resources/Private/JavaScript/core/src/components/IconLabel.tsx","Resources/Private/JavaScript/core/src/components/IconLabel.module.css","Resources/Private/JavaScript/core/src/components/PropertyList.tsx","Resources/Private/JavaScript/core/src/components/PropertyList.module.css","Resources/Private/JavaScript/core/src/components/PropertyListItem.tsx","Resources/Private/JavaScript/core/src/components/IconStack.tsx","Resources/Private/JavaScript/core/src/components/IconStack.module.css","Resources/Private/JavaScript/asset-sources/src/hooks/useSelectedAssetSource.ts","Resources/Private/JavaScript/asset-sources/src/hooks/useAssetSourcesQuery.ts","Resources/Private/JavaScript/core/src/state/index.ts","Resources/Private/JavaScript/core/src/state/availableAssetsState.ts","Resources/Private/JavaScript/core/src/state/constraintsState.ts","Resources/Private/JavaScript/core/src/state/currentPageState.ts","Resources/Private/JavaScript/core/src/state/localStorageEffect.ts","Resources/Private/JavaScript/core/src/state/featureFlagsState.ts","Resources/Private/JavaScript/core/src/state/initialLoadCompleteState.ts","Resources/Private/JavaScript/core/src/state/loadingState.ts","Resources/Private/JavaScript/core/src/state/searchTermState.ts","Resources/Private/JavaScript/core/src/domain/SearchTerm.ts","Resources/Private/JavaScript/core/src/state/selectedAssetCollectionAndTagState.ts","Resources/Private/JavaScript/asset-tags/src/index.ts","Resources/Private/JavaScript/asset-tags/src/hooks/useCreateTag.ts","Resources/Private/JavaScript/asset-collections/src/index.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useAssetCollectionQuery.ts","Resources/Private/JavaScript/asset-collections/src/queries/assetCollection.ts","Resources/Private/JavaScript/asset-collections/src/fragments/assetCollection.ts","Resources/Private/JavaScript/asset-tags/src/fragments/tag.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useAssetCollectionsQuery.ts","Resources/Private/JavaScript/asset-collections/src/queries/assetCollections.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useSelectedAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/state/selectedAssetCollectionIdState.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useDeleteAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/mutations/deleteAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useUpdateAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/mutations/updateAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useCreateAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/mutations/createAssetCollection.ts","Resources/Private/JavaScript/asset-collections/src/hooks/useSetAssetCollectionParent.ts","Resources/Private/JavaScript/asset-collections/src/mutations/setAssetCollectionParent.ts","Resources/Private/JavaScript/asset-collections/src/components/AssetCollectionTree.tsx","Resources/Private/JavaScript/asset-collections/src/components/AssetCollectionTreeNode.tsx","Resources/Private/JavaScript/core/src/constants/dndTypes.ts","Resources/Private/JavaScript/asset-collections/src/components/TagTreeNode.tsx","Resources/Private/JavaScript/asset-collections/src/state/assetCollectionFavouritesState.ts","Resources/Private/JavaScript/asset-collections/src/state/assetCollectionTreeCollapsedState.ts","Resources/Private/JavaScript/asset-collections/src/state/assetCollectionFocusedState.ts","Resources/Private/JavaScript/asset-collections/src/state/assetCollectionActiveState.ts","Resources/Private/JavaScript/asset-collections/src/components/AddAssetCollectionButton.tsx","Resources/Private/JavaScript/asset-collections/src/state/createAssetCollectionDialogVisibleState.ts","Resources/Private/JavaScript/asset-collections/src/state/assetCollectionTreeViewState.ts","Resources/Private/JavaScript/asset-collections/src/components/AddAssetCollectionButton.module.css","Resources/Private/JavaScript/asset-collections/src/components/DeleteButton.tsx","Resources/Private/JavaScript/asset-collections/src/components/AddTagButton.tsx","Resources/Private/JavaScript/asset-collections/src/components/AddTagButton.module.css","Resources/Private/JavaScript/asset-collections/src/components/FavouriteButton.tsx","Resources/Private/JavaScript/asset-collections/src/components/AssetCollectionTree.module.css","Resources/Private/JavaScript/asset-collections/src/components/CreateAssetCollectionDialog.tsx","Resources/Private/JavaScript/asset-collections/src/components/CreateAssetCollectionDialog.module.css","Resources/Private/JavaScript/asset-collections/src/helpers/collectionPath.ts","Resources/Private/JavaScript/asset-tags/src/queries/tags.ts","Resources/Private/JavaScript/asset-tags/src/mutations/createTag.ts","Resources/Private/JavaScript/asset-tags/src/hooks/useDeleteTag.ts","Resources/Private/JavaScript/asset-tags/src/state/selectedTagIdState.ts","Resources/Private/JavaScript/asset-tags/src/mutations/deleteTag.ts","Resources/Private/JavaScript/asset-tags/src/hooks/useSelectedTag.ts","Resources/Private/JavaScript/asset-tags/src/queries/tag.ts","Resources/Private/JavaScript/asset-tags/src/hooks/useTagsQuery.ts","Resources/Private/JavaScript/asset-tags/src/hooks/useUpdateTag.ts","Resources/Private/JavaScript/asset-tags/src/mutations/updateTag.ts","Resources/Private/JavaScript/asset-tags/src/components/CreateTagDialog.tsx","Resources/Private/JavaScript/asset-tags/src/state/createTagDialogState.ts","Resources/Private/JavaScript/asset-tags/src/components/CreateTagDialog.module.css","Resources/Private/JavaScript/clipboard/src/index.ts","Resources/Private/JavaScript/clipboard/src/state/clipboardVisibleState.ts","Resources/Private/JavaScript/clipboard/src/state/clipboardState.ts","Resources/Private/JavaScript/clipboard/src/components/ClipboardToggle.tsx","Resources/Private/JavaScript/clipboard/src/components/ClipboardItem.tsx","Resources/Private/JavaScript/clipboard/src/components/ClipboardItem.module.css","Resources/Private/JavaScript/clipboard/src/components/ClipboardToggle.module.css","Resources/Private/JavaScript/clipboard/src/components/ClipboardActions.tsx","Resources/Private/JavaScript/clipboard/src/components/ClipboardActions.module.css","Resources/Private/JavaScript/clipboard/src/components/ClipboardWatcher.ts","Resources/Private/JavaScript/core/src/events/index.ts","Resources/Private/JavaScript/core/src/events/asset.ts","Resources/Private/JavaScript/core/src/events/createEvent.ts","node_modules/pubsub-js/src/pubsub.js","Resources/Private/JavaScript/core/src/state/selectedInspectorViewState.ts","Resources/Private/JavaScript/core/src/state/applicationContextState.ts","Resources/Private/JavaScript/core/src/state/selectedAssetIdState.ts","Resources/Private/JavaScript/core/src/state/selectedMediaTypeState.ts","Resources/Private/JavaScript/core/src/state/selectedAssetTypeState.ts","Resources/Private/JavaScript/core/src/state/selectedSortOrderState.ts","Resources/Private/JavaScript/asset-sources/src/queries/assetSources.ts","Resources/Private/JavaScript/asset-sources/src/fragments/assetSource.ts","Resources/Private/JavaScript/asset-sources/src/state/selectedAssetSourceState.ts","Resources/Private/JavaScript/asset-sources/src/components/AssetSourceDescription.module.css","Resources/Private/JavaScript/asset-sources/src/components/AssetSourceList.tsx","Resources/Private/JavaScript/asset-sources/src/components/AssetSourceList.module.css","Resources/Private/JavaScript/core/src/queries/index.ts","Resources/Private/JavaScript/core/src/queries/asset.ts","Resources/Private/JavaScript/core/src/fragments/asset.ts","Resources/Private/JavaScript/core/src/fragments/iptcProperty.ts","Resources/Private/JavaScript/core/src/fragments/file.ts","Resources/Private/JavaScript/core/src/queries/assets.ts","Resources/Private/JavaScript/core/src/queries/assetCount.ts","Resources/Private/JavaScript/core/src/queries/config.ts","Resources/Private/JavaScript/core/src/hooks/useAssetQuery.ts","Resources/Private/JavaScript/core/src/hooks/useAssetsQuery.ts","Resources/Private/JavaScript/core/src/hooks/useConfigQuery.ts","Resources/Private/JavaScript/core/src/hooks/useDeleteAsset.ts","Resources/Private/JavaScript/core/src/mutations/index.ts","Resources/Private/JavaScript/core/src/mutations/deleteAsset.ts","Resources/Private/JavaScript/core/src/mutations/importAsset.ts","Resources/Private/JavaScript/core/src/mutations/setAssetCollections.ts","Resources/Private/JavaScript/core/src/mutations/setAssetTags.ts","Resources/Private/JavaScript/core/src/mutations/tagAsset.ts","Resources/Private/JavaScript/core/src/mutations/untagAsset.ts","Resources/Private/JavaScript/core/src/mutations/updateAsset.ts","Resources/Private/JavaScript/core/src/hooks/useEvent.tsx","Resources/Private/JavaScript/core/src/hooks/useImportAsset.ts","Resources/Private/JavaScript/core/src/hooks/useSelectAsset.ts","Resources/Private/JavaScript/core/src/hooks/useSelectedAsset.ts","Resources/Private/JavaScript/core/src/hooks/useSetAssetCollections.ts","Resources/Private/JavaScript/core/src/hooks/useSetAssetTags.ts","Resources/Private/JavaScript/core/src/hooks/useUntagAsset.ts","Resources/Private/JavaScript/core/src/hooks/useUpdateAsset.ts","Resources/Private/JavaScript/core/src/provider/Intl.tsx","Resources/Private/JavaScript/core/src/provider/Interaction/index.ts","Resources/Private/JavaScript/core/src/provider/Interaction/Interaction.tsx","Resources/Private/JavaScript/core/src/provider/Interaction/dialogs/index.ts","Resources/Private/JavaScript/core/src/provider/Interaction/dialogs/Confirm.tsx","Resources/Private/JavaScript/core/src/provider/Interaction/dialogs/Confirm.module.css","Resources/Private/JavaScript/core/src/strategy/index.ts","Resources/Private/JavaScript/core/src/strategy/ApprovalAttainmentStrategy.ts","Resources/Private/JavaScript/core/src/typeDefs.ts","Resources/Private/JavaScript/core/src/helper/index.ts","Resources/Private/JavaScript/core/src/helper/humanFileSize.ts","Resources/Private/JavaScript/core/src/components/MediaApplicationWrapper.tsx","Resources/Private/JavaScript/asset-usage/src/index.ts","Resources/Private/JavaScript/asset-usage/src/queries/assetUsages.ts","Resources/Private/JavaScript/asset-usage/src/fragments/usageDetailsGroupFragment.ts","Resources/Private/JavaScript/asset-usage/src/queries/unusedAssets.ts","Resources/Private/JavaScript/asset-usage/src/components/AssetUsagesModal.tsx","Resources/Private/JavaScript/asset-usage/src/state/assetUsageDetailsModalState.ts","Resources/Private/JavaScript/asset-usage/src/hooks/useAssetUsages.ts","Resources/Private/JavaScript/asset-usage/src/components/AssetUsageSection.tsx","Resources/Private/JavaScript/asset-usage/src/components/AssetUsageSection.module.css","Resources/Private/JavaScript/asset-usage/src/components/AssetUsagesModal.module.css","Resources/Private/JavaScript/asset-usage/src/components/AssetUsagesToggleButton.tsx","Resources/Private/JavaScript/asset-usage/src/state/showUnusedAssetsState.ts","Resources/Private/JavaScript/asset-usage/src/hooks/useUnusedAssetsQuery.ts","Resources/Private/JavaScript/asset-usage/src/queries/useUnusedAssetCountQuery.ts","Resources/Private/JavaScript/asset-usage/src/queries/unusedAssetCount.ts","Resources/Private/JavaScript/asset-usage/src/typeDefs.ts","Resources/Private/JavaScript/media-module/src/core/index.ts","Resources/Private/JavaScript/media-module/src/core/IdFromObjectResolver.ts","Resources/Private/JavaScript/media-module/src/core/CreateErrorHandler.ts","node_modules/@apollo/client/link/error/index.js","node_modules/@apollo/src/link/error/index.ts","Resources/Private/JavaScript/media-module/src/core/Cache.ts","Resources/Private/JavaScript/media-module/src/components/App.tsx","Resources/Private/JavaScript/concurrent-editing/src/index.ts","Resources/Private/JavaScript/concurrent-editing/src/components/ConcurrentChangeMonitor.tsx","Resources/Private/JavaScript/concurrent-editing/src/hooks/useChangedAssetsQuery.ts","Resources/Private/JavaScript/concurrent-editing/src/queries/changedAssets.ts","Resources/Private/JavaScript/similar-assets/src/index.ts","Resources/Private/JavaScript/similar-assets/src/components/SimilarAssetsToggleButton.tsx","Resources/Private/JavaScript/similar-assets/src/state/similarAssetsModalState.ts","Resources/Private/JavaScript/similar-assets/src/components/SimilarAssetsModal.tsx","Resources/Private/JavaScript/similar-assets/src/hooks/useSimilarAssets.ts","Resources/Private/JavaScript/similar-assets/src/queries/similarAssets.ts","Resources/Private/JavaScript/similar-assets/src/components/SimilarAsset.tsx","Resources/Private/JavaScript/similar-assets/src/components/SimilarAsset.module.css","Resources/Private/JavaScript/similar-assets/src/components/SimilarAssetsModal.module.css","Resources/Private/JavaScript/asset-upload/src/state/index.ts","Resources/Private/JavaScript/asset-upload/src/state/uploadDialogState.ts","Resources/Private/JavaScript/asset-upload/src/components/index.ts","Resources/Private/JavaScript/asset-upload/src/components/Dialogs/NewAssetDialog.tsx","Resources/Private/JavaScript/asset-upload/src/components/UploadSection.tsx","node_modules/react-dropzone/dist/es/index.js","node_modules/file-selector/dist/es5/index.js","node_modules/file-selector/src/index.ts","node_modules/file-selector/dist/es5/file-selector.js","node_modules/file-selector/src/file-selector.ts","node_modules/file-selector/dist/es5/file.js","node_modules/file-selector/src/file.ts","node_modules/react-dropzone/dist/es/utils/index.js","node_modules/attr-accept/dist/es/index.js","Resources/Private/JavaScript/asset-upload/src/components/UploadSection.module.css","Resources/Private/JavaScript/asset-upload/src/components/PreviewSection.tsx","Resources/Private/JavaScript/asset-upload/src/components/FilePreview.tsx","Resources/Private/JavaScript/asset-upload/src/components/FilePreview.module.css","Resources/Private/JavaScript/asset-upload/src/components/PreviewSection.module.css","Resources/Private/JavaScript/asset-upload/src/hooks/index.ts","Resources/Private/JavaScript/asset-upload/src/hooks/useUploadDialogState.ts","Resources/Private/JavaScript/asset-upload/src/hooks/useUploadFile.ts","Resources/Private/JavaScript/asset-upload/src/mutations/index.ts","Resources/Private/JavaScript/asset-upload/src/mutations/replaceAsset.ts","Resources/Private/JavaScript/asset-upload/src/mutations/uploadFiles.ts","Resources/Private/JavaScript/asset-upload/src/mutations/uploadFile.ts","Resources/Private/JavaScript/asset-upload/src/hooks/useUploadFiles.ts","Resources/Private/JavaScript/asset-upload/src/components/Dialogs/NewAssetDialog.module.css","Resources/Private/JavaScript/asset-upload/src/components/Dialogs/ReplaceAssetDialog.tsx","Resources/Private/JavaScript/asset-upload/src/hooks/useReplaceAsset.ts","Resources/Private/JavaScript/asset-upload/src/components/Dialogs/ReplaceAssetDialog.module.css","Resources/Private/JavaScript/asset-upload/src/components/Dialogs/UploadDialog.tsx","Resources/Private/JavaScript/asset-upload/src/components/AssetReplacementButton.tsx","Resources/Private/JavaScript/asset-upload/src/components/UploadButton.tsx","Resources/Private/JavaScript/asset-preview/src/index.ts","Resources/Private/JavaScript/asset-preview/src/components/AssetPreview.tsx","node_modules/react-image-lightbox/dist/index.es.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/index.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/components/Modal.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/components/ModalPortal.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/focusManager.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/tabbable.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/scopeTab.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/ariaAppHider.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/safeHTMLElement.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/classList.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/portalOpenInstances.js","node_modules/react-image-lightbox/node_modules/react-modal/lib/helpers/bodyTrap.js","Resources/Private/JavaScript/asset-preview/src/state/selectedAssetForPreviewState.ts","Resources/Private/JavaScript/asset-preview/src/components/AssetPreview.module.css","Resources/Private/JavaScript/asset-editing/src/index.ts","Resources/Private/JavaScript/asset-editing/src/components/OpenAssetEditDialogButton.tsx","Resources/Private/JavaScript/asset-editing/src/state/editAssetDialogState.ts","Resources/Private/JavaScript/asset-editing/src/components/EditAssetDialog.tsx","Resources/Private/JavaScript/asset-editing/src/hooks/useEditAsset.ts","Resources/Private/JavaScript/asset-editing/src/mutations/editAsset.ts","Resources/Private/JavaScript/asset-editing/src/components/EditAssetDialog.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarLeft/SideBarLeft.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/index.ts","Resources/Private/JavaScript/media-module/src/components/SideBarRight/SideBarRight.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/index.ts","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/AssetCollectionInspector.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/Actions.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/Actions.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/Property.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/InspectorContainer.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/InspectorContainer.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/ParentCollectionSelectBox.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/AssetCollectionOptionPreviewElement.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/ParentCollectionSelectBox.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/AssetInspector.tsx","Resources/Private/JavaScript/asset-variants/src/components/VariantsInspector.tsx","Resources/Private/JavaScript/asset-variants/src/hooks/useAssetVariants.ts","Resources/Private/JavaScript/asset-variants/src/queries/assetVariants.ts","Resources/Private/JavaScript/asset-variants/src/fragments/cropInformation.ts","Resources/Private/JavaScript/asset-variants/src/components/Variant.tsx","Resources/Private/JavaScript/asset-variants/src/components/Variant.module.css","Resources/Private/JavaScript/asset-variants/src/components/VariantsInspector.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/PropertyInspector.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/Tasks.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/Tasks.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/PropertyInspector.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/AssetInspector.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/CollectionSelectBox.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/CollectionSelectBox.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/IptcMetadataInspector.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/IptcMetadataInspector.module.css","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/MetadataView.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/TagInspector.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/TagSelectBox.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/TagSelectBoxAsset.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/Inspector/TagSelectBoxAssetCollection.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/CurrentSelection.tsx","Resources/Private/JavaScript/media-module/src/components/SideBarRight/CurrentSelection.module.css","Resources/Private/JavaScript/media-module/src/components/LoadingIndicator.tsx","Resources/Private/JavaScript/media-module/src/components/LoadingIndicator.module.css","Resources/Private/JavaScript/media-module/src/components/BottomBar/index.ts","Resources/Private/JavaScript/media-module/src/components/BottomBar/BottomBar.tsx","Resources/Private/JavaScript/media-module/src/components/BottomBar/AssetCount/AssetCount.tsx","Resources/Private/JavaScript/media-module/src/hooks/index.ts","Resources/Private/JavaScript/media-module/src/hooks/useAssetCount.ts","Resources/Private/JavaScript/media-module/src/state/index.ts","Resources/Private/JavaScript/media-module/src/state/mainViewState.ts","Resources/Private/JavaScript/media-module/src/state/viewModeState.ts","Resources/Private/JavaScript/media-module/src/components/BottomBar/AssetCount/AssetCount.module.css","Resources/Private/JavaScript/media-module/src/components/BottomBar/Pagination/Pagination.tsx","Resources/Private/JavaScript/media-module/src/components/BottomBar/Pagination/PaginationItem.tsx","Resources/Private/JavaScript/media-module/src/components/BottomBar/Pagination/PaginationItem.module.css","Resources/Private/JavaScript/media-module/src/components/BottomBar/Pagination/Pagination.module.css","Resources/Private/JavaScript/media-module/src/components/BottomBar/BottomBar.module.css","Resources/Private/JavaScript/media-module/src/components/TopBar/index.ts","Resources/Private/JavaScript/media-module/src/components/TopBar/TopBar.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/SortOrderSelector.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/SortOrderSelector.module.css","Resources/Private/JavaScript/media-module/src/components/TopBar/AssetsFilter/AssetsFilter.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/AssetsFilter/MediaTypeFilter.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/AssetsFilter/AssetsFilter.module.css","Resources/Private/JavaScript/media-module/src/components/TopBar/AssetsFilter/AssetTypeFilter.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/ViewModeSelector.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/ViewModeSelector.module.css","Resources/Private/JavaScript/media-module/src/components/TopBar/SearchBox.tsx","Resources/Private/JavaScript/media-module/src/components/TopBar/SearchBox.module.css","Resources/Private/JavaScript/media-module/src/components/TopBar/TopBar.module.css","Resources/Private/JavaScript/media-module/src/components/Main/index.ts","Resources/Private/JavaScript/media-module/src/components/Main/AssetActions.tsx","Resources/Private/JavaScript/media-module/src/components/Main/ListView.tsx","Resources/Private/JavaScript/media-module/src/components/Main/ListView.module.css","Resources/Private/JavaScript/media-module/src/components/Main/ListViewItem.tsx","Resources/Private/JavaScript/media-module/src/components/Main/MissingAssetActions.tsx","Resources/Private/JavaScript/media-module/src/components/Main/ListViewItem.module.css","Resources/Private/JavaScript/media-module/src/components/Main/Main.tsx","Resources/Private/JavaScript/media-module/src/components/LoadingLabel.tsx","Resources/Private/JavaScript/media-module/src/components/Main/Main.module.css","Resources/Private/JavaScript/media-module/src/components/Main/Thumbnail.tsx","Resources/Private/JavaScript/media-module/src/components/Main/Thumbnail.module.css","Resources/Private/JavaScript/media-module/src/components/Main/ThumbnailView.tsx","Resources/Private/JavaScript/media-module/src/components/Main/ThumbnailView.module.css","Resources/Private/JavaScript/media-module/src/components/ErrorBoundary.tsx","Resources/Private/JavaScript/media-module/src/components/App.module.css","Resources/Private/JavaScript/media-module/src/lib/FontAwesome.ts","node_modules/@fortawesome/free-solid-svg-icons/faAngleLeft.js","node_modules/@fortawesome/free-solid-svg-icons/faAngleRight.js","node_modules/@fortawesome/free-solid-svg-icons/faBan.js","node_modules/@fortawesome/free-solid-svg-icons/faBox.js","node_modules/@fortawesome/free-solid-svg-icons/faCalendarAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faCamera.js","node_modules/@fortawesome/free-solid-svg-icons/faCheck.js","node_modules/@fortawesome/free-solid-svg-icons/faChevronCircleDown.js","node_modules/@fortawesome/free-solid-svg-icons/faChevronCircleUp.js","node_modules/@fortawesome/free-solid-svg-icons/faChevronDown.js","node_modules/@fortawesome/free-solid-svg-icons/faChevronUp.js","node_modules/@fortawesome/free-solid-svg-icons/faClipboard.js","node_modules/@fortawesome/free-solid-svg-icons/faClipboardCheck.js","node_modules/@fortawesome/free-solid-svg-icons/faClipboardList.js","node_modules/@fortawesome/free-solid-svg-icons/faCloudDownloadAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faDownload.js","node_modules/@fortawesome/free-solid-svg-icons/faExclamationCircle.js","node_modules/@fortawesome/free-solid-svg-icons/faExclamationTriangle.js","node_modules/@fortawesome/free-solid-svg-icons/faExpandAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faExternalLinkAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faFile.js","node_modules/@fortawesome/free-solid-svg-icons/faFileAudio.js","node_modules/@fortawesome/free-solid-svg-icons/faFileImage.js","node_modules/@fortawesome/free-solid-svg-icons/faFileVideo.js","node_modules/@fortawesome/free-solid-svg-icons/faFolder.js","node_modules/@fortawesome/free-solid-svg-icons/faFolderOpen.js","node_modules/@fortawesome/free-solid-svg-icons/faFont.js","node_modules/@fortawesome/free-solid-svg-icons/faGripLinesVertical.js","node_modules/@fortawesome/free-solid-svg-icons/faInfoCircle.js","node_modules/@fortawesome/free-solid-svg-icons/faImages.js","node_modules/@fortawesome/free-solid-svg-icons/faPencilAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faPhotoVideo.js","node_modules/@fortawesome/free-solid-svg-icons/faPlus.js","node_modules/@fortawesome/free-solid-svg-icons/faQuestion.js","node_modules/@fortawesome/free-solid-svg-icons/faSpinner.js","node_modules/@fortawesome/free-solid-svg-icons/faSortAmountDown.js","node_modules/@fortawesome/free-solid-svg-icons/faSortAmountUp.js","node_modules/@fortawesome/free-solid-svg-icons/faSortDown.js","node_modules/@fortawesome/free-solid-svg-icons/faTag.js","node_modules/@fortawesome/free-solid-svg-icons/faTags.js","node_modules/@fortawesome/free-solid-svg-icons/faTh.js","node_modules/@fortawesome/free-solid-svg-icons/faThList.js","node_modules/@fortawesome/free-solid-svg-icons/faTimes.js","node_modules/@fortawesome/free-solid-svg-icons/faTimesCircle.js","node_modules/@fortawesome/free-solid-svg-icons/faTrashAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faUpload.js","node_modules/@fortawesome/free-solid-svg-icons/faTasks.js","node_modules/@fortawesome/free-solid-svg-icons/faEdit.js","node_modules/@fortawesome/free-solid-svg-icons/faExchangeAlt.js","node_modules/@fortawesome/free-solid-svg-icons/faEquals.js","node_modules/@fortawesome/free-solid-svg-icons/faLink.js","node_modules/@fortawesome/free-solid-svg-icons/faStar.js","node_modules/@fortawesome/free-solid-svg-icons/faGlobe.js","node_modules/@fortawesome/free-solid-svg-icons/faWeightHanging.js","node_modules/@fortawesome/free-solid-svg-icons/faFilter.js","node_modules/@fortawesome/free-solid-svg-icons/faSearch.js","node_modules/@fortawesome/free-brands-svg-icons/faNeos.js","node_modules/@fortawesome/free-brands-svg-icons/faCreativeCommonsZero.js"],"sourcesContent":["// modules are defined as an array\n// [ module function, map of requires ]\n//\n// map of requires is short require name -> numeric require\n//\n// anything defined in a previous bundle is accessed via the\n// orig method which is the require for previous bundles\n\n(function (modules, entry, mainEntry, parcelRequireName, globalName) {\n /* eslint-disable no-undef */\n var globalObject =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n /* eslint-enable no-undef */\n\n // Save the require from previous bundle to this closure if any\n var previousRequire =\n typeof globalObject[parcelRequireName] === 'function' &&\n globalObject[parcelRequireName];\n\n var cache = previousRequire.cache || {};\n // Do not use `require` to prevent Webpack from trying to bundle this call\n var nodeRequire =\n typeof module !== 'undefined' &&\n typeof module.require === 'function' &&\n module.require.bind(module);\n\n function newRequire(name, jumped) {\n if (!cache[name]) {\n if (!modules[name]) {\n // if we cannot find the module within our internal map or\n // cache jump to the current global require ie. the last bundle\n // that was added to the page.\n var currentRequire =\n typeof globalObject[parcelRequireName] === 'function' &&\n globalObject[parcelRequireName];\n if (!jumped && currentRequire) {\n return currentRequire(name, true);\n }\n\n // If there are other bundles on this page the require from the\n // previous one is saved to 'previousRequire'. Repeat this as\n // many times as there are bundles until the module is found or\n // we exhaust the require chain.\n if (previousRequire) {\n return previousRequire(name, true);\n }\n\n // Try the node require function if it exists.\n if (nodeRequire && typeof name === 'string') {\n return nodeRequire(name);\n }\n\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n }\n\n localRequire.resolve = resolve;\n localRequire.cache = {};\n\n var module = (cache[name] = new newRequire.Module(name));\n\n modules[name][0].call(\n module.exports,\n localRequire,\n module,\n module.exports,\n this\n );\n }\n\n return cache[name].exports;\n\n function localRequire(x) {\n var res = localRequire.resolve(x);\n return res === false ? {} : newRequire(res);\n }\n\n function resolve(x) {\n var id = modules[name][1][x];\n return id != null ? id : x;\n }\n }\n\n function Module(moduleName) {\n this.id = moduleName;\n this.bundle = newRequire;\n this.exports = {};\n }\n\n newRequire.isParcelRequire = true;\n newRequire.Module = Module;\n newRequire.modules = modules;\n newRequire.cache = cache;\n newRequire.parent = previousRequire;\n newRequire.register = function (id, exports) {\n modules[id] = [\n function (require, module) {\n module.exports = exports;\n },\n {},\n ];\n };\n\n Object.defineProperty(newRequire, 'root', {\n get: function () {\n return globalObject[parcelRequireName];\n },\n });\n\n globalObject[parcelRequireName] = newRequire;\n\n for (var i = 0; i < entry.length; i++) {\n newRequire(entry[i]);\n }\n\n if (mainEntry) {\n // Expose entry point to Node, AMD or browser globals\n // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js\n var mainExports = newRequire(mainEntry);\n\n // CommonJS\n if (typeof exports === 'object' && typeof module !== 'undefined') {\n module.exports = mainExports;\n\n // RequireJS\n } else if (typeof define === 'function' && define.amd) {\n define(function () {\n return mainExports;\n });\n\n // \", a = a.removeChild(a.firstChild)) : \"string\" === typeof d.is ? a = g.createElement(e, {\n is: d.is\n }) : (a = g.createElement(e), \"select\" === e && (g = a, d.multiple ? g.multiple = !0 : d.size && (g.size = d.size))) : a = g.createElementNS(a, e);\n a[Md] = b;\n a[Nd] = d;\n ni(a, b, !1, !1);\n b.stateNode = a;\n g = pd(e, d);\n switch(e){\n case \"iframe\":\n case \"object\":\n case \"embed\":\n F(\"load\", a);\n h = d;\n break;\n case \"video\":\n case \"audio\":\n for(h = 0; h < ac.length; h++)F(ac[h], a);\n h = d;\n break;\n case \"source\":\n F(\"error\", a);\n h = d;\n break;\n case \"img\":\n case \"image\":\n case \"link\":\n F(\"error\", a);\n F(\"load\", a);\n h = d;\n break;\n case \"form\":\n F(\"reset\", a);\n F(\"submit\", a);\n h = d;\n break;\n case \"details\":\n F(\"toggle\", a);\n h = d;\n break;\n case \"input\":\n Ab(a, d);\n h = zb(a, d);\n F(\"invalid\", a);\n rd(c, \"onChange\");\n break;\n case \"option\":\n h = Gb(a, d);\n break;\n case \"select\":\n a._wrapperState = {\n wasMultiple: !!d.multiple\n };\n h = n({}, d, {\n value: void 0\n });\n F(\"invalid\", a);\n rd(c, \"onChange\");\n break;\n case \"textarea\":\n Jb(a, d);\n h = Ib(a, d);\n F(\"invalid\", a);\n rd(c, \"onChange\");\n break;\n default:\n h = d;\n }\n od(e, h);\n var k = h;\n for(f in k)if (k.hasOwnProperty(f)) {\n var l = k[f];\n \"style\" === f ? md(a, l) : \"dangerouslySetInnerHTML\" === f ? (l = l ? l.__html : void 0, null != l && Qb(a, l)) : \"children\" === f ? \"string\" === typeof l ? (\"textarea\" !== e || \"\" !== l) && Rb(a, l) : \"number\" === typeof l && Rb(a, \"\" + l) : \"suppressContentEditableWarning\" !== f && \"suppressHydrationWarning\" !== f && \"autoFocus\" !== f && (va.hasOwnProperty(f) ? null != l && rd(c, f) : null != l && Xa(a, f, l, g));\n }\n switch(e){\n case \"input\":\n xb(a);\n Eb(a, d, !1);\n break;\n case \"textarea\":\n xb(a);\n Lb(a);\n break;\n case \"option\":\n null != d.value && a.setAttribute(\"value\", \"\" + rb(d.value));\n break;\n case \"select\":\n a.multiple = !!d.multiple;\n c = d.value;\n null != c ? Hb(a, !!d.multiple, c, !1) : null != d.defaultValue && Hb(a, !!d.multiple, d.defaultValue, !0);\n break;\n default:\n \"function\" === typeof h.onClick && (a.onclick = sd);\n }\n Fd(e, d) && (b.effectTag |= 4);\n }\n null !== b.ref && (b.effectTag |= 128);\n }\n return null;\n case 6:\n if (a && null != b.stateNode) qi(a, b, a.memoizedProps, d);\n else {\n if (\"string\" !== typeof d && null === b.stateNode) throw Error(u(166));\n c = ch(bh.current);\n ch($g.current);\n Wh(b) ? (c = b.stateNode, d = b.memoizedProps, c[Md] = b, c.nodeValue !== d && (b.effectTag |= 4)) : (c = (9 === c.nodeType ? c : c.ownerDocument).createTextNode(d), c[Md] = b, b.stateNode = c);\n }\n return null;\n case 13:\n H(M);\n d = b.memoizedState;\n if (0 !== (b.effectTag & 64)) return b.expirationTime = c, b;\n c = null !== d;\n d = !1;\n null === a ? void 0 !== b.memoizedProps.fallback && Wh(b) : (e = a.memoizedState, d = null !== e, c || null === e || (e = a.child.sibling, null !== e && (f = b.firstEffect, null !== f ? (b.firstEffect = e, e.nextEffect = f) : (b.firstEffect = b.lastEffect = e, e.nextEffect = null), e.effectTag = 8)));\n if (c && !d && 0 !== (b.mode & 2)) {\n if (null === a && !0 !== b.memoizedProps.unstable_avoidThisFallback || 0 !== (M.current & 1)) S === ti && (S = ui);\n else {\n if (S === ti || S === ui) S = vi;\n 0 !== wi && null !== T && (xi(T, U), yi(T, wi));\n }\n }\n if (c || d) b.effectTag |= 4;\n return null;\n case 4:\n return eh(), oi(b), null;\n case 10:\n return og(b), null;\n case 17:\n return L(b.type) && Df(), null;\n case 19:\n H(M);\n d = b.memoizedState;\n if (null === d) return null;\n e = 0 !== (b.effectTag & 64);\n f = d.rendering;\n if (null === f) {\n if (e) ri(d, !1);\n else {\n if (S !== ti || null !== a && 0 !== (a.effectTag & 64)) for(f = b.child; null !== f;){\n a = hh(f);\n if (null !== a) {\n b.effectTag |= 64;\n ri(d, !1);\n e = a.updateQueue;\n null !== e && (b.updateQueue = e, b.effectTag |= 4);\n null === d.lastEffect && (b.firstEffect = null);\n b.lastEffect = d.lastEffect;\n for(d = b.child; null !== d;)e = d, f = c, e.effectTag &= 2, e.nextEffect = null, e.firstEffect = null, e.lastEffect = null, a = e.alternate, null === a ? (e.childExpirationTime = 0, e.expirationTime = f, e.child = null, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null) : (e.childExpirationTime = a.childExpirationTime, e.expirationTime = a.expirationTime, e.child = a.child, e.memoizedProps = a.memoizedProps, e.memoizedState = a.memoizedState, e.updateQueue = a.updateQueue, f = a.dependencies, e.dependencies = null === f ? null : {\n expirationTime: f.expirationTime,\n firstContext: f.firstContext,\n responders: f.responders\n }), d = d.sibling;\n I(M, M.current & 1 | 2);\n return b.child;\n }\n f = f.sibling;\n }\n }\n } else {\n if (!e) {\n if (a = hh(f), null !== a) {\n if (b.effectTag |= 64, e = !0, c = a.updateQueue, null !== c && (b.updateQueue = c, b.effectTag |= 4), ri(d, !0), null === d.tail && \"hidden\" === d.tailMode && !f.alternate) return b = b.lastEffect = d.lastEffect, null !== b && (b.nextEffect = null), null;\n } else 2 * $f() - d.renderingStartTime > d.tailExpiration && 1 < c && (b.effectTag |= 64, e = !0, ri(d, !1), b.expirationTime = b.childExpirationTime = c - 1);\n }\n d.isBackwards ? (f.sibling = b.child, b.child = f) : (c = d.last, null !== c ? c.sibling = f : b.child = f, d.last = f);\n }\n return null !== d.tail ? (0 === d.tailExpiration && (d.tailExpiration = $f() + 500), c = d.tail, d.rendering = c, d.tail = c.sibling, d.lastEffect = b.lastEffect, d.renderingStartTime = $f(), c.sibling = null, b = M.current, I(M, e ? b & 1 | 2 : b & 1), c) : null;\n }\n throw Error(u(156, b.tag));\n}\nfunction zi(a) {\n switch(a.tag){\n case 1:\n L(a.type) && Df();\n var b = a.effectTag;\n return b & 4096 ? (a.effectTag = b & -4097 | 64, a) : null;\n case 3:\n eh();\n H(K);\n H(J);\n b = a.effectTag;\n if (0 !== (b & 64)) throw Error(u(285));\n a.effectTag = b & -4097 | 64;\n return a;\n case 5:\n return gh(a), null;\n case 13:\n return H(M), b = a.effectTag, b & 4096 ? (a.effectTag = b & -4097 | 64, a) : null;\n case 19:\n return H(M), null;\n case 4:\n return eh(), null;\n case 10:\n return og(a), null;\n default:\n return null;\n }\n}\nfunction Ai(a, b) {\n return {\n value: a,\n source: b,\n stack: qb(b)\n };\n}\nvar Bi = \"function\" === typeof WeakSet ? WeakSet : Set;\nfunction Ci(a, b) {\n var c = b.source, d = b.stack;\n null === d && null !== c && (d = qb(c));\n null !== c && pb(c.type);\n b = b.value;\n null !== a && 1 === a.tag && pb(a.type);\n try {\n console.error(b);\n } catch (e) {\n setTimeout(function() {\n throw e;\n });\n }\n}\nfunction Di(a, b) {\n try {\n b.props = a.memoizedProps, b.state = a.memoizedState, b.componentWillUnmount();\n } catch (c) {\n Ei(a, c);\n }\n}\nfunction Fi(a) {\n var b = a.ref;\n if (null !== b) {\n if (\"function\" === typeof b) try {\n b(null);\n } catch (c) {\n Ei(a, c);\n }\n else b.current = null;\n }\n}\nfunction Gi(a, b) {\n switch(b.tag){\n case 0:\n case 11:\n case 15:\n case 22:\n return;\n case 1:\n if (b.effectTag & 256 && null !== a) {\n var c = a.memoizedProps, d = a.memoizedState;\n a = b.stateNode;\n b = a.getSnapshotBeforeUpdate(b.elementType === b.type ? c : ig(b.type, c), d);\n a.__reactInternalSnapshotBeforeUpdate = b;\n }\n return;\n case 3:\n case 5:\n case 6:\n case 4:\n case 17:\n return;\n }\n throw Error(u(163));\n}\nfunction Hi(a, b) {\n b = b.updateQueue;\n b = null !== b ? b.lastEffect : null;\n if (null !== b) {\n var c = b = b.next;\n do {\n if ((c.tag & a) === a) {\n var d = c.destroy;\n c.destroy = void 0;\n void 0 !== d && d();\n }\n c = c.next;\n }while (c !== b);\n }\n}\nfunction Ii(a, b) {\n b = b.updateQueue;\n b = null !== b ? b.lastEffect : null;\n if (null !== b) {\n var c = b = b.next;\n do {\n if ((c.tag & a) === a) {\n var d = c.create;\n c.destroy = d();\n }\n c = c.next;\n }while (c !== b);\n }\n}\nfunction Ji(a, b, c) {\n switch(c.tag){\n case 0:\n case 11:\n case 15:\n case 22:\n Ii(3, c);\n return;\n case 1:\n a = c.stateNode;\n if (c.effectTag & 4) {\n if (null === b) a.componentDidMount();\n else {\n var d = c.elementType === c.type ? b.memoizedProps : ig(c.type, b.memoizedProps);\n a.componentDidUpdate(d, b.memoizedState, a.__reactInternalSnapshotBeforeUpdate);\n }\n }\n b = c.updateQueue;\n null !== b && Cg(c, b, a);\n return;\n case 3:\n b = c.updateQueue;\n if (null !== b) {\n a = null;\n if (null !== c.child) switch(c.child.tag){\n case 5:\n a = c.child.stateNode;\n break;\n case 1:\n a = c.child.stateNode;\n }\n Cg(c, b, a);\n }\n return;\n case 5:\n a = c.stateNode;\n null === b && c.effectTag & 4 && Fd(c.type, c.memoizedProps) && a.focus();\n return;\n case 6:\n return;\n case 4:\n return;\n case 12:\n return;\n case 13:\n null === c.memoizedState && (c = c.alternate, null !== c && (c = c.memoizedState, null !== c && (c = c.dehydrated, null !== c && Vc(c))));\n return;\n case 19:\n case 17:\n case 20:\n case 21:\n return;\n }\n throw Error(u(163));\n}\nfunction Ki(a, b, c) {\n \"function\" === typeof Li && Li(b);\n switch(b.tag){\n case 0:\n case 11:\n case 14:\n case 15:\n case 22:\n a = b.updateQueue;\n if (null !== a && (a = a.lastEffect, null !== a)) {\n var d = a.next;\n cg(97 < c ? 97 : c, function() {\n var a = d;\n do {\n var c = a.destroy;\n if (void 0 !== c) {\n var g = b;\n try {\n c();\n } catch (h) {\n Ei(g, h);\n }\n }\n a = a.next;\n }while (a !== d);\n });\n }\n break;\n case 1:\n Fi(b);\n c = b.stateNode;\n \"function\" === typeof c.componentWillUnmount && Di(b, c);\n break;\n case 5:\n Fi(b);\n break;\n case 4:\n Mi(a, b, c);\n }\n}\nfunction Ni(a) {\n var b = a.alternate;\n a.return = null;\n a.child = null;\n a.memoizedState = null;\n a.updateQueue = null;\n a.dependencies = null;\n a.alternate = null;\n a.firstEffect = null;\n a.lastEffect = null;\n a.pendingProps = null;\n a.memoizedProps = null;\n a.stateNode = null;\n null !== b && Ni(b);\n}\nfunction Oi(a) {\n return 5 === a.tag || 3 === a.tag || 4 === a.tag;\n}\nfunction Pi(a) {\n a: {\n for(var b = a.return; null !== b;){\n if (Oi(b)) {\n var c = b;\n break a;\n }\n b = b.return;\n }\n throw Error(u(160));\n }\n b = c.stateNode;\n switch(c.tag){\n case 5:\n var d = !1;\n break;\n case 3:\n b = b.containerInfo;\n d = !0;\n break;\n case 4:\n b = b.containerInfo;\n d = !0;\n break;\n default:\n throw Error(u(161));\n }\n c.effectTag & 16 && (Rb(b, \"\"), c.effectTag &= -17);\n a: b: for(c = a;;){\n for(; null === c.sibling;){\n if (null === c.return || Oi(c.return)) {\n c = null;\n break a;\n }\n c = c.return;\n }\n c.sibling.return = c.return;\n for(c = c.sibling; 5 !== c.tag && 6 !== c.tag && 18 !== c.tag;){\n if (c.effectTag & 2) continue b;\n if (null === c.child || 4 === c.tag) continue b;\n else c.child.return = c, c = c.child;\n }\n if (!(c.effectTag & 2)) {\n c = c.stateNode;\n break a;\n }\n }\n d ? Qi(a, c, b) : Ri(a, c, b);\n}\nfunction Qi(a, b, c) {\n var d = a.tag, e = 5 === d || 6 === d;\n if (e) a = e ? a.stateNode : a.stateNode.instance, b ? 8 === c.nodeType ? c.parentNode.insertBefore(a, b) : c.insertBefore(a, b) : (8 === c.nodeType ? (b = c.parentNode, b.insertBefore(a, c)) : (b = c, b.appendChild(a)), c = c._reactRootContainer, null !== c && void 0 !== c || null !== b.onclick || (b.onclick = sd));\n else if (4 !== d && (a = a.child, null !== a)) for(Qi(a, b, c), a = a.sibling; null !== a;)Qi(a, b, c), a = a.sibling;\n}\nfunction Ri(a, b, c) {\n var d = a.tag, e = 5 === d || 6 === d;\n if (e) a = e ? a.stateNode : a.stateNode.instance, b ? c.insertBefore(a, b) : c.appendChild(a);\n else if (4 !== d && (a = a.child, null !== a)) for(Ri(a, b, c), a = a.sibling; null !== a;)Ri(a, b, c), a = a.sibling;\n}\nfunction Mi(a, b, c) {\n for(var d = b, e = !1, f, g;;){\n if (!e) {\n e = d.return;\n a: for(;;){\n if (null === e) throw Error(u(160));\n f = e.stateNode;\n switch(e.tag){\n case 5:\n g = !1;\n break a;\n case 3:\n f = f.containerInfo;\n g = !0;\n break a;\n case 4:\n f = f.containerInfo;\n g = !0;\n break a;\n }\n e = e.return;\n }\n e = !0;\n }\n if (5 === d.tag || 6 === d.tag) {\n a: for(var h = a, k = d, l = c, m = k;;)if (Ki(h, m, l), null !== m.child && 4 !== m.tag) m.child.return = m, m = m.child;\n else {\n if (m === k) break a;\n for(; null === m.sibling;){\n if (null === m.return || m.return === k) break a;\n m = m.return;\n }\n m.sibling.return = m.return;\n m = m.sibling;\n }\n g ? (h = f, k = d.stateNode, 8 === h.nodeType ? h.parentNode.removeChild(k) : h.removeChild(k)) : f.removeChild(d.stateNode);\n } else if (4 === d.tag) {\n if (null !== d.child) {\n f = d.stateNode.containerInfo;\n g = !0;\n d.child.return = d;\n d = d.child;\n continue;\n }\n } else if (Ki(a, d, c), null !== d.child) {\n d.child.return = d;\n d = d.child;\n continue;\n }\n if (d === b) break;\n for(; null === d.sibling;){\n if (null === d.return || d.return === b) return;\n d = d.return;\n 4 === d.tag && (e = !1);\n }\n d.sibling.return = d.return;\n d = d.sibling;\n }\n}\nfunction Si(a, b) {\n switch(b.tag){\n case 0:\n case 11:\n case 14:\n case 15:\n case 22:\n Hi(3, b);\n return;\n case 1:\n return;\n case 5:\n var c = b.stateNode;\n if (null != c) {\n var d = b.memoizedProps, e = null !== a ? a.memoizedProps : d;\n a = b.type;\n var f = b.updateQueue;\n b.updateQueue = null;\n if (null !== f) {\n c[Nd] = d;\n \"input\" === a && \"radio\" === d.type && null != d.name && Bb(c, d);\n pd(a, e);\n b = pd(a, d);\n for(e = 0; e < f.length; e += 2){\n var g = f[e], h = f[e + 1];\n \"style\" === g ? md(c, h) : \"dangerouslySetInnerHTML\" === g ? Qb(c, h) : \"children\" === g ? Rb(c, h) : Xa(c, g, h, b);\n }\n switch(a){\n case \"input\":\n Cb(c, d);\n break;\n case \"textarea\":\n Kb(c, d);\n break;\n case \"select\":\n b = c._wrapperState.wasMultiple, c._wrapperState.wasMultiple = !!d.multiple, a = d.value, null != a ? Hb(c, !!d.multiple, a, !1) : b !== !!d.multiple && (null != d.defaultValue ? Hb(c, !!d.multiple, d.defaultValue, !0) : Hb(c, !!d.multiple, d.multiple ? [] : \"\", !1));\n }\n }\n }\n return;\n case 6:\n if (null === b.stateNode) throw Error(u(162));\n b.stateNode.nodeValue = b.memoizedProps;\n return;\n case 3:\n b = b.stateNode;\n b.hydrate && (b.hydrate = !1, Vc(b.containerInfo));\n return;\n case 12:\n return;\n case 13:\n c = b;\n null === b.memoizedState ? d = !1 : (d = !0, c = b.child, Ti = $f());\n if (null !== c) a: for(a = c;;){\n if (5 === a.tag) f = a.stateNode, d ? (f = f.style, \"function\" === typeof f.setProperty ? f.setProperty(\"display\", \"none\", \"important\") : f.display = \"none\") : (f = a.stateNode, e = a.memoizedProps.style, e = void 0 !== e && null !== e && e.hasOwnProperty(\"display\") ? e.display : null, f.style.display = ld(\"display\", e));\n else if (6 === a.tag) a.stateNode.nodeValue = d ? \"\" : a.memoizedProps;\n else if (13 === a.tag && null !== a.memoizedState && null === a.memoizedState.dehydrated) {\n f = a.child.sibling;\n f.return = a;\n a = f;\n continue;\n } else if (null !== a.child) {\n a.child.return = a;\n a = a.child;\n continue;\n }\n if (a === c) break;\n for(; null === a.sibling;){\n if (null === a.return || a.return === c) break a;\n a = a.return;\n }\n a.sibling.return = a.return;\n a = a.sibling;\n }\n Ui(b);\n return;\n case 19:\n Ui(b);\n return;\n case 17:\n return;\n }\n throw Error(u(163));\n}\nfunction Ui(a) {\n var b = a.updateQueue;\n if (null !== b) {\n a.updateQueue = null;\n var c = a.stateNode;\n null === c && (c = a.stateNode = new Bi);\n b.forEach(function(b) {\n var d = Vi.bind(null, a, b);\n c.has(b) || (c.add(b), b.then(d, d));\n });\n }\n}\nvar Wi = \"function\" === typeof WeakMap ? WeakMap : Map;\nfunction Xi(a, b, c) {\n c = wg(c, null);\n c.tag = 3;\n c.payload = {\n element: null\n };\n var d = b.value;\n c.callback = function() {\n Yi || (Yi = !0, Zi = d);\n Ci(a, b);\n };\n return c;\n}\nfunction $i(a, b, c) {\n c = wg(c, null);\n c.tag = 3;\n var d = a.type.getDerivedStateFromError;\n if (\"function\" === typeof d) {\n var e = b.value;\n c.payload = function() {\n Ci(a, b);\n return d(e);\n };\n }\n var f = a.stateNode;\n null !== f && \"function\" === typeof f.componentDidCatch && (c.callback = function() {\n \"function\" !== typeof d && (null === aj ? aj = new Set([\n this\n ]) : aj.add(this), Ci(a, b));\n var c = b.stack;\n this.componentDidCatch(b.value, {\n componentStack: null !== c ? c : \"\"\n });\n });\n return c;\n}\nvar bj = Math.ceil, cj = Wa.ReactCurrentDispatcher, dj = Wa.ReactCurrentOwner, V = 0, ej = 8, fj = 16, gj = 32, ti = 0, hj = 1, ij = 2, ui = 3, vi = 4, jj = 5, W = V, T = null, X = null, U = 0, S = ti, kj = null, lj = 1073741823, mj = 1073741823, nj = null, wi = 0, oj = !1, Ti = 0, pj = 500, Y = null, Yi = !1, Zi = null, aj = null, qj = !1, rj = null, sj = 90, tj = null, uj = 0, vj = null, wj = 0;\nfunction Gg() {\n return (W & (fj | gj)) !== V ? 1073741821 - ($f() / 10 | 0) : 0 !== wj ? wj : wj = 1073741821 - ($f() / 10 | 0);\n}\nfunction Hg(a, b, c) {\n b = b.mode;\n if (0 === (b & 2)) return 1073741823;\n var d = ag();\n if (0 === (b & 4)) return 99 === d ? 1073741823 : 1073741822;\n if ((W & fj) !== V) return U;\n if (null !== c) a = hg(a, c.timeoutMs | 0 || 5E3, 250);\n else switch(d){\n case 99:\n a = 1073741823;\n break;\n case 98:\n a = hg(a, 150, 100);\n break;\n case 97:\n case 96:\n a = hg(a, 5E3, 250);\n break;\n case 95:\n a = 2;\n break;\n default:\n throw Error(u(326));\n }\n null !== T && a === U && --a;\n return a;\n}\nfunction Ig(a, b) {\n if (50 < uj) throw uj = 0, vj = null, Error(u(185));\n a = xj(a, b);\n if (null !== a) {\n var c = ag();\n 1073741823 === b ? (W & ej) !== V && (W & (fj | gj)) === V ? yj(a) : (Z(a), W === V && gg()) : Z(a);\n (W & 4) === V || 98 !== c && 99 !== c || (null === tj ? tj = new Map([\n [\n a,\n b\n ]\n ]) : (c = tj.get(a), (void 0 === c || c > b) && tj.set(a, b)));\n }\n}\nfunction xj(a, b) {\n a.expirationTime < b && (a.expirationTime = b);\n var c = a.alternate;\n null !== c && c.expirationTime < b && (c.expirationTime = b);\n var d = a.return, e = null;\n if (null === d && 3 === a.tag) e = a.stateNode;\n else for(; null !== d;){\n c = d.alternate;\n d.childExpirationTime < b && (d.childExpirationTime = b);\n null !== c && c.childExpirationTime < b && (c.childExpirationTime = b);\n if (null === d.return && 3 === d.tag) {\n e = d.stateNode;\n break;\n }\n d = d.return;\n }\n null !== e && (T === e && (Bg(b), S === vi && xi(e, U)), yi(e, b));\n return e;\n}\nfunction zj(a) {\n var b = a.lastExpiredTime;\n if (0 !== b) return b;\n b = a.firstPendingTime;\n if (!Aj(a, b)) return b;\n var c = a.lastPingedTime;\n a = a.nextKnownPendingLevel;\n a = c > a ? c : a;\n return 2 >= a && b !== a ? 0 : a;\n}\nfunction Z(a) {\n if (0 !== a.lastExpiredTime) a.callbackExpirationTime = 1073741823, a.callbackPriority = 99, a.callbackNode = eg(yj.bind(null, a));\n else {\n var b = zj(a), c = a.callbackNode;\n if (0 === b) null !== c && (a.callbackNode = null, a.callbackExpirationTime = 0, a.callbackPriority = 90);\n else {\n var d = Gg();\n 1073741823 === b ? d = 99 : 1 === b || 2 === b ? d = 95 : (d = 10 * (1073741821 - b) - 10 * (1073741821 - d), d = 0 >= d ? 99 : 250 >= d ? 98 : 5250 >= d ? 97 : 95);\n if (null !== c) {\n var e = a.callbackPriority;\n if (a.callbackExpirationTime === b && e >= d) return;\n c !== Tf && Kf(c);\n }\n a.callbackExpirationTime = b;\n a.callbackPriority = d;\n b = 1073741823 === b ? eg(yj.bind(null, a)) : dg(d, Bj.bind(null, a), {\n timeout: 10 * (1073741821 - b) - $f()\n });\n a.callbackNode = b;\n }\n }\n}\nfunction Bj(a, b) {\n wj = 0;\n if (b) return b = Gg(), Cj(a, b), Z(a), null;\n var c = zj(a);\n if (0 !== c) {\n b = a.callbackNode;\n if ((W & (fj | gj)) !== V) throw Error(u(327));\n Dj();\n a === T && c === U || Ej(a, c);\n if (null !== X) {\n var d = W;\n W |= fj;\n var e = Fj();\n for(;;)try {\n Gj();\n break;\n } catch (h) {\n Hj(a, h);\n }\n ng();\n W = d;\n cj.current = e;\n if (S === hj) throw b = kj, Ej(a, c), xi(a, c), Z(a), b;\n if (null === X) switch(e = a.finishedWork = a.current.alternate, a.finishedExpirationTime = c, d = S, T = null, d){\n case ti:\n case hj:\n throw Error(u(345));\n case ij:\n Cj(a, 2 < c ? 2 : c);\n break;\n case ui:\n xi(a, c);\n d = a.lastSuspendedTime;\n c === d && (a.nextKnownPendingLevel = Ij(e));\n if (1073741823 === lj && (e = Ti + pj - $f(), 10 < e)) {\n if (oj) {\n var f = a.lastPingedTime;\n if (0 === f || f >= c) {\n a.lastPingedTime = c;\n Ej(a, c);\n break;\n }\n }\n f = zj(a);\n if (0 !== f && f !== c) break;\n if (0 !== d && d !== c) {\n a.lastPingedTime = d;\n break;\n }\n a.timeoutHandle = Hd(Jj.bind(null, a), e);\n break;\n }\n Jj(a);\n break;\n case vi:\n xi(a, c);\n d = a.lastSuspendedTime;\n c === d && (a.nextKnownPendingLevel = Ij(e));\n if (oj && (e = a.lastPingedTime, 0 === e || e >= c)) {\n a.lastPingedTime = c;\n Ej(a, c);\n break;\n }\n e = zj(a);\n if (0 !== e && e !== c) break;\n if (0 !== d && d !== c) {\n a.lastPingedTime = d;\n break;\n }\n 1073741823 !== mj ? d = 10 * (1073741821 - mj) - $f() : 1073741823 === lj ? d = 0 : (d = 10 * (1073741821 - lj) - 5E3, e = $f(), c = 10 * (1073741821 - c) - e, d = e - d, 0 > d && (d = 0), d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3E3 > d ? 3E3 : 4320 > d ? 4320 : 1960 * bj(d / 1960)) - d, c < d && (d = c));\n if (10 < d) {\n a.timeoutHandle = Hd(Jj.bind(null, a), d);\n break;\n }\n Jj(a);\n break;\n case jj:\n if (1073741823 !== lj && null !== nj) {\n f = lj;\n var g = nj;\n d = g.busyMinDurationMs | 0;\n 0 >= d ? d = 0 : (e = g.busyDelayMs | 0, f = $f() - (10 * (1073741821 - f) - (g.timeoutMs | 0 || 5E3)), d = f <= e ? 0 : e + d - f);\n if (10 < d) {\n xi(a, c);\n a.timeoutHandle = Hd(Jj.bind(null, a), d);\n break;\n }\n }\n Jj(a);\n break;\n default:\n throw Error(u(329));\n }\n Z(a);\n if (a.callbackNode === b) return Bj.bind(null, a);\n }\n }\n return null;\n}\nfunction yj(a) {\n var b = a.lastExpiredTime;\n b = 0 !== b ? b : 1073741823;\n if ((W & (fj | gj)) !== V) throw Error(u(327));\n Dj();\n a === T && b === U || Ej(a, b);\n if (null !== X) {\n var c = W;\n W |= fj;\n var d = Fj();\n for(;;)try {\n Kj();\n break;\n } catch (e) {\n Hj(a, e);\n }\n ng();\n W = c;\n cj.current = d;\n if (S === hj) throw c = kj, Ej(a, b), xi(a, b), Z(a), c;\n if (null !== X) throw Error(u(261));\n a.finishedWork = a.current.alternate;\n a.finishedExpirationTime = b;\n T = null;\n Jj(a);\n Z(a);\n }\n return null;\n}\nfunction Lj() {\n if (null !== tj) {\n var a = tj;\n tj = null;\n a.forEach(function(a, c) {\n Cj(c, a);\n Z(c);\n });\n gg();\n }\n}\nfunction Mj(a, b) {\n var c = W;\n W |= 1;\n try {\n return a(b);\n } finally{\n W = c, W === V && gg();\n }\n}\nfunction Nj(a, b) {\n var c = W;\n W &= -2;\n W |= ej;\n try {\n return a(b);\n } finally{\n W = c, W === V && gg();\n }\n}\nfunction Ej(a, b) {\n a.finishedWork = null;\n a.finishedExpirationTime = 0;\n var c = a.timeoutHandle;\n -1 !== c && (a.timeoutHandle = -1, Id(c));\n if (null !== X) for(c = X.return; null !== c;){\n var d = c;\n switch(d.tag){\n case 1:\n d = d.type.childContextTypes;\n null !== d && void 0 !== d && Df();\n break;\n case 3:\n eh();\n H(K);\n H(J);\n break;\n case 5:\n gh(d);\n break;\n case 4:\n eh();\n break;\n case 13:\n H(M);\n break;\n case 19:\n H(M);\n break;\n case 10:\n og(d);\n }\n c = c.return;\n }\n T = a;\n X = Sg(a.current, null);\n U = b;\n S = ti;\n kj = null;\n mj = lj = 1073741823;\n nj = null;\n wi = 0;\n oj = !1;\n}\nfunction Hj(a, b) {\n do {\n try {\n ng();\n jh.current = sh;\n if (mh) for(var c = N.memoizedState; null !== c;){\n var d = c.queue;\n null !== d && (d.pending = null);\n c = c.next;\n }\n lh = 0;\n P = O = N = null;\n mh = !1;\n if (null === X || null === X.return) return S = hj, kj = b, X = null;\n a: {\n var e = a, f = X.return, g = X, h = b;\n b = U;\n g.effectTag |= 2048;\n g.firstEffect = g.lastEffect = null;\n if (null !== h && \"object\" === typeof h && \"function\" === typeof h.then) {\n var k = h;\n if (0 === (g.mode & 2)) {\n var l = g.alternate;\n l ? (g.updateQueue = l.updateQueue, g.memoizedState = l.memoizedState, g.expirationTime = l.expirationTime) : (g.updateQueue = null, g.memoizedState = null);\n }\n var m = 0 !== (M.current & 1), p = f;\n do {\n var x;\n if (x = 13 === p.tag) {\n var z = p.memoizedState;\n if (null !== z) x = null !== z.dehydrated ? !0 : !1;\n else {\n var ca = p.memoizedProps;\n x = void 0 === ca.fallback ? !1 : !0 !== ca.unstable_avoidThisFallback ? !0 : m ? !1 : !0;\n }\n }\n if (x) {\n var D = p.updateQueue;\n if (null === D) {\n var t = new Set;\n t.add(k);\n p.updateQueue = t;\n } else D.add(k);\n if (0 === (p.mode & 2)) {\n p.effectTag |= 64;\n g.effectTag &= -2981;\n if (1 === g.tag) {\n if (null === g.alternate) g.tag = 17;\n else {\n var y = wg(1073741823, null);\n y.tag = 2;\n xg(g, y);\n }\n }\n g.expirationTime = 1073741823;\n break a;\n }\n h = void 0;\n g = b;\n var A = e.pingCache;\n null === A ? (A = e.pingCache = new Wi, h = new Set, A.set(k, h)) : (h = A.get(k), void 0 === h && (h = new Set, A.set(k, h)));\n if (!h.has(g)) {\n h.add(g);\n var q = Oj.bind(null, e, k, g);\n k.then(q, q);\n }\n p.effectTag |= 4096;\n p.expirationTime = b;\n break a;\n }\n p = p.return;\n }while (null !== p);\n h = Error((pb(g.type) || \"A React component\") + \" suspended while rendering, but no fallback UI was specified.\\n\\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.\" + qb(g));\n }\n S !== jj && (S = ij);\n h = Ai(h, g);\n p = f;\n do {\n switch(p.tag){\n case 3:\n k = h;\n p.effectTag |= 4096;\n p.expirationTime = b;\n var B = Xi(p, k, b);\n yg(p, B);\n break a;\n case 1:\n k = h;\n var w = p.type, ub = p.stateNode;\n if (0 === (p.effectTag & 64) && (\"function\" === typeof w.getDerivedStateFromError || null !== ub && \"function\" === typeof ub.componentDidCatch && (null === aj || !aj.has(ub)))) {\n p.effectTag |= 4096;\n p.expirationTime = b;\n var vb = $i(p, k, b);\n yg(p, vb);\n break a;\n }\n }\n p = p.return;\n }while (null !== p);\n }\n X = Pj(X);\n } catch (Xc) {\n b = Xc;\n continue;\n }\n break;\n }while (1);\n}\nfunction Fj() {\n var a = cj.current;\n cj.current = sh;\n return null === a ? sh : a;\n}\nfunction Ag(a, b) {\n a < lj && 2 < a && (lj = a);\n null !== b && a < mj && 2 < a && (mj = a, nj = b);\n}\nfunction Bg(a) {\n a > wi && (wi = a);\n}\nfunction Kj() {\n for(; null !== X;)X = Qj(X);\n}\nfunction Gj() {\n for(; null !== X && !Uf();)X = Qj(X);\n}\nfunction Qj(a) {\n var b = Rj(a.alternate, a, U);\n a.memoizedProps = a.pendingProps;\n null === b && (b = Pj(a));\n dj.current = null;\n return b;\n}\nfunction Pj(a) {\n X = a;\n do {\n var b = X.alternate;\n a = X.return;\n if (0 === (X.effectTag & 2048)) {\n b = si(b, X, U);\n if (1 === U || 1 !== X.childExpirationTime) {\n for(var c = 0, d = X.child; null !== d;){\n var e = d.expirationTime, f = d.childExpirationTime;\n e > c && (c = e);\n f > c && (c = f);\n d = d.sibling;\n }\n X.childExpirationTime = c;\n }\n if (null !== b) return b;\n null !== a && 0 === (a.effectTag & 2048) && (null === a.firstEffect && (a.firstEffect = X.firstEffect), null !== X.lastEffect && (null !== a.lastEffect && (a.lastEffect.nextEffect = X.firstEffect), a.lastEffect = X.lastEffect), 1 < X.effectTag && (null !== a.lastEffect ? a.lastEffect.nextEffect = X : a.firstEffect = X, a.lastEffect = X));\n } else {\n b = zi(X);\n if (null !== b) return b.effectTag &= 2047, b;\n null !== a && (a.firstEffect = a.lastEffect = null, a.effectTag |= 2048);\n }\n b = X.sibling;\n if (null !== b) return b;\n X = a;\n }while (null !== X);\n S === ti && (S = jj);\n return null;\n}\nfunction Ij(a) {\n var b = a.expirationTime;\n a = a.childExpirationTime;\n return b > a ? b : a;\n}\nfunction Jj(a) {\n var b = ag();\n cg(99, Sj.bind(null, a, b));\n return null;\n}\nfunction Sj(a, b) {\n do Dj();\n while (null !== rj);\n if ((W & (fj | gj)) !== V) throw Error(u(327));\n var c = a.finishedWork, d = a.finishedExpirationTime;\n if (null === c) return null;\n a.finishedWork = null;\n a.finishedExpirationTime = 0;\n if (c === a.current) throw Error(u(177));\n a.callbackNode = null;\n a.callbackExpirationTime = 0;\n a.callbackPriority = 90;\n a.nextKnownPendingLevel = 0;\n var e = Ij(c);\n a.firstPendingTime = e;\n d <= a.lastSuspendedTime ? a.firstSuspendedTime = a.lastSuspendedTime = a.nextKnownPendingLevel = 0 : d <= a.firstSuspendedTime && (a.firstSuspendedTime = d - 1);\n d <= a.lastPingedTime && (a.lastPingedTime = 0);\n d <= a.lastExpiredTime && (a.lastExpiredTime = 0);\n a === T && (X = T = null, U = 0);\n 1 < c.effectTag ? null !== c.lastEffect ? (c.lastEffect.nextEffect = c, e = c.firstEffect) : e = c : e = c.firstEffect;\n if (null !== e) {\n var f = W;\n W |= gj;\n dj.current = null;\n Dd = fd;\n var g = xd();\n if (yd(g)) {\n if (\"selectionStart\" in g) var h = {\n start: g.selectionStart,\n end: g.selectionEnd\n };\n else a: {\n h = (h = g.ownerDocument) && h.defaultView || window;\n var k = h.getSelection && h.getSelection();\n if (k && 0 !== k.rangeCount) {\n h = k.anchorNode;\n var l = k.anchorOffset, m = k.focusNode;\n k = k.focusOffset;\n try {\n h.nodeType, m.nodeType;\n } catch (wb) {\n h = null;\n break a;\n }\n var p = 0, x = -1, z = -1, ca = 0, D = 0, t = g, y = null;\n b: for(;;){\n for(var A;;){\n t !== h || 0 !== l && 3 !== t.nodeType || (x = p + l);\n t !== m || 0 !== k && 3 !== t.nodeType || (z = p + k);\n 3 === t.nodeType && (p += t.nodeValue.length);\n if (null === (A = t.firstChild)) break;\n y = t;\n t = A;\n }\n for(;;){\n if (t === g) break b;\n y === h && ++ca === l && (x = p);\n y === m && ++D === k && (z = p);\n if (null !== (A = t.nextSibling)) break;\n t = y;\n y = t.parentNode;\n }\n t = A;\n }\n h = -1 === x || -1 === z ? null : {\n start: x,\n end: z\n };\n } else h = null;\n }\n h = h || {\n start: 0,\n end: 0\n };\n } else h = null;\n Ed = {\n activeElementDetached: null,\n focusedElem: g,\n selectionRange: h\n };\n fd = !1;\n Y = e;\n do try {\n Tj();\n } catch (wb) {\n if (null === Y) throw Error(u(330));\n Ei(Y, wb);\n Y = Y.nextEffect;\n }\n while (null !== Y);\n Y = e;\n do try {\n for(g = a, h = b; null !== Y;){\n var q = Y.effectTag;\n q & 16 && Rb(Y.stateNode, \"\");\n if (q & 128) {\n var B = Y.alternate;\n if (null !== B) {\n var w = B.ref;\n null !== w && (\"function\" === typeof w ? w(null) : w.current = null);\n }\n }\n switch(q & 1038){\n case 2:\n Pi(Y);\n Y.effectTag &= -3;\n break;\n case 6:\n Pi(Y);\n Y.effectTag &= -3;\n Si(Y.alternate, Y);\n break;\n case 1024:\n Y.effectTag &= -1025;\n break;\n case 1028:\n Y.effectTag &= -1025;\n Si(Y.alternate, Y);\n break;\n case 4:\n Si(Y.alternate, Y);\n break;\n case 8:\n l = Y, Mi(g, l, h), Ni(l);\n }\n Y = Y.nextEffect;\n }\n } catch (wb) {\n if (null === Y) throw Error(u(330));\n Ei(Y, wb);\n Y = Y.nextEffect;\n }\n while (null !== Y);\n w = Ed;\n B = xd();\n q = w.focusedElem;\n h = w.selectionRange;\n if (B !== q && q && q.ownerDocument && wd(q.ownerDocument.documentElement, q)) {\n null !== h && yd(q) && (B = h.start, w = h.end, void 0 === w && (w = B), \"selectionStart\" in q ? (q.selectionStart = B, q.selectionEnd = Math.min(w, q.value.length)) : (w = (B = q.ownerDocument || document) && B.defaultView || window, w.getSelection && (w = w.getSelection(), l = q.textContent.length, g = Math.min(h.start, l), h = void 0 === h.end ? g : Math.min(h.end, l), !w.extend && g > h && (l = h, h = g, g = l), l = vd(q, g), m = vd(q, h), l && m && (1 !== w.rangeCount || w.anchorNode !== l.node || w.anchorOffset !== l.offset || w.focusNode !== m.node || w.focusOffset !== m.offset) && (B = B.createRange(), B.setStart(l.node, l.offset), w.removeAllRanges(), g > h ? (w.addRange(B), w.extend(m.node, m.offset)) : (B.setEnd(m.node, m.offset), w.addRange(B))))));\n B = [];\n for(w = q; w = w.parentNode;)1 === w.nodeType && B.push({\n element: w,\n left: w.scrollLeft,\n top: w.scrollTop\n });\n \"function\" === typeof q.focus && q.focus();\n for(q = 0; q < B.length; q++)w = B[q], w.element.scrollLeft = w.left, w.element.scrollTop = w.top;\n }\n fd = !!Dd;\n Ed = Dd = null;\n a.current = c;\n Y = e;\n do try {\n for(q = a; null !== Y;){\n var ub = Y.effectTag;\n ub & 36 && Ji(q, Y.alternate, Y);\n if (ub & 128) {\n B = void 0;\n var vb = Y.ref;\n if (null !== vb) {\n var Xc = Y.stateNode;\n switch(Y.tag){\n case 5:\n B = Xc;\n break;\n default:\n B = Xc;\n }\n \"function\" === typeof vb ? vb(B) : vb.current = B;\n }\n }\n Y = Y.nextEffect;\n }\n } catch (wb) {\n if (null === Y) throw Error(u(330));\n Ei(Y, wb);\n Y = Y.nextEffect;\n }\n while (null !== Y);\n Y = null;\n Vf();\n W = f;\n } else a.current = c;\n if (qj) qj = !1, rj = a, sj = b;\n else for(Y = e; null !== Y;)b = Y.nextEffect, Y.nextEffect = null, Y = b;\n b = a.firstPendingTime;\n 0 === b && (aj = null);\n 1073741823 === b ? a === vj ? uj++ : (uj = 0, vj = a) : uj = 0;\n \"function\" === typeof Uj && Uj(c.stateNode, d);\n Z(a);\n if (Yi) throw Yi = !1, a = Zi, Zi = null, a;\n if ((W & ej) !== V) return null;\n gg();\n return null;\n}\nfunction Tj() {\n for(; null !== Y;){\n var a = Y.effectTag;\n 0 !== (a & 256) && Gi(Y.alternate, Y);\n 0 === (a & 512) || qj || (qj = !0, dg(97, function() {\n Dj();\n return null;\n }));\n Y = Y.nextEffect;\n }\n}\nfunction Dj() {\n if (90 !== sj) {\n var a = 97 < sj ? 97 : sj;\n sj = 90;\n return cg(a, Vj);\n }\n}\nfunction Vj() {\n if (null === rj) return !1;\n var a = rj;\n rj = null;\n if ((W & (fj | gj)) !== V) throw Error(u(331));\n var b = W;\n W |= gj;\n for(a = a.current.firstEffect; null !== a;){\n try {\n var c = a;\n if (0 !== (c.effectTag & 512)) switch(c.tag){\n case 0:\n case 11:\n case 15:\n case 22:\n Hi(5, c), Ii(5, c);\n }\n } catch (d) {\n if (null === a) throw Error(u(330));\n Ei(a, d);\n }\n c = a.nextEffect;\n a.nextEffect = null;\n a = c;\n }\n W = b;\n gg();\n return !0;\n}\nfunction Wj(a, b, c) {\n b = Ai(c, b);\n b = Xi(a, b, 1073741823);\n xg(a, b);\n a = xj(a, 1073741823);\n null !== a && Z(a);\n}\nfunction Ei(a, b) {\n if (3 === a.tag) Wj(a, a, b);\n else for(var c = a.return; null !== c;){\n if (3 === c.tag) {\n Wj(c, a, b);\n break;\n } else if (1 === c.tag) {\n var d = c.stateNode;\n if (\"function\" === typeof c.type.getDerivedStateFromError || \"function\" === typeof d.componentDidCatch && (null === aj || !aj.has(d))) {\n a = Ai(b, a);\n a = $i(c, a, 1073741823);\n xg(c, a);\n c = xj(c, 1073741823);\n null !== c && Z(c);\n break;\n }\n }\n c = c.return;\n }\n}\nfunction Oj(a, b, c) {\n var d = a.pingCache;\n null !== d && d.delete(b);\n T === a && U === c ? S === vi || S === ui && 1073741823 === lj && $f() - Ti < pj ? Ej(a, U) : oj = !0 : Aj(a, c) && (b = a.lastPingedTime, 0 !== b && b < c || (a.lastPingedTime = c, Z(a)));\n}\nfunction Vi(a, b) {\n var c = a.stateNode;\n null !== c && c.delete(b);\n b = 0;\n 0 === b && (b = Gg(), b = Hg(b, a, null));\n a = xj(a, b);\n null !== a && Z(a);\n}\nvar Rj;\nRj = function(a, b, c) {\n var d = b.expirationTime;\n if (null !== a) {\n var e = b.pendingProps;\n if (a.memoizedProps !== e || K.current) rg = !0;\n else {\n if (d < c) {\n rg = !1;\n switch(b.tag){\n case 3:\n hi(b);\n Xh();\n break;\n case 5:\n fh(b);\n if (b.mode & 4 && 1 !== c && e.hidden) return b.expirationTime = b.childExpirationTime = 1, null;\n break;\n case 1:\n L(b.type) && Gf(b);\n break;\n case 4:\n dh(b, b.stateNode.containerInfo);\n break;\n case 10:\n d = b.memoizedProps.value;\n e = b.type._context;\n I(jg, e._currentValue);\n e._currentValue = d;\n break;\n case 13:\n if (null !== b.memoizedState) {\n d = b.child.childExpirationTime;\n if (0 !== d && d >= c) return ji(a, b, c);\n I(M, M.current & 1);\n b = $h(a, b, c);\n return null !== b ? b.sibling : null;\n }\n I(M, M.current & 1);\n break;\n case 19:\n d = b.childExpirationTime >= c;\n if (0 !== (a.effectTag & 64)) {\n if (d) return mi(a, b, c);\n b.effectTag |= 64;\n }\n e = b.memoizedState;\n null !== e && (e.rendering = null, e.tail = null);\n I(M, M.current);\n if (!d) return null;\n }\n return $h(a, b, c);\n }\n rg = !1;\n }\n } else rg = !1;\n b.expirationTime = 0;\n switch(b.tag){\n case 2:\n d = b.type;\n null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2);\n a = b.pendingProps;\n e = Cf(b, J.current);\n qg(b, c);\n e = oh(null, b, d, a, e, c);\n b.effectTag |= 1;\n if (\"object\" === typeof e && null !== e && \"function\" === typeof e.render && void 0 === e.$$typeof) {\n b.tag = 1;\n b.memoizedState = null;\n b.updateQueue = null;\n if (L(d)) {\n var f = !0;\n Gf(b);\n } else f = !1;\n b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null;\n ug(b);\n var g = d.getDerivedStateFromProps;\n \"function\" === typeof g && Fg(b, d, g, a);\n e.updater = Jg;\n b.stateNode = e;\n e._reactInternalFiber = b;\n Ng(b, d, a, c);\n b = gi(null, b, d, !0, f, c);\n } else b.tag = 0, R(null, b, e, c), b = b.child;\n return b;\n case 16:\n a: {\n e = b.elementType;\n null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2);\n a = b.pendingProps;\n ob(e);\n if (1 !== e._status) throw e._result;\n e = e._result;\n b.type = e;\n f = b.tag = Xj(e);\n a = ig(e, a);\n switch(f){\n case 0:\n b = di(null, b, e, a, c);\n break a;\n case 1:\n b = fi(null, b, e, a, c);\n break a;\n case 11:\n b = Zh(null, b, e, a, c);\n break a;\n case 14:\n b = ai(null, b, e, ig(e.type, a), d, c);\n break a;\n }\n throw Error(u(306, e, \"\"));\n }\n return b;\n case 0:\n return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : ig(d, e), di(a, b, d, e, c);\n case 1:\n return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : ig(d, e), fi(a, b, d, e, c);\n case 3:\n hi(b);\n d = b.updateQueue;\n if (null === a || null === d) throw Error(u(282));\n d = b.pendingProps;\n e = b.memoizedState;\n e = null !== e ? e.element : null;\n vg(a, b);\n zg(b, d, null, c);\n d = b.memoizedState.element;\n if (d === e) Xh(), b = $h(a, b, c);\n else {\n if (e = b.stateNode.hydrate) Ph = Jd(b.stateNode.containerInfo.firstChild), Oh = b, e = Qh = !0;\n if (e) for(c = Yg(b, null, d, c), b.child = c; c;)c.effectTag = c.effectTag & -3 | 1024, c = c.sibling;\n else R(a, b, d, c), Xh();\n b = b.child;\n }\n return b;\n case 5:\n return fh(b), null === a && Uh(b), d = b.type, e = b.pendingProps, f = null !== a ? a.memoizedProps : null, g = e.children, Gd(d, e) ? g = null : null !== f && Gd(d, f) && (b.effectTag |= 16), ei(a, b), b.mode & 4 && 1 !== c && e.hidden ? (b.expirationTime = b.childExpirationTime = 1, b = null) : (R(a, b, g, c), b = b.child), b;\n case 6:\n return null === a && Uh(b), null;\n case 13:\n return ji(a, b, c);\n case 4:\n return dh(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = Xg(b, null, d, c) : R(a, b, d, c), b.child;\n case 11:\n return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : ig(d, e), Zh(a, b, d, e, c);\n case 7:\n return R(a, b, b.pendingProps, c), b.child;\n case 8:\n return R(a, b, b.pendingProps.children, c), b.child;\n case 12:\n return R(a, b, b.pendingProps.children, c), b.child;\n case 10:\n a: {\n d = b.type._context;\n e = b.pendingProps;\n g = b.memoizedProps;\n f = e.value;\n var h = b.type._context;\n I(jg, h._currentValue);\n h._currentValue = f;\n if (null !== g) {\n if (h = g.value, f = $e(h, f) ? 0 : (\"function\" === typeof d._calculateChangedBits ? d._calculateChangedBits(h, f) : 1073741823) | 0, 0 === f) {\n if (g.children === e.children && !K.current) {\n b = $h(a, b, c);\n break a;\n }\n } else for(h = b.child, null !== h && (h.return = b); null !== h;){\n var k = h.dependencies;\n if (null !== k) {\n g = h.child;\n for(var l = k.firstContext; null !== l;){\n if (l.context === d && 0 !== (l.observedBits & f)) {\n 1 === h.tag && (l = wg(c, null), l.tag = 2, xg(h, l));\n h.expirationTime < c && (h.expirationTime = c);\n l = h.alternate;\n null !== l && l.expirationTime < c && (l.expirationTime = c);\n pg(h.return, c);\n k.expirationTime < c && (k.expirationTime = c);\n break;\n }\n l = l.next;\n }\n } else g = 10 === h.tag ? h.type === b.type ? null : h.child : h.child;\n if (null !== g) g.return = h;\n else for(g = h; null !== g;){\n if (g === b) {\n g = null;\n break;\n }\n h = g.sibling;\n if (null !== h) {\n h.return = g.return;\n g = h;\n break;\n }\n g = g.return;\n }\n h = g;\n }\n }\n R(a, b, e.children, c);\n b = b.child;\n }\n return b;\n case 9:\n return e = b.type, f = b.pendingProps, d = f.children, qg(b, c), e = sg(e, f.unstable_observedBits), d = d(e), b.effectTag |= 1, R(a, b, d, c), b.child;\n case 14:\n return e = b.type, f = ig(e, b.pendingProps), f = ig(e.type, f), ai(a, b, e, f, d, c);\n case 15:\n return ci(a, b, b.type, b.pendingProps, d, c);\n case 17:\n return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : ig(d, e), null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2), b.tag = 1, L(d) ? (a = !0, Gf(b)) : a = !1, qg(b, c), Lg(b, d, e), Ng(b, d, e, c), gi(null, b, d, !0, a, c);\n case 19:\n return mi(a, b, c);\n }\n throw Error(u(156, b.tag));\n};\nvar Uj = null, Li = null;\nfunction Yj(a) {\n if (\"undefined\" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;\n var b = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (b.isDisabled || !b.supportsFiber) return !0;\n try {\n var c = b.inject(a);\n Uj = function(a) {\n try {\n b.onCommitFiberRoot(c, a, void 0, 64 === (a.current.effectTag & 64));\n } catch (e) {}\n };\n Li = function(a) {\n try {\n b.onCommitFiberUnmount(c, a);\n } catch (e) {}\n };\n } catch (d) {}\n return !0;\n}\nfunction Zj(a, b, c, d) {\n this.tag = a;\n this.key = c;\n this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;\n this.index = 0;\n this.ref = null;\n this.pendingProps = b;\n this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;\n this.mode = d;\n this.effectTag = 0;\n this.lastEffect = this.firstEffect = this.nextEffect = null;\n this.childExpirationTime = this.expirationTime = 0;\n this.alternate = null;\n}\nfunction Sh(a, b, c, d) {\n return new Zj(a, b, c, d);\n}\nfunction bi(a) {\n a = a.prototype;\n return !(!a || !a.isReactComponent);\n}\nfunction Xj(a) {\n if (\"function\" === typeof a) return bi(a) ? 1 : 0;\n if (void 0 !== a && null !== a) {\n a = a.$$typeof;\n if (a === gb) return 11;\n if (a === jb) return 14;\n }\n return 2;\n}\nfunction Sg(a, b) {\n var c = a.alternate;\n null === c ? (c = Sh(a.tag, b, a.key, a.mode), c.elementType = a.elementType, c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, c.effectTag = 0, c.nextEffect = null, c.firstEffect = null, c.lastEffect = null);\n c.childExpirationTime = a.childExpirationTime;\n c.expirationTime = a.expirationTime;\n c.child = a.child;\n c.memoizedProps = a.memoizedProps;\n c.memoizedState = a.memoizedState;\n c.updateQueue = a.updateQueue;\n b = a.dependencies;\n c.dependencies = null === b ? null : {\n expirationTime: b.expirationTime,\n firstContext: b.firstContext,\n responders: b.responders\n };\n c.sibling = a.sibling;\n c.index = a.index;\n c.ref = a.ref;\n return c;\n}\nfunction Ug(a, b, c, d, e, f) {\n var g = 2;\n d = a;\n if (\"function\" === typeof a) bi(a) && (g = 1);\n else if (\"string\" === typeof a) g = 5;\n else a: switch(a){\n case ab:\n return Wg(c.children, e, f, b);\n case fb:\n g = 8;\n e |= 7;\n break;\n case bb:\n g = 8;\n e |= 1;\n break;\n case cb:\n return a = Sh(12, c, b, e | 8), a.elementType = cb, a.type = cb, a.expirationTime = f, a;\n case hb:\n return a = Sh(13, c, b, e), a.type = hb, a.elementType = hb, a.expirationTime = f, a;\n case ib:\n return a = Sh(19, c, b, e), a.elementType = ib, a.expirationTime = f, a;\n default:\n if (\"object\" === typeof a && null !== a) switch(a.$$typeof){\n case db:\n g = 10;\n break a;\n case eb:\n g = 9;\n break a;\n case gb:\n g = 11;\n break a;\n case jb:\n g = 14;\n break a;\n case kb:\n g = 16;\n d = null;\n break a;\n case lb:\n g = 22;\n break a;\n }\n throw Error(u(130, null == a ? a : typeof a, \"\"));\n }\n b = Sh(g, c, b, e);\n b.elementType = a;\n b.type = d;\n b.expirationTime = f;\n return b;\n}\nfunction Wg(a, b, c, d) {\n a = Sh(7, a, d, b);\n a.expirationTime = c;\n return a;\n}\nfunction Tg(a, b, c) {\n a = Sh(6, a, null, b);\n a.expirationTime = c;\n return a;\n}\nfunction Vg(a, b, c) {\n b = Sh(4, null !== a.children ? a.children : [], a.key, b);\n b.expirationTime = c;\n b.stateNode = {\n containerInfo: a.containerInfo,\n pendingChildren: null,\n implementation: a.implementation\n };\n return b;\n}\nfunction ak(a, b, c) {\n this.tag = b;\n this.current = null;\n this.containerInfo = a;\n this.pingCache = this.pendingChildren = null;\n this.finishedExpirationTime = 0;\n this.finishedWork = null;\n this.timeoutHandle = -1;\n this.pendingContext = this.context = null;\n this.hydrate = c;\n this.callbackNode = null;\n this.callbackPriority = 90;\n this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0;\n}\nfunction Aj(a, b) {\n var c = a.firstSuspendedTime;\n a = a.lastSuspendedTime;\n return 0 !== c && c >= b && a <= b;\n}\nfunction xi(a, b) {\n var c = a.firstSuspendedTime, d = a.lastSuspendedTime;\n c < b && (a.firstSuspendedTime = b);\n if (d > b || 0 === c) a.lastSuspendedTime = b;\n b <= a.lastPingedTime && (a.lastPingedTime = 0);\n b <= a.lastExpiredTime && (a.lastExpiredTime = 0);\n}\nfunction yi(a, b) {\n b > a.firstPendingTime && (a.firstPendingTime = b);\n var c = a.firstSuspendedTime;\n 0 !== c && (b >= c ? a.firstSuspendedTime = a.lastSuspendedTime = a.nextKnownPendingLevel = 0 : b >= a.lastSuspendedTime && (a.lastSuspendedTime = b + 1), b > a.nextKnownPendingLevel && (a.nextKnownPendingLevel = b));\n}\nfunction Cj(a, b) {\n var c = a.lastExpiredTime;\n if (0 === c || c > b) a.lastExpiredTime = b;\n}\nfunction bk(a, b, c, d) {\n var e = b.current, f = Gg(), g = Dg.suspense;\n f = Hg(f, e, g);\n a: if (c) {\n c = c._reactInternalFiber;\n b: {\n if (dc(c) !== c || 1 !== c.tag) throw Error(u(170));\n var h = c;\n do {\n switch(h.tag){\n case 3:\n h = h.stateNode.context;\n break b;\n case 1:\n if (L(h.type)) {\n h = h.stateNode.__reactInternalMemoizedMergedChildContext;\n break b;\n }\n }\n h = h.return;\n }while (null !== h);\n throw Error(u(171));\n }\n if (1 === c.tag) {\n var k = c.type;\n if (L(k)) {\n c = Ff(c, k, h);\n break a;\n }\n }\n c = h;\n } else c = Af;\n null === b.context ? b.context = c : b.pendingContext = c;\n b = wg(f, g);\n b.payload = {\n element: a\n };\n d = void 0 === d ? null : d;\n null !== d && (b.callback = d);\n xg(e, b);\n Ig(e, f);\n return f;\n}\nfunction ck(a) {\n a = a.current;\n if (!a.child) return null;\n switch(a.child.tag){\n case 5:\n return a.child.stateNode;\n default:\n return a.child.stateNode;\n }\n}\nfunction dk(a, b) {\n a = a.memoizedState;\n null !== a && null !== a.dehydrated && a.retryTime < b && (a.retryTime = b);\n}\nfunction ek(a, b) {\n dk(a, b);\n (a = a.alternate) && dk(a, b);\n}\nfunction fk(a, b, c) {\n c = null != c && !0 === c.hydrate;\n var d = new ak(a, b, c), e = Sh(3, null, null, 2 === b ? 7 : 1 === b ? 3 : 0);\n d.current = e;\n e.stateNode = d;\n ug(e);\n a[Od] = d.current;\n c && 0 !== b && Jc(a, 9 === a.nodeType ? a : a.ownerDocument);\n this._internalRoot = d;\n}\nfk.prototype.render = function(a) {\n bk(a, this._internalRoot, null, null);\n};\nfk.prototype.unmount = function() {\n var a = this._internalRoot, b = a.containerInfo;\n bk(null, a, null, function() {\n b[Od] = null;\n });\n};\nfunction gk(a) {\n return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || \" react-mount-point-unstable \" !== a.nodeValue));\n}\nfunction hk(a, b) {\n b || (b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null, b = !(!b || 1 !== b.nodeType || !b.hasAttribute(\"data-reactroot\")));\n if (!b) for(var c; c = a.lastChild;)a.removeChild(c);\n return new fk(a, 0, b ? {\n hydrate: !0\n } : void 0);\n}\nfunction ik(a, b, c, d, e) {\n var f = c._reactRootContainer;\n if (f) {\n var g = f._internalRoot;\n if (\"function\" === typeof e) {\n var h = e;\n e = function() {\n var a = ck(g);\n h.call(a);\n };\n }\n bk(b, g, a, e);\n } else {\n f = c._reactRootContainer = hk(c, d);\n g = f._internalRoot;\n if (\"function\" === typeof e) {\n var k = e;\n e = function() {\n var a = ck(g);\n k.call(a);\n };\n }\n Nj(function() {\n bk(b, g, a, e);\n });\n }\n return ck(g);\n}\nfunction jk(a, b, c) {\n var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: $a,\n key: null == d ? null : \"\" + d,\n children: a,\n containerInfo: b,\n implementation: c\n };\n}\nwc = function(a) {\n if (13 === a.tag) {\n var b = hg(Gg(), 150, 100);\n Ig(a, b);\n ek(a, b);\n }\n};\nxc = function(a) {\n 13 === a.tag && (Ig(a, 3), ek(a, 3));\n};\nyc = function(a) {\n if (13 === a.tag) {\n var b = Gg();\n b = Hg(b, a, null);\n Ig(a, b);\n ek(a, b);\n }\n};\nza = function(a, b, c) {\n switch(b){\n case \"input\":\n Cb(a, c);\n b = c.name;\n if (\"radio\" === c.type && null != b) {\n for(c = a; c.parentNode;)c = c.parentNode;\n c = c.querySelectorAll(\"input[name=\" + JSON.stringify(\"\" + b) + '][type=\"radio\"]');\n for(b = 0; b < c.length; b++){\n var d = c[b];\n if (d !== a && d.form === a.form) {\n var e = Qd(d);\n if (!e) throw Error(u(90));\n yb(d);\n Cb(d, e);\n }\n }\n }\n break;\n case \"textarea\":\n Kb(a, c);\n break;\n case \"select\":\n b = c.value, null != b && Hb(a, !!c.multiple, b, !1);\n }\n};\nFa = Mj;\nGa = function(a, b, c, d, e) {\n var f = W;\n W |= 4;\n try {\n return cg(98, a.bind(null, b, c, d, e));\n } finally{\n W = f, W === V && gg();\n }\n};\nHa = function() {\n (W & (1 | fj | gj)) === V && (Lj(), Dj());\n};\nIa = function(a, b) {\n var c = W;\n W |= 2;\n try {\n return a(b);\n } finally{\n W = c, W === V && gg();\n }\n};\nfunction kk(a, b) {\n var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (!gk(b)) throw Error(u(200));\n return jk(a, b, null, c);\n}\nvar lk = {\n Events: [\n Nc,\n Pd,\n Qd,\n xa,\n ta,\n Xd,\n function(a) {\n jc(a, Wd);\n },\n Da,\n Ea,\n id,\n mc,\n Dj,\n {\n current: !1\n }\n ]\n};\n(function(a) {\n var b = a.findFiberByHostInstance;\n return Yj(n({}, a, {\n overrideHookState: null,\n overrideProps: null,\n setSuspenseHandler: null,\n scheduleUpdate: null,\n currentDispatcherRef: Wa.ReactCurrentDispatcher,\n findHostInstanceByFiber: function(a) {\n a = hc(a);\n return null === a ? null : a.stateNode;\n },\n findFiberByHostInstance: function(a) {\n return b ? b(a) : null;\n },\n findHostInstancesForRefresh: null,\n scheduleRefresh: null,\n scheduleRoot: null,\n setRefreshHandler: null,\n getCurrentFiber: null\n }));\n})({\n findFiberByHostInstance: tc,\n bundleType: 0,\n version: \"16.14.0\",\n rendererPackageName: \"react-dom\"\n});\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = lk;\nexports.createPortal = kk;\nexports.findDOMNode = function(a) {\n if (null == a) return null;\n if (1 === a.nodeType) return a;\n var b = a._reactInternalFiber;\n if (void 0 === b) {\n if (\"function\" === typeof a.render) throw Error(u(188));\n throw Error(u(268, Object.keys(a)));\n }\n a = hc(b);\n a = null === a ? null : a.stateNode;\n return a;\n};\nexports.flushSync = function(a, b) {\n if ((W & (fj | gj)) !== V) throw Error(u(187));\n var c = W;\n W |= 1;\n try {\n return cg(99, a.bind(null, b));\n } finally{\n W = c, gg();\n }\n};\nexports.hydrate = function(a, b, c) {\n if (!gk(b)) throw Error(u(200));\n return ik(null, a, b, !0, c);\n};\nexports.render = function(a, b, c) {\n if (!gk(b)) throw Error(u(200));\n return ik(null, a, b, !1, c);\n};\nexports.unmountComponentAtNode = function(a) {\n if (!gk(a)) throw Error(u(40));\n return a._reactRootContainer ? (Nj(function() {\n ik(null, null, a, !1, function() {\n a._reactRootContainer = null;\n a[Od] = null;\n });\n }), !0) : !1;\n};\nexports.unstable_batchedUpdates = Mj;\nexports.unstable_createPortal = function(a, b) {\n return kk(a, b, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null);\n};\nexports.unstable_renderSubtreeIntoContainer = function(a, b, c, d) {\n if (!gk(c)) throw Error(u(200));\n if (null == a || void 0 === a._reactInternalFiber) throw Error(u(38));\n return ik(a, b, c, !1, d);\n};\nexports.version = \"16.14.0\";\n\n},{\"5393afc8c463ef07\":\"6uln9\",\"dc13beaf0535b548\":\"hdgcG\",\"ece50e903283a22f\":\"jNZm8\"}],\"jNZm8\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = require(\"15840f0beed8ff36\");\n\n},{\"15840f0beed8ff36\":\"izQ2Z\"}],\"izQ2Z\":[function(require,module,exports) {\n/** @license React v0.19.1\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\nvar f, g, h, k, l;\nif (\"undefined\" === typeof window || \"function\" !== typeof MessageChannel) {\n var p = null, q = null, t = function() {\n if (null !== p) try {\n var a = exports.unstable_now();\n p(!0, a);\n p = null;\n } catch (b) {\n throw setTimeout(t, 0), b;\n }\n }, u = Date.now();\n exports.unstable_now = function() {\n return Date.now() - u;\n };\n f = function(a) {\n null !== p ? setTimeout(f, 0, a) : (p = a, setTimeout(t, 0));\n };\n g = function(a, b) {\n q = setTimeout(a, b);\n };\n h = function() {\n clearTimeout(q);\n };\n k = function() {\n return !1;\n };\n l = exports.unstable_forceFrameRate = function() {};\n} else {\n var w = window.performance, x = window.Date, y = window.setTimeout, z = window.clearTimeout;\n if (\"undefined\" !== typeof console) {\n var A = window.cancelAnimationFrame;\n \"function\" !== typeof window.requestAnimationFrame && console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\");\n \"function\" !== typeof A && console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\");\n }\n if (\"object\" === typeof w && \"function\" === typeof w.now) exports.unstable_now = function() {\n return w.now();\n };\n else {\n var B = x.now();\n exports.unstable_now = function() {\n return x.now() - B;\n };\n }\n var C = !1, D = null, E = -1, F = 5, G = 0;\n k = function() {\n return exports.unstable_now() >= G;\n };\n l = function() {};\n exports.unstable_forceFrameRate = function(a) {\n 0 > a || 125 < a ? console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported\") : F = 0 < a ? Math.floor(1E3 / a) : 5;\n };\n var H = new MessageChannel, I = H.port2;\n H.port1.onmessage = function() {\n if (null !== D) {\n var a = exports.unstable_now();\n G = a + F;\n try {\n D(!0, a) ? I.postMessage(null) : (C = !1, D = null);\n } catch (b) {\n throw I.postMessage(null), b;\n }\n } else C = !1;\n };\n f = function(a) {\n D = a;\n C || (C = !0, I.postMessage(null));\n };\n g = function(a, b) {\n E = y(function() {\n a(exports.unstable_now());\n }, b);\n };\n h = function() {\n z(E);\n E = -1;\n };\n}\nfunction J(a, b) {\n var c = a.length;\n a.push(b);\n a: for(;;){\n var d = c - 1 >>> 1, e = a[d];\n if (void 0 !== e && 0 < K(e, b)) a[d] = b, a[c] = e, c = d;\n else break a;\n }\n}\nfunction L(a) {\n a = a[0];\n return void 0 === a ? null : a;\n}\nfunction M(a) {\n var b = a[0];\n if (void 0 !== b) {\n var c = a.pop();\n if (c !== b) {\n a[0] = c;\n a: for(var d = 0, e = a.length; d < e;){\n var m = 2 * (d + 1) - 1, n = a[m], v = m + 1, r = a[v];\n if (void 0 !== n && 0 > K(n, c)) void 0 !== r && 0 > K(r, n) ? (a[d] = r, a[v] = c, d = v) : (a[d] = n, a[m] = c, d = m);\n else if (void 0 !== r && 0 > K(r, c)) a[d] = r, a[v] = c, d = v;\n else break a;\n }\n }\n return b;\n }\n return null;\n}\nfunction K(a, b) {\n var c = a.sortIndex - b.sortIndex;\n return 0 !== c ? c : a.id - b.id;\n}\nvar N = [], O = [], P = 1, Q = null, R = 3, S = !1, T = !1, U = !1;\nfunction V(a) {\n for(var b = L(O); null !== b;){\n if (null === b.callback) M(O);\n else if (b.startTime <= a) M(O), b.sortIndex = b.expirationTime, J(N, b);\n else break;\n b = L(O);\n }\n}\nfunction W(a) {\n U = !1;\n V(a);\n if (!T) {\n if (null !== L(N)) T = !0, f(X);\n else {\n var b = L(O);\n null !== b && g(W, b.startTime - a);\n }\n }\n}\nfunction X(a, b) {\n T = !1;\n U && (U = !1, h());\n S = !0;\n var c = R;\n try {\n V(b);\n for(Q = L(N); null !== Q && (!(Q.expirationTime > b) || a && !k());){\n var d = Q.callback;\n if (null !== d) {\n Q.callback = null;\n R = Q.priorityLevel;\n var e = d(Q.expirationTime <= b);\n b = exports.unstable_now();\n \"function\" === typeof e ? Q.callback = e : Q === L(N) && M(N);\n V(b);\n } else M(N);\n Q = L(N);\n }\n if (null !== Q) var m = !0;\n else {\n var n = L(O);\n null !== n && g(W, n.startTime - b);\n m = !1;\n }\n return m;\n } finally{\n Q = null, R = c, S = !1;\n }\n}\nfunction Y(a) {\n switch(a){\n case 1:\n return -1;\n case 2:\n return 250;\n case 5:\n return 1073741823;\n case 4:\n return 1E4;\n default:\n return 5E3;\n }\n}\nvar Z = l;\nexports.unstable_IdlePriority = 5;\nexports.unstable_ImmediatePriority = 1;\nexports.unstable_LowPriority = 4;\nexports.unstable_NormalPriority = 3;\nexports.unstable_Profiling = null;\nexports.unstable_UserBlockingPriority = 2;\nexports.unstable_cancelCallback = function(a) {\n a.callback = null;\n};\nexports.unstable_continueExecution = function() {\n T || S || (T = !0, f(X));\n};\nexports.unstable_getCurrentPriorityLevel = function() {\n return R;\n};\nexports.unstable_getFirstCallbackNode = function() {\n return L(N);\n};\nexports.unstable_next = function(a) {\n switch(R){\n case 1:\n case 2:\n case 3:\n var b = 3;\n break;\n default:\n b = R;\n }\n var c = R;\n R = b;\n try {\n return a();\n } finally{\n R = c;\n }\n};\nexports.unstable_pauseExecution = function() {};\nexports.unstable_requestPaint = Z;\nexports.unstable_runWithPriority = function(a, b) {\n switch(a){\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n break;\n default:\n a = 3;\n }\n var c = R;\n R = a;\n try {\n return b();\n } finally{\n R = c;\n }\n};\nexports.unstable_scheduleCallback = function(a, b, c) {\n var d = exports.unstable_now();\n if (\"object\" === typeof c && null !== c) {\n var e = c.delay;\n e = \"number\" === typeof e && 0 < e ? d + e : d;\n c = \"number\" === typeof c.timeout ? c.timeout : Y(a);\n } else c = Y(a), e = d;\n c = e + c;\n a = {\n id: P++,\n callback: b,\n priorityLevel: a,\n startTime: e,\n expirationTime: c,\n sortIndex: -1\n };\n e > d ? (a.sortIndex = e, J(O, a), null === L(N) && a === L(O) && (U ? h() : U = !0, g(W, e - d))) : (a.sortIndex = c, J(N, a), T || S || (T = !0, f(X)));\n return a;\n};\nexports.unstable_shouldYield = function() {\n var a = exports.unstable_now();\n V(a);\n var b = L(N);\n return b !== Q && null !== Q && null !== b && null !== b.callback && b.startTime <= a && b.expirationTime < Q.expirationTime || k();\n};\nexports.unstable_wrapCallback = function(a) {\n var b = R;\n return function() {\n var c = R;\n R = b;\n try {\n return a.apply(this, arguments);\n } finally{\n R = c;\n }\n };\n};\n\n},{}],\"8mlRL\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Modal = require(\"61f3c1f4b26edd90\");\nvar _Modal2 = _interopRequireDefault(_Modal);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nexports.default = _Modal2.default;\nmodule.exports = exports[\"default\"];\n\n},{\"61f3c1f4b26edd90\":\"kXURF\"}],\"kXURF\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bodyOpenClassName = exports.portalClassName = undefined;\nvar _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n};\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _react = require(\"9a25229d9e827b16\");\nvar _react2 = _interopRequireDefault(_react);\nvar _reactDom = require(\"f910a939b759baac\");\nvar _reactDom2 = _interopRequireDefault(_reactDom);\nvar _propTypes = require(\"a79c9e589690789c\");\nvar _propTypes2 = _interopRequireDefault(_propTypes);\nvar _ModalPortal = require(\"34c4b69c6470c61b\");\nvar _ModalPortal2 = _interopRequireDefault(_ModalPortal);\nvar _ariaAppHider = require(\"e68a5208ad96e647\");\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\nvar _safeHTMLElement = require(\"573142d9c97c52f\");\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\nvar _reactLifecyclesCompat = require(\"ad84566654669dc0\");\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) return obj;\n else {\n var newObj = {};\n if (obj != null) {\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n newObj.default = obj;\n return newObj;\n }\n}\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\nvar portalClassName = exports.portalClassName = \"ReactModalPortal\";\nvar bodyOpenClassName = exports.bodyOpenClassName = \"ReactModal__Body--open\";\nvar isReact16 = _safeHTMLElement.canUseDOM && _reactDom2.default.createPortal !== undefined;\nvar getCreatePortal = function getCreatePortal() {\n return isReact16 ? _reactDom2.default.createPortal : _reactDom2.default.unstable_renderSubtreeIntoContainer;\n};\nfunction getParentElement(parentSelector) {\n return parentSelector();\n}\nvar Modal = function(_Component) {\n _inherits(Modal, _Component);\n function Modal() {\n var _ref;\n var _temp, _this, _ret;\n _classCallCheck(this, Modal);\n for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Modal.__proto__ || Object.getPrototypeOf(Modal)).call.apply(_ref, [\n this\n ].concat(args))), _this), _this.removePortal = function() {\n !isReact16 && _reactDom2.default.unmountComponentAtNode(_this.node);\n var parent = getParentElement(_this.props.parentSelector);\n if (parent && parent.contains(_this.node)) parent.removeChild(_this.node);\n else // eslint-disable-next-line no-console\n console.warn('React-Modal: \"parentSelector\" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');\n }, _this.portalRef = function(ref) {\n _this.portal = ref;\n }, _this.renderPortal = function(props) {\n var createPortal = getCreatePortal();\n var portal = createPortal(_this, _react2.default.createElement(_ModalPortal2.default, _extends({\n defaultStyles: Modal.defaultStyles\n }, props)), _this.node);\n _this.portalRef(portal);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n _createClass(Modal, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!_safeHTMLElement.canUseDOM) return;\n if (!isReact16) this.node = document.createElement(\"div\");\n this.node.className = this.props.portalClassName;\n var parent = getParentElement(this.props.parentSelector);\n parent.appendChild(this.node);\n !isReact16 && this.renderPortal(this.props);\n }\n },\n {\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate(prevProps) {\n var prevParent = getParentElement(prevProps.parentSelector);\n var nextParent = getParentElement(this.props.parentSelector);\n return {\n prevParent: prevParent,\n nextParent: nextParent\n };\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, _, snapshot) {\n if (!_safeHTMLElement.canUseDOM) return;\n var _props = this.props, isOpen = _props.isOpen, portalClassName = _props.portalClassName;\n if (prevProps.portalClassName !== portalClassName) this.node.className = portalClassName;\n var prevParent = snapshot.prevParent, nextParent = snapshot.nextParent;\n if (nextParent !== prevParent) {\n prevParent.removeChild(this.node);\n nextParent.appendChild(this.node);\n }\n // Stop unnecessary renders if modal is remaining closed\n if (!prevProps.isOpen && !isOpen) return;\n !isReact16 && this.renderPortal(this.props);\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (!_safeHTMLElement.canUseDOM || !this.node || !this.portal) return;\n var state = this.portal.state;\n var now = Date.now();\n var closesAt = state.isOpen && this.props.closeTimeoutMS && (state.closesAt || now + this.props.closeTimeoutMS);\n if (closesAt) {\n if (!state.beforeClose) this.portal.closeWithTimeout();\n setTimeout(this.removePortal, closesAt - now);\n } else this.removePortal();\n }\n },\n {\n key: \"render\",\n value: function render() {\n if (!_safeHTMLElement.canUseDOM || !isReact16) return null;\n if (!this.node && isReact16) this.node = document.createElement(\"div\");\n var createPortal = getCreatePortal();\n return createPortal(_react2.default.createElement(_ModalPortal2.default, _extends({\n ref: this.portalRef,\n defaultStyles: Modal.defaultStyles\n }, this.props)), this.node);\n }\n }\n ], [\n {\n key: \"setAppElement\",\n value: function setAppElement(element) {\n ariaAppHider.setElement(element);\n }\n }\n ]);\n return Modal;\n}(_react.Component);\nModal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n portalClassName: _propTypes2.default.string,\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n className: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })\n ]),\n overlayClassName: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })\n ]),\n appElement: _propTypes2.default.oneOfType([\n _propTypes2.default.instanceOf(_safeHTMLElement2.default),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),\n _propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))\n ]),\n onAfterOpen: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n ariaHideApp: _propTypes2.default.bool,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n preventScroll: _propTypes2.default.bool,\n parentSelector: _propTypes2.default.func,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n overlayElement: _propTypes2.default.func,\n contentElement: _propTypes2.default.func\n};\nModal.defaultProps = {\n isOpen: false,\n portalClassName: portalClassName,\n bodyOpenClassName: bodyOpenClassName,\n role: \"dialog\",\n ariaHideApp: true,\n closeTimeoutMS: 0,\n shouldFocusAfterRender: true,\n shouldCloseOnEsc: true,\n shouldCloseOnOverlayClick: true,\n shouldReturnFocusAfterClose: true,\n preventScroll: false,\n parentSelector: function parentSelector() {\n return document.body;\n },\n overlayElement: function overlayElement(props, contentEl) {\n return _react2.default.createElement(\"div\", props, contentEl);\n },\n contentElement: function contentElement(props, children) {\n return _react2.default.createElement(\"div\", props, children);\n }\n};\nModal.defaultStyles = {\n overlay: {\n position: \"fixed\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.75)\"\n },\n content: {\n position: \"absolute\",\n top: \"40px\",\n left: \"40px\",\n right: \"40px\",\n bottom: \"40px\",\n border: \"1px solid #ccc\",\n background: \"#fff\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n borderRadius: \"4px\",\n outline: \"none\",\n padding: \"20px\"\n }\n};\n(0, _reactLifecyclesCompat.polyfill)(Modal);\nexports.default = Modal;\n\n},{\"9a25229d9e827b16\":\"6uln9\",\"f910a939b759baac\":\"b8T3j\",\"a79c9e589690789c\":\"6FKs7\",\"34c4b69c6470c61b\":\"9bisn\",\"e68a5208ad96e647\":\"h7ZuP\",\"573142d9c97c52f\":\"fGfZl\",\"ad84566654669dc0\":\"jRjXN\"}],\"6FKs7\":[function(require,module,exports) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ var ReactIs, throwOnDirectAccess;\n// By explicitly using `prop-types` you are opting into new production behavior.\n// http://fb.me/prop-types-in-prod\nmodule.exports = require(\"e98516c5bab4526\")();\n\n},{\"e98516c5bab4526\":\"7ziwC\"}],\"7ziwC\":[function(require,module,exports) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\nvar ReactPropTypesSecret = require(\"bf7f43a19ae1b960\");\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) // It is still safe when called from React.\n return;\n var err = new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");\n err.name = \"Invariant Violation\";\n throw err;\n }\n shim.isRequired = shim;\n function getShim() {\n return shim;\n }\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n ReactPropTypes.PropTypes = ReactPropTypes;\n return ReactPropTypes;\n};\n\n},{\"bf7f43a19ae1b960\":\"4Cml4\"}],\"4Cml4\":[function(require,module,exports) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\nvar ReactPropTypesSecret = \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";\nmodule.exports = ReactPropTypesSecret;\n\n},{}],\"9bisn\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n};\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _react = require(\"d320e8781d21c2c5\");\nvar _propTypes = require(\"33d52b094ecec2e0\");\nvar _propTypes2 = _interopRequireDefault(_propTypes);\nvar _focusManager = require(\"bfbfef75d8e85e0\");\nvar focusManager = _interopRequireWildcard(_focusManager);\nvar _scopeTab = require(\"8960111ee2cff0b2\");\nvar _scopeTab2 = _interopRequireDefault(_scopeTab);\nvar _ariaAppHider = require(\"75f7ac26c5b4b642\");\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\nvar _classList = require(\"232716fc77648a71\");\nvar classList = _interopRequireWildcard(_classList);\nvar _safeHTMLElement = require(\"5ca8a1c1e3ad494a\");\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\nvar _portalOpenInstances = require(\"ce306d5e4e8279b3\");\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\nrequire(\"56e2a18c3da1ec8b\");\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) return obj;\n else {\n var newObj = {};\n if (obj != null) {\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n newObj.default = obj;\n return newObj;\n }\n}\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n// so that our CSS is statically analyzable\nvar CLASS_NAMES = {\n overlay: \"ReactModal__Overlay\",\n content: \"ReactModal__Content\"\n};\nvar TAB_KEY = 9;\nvar ESC_KEY = 27;\nvar ariaHiddenInstances = 0;\nvar ModalPortal = function(_Component) {\n _inherits(ModalPortal, _Component);\n function ModalPortal(props) {\n _classCallCheck(this, ModalPortal);\n var _this = _possibleConstructorReturn(this, (ModalPortal.__proto__ || Object.getPrototypeOf(ModalPortal)).call(this, props));\n _this.setOverlayRef = function(overlay) {\n _this.overlay = overlay;\n _this.props.overlayRef && _this.props.overlayRef(overlay);\n };\n _this.setContentRef = function(content) {\n _this.content = content;\n _this.props.contentRef && _this.props.contentRef(content);\n };\n _this.afterClose = function() {\n var _this$props = _this.props, appElement = _this$props.appElement, ariaHideApp = _this$props.ariaHideApp, htmlOpenClassName = _this$props.htmlOpenClassName, bodyOpenClassName = _this$props.bodyOpenClassName;\n // Remove classes.\n bodyOpenClassName && classList.remove(document.body, bodyOpenClassName);\n htmlOpenClassName && classList.remove(document.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n // Reset aria-hidden attribute if all modals have been removed\n if (ariaHideApp && ariaHiddenInstances > 0) {\n ariaHiddenInstances -= 1;\n if (ariaHiddenInstances === 0) ariaAppHider.show(appElement);\n }\n if (_this.props.shouldFocusAfterRender) {\n if (_this.props.shouldReturnFocusAfterClose) {\n focusManager.returnFocus(_this.props.preventScroll);\n focusManager.teardownScopedFocus();\n } else focusManager.popWithoutFocus();\n }\n if (_this.props.onAfterClose) _this.props.onAfterClose();\n _portalOpenInstances2.default.deregister(_this);\n };\n _this.open = function() {\n _this.beforeOpen();\n if (_this.state.afterOpen && _this.state.beforeClose) {\n clearTimeout(_this.closeTimer);\n _this.setState({\n beforeClose: false\n });\n } else {\n if (_this.props.shouldFocusAfterRender) {\n focusManager.setupScopedFocus(_this.node);\n focusManager.markForFocusLater();\n }\n _this.setState({\n isOpen: true\n }, function() {\n _this.setState({\n afterOpen: true\n });\n if (_this.props.isOpen && _this.props.onAfterOpen) _this.props.onAfterOpen({\n overlayEl: _this.overlay,\n contentEl: _this.content\n });\n });\n }\n };\n _this.close = function() {\n if (_this.props.closeTimeoutMS > 0) _this.closeWithTimeout();\n else _this.closeWithoutTimeout();\n };\n _this.focusContent = function() {\n return _this.content && !_this.contentHasFocus() && _this.content.focus({\n preventScroll: true\n });\n };\n _this.closeWithTimeout = function() {\n var closesAt = Date.now() + _this.props.closeTimeoutMS;\n _this.setState({\n beforeClose: true,\n closesAt: closesAt\n }, function() {\n _this.closeTimer = setTimeout(_this.closeWithoutTimeout, _this.state.closesAt - Date.now());\n });\n };\n _this.closeWithoutTimeout = function() {\n _this.setState({\n beforeClose: false,\n isOpen: false,\n afterOpen: false,\n closesAt: null\n }, _this.afterClose);\n };\n _this.handleKeyDown = function(event) {\n if (event.keyCode === TAB_KEY) (0, _scopeTab2.default)(_this.content, event);\n if (_this.props.shouldCloseOnEsc && event.keyCode === ESC_KEY) {\n event.stopPropagation();\n _this.requestClose(event);\n }\n };\n _this.handleOverlayOnClick = function(event) {\n if (_this.shouldClose === null) _this.shouldClose = true;\n if (_this.shouldClose && _this.props.shouldCloseOnOverlayClick) {\n if (_this.ownerHandlesClose()) _this.requestClose(event);\n else _this.focusContent();\n }\n _this.shouldClose = null;\n };\n _this.handleContentOnMouseUp = function() {\n _this.shouldClose = false;\n };\n _this.handleOverlayOnMouseDown = function(event) {\n if (!_this.props.shouldCloseOnOverlayClick && event.target == _this.overlay) event.preventDefault();\n };\n _this.handleContentOnClick = function() {\n _this.shouldClose = false;\n };\n _this.handleContentOnMouseDown = function() {\n _this.shouldClose = false;\n };\n _this.requestClose = function(event) {\n return _this.ownerHandlesClose() && _this.props.onRequestClose(event);\n };\n _this.ownerHandlesClose = function() {\n return _this.props.onRequestClose;\n };\n _this.shouldBeClosed = function() {\n return !_this.state.isOpen && !_this.state.beforeClose;\n };\n _this.contentHasFocus = function() {\n return document.activeElement === _this.content || _this.content.contains(document.activeElement);\n };\n _this.buildClassName = function(which, additional) {\n var classNames = (typeof additional === \"undefined\" ? \"undefined\" : _typeof(additional)) === \"object\" ? additional : {\n base: CLASS_NAMES[which],\n afterOpen: CLASS_NAMES[which] + \"--after-open\",\n beforeClose: CLASS_NAMES[which] + \"--before-close\"\n };\n var className = classNames.base;\n if (_this.state.afterOpen) className = className + \" \" + classNames.afterOpen;\n if (_this.state.beforeClose) className = className + \" \" + classNames.beforeClose;\n return typeof additional === \"string\" && additional ? className + \" \" + additional : className;\n };\n _this.attributesFromObject = function(prefix, items) {\n return Object.keys(items).reduce(function(acc, name) {\n acc[prefix + \"-\" + name] = items[name];\n return acc;\n }, {});\n };\n _this.state = {\n afterOpen: false,\n beforeClose: false\n };\n _this.shouldClose = null;\n _this.moveFromContentToOverlay = null;\n return _this;\n }\n _createClass(ModalPortal, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.isOpen) this.open();\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.isOpen && !prevProps.isOpen) this.open();\n else if (!this.props.isOpen && prevProps.isOpen) this.close();\n // Focus only needs to be set once when the modal is being opened\n if (this.props.shouldFocusAfterRender && this.state.isOpen && !prevState.isOpen) this.focusContent();\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.state.isOpen) this.afterClose();\n clearTimeout(this.closeTimer);\n }\n },\n {\n key: \"beforeOpen\",\n value: function beforeOpen() {\n var _props = this.props, appElement = _props.appElement, ariaHideApp = _props.ariaHideApp, htmlOpenClassName = _props.htmlOpenClassName, bodyOpenClassName = _props.bodyOpenClassName;\n // Add classes.\n bodyOpenClassName && classList.add(document.body, bodyOpenClassName);\n htmlOpenClassName && classList.add(document.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n if (ariaHideApp) {\n ariaHiddenInstances += 1;\n ariaAppHider.hide(appElement);\n }\n _portalOpenInstances2.default.register(this);\n }\n },\n {\n key: \"render\",\n value: function render() {\n var _props2 = this.props, id = _props2.id, className = _props2.className, overlayClassName = _props2.overlayClassName, defaultStyles = _props2.defaultStyles, children = _props2.children;\n var contentStyles = className ? {} : defaultStyles.content;\n var overlayStyles = overlayClassName ? {} : defaultStyles.overlay;\n if (this.shouldBeClosed()) return null;\n var overlayProps = {\n ref: this.setOverlayRef,\n className: this.buildClassName(\"overlay\", overlayClassName),\n style: _extends({}, overlayStyles, this.props.style.overlay),\n onClick: this.handleOverlayOnClick,\n onMouseDown: this.handleOverlayOnMouseDown\n };\n var contentProps = _extends({\n id: id,\n ref: this.setContentRef,\n style: _extends({}, contentStyles, this.props.style.content),\n className: this.buildClassName(\"content\", className),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentOnMouseDown,\n onMouseUp: this.handleContentOnMouseUp,\n onClick: this.handleContentOnClick,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n }, this.attributesFromObject(\"aria\", _extends({\n modal: true\n }, this.props.aria)), this.attributesFromObject(\"data\", this.props.data || {}), {\n \"data-testid\": this.props.testId\n });\n var contentElement = this.props.contentElement(contentProps, children);\n return this.props.overlayElement(overlayProps, contentElement);\n }\n }\n ]);\n return ModalPortal;\n}(_react.Component);\nModalPortal.defaultProps = {\n style: {\n overlay: {},\n content: {}\n },\n defaultStyles: {}\n};\nModalPortal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n defaultStyles: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n className: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.object\n ]),\n overlayClassName: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.object\n ]),\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n ariaHideApp: _propTypes2.default.bool,\n appElement: _propTypes2.default.oneOfType([\n _propTypes2.default.instanceOf(_safeHTMLElement2.default),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),\n _propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))\n ]),\n onAfterOpen: _propTypes2.default.func,\n onAfterClose: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n preventScroll: _propTypes2.default.bool,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n children: _propTypes2.default.node,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n overlayElement: _propTypes2.default.func,\n contentElement: _propTypes2.default.func,\n testId: _propTypes2.default.string\n};\nexports.default = ModalPortal;\nmodule.exports = exports[\"default\"];\n\n},{\"d320e8781d21c2c5\":\"6uln9\",\"33d52b094ecec2e0\":\"6FKs7\",\"bfbfef75d8e85e0\":\"8ZxdD\",\"8960111ee2cff0b2\":\"fsUHQ\",\"75f7ac26c5b4b642\":\"h7ZuP\",\"232716fc77648a71\":\"5UkOf\",\"5ca8a1c1e3ad494a\":\"fGfZl\",\"ce306d5e4e8279b3\":\"39BQD\",\"56e2a18c3da1ec8b\":\"1brZu\"}],\"8ZxdD\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.handleBlur = handleBlur;\nexports.handleFocus = handleFocus;\nexports.markForFocusLater = markForFocusLater;\nexports.returnFocus = returnFocus;\nexports.popWithoutFocus = popWithoutFocus;\nexports.setupScopedFocus = setupScopedFocus;\nexports.teardownScopedFocus = teardownScopedFocus;\nvar _tabbable = require(\"a3112cb65ea2b6f\");\nvar _tabbable2 = _interopRequireDefault(_tabbable);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nvar focusLaterElements = [];\nvar modalElement = null;\nvar needToFocus = false;\nfunction handleBlur() {\n needToFocus = true;\n}\nfunction handleFocus() {\n if (needToFocus) {\n needToFocus = false;\n if (!modalElement) return;\n // need to see how jQuery shims document.on('focusin') so we don't need the\n // setTimeout, firefox doesn't support focusin, if it did, we could focus\n // the element outside of a setTimeout. Side-effect of this implementation\n // is that the document.body gets focus, and then we focus our element right\n // after, seems fine.\n setTimeout(function() {\n if (modalElement.contains(document.activeElement)) return;\n var el = (0, _tabbable2.default)(modalElement)[0] || modalElement;\n el.focus();\n }, 0);\n }\n}\nfunction markForFocusLater() {\n focusLaterElements.push(document.activeElement);\n}\n/* eslint-disable no-console */ function returnFocus() {\n var preventScroll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var toFocus = null;\n try {\n if (focusLaterElements.length !== 0) {\n toFocus = focusLaterElements.pop();\n toFocus.focus({\n preventScroll: preventScroll\n });\n }\n return;\n } catch (e) {\n console.warn([\n \"You tried to return focus to\",\n toFocus,\n \"but it is not in the DOM anymore\"\n ].join(\" \"));\n }\n}\n/* eslint-enable no-console */ function popWithoutFocus() {\n focusLaterElements.length > 0 && focusLaterElements.pop();\n}\nfunction setupScopedFocus(element) {\n modalElement = element;\n if (window.addEventListener) {\n window.addEventListener(\"blur\", handleBlur, false);\n document.addEventListener(\"focus\", handleFocus, true);\n } else {\n window.attachEvent(\"onBlur\", handleBlur);\n document.attachEvent(\"onFocus\", handleFocus);\n }\n}\nfunction teardownScopedFocus() {\n modalElement = null;\n if (window.addEventListener) {\n window.removeEventListener(\"blur\", handleBlur);\n document.removeEventListener(\"focus\", handleFocus);\n } else {\n window.detachEvent(\"onBlur\", handleBlur);\n document.detachEvent(\"onFocus\", handleFocus);\n }\n}\n\n},{\"a3112cb65ea2b6f\":\"1fuxH\"}],\"1fuxH\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = findTabbableDescendants;\n/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */ var tabbableNode = /input|select|textarea|button|object/;\nfunction hidesContents(element) {\n var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;\n // If the node is empty, this is good enough\n if (zeroSize && !element.innerHTML) return true;\n // Otherwise we need to check some styles\n var style = window.getComputedStyle(element);\n return zeroSize ? style.getPropertyValue(\"overflow\") !== \"visible\" || // if 'overflow: visible' set, check if there is actually any overflow\n element.scrollWidth <= 0 && element.scrollHeight <= 0 : style.getPropertyValue(\"display\") == \"none\";\n}\nfunction visible(element) {\n var parentElement = element;\n while(parentElement){\n if (parentElement === document.body) break;\n if (hidesContents(parentElement)) return false;\n parentElement = parentElement.parentNode;\n }\n return true;\n}\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === \"a\" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);\n return res && visible(element);\n}\nfunction tabbable(element) {\n var tabIndex = element.getAttribute(\"tabindex\");\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\nfunction findTabbableDescendants(element) {\n return [].slice.call(element.querySelectorAll(\"*\"), 0).filter(tabbable);\n}\nmodule.exports = exports[\"default\"];\n\n},{}],\"fsUHQ\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = scopeTab;\nvar _tabbable = require(\"f055893759989bbd\");\nvar _tabbable2 = _interopRequireDefault(_tabbable);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction scopeTab(node, event) {\n var tabbable = (0, _tabbable2.default)(node);\n if (!tabbable.length) {\n // Do nothing, since there are no elements that can receive focus.\n event.preventDefault();\n return;\n }\n var target = void 0;\n var shiftKey = event.shiftKey;\n var head = tabbable[0];\n var tail = tabbable[tabbable.length - 1];\n // proceed with default browser behavior on tab.\n // Focus on last element on shift + tab.\n if (node === document.activeElement) {\n if (!shiftKey) return;\n target = tail;\n }\n if (tail === document.activeElement && !shiftKey) target = head;\n if (head === document.activeElement && shiftKey) target = tail;\n if (target) {\n event.preventDefault();\n target.focus();\n return;\n }\n // Safari radio issue.\n //\n // Safari does not move the focus to the radio button,\n // so we need to force it to really walk through all elements.\n //\n // This is very error prone, since we are trying to guess\n // if it is a safari browser from the first occurence between\n // chrome or safari.\n //\n // The chrome user agent contains the first ocurrence\n // as the 'chrome/version' and later the 'safari/version'.\n var checkSafari = /(\\bChrome\\b|\\bSafari\\b)\\//.exec(navigator.userAgent);\n var isSafariDesktop = checkSafari != null && checkSafari[1] != \"Chrome\" && /\\biPod\\b|\\biPad\\b/g.exec(navigator.userAgent) == null;\n // If we are not in safari desktop, let the browser control\n // the focus\n if (!isSafariDesktop) return;\n var x = tabbable.indexOf(document.activeElement);\n if (x > -1) x += shiftKey ? -1 : 1;\n target = tabbable[x];\n // If the tabbable element does not exist,\n // focus head/tail based on shiftKey\n if (typeof target === \"undefined\") {\n event.preventDefault();\n target = shiftKey ? tail : head;\n target.focus();\n return;\n }\n event.preventDefault();\n target.focus();\n}\nmodule.exports = exports[\"default\"];\n\n},{\"f055893759989bbd\":\"1fuxH\"}],\"h7ZuP\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.assertNodeList = assertNodeList;\nexports.setElement = setElement;\nexports.validateElement = validateElement;\nexports.hide = hide;\nexports.show = show;\nexports.documentNotReadyOrSSRTesting = documentNotReadyOrSSRTesting;\nexports.resetForTesting = resetForTesting;\nvar _warning = require(\"6eb0682e790e32c7\");\nvar _warning2 = _interopRequireDefault(_warning);\nvar _safeHTMLElement = require(\"776bf46766969f66\");\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nvar globalElement = null;\nfunction assertNodeList(nodeList, selector) {\n if (!nodeList || !nodeList.length) throw new Error(\"react-modal: No elements were found for selector \" + selector + \".\");\n}\nfunction setElement(element) {\n var useElement = element;\n if (typeof useElement === \"string\" && _safeHTMLElement.canUseDOM) {\n var el = document.querySelectorAll(useElement);\n assertNodeList(el, useElement);\n useElement = el;\n }\n globalElement = useElement || globalElement;\n return globalElement;\n}\nfunction validateElement(appElement) {\n var el = appElement || globalElement;\n if (el) return Array.isArray(el) || el instanceof HTMLCollection || el instanceof NodeList ? el : [\n el\n ];\n else {\n (0, _warning2.default)(false, [\n \"react-modal: App element is not defined.\",\n \"Please use `Modal.setAppElement(el)` or set `appElement={el}`.\",\n \"This is needed so screen readers don't see main content\",\n \"when modal is opened. It is not recommended, but you can opt-out\",\n \"by setting `ariaHideApp={false}`.\"\n ].join(\" \"));\n return [];\n }\n}\nfunction hide(appElement) {\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n try {\n for(var _iterator = validateElement(appElement)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var el = _step.value;\n el.setAttribute(\"aria-hidden\", \"true\");\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return) _iterator.return();\n } finally{\n if (_didIteratorError) throw _iteratorError;\n }\n }\n}\nfunction show(appElement) {\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n try {\n for(var _iterator2 = validateElement(appElement)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){\n var el = _step2.value;\n el.removeAttribute(\"aria-hidden\");\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) _iterator2.return();\n } finally{\n if (_didIteratorError2) throw _iteratorError2;\n }\n }\n}\nfunction documentNotReadyOrSSRTesting() {\n globalElement = null;\n}\nfunction resetForTesting() {\n globalElement = null;\n}\n\n},{\"6eb0682e790e32c7\":\"cCKmo\",\"776bf46766969f66\":\"fGfZl\"}],\"cCKmo\":[function(require,module,exports) {\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */ var __DEV__ = false;\nvar warning = function() {};\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for(var key = 1; key < len; key++)args[key - 1] = arguments[key];\n var argIndex = 0;\n var message = \"Warning: \" + format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== \"undefined\") console.error(message);\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for(var key = 2; key < len; key++)args[key - 2] = arguments[key];\n if (format === undefined) throw new Error(\"`warning(condition, format, ...args)` requires a warning message argument\");\n if (!condition) printWarning.apply(null, [\n format\n ].concat(args));\n };\n}\nmodule.exports = warning;\n\n},{}],\"fGfZl\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canUseDOM = exports.SafeNodeList = exports.SafeHTMLCollection = undefined;\nvar _exenv = require(\"dfc9e0e910107876\");\nvar _exenv2 = _interopRequireDefault(_exenv);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nvar EE = _exenv2.default;\nvar SafeHTMLElement = EE.canUseDOM ? window.HTMLElement : {};\nvar SafeHTMLCollection = exports.SafeHTMLCollection = EE.canUseDOM ? window.HTMLCollection : {};\nvar SafeNodeList = exports.SafeNodeList = EE.canUseDOM ? window.NodeList : {};\nvar canUseDOM = exports.canUseDOM = EE.canUseDOM;\nexports.default = SafeHTMLElement;\n\n},{\"dfc9e0e910107876\":\"gGZ8o\"}],\"gGZ8o\":[function(require,module,exports) {\n/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/ /* global define */ (function() {\n \"use strict\";\n var canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n var ExecutionEnvironment = {\n canUseDOM: canUseDOM,\n canUseWorkers: typeof Worker !== \"undefined\",\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n canUseViewport: canUseDOM && !!window.screen\n };\n if (typeof define === \"function\" && typeof define.amd === \"object\" && define.amd) define(function() {\n return ExecutionEnvironment;\n });\n else if (0, module.exports) module.exports = ExecutionEnvironment;\n else window.ExecutionEnvironment = ExecutionEnvironment;\n})();\n\n},{}],\"5UkOf\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dumpClassLists = dumpClassLists;\nvar htmlClassList = {};\nvar docBodyClassList = {};\nfunction dumpClassLists() {\n var classes, buffer, x, _x;\n}\n/**\n * Track the number of reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */ var incrementReference = function incrementReference(poll, className) {\n if (!poll[className]) poll[className] = 0;\n poll[className] += 1;\n return className;\n};\n/**\n * Drop the reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */ var decrementReference = function decrementReference(poll, className) {\n if (poll[className]) poll[className] -= 1;\n return className;\n};\n/**\n * Track a class and add to the given class list.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be tracked.\n */ var trackClass = function trackClass(classListRef, poll, classes) {\n classes.forEach(function(className) {\n incrementReference(poll, className);\n classListRef.add(className);\n });\n};\n/**\n * Untrack a class and remove from the given class list if the reference\n * reaches 0.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be untracked.\n */ var untrackClass = function untrackClass(classListRef, poll, classes) {\n classes.forEach(function(className) {\n decrementReference(poll, className);\n poll[className] === 0 && classListRef.remove(className);\n });\n};\n/**\n * Public inferface to add classes to the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */ var add = exports.add = function add(element, classString) {\n return trackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};\n/**\n * Public inferface to remove classes from the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */ var remove = exports.remove = function remove(element, classString) {\n return untrackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};\n\n},{}],\"39BQD\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\n// Tracks portals that are open and emits events to subscribers\nvar PortalOpenInstances = function PortalOpenInstances() {\n var _this = this;\n _classCallCheck(this, PortalOpenInstances);\n this.register = function(openInstance) {\n if (_this.openInstances.indexOf(openInstance) !== -1) return;\n _this.openInstances.push(openInstance);\n _this.emit(\"register\");\n };\n this.deregister = function(openInstance) {\n var index = _this.openInstances.indexOf(openInstance);\n if (index === -1) return;\n _this.openInstances.splice(index, 1);\n _this.emit(\"deregister\");\n };\n this.subscribe = function(callback) {\n _this.subscribers.push(callback);\n };\n this.emit = function(eventType) {\n _this.subscribers.forEach(function(subscriber) {\n return subscriber(eventType, // shallow copy to avoid accidental mutation\n _this.openInstances.slice());\n });\n };\n this.openInstances = [];\n this.subscribers = [];\n};\nvar portalOpenInstances = new PortalOpenInstances();\nexports.default = portalOpenInstances;\nmodule.exports = exports[\"default\"];\n\n},{}],\"1brZu\":[function(require,module,exports) {\n\"use strict\";\nvar _portalOpenInstances = require(\"90d3c301f2b237b9\");\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n// Body focus trap see Issue #742\nvar before = void 0, after = void 0, instances = [];\nfunction focusContent() {\n if (instances.length === 0) return;\n instances[instances.length - 1].focusContent();\n}\nfunction bodyTrap(eventType, openInstances) {\n if (!before || !after) {\n before = document.createElement(\"div\");\n before.setAttribute(\"data-react-modal-body-trap\", \"\");\n before.style.position = \"absolute\";\n before.style.opacity = \"0\";\n before.setAttribute(\"tabindex\", \"0\");\n before.addEventListener(\"focus\", focusContent);\n after = before.cloneNode();\n after.addEventListener(\"focus\", focusContent);\n }\n instances = openInstances;\n if (instances.length > 0) {\n // Add focus trap\n if (document.body.firstChild !== before) document.body.insertBefore(before, document.body.firstChild);\n if (document.body.lastChild !== after) document.body.appendChild(after);\n } else {\n // Remove focus trap\n if (before.parentElement) before.parentElement.removeChild(before);\n if (after.parentElement) after.parentElement.removeChild(after);\n }\n}\n_portalOpenInstances2.default.subscribe(bodyTrap);\n\n},{\"90d3c301f2b237b9\":\"39BQD\"}],\"jRjXN\":[function(require,module,exports) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"polyfill\", ()=>polyfill);\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) this.setState(state);\n}\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);\n } finally{\n this.props = prevProps;\n this.state = prevState;\n }\n}\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n if (!prototype || !prototype.isReactComponent) throw new Error(\"Can only polyfill class components\");\n if (typeof Component.getDerivedStateFromProps !== \"function\" && typeof prototype.getSnapshotBeforeUpdate !== \"function\") return Component;\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === \"function\") foundWillMountName = \"componentWillMount\";\n else if (typeof prototype.UNSAFE_componentWillMount === \"function\") foundWillMountName = \"UNSAFE_componentWillMount\";\n if (typeof prototype.componentWillReceiveProps === \"function\") foundWillReceivePropsName = \"componentWillReceiveProps\";\n else if (typeof prototype.UNSAFE_componentWillReceiveProps === \"function\") foundWillReceivePropsName = \"UNSAFE_componentWillReceiveProps\";\n if (typeof prototype.componentWillUpdate === \"function\") foundWillUpdateName = \"componentWillUpdate\";\n else if (typeof prototype.UNSAFE_componentWillUpdate === \"function\") foundWillUpdateName = \"UNSAFE_componentWillUpdate\";\n if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {\n var componentName = Component.displayName || Component.name;\n var newApiName = typeof Component.getDerivedStateFromProps === \"function\" ? \"getDerivedStateFromProps()\" : \"getSnapshotBeforeUpdate()\";\n throw Error(\"Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n\" + componentName + \" uses \" + newApiName + \" but also contains the following legacy lifecycles:\" + (foundWillMountName !== null ? \"\\n \" + foundWillMountName : \"\") + (foundWillReceivePropsName !== null ? \"\\n \" + foundWillReceivePropsName : \"\") + (foundWillUpdateName !== null ? \"\\n \" + foundWillUpdateName : \"\") + \"\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n\" + \"https://fb.me/react-async-component-lifecycle-hooks\");\n }\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === \"function\") {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === \"function\") {\n if (typeof prototype.componentDidUpdate !== \"function\") throw new Error(\"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype\");\n prototype.componentWillUpdate = componentWillUpdate;\n var componentDidUpdate = prototype.componentDidUpdate;\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(prevProps, prevState, maybeSnapshot) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : maybeSnapshot;\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n return Component;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"k3151\":[function(require,module,exports) {\nexports.interopDefault = function(a) {\n return a && a.__esModule ? a : {\n default: a\n };\n};\nexports.defineInteropFlag = function(a) {\n Object.defineProperty(a, \"__esModule\", {\n value: true\n });\n};\nexports.exportAll = function(source, dest) {\n Object.keys(source).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\" || dest.hasOwnProperty(key)) return;\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function() {\n return source[key];\n }\n });\n });\n return dest;\n};\nexports.export = function(dest, destName, get) {\n Object.defineProperty(dest, destName, {\n enumerable: true,\n get: get\n });\n};\n\n},{}],\"5Rhgo\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _common = require(\"./common\");\nparcelHelpers.exportAll(_common, exports);\nvar _hooks = require(\"./hooks\");\nparcelHelpers.exportAll(_hooks, exports);\nvar _decorators = require(\"./decorators\");\nparcelHelpers.exportAll(_decorators, exports);\n\n},{\"./common\":\"83jDv\",\"./hooks\":\"bax7c\",\"./decorators\":\"4zU5e\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"83jDv\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _dndContext = require(\"./DndContext\");\nparcelHelpers.exportAll(_dndContext, exports);\nvar _dndProvider = require(\"./DndProvider\");\nparcelHelpers.exportAll(_dndProvider, exports);\nvar _dragPreviewImage = require(\"./DragPreviewImage\");\nparcelHelpers.exportAll(_dragPreviewImage, exports);\n\n},{\"./DndContext\":\"lCJRm\",\"./DndProvider\":\"cPWGR\",\"./DragPreviewImage\":false,\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lCJRm\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DndContext\", ()=>DndContext);\n/**\n * Creates the context object we're providing\n * @param backend\n * @param context\n */ parcelHelpers.export(exports, \"createDndContext\", ()=>createDndContext);\nvar _react = require(\"react\");\nvar _dndCore = require(\"dnd-core\");\nvar DndContext = _react.createContext({\n dragDropManager: undefined\n});\nfunction createDndContext(backend, context, options, debugMode) {\n return {\n dragDropManager: (0, _dndCore.createDragDropManager)(backend, context, options, debugMode)\n };\n}\n\n},{\"react\":\"6uln9\",\"dnd-core\":\"5yf58\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5yf58\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _interfaces = require(\"./interfaces\");\nparcelHelpers.exportAll(_interfaces, exports);\nvar _factories = require(\"./factories\");\nparcelHelpers.exportAll(_factories, exports);\n\n},{\"./interfaces\":false,\"./factories\":\"hYmSA\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fYYt6\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"HandlerRole\", ()=>HandlerRole);\nvar HandlerRole;\n(function(HandlerRole) {\n HandlerRole[\"SOURCE\"] = \"SOURCE\";\n HandlerRole[\"TARGET\"] = \"TARGET\";\n})(HandlerRole || (HandlerRole = {}));\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hYmSA\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createDragDropManager\", ()=>createDragDropManager);\nvar _dragDropManagerImpl = require(\"./DragDropManagerImpl\");\nvar _dragDropManagerImplDefault = parcelHelpers.interopDefault(_dragDropManagerImpl);\nfunction createDragDropManager(backendFactory, globalContext, backendOptions, debugMode) {\n var manager = new (0, _dragDropManagerImplDefault.default)(debugMode);\n var backend = backendFactory(manager, globalContext, backendOptions);\n manager.receiveBackend(backend);\n return manager;\n}\n\n},{\"./DragDropManagerImpl\":\"gRC6n\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gRC6n\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>DragDropManagerImpl);\nvar _redux = require(\"redux\");\nvar _reducers = require(\"./reducers\");\nvar _reducersDefault = parcelHelpers.interopDefault(_reducers);\nvar _dragDrop = require(\"./actions/dragDrop\");\nvar _dragDropDefault = parcelHelpers.interopDefault(_dragDrop);\nvar _dragDropMonitorImpl = require(\"./DragDropMonitorImpl\");\nvar _dragDropMonitorImplDefault = parcelHelpers.interopDefault(_dragDropMonitorImpl);\nvar _handlerRegistryImpl = require(\"./HandlerRegistryImpl\");\nvar _handlerRegistryImplDefault = parcelHelpers.interopDefault(_handlerRegistryImpl);\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction makeStoreInstance(debugMode) {\n // TODO: if we ever make a react-native version of this,\n // we'll need to consider how to pull off dev-tooling\n var reduxDevTools = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION__;\n return (0, _redux.createStore)((0, _reducersDefault.default), debugMode && reduxDevTools && reduxDevTools({\n name: \"dnd-core\",\n instanceId: \"dnd-core\"\n }));\n}\nvar DragDropManagerImpl = /*#__PURE__*/ function() {\n function DragDropManagerImpl() {\n var _this = this;\n var debugMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n _classCallCheck(this, DragDropManagerImpl);\n this.isSetUp = false;\n this.handleRefCountChange = function() {\n var shouldSetUp = _this.store.getState().refCount > 0;\n if (_this.backend) {\n if (shouldSetUp && !_this.isSetUp) {\n _this.backend.setup();\n _this.isSetUp = true;\n } else if (!shouldSetUp && _this.isSetUp) {\n _this.backend.teardown();\n _this.isSetUp = false;\n }\n }\n };\n var store = makeStoreInstance(debugMode);\n this.store = store;\n this.monitor = new (0, _dragDropMonitorImplDefault.default)(store, new (0, _handlerRegistryImplDefault.default)(store));\n store.subscribe(this.handleRefCountChange);\n }\n _createClass(DragDropManagerImpl, [\n {\n key: \"receiveBackend\",\n value: function receiveBackend(backend) {\n this.backend = backend;\n }\n },\n {\n key: \"getMonitor\",\n value: function getMonitor() {\n return this.monitor;\n }\n },\n {\n key: \"getBackend\",\n value: function getBackend() {\n return this.backend;\n }\n },\n {\n key: \"getRegistry\",\n value: function getRegistry() {\n return this.monitor.registry;\n }\n },\n {\n key: \"getActions\",\n value: function getActions() {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias */ var manager = this;\n var dispatch = this.store.dispatch;\n function bindActionCreator(actionCreator) {\n return function() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n var action = actionCreator.apply(manager, args);\n if (typeof action !== \"undefined\") dispatch(action);\n };\n }\n var actions = (0, _dragDropDefault.default)(this);\n return Object.keys(actions).reduce(function(boundActions, key) {\n var action = actions[key];\n boundActions[key] = bindActionCreator(action);\n return boundActions;\n }, {});\n }\n },\n {\n key: \"dispatch\",\n value: function dispatch(action) {\n this.store.dispatch(action);\n }\n }\n ]);\n return DragDropManagerImpl;\n}();\n\n},{\"redux\":\"ifE4h\",\"./reducers\":\"iiTup\",\"./actions/dragDrop\":\"gjbul\",\"./DragDropMonitorImpl\":\"cFiD6\",\"./HandlerRegistryImpl\":\"835Mu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ifE4h\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"__DO_NOT_USE__ActionTypes\", ()=>ActionTypes);\nparcelHelpers.export(exports, \"applyMiddleware\", ()=>applyMiddleware);\nparcelHelpers.export(exports, \"bindActionCreators\", ()=>bindActionCreators);\nparcelHelpers.export(exports, \"combineReducers\", ()=>combineReducers);\nparcelHelpers.export(exports, \"compose\", ()=>compose);\nparcelHelpers.export(exports, \"createStore\", ()=>createStore);\nvar _objectSpread2 = require(\"@babel/runtime/helpers/esm/objectSpread2\");\nvar _objectSpread2Default = parcelHelpers.interopDefault(_objectSpread2);\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */ function formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + \"use the non-minified dev environment for full errors. \";\n}\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = function() {\n return typeof Symbol === \"function\" && Symbol.observable || \"@@observable\";\n}();\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */ var randomString = function randomString() {\n return Math.random().toString(36).substring(7).split(\"\").join(\".\");\n};\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */ function isPlainObject(obj) {\n if (typeof obj !== \"object\" || obj === null) return false;\n var proto = obj;\n while(Object.getPrototypeOf(proto) !== null)proto = Object.getPrototypeOf(proto);\n return Object.getPrototypeOf(obj) === proto;\n}\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n var miniKindOf, ctorName, isError, isDate;\n return typeOfVal;\n}\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */ function createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n if (typeof preloadedState === \"function\" && typeof enhancer === \"function\" || typeof enhancer === \"function\" && typeof arguments[3] === \"function\") throw new Error(formatProdErrorMessage(0));\n if (typeof preloadedState === \"function\" && typeof enhancer === \"undefined\") {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n if (typeof enhancer !== \"undefined\") {\n if (typeof enhancer !== \"function\") throw new Error(formatProdErrorMessage(1));\n return enhancer(createStore)(reducer, preloadedState);\n }\n if (typeof reducer !== \"function\") throw new Error(formatProdErrorMessage(2));\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */ function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) nextListeners = currentListeners.slice();\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */ function getState() {\n if (isDispatching) throw new Error(formatProdErrorMessage(3));\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */ function subscribe(listener) {\n if (typeof listener !== \"function\") throw new Error(formatProdErrorMessage(4));\n if (isDispatching) throw new Error(formatProdErrorMessage(5));\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) return;\n if (isDispatching) throw new Error(formatProdErrorMessage(6));\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */ function dispatch(action) {\n if (!isPlainObject(action)) throw new Error(formatProdErrorMessage(7));\n if (typeof action.type === \"undefined\") throw new Error(formatProdErrorMessage(8));\n if (isDispatching) throw new Error(formatProdErrorMessage(9));\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally{\n isDispatching = false;\n }\n var listeners = currentListeners = nextListeners;\n for(var i = 0; i < listeners.length; i++){\n var listener = listeners[i];\n listener();\n }\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */ function replaceReducer(nextReducer) {\n if (typeof nextReducer !== \"function\") throw new Error(formatProdErrorMessage(10));\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */ function observable() {\n var _ref;\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */ subscribe: function subscribe(observer) {\n if (typeof observer !== \"object\" || observer === null) throw new Error(formatProdErrorMessage(11));\n function observeState() {\n if (observer.next) observer.next(getState());\n }\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function() {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */ function warning(message) {\n /* eslint-disable no-console */ if (typeof console !== \"undefined\" && typeof console.error === \"function\") console.error(message);\n /* eslint-enable no-console */ try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n}\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? \"preloadedState argument passed to createStore\" : \"previous state received by the reducer\";\n if (reducerKeys.length === 0) return \"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.\";\n if (!isPlainObject(inputState)) return \"The \" + argumentName + ' has unexpected type of \"' + kindOf(inputState) + '\". Expected argument to be an object with the following ' + ('keys: \"' + reducerKeys.join('\", \"') + '\"');\n var unexpectedKeys = Object.keys(inputState).filter(function(key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function(key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n if (unexpectedKeys.length > 0) return \"Unexpected \" + (unexpectedKeys.length > 1 ? \"keys\" : \"key\") + \" \" + ('\"' + unexpectedKeys.join('\", \"') + '\" found in ' + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + ('\"' + reducerKeys.join('\", \"') + '\". Unexpected keys will be ignored.');\n}\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function(key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n if (typeof initialState === \"undefined\") throw new Error(formatProdErrorMessage(12));\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === \"undefined\") throw new Error(formatProdErrorMessage(13));\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */ function combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n for(var i = 0; i < reducerKeys.length; i++){\n var key = reducerKeys[i];\n if (typeof reducers[key] === \"function\") finalReducers[key] = reducers[key];\n }\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n var unexpectedKeyCache;\n var shapeAssertionError;\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n return function combination(state, action) {\n if (state === void 0) state = {};\n if (shapeAssertionError) throw shapeAssertionError;\n var warningMessage;\n var hasChanged = false;\n var nextState = {};\n for(var _i = 0; _i < finalReducerKeys.length; _i++){\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n if (typeof nextStateForKey === \"undefined\") {\n var actionType = action && action.type;\n throw new Error(formatProdErrorMessage(14));\n }\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\nfunction bindActionCreator(actionCreator, dispatch) {\n return function() {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */ function bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === \"function\") return bindActionCreator(actionCreators, dispatch);\n if (typeof actionCreators !== \"object\" || actionCreators === null) throw new Error(formatProdErrorMessage(16));\n var boundActionCreators = {};\n for(var key in actionCreators){\n var actionCreator = actionCreators[key];\n if (typeof actionCreator === \"function\") boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n return boundActionCreators;\n}\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */ function compose() {\n for(var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++)funcs[_key] = arguments[_key];\n if (funcs.length === 0) return function(arg) {\n return arg;\n };\n if (funcs.length === 1) return funcs[0];\n return funcs.reduce(function(a, b) {\n return function() {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */ function applyMiddleware() {\n for(var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++)middlewares[_key] = arguments[_key];\n return function(createStore) {\n return function() {\n var store = createStore.apply(void 0, arguments);\n var _dispatch = function dispatch() {\n throw new Error(formatProdErrorMessage(15));\n };\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function(middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return (0, _objectSpread2Default.default)((0, _objectSpread2Default.default)({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */ function isCrushed() {}\n\n},{\"@babel/runtime/helpers/esm/objectSpread2\":\"8NPGJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8NPGJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>_objectSpread2);\nvar _definePropertyJs = require(\"./defineProperty.js\");\nvar _definePropertyJsDefault = parcelHelpers.interopDefault(_definePropertyJs);\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n (0, _definePropertyJsDefault.default)(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\n\n},{\"./defineProperty.js\":\"bKYNI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bKYNI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>_defineProperty);\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iiTup\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>reduce);\nvar _dragOffset = require(\"./dragOffset\");\nvar _dragOffsetDefault = parcelHelpers.interopDefault(_dragOffset);\nvar _dragOperation = require(\"./dragOperation\");\nvar _dragOperationDefault = parcelHelpers.interopDefault(_dragOperation);\nvar _refCount = require(\"./refCount\");\nvar _refCountDefault = parcelHelpers.interopDefault(_refCount);\nvar _dirtyHandlerIds = require(\"./dirtyHandlerIds\");\nvar _dirtyHandlerIdsDefault = parcelHelpers.interopDefault(_dirtyHandlerIds);\nvar _stateId = require(\"./stateId\");\nvar _stateIdDefault = parcelHelpers.interopDefault(_stateId);\nvar _jsUtils = require(\"../utils/js_utils\");\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments.length > 1 ? arguments[1] : undefined;\n return {\n dirtyHandlerIds: (0, _dirtyHandlerIdsDefault.default)(state.dirtyHandlerIds, {\n type: action.type,\n payload: _objectSpread({}, action.payload, {\n prevTargetIds: (0, _jsUtils.get)(state, \"dragOperation.targetIds\", [])\n })\n }),\n dragOffset: (0, _dragOffsetDefault.default)(state.dragOffset, action),\n refCount: (0, _refCountDefault.default)(state.refCount, action),\n dragOperation: (0, _dragOperationDefault.default)(state.dragOperation, action),\n stateId: (0, _stateIdDefault.default)(state.stateId)\n };\n}\n\n},{\"./dragOffset\":\"h5aMq\",\"./dragOperation\":\"ekUCj\",\"./refCount\":\"hGUse\",\"./dirtyHandlerIds\":\"hcvtV\",\"./stateId\":\"g7m8M\",\"../utils/js_utils\":\"58te4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"h5aMq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>dragOffset);\nvar _dragDrop = require(\"../actions/dragDrop\");\nvar _equality = require(\"../utils/equality\");\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nvar initialState = {\n initialSourceClientOffset: null,\n initialClientOffset: null,\n clientOffset: null\n};\nfunction dragOffset() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n switch(action.type){\n case 0, _dragDrop.INIT_COORDS:\n case 0, _dragDrop.BEGIN_DRAG:\n return {\n initialSourceClientOffset: payload.sourceClientOffset,\n initialClientOffset: payload.clientOffset,\n clientOffset: payload.clientOffset\n };\n case 0, _dragDrop.HOVER:\n if ((0, _equality.areCoordsEqual)(state.clientOffset, payload.clientOffset)) return state;\n return _objectSpread({}, state, {\n clientOffset: payload.clientOffset\n });\n case 0, _dragDrop.END_DRAG:\n case 0, _dragDrop.DROP:\n return initialState;\n default:\n return state;\n }\n}\n\n},{\"../actions/dragDrop\":\"gjbul\",\"../utils/equality\":\"kkSGy\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gjbul\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createDragDropActions);\nvar _beginDrag = require(\"./beginDrag\");\nvar _beginDragDefault = parcelHelpers.interopDefault(_beginDrag);\nvar _publishDragSource = require(\"./publishDragSource\");\nvar _publishDragSourceDefault = parcelHelpers.interopDefault(_publishDragSource);\nvar _hover = require(\"./hover\");\nvar _hoverDefault = parcelHelpers.interopDefault(_hover);\nvar _drop = require(\"./drop\");\nvar _dropDefault = parcelHelpers.interopDefault(_drop);\nvar _endDrag = require(\"./endDrag\");\nvar _endDragDefault = parcelHelpers.interopDefault(_endDrag);\nvar _types = require(\"./types\");\nparcelHelpers.exportAll(_types, exports);\nfunction createDragDropActions(manager) {\n return {\n beginDrag: (0, _beginDragDefault.default)(manager),\n publishDragSource: (0, _publishDragSourceDefault.default)(manager),\n hover: (0, _hoverDefault.default)(manager),\n drop: (0, _dropDefault.default)(manager),\n endDrag: (0, _endDragDefault.default)(manager)\n };\n}\n\n},{\"./beginDrag\":\"iSgKN\",\"./publishDragSource\":\"kiTN4\",\"./hover\":\"2c1Ra\",\"./drop\":\"b4VAB\",\"./endDrag\":\"hvo47\",\"./types\":\"bXDm4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iSgKN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createBeginDrag);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _setClientOffset = require(\"./local/setClientOffset\");\nvar _jsUtils = require(\"../../utils/js_utils\");\nvar _types = require(\"./types\");\nvar ResetCoordinatesAction = {\n type: (0, _types.INIT_COORDS),\n payload: {\n clientOffset: null,\n sourceClientOffset: null\n }\n};\nfunction createBeginDrag(manager) {\n return function beginDrag() {\n var sourceIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n publishSource: true\n };\n var _options$publishSourc = options.publishSource, publishSource = _options$publishSourc === void 0 ? true : _options$publishSourc, clientOffset = options.clientOffset, getSourceClientOffset = options.getSourceClientOffset;\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry(); // Initialize the coordinates using the client offset\n manager.dispatch((0, _setClientOffset.setClientOffset)(clientOffset));\n verifyInvariants(sourceIds, monitor, registry); // Get the draggable source\n var sourceId = getDraggableSource(sourceIds, monitor);\n if (sourceId === null) {\n manager.dispatch(ResetCoordinatesAction);\n return;\n } // Get the source client offset\n var sourceClientOffset = null;\n if (clientOffset) {\n verifyGetSourceClientOffsetIsFunction(getSourceClientOffset);\n sourceClientOffset = getSourceClientOffset(sourceId);\n } // Initialize the full coordinates\n manager.dispatch((0, _setClientOffset.setClientOffset)(clientOffset, sourceClientOffset));\n var source = registry.getSource(sourceId);\n var item = source.beginDrag(monitor, sourceId);\n verifyItemIsObject(item);\n registry.pinSource(sourceId);\n var itemType = registry.getSourceType(sourceId);\n return {\n type: (0, _types.BEGIN_DRAG),\n payload: {\n itemType: itemType,\n item: item,\n sourceId: sourceId,\n clientOffset: clientOffset || null,\n sourceClientOffset: sourceClientOffset || null,\n isSourcePublic: !!publishSource\n }\n };\n };\n}\nfunction verifyInvariants(sourceIds, monitor, registry) {\n (0, _invariant.invariant)(!monitor.isDragging(), \"Cannot call beginDrag while dragging.\");\n sourceIds.forEach(function(sourceId) {\n (0, _invariant.invariant)(registry.getSource(sourceId), \"Expected sourceIds to be registered.\");\n });\n}\nfunction verifyGetSourceClientOffsetIsFunction(getSourceClientOffset) {\n (0, _invariant.invariant)(typeof getSourceClientOffset === \"function\", \"When clientOffset is provided, getSourceClientOffset must be a function.\");\n}\nfunction verifyItemIsObject(item) {\n (0, _invariant.invariant)((0, _jsUtils.isObject)(item), \"Item must be an object.\");\n}\nfunction getDraggableSource(sourceIds, monitor) {\n var sourceId = null;\n for(var i = sourceIds.length - 1; i >= 0; i--)if (monitor.canDragSource(sourceIds[i])) {\n sourceId = sourceIds[i];\n break;\n }\n return sourceId;\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"./local/setClientOffset\":\"2ryfq\",\"../../utils/js_utils\":\"58te4\",\"./types\":\"bXDm4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"l9K61\":[function(require,module,exports) {\n/**\r\n * Use invariant() to assert state which your program assumes to be true.\r\n *\r\n * Provide sprintf-style format (only %s is supported) and arguments\r\n * to provide information about what broke and what you were\r\n * expecting.\r\n *\r\n * The invariant message will be stripped in production, but the invariant\r\n * will remain to ensure logic does not differ in production.\r\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"invariant\", ()=>invariant);\nfunction invariant(condition, format) {\n for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)args[_key - 2] = arguments[_key];\n if (!condition) {\n var error;\n if (format === undefined) error = new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");\n else {\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function() {\n return args[argIndex++];\n }));\n error.name = \"Invariant Violation\";\n }\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2ryfq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"setClientOffset\", ()=>setClientOffset);\nvar _types = require(\"../types\");\nfunction setClientOffset(clientOffset, sourceClientOffset) {\n return {\n type: (0, _types.INIT_COORDS),\n payload: {\n sourceClientOffset: sourceClientOffset || null,\n clientOffset: clientOffset || null\n }\n };\n}\n\n},{\"../types\":\"bXDm4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bXDm4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"INIT_COORDS\", ()=>INIT_COORDS);\nparcelHelpers.export(exports, \"BEGIN_DRAG\", ()=>BEGIN_DRAG);\nparcelHelpers.export(exports, \"PUBLISH_DRAG_SOURCE\", ()=>PUBLISH_DRAG_SOURCE);\nparcelHelpers.export(exports, \"HOVER\", ()=>HOVER);\nparcelHelpers.export(exports, \"DROP\", ()=>DROP);\nparcelHelpers.export(exports, \"END_DRAG\", ()=>END_DRAG);\nvar INIT_COORDS = \"dnd-core/INIT_COORDS\";\nvar BEGIN_DRAG = \"dnd-core/BEGIN_DRAG\";\nvar PUBLISH_DRAG_SOURCE = \"dnd-core/PUBLISH_DRAG_SOURCE\";\nvar HOVER = \"dnd-core/HOVER\";\nvar DROP = \"dnd-core/DROP\";\nvar END_DRAG = \"dnd-core/END_DRAG\";\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"58te4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n// cheap lodash replacements\n/**\n * drop-in replacement for _.get\n * @param obj\n * @param path\n * @param defaultValue\n */ parcelHelpers.export(exports, \"get\", ()=>get);\n/**\n * drop-in replacement for _.without\n */ parcelHelpers.export(exports, \"without\", ()=>without);\n/**\n * drop-in replacement for _.isString\n * @param input\n */ parcelHelpers.export(exports, \"isString\", ()=>isString);\n/**\n * drop-in replacement for _.isString\n * @param input\n */ parcelHelpers.export(exports, \"isObject\", ()=>isObject);\n/**\n * repalcement for _.xor\n * @param itemsA\n * @param itemsB\n */ parcelHelpers.export(exports, \"xor\", ()=>xor);\n/**\n * replacement for _.intersection\n * @param itemsA\n * @param itemsB\n */ parcelHelpers.export(exports, \"intersection\", ()=>intersection);\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction get(obj, path, defaultValue) {\n return path.split(\".\").reduce(function(a, c) {\n return a && a[c] ? a[c] : defaultValue || null;\n }, obj);\n}\nfunction without(items, item) {\n return items.filter(function(i) {\n return i !== item;\n });\n}\nfunction isString(input) {\n return typeof input === \"string\";\n}\nfunction isObject(input) {\n return _typeof(input) === \"object\";\n}\nfunction xor(itemsA, itemsB) {\n var map = new Map();\n var insertItem = function insertItem(item) {\n return map.set(item, map.has(item) ? map.get(item) + 1 : 1);\n };\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n map.forEach(function(count, key) {\n if (count === 1) result.push(key);\n });\n return result;\n}\nfunction intersection(itemsA, itemsB) {\n return itemsA.filter(function(t) {\n return itemsB.indexOf(t) > -1;\n });\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kiTN4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createPublishDragSource);\nvar _types = require(\"./types\");\nfunction createPublishDragSource(manager) {\n return function publishDragSource() {\n var monitor = manager.getMonitor();\n if (monitor.isDragging()) return {\n type: (0, _types.PUBLISH_DRAG_SOURCE)\n };\n };\n}\n\n},{\"./types\":\"bXDm4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2c1Ra\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createHover);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _matchesType = require(\"../../utils/matchesType\");\nvar _matchesTypeDefault = parcelHelpers.interopDefault(_matchesType);\nvar _types = require(\"./types\");\nfunction createHover(manager) {\n return function hover(targetIdsArg) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, clientOffset = _ref.clientOffset;\n verifyTargetIdsIsArray(targetIdsArg);\n var targetIds = targetIdsArg.slice(0);\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n checkInvariants(targetIds, monitor, registry);\n var draggedItemType = monitor.getItemType();\n removeNonMatchingTargetIds(targetIds, registry, draggedItemType);\n hoverAllTargets(targetIds, monitor, registry);\n return {\n type: (0, _types.HOVER),\n payload: {\n targetIds: targetIds,\n clientOffset: clientOffset || null\n }\n };\n };\n}\nfunction verifyTargetIdsIsArray(targetIdsArg) {\n (0, _invariant.invariant)(Array.isArray(targetIdsArg), \"Expected targetIds to be an array.\");\n}\nfunction checkInvariants(targetIds, monitor, registry) {\n (0, _invariant.invariant)(monitor.isDragging(), \"Cannot call hover while not dragging.\");\n (0, _invariant.invariant)(!monitor.didDrop(), \"Cannot call hover after drop.\");\n for(var i = 0; i < targetIds.length; i++){\n var targetId = targetIds[i];\n (0, _invariant.invariant)(targetIds.lastIndexOf(targetId) === i, \"Expected targetIds to be unique in the passed array.\");\n var target = registry.getTarget(targetId);\n (0, _invariant.invariant)(target, \"Expected targetIds to be registered.\");\n }\n}\nfunction removeNonMatchingTargetIds(targetIds, registry, draggedItemType) {\n // Remove those targetIds that don't match the targetType. This\n // fixes shallow isOver which would only be non-shallow because of\n // non-matching targets.\n for(var i = targetIds.length - 1; i >= 0; i--){\n var targetId = targetIds[i];\n var targetType = registry.getTargetType(targetId);\n if (!(0, _matchesTypeDefault.default)(targetType, draggedItemType)) targetIds.splice(i, 1);\n }\n}\nfunction hoverAllTargets(targetIds, monitor, registry) {\n // Finally call hover on all matching targets.\n targetIds.forEach(function(targetId) {\n var target = registry.getTarget(targetId);\n target.hover(monitor, targetId);\n });\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"../../utils/matchesType\":\"82YkN\",\"./types\":\"bXDm4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"82YkN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>matchesType);\nfunction matchesType(targetType, draggedItemType) {\n if (draggedItemType === null) return targetType === null;\n return Array.isArray(targetType) ? targetType.some(function(t) {\n return t === draggedItemType;\n }) : targetType === draggedItemType;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"b4VAB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createDrop);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _types = require(\"./types\");\nvar _jsUtils = require(\"../../utils/js_utils\");\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction createDrop(manager) {\n return function drop() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyInvariants(monitor);\n var targetIds = getDroppableTargets(monitor); // Multiple actions are dispatched here, which is why this doesn't return an action\n targetIds.forEach(function(targetId, index) {\n var dropResult = determineDropResult(targetId, index, registry, monitor);\n var action = {\n type: (0, _types.DROP),\n payload: {\n dropResult: _objectSpread({}, options, {}, dropResult)\n }\n };\n manager.dispatch(action);\n });\n };\n}\nfunction verifyInvariants(monitor) {\n (0, _invariant.invariant)(monitor.isDragging(), \"Cannot call drop while not dragging.\");\n (0, _invariant.invariant)(!monitor.didDrop(), \"Cannot call drop twice during one drag operation.\");\n}\nfunction determineDropResult(targetId, index, registry, monitor) {\n var target = registry.getTarget(targetId);\n var dropResult = target ? target.drop(monitor, targetId) : undefined;\n verifyDropResultType(dropResult);\n if (typeof dropResult === \"undefined\") dropResult = index === 0 ? {} : monitor.getDropResult();\n return dropResult;\n}\nfunction verifyDropResultType(dropResult) {\n (0, _invariant.invariant)(typeof dropResult === \"undefined\" || (0, _jsUtils.isObject)(dropResult), \"Drop result must either be an object or undefined.\");\n}\nfunction getDroppableTargets(monitor) {\n var targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor);\n targetIds.reverse();\n return targetIds;\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"./types\":\"bXDm4\",\"../../utils/js_utils\":\"58te4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hvo47\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createEndDrag);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _types = require(\"./types\");\nfunction createEndDrag(manager) {\n return function endDrag() {\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyIsDragging(monitor);\n var sourceId = monitor.getSourceId();\n var source = registry.getSource(sourceId, true);\n source.endDrag(monitor, sourceId);\n registry.unpinSource();\n return {\n type: (0, _types.END_DRAG)\n };\n };\n}\nfunction verifyIsDragging(monitor) {\n (0, _invariant.invariant)(monitor.isDragging(), \"Cannot call endDrag while not dragging.\");\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"./types\":\"bXDm4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kkSGy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"strictEquality\", ()=>strictEquality);\n/**\n * Determine if two cartesian coordinate offsets are equal\n * @param offsetA\n * @param offsetB\n */ parcelHelpers.export(exports, \"areCoordsEqual\", ()=>areCoordsEqual);\n/**\n * Determines if two arrays of items are equal\n * @param a The first array of items\n * @param b The second array of items\n */ parcelHelpers.export(exports, \"areArraysEqual\", ()=>areArraysEqual);\nvar strictEquality = function strictEquality(a, b) {\n return a === b;\n};\nfunction areCoordsEqual(offsetA, offsetB) {\n if (!offsetA && !offsetB) return true;\n else if (!offsetA || !offsetB) return false;\n else return offsetA.x === offsetB.x && offsetA.y === offsetB.y;\n}\nfunction areArraysEqual(a, b) {\n var isEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : strictEquality;\n if (a.length !== b.length) return false;\n for(var i = 0; i < a.length; ++i){\n if (!isEqual(a[i], b[i])) return false;\n }\n return true;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ekUCj\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>dragOperation);\nvar _dragDrop = require(\"../actions/dragDrop\");\nvar _registry = require(\"../actions/registry\");\nvar _jsUtils = require(\"../utils/js_utils\");\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nvar initialState = {\n itemType: null,\n item: null,\n sourceId: null,\n targetIds: [],\n dropResult: null,\n didDrop: false,\n isSourcePublic: null\n};\nfunction dragOperation() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n switch(action.type){\n case 0, _dragDrop.BEGIN_DRAG:\n return _objectSpread({}, state, {\n itemType: payload.itemType,\n item: payload.item,\n sourceId: payload.sourceId,\n isSourcePublic: payload.isSourcePublic,\n dropResult: null,\n didDrop: false\n });\n case 0, _dragDrop.PUBLISH_DRAG_SOURCE:\n return _objectSpread({}, state, {\n isSourcePublic: true\n });\n case 0, _dragDrop.HOVER:\n return _objectSpread({}, state, {\n targetIds: payload.targetIds\n });\n case 0, _registry.REMOVE_TARGET:\n if (state.targetIds.indexOf(payload.targetId) === -1) return state;\n return _objectSpread({}, state, {\n targetIds: (0, _jsUtils.without)(state.targetIds, payload.targetId)\n });\n case 0, _dragDrop.DROP:\n return _objectSpread({}, state, {\n dropResult: payload.dropResult,\n didDrop: true,\n targetIds: []\n });\n case 0, _dragDrop.END_DRAG:\n return _objectSpread({}, state, {\n itemType: null,\n item: null,\n sourceId: null,\n dropResult: null,\n didDrop: false,\n isSourcePublic: null,\n targetIds: []\n });\n default:\n return state;\n }\n}\n\n},{\"../actions/dragDrop\":\"gjbul\",\"../actions/registry\":\"a5fwF\",\"../utils/js_utils\":\"58te4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"a5fwF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ADD_SOURCE\", ()=>ADD_SOURCE);\nparcelHelpers.export(exports, \"ADD_TARGET\", ()=>ADD_TARGET);\nparcelHelpers.export(exports, \"REMOVE_SOURCE\", ()=>REMOVE_SOURCE);\nparcelHelpers.export(exports, \"REMOVE_TARGET\", ()=>REMOVE_TARGET);\nparcelHelpers.export(exports, \"addSource\", ()=>addSource);\nparcelHelpers.export(exports, \"addTarget\", ()=>addTarget);\nparcelHelpers.export(exports, \"removeSource\", ()=>removeSource);\nparcelHelpers.export(exports, \"removeTarget\", ()=>removeTarget);\nvar ADD_SOURCE = \"dnd-core/ADD_SOURCE\";\nvar ADD_TARGET = \"dnd-core/ADD_TARGET\";\nvar REMOVE_SOURCE = \"dnd-core/REMOVE_SOURCE\";\nvar REMOVE_TARGET = \"dnd-core/REMOVE_TARGET\";\nfunction addSource(sourceId) {\n return {\n type: ADD_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nfunction addTarget(targetId) {\n return {\n type: ADD_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}\nfunction removeSource(sourceId) {\n return {\n type: REMOVE_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nfunction removeTarget(targetId) {\n return {\n type: REMOVE_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hGUse\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>refCount);\nvar _registry = require(\"../actions/registry\");\nfunction refCount() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n switch(action.type){\n case 0, _registry.ADD_SOURCE:\n case 0, _registry.ADD_TARGET:\n return state + 1;\n case 0, _registry.REMOVE_SOURCE:\n case 0, _registry.REMOVE_TARGET:\n return state - 1;\n default:\n return state;\n }\n}\n\n},{\"../actions/registry\":\"a5fwF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hcvtV\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>dirtyHandlerIds);\nvar _dragDrop = require(\"../actions/dragDrop\");\nvar _registry = require(\"../actions/registry\");\nvar _equality = require(\"../utils/equality\");\nvar _dirtiness = require(\"../utils/dirtiness\");\nvar _jsUtils = require(\"../utils/js_utils\");\nfunction dirtyHandlerIds() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _dirtiness.NONE);\n var action = arguments.length > 1 ? arguments[1] : undefined;\n switch(action.type){\n case 0, _dragDrop.HOVER:\n break;\n case 0, _registry.ADD_SOURCE:\n case 0, _registry.ADD_TARGET:\n case 0, _registry.REMOVE_TARGET:\n case 0, _registry.REMOVE_SOURCE:\n return 0, _dirtiness.NONE;\n case 0, _dragDrop.BEGIN_DRAG:\n case 0, _dragDrop.PUBLISH_DRAG_SOURCE:\n case 0, _dragDrop.END_DRAG:\n case 0, _dragDrop.DROP:\n default:\n return 0, _dirtiness.ALL;\n }\n var _action$payload = action.payload, _action$payload$targe = _action$payload.targetIds, targetIds = _action$payload$targe === void 0 ? [] : _action$payload$targe, _action$payload$prevT = _action$payload.prevTargetIds, prevTargetIds = _action$payload$prevT === void 0 ? [] : _action$payload$prevT;\n var result = (0, _jsUtils.xor)(targetIds, prevTargetIds);\n var didChange = result.length > 0 || !(0, _equality.areArraysEqual)(targetIds, prevTargetIds);\n if (!didChange) return 0, _dirtiness.NONE;\n // Check the target ids at the innermost position. If they are valid, add them\n // to the result\n var prevInnermostTargetId = prevTargetIds[prevTargetIds.length - 1];\n var innermostTargetId = targetIds[targetIds.length - 1];\n if (prevInnermostTargetId !== innermostTargetId) {\n if (prevInnermostTargetId) result.push(prevInnermostTargetId);\n if (innermostTargetId) result.push(innermostTargetId);\n }\n return result;\n}\n\n},{\"../actions/dragDrop\":\"gjbul\",\"../actions/registry\":\"a5fwF\",\"../utils/equality\":\"kkSGy\",\"../utils/dirtiness\":\"2dQ3G\",\"../utils/js_utils\":\"58te4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2dQ3G\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"NONE\", ()=>NONE);\nparcelHelpers.export(exports, \"ALL\", ()=>ALL);\n/**\n * Determines if the given handler IDs are dirty or not.\n *\n * @param dirtyIds The set of dirty handler ids\n * @param handlerIds The set of handler ids to check\n */ parcelHelpers.export(exports, \"areDirty\", ()=>areDirty);\nvar _jsUtils = require(\"./js_utils\");\nvar NONE = [];\nvar ALL = [];\nNONE.__IS_NONE__ = true;\nALL.__IS_ALL__ = true;\nfunction areDirty(dirtyIds, handlerIds) {\n if (dirtyIds === NONE) return false;\n if (dirtyIds === ALL || typeof handlerIds === \"undefined\") return true;\n var commonIds = (0, _jsUtils.intersection)(handlerIds, dirtyIds);\n return commonIds.length > 0;\n}\n\n},{\"./js_utils\":\"58te4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"g7m8M\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>stateId);\nfunction stateId() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n return state + 1;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cFiD6\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>DragDropMonitorImpl);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _matchesType = require(\"./utils/matchesType\");\nvar _matchesTypeDefault = parcelHelpers.interopDefault(_matchesType);\nvar _coords = require(\"./utils/coords\");\nvar _dirtiness = require(\"./utils/dirtiness\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar DragDropMonitorImpl = /*#__PURE__*/ function() {\n function DragDropMonitorImpl(store, registry) {\n _classCallCheck(this, DragDropMonitorImpl);\n this.store = store;\n this.registry = registry;\n }\n _createClass(DragDropMonitorImpl, [\n {\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener) {\n var _this = this;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n handlerIds: undefined\n };\n var handlerIds = options.handlerIds;\n (0, _invariant.invariant)(typeof listener === \"function\", \"listener must be a function.\");\n (0, _invariant.invariant)(typeof handlerIds === \"undefined\" || Array.isArray(handlerIds), \"handlerIds, when specified, must be an array of strings.\");\n var prevStateId = this.store.getState().stateId;\n var handleChange = function handleChange() {\n var state = _this.store.getState();\n var currentStateId = state.stateId;\n try {\n var canSkipListener = currentStateId === prevStateId || currentStateId === prevStateId + 1 && !(0, _dirtiness.areDirty)(state.dirtyHandlerIds, handlerIds);\n if (!canSkipListener) listener();\n } finally{\n prevStateId = currentStateId;\n }\n };\n return this.store.subscribe(handleChange);\n }\n },\n {\n key: \"subscribeToOffsetChange\",\n value: function subscribeToOffsetChange(listener) {\n var _this2 = this;\n (0, _invariant.invariant)(typeof listener === \"function\", \"listener must be a function.\");\n var previousState = this.store.getState().dragOffset;\n var handleChange = function handleChange() {\n var nextState = _this2.store.getState().dragOffset;\n if (nextState === previousState) return;\n previousState = nextState;\n listener();\n };\n return this.store.subscribe(handleChange);\n }\n },\n {\n key: \"canDragSource\",\n value: function canDragSource(sourceId) {\n if (!sourceId) return false;\n var source = this.registry.getSource(sourceId);\n (0, _invariant.invariant)(source, \"Expected to find a valid source.\");\n if (this.isDragging()) return false;\n return source.canDrag(this, sourceId);\n }\n },\n {\n key: \"canDropOnTarget\",\n value: function canDropOnTarget(targetId) {\n // undefined on initial render\n if (!targetId) return false;\n var target = this.registry.getTarget(targetId);\n (0, _invariant.invariant)(target, \"Expected to find a valid target.\");\n if (!this.isDragging() || this.didDrop()) return false;\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n return (0, _matchesTypeDefault.default)(targetType, draggedItemType) && target.canDrop(this, targetId);\n }\n },\n {\n key: \"isDragging\",\n value: function isDragging() {\n return Boolean(this.getItemType());\n }\n },\n {\n key: \"isDraggingSource\",\n value: function isDraggingSource(sourceId) {\n // undefined on initial render\n if (!sourceId) return false;\n var source = this.registry.getSource(sourceId, true);\n (0, _invariant.invariant)(source, \"Expected to find a valid source.\");\n if (!this.isDragging() || !this.isSourcePublic()) return false;\n var sourceType = this.registry.getSourceType(sourceId);\n var draggedItemType = this.getItemType();\n if (sourceType !== draggedItemType) return false;\n return source.isDragging(this, sourceId);\n }\n },\n {\n key: \"isOverTarget\",\n value: function isOverTarget(targetId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n shallow: false\n };\n // undefined on initial render\n if (!targetId) return false;\n var shallow = options.shallow;\n if (!this.isDragging()) return false;\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n if (draggedItemType && !(0, _matchesTypeDefault.default)(targetType, draggedItemType)) return false;\n var targetIds = this.getTargetIds();\n if (!targetIds.length) return false;\n var index = targetIds.indexOf(targetId);\n if (shallow) return index === targetIds.length - 1;\n else return index > -1;\n }\n },\n {\n key: \"getItemType\",\n value: function getItemType() {\n return this.store.getState().dragOperation.itemType;\n }\n },\n {\n key: \"getItem\",\n value: function getItem() {\n return this.store.getState().dragOperation.item;\n }\n },\n {\n key: \"getSourceId\",\n value: function getSourceId() {\n return this.store.getState().dragOperation.sourceId;\n }\n },\n {\n key: \"getTargetIds\",\n value: function getTargetIds() {\n return this.store.getState().dragOperation.targetIds;\n }\n },\n {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.store.getState().dragOperation.dropResult;\n }\n },\n {\n key: \"didDrop\",\n value: function didDrop() {\n return this.store.getState().dragOperation.didDrop;\n }\n },\n {\n key: \"isSourcePublic\",\n value: function isSourcePublic() {\n return this.store.getState().dragOperation.isSourcePublic;\n }\n },\n {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.store.getState().dragOffset.initialClientOffset;\n }\n },\n {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.store.getState().dragOffset.initialSourceClientOffset;\n }\n },\n {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.store.getState().dragOffset.clientOffset;\n }\n },\n {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return (0, _coords.getSourceClientOffset)(this.store.getState().dragOffset);\n }\n },\n {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return (0, _coords.getDifferenceFromInitialOffset)(this.store.getState().dragOffset);\n }\n }\n ]);\n return DragDropMonitorImpl;\n}();\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"./utils/matchesType\":\"82YkN\",\"./utils/coords\":\"fIoIw\",\"./utils/dirtiness\":\"2dQ3G\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fIoIw\":[function(require,module,exports) {\n/**\n * Coordinate addition\n * @param a The first coordinate\n * @param b The second coordinate\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"add\", ()=>add);\n/**\n * Coordinate subtraction\n * @param a The first coordinate\n * @param b The second coordinate\n */ parcelHelpers.export(exports, \"subtract\", ()=>subtract);\n/**\n * Returns the cartesian distance of the drag source component's position, based on its position\n * at the time when the current drag operation has started, and the movement difference.\n *\n * Returns null if no item is being dragged.\n *\n * @param state The offset state to compute from\n */ parcelHelpers.export(exports, \"getSourceClientOffset\", ()=>getSourceClientOffset);\n/**\n * Determines the x,y offset between the client offset and the initial client offset\n *\n * @param state The offset state to compute from\n */ parcelHelpers.export(exports, \"getDifferenceFromInitialOffset\", ()=>getDifferenceFromInitialOffset);\nfunction add(a, b) {\n return {\n x: a.x + b.x,\n y: a.y + b.y\n };\n}\nfunction subtract(a, b) {\n return {\n x: a.x - b.x,\n y: a.y - b.y\n };\n}\nfunction getSourceClientOffset(state) {\n var clientOffset = state.clientOffset, initialClientOffset = state.initialClientOffset, initialSourceClientOffset = state.initialSourceClientOffset;\n if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) return null;\n return subtract(add(clientOffset, initialSourceClientOffset), initialClientOffset);\n}\nfunction getDifferenceFromInitialOffset(state) {\n var clientOffset = state.clientOffset, initialClientOffset = state.initialClientOffset;\n if (!clientOffset || !initialClientOffset) return null;\n return subtract(clientOffset, initialClientOffset);\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"835Mu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>HandlerRegistryImpl);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _registry = require(\"./actions/registry\");\nvar _getNextUniqueId = require(\"./utils/getNextUniqueId\");\nvar _getNextUniqueIdDefault = parcelHelpers.interopDefault(_getNextUniqueId);\nvar _interfaces = require(\"./interfaces\");\nvar _contracts = require(\"./contracts\");\nvar _asap = require(\"@react-dnd/asap\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction getNextHandlerId(role) {\n var id = (0, _getNextUniqueIdDefault.default)().toString();\n switch(role){\n case (0, _interfaces.HandlerRole).SOURCE:\n return \"S\".concat(id);\n case (0, _interfaces.HandlerRole).TARGET:\n return \"T\".concat(id);\n default:\n throw new Error(\"Unknown Handler Role: \".concat(role));\n }\n}\nfunction parseRoleFromHandlerId(handlerId) {\n switch(handlerId[0]){\n case \"S\":\n return (0, _interfaces.HandlerRole).SOURCE;\n case \"T\":\n return (0, _interfaces.HandlerRole).TARGET;\n default:\n (0, _invariant.invariant)(false, \"Cannot parse handler ID: \".concat(handlerId));\n }\n}\nfunction mapContainsValue(map, searchValue) {\n var entries = map.entries();\n var isDone = false;\n do {\n var _entries$next = entries.next(), done = _entries$next.done, _entries$next$value = _slicedToArray(_entries$next.value, 2), value = _entries$next$value[1];\n if (value === searchValue) return true;\n isDone = !!done;\n }while (!isDone);\n return false;\n}\nvar HandlerRegistryImpl = /*#__PURE__*/ function() {\n function HandlerRegistryImpl(store) {\n _classCallCheck(this, HandlerRegistryImpl);\n this.types = new Map();\n this.dragSources = new Map();\n this.dropTargets = new Map();\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n this.store = store;\n }\n _createClass(HandlerRegistryImpl, [\n {\n key: \"addSource\",\n value: function addSource(type, source) {\n (0, _contracts.validateType)(type);\n (0, _contracts.validateSourceContract)(source);\n var sourceId = this.addHandler((0, _interfaces.HandlerRole).SOURCE, type, source);\n this.store.dispatch((0, _registry.addSource)(sourceId));\n return sourceId;\n }\n },\n {\n key: \"addTarget\",\n value: function addTarget(type, target) {\n (0, _contracts.validateType)(type, true);\n (0, _contracts.validateTargetContract)(target);\n var targetId = this.addHandler((0, _interfaces.HandlerRole).TARGET, type, target);\n this.store.dispatch((0, _registry.addTarget)(targetId));\n return targetId;\n }\n },\n {\n key: \"containsHandler\",\n value: function containsHandler(handler) {\n return mapContainsValue(this.dragSources, handler) || mapContainsValue(this.dropTargets, handler);\n }\n },\n {\n key: \"getSource\",\n value: function getSource(sourceId) {\n var includePinned = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n (0, _invariant.invariant)(this.isSourceId(sourceId), \"Expected a valid source ID.\");\n var isPinned = includePinned && sourceId === this.pinnedSourceId;\n var source = isPinned ? this.pinnedSource : this.dragSources.get(sourceId);\n return source;\n }\n },\n {\n key: \"getTarget\",\n value: function getTarget(targetId) {\n (0, _invariant.invariant)(this.isTargetId(targetId), \"Expected a valid target ID.\");\n return this.dropTargets.get(targetId);\n }\n },\n {\n key: \"getSourceType\",\n value: function getSourceType(sourceId) {\n (0, _invariant.invariant)(this.isSourceId(sourceId), \"Expected a valid source ID.\");\n return this.types.get(sourceId);\n }\n },\n {\n key: \"getTargetType\",\n value: function getTargetType(targetId) {\n (0, _invariant.invariant)(this.isTargetId(targetId), \"Expected a valid target ID.\");\n return this.types.get(targetId);\n }\n },\n {\n key: \"isSourceId\",\n value: function isSourceId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === (0, _interfaces.HandlerRole).SOURCE;\n }\n },\n {\n key: \"isTargetId\",\n value: function isTargetId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === (0, _interfaces.HandlerRole).TARGET;\n }\n },\n {\n key: \"removeSource\",\n value: function removeSource(sourceId) {\n var _this = this;\n (0, _invariant.invariant)(this.getSource(sourceId), \"Expected an existing source.\");\n this.store.dispatch((0, _registry.removeSource)(sourceId));\n (0, _asap.asap)(function() {\n _this.dragSources.delete(sourceId);\n _this.types.delete(sourceId);\n });\n }\n },\n {\n key: \"removeTarget\",\n value: function removeTarget(targetId) {\n (0, _invariant.invariant)(this.getTarget(targetId), \"Expected an existing target.\");\n this.store.dispatch((0, _registry.removeTarget)(targetId));\n this.dropTargets.delete(targetId);\n this.types.delete(targetId);\n }\n },\n {\n key: \"pinSource\",\n value: function pinSource(sourceId) {\n var source = this.getSource(sourceId);\n (0, _invariant.invariant)(source, \"Expected an existing source.\");\n this.pinnedSourceId = sourceId;\n this.pinnedSource = source;\n }\n },\n {\n key: \"unpinSource\",\n value: function unpinSource() {\n (0, _invariant.invariant)(this.pinnedSource, \"No source is pinned at the time.\");\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n }\n },\n {\n key: \"addHandler\",\n value: function addHandler(role, type, handler) {\n var id = getNextHandlerId(role);\n this.types.set(id, type);\n if (role === (0, _interfaces.HandlerRole).SOURCE) this.dragSources.set(id, handler);\n else if (role === (0, _interfaces.HandlerRole).TARGET) this.dropTargets.set(id, handler);\n return id;\n }\n }\n ]);\n return HandlerRegistryImpl;\n}();\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"./actions/registry\":\"a5fwF\",\"./utils/getNextUniqueId\":\"kG0sO\",\"./interfaces\":\"fYYt6\",\"./contracts\":\"4GKsp\",\"@react-dnd/asap\":\"7Q89M\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kG0sO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>getNextUniqueId);\nvar nextUniqueId = 0;\nfunction getNextUniqueId() {\n return nextUniqueId++;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4GKsp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"validateSourceContract\", ()=>validateSourceContract);\nparcelHelpers.export(exports, \"validateTargetContract\", ()=>validateTargetContract);\nparcelHelpers.export(exports, \"validateType\", ()=>validateType);\nvar _invariant = require(\"@react-dnd/invariant\");\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction validateSourceContract(source) {\n (0, _invariant.invariant)(typeof source.canDrag === \"function\", \"Expected canDrag to be a function.\");\n (0, _invariant.invariant)(typeof source.beginDrag === \"function\", \"Expected beginDrag to be a function.\");\n (0, _invariant.invariant)(typeof source.endDrag === \"function\", \"Expected endDrag to be a function.\");\n}\nfunction validateTargetContract(target) {\n (0, _invariant.invariant)(typeof target.canDrop === \"function\", \"Expected canDrop to be a function.\");\n (0, _invariant.invariant)(typeof target.hover === \"function\", \"Expected hover to be a function.\");\n (0, _invariant.invariant)(typeof target.drop === \"function\", \"Expected beginDrag to be a function.\");\n}\nfunction validateType(type, allowArray) {\n if (allowArray && Array.isArray(type)) {\n type.forEach(function(t) {\n return validateType(t, false);\n });\n return;\n }\n (0, _invariant.invariant)(typeof type === \"string\" || _typeof(type) === \"symbol\", allowArray ? \"Type can only be a string, a symbol, or an array of either.\" : \"Type can only be a string or a symbol.\");\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7Q89M\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _asap = require(\"./asap\");\nparcelHelpers.exportAll(_asap, exports);\n\n},{\"./asap\":\"h9imb\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"h9imb\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Calls a task as soon as possible after returning, in its own event, with priority\n * over other events like animation, reflow, and repaint. An error thrown from an\n * event will not interrupt, nor even substantially slow down the processing of\n * other events, but will be rather postponed to a lower priority event.\n * @param {{call}} task A callable object, typically a function that takes no\n * arguments.\n */ parcelHelpers.export(exports, \"asap\", ()=>asap) // We wrap tasks with recyclable task objects. A task object implements\n;\nvar _raw = require(\"./raw\"); // rawAsap provides everything we need except exception management.\n// RawTasks are recycled to reduce GC churn.\nvar freeTasks = []; // We queue errors to ensure they are thrown in right order (FIFO).\n// Array-as-queue is good enough here, since we are just dealing with exceptions.\nvar pendingErrors = [];\nvar requestErrorThrow = (0, _raw.rawAsap).makeRequestCallFromTimer(throwFirstError);\nfunction throwFirstError() {\n if (pendingErrors.length) throw pendingErrors.shift();\n}\nfunction asap(task) {\n var rawTask;\n if (freeTasks.length) rawTask = freeTasks.pop();\n else rawTask = new RawTask();\n rawTask.task = task;\n (0, _raw.rawAsap)(rawTask);\n}\n// `call`, just like a function.\nvar RawTask = /** @class */ function() {\n function RawTask() {}\n RawTask.prototype.call = function() {\n try {\n this.task.call();\n } catch (error) {\n if (asap.onerror) // This hook exists purely for testing purposes.\n // Its name will be periodically randomized to break any code that\n // depends on its existence.\n asap.onerror(error);\n else {\n // In a web browser, exceptions are not fatal. However, to avoid\n // slowing down the queue of pending tasks, we rethrow the error in a\n // lower priority turn.\n pendingErrors.push(error);\n requestErrorThrow();\n }\n } finally{\n this.task = null;\n freeTasks[freeTasks.length] = this;\n }\n };\n return RawTask;\n}();\n\n},{\"./raw\":\"83hwQ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"83hwQ\":[function(require,module,exports) {\n// Use the fastest means possible to execute a task in its own turn, with\n// priority over other events including IO, animation, reflow, and redraw\n// events in browsers.\n//\n// An exception thrown by a task will permanently interrupt the processing of\n// subsequent tasks. The higher level `asap` function ensures that if an\n// exception is thrown by a task, that the task queue will continue flushing as\n// soon as possible, but if you use `rawAsap` directly, you are responsible to\n// either ensure that no exceptions are thrown from your task, or to manually\n// call `rawAsap.requestFlush` if an exception is thrown.\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"rawAsap\", ()=>rawAsap);\nvar global = arguments[3];\nfunction rawAsap(task) {\n if (!queue.length) {\n requestFlush();\n flushing = true;\n } // Equivalent to push, but avoids a function call.\n queue[queue.length] = task;\n}\nvar queue = []; // Once a flush has been requested, no further calls to `requestFlush` are\n// necessary until the next `flush` completes.\n// @ts-ignore\nvar flushing = false; // `requestFlush` is an implementation-specific method that attempts to kick\n// off a `flush` event as quickly as possible. `flush` will attempt to exhaust\n// the event queue before yielding to the browser's own event loop.\nvar requestFlush; // The position of the next task to execute in the task queue. This is\n// preserved between calls to `flush` so that it can be resumed if\n// a task throws an exception.\nvar index = 0; // If a task schedules additional tasks recursively, the task queue can grow\n// unbounded. To prevent memory exhaustion, the task queue will periodically\n// truncate already-completed tasks.\nvar capacity = 1024; // The flush function processes all tasks that have been scheduled with\n// `rawAsap` unless and until one of those tasks throws an exception.\n// If a task throws an exception, `flush` ensures that its state will remain\n// consistent and will resume where it left off when called again.\n// However, `flush` does not make any arrangements to be called again if an\n// exception is thrown.\nfunction flush() {\n while(index < queue.length){\n var currentIndex = index; // Advance the index before calling the task. This ensures that we will\n // begin flushing on the next task the task throws an error.\n index = index + 1;\n queue[currentIndex].call(); // Prevent leaking memory for long chains of recursive calls to `asap`.\n // If we call `asap` within tasks scheduled by `asap`, the queue will\n // grow, but to avoid an O(n) walk for every task we execute, we don't\n // shift tasks off the queue after they have been executed.\n // Instead, we periodically shift 1024 tasks off the queue.\n if (index > capacity) {\n // Manually shift all values starting at the index back to the\n // beginning of the queue.\n for(var scan = 0, newLength = queue.length - index; scan < newLength; scan++)queue[scan] = queue[scan + index];\n queue.length -= index;\n index = 0;\n }\n }\n queue.length = 0;\n index = 0;\n flushing = false;\n} // `requestFlush` is implemented using a strategy based on data collected from\n// every available SauceLabs Selenium web driver worker at time of writing.\n// https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593\n// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that\n// have WebKitMutationObserver but not un-prefixed MutationObserver.\n// Must use `global` or `self` instead of `window` to work in both frames and web\n// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.\n/* globals self */ var scope = typeof global !== \"undefined\" ? global : self;\nvar BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver; // MutationObservers are desirable because they have high priority and work\n// reliably everywhere they are implemented.\n// They are implemented in all modern browsers.\n//\n// - Android 4-4.3\n// - Chrome 26-34\n// - Firefox 14-29\n// - Internet Explorer 11\n// - iPad Safari 6-7.1\n// - iPhone Safari 7-7.1\n// - Safari 6-7\nif (typeof BrowserMutationObserver === \"function\") requestFlush = makeRequestCallFromMutationObserver(flush); // MessageChannels are desirable because they give direct access to the HTML\nelse requestFlush = makeRequestCallFromTimer(flush);\n // `requestFlush` requests that the high priority event queue be flushed as\n// soon as possible.\n// This is useful to prevent an error thrown in a task from stalling the event\n// queue if the exception handled by Node.js’s\n// `process.on(\"uncaughtException\")` or by a domain.\nrawAsap.requestFlush = requestFlush; // To request a high priority event, we induce a mutation observer by toggling\n// the text of a text node between \"1\" and \"-1\".\nfunction makeRequestCallFromMutationObserver(callback) {\n var toggle = 1;\n var observer = new BrowserMutationObserver(callback);\n var node = document.createTextNode(\"\");\n observer.observe(node, {\n characterData: true\n });\n return function requestCall() {\n toggle = -toggle;\n node.data = toggle;\n };\n} // The message channel technique was discovered by Malte Ubl and was the\n// original foundation for this library.\n// http://www.nonblocking.io/2011/06/windownexttick.html\n// Safari 6.0.5 (at least) intermittently fails to create message ports on a\n// page's first load. Thankfully, this version of Safari supports\n// MutationObservers, so we don't need to fall back in that case.\n// function makeRequestCallFromMessageChannel(callback) {\n// var channel = new MessageChannel();\n// channel.port1.onmessage = callback;\n// return function requestCall() {\n// channel.port2.postMessage(0);\n// };\n// }\n// For reasons explained above, we are also unable to use `setImmediate`\n// under any circumstances.\n// Even if we were, there is another bug in Internet Explorer 10.\n// It is not sufficient to assign `setImmediate` to `requestFlush` because\n// `setImmediate` must be called *by name* and therefore must be wrapped in a\n// closure.\n// Never forget.\n// function makeRequestCallFromSetImmediate(callback) {\n// return function requestCall() {\n// setImmediate(callback);\n// };\n// }\n// Safari 6.0 has a problem where timers will get lost while the user is\n// scrolling. This problem does not impact ASAP because Safari 6.0 supports\n// mutation observers, so that implementation is used instead.\n// However, if we ever elect to use timers in Safari, the prevalent work-around\n// is to add a scroll event listener that calls for a flush.\n// `setTimeout` does not call the passed callback if the delay is less than\n// approximately 7 in web workers in Firefox 8 through 18, and sometimes not\n// even then.\nfunction makeRequestCallFromTimer(callback) {\n return function requestCall() {\n // We dispatch a timeout with a specified delay of 0 for engines that\n // can reliably accommodate that request. This will usually be snapped\n // to a 4 milisecond delay, but once we're flushing, there's no delay\n // between events.\n var timeoutHandle = setTimeout(handleTimer, 0); // However, since this timer gets frequently dropped in Firefox\n // workers, we enlist an interval handle that will try to fire\n // an event 20 times per second until it succeeds.\n var intervalHandle = setInterval(handleTimer, 50);\n function handleTimer() {\n // Whichever timer succeeds will cancel both timers and\n // execute the callback.\n clearTimeout(timeoutHandle);\n clearInterval(intervalHandle);\n callback();\n }\n };\n} // This is for `asap.js` only.\n// Its name will be periodically randomized to break any code that depends on\n// its existence.\nrawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer; // ASAP was originally a nextTick shim included in Q. This was factored out\n // into this ASAP package. It was later adapted to RSVP which made further\n // amendments. These decisions, particularly to marginalize MessageChannel and\n // to capture the MutationObserver implementation in a closure, were integrated\n // back into ASAP proper.\n // https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cPWGR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DndProvider\", ()=>DndProvider);\nvar _react = require(\"react\");\nvar _dndContext = require(\"./DndContext\");\nvar global = arguments[3];\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nvar refCount = 0;\nvar DndProvider = (0, _react.memo)(function(_ref) {\n var children = _ref.children, props = _objectWithoutProperties(_ref, [\n \"children\"\n ]);\n var _getDndContextValue = getDndContextValue(props), _getDndContextValue2 = _slicedToArray(_getDndContextValue, 2), manager = _getDndContextValue2[0], isGlobalInstance = _getDndContextValue2[1]; // memoized from props\n /**\n * If the global context was used to store the DND context\n * then where theres no more references to it we should\n * clean it up to avoid memory leaks\n */ _react.useEffect(function() {\n if (isGlobalInstance) refCount++;\n return function() {\n if (isGlobalInstance) {\n refCount--;\n if (refCount === 0) {\n var context = getGlobalContext();\n context[instanceSymbol] = null;\n }\n }\n };\n }, []);\n return _react.createElement((0, _dndContext.DndContext).Provider, {\n value: manager\n }, children);\n});\nDndProvider.displayName = \"DndProvider\";\nfunction getDndContextValue(props) {\n if (\"manager\" in props) {\n var _manager = {\n dragDropManager: props.manager\n };\n return [\n _manager,\n false\n ];\n }\n var manager = createSingletonDndContext(props.backend, props.context, props.options, props.debugMode);\n var isGlobalInstance = !props.context;\n return [\n manager,\n isGlobalInstance\n ];\n}\nvar instanceSymbol = Symbol.for(\"__REACT_DND_CONTEXT_INSTANCE__\");\nfunction createSingletonDndContext(backend) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getGlobalContext();\n var options = arguments.length > 2 ? arguments[2] : undefined;\n var debugMode = arguments.length > 3 ? arguments[3] : undefined;\n var ctx = context;\n if (!ctx[instanceSymbol]) ctx[instanceSymbol] = (0, _dndContext.createDndContext)(backend, context, options, debugMode);\n return ctx[instanceSymbol];\n}\nfunction getGlobalContext() {\n return typeof global !== \"undefined\" ? global : window;\n}\n\n},{\"react\":\"6uln9\",\"./DndContext\":\"lCJRm\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bax7c\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _useDrag = require(\"./useDrag\");\nparcelHelpers.exportAll(_useDrag, exports);\nvar _useDrop = require(\"./useDrop\");\nparcelHelpers.exportAll(_useDrop, exports);\nvar _useDragLayer = require(\"./useDragLayer\");\nparcelHelpers.exportAll(_useDragLayer, exports);\n\n},{\"./useDrag\":false,\"./useDrop\":false,\"./useDragLayer\":\"1Zgmt\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1Zgmt\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * useDragLayer Hook\n * @param collector The property collector\n */ parcelHelpers.export(exports, \"useDragLayer\", ()=>useDragLayer);\nvar _react = require(\"react\");\nvar _useDragDropManager = require(\"./internal/useDragDropManager\");\nvar _useCollector = require(\"./internal/useCollector\");\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction useDragLayer(collect) {\n var dragDropManager = (0, _useDragDropManager.useDragDropManager)();\n var monitor = dragDropManager.getMonitor();\n var _useCollector1 = (0, _useCollector.useCollector)(monitor, collect), _useCollector2 = _slicedToArray(_useCollector1, 2), collected = _useCollector2[0], updateCollected = _useCollector2[1];\n (0, _react.useEffect)(function() {\n return monitor.subscribeToOffsetChange(updateCollected);\n });\n (0, _react.useEffect)(function() {\n return monitor.subscribeToStateChange(updateCollected);\n });\n return collected;\n}\n\n},{\"react\":\"6uln9\",\"./internal/useDragDropManager\":\"900bo\",\"./internal/useCollector\":\"fLUzV\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"900bo\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * A hook to retrieve the DragDropManager from Context\n */ parcelHelpers.export(exports, \"useDragDropManager\", ()=>useDragDropManager);\nvar _react = require(\"react\");\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _dndContext = require(\"../../common/DndContext\");\nfunction useDragDropManager() {\n var _useContext = (0, _react.useContext)((0, _dndContext.DndContext)), dragDropManager = _useContext.dragDropManager;\n (0, _invariant.invariant)(dragDropManager != null, \"Expected drag drop context\");\n return dragDropManager;\n}\n\n},{\"react\":\"6uln9\",\"@react-dnd/invariant\":\"l9K61\",\"../../common/DndContext\":\"lCJRm\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fLUzV\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n *\n * @param monitor The monitor to collect state from\n * @param collect The collecting function\n * @param onUpdate A method to invoke when updates occur\n */ parcelHelpers.export(exports, \"useCollector\", ()=>useCollector);\nvar _shallowequal = require(\"@react-dnd/shallowequal\");\nvar _react = require(\"react\");\nvar _useIsomorphicLayoutEffect = require(\"./useIsomorphicLayoutEffect\");\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction useCollector(monitor, collect, onUpdate) {\n var _useState = (0, _react.useState)(function() {\n return collect(monitor);\n }), _useState2 = _slicedToArray(_useState, 2), collected = _useState2[0], setCollected = _useState2[1];\n var updateCollected = (0, _react.useCallback)(function() {\n var nextValue = collect(monitor);\n if (!(0, _shallowequal.shallowEqual)(collected, nextValue)) {\n setCollected(nextValue);\n if (onUpdate) onUpdate();\n }\n }, [\n collected,\n monitor,\n onUpdate\n ]); // update the collected properties after the first render\n // and the components are attached to dnd-core\n (0, _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)(updateCollected, []);\n return [\n collected,\n updateCollected\n ];\n}\n\n},{\"@react-dnd/shallowequal\":\"eh218\",\"react\":\"6uln9\",\"./useIsomorphicLayoutEffect\":\"iW1RG\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eh218\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"shallowEqual\", ()=>shallowEqual);\nfunction shallowEqual(objA, objB, compare, compareContext) {\n var compareResult = compare ? compare.call(compareContext, objA, objB) : void 0;\n if (compareResult !== void 0) return !!compareResult;\n if (objA === objB) return true;\n if (typeof objA !== \"object\" || !objA || typeof objB !== \"object\" || !objB) return false;\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return false;\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); // Test for A's keys different from B.\n for(var idx = 0; idx < keysA.length; idx++){\n var key = keysA[idx];\n if (!bHasOwnProperty(key)) return false;\n var valueA = objA[key];\n var valueB = objB[key];\n compareResult = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n if (compareResult === false || compareResult === void 0 && valueA !== valueB) return false;\n }\n return true;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iW1RG\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useIsomorphicLayoutEffect\", ()=>useIsomorphicLayoutEffect);\nvar _react = require(\"react\"); // suppress the useLayoutEffect warning on server side.\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? (0, _react.useLayoutEffect) : (0, _react.useEffect);\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4zU5e\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _dragSource = require(\"./DragSource\");\nparcelHelpers.exportAll(_dragSource, exports);\nvar _dropTarget = require(\"./DropTarget\");\nparcelHelpers.exportAll(_dropTarget, exports);\nvar _dragLayer = require(\"./DragLayer\");\nparcelHelpers.exportAll(_dragLayer, exports);\n\n},{\"./DragSource\":\"aoJOn\",\"./DropTarget\":\"e0HXb\",\"./DragLayer\":false,\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aoJOn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Decorates a component as a dragsource\n * @param type The dragsource type\n * @param spec The drag source specification\n * @param collect The props collector function\n * @param options DnD options\n */ parcelHelpers.export(exports, \"DragSource\", ()=>DragSource);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _jsUtils = require(\"../utils/js_utils\");\nvar _utils = require(\"./utils\");\nvar _decorateHandler = require(\"./decorateHandler\");\nvar _decorateHandlerDefault = parcelHelpers.interopDefault(_decorateHandler);\nvar _registration = require(\"../common/registration\");\nvar _dragSourceMonitorImpl = require(\"../common/DragSourceMonitorImpl\");\nvar _sourceConnector = require(\"../common/SourceConnector\");\nvar _isValidType = require(\"../utils/isValidType\");\nvar _createSourceFactory = require(\"./createSourceFactory\");\nvar _createSourceFactoryDefault = parcelHelpers.interopDefault(_createSourceFactory);\nfunction DragSource(type, spec, collect) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n (0, _utils.checkDecoratorArguments)(\"DragSource\", \"type, spec, collect[, options]\", type, spec, collect, options);\n var getType = type;\n if (typeof type !== \"function\") {\n (0, _invariant.invariant)((0, _isValidType.isValidType)(type), 'Expected \"type\" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', type);\n getType = function getType() {\n return type;\n };\n }\n (0, _invariant.invariant)((0, _jsUtils.isPlainObject)(spec), 'Expected \"spec\" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', spec);\n var createSource = (0, _createSourceFactoryDefault.default)(spec);\n (0, _invariant.invariant)(typeof collect === \"function\", 'Expected \"collect\" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect);\n (0, _invariant.invariant)((0, _jsUtils.isPlainObject)(options), 'Expected \"options\" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect);\n return function decorateSource(DecoratedComponent) {\n return (0, _decorateHandlerDefault.default)({\n containerDisplayName: \"DragSource\",\n createHandler: createSource,\n registerHandler: (0, _registration.registerSource),\n createConnector: function createConnector(backend) {\n return new (0, _sourceConnector.SourceConnector)(backend);\n },\n createMonitor: function createMonitor(manager) {\n return new (0, _dragSourceMonitorImpl.DragSourceMonitorImpl)(manager);\n },\n DecoratedComponent: DecoratedComponent,\n getType: getType,\n collect: collect,\n options: options\n });\n };\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"../utils/js_utils\":\"47uMk\",\"./utils\":\"iP24s\",\"./decorateHandler\":\"o18Sa\",\"../common/registration\":\"5ohNW\",\"../common/DragSourceMonitorImpl\":\"8ylte\",\"../common/SourceConnector\":\"4uKwy\",\"../utils/isValidType\":\"lOszu\",\"./createSourceFactory\":\"gdkqS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"47uMk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n// cheap lodash replacements\nparcelHelpers.export(exports, \"isFunction\", ()=>isFunction);\nparcelHelpers.export(exports, \"noop\", ()=>noop);\nparcelHelpers.export(exports, \"isPlainObject\", ()=>isPlainObject);\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction isFunction(input) {\n return typeof input === \"function\";\n}\nfunction noop() {}\nfunction isObjectLike(input) {\n return _typeof(input) === \"object\" && input !== null;\n}\nfunction isPlainObject(input) {\n if (!isObjectLike(input)) return false;\n if (Object.getPrototypeOf(input) === null) return true;\n var proto = input;\n while(Object.getPrototypeOf(proto) !== null)proto = Object.getPrototypeOf(proto);\n return Object.getPrototypeOf(input) === proto;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iP24s\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getDecoratedComponent\", ()=>getDecoratedComponent);\nparcelHelpers.export(exports, \"isClassComponent\", ()=>isClassComponent);\nparcelHelpers.export(exports, \"isRefForwardingComponent\", ()=>isRefForwardingComponent);\nparcelHelpers.export(exports, \"isRefable\", ()=>isRefable);\nparcelHelpers.export(exports, \"checkDecoratorArguments\", ()=>checkDecoratorArguments);\nfunction getDecoratedComponent(instanceRef) {\n var currentRef = instanceRef.current;\n if (currentRef == null) return null;\n else if (currentRef.decoratedRef) // go through the private field in decorateHandler to avoid the invariant hit\n return currentRef.decoratedRef.current;\n else return currentRef;\n}\nfunction isClassComponent(Component) {\n return Component && Component.prototype && typeof Component.prototype.render === \"function\";\n}\nfunction isRefForwardingComponent(C) {\n return C && C.$$typeof && C.$$typeof.toString() === \"Symbol(react.forward_ref)\";\n}\nfunction isRefable(C) {\n return isClassComponent(C) || isRefForwardingComponent(C);\n}\nfunction checkDecoratorArguments(functionName, signature) {\n var i, arg;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"o18Sa\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>decorateHandler);\nvar _react = require(\"react\");\nvar _shallowequal = require(\"@react-dnd/shallowequal\");\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _hoistNonReactStatics = require(\"hoist-non-react-statics\");\nvar _hoistNonReactStaticsDefault = parcelHelpers.interopDefault(_hoistNonReactStatics);\nvar _index = require(\"../index\");\nvar _jsUtils = require(\"../utils/js_utils\");\nvar _disposables = require(\"./disposables\");\nvar _utils = require(\"./utils\");\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) return call;\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction decorateHandler(_ref) {\n var DecoratedComponent = _ref.DecoratedComponent, createHandler = _ref.createHandler, createMonitor = _ref.createMonitor, createConnector = _ref.createConnector, registerHandler = _ref.registerHandler, containerDisplayName = _ref.containerDisplayName, getType = _ref.getType, collect = _ref.collect, options = _ref.options;\n var _options$arePropsEqua = options.arePropsEqual, arePropsEqual = _options$arePropsEqua === void 0 ? (0, _shallowequal.shallowEqual) : _options$arePropsEqua;\n var Decorated = DecoratedComponent;\n var displayName = DecoratedComponent.displayName || DecoratedComponent.name || \"Component\";\n var DragDropContainer = /*#__PURE__*/ function(_React$Component) {\n _inherits(DragDropContainer, _React$Component);\n function DragDropContainer(props) {\n var _this;\n _classCallCheck(this, DragDropContainer);\n _this = _possibleConstructorReturn(this, _getPrototypeOf(DragDropContainer).call(this, props));\n _this.decoratedRef = _react.createRef();\n _this.handleChange = function() {\n var nextState = _this.getCurrentState();\n if (!(0, _shallowequal.shallowEqual)(nextState, _this.state)) _this.setState(nextState);\n };\n _this.disposable = new (0, _disposables.SerialDisposable)();\n _this.receiveProps(props);\n _this.dispose();\n return _this;\n }\n _createClass(DragDropContainer, [\n {\n key: \"getHandlerId\",\n value: function getHandlerId() {\n return this.handlerId;\n }\n },\n {\n key: \"getDecoratedComponentInstance\",\n value: function getDecoratedComponentInstance() {\n (0, _invariant.invariant)(this.decoratedRef.current, \"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()\");\n return this.decoratedRef.current;\n }\n },\n {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps, nextState) {\n return !arePropsEqual(nextProps, this.props) || !(0, _shallowequal.shallowEqual)(nextState, this.state);\n }\n },\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.disposable = new (0, _disposables.SerialDisposable)();\n this.currentType = undefined;\n this.receiveProps(this.props);\n this.handleChange();\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (!arePropsEqual(this.props, prevProps)) {\n this.receiveProps(this.props);\n this.handleChange();\n }\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.dispose();\n }\n },\n {\n key: \"receiveProps\",\n value: function receiveProps(props) {\n if (!this.handler) return;\n this.handler.receiveProps(props);\n this.receiveType(getType(props));\n }\n },\n {\n key: \"receiveType\",\n value: function receiveType(type) {\n if (!this.handlerMonitor || !this.manager || !this.handlerConnector) return;\n if (type === this.currentType) return;\n this.currentType = type;\n var _registerHandler = registerHandler(type, this.handler, this.manager), _registerHandler2 = _slicedToArray(_registerHandler, 2), handlerId = _registerHandler2[0], unregister = _registerHandler2[1];\n this.handlerId = handlerId;\n this.handlerMonitor.receiveHandlerId(handlerId);\n this.handlerConnector.receiveHandlerId(handlerId);\n var globalMonitor = this.manager.getMonitor();\n var unsubscribe = globalMonitor.subscribeToStateChange(this.handleChange, {\n handlerIds: [\n handlerId\n ]\n });\n this.disposable.setDisposable(new (0, _disposables.CompositeDisposable)(new (0, _disposables.Disposable)(unsubscribe), new (0, _disposables.Disposable)(unregister)));\n }\n },\n {\n key: \"dispose\",\n value: function dispose() {\n this.disposable.dispose();\n if (this.handlerConnector) this.handlerConnector.receiveHandlerId(null);\n }\n },\n {\n key: \"getCurrentState\",\n value: function getCurrentState() {\n if (!this.handlerConnector) return {};\n var nextState = collect(this.handlerConnector.hooks, this.handlerMonitor, this.props);\n return nextState;\n }\n },\n {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n return _react.createElement((0, _index.DndContext).Consumer, null, function(_ref2) {\n var dragDropManager = _ref2.dragDropManager;\n _this2.receiveDragDropManager(dragDropManager);\n if (typeof requestAnimationFrame !== \"undefined\") requestAnimationFrame(function() {\n return _this2.handlerConnector.reconnect();\n });\n return _react.createElement(Decorated, Object.assign({}, _this2.props, _this2.getCurrentState(), {\n // NOTE: if Decorated is a Function Component, decoratedRef will not be populated unless it's a refforwarding component.\n ref: (0, _utils.isRefable)(Decorated) ? _this2.decoratedRef : null\n }));\n });\n }\n },\n {\n key: \"receiveDragDropManager\",\n value: function receiveDragDropManager(dragDropManager) {\n if (this.manager !== undefined) return;\n (0, _invariant.invariant)(dragDropManager !== undefined, \"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context\", displayName, displayName);\n if (dragDropManager === undefined) return;\n this.manager = dragDropManager;\n this.handlerMonitor = createMonitor(dragDropManager);\n this.handlerConnector = createConnector(dragDropManager.getBackend());\n this.handler = createHandler(this.handlerMonitor, this.decoratedRef);\n }\n }\n ]);\n return DragDropContainer;\n }(_react.Component);\n DragDropContainer.DecoratedComponent = DecoratedComponent;\n DragDropContainer.displayName = \"\".concat(containerDisplayName, \"(\").concat(displayName, \")\");\n return (0, _hoistNonReactStaticsDefault.default)(DragDropContainer, DecoratedComponent);\n}\n\n},{\"react\":\"6uln9\",\"@react-dnd/shallowequal\":\"eh218\",\"@react-dnd/invariant\":\"l9K61\",\"hoist-non-react-statics\":\"3bvdc\",\"../index\":\"5Rhgo\",\"../utils/js_utils\":\"47uMk\",\"./disposables\":\"8j3LU\",\"./utils\":\"iP24s\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3bvdc\":[function(require,module,exports) {\n\"use strict\";\nvar reactIs = require(\"c03b486d83967636\");\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */ var REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n \"$$typeof\": true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n \"$$typeof\": true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) return MEMO_STATICS;\n // React v16.12 and above\n return TYPE_STATICS[component[\"$$typeof\"]] || REACT_STATICS;\n}\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== \"string\") {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n var keys = getOwnPropertyNames(sourceComponent);\n if (getOwnPropertySymbols) keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n for(var i = 0; i < keys.length; ++i){\n var key = keys[i];\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n return targetComponent;\n}\nmodule.exports = hoistNonReactStatics;\n\n},{\"c03b486d83967636\":\"aUAsc\"}],\"aUAsc\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = require(\"f93b3bf7385544f5\");\n\n},{\"f93b3bf7385544f5\":\"1Qg5l\"}],\"1Qg5l\":[function(require,module,exports) {\n/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\nvar b = \"function\" === typeof Symbol && Symbol.for, c = b ? Symbol.for(\"react.element\") : 60103, d = b ? Symbol.for(\"react.portal\") : 60106, e = b ? Symbol.for(\"react.fragment\") : 60107, f = b ? Symbol.for(\"react.strict_mode\") : 60108, g = b ? Symbol.for(\"react.profiler\") : 60114, h = b ? Symbol.for(\"react.provider\") : 60109, k = b ? Symbol.for(\"react.context\") : 60110, l = b ? Symbol.for(\"react.async_mode\") : 60111, m = b ? Symbol.for(\"react.concurrent_mode\") : 60111, n = b ? Symbol.for(\"react.forward_ref\") : 60112, p = b ? Symbol.for(\"react.suspense\") : 60113, q = b ? Symbol.for(\"react.suspense_list\") : 60120, r = b ? Symbol.for(\"react.memo\") : 60115, t = b ? Symbol.for(\"react.lazy\") : 60116, v = b ? Symbol.for(\"react.block\") : 60121, w = b ? Symbol.for(\"react.fundamental\") : 60117, x = b ? Symbol.for(\"react.responder\") : 60118, y = b ? Symbol.for(\"react.scope\") : 60119;\nfunction z(a) {\n if (\"object\" === typeof a && null !== a) {\n var u = a.$$typeof;\n switch(u){\n case c:\n switch(a = a.type, a){\n case l:\n case m:\n case e:\n case g:\n case f:\n case p:\n return a;\n default:\n switch(a = a && a.$$typeof, a){\n case k:\n case n:\n case t:\n case r:\n case h:\n return a;\n default:\n return u;\n }\n }\n case d:\n return u;\n }\n }\n}\nfunction A(a) {\n return z(a) === m;\n}\nexports.AsyncMode = l;\nexports.ConcurrentMode = m;\nexports.ContextConsumer = k;\nexports.ContextProvider = h;\nexports.Element = c;\nexports.ForwardRef = n;\nexports.Fragment = e;\nexports.Lazy = t;\nexports.Memo = r;\nexports.Portal = d;\nexports.Profiler = g;\nexports.StrictMode = f;\nexports.Suspense = p;\nexports.isAsyncMode = function(a) {\n return A(a) || z(a) === l;\n};\nexports.isConcurrentMode = A;\nexports.isContextConsumer = function(a) {\n return z(a) === k;\n};\nexports.isContextProvider = function(a) {\n return z(a) === h;\n};\nexports.isElement = function(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === c;\n};\nexports.isForwardRef = function(a) {\n return z(a) === n;\n};\nexports.isFragment = function(a) {\n return z(a) === e;\n};\nexports.isLazy = function(a) {\n return z(a) === t;\n};\nexports.isMemo = function(a) {\n return z(a) === r;\n};\nexports.isPortal = function(a) {\n return z(a) === d;\n};\nexports.isProfiler = function(a) {\n return z(a) === g;\n};\nexports.isStrictMode = function(a) {\n return z(a) === f;\n};\nexports.isSuspense = function(a) {\n return z(a) === p;\n};\nexports.isValidElementType = function(a) {\n return \"string\" === typeof a || \"function\" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || \"object\" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);\n};\nexports.typeOf = z;\n\n},{}],\"8j3LU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Disposable\", ()=>Disposable);\nparcelHelpers.export(exports, \"CompositeDisposable\", ()=>CompositeDisposable);\nparcelHelpers.export(exports, \"SerialDisposable\", ()=>SerialDisposable);\nvar _jsUtils = require(\"../utils/js_utils\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar Disposable = /*#__PURE__*/ function() {\n function Disposable(action) {\n _classCallCheck(this, Disposable);\n this.isDisposed = false;\n this.action = (0, _jsUtils.isFunction)(action) ? action : (0, _jsUtils.noop);\n }\n /**\n * Validates whether the given object is a disposable\n * @param {Object} Object to test whether it has a dispose method\n * @returns {Boolean} true if a disposable object, else false.\n */ _createClass(Disposable, [\n {\n key: \"dispose\",\n /** Performs the task of cleaning up resources. */ value: function dispose() {\n if (!this.isDisposed) {\n this.action();\n this.isDisposed = true;\n }\n }\n }\n ], [\n {\n key: \"isDisposable\",\n value: function isDisposable(d) {\n return d && (0, _jsUtils.isFunction)(d.dispose);\n }\n },\n {\n key: \"_fixup\",\n value: function _fixup(result) {\n return Disposable.isDisposable(result) ? result : Disposable.empty;\n }\n },\n {\n key: \"create\",\n value: function create(action) {\n return new Disposable(action);\n }\n }\n ]);\n return Disposable;\n}();\n/**\n * Gets the disposable that does nothing when disposed.\n */ Disposable.empty = {\n dispose: (0, _jsUtils.noop)\n};\nvar CompositeDisposable = /*#__PURE__*/ function() {\n function CompositeDisposable() {\n _classCallCheck(this, CompositeDisposable);\n this.isDisposed = false;\n for(var _len = arguments.length, disposables = new Array(_len), _key = 0; _key < _len; _key++)disposables[_key] = arguments[_key];\n this.disposables = disposables;\n }\n /**\n * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.\n * @param {Any} item Disposable to add.\n */ _createClass(CompositeDisposable, [\n {\n key: \"add\",\n value: function add(item) {\n if (this.isDisposed) item.dispose();\n else this.disposables.push(item);\n }\n },\n {\n key: \"remove\",\n value: function remove(item) {\n var shouldDispose = false;\n if (!this.isDisposed) {\n var idx = this.disposables.indexOf(item);\n if (idx !== -1) {\n shouldDispose = true;\n this.disposables.splice(idx, 1);\n item.dispose();\n }\n }\n return shouldDispose;\n }\n },\n {\n key: \"clear\",\n value: function clear() {\n if (!this.isDisposed) {\n var len = this.disposables.length;\n var currentDisposables = new Array(len);\n for(var i = 0; i < len; i++)currentDisposables[i] = this.disposables[i];\n this.disposables = [];\n for(var _i = 0; _i < len; _i++)currentDisposables[_i].dispose();\n }\n }\n },\n {\n key: \"dispose\",\n value: function dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var len = this.disposables.length;\n var currentDisposables = new Array(len);\n for(var i = 0; i < len; i++)currentDisposables[i] = this.disposables[i];\n this.disposables = [];\n for(var _i2 = 0; _i2 < len; _i2++)currentDisposables[_i2].dispose();\n }\n }\n }\n ]);\n return CompositeDisposable;\n}();\nvar SerialDisposable = /*#__PURE__*/ function() {\n function SerialDisposable() {\n _classCallCheck(this, SerialDisposable);\n this.isDisposed = false;\n }\n /**\n * Gets the underlying disposable.\n * @returns {Any} the underlying disposable.\n */ _createClass(SerialDisposable, [\n {\n key: \"getDisposable\",\n value: function getDisposable() {\n return this.current;\n }\n },\n {\n key: \"setDisposable\",\n value: function setDisposable(value) {\n var shouldDispose = this.isDisposed;\n if (!shouldDispose) {\n var old = this.current;\n this.current = value;\n if (old) old.dispose();\n }\n if (shouldDispose && value) value.dispose();\n }\n },\n {\n key: \"dispose\",\n value: function dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var old = this.current;\n this.current = undefined;\n if (old) old.dispose();\n }\n }\n }\n ]);\n return SerialDisposable;\n}();\n\n},{\"../utils/js_utils\":\"47uMk\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5ohNW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"registerTarget\", ()=>registerTarget);\nparcelHelpers.export(exports, \"registerSource\", ()=>registerSource);\nfunction registerTarget(type, target, manager) {\n var registry = manager.getRegistry();\n var targetId = registry.addTarget(type, target);\n return [\n targetId,\n function() {\n return registry.removeTarget(targetId);\n }\n ];\n}\nfunction registerSource(type, source, manager) {\n var registry = manager.getRegistry();\n var sourceId = registry.addSource(type, source);\n return [\n sourceId,\n function() {\n return registry.removeSource(sourceId);\n }\n ];\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8ylte\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DragSourceMonitorImpl\", ()=>DragSourceMonitorImpl);\nvar _invariant = require(\"@react-dnd/invariant\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar isCallingCanDrag = false;\nvar isCallingIsDragging = false;\nvar DragSourceMonitorImpl = /*#__PURE__*/ function() {\n function DragSourceMonitorImpl(manager) {\n _classCallCheck(this, DragSourceMonitorImpl);\n this.sourceId = null;\n this.internalMonitor = manager.getMonitor();\n }\n _createClass(DragSourceMonitorImpl, [\n {\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(sourceId) {\n this.sourceId = sourceId;\n }\n },\n {\n key: \"getHandlerId\",\n value: function getHandlerId() {\n return this.sourceId;\n }\n },\n {\n key: \"canDrag\",\n value: function canDrag() {\n (0, _invariant.invariant)(!isCallingCanDrag, \"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor\");\n try {\n isCallingCanDrag = true;\n return this.internalMonitor.canDragSource(this.sourceId);\n } finally{\n isCallingCanDrag = false;\n }\n }\n },\n {\n key: \"isDragging\",\n value: function isDragging() {\n if (!this.sourceId) return false;\n (0, _invariant.invariant)(!isCallingIsDragging, \"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor\");\n try {\n isCallingIsDragging = true;\n return this.internalMonitor.isDraggingSource(this.sourceId);\n } finally{\n isCallingIsDragging = false;\n }\n }\n },\n {\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener, options) {\n return this.internalMonitor.subscribeToStateChange(listener, options);\n }\n },\n {\n key: \"isDraggingSource\",\n value: function isDraggingSource(sourceId) {\n return this.internalMonitor.isDraggingSource(sourceId);\n }\n },\n {\n key: \"isOverTarget\",\n value: function isOverTarget(targetId, options) {\n return this.internalMonitor.isOverTarget(targetId, options);\n }\n },\n {\n key: \"getTargetIds\",\n value: function getTargetIds() {\n return this.internalMonitor.getTargetIds();\n }\n },\n {\n key: \"isSourcePublic\",\n value: function isSourcePublic() {\n return this.internalMonitor.isSourcePublic();\n }\n },\n {\n key: \"getSourceId\",\n value: function getSourceId() {\n return this.internalMonitor.getSourceId();\n }\n },\n {\n key: \"subscribeToOffsetChange\",\n value: function subscribeToOffsetChange(listener) {\n return this.internalMonitor.subscribeToOffsetChange(listener);\n }\n },\n {\n key: \"canDragSource\",\n value: function canDragSource(sourceId) {\n return this.internalMonitor.canDragSource(sourceId);\n }\n },\n {\n key: \"canDropOnTarget\",\n value: function canDropOnTarget(targetId) {\n return this.internalMonitor.canDropOnTarget(targetId);\n }\n },\n {\n key: \"getItemType\",\n value: function getItemType() {\n return this.internalMonitor.getItemType();\n }\n },\n {\n key: \"getItem\",\n value: function getItem() {\n return this.internalMonitor.getItem();\n }\n },\n {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.internalMonitor.getDropResult();\n }\n },\n {\n key: \"didDrop\",\n value: function didDrop() {\n return this.internalMonitor.didDrop();\n }\n },\n {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.internalMonitor.getInitialClientOffset();\n }\n },\n {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.internalMonitor.getInitialSourceClientOffset();\n }\n },\n {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return this.internalMonitor.getSourceClientOffset();\n }\n },\n {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.internalMonitor.getClientOffset();\n }\n },\n {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return this.internalMonitor.getDifferenceFromInitialOffset();\n }\n }\n ]);\n return DragSourceMonitorImpl;\n}();\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4uKwy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SourceConnector\", ()=>SourceConnector);\nvar _wrapConnectorHooks = require(\"./wrapConnectorHooks\");\nvar _wrapConnectorHooksDefault = parcelHelpers.interopDefault(_wrapConnectorHooks);\nvar _isRef = require(\"../utils/isRef\");\nvar _shallowequal = require(\"@react-dnd/shallowequal\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar SourceConnector = /*#__PURE__*/ function() {\n function SourceConnector(backend) {\n var _this = this;\n _classCallCheck(this, SourceConnector);\n this.hooks = (0, _wrapConnectorHooksDefault.default)({\n dragSource: function dragSource(node, options) {\n _this.clearDragSource();\n _this.dragSourceOptions = options || null;\n if ((0, _isRef.isRef)(node)) _this.dragSourceRef = node;\n else _this.dragSourceNode = node;\n _this.reconnectDragSource();\n },\n dragPreview: function dragPreview(node, options) {\n _this.clearDragPreview();\n _this.dragPreviewOptions = options || null;\n if ((0, _isRef.isRef)(node)) _this.dragPreviewRef = node;\n else _this.dragPreviewNode = node;\n _this.reconnectDragPreview();\n }\n });\n this.handlerId = null; // The drop target may either be attached via ref or connect function\n this.dragSourceRef = null;\n this.dragSourceOptionsInternal = null; // The drag preview may either be attached via ref or connect function\n this.dragPreviewRef = null;\n this.dragPreviewOptionsInternal = null;\n this.lastConnectedHandlerId = null;\n this.lastConnectedDragSource = null;\n this.lastConnectedDragSourceOptions = null;\n this.lastConnectedDragPreview = null;\n this.lastConnectedDragPreviewOptions = null;\n this.backend = backend;\n }\n _createClass(SourceConnector, [\n {\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(newHandlerId) {\n if (this.handlerId === newHandlerId) return;\n this.handlerId = newHandlerId;\n this.reconnect();\n }\n },\n {\n key: \"reconnect\",\n value: function reconnect() {\n this.reconnectDragSource();\n this.reconnectDragPreview();\n }\n },\n {\n key: \"reconnectDragSource\",\n value: function reconnectDragSource() {\n var dragSource = this.dragSource; // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();\n if (didChange) this.disconnectDragSource();\n if (!this.handlerId) return;\n if (!dragSource) {\n this.lastConnectedDragSource = dragSource;\n return;\n }\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDragSource = dragSource;\n this.lastConnectedDragSourceOptions = this.dragSourceOptions;\n this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, dragSource, this.dragSourceOptions);\n }\n }\n },\n {\n key: \"reconnectDragPreview\",\n value: function reconnectDragPreview() {\n var dragPreview = this.dragPreview; // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();\n if (!this.handlerId) this.disconnectDragPreview();\n else if (this.dragPreview && didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDragPreview = dragPreview;\n this.lastConnectedDragPreviewOptions = this.dragPreviewOptions;\n this.disconnectDragPreview();\n this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, dragPreview, this.dragPreviewOptions);\n }\n }\n },\n {\n key: \"didHandlerIdChange\",\n value: function didHandlerIdChange() {\n return this.lastConnectedHandlerId !== this.handlerId;\n }\n },\n {\n key: \"didConnectedDragSourceChange\",\n value: function didConnectedDragSourceChange() {\n return this.lastConnectedDragSource !== this.dragSource;\n }\n },\n {\n key: \"didConnectedDragPreviewChange\",\n value: function didConnectedDragPreviewChange() {\n return this.lastConnectedDragPreview !== this.dragPreview;\n }\n },\n {\n key: \"didDragSourceOptionsChange\",\n value: function didDragSourceOptionsChange() {\n return !(0, _shallowequal.shallowEqual)(this.lastConnectedDragSourceOptions, this.dragSourceOptions);\n }\n },\n {\n key: \"didDragPreviewOptionsChange\",\n value: function didDragPreviewOptionsChange() {\n return !(0, _shallowequal.shallowEqual)(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);\n }\n },\n {\n key: \"disconnectDragSource\",\n value: function disconnectDragSource() {\n if (this.dragSourceUnsubscribe) {\n this.dragSourceUnsubscribe();\n this.dragSourceUnsubscribe = undefined;\n }\n }\n },\n {\n key: \"disconnectDragPreview\",\n value: function disconnectDragPreview() {\n if (this.dragPreviewUnsubscribe) {\n this.dragPreviewUnsubscribe();\n this.dragPreviewUnsubscribe = undefined;\n this.dragPreviewNode = null;\n this.dragPreviewRef = null;\n }\n }\n },\n {\n key: \"clearDragSource\",\n value: function clearDragSource() {\n this.dragSourceNode = null;\n this.dragSourceRef = null;\n }\n },\n {\n key: \"clearDragPreview\",\n value: function clearDragPreview() {\n this.dragPreviewNode = null;\n this.dragPreviewRef = null;\n }\n },\n {\n key: \"connectTarget\",\n get: function get() {\n return this.dragSource;\n }\n },\n {\n key: \"dragSourceOptions\",\n get: function get() {\n return this.dragSourceOptionsInternal;\n },\n set: function set(options) {\n this.dragSourceOptionsInternal = options;\n }\n },\n {\n key: \"dragPreviewOptions\",\n get: function get() {\n return this.dragPreviewOptionsInternal;\n },\n set: function set(options) {\n this.dragPreviewOptionsInternal = options;\n }\n },\n {\n key: \"dragSource\",\n get: function get() {\n return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current;\n }\n },\n {\n key: \"dragPreview\",\n get: function get() {\n return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current;\n }\n }\n ]);\n return SourceConnector;\n}();\n\n},{\"./wrapConnectorHooks\":\"lDyL4\",\"../utils/isRef\":\"gvUDP\",\"@react-dnd/shallowequal\":\"eh218\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lDyL4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>wrapConnectorHooks);\nvar _react = require(\"react\");\nvar _cloneWithRef = require(\"../utils/cloneWithRef\");\nfunction throwIfCompositeComponentElement(element) {\n // Custom components can no longer be wrapped directly in React DnD 2.0\n // so that we don't need to depend on findDOMNode() from react-dom.\n if (typeof element.type === \"string\") return;\n var displayName = element.type.displayName || element.type.name || \"the component\";\n throw new Error(\"Only native element nodes can now be passed to React DnD connectors.\" + \"You can either wrap \".concat(displayName, \" into a
, or turn it into a \") + \"drag source or a drop target itself.\");\n}\nfunction wrapHookToRecognizeElement(hook) {\n return function() {\n var elementOrNode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n // When passed a node, call the hook straight away.\n if (!(0, _react.isValidElement)(elementOrNode)) {\n var node = elementOrNode;\n hook(node, options); // return the node so it can be chained (e.g. when within callback refs\n //
connectDragSource(connectDropTarget(node))}/>\n return node;\n } // If passed a ReactElement, clone it and attach this function as a ref.\n // This helps us achieve a neat API where user doesn't even know that refs\n // are being used under the hood.\n var element = elementOrNode;\n throwIfCompositeComponentElement(element); // When no options are passed, use the hook directly\n var ref = options ? function(node) {\n return hook(node, options);\n } : hook;\n return (0, _cloneWithRef.cloneWithRef)(element, ref);\n };\n}\nfunction wrapConnectorHooks(hooks) {\n var wrappedHooks = {};\n Object.keys(hooks).forEach(function(key) {\n var hook = hooks[key]; // ref objects should be passed straight through without wrapping\n if (key.endsWith(\"Ref\")) wrappedHooks[key] = hooks[key];\n else {\n var wrappedHook = wrapHookToRecognizeElement(hook);\n wrappedHooks[key] = function() {\n return wrappedHook;\n };\n }\n });\n return wrappedHooks;\n}\n\n},{\"react\":\"6uln9\",\"../utils/cloneWithRef\":\"5D2Ee\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5D2Ee\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"cloneWithRef\", ()=>cloneWithRef);\nvar _react = require(\"react\");\nvar _invariant = require(\"@react-dnd/invariant\");\nfunction setRef(ref, node) {\n if (typeof ref === \"function\") ref(node);\n else ref.current = node;\n}\nfunction cloneWithRef(element, newRef) {\n var previousRef = element.ref;\n (0, _invariant.invariant)(typeof previousRef !== \"string\", \"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute\");\n if (!previousRef) // When there is no ref on the element, use the new ref directly\n return (0, _react.cloneElement)(element, {\n ref: newRef\n });\n else return (0, _react.cloneElement)(element, {\n ref: function ref(node) {\n setRef(previousRef, node);\n setRef(newRef, node);\n }\n });\n}\n\n},{\"react\":\"6uln9\",\"@react-dnd/invariant\":\"l9K61\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gvUDP\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"isRef\", ()=>isRef);\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction isRef(obj) {\n return obj !== null && _typeof(obj) === \"object\" && obj.hasOwnProperty(\"current\");\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lOszu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"isValidType\", ()=>isValidType);\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction isValidType(type, allowArray) {\n return typeof type === \"string\" || _typeof(type) === \"symbol\" || !!allowArray && Array.isArray(type) && type.every(function(t) {\n return isValidType(t, false);\n });\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gdkqS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createSourceFactory);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _jsUtils = require(\"../utils/js_utils\");\nvar _utils = require(\"./utils\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar ALLOWED_SPEC_METHODS = [\n \"canDrag\",\n \"beginDrag\",\n \"isDragging\",\n \"endDrag\"\n];\nvar REQUIRED_SPEC_METHODS = [\n \"beginDrag\"\n];\nvar SourceImpl = /*#__PURE__*/ function() {\n function SourceImpl(spec, monitor, ref) {\n var _this = this;\n _classCallCheck(this, SourceImpl);\n this.props = null;\n this.beginDrag = function() {\n if (!_this.props) return;\n var item = _this.spec.beginDrag(_this.props, _this.monitor, _this.ref.current);\n return item;\n };\n this.spec = spec;\n this.monitor = monitor;\n this.ref = ref;\n }\n _createClass(SourceImpl, [\n {\n key: \"receiveProps\",\n value: function receiveProps(props) {\n this.props = props;\n }\n },\n {\n key: \"canDrag\",\n value: function canDrag() {\n if (!this.props) return false;\n if (!this.spec.canDrag) return true;\n return this.spec.canDrag(this.props, this.monitor);\n }\n },\n {\n key: \"isDragging\",\n value: function isDragging(globalMonitor, sourceId) {\n if (!this.props) return false;\n if (!this.spec.isDragging) return sourceId === globalMonitor.getSourceId();\n return this.spec.isDragging(this.props, this.monitor);\n }\n },\n {\n key: \"endDrag\",\n value: function endDrag() {\n if (!this.props) return;\n if (!this.spec.endDrag) return;\n this.spec.endDrag(this.props, this.monitor, (0, _utils.getDecoratedComponent)(this.ref));\n }\n }\n ]);\n return SourceImpl;\n}();\nfunction createSourceFactory(spec) {\n Object.keys(spec).forEach(function(key) {\n (0, _invariant.invariant)(ALLOWED_SPEC_METHODS.indexOf(key) > -1, 'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected \"%s\" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', ALLOWED_SPEC_METHODS.join(\", \"), key);\n (0, _invariant.invariant)(typeof spec[key] === \"function\", \"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source\", key, key, spec[key]);\n });\n REQUIRED_SPEC_METHODS.forEach(function(key) {\n (0, _invariant.invariant)(typeof spec[key] === \"function\", \"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source\", key, key, spec[key]);\n });\n return function createSource(monitor, ref) {\n return new SourceImpl(spec, monitor, ref);\n };\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"../utils/js_utils\":\"47uMk\",\"./utils\":\"iP24s\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"e0HXb\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DropTarget\", ()=>DropTarget);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _jsUtils = require(\"../utils/js_utils\");\nvar _registration = require(\"../common/registration\");\nvar _isValidType = require(\"../utils/isValidType\");\nvar _targetConnector = require(\"../common/TargetConnector\");\nvar _dropTargetMonitorImpl = require(\"../common/DropTargetMonitorImpl\");\nvar _utils = require(\"./utils\");\nvar _decorateHandler = require(\"./decorateHandler\");\nvar _decorateHandlerDefault = parcelHelpers.interopDefault(_decorateHandler);\nvar _createTargetFactory = require(\"./createTargetFactory\");\nvar _createTargetFactoryDefault = parcelHelpers.interopDefault(_createTargetFactory);\nfunction DropTarget(type, spec, collect) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n (0, _utils.checkDecoratorArguments)(\"DropTarget\", \"type, spec, collect[, options]\", type, spec, collect, options);\n var getType = type;\n if (typeof type !== \"function\") {\n (0, _invariant.invariant)((0, _isValidType.isValidType)(type, true), 'Expected \"type\" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', type);\n getType = function getType() {\n return type;\n };\n }\n (0, _invariant.invariant)((0, _jsUtils.isPlainObject)(spec), 'Expected \"spec\" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', spec);\n var createTarget = (0, _createTargetFactoryDefault.default)(spec);\n (0, _invariant.invariant)(typeof collect === \"function\", 'Expected \"collect\" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect);\n (0, _invariant.invariant)((0, _jsUtils.isPlainObject)(options), 'Expected \"options\" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect);\n return function decorateTarget(DecoratedComponent) {\n return (0, _decorateHandlerDefault.default)({\n containerDisplayName: \"DropTarget\",\n createHandler: createTarget,\n registerHandler: (0, _registration.registerTarget),\n createMonitor: function createMonitor(manager) {\n return new (0, _dropTargetMonitorImpl.DropTargetMonitorImpl)(manager);\n },\n createConnector: function createConnector(backend) {\n return new (0, _targetConnector.TargetConnector)(backend);\n },\n DecoratedComponent: DecoratedComponent,\n getType: getType,\n collect: collect,\n options: options\n });\n };\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"../utils/js_utils\":\"47uMk\",\"../common/registration\":\"5ohNW\",\"../utils/isValidType\":\"lOszu\",\"../common/TargetConnector\":\"kHPGP\",\"../common/DropTargetMonitorImpl\":\"gxElZ\",\"./utils\":\"iP24s\",\"./decorateHandler\":\"o18Sa\",\"./createTargetFactory\":\"88DE5\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kHPGP\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"TargetConnector\", ()=>TargetConnector);\nvar _shallowequal = require(\"@react-dnd/shallowequal\");\nvar _wrapConnectorHooks = require(\"./wrapConnectorHooks\");\nvar _wrapConnectorHooksDefault = parcelHelpers.interopDefault(_wrapConnectorHooks);\nvar _isRef = require(\"../utils/isRef\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar TargetConnector = /*#__PURE__*/ function() {\n function TargetConnector(backend) {\n var _this = this;\n _classCallCheck(this, TargetConnector);\n this.hooks = (0, _wrapConnectorHooksDefault.default)({\n dropTarget: function dropTarget(node, options) {\n _this.clearDropTarget();\n _this.dropTargetOptions = options;\n if ((0, _isRef.isRef)(node)) _this.dropTargetRef = node;\n else _this.dropTargetNode = node;\n _this.reconnect();\n }\n });\n this.handlerId = null; // The drop target may either be attached via ref or connect function\n this.dropTargetRef = null;\n this.dropTargetOptionsInternal = null;\n this.lastConnectedHandlerId = null;\n this.lastConnectedDropTarget = null;\n this.lastConnectedDropTargetOptions = null;\n this.backend = backend;\n }\n _createClass(TargetConnector, [\n {\n key: \"reconnect\",\n value: function reconnect() {\n // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange();\n if (didChange) this.disconnectDropTarget();\n var dropTarget = this.dropTarget;\n if (!this.handlerId) return;\n if (!dropTarget) {\n this.lastConnectedDropTarget = dropTarget;\n return;\n }\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDropTarget = dropTarget;\n this.lastConnectedDropTargetOptions = this.dropTargetOptions;\n this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, dropTarget, this.dropTargetOptions);\n }\n }\n },\n {\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(newHandlerId) {\n if (newHandlerId === this.handlerId) return;\n this.handlerId = newHandlerId;\n this.reconnect();\n }\n },\n {\n key: \"didHandlerIdChange\",\n value: function didHandlerIdChange() {\n return this.lastConnectedHandlerId !== this.handlerId;\n }\n },\n {\n key: \"didDropTargetChange\",\n value: function didDropTargetChange() {\n return this.lastConnectedDropTarget !== this.dropTarget;\n }\n },\n {\n key: \"didOptionsChange\",\n value: function didOptionsChange() {\n return !(0, _shallowequal.shallowEqual)(this.lastConnectedDropTargetOptions, this.dropTargetOptions);\n }\n },\n {\n key: \"disconnectDropTarget\",\n value: function disconnectDropTarget() {\n if (this.unsubscribeDropTarget) {\n this.unsubscribeDropTarget();\n this.unsubscribeDropTarget = undefined;\n }\n }\n },\n {\n key: \"clearDropTarget\",\n value: function clearDropTarget() {\n this.dropTargetRef = null;\n this.dropTargetNode = null;\n }\n },\n {\n key: \"connectTarget\",\n get: function get() {\n return this.dropTarget;\n }\n },\n {\n key: \"dropTargetOptions\",\n get: function get() {\n return this.dropTargetOptionsInternal;\n },\n set: function set(options) {\n this.dropTargetOptionsInternal = options;\n }\n },\n {\n key: \"dropTarget\",\n get: function get() {\n return this.dropTargetNode || this.dropTargetRef && this.dropTargetRef.current;\n }\n }\n ]);\n return TargetConnector;\n}();\n\n},{\"@react-dnd/shallowequal\":\"eh218\",\"./wrapConnectorHooks\":\"lDyL4\",\"../utils/isRef\":\"gvUDP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gxElZ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DropTargetMonitorImpl\", ()=>DropTargetMonitorImpl);\nvar _invariant = require(\"@react-dnd/invariant\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar isCallingCanDrop = false;\nvar DropTargetMonitorImpl = /*#__PURE__*/ function() {\n function DropTargetMonitorImpl(manager) {\n _classCallCheck(this, DropTargetMonitorImpl);\n this.targetId = null;\n this.internalMonitor = manager.getMonitor();\n }\n _createClass(DropTargetMonitorImpl, [\n {\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(targetId) {\n this.targetId = targetId;\n }\n },\n {\n key: \"getHandlerId\",\n value: function getHandlerId() {\n return this.targetId;\n }\n },\n {\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener, options) {\n return this.internalMonitor.subscribeToStateChange(listener, options);\n }\n },\n {\n key: \"canDrop\",\n value: function canDrop() {\n // Cut out early if the target id has not been set. This should prevent errors\n // where the user has an older version of dnd-core like in\n // https://github.com/react-dnd/react-dnd/issues/1310\n if (!this.targetId) return false;\n (0, _invariant.invariant)(!isCallingCanDrop, \"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor\");\n try {\n isCallingCanDrop = true;\n return this.internalMonitor.canDropOnTarget(this.targetId);\n } finally{\n isCallingCanDrop = false;\n }\n }\n },\n {\n key: \"isOver\",\n value: function isOver(options) {\n if (!this.targetId) return false;\n return this.internalMonitor.isOverTarget(this.targetId, options);\n }\n },\n {\n key: \"getItemType\",\n value: function getItemType() {\n return this.internalMonitor.getItemType();\n }\n },\n {\n key: \"getItem\",\n value: function getItem() {\n return this.internalMonitor.getItem();\n }\n },\n {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.internalMonitor.getDropResult();\n }\n },\n {\n key: \"didDrop\",\n value: function didDrop() {\n return this.internalMonitor.didDrop();\n }\n },\n {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.internalMonitor.getInitialClientOffset();\n }\n },\n {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.internalMonitor.getInitialSourceClientOffset();\n }\n },\n {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return this.internalMonitor.getSourceClientOffset();\n }\n },\n {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.internalMonitor.getClientOffset();\n }\n },\n {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return this.internalMonitor.getDifferenceFromInitialOffset();\n }\n }\n ]);\n return DropTargetMonitorImpl;\n}();\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"88DE5\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>createTargetFactory);\nvar _invariant = require(\"@react-dnd/invariant\");\nvar _jsUtils = require(\"../utils/js_utils\");\nvar _utils = require(\"./utils\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar ALLOWED_SPEC_METHODS = [\n \"canDrop\",\n \"hover\",\n \"drop\"\n];\nvar TargetImpl = /*#__PURE__*/ function() {\n function TargetImpl(spec, monitor, ref) {\n _classCallCheck(this, TargetImpl);\n this.props = null;\n this.spec = spec;\n this.monitor = monitor;\n this.ref = ref;\n }\n _createClass(TargetImpl, [\n {\n key: \"receiveProps\",\n value: function receiveProps(props) {\n this.props = props;\n }\n },\n {\n key: \"receiveMonitor\",\n value: function receiveMonitor(monitor) {\n this.monitor = monitor;\n }\n },\n {\n key: \"canDrop\",\n value: function canDrop() {\n if (!this.spec.canDrop) return true;\n return this.spec.canDrop(this.props, this.monitor);\n }\n },\n {\n key: \"hover\",\n value: function hover() {\n if (!this.spec.hover) return;\n this.spec.hover(this.props, this.monitor, (0, _utils.getDecoratedComponent)(this.ref));\n }\n },\n {\n key: \"drop\",\n value: function drop() {\n if (!this.spec.drop) return undefined;\n var dropResult = this.spec.drop(this.props, this.monitor, this.ref.current);\n return dropResult;\n }\n }\n ]);\n return TargetImpl;\n}();\nfunction createTargetFactory(spec) {\n Object.keys(spec).forEach(function(key) {\n (0, _invariant.invariant)(ALLOWED_SPEC_METHODS.indexOf(key) > -1, 'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected \"%s\" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', ALLOWED_SPEC_METHODS.join(\", \"), key);\n (0, _invariant.invariant)(typeof spec[key] === \"function\", \"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target\", key, key, spec[key]);\n });\n return function createTarget(monitor, ref) {\n return new TargetImpl(spec, monitor, ref);\n };\n}\n\n},{\"@react-dnd/invariant\":\"l9K61\",\"../utils/js_utils\":\"47uMk\",\"./utils\":\"iP24s\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9G33s\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getEmptyImage\", ()=>(0, _getEmptyImage.getEmptyImage));\nparcelHelpers.export(exports, \"NativeTypes\", ()=>_nativeTypes);\nvar _html5Backend = require(\"./HTML5Backend\");\nvar _html5BackendDefault = parcelHelpers.interopDefault(_html5Backend);\nvar _nativeTypes = require(\"./NativeTypes\");\nvar _getEmptyImage = require(\"./getEmptyImage\");\nvar createBackend = function createBackend(manager, context) {\n return new (0, _html5BackendDefault.default)(manager, context);\n};\nexports.default = createBackend;\n\n},{\"./HTML5Backend\":\"hvOmt\",\"./NativeTypes\":false,\"./getEmptyImage\":\"cCq9B\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hvOmt\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>HTML5Backend);\nvar _enterLeaveCounter = require(\"./EnterLeaveCounter\");\nvar _enterLeaveCounterDefault = parcelHelpers.interopDefault(_enterLeaveCounter);\nvar _browserDetector = require(\"./BrowserDetector\");\nvar _offsetUtils = require(\"./OffsetUtils\");\nvar _nativeDragSources = require(\"./NativeDragSources\");\nvar _nativeTypes = require(\"./NativeTypes\");\nvar _optionsReader = require(\"./OptionsReader\");\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar HTML5Backend = /*#__PURE__*/ function() {\n function HTML5Backend(manager, globalContext) {\n var _this = this;\n _classCallCheck(this, HTML5Backend);\n this.sourcePreviewNodes = new Map();\n this.sourcePreviewNodeOptions = new Map();\n this.sourceNodes = new Map();\n this.sourceNodeOptions = new Map();\n this.dragStartSourceIds = null;\n this.dropTargetIds = [];\n this.dragEnterTargetIds = [];\n this.currentNativeSource = null;\n this.currentNativeHandle = null;\n this.currentDragSourceNode = null;\n this.altKeyPressed = false;\n this.mouseMoveTimeoutTimer = null;\n this.asyncEndDragFrameId = null;\n this.dragOverTargetIds = null;\n this.getSourceClientOffset = function(sourceId) {\n return (0, _offsetUtils.getNodeClientOffset)(_this.sourceNodes.get(sourceId));\n };\n this.endDragNativeItem = function() {\n if (!_this.isDraggingNativeItem()) return;\n _this.actions.endDrag();\n _this.registry.removeSource(_this.currentNativeHandle);\n _this.currentNativeHandle = null;\n _this.currentNativeSource = null;\n };\n this.isNodeInDocument = function(node) {\n // Check the node either in the main document or in the current context\n return _this.document && _this.document.body && document.body.contains(node);\n };\n this.endDragIfSourceWasRemovedFromDOM = function() {\n var node = _this.currentDragSourceNode;\n if (_this.isNodeInDocument(node)) return;\n if (_this.clearCurrentDragSourceNode()) _this.actions.endDrag();\n };\n this.handleTopDragStartCapture = function() {\n _this.clearCurrentDragSourceNode();\n _this.dragStartSourceIds = [];\n };\n this.handleTopDragStart = function(e) {\n if (e.defaultPrevented) return;\n var dragStartSourceIds = _this.dragStartSourceIds;\n _this.dragStartSourceIds = null;\n var clientOffset = (0, _offsetUtils.getEventClientOffset)(e); // Avoid crashing if we missed a drop event or our previous drag died\n if (_this.monitor.isDragging()) _this.actions.endDrag();\n // Don't publish the source just yet (see why below)\n _this.actions.beginDrag(dragStartSourceIds || [], {\n publishSource: false,\n getSourceClientOffset: _this.getSourceClientOffset,\n clientOffset: clientOffset\n });\n var dataTransfer = e.dataTransfer;\n var nativeType = (0, _nativeDragSources.matchNativeItemType)(dataTransfer);\n if (_this.monitor.isDragging()) {\n if (dataTransfer && typeof dataTransfer.setDragImage === \"function\") {\n // Use custom drag image if user specifies it.\n // If child drag source refuses drag but parent agrees,\n // use parent's node as drag image. Neither works in IE though.\n var sourceId = _this.monitor.getSourceId();\n var sourceNode = _this.sourceNodes.get(sourceId);\n var dragPreview = _this.sourcePreviewNodes.get(sourceId) || sourceNode;\n if (dragPreview) {\n var _this$getCurrentSourc = _this.getCurrentSourcePreviewNodeOptions(), anchorX = _this$getCurrentSourc.anchorX, anchorY = _this$getCurrentSourc.anchorY, offsetX = _this$getCurrentSourc.offsetX, offsetY = _this$getCurrentSourc.offsetY;\n var anchorPoint = {\n anchorX: anchorX,\n anchorY: anchorY\n };\n var offsetPoint = {\n offsetX: offsetX,\n offsetY: offsetY\n };\n var dragPreviewOffset = (0, _offsetUtils.getDragPreviewOffset)(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint);\n dataTransfer.setDragImage(dragPreview, dragPreviewOffset.x, dragPreviewOffset.y);\n }\n }\n try {\n // Firefox won't drag without setting data\n dataTransfer.setData(\"application/json\", {});\n } catch (err) {} // IE doesn't support MIME types in setData\n // Store drag source node so we can check whether\n // it is removed from DOM and trigger endDrag manually.\n _this.setCurrentDragSourceNode(e.target); // Now we are ready to publish the drag source.. or are we not?\n var _this$getCurrentSourc2 = _this.getCurrentSourcePreviewNodeOptions(), captureDraggingState = _this$getCurrentSourc2.captureDraggingState;\n if (!captureDraggingState) // Usually we want to publish it in the next tick so that browser\n // is able to screenshot the current (not yet dragging) state.\n //\n // It also neatly avoids a situation where render() returns null\n // in the same tick for the source element, and browser freaks out.\n setTimeout(function() {\n return _this.actions.publishDragSource();\n }, 0);\n else // In some cases the user may want to override this behavior, e.g.\n // to work around IE not supporting custom drag previews.\n //\n // When using a custom drag layer, the only way to prevent\n // the default drag preview from drawing in IE is to screenshot\n // the dragging state in which the node itself has zero opacity\n // and height. In this case, though, returning null from render()\n // will abruptly end the dragging, which is not obvious.\n //\n // This is the reason such behavior is strictly opt-in.\n _this.actions.publishDragSource();\n } else if (nativeType) // A native item (such as URL) dragged from inside the document\n _this.beginDragNativeItem(nativeType);\n else if (dataTransfer && !dataTransfer.types && (e.target && !e.target.hasAttribute || !e.target.hasAttribute(\"draggable\"))) // Looks like a Safari bug: dataTransfer.types is null, but there was no draggable.\n // Just let it drag. It's a native type (URL or text) and will be picked up in\n // dragenter handler.\n return;\n else // If by this time no drag source reacted, tell browser not to drag.\n e.preventDefault();\n };\n this.handleTopDragEndCapture = function() {\n if (_this.clearCurrentDragSourceNode()) // Firefox can dispatch this event in an infinite loop\n // if dragend handler does something like showing an alert.\n // Only proceed if we have not handled it already.\n _this.actions.endDrag();\n };\n this.handleTopDragEnterCapture = function(e) {\n _this.dragEnterTargetIds = [];\n var isFirstEnter = _this.enterLeaveCounter.enter(e.target);\n if (!isFirstEnter || _this.monitor.isDragging()) return;\n var dataTransfer = e.dataTransfer;\n var nativeType = (0, _nativeDragSources.matchNativeItemType)(dataTransfer);\n if (nativeType) // A native item (such as file or URL) dragged from outside the document\n _this.beginDragNativeItem(nativeType, dataTransfer);\n };\n this.handleTopDragEnter = function(e) {\n var dragEnterTargetIds = _this.dragEnterTargetIds;\n _this.dragEnterTargetIds = [];\n if (!_this.monitor.isDragging()) // This is probably a native item type we don't understand.\n return;\n _this.altKeyPressed = e.altKey;\n if (!(0, _browserDetector.isFirefox)()) // Don't emit hover in `dragenter` on Firefox due to an edge case.\n // If the target changes position as the result of `dragenter`, Firefox\n // will still happily dispatch `dragover` despite target being no longer\n // there. The easy solution is to only fire `hover` in `dragover` on FF.\n _this.actions.hover(dragEnterTargetIds, {\n clientOffset: (0, _offsetUtils.getEventClientOffset)(e)\n });\n var canDrop = dragEnterTargetIds.some(function(targetId) {\n return _this.monitor.canDropOnTarget(targetId);\n });\n if (canDrop) {\n // IE requires this to fire dragover events\n e.preventDefault();\n if (e.dataTransfer) e.dataTransfer.dropEffect = _this.getCurrentDropEffect();\n }\n };\n this.handleTopDragOverCapture = function() {\n _this.dragOverTargetIds = [];\n };\n this.handleTopDragOver = function(e) {\n var dragOverTargetIds = _this.dragOverTargetIds;\n _this.dragOverTargetIds = [];\n if (!_this.monitor.isDragging()) {\n // This is probably a native item type we don't understand.\n // Prevent default \"drop and blow away the whole document\" action.\n e.preventDefault();\n if (e.dataTransfer) e.dataTransfer.dropEffect = \"none\";\n return;\n }\n _this.altKeyPressed = e.altKey;\n _this.actions.hover(dragOverTargetIds || [], {\n clientOffset: (0, _offsetUtils.getEventClientOffset)(e)\n });\n var canDrop = (dragOverTargetIds || []).some(function(targetId) {\n return _this.monitor.canDropOnTarget(targetId);\n });\n if (canDrop) {\n // Show user-specified drop effect.\n e.preventDefault();\n if (e.dataTransfer) e.dataTransfer.dropEffect = _this.getCurrentDropEffect();\n } else if (_this.isDraggingNativeItem()) // Don't show a nice cursor but still prevent default\n // \"drop and blow away the whole document\" action.\n e.preventDefault();\n else {\n e.preventDefault();\n if (e.dataTransfer) e.dataTransfer.dropEffect = \"none\";\n }\n };\n this.handleTopDragLeaveCapture = function(e) {\n if (_this.isDraggingNativeItem()) e.preventDefault();\n var isLastLeave = _this.enterLeaveCounter.leave(e.target);\n if (!isLastLeave) return;\n if (_this.isDraggingNativeItem()) _this.endDragNativeItem();\n };\n this.handleTopDropCapture = function(e) {\n _this.dropTargetIds = [];\n e.preventDefault();\n if (_this.isDraggingNativeItem()) _this.currentNativeSource.loadDataTransfer(e.dataTransfer);\n _this.enterLeaveCounter.reset();\n };\n this.handleTopDrop = function(e) {\n var dropTargetIds = _this.dropTargetIds;\n _this.dropTargetIds = [];\n _this.actions.hover(dropTargetIds, {\n clientOffset: (0, _offsetUtils.getEventClientOffset)(e)\n });\n _this.actions.drop({\n dropEffect: _this.getCurrentDropEffect()\n });\n if (_this.isDraggingNativeItem()) _this.endDragNativeItem();\n else _this.endDragIfSourceWasRemovedFromDOM();\n };\n this.handleSelectStart = function(e) {\n var target = e.target; // Only IE requires us to explicitly say\n // we want drag drop operation to start\n if (typeof target.dragDrop !== \"function\") return;\n // Inputs and textareas should be selectable\n if (target.tagName === \"INPUT\" || target.tagName === \"SELECT\" || target.tagName === \"TEXTAREA\" || target.isContentEditable) return;\n // For other targets, ask IE\n // to enable drag and drop\n e.preventDefault();\n target.dragDrop();\n };\n this.options = new (0, _optionsReader.OptionsReader)(globalContext);\n this.actions = manager.getActions();\n this.monitor = manager.getMonitor();\n this.registry = manager.getRegistry();\n this.enterLeaveCounter = new (0, _enterLeaveCounterDefault.default)(this.isNodeInDocument);\n } // public for test\n _createClass(HTML5Backend, [\n {\n key: \"setup\",\n value: function setup() {\n if (this.window === undefined) return;\n if (this.window.__isReactDndBackendSetUp) throw new Error(\"Cannot have two HTML5 backends at the same time.\");\n this.window.__isReactDndBackendSetUp = true;\n this.addEventListeners(this.window);\n }\n },\n {\n key: \"teardown\",\n value: function teardown() {\n if (this.window === undefined) return;\n this.window.__isReactDndBackendSetUp = false;\n this.removeEventListeners(this.window);\n this.clearCurrentDragSourceNode();\n if (this.asyncEndDragFrameId) this.window.cancelAnimationFrame(this.asyncEndDragFrameId);\n }\n },\n {\n key: \"connectDragPreview\",\n value: function connectDragPreview(sourceId, node, options) {\n var _this2 = this;\n this.sourcePreviewNodeOptions.set(sourceId, options);\n this.sourcePreviewNodes.set(sourceId, node);\n return function() {\n _this2.sourcePreviewNodes.delete(sourceId);\n _this2.sourcePreviewNodeOptions.delete(sourceId);\n };\n }\n },\n {\n key: \"connectDragSource\",\n value: function connectDragSource(sourceId, node, options) {\n var _this3 = this;\n this.sourceNodes.set(sourceId, node);\n this.sourceNodeOptions.set(sourceId, options);\n var handleDragStart = function handleDragStart(e) {\n return _this3.handleDragStart(e, sourceId);\n };\n var handleSelectStart = function handleSelectStart(e) {\n return _this3.handleSelectStart(e);\n };\n node.setAttribute(\"draggable\", \"true\");\n node.addEventListener(\"dragstart\", handleDragStart);\n node.addEventListener(\"selectstart\", handleSelectStart);\n return function() {\n _this3.sourceNodes.delete(sourceId);\n _this3.sourceNodeOptions.delete(sourceId);\n node.removeEventListener(\"dragstart\", handleDragStart);\n node.removeEventListener(\"selectstart\", handleSelectStart);\n node.setAttribute(\"draggable\", \"false\");\n };\n }\n },\n {\n key: \"connectDropTarget\",\n value: function connectDropTarget(targetId, node) {\n var _this4 = this;\n var handleDragEnter = function handleDragEnter(e) {\n return _this4.handleDragEnter(e, targetId);\n };\n var handleDragOver = function handleDragOver(e) {\n return _this4.handleDragOver(e, targetId);\n };\n var handleDrop = function handleDrop(e) {\n return _this4.handleDrop(e, targetId);\n };\n node.addEventListener(\"dragenter\", handleDragEnter);\n node.addEventListener(\"dragover\", handleDragOver);\n node.addEventListener(\"drop\", handleDrop);\n return function() {\n node.removeEventListener(\"dragenter\", handleDragEnter);\n node.removeEventListener(\"dragover\", handleDragOver);\n node.removeEventListener(\"drop\", handleDrop);\n };\n }\n },\n {\n key: \"addEventListeners\",\n value: function addEventListeners(target) {\n // SSR Fix (https://github.com/react-dnd/react-dnd/pull/813\n if (!target.addEventListener) return;\n target.addEventListener(\"dragstart\", this.handleTopDragStart);\n target.addEventListener(\"dragstart\", this.handleTopDragStartCapture, true);\n target.addEventListener(\"dragend\", this.handleTopDragEndCapture, true);\n target.addEventListener(\"dragenter\", this.handleTopDragEnter);\n target.addEventListener(\"dragenter\", this.handleTopDragEnterCapture, true);\n target.addEventListener(\"dragleave\", this.handleTopDragLeaveCapture, true);\n target.addEventListener(\"dragover\", this.handleTopDragOver);\n target.addEventListener(\"dragover\", this.handleTopDragOverCapture, true);\n target.addEventListener(\"drop\", this.handleTopDrop);\n target.addEventListener(\"drop\", this.handleTopDropCapture, true);\n }\n },\n {\n key: \"removeEventListeners\",\n value: function removeEventListeners(target) {\n // SSR Fix (https://github.com/react-dnd/react-dnd/pull/813\n if (!target.removeEventListener) return;\n target.removeEventListener(\"dragstart\", this.handleTopDragStart);\n target.removeEventListener(\"dragstart\", this.handleTopDragStartCapture, true);\n target.removeEventListener(\"dragend\", this.handleTopDragEndCapture, true);\n target.removeEventListener(\"dragenter\", this.handleTopDragEnter);\n target.removeEventListener(\"dragenter\", this.handleTopDragEnterCapture, true);\n target.removeEventListener(\"dragleave\", this.handleTopDragLeaveCapture, true);\n target.removeEventListener(\"dragover\", this.handleTopDragOver);\n target.removeEventListener(\"dragover\", this.handleTopDragOverCapture, true);\n target.removeEventListener(\"drop\", this.handleTopDrop);\n target.removeEventListener(\"drop\", this.handleTopDropCapture, true);\n }\n },\n {\n key: \"getCurrentSourceNodeOptions\",\n value: function getCurrentSourceNodeOptions() {\n var sourceId = this.monitor.getSourceId();\n var sourceNodeOptions = this.sourceNodeOptions.get(sourceId);\n return _objectSpread({\n dropEffect: this.altKeyPressed ? \"copy\" : \"move\"\n }, sourceNodeOptions || {});\n }\n },\n {\n key: \"getCurrentDropEffect\",\n value: function getCurrentDropEffect() {\n if (this.isDraggingNativeItem()) // It makes more sense to default to 'copy' for native resources\n return \"copy\";\n return this.getCurrentSourceNodeOptions().dropEffect;\n }\n },\n {\n key: \"getCurrentSourcePreviewNodeOptions\",\n value: function getCurrentSourcePreviewNodeOptions() {\n var sourceId = this.monitor.getSourceId();\n var sourcePreviewNodeOptions = this.sourcePreviewNodeOptions.get(sourceId);\n return _objectSpread({\n anchorX: 0.5,\n anchorY: 0.5,\n captureDraggingState: false\n }, sourcePreviewNodeOptions || {});\n }\n },\n {\n key: \"isDraggingNativeItem\",\n value: function isDraggingNativeItem() {\n var itemType = this.monitor.getItemType();\n return Object.keys(_nativeTypes).some(function(key) {\n return _nativeTypes[key] === itemType;\n });\n }\n },\n {\n key: \"beginDragNativeItem\",\n value: function beginDragNativeItem(type, dataTransfer) {\n this.clearCurrentDragSourceNode();\n this.currentNativeSource = (0, _nativeDragSources.createNativeDragSource)(type, dataTransfer);\n this.currentNativeHandle = this.registry.addSource(type, this.currentNativeSource);\n this.actions.beginDrag([\n this.currentNativeHandle\n ]);\n }\n },\n {\n key: \"setCurrentDragSourceNode\",\n value: function setCurrentDragSourceNode(node) {\n var _this5 = this;\n this.clearCurrentDragSourceNode();\n this.currentDragSourceNode = node; // A timeout of > 0 is necessary to resolve Firefox issue referenced\n // See:\n // * https://github.com/react-dnd/react-dnd/pull/928\n // * https://github.com/react-dnd/react-dnd/issues/869\n var MOUSE_MOVE_TIMEOUT = 1000; // Receiving a mouse event in the middle of a dragging operation\n // means it has ended and the drag source node disappeared from DOM,\n // so the browser didn't dispatch the dragend event.\n //\n // We need to wait before we start listening for mousemove events.\n // This is needed because the drag preview needs to be drawn or else it fires an 'mousemove' event\n // immediately in some browsers.\n //\n // See:\n // * https://github.com/react-dnd/react-dnd/pull/928\n // * https://github.com/react-dnd/react-dnd/issues/869\n //\n this.mouseMoveTimeoutTimer = setTimeout(function() {\n return _this5.window && _this5.window.addEventListener(\"mousemove\", _this5.endDragIfSourceWasRemovedFromDOM, true);\n }, MOUSE_MOVE_TIMEOUT);\n }\n },\n {\n key: \"clearCurrentDragSourceNode\",\n value: function clearCurrentDragSourceNode() {\n if (this.currentDragSourceNode) {\n this.currentDragSourceNode = null;\n if (this.window) {\n this.window.clearTimeout(this.mouseMoveTimeoutTimer || undefined);\n this.window.removeEventListener(\"mousemove\", this.endDragIfSourceWasRemovedFromDOM, true);\n }\n this.mouseMoveTimeoutTimer = null;\n return true;\n }\n return false;\n }\n },\n {\n key: \"handleDragStart\",\n value: function handleDragStart(e, sourceId) {\n if (e.defaultPrevented) return;\n if (!this.dragStartSourceIds) this.dragStartSourceIds = [];\n this.dragStartSourceIds.unshift(sourceId);\n }\n },\n {\n key: \"handleDragEnter\",\n value: function handleDragEnter(e, targetId) {\n this.dragEnterTargetIds.unshift(targetId);\n }\n },\n {\n key: \"handleDragOver\",\n value: function handleDragOver(e, targetId) {\n if (this.dragOverTargetIds === null) this.dragOverTargetIds = [];\n this.dragOverTargetIds.unshift(targetId);\n }\n },\n {\n key: \"handleDrop\",\n value: function handleDrop(e, targetId) {\n this.dropTargetIds.unshift(targetId);\n }\n },\n {\n key: \"window\",\n get: function get() {\n return this.options.window;\n }\n },\n {\n key: \"document\",\n get: function get() {\n return this.options.document;\n }\n }\n ]);\n return HTML5Backend;\n}();\n\n},{\"./EnterLeaveCounter\":\"5hOq5\",\"./BrowserDetector\":\"2qBkl\",\"./OffsetUtils\":\"fCcdv\",\"./NativeDragSources\":\"4f7Wz\",\"./NativeTypes\":\"3cDwo\",\"./OptionsReader\":\"hUgdS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5hOq5\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>EnterLeaveCounter);\nvar _jsUtils = require(\"./utils/js_utils\");\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar EnterLeaveCounter = /*#__PURE__*/ function() {\n function EnterLeaveCounter(isNodeInDocument) {\n _classCallCheck(this, EnterLeaveCounter);\n this.entered = [];\n this.isNodeInDocument = isNodeInDocument;\n }\n _createClass(EnterLeaveCounter, [\n {\n key: \"enter\",\n value: function enter(enteringNode) {\n var _this = this;\n var previousLength = this.entered.length;\n var isNodeEntered = function isNodeEntered(node) {\n return _this.isNodeInDocument(node) && (!node.contains || node.contains(enteringNode));\n };\n this.entered = (0, _jsUtils.union)(this.entered.filter(isNodeEntered), [\n enteringNode\n ]);\n return previousLength === 0 && this.entered.length > 0;\n }\n },\n {\n key: \"leave\",\n value: function leave(leavingNode) {\n var previousLength = this.entered.length;\n this.entered = (0, _jsUtils.without)(this.entered.filter(this.isNodeInDocument), leavingNode);\n return previousLength > 0 && this.entered.length === 0;\n }\n },\n {\n key: \"reset\",\n value: function reset() {\n this.entered = [];\n }\n }\n ]);\n return EnterLeaveCounter;\n}();\n\n},{\"./utils/js_utils\":\"8nfmu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8nfmu\":[function(require,module,exports) {\n// cheap lodash replacements\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"memoize\", ()=>memoize);\n/**\n * drop-in replacement for _.without\n */ parcelHelpers.export(exports, \"without\", ()=>without);\nparcelHelpers.export(exports, \"union\", ()=>union);\nfunction memoize(fn) {\n var result = null;\n var memoized = function memoized() {\n if (result == null) result = fn();\n return result;\n };\n return memoized;\n}\nfunction without(items, item) {\n return items.filter(function(i) {\n return i !== item;\n });\n}\nfunction union(itemsA, itemsB) {\n var set = new Set();\n var insertItem = function insertItem(item) {\n return set.add(item);\n };\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n set.forEach(function(key) {\n return result.push(key);\n });\n return result;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2qBkl\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"isFirefox\", ()=>isFirefox);\nparcelHelpers.export(exports, \"isSafari\", ()=>isSafari);\nvar _jsUtils = require(\"./utils/js_utils\");\nvar isFirefox = (0, _jsUtils.memoize)(function() {\n return /firefox/i.test(navigator.userAgent);\n});\nvar isSafari = (0, _jsUtils.memoize)(function() {\n return Boolean(window.safari);\n});\n\n},{\"./utils/js_utils\":\"8nfmu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fCcdv\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getNodeClientOffset\", ()=>getNodeClientOffset);\nparcelHelpers.export(exports, \"getEventClientOffset\", ()=>getEventClientOffset);\nparcelHelpers.export(exports, \"getDragPreviewOffset\", ()=>getDragPreviewOffset);\nvar _browserDetector = require(\"./BrowserDetector\");\nvar _monotonicInterpolant = require(\"./MonotonicInterpolant\");\nvar _monotonicInterpolantDefault = parcelHelpers.interopDefault(_monotonicInterpolant);\nvar ELEMENT_NODE = 1;\nfunction getNodeClientOffset(node) {\n var el = node.nodeType === ELEMENT_NODE ? node : node.parentElement;\n if (!el) return null;\n var _el$getBoundingClient = el.getBoundingClientRect(), top = _el$getBoundingClient.top, left = _el$getBoundingClient.left;\n return {\n x: left,\n y: top\n };\n}\nfunction getEventClientOffset(e) {\n return {\n x: e.clientX,\n y: e.clientY\n };\n}\nfunction isImageNode(node) {\n return node.nodeName === \"IMG\" && ((0, _browserDetector.isFirefox)() || !document.documentElement.contains(node));\n}\nfunction getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight) {\n var dragPreviewWidth = isImage ? dragPreview.width : sourceWidth;\n var dragPreviewHeight = isImage ? dragPreview.height : sourceHeight; // Work around @2x coordinate discrepancies in browsers\n if ((0, _browserDetector.isSafari)() && isImage) {\n dragPreviewHeight /= window.devicePixelRatio;\n dragPreviewWidth /= window.devicePixelRatio;\n }\n return {\n dragPreviewWidth: dragPreviewWidth,\n dragPreviewHeight: dragPreviewHeight\n };\n}\nfunction getDragPreviewOffset(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint) {\n // The browsers will use the image intrinsic size under different conditions.\n // Firefox only cares if it's an image, but WebKit also wants it to be detached.\n var isImage = isImageNode(dragPreview);\n var dragPreviewNode = isImage ? sourceNode : dragPreview;\n var dragPreviewNodeOffsetFromClient = getNodeClientOffset(dragPreviewNode);\n var offsetFromDragPreview = {\n x: clientOffset.x - dragPreviewNodeOffsetFromClient.x,\n y: clientOffset.y - dragPreviewNodeOffsetFromClient.y\n };\n var sourceWidth = sourceNode.offsetWidth, sourceHeight = sourceNode.offsetHeight;\n var anchorX = anchorPoint.anchorX, anchorY = anchorPoint.anchorY;\n var _getDragPreviewSize = getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight), dragPreviewWidth = _getDragPreviewSize.dragPreviewWidth, dragPreviewHeight = _getDragPreviewSize.dragPreviewHeight;\n var calculateYOffset = function calculateYOffset() {\n var interpolantY = new (0, _monotonicInterpolantDefault.default)([\n 0,\n 0.5,\n 1\n ], [\n offsetFromDragPreview.y,\n offsetFromDragPreview.y / sourceHeight * dragPreviewHeight,\n offsetFromDragPreview.y + dragPreviewHeight - sourceHeight\n ]);\n var y = interpolantY.interpolate(anchorY); // Work around Safari 8 positioning bug\n if ((0, _browserDetector.isSafari)() && isImage) // We'll have to wait for @3x to see if this is entirely correct\n y += (window.devicePixelRatio - 1) * dragPreviewHeight;\n return y;\n };\n var calculateXOffset = function calculateXOffset() {\n // Interpolate coordinates depending on anchor point\n // If you know a simpler way to do this, let me know\n var interpolantX = new (0, _monotonicInterpolantDefault.default)([\n 0,\n 0.5,\n 1\n ], [\n offsetFromDragPreview.x,\n offsetFromDragPreview.x / sourceWidth * dragPreviewWidth,\n offsetFromDragPreview.x + dragPreviewWidth - sourceWidth\n ]);\n return interpolantX.interpolate(anchorX);\n }; // Force offsets if specified in the options.\n var offsetX = offsetPoint.offsetX, offsetY = offsetPoint.offsetY;\n var isManualOffsetX = offsetX === 0 || offsetX;\n var isManualOffsetY = offsetY === 0 || offsetY;\n return {\n x: isManualOffsetX ? offsetX : calculateXOffset(),\n y: isManualOffsetY ? offsetY : calculateYOffset()\n };\n}\n\n},{\"./BrowserDetector\":\"2qBkl\",\"./MonotonicInterpolant\":\"6jdWS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6jdWS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>MonotonicInterpolant);\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar MonotonicInterpolant = /*#__PURE__*/ function() {\n function MonotonicInterpolant(xs, ys) {\n _classCallCheck(this, MonotonicInterpolant);\n var length = xs.length; // Rearrange xs and ys so that xs is sorted\n var indexes = [];\n for(var i = 0; i < length; i++)indexes.push(i);\n indexes.sort(function(a, b) {\n return xs[a] < xs[b] ? -1 : 1;\n }); // Get consecutive differences and slopes\n var dys = [];\n var dxs = [];\n var ms = [];\n var dx;\n var dy;\n for(var _i = 0; _i < length - 1; _i++){\n dx = xs[_i + 1] - xs[_i];\n dy = ys[_i + 1] - ys[_i];\n dxs.push(dx);\n dys.push(dy);\n ms.push(dy / dx);\n } // Get degree-1 coefficients\n var c1s = [\n ms[0]\n ];\n for(var _i2 = 0; _i2 < dxs.length - 1; _i2++){\n var m2 = ms[_i2];\n var mNext = ms[_i2 + 1];\n if (m2 * mNext <= 0) c1s.push(0);\n else {\n dx = dxs[_i2];\n var dxNext = dxs[_i2 + 1];\n var common = dx + dxNext;\n c1s.push(3 * common / ((common + dxNext) / m2 + (common + dx) / mNext));\n }\n }\n c1s.push(ms[ms.length - 1]); // Get degree-2 and degree-3 coefficients\n var c2s = [];\n var c3s = [];\n var m;\n for(var _i3 = 0; _i3 < c1s.length - 1; _i3++){\n m = ms[_i3];\n var c1 = c1s[_i3];\n var invDx = 1 / dxs[_i3];\n var _common = c1 + c1s[_i3 + 1] - m - m;\n c2s.push((m - c1 - _common) * invDx);\n c3s.push(_common * invDx * invDx);\n }\n this.xs = xs;\n this.ys = ys;\n this.c1s = c1s;\n this.c2s = c2s;\n this.c3s = c3s;\n }\n _createClass(MonotonicInterpolant, [\n {\n key: \"interpolate\",\n value: function interpolate(x) {\n var xs = this.xs, ys = this.ys, c1s = this.c1s, c2s = this.c2s, c3s = this.c3s; // The rightmost point in the dataset should give an exact result\n var i = xs.length - 1;\n if (x === xs[i]) return ys[i];\n // Search for the interval x is in, returning the corresponding y if x is one of the original xs\n var low = 0;\n var high = c3s.length - 1;\n var mid;\n while(low <= high){\n mid = Math.floor(0.5 * (low + high));\n var xHere = xs[mid];\n if (xHere < x) low = mid + 1;\n else if (xHere > x) high = mid - 1;\n else return ys[mid];\n }\n i = Math.max(0, high); // Interpolate\n var diff = x - xs[i];\n var diffSq = diff * diff;\n return ys[i] + c1s[i] * diff + c2s[i] * diffSq + c3s[i] * diff * diffSq;\n }\n }\n ]);\n return MonotonicInterpolant;\n}();\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4f7Wz\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createNativeDragSource\", ()=>createNativeDragSource);\nparcelHelpers.export(exports, \"matchNativeItemType\", ()=>matchNativeItemType);\nvar _nativeTypesConfig = require(\"./nativeTypesConfig\");\nvar _nativeDragSource = require(\"./NativeDragSource\");\nfunction createNativeDragSource(type, dataTransfer) {\n var result = new (0, _nativeDragSource.NativeDragSource)((0, _nativeTypesConfig.nativeTypesConfig)[type]);\n result.loadDataTransfer(dataTransfer);\n return result;\n}\nfunction matchNativeItemType(dataTransfer) {\n if (!dataTransfer) return null;\n var dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || []);\n return Object.keys((0, _nativeTypesConfig.nativeTypesConfig)).filter(function(nativeItemType) {\n var matchesTypes = (0, _nativeTypesConfig.nativeTypesConfig)[nativeItemType].matchesTypes;\n return matchesTypes.some(function(t) {\n return dataTransferTypes.indexOf(t) > -1;\n });\n })[0] || null;\n}\n\n},{\"./nativeTypesConfig\":\"101y7\",\"./NativeDragSource\":\"9ZQlA\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"101y7\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"nativeTypesConfig\", ()=>nativeTypesConfig);\nvar _nativeTypes = require(\"../NativeTypes\");\nvar _getDataFromDataTransfer = require(\"./getDataFromDataTransfer\");\nvar _nativeTypesConfig;\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nvar nativeTypesConfig = (_nativeTypesConfig = {}, _defineProperty(_nativeTypesConfig, _nativeTypes.FILE, {\n exposeProperties: {\n files: function files(dataTransfer) {\n return Array.prototype.slice.call(dataTransfer.files);\n },\n items: function items(dataTransfer) {\n return dataTransfer.items;\n }\n },\n matchesTypes: [\n \"Files\"\n ]\n}), _defineProperty(_nativeTypesConfig, _nativeTypes.URL, {\n exposeProperties: {\n urls: function urls(dataTransfer, matchesTypes) {\n return (0, _getDataFromDataTransfer.getDataFromDataTransfer)(dataTransfer, matchesTypes, \"\").split(\"\\n\");\n }\n },\n matchesTypes: [\n \"Url\",\n \"text/uri-list\"\n ]\n}), _defineProperty(_nativeTypesConfig, _nativeTypes.TEXT, {\n exposeProperties: {\n text: function text(dataTransfer, matchesTypes) {\n return (0, _getDataFromDataTransfer.getDataFromDataTransfer)(dataTransfer, matchesTypes, \"\");\n }\n },\n matchesTypes: [\n \"Text\",\n \"text/plain\"\n ]\n}), _nativeTypesConfig);\n\n},{\"../NativeTypes\":\"3cDwo\",\"./getDataFromDataTransfer\":\"auVwd\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3cDwo\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"FILE\", ()=>FILE);\nparcelHelpers.export(exports, \"URL\", ()=>URL);\nparcelHelpers.export(exports, \"TEXT\", ()=>TEXT);\nvar FILE = \"__NATIVE_FILE__\";\nvar URL = \"__NATIVE_URL__\";\nvar TEXT = \"__NATIVE_TEXT__\";\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"auVwd\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getDataFromDataTransfer\", ()=>getDataFromDataTransfer);\nfunction getDataFromDataTransfer(dataTransfer, typesToTry, defaultValue) {\n var result = typesToTry.reduce(function(resultSoFar, typeToTry) {\n return resultSoFar || dataTransfer.getData(typeToTry);\n }, \"\");\n return result != null ? result : defaultValue;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9ZQlA\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"NativeDragSource\", ()=>NativeDragSource);\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar NativeDragSource = /*#__PURE__*/ function() {\n function NativeDragSource(config) {\n _classCallCheck(this, NativeDragSource);\n this.config = config;\n this.item = {};\n this.initializeExposedProperties();\n }\n _createClass(NativeDragSource, [\n {\n key: \"initializeExposedProperties\",\n value: function initializeExposedProperties() {\n var _this = this;\n Object.keys(this.config.exposeProperties).forEach(function(property) {\n Object.defineProperty(_this.item, property, {\n configurable: true,\n enumerable: true,\n get: function get() {\n // eslint-disable-next-line no-console\n console.warn(\"Browser doesn't allow reading \\\"\".concat(property, '\" until the drop event.'));\n return null;\n }\n });\n });\n }\n },\n {\n key: \"loadDataTransfer\",\n value: function loadDataTransfer(dataTransfer) {\n var _this2 = this;\n if (dataTransfer) {\n var newProperties = {};\n Object.keys(this.config.exposeProperties).forEach(function(property) {\n newProperties[property] = {\n value: _this2.config.exposeProperties[property](dataTransfer, _this2.config.matchesTypes),\n configurable: true,\n enumerable: true\n };\n });\n Object.defineProperties(this.item, newProperties);\n }\n }\n },\n {\n key: \"canDrag\",\n value: function canDrag() {\n return true;\n }\n },\n {\n key: \"beginDrag\",\n value: function beginDrag() {\n return this.item;\n }\n },\n {\n key: \"isDragging\",\n value: function isDragging(monitor, handle) {\n return handle === monitor.getSourceId();\n }\n },\n {\n key: \"endDrag\",\n value: function endDrag() {}\n }\n ]);\n return NativeDragSource;\n}();\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hUgdS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"OptionsReader\", ()=>OptionsReader);\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar OptionsReader = /*#__PURE__*/ function() {\n function OptionsReader(globalContext) {\n _classCallCheck(this, OptionsReader);\n this.globalContext = globalContext;\n }\n _createClass(OptionsReader, [\n {\n key: \"window\",\n get: function get() {\n if (this.globalContext) return this.globalContext;\n else if (typeof window !== \"undefined\") return window;\n return undefined;\n }\n },\n {\n key: \"document\",\n get: function get() {\n if (this.window) return this.window.document;\n return undefined;\n }\n }\n ]);\n return OptionsReader;\n}();\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cCq9B\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getEmptyImage\", ()=>getEmptyImage);\nvar emptyImage;\nfunction getEmptyImage() {\n if (!emptyImage) {\n emptyImage = new Image();\n emptyImage.src = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n }\n return emptyImage;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bWmmR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _indexJs = require(\"./core/index.js\");\nparcelHelpers.exportAll(_indexJs, exports);\nvar _indexJs1 = require(\"./react/index.js\");\nparcelHelpers.exportAll(_indexJs1, exports);\n\n},{\"./core/index.js\":\"4NtVX\",\"./react/index.js\":\"3mize\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4NtVX\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloClient\", ()=>(0, _apolloClientJs.ApolloClient));\nparcelHelpers.export(exports, \"mergeOptions\", ()=>(0, _apolloClientJs.mergeOptions));\nparcelHelpers.export(exports, \"ObservableQuery\", ()=>(0, _observableQueryJs.ObservableQuery));\nparcelHelpers.export(exports, \"NetworkStatus\", ()=>(0, _networkStatusJs.NetworkStatus));\nparcelHelpers.export(exports, \"isApolloError\", ()=>(0, _indexJs.isApolloError));\nparcelHelpers.export(exports, \"ApolloError\", ()=>(0, _indexJs.ApolloError));\nparcelHelpers.export(exports, \"Cache\", ()=>(0, _indexJs1.Cache));\nparcelHelpers.export(exports, \"ApolloCache\", ()=>(0, _indexJs1.ApolloCache));\nparcelHelpers.export(exports, \"InMemoryCache\", ()=>(0, _indexJs1.InMemoryCache));\nparcelHelpers.export(exports, \"MissingFieldError\", ()=>(0, _indexJs1.MissingFieldError));\nparcelHelpers.export(exports, \"defaultDataIdFromObject\", ()=>(0, _indexJs1.defaultDataIdFromObject));\nparcelHelpers.export(exports, \"makeVar\", ()=>(0, _indexJs1.makeVar));\nparcelHelpers.export(exports, \"fromError\", ()=>(0, _indexJs4.fromError));\nparcelHelpers.export(exports, \"toPromise\", ()=>(0, _indexJs4.toPromise));\nparcelHelpers.export(exports, \"fromPromise\", ()=>(0, _indexJs4.fromPromise));\nparcelHelpers.export(exports, \"throwServerError\", ()=>(0, _indexJs4.throwServerError));\nparcelHelpers.export(exports, \"Observable\", ()=>(0, _indexJs5.Observable));\nparcelHelpers.export(exports, \"isReference\", ()=>(0, _indexJs5.isReference));\nparcelHelpers.export(exports, \"makeReference\", ()=>(0, _indexJs5.makeReference));\nparcelHelpers.export(exports, \"setLogVerbosity\", ()=>(0, _tsInvariant.setVerbosity));\nparcelHelpers.export(exports, \"resetCaches\", ()=>resetCaches);\nparcelHelpers.export(exports, \"disableFragmentWarnings\", ()=>disableFragmentWarnings);\nparcelHelpers.export(exports, \"enableExperimentalFragmentVariables\", ()=>enableExperimentalFragmentVariables);\nparcelHelpers.export(exports, \"disableExperimentalFragmentVariables\", ()=>disableExperimentalFragmentVariables);\nparcelHelpers.export(exports, \"gql\", ()=>(0, _graphqlTagDefault.default));\nvar _apolloClientJs = require(\"./ApolloClient.js\");\nvar _observableQueryJs = require(\"./ObservableQuery.js\");\nvar _networkStatusJs = require(\"./networkStatus.js\");\nvar _typesJs = require(\"./types.js\");\nparcelHelpers.exportAll(_typesJs, exports);\nvar _indexJs = require(\"../errors/index.js\");\nvar _indexJs1 = require(\"../cache/index.js\");\nvar _typesJs1 = require(\"../cache/inmemory/types.js\");\nparcelHelpers.exportAll(_typesJs1, exports);\nvar _indexJs2 = require(\"../link/core/index.js\");\nparcelHelpers.exportAll(_indexJs2, exports);\nvar _indexJs3 = require(\"../link/http/index.js\");\nparcelHelpers.exportAll(_indexJs3, exports);\nvar _indexJs4 = require(\"../link/utils/index.js\");\nvar _indexJs5 = require(\"../utilities/index.js\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _graphqlTag = require(\"graphql-tag\");\nvar _graphqlTagDefault = parcelHelpers.interopDefault(_graphqlTag);\n(0, _tsInvariant.setVerbosity)(\"log\");\nvar resetCaches = (0, _graphqlTagDefault.default).resetCaches, disableFragmentWarnings = (0, _graphqlTagDefault.default).disableFragmentWarnings, enableExperimentalFragmentVariables = (0, _graphqlTagDefault.default).enableExperimentalFragmentVariables, disableExperimentalFragmentVariables = (0, _graphqlTagDefault.default).disableExperimentalFragmentVariables;\n\n},{\"./ApolloClient.js\":\"kXsRW\",\"./ObservableQuery.js\":\"aszik\",\"./networkStatus.js\":\"8yReP\",\"./types.js\":\"jrYcZ\",\"../errors/index.js\":\"73MUX\",\"../cache/index.js\":\"fv0fM\",\"../cache/inmemory/types.js\":\"i6tcv\",\"../link/core/index.js\":\"gXJ1R\",\"../link/http/index.js\":\"6rkPi\",\"../link/utils/index.js\":\"bdwh2\",\"../utilities/index.js\":\"k55vB\",\"ts-invariant\":\"2pI3w\",\"graphql-tag\":\"bEarf\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kXsRW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"mergeOptions\", ()=>mergeOptions);\nparcelHelpers.export(exports, \"ApolloClient\", ()=>ApolloClient);\nvar _tslib = require(\"tslib\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../link/core/index.js\");\nvar _indexJs1 = require(\"../utilities/index.js\");\nvar _versionJs = require(\"../version.js\");\nvar _indexJs2 = require(\"../link/http/index.js\");\nvar _queryManagerJs = require(\"./QueryManager.js\");\nvar _localStateJs = require(\"./LocalState.js\");\nvar hasSuggestedDevtools = false;\nfunction mergeOptions(defaults, options) {\n return (0, _indexJs1.compact)(defaults, options, options.variables && {\n variables: (0, _tslib.__assign)((0, _tslib.__assign)({}, defaults.variables), options.variables)\n });\n}\nvar ApolloClient = function() {\n function ApolloClient(options) {\n var _this = this;\n this.defaultOptions = {};\n this.resetStoreCallbacks = [];\n this.clearStoreCallbacks = [];\n var uri = options.uri, credentials = options.credentials, headers = options.headers, cache = options.cache, _a = options.ssrMode, ssrMode = _a === void 0 ? false : _a, _b = options.ssrForceFetchDelay, ssrForceFetchDelay = _b === void 0 ? 0 : _b, _c = options.connectToDevTools, connectToDevTools = _c === void 0 ? typeof window === \"object\" && !window.__APOLLO_CLIENT__ && false : _c, _d = options.queryDeduplication, queryDeduplication = _d === void 0 ? true : _d, defaultOptions = options.defaultOptions, _e = options.assumeImmutableResults, assumeImmutableResults = _e === void 0 ? false : _e, resolvers = options.resolvers, typeDefs = options.typeDefs, fragmentMatcher = options.fragmentMatcher, clientAwarenessName = options.name, clientAwarenessVersion = options.version;\n var link = options.link;\n if (!link) link = uri ? new (0, _indexJs2.HttpLink)({\n uri: uri,\n credentials: credentials,\n headers: headers\n }) : (0, _indexJs.ApolloLink).empty();\n if (!cache) throw new (0, _tsInvariant.InvariantError)(9);\n this.link = link;\n this.cache = cache;\n this.disableNetworkFetches = ssrMode || ssrForceFetchDelay > 0;\n this.queryDeduplication = queryDeduplication;\n this.defaultOptions = defaultOptions || {};\n this.typeDefs = typeDefs;\n if (ssrForceFetchDelay) setTimeout(function() {\n return _this.disableNetworkFetches = false;\n }, ssrForceFetchDelay);\n this.watchQuery = this.watchQuery.bind(this);\n this.query = this.query.bind(this);\n this.mutate = this.mutate.bind(this);\n this.resetStore = this.resetStore.bind(this);\n this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this);\n if (connectToDevTools && typeof window === \"object\") window.__APOLLO_CLIENT__ = this;\n var nav, ua, url;\n this.version = (0, _versionJs.version);\n this.localState = new (0, _localStateJs.LocalState)({\n cache: cache,\n client: this,\n resolvers: resolvers,\n fragmentMatcher: fragmentMatcher\n });\n this.queryManager = new (0, _queryManagerJs.QueryManager)({\n cache: this.cache,\n link: this.link,\n queryDeduplication: queryDeduplication,\n ssrMode: ssrMode,\n clientAwareness: {\n name: clientAwarenessName,\n version: clientAwarenessVersion\n },\n localState: this.localState,\n assumeImmutableResults: assumeImmutableResults,\n onBroadcast: connectToDevTools ? function() {\n if (_this.devToolsHookCb) _this.devToolsHookCb({\n action: {},\n state: {\n queries: _this.queryManager.getQueryStore(),\n mutations: _this.queryManager.mutationStore || {}\n },\n dataWithOptimisticResults: _this.cache.extract(true)\n });\n } : void 0\n });\n }\n ApolloClient.prototype.stop = function() {\n this.queryManager.stop();\n };\n ApolloClient.prototype.watchQuery = function(options) {\n if (this.defaultOptions.watchQuery) options = mergeOptions(this.defaultOptions.watchQuery, options);\n if (this.disableNetworkFetches && (options.fetchPolicy === \"network-only\" || options.fetchPolicy === \"cache-and-network\")) options = (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n fetchPolicy: \"cache-first\"\n });\n return this.queryManager.watchQuery(options);\n };\n ApolloClient.prototype.query = function(options) {\n if (this.defaultOptions.query) options = mergeOptions(this.defaultOptions.query, options);\n (0, _tsInvariant.invariant)(options.fetchPolicy !== \"cache-and-network\", 10);\n if (this.disableNetworkFetches && options.fetchPolicy === \"network-only\") options = (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n fetchPolicy: \"cache-first\"\n });\n return this.queryManager.query(options);\n };\n ApolloClient.prototype.mutate = function(options) {\n if (this.defaultOptions.mutate) options = mergeOptions(this.defaultOptions.mutate, options);\n return this.queryManager.mutate(options);\n };\n ApolloClient.prototype.subscribe = function(options) {\n return this.queryManager.startGraphQLSubscription(options);\n };\n ApolloClient.prototype.readQuery = function(options, optimistic) {\n if (optimistic === void 0) optimistic = false;\n return this.cache.readQuery(options, optimistic);\n };\n ApolloClient.prototype.readFragment = function(options, optimistic) {\n if (optimistic === void 0) optimistic = false;\n return this.cache.readFragment(options, optimistic);\n };\n ApolloClient.prototype.writeQuery = function(options) {\n this.cache.writeQuery(options);\n this.queryManager.broadcastQueries();\n };\n ApolloClient.prototype.writeFragment = function(options) {\n this.cache.writeFragment(options);\n this.queryManager.broadcastQueries();\n };\n ApolloClient.prototype.__actionHookForDevTools = function(cb) {\n this.devToolsHookCb = cb;\n };\n ApolloClient.prototype.__requestRaw = function(payload) {\n return (0, _indexJs.execute)(this.link, payload);\n };\n ApolloClient.prototype.resetStore = function() {\n var _this = this;\n return Promise.resolve().then(function() {\n return _this.queryManager.clearStore();\n }).then(function() {\n return Promise.all(_this.resetStoreCallbacks.map(function(fn) {\n return fn();\n }));\n }).then(function() {\n return _this.reFetchObservableQueries();\n });\n };\n ApolloClient.prototype.clearStore = function() {\n var _this = this;\n return Promise.resolve().then(function() {\n return _this.queryManager.clearStore();\n }).then(function() {\n return Promise.all(_this.clearStoreCallbacks.map(function(fn) {\n return fn();\n }));\n });\n };\n ApolloClient.prototype.onResetStore = function(cb) {\n var _this = this;\n this.resetStoreCallbacks.push(cb);\n return function() {\n _this.resetStoreCallbacks = _this.resetStoreCallbacks.filter(function(c) {\n return c !== cb;\n });\n };\n };\n ApolloClient.prototype.onClearStore = function(cb) {\n var _this = this;\n this.clearStoreCallbacks.push(cb);\n return function() {\n _this.clearStoreCallbacks = _this.clearStoreCallbacks.filter(function(c) {\n return c !== cb;\n });\n };\n };\n ApolloClient.prototype.reFetchObservableQueries = function(includeStandby) {\n return this.queryManager.reFetchObservableQueries(includeStandby);\n };\n ApolloClient.prototype.extract = function(optimistic) {\n return this.cache.extract(optimistic);\n };\n ApolloClient.prototype.restore = function(serializedState) {\n return this.cache.restore(serializedState);\n };\n ApolloClient.prototype.addResolvers = function(resolvers) {\n this.localState.addResolvers(resolvers);\n };\n ApolloClient.prototype.setResolvers = function(resolvers) {\n this.localState.setResolvers(resolvers);\n };\n ApolloClient.prototype.getResolvers = function() {\n return this.localState.getResolvers();\n };\n ApolloClient.prototype.setLocalStateFragmentMatcher = function(fragmentMatcher) {\n this.localState.setFragmentMatcher(fragmentMatcher);\n };\n ApolloClient.prototype.setLink = function(newLink) {\n this.link = this.queryManager.link = newLink;\n };\n return ApolloClient;\n}();\n\n},{\"tslib\":\"5RODp\",\"ts-invariant\":\"2pI3w\",\"../link/core/index.js\":\"gXJ1R\",\"../utilities/index.js\":\"k55vB\",\"../version.js\":\"7b1d7\",\"../link/http/index.js\":\"6rkPi\",\"./QueryManager.js\":\"gzqpZ\",\"./LocalState.js\":\"9TB6L\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5RODp\":[function(require,module,exports) {\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"__extends\", ()=>__extends);\nparcelHelpers.export(exports, \"__assign\", ()=>__assign);\nparcelHelpers.export(exports, \"__rest\", ()=>__rest);\nparcelHelpers.export(exports, \"__decorate\", ()=>__decorate);\nparcelHelpers.export(exports, \"__param\", ()=>__param);\nparcelHelpers.export(exports, \"__metadata\", ()=>__metadata);\nparcelHelpers.export(exports, \"__awaiter\", ()=>__awaiter);\nparcelHelpers.export(exports, \"__generator\", ()=>__generator);\nparcelHelpers.export(exports, \"__createBinding\", ()=>__createBinding);\nparcelHelpers.export(exports, \"__exportStar\", ()=>__exportStar);\nparcelHelpers.export(exports, \"__values\", ()=>__values);\nparcelHelpers.export(exports, \"__read\", ()=>__read);\nparcelHelpers.export(exports, \"__spread\", ()=>__spread);\nparcelHelpers.export(exports, \"__spreadArrays\", ()=>__spreadArrays);\nparcelHelpers.export(exports, \"__await\", ()=>__await);\nparcelHelpers.export(exports, \"__asyncGenerator\", ()=>__asyncGenerator);\nparcelHelpers.export(exports, \"__asyncDelegator\", ()=>__asyncDelegator);\nparcelHelpers.export(exports, \"__asyncValues\", ()=>__asyncValues);\nparcelHelpers.export(exports, \"__makeTemplateObject\", ()=>__makeTemplateObject);\nparcelHelpers.export(exports, \"__importStar\", ()=>__importStar);\nparcelHelpers.export(exports, \"__importDefault\", ()=>__importDefault);\nparcelHelpers.export(exports, \"__classPrivateFieldGet\", ()=>__classPrivateFieldGet);\nparcelHelpers.export(exports, \"__classPrivateFieldSet\", ()=>__classPrivateFieldSet);\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (b.hasOwnProperty(p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n};\nfunction __extends(d, b) {\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction __param(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(_)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nfunction __createBinding(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}\nfunction __exportStar(m, exports) {\n for(var p in m)if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nfunction __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction __spread() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat(__read(arguments[i]));\n return ar;\n}\nfunction __spreadArrays() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nfunction __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function verb(n) {\n if (g[n]) i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: n === \"return\"\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nfunction __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result.default = mod;\n return result;\n}\nfunction __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction __classPrivateFieldGet(receiver, privateMap) {\n if (!privateMap.has(receiver)) throw new TypeError(\"attempted to get private field on non-instance\");\n return privateMap.get(receiver);\n}\nfunction __classPrivateFieldSet(receiver, privateMap, value) {\n if (!privateMap.has(receiver)) throw new TypeError(\"attempted to set private field on non-instance\");\n privateMap.set(receiver, value);\n return value;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2pI3w\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"InvariantError\", ()=>InvariantError);\nparcelHelpers.export(exports, \"invariant\", ()=>invariant);\nparcelHelpers.export(exports, \"process\", ()=>processStub);\nparcelHelpers.export(exports, \"processStub\", ()=>processStub);\nparcelHelpers.export(exports, \"setVerbosity\", ()=>setVerbosity);\nvar _tslib = require(\"tslib\");\nvar process = require(\"2f79fa36dffc0108\");\nvar genericMessage = \"Invariant Violation\";\nvar _a = Object.setPrototypeOf, setPrototypeOf = _a === void 0 ? function(obj, proto) {\n obj.__proto__ = proto;\n return obj;\n} : _a;\nvar InvariantError = /** @class */ function(_super) {\n (0, _tslib.__extends)(InvariantError, _super);\n function InvariantError(message) {\n if (message === void 0) message = genericMessage;\n var _this = _super.call(this, typeof message === \"number\" ? genericMessage + \": \" + message + \" (see https://github.com/apollographql/invariant-packages)\" : message) || this;\n _this.framesToPop = 1;\n _this.name = genericMessage;\n setPrototypeOf(_this, InvariantError.prototype);\n return _this;\n }\n return InvariantError;\n}(Error);\nfunction invariant(condition, message) {\n if (!condition) throw new InvariantError(message);\n}\nvar verbosityLevels = [\n \"log\",\n \"warn\",\n \"error\",\n \"silent\"\n];\nvar verbosityLevel = verbosityLevels.indexOf(\"log\");\nfunction wrapConsoleMethod(method) {\n return function() {\n if (verbosityLevels.indexOf(method) >= verbosityLevel) return console[method].apply(console, arguments);\n };\n}\n(function(invariant) {\n invariant.log = wrapConsoleMethod(\"log\");\n invariant.warn = wrapConsoleMethod(\"warn\");\n invariant.error = wrapConsoleMethod(\"error\");\n})(invariant || (invariant = {}));\nfunction setVerbosity(level) {\n var old = verbosityLevels[verbosityLevel];\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n return old;\n}\n// Code that uses ts-invariant with rollup-plugin-invariant may want to\n// import this process stub to avoid errors evaluating process.env.NODE_ENV.\n// However, because most ESM-to-CJS compilers will rewrite the process import\n// as tsInvariant.process, which prevents proper replacement by minifiers, we\n// also export processStub, so you can import { invariant, processStub } from\n// \"ts-invariant\" and assign processStub to a local variable named process.\nvar processStub = typeof process === \"object\" && typeof process.env === \"object\" ? process : {\n env: {}\n};\nvar invariant$1 = invariant;\nexports.default = invariant$1;\n\n},{\"2f79fa36dffc0108\":\"5QIF0\",\"tslib\":\"groiZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5QIF0\":[function(require,module,exports) {\n// shim for using process in browser\nvar process = module.exports = {};\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\nvar cachedSetTimeout;\nvar cachedClearTimeout;\nfunction defaultSetTimout() {\n throw new Error(\"setTimeout has not been defined\");\n}\nfunction defaultClearTimeout() {\n throw new Error(\"clearTimeout has not been defined\");\n}\n(function() {\n try {\n if (typeof setTimeout === \"function\") cachedSetTimeout = setTimeout;\n else cachedSetTimeout = defaultSetTimout;\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === \"function\") cachedClearTimeout = clearTimeout;\n else cachedClearTimeout = defaultClearTimeout;\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n})();\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) //normal enviroments in sane situations\n return setTimeout(fun, 0);\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) //normal enviroments in sane situations\n return clearTimeout(marker);\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) return;\n draining = false;\n if (currentQueue.length) queue = currentQueue.concat(queue);\n else queueIndex = -1;\n if (queue.length) drainQueue();\n}\nfunction drainQueue() {\n if (draining) return;\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n while(len){\n currentQueue = queue;\n queue = [];\n while(++queueIndex < len)if (currentQueue) currentQueue[queueIndex].run();\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\nprocess.nextTick = function(fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) for(var i = 1; i < arguments.length; i++)args[i - 1] = arguments[i];\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) runTimeout(drainQueue);\n};\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function() {\n this.fun.apply(null, this.array);\n};\nprocess.title = \"browser\";\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = \"\"; // empty string to avoid regexp issues\nprocess.versions = {};\nfunction noop() {}\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\nprocess.listeners = function(name) {\n return [];\n};\nprocess.binding = function(name) {\n throw new Error(\"process.binding is not supported\");\n};\nprocess.cwd = function() {\n return \"/\";\n};\nprocess.chdir = function(dir) {\n throw new Error(\"process.chdir is not supported\");\n};\nprocess.umask = function() {\n return 0;\n};\n\n},{}],\"groiZ\":[function(require,module,exports) {\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"__extends\", ()=>__extends);\nparcelHelpers.export(exports, \"__assign\", ()=>__assign);\nparcelHelpers.export(exports, \"__rest\", ()=>__rest);\nparcelHelpers.export(exports, \"__decorate\", ()=>__decorate);\nparcelHelpers.export(exports, \"__param\", ()=>__param);\nparcelHelpers.export(exports, \"__metadata\", ()=>__metadata);\nparcelHelpers.export(exports, \"__awaiter\", ()=>__awaiter);\nparcelHelpers.export(exports, \"__generator\", ()=>__generator);\nparcelHelpers.export(exports, \"__createBinding\", ()=>__createBinding);\nparcelHelpers.export(exports, \"__exportStar\", ()=>__exportStar);\nparcelHelpers.export(exports, \"__values\", ()=>__values);\nparcelHelpers.export(exports, \"__read\", ()=>__read);\n/** @deprecated */ parcelHelpers.export(exports, \"__spread\", ()=>__spread);\n/** @deprecated */ parcelHelpers.export(exports, \"__spreadArrays\", ()=>__spreadArrays);\nparcelHelpers.export(exports, \"__spreadArray\", ()=>__spreadArray);\nparcelHelpers.export(exports, \"__await\", ()=>__await);\nparcelHelpers.export(exports, \"__asyncGenerator\", ()=>__asyncGenerator);\nparcelHelpers.export(exports, \"__asyncDelegator\", ()=>__asyncDelegator);\nparcelHelpers.export(exports, \"__asyncValues\", ()=>__asyncValues);\nparcelHelpers.export(exports, \"__makeTemplateObject\", ()=>__makeTemplateObject);\nparcelHelpers.export(exports, \"__importStar\", ()=>__importStar);\nparcelHelpers.export(exports, \"__importDefault\", ()=>__importDefault);\nparcelHelpers.export(exports, \"__classPrivateFieldGet\", ()=>__classPrivateFieldGet);\nparcelHelpers.export(exports, \"__classPrivateFieldSet\", ()=>__classPrivateFieldSet);\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n};\nfunction __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction __param(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(_)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar __createBinding = Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction __exportStar(m, o) {\n for(var p in m)if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nfunction __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction __spread() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat(__read(arguments[i]));\n return ar;\n}\nfunction __spreadArrays() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction __spreadArray(to, from) {\n for(var i = 0, il = from.length, j = to.length; i < il; i++, j++)to[j] = from[i];\n return to;\n}\nfunction __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nfunction __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function verb(n) {\n if (g[n]) i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: n === \"return\"\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nvar __setModuleDefault = Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n};\nfunction __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n }\n __setModuleDefault(result, mod);\n return result;\n}\nfunction __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gXJ1R\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"empty\", ()=>(0, _emptyJs.empty));\nparcelHelpers.export(exports, \"from\", ()=>(0, _fromJs.from));\nparcelHelpers.export(exports, \"split\", ()=>(0, _splitJs.split));\nparcelHelpers.export(exports, \"concat\", ()=>(0, _concatJs.concat));\nparcelHelpers.export(exports, \"execute\", ()=>(0, _executeJs.execute));\nparcelHelpers.export(exports, \"ApolloLink\", ()=>(0, _apolloLinkJs.ApolloLink));\nvar _emptyJs = require(\"./empty.js\");\nvar _fromJs = require(\"./from.js\");\nvar _splitJs = require(\"./split.js\");\nvar _concatJs = require(\"./concat.js\");\nvar _executeJs = require(\"./execute.js\");\nvar _apolloLinkJs = require(\"./ApolloLink.js\");\nvar _typesJs = require(\"./types.js\");\nparcelHelpers.exportAll(_typesJs, exports);\n\n},{\"./empty.js\":\"4er58\",\"./from.js\":\"4imHp\",\"./split.js\":\"eYGav\",\"./concat.js\":\"lgjiZ\",\"./execute.js\":\"iOTkz\",\"./ApolloLink.js\":\"gu1vX\",\"./types.js\":\"8IYYS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4er58\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"empty\", ()=>empty);\nvar _apolloLinkJs = require(\"./ApolloLink.js\");\nvar empty = (0, _apolloLinkJs.ApolloLink).empty;\n\n},{\"./ApolloLink.js\":\"gu1vX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gu1vX\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloLink\", ()=>ApolloLink);\nvar _tslib = require(\"tslib\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar _indexJs1 = require(\"../utils/index.js\");\nfunction passthrough(op, forward) {\n return forward ? forward(op) : (0, _indexJs.Observable).of();\n}\nfunction toLink(handler) {\n return typeof handler === \"function\" ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar LinkError = function(_super) {\n (0, _tslib.__extends)(LinkError, _super);\n function LinkError(message, link) {\n var _this = _super.call(this, message) || this;\n _this.link = link;\n return _this;\n }\n return LinkError;\n}(Error);\nvar ApolloLink = function() {\n function ApolloLink(request) {\n if (request) this.request = request;\n }\n ApolloLink.empty = function() {\n return new ApolloLink(function() {\n return (0, _indexJs.Observable).of();\n });\n };\n ApolloLink.from = function(links) {\n if (links.length === 0) return ApolloLink.empty();\n return links.map(toLink).reduce(function(x, y) {\n return x.concat(y);\n });\n };\n ApolloLink.split = function(test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n if (isTerminating(leftLink) && isTerminating(rightLink)) return new ApolloLink(function(operation) {\n return test(operation) ? leftLink.request(operation) || (0, _indexJs.Observable).of() : rightLink.request(operation) || (0, _indexJs.Observable).of();\n });\n else return new ApolloLink(function(operation, forward) {\n return test(operation) ? leftLink.request(operation, forward) || (0, _indexJs.Observable).of() : rightLink.request(operation, forward) || (0, _indexJs.Observable).of();\n });\n };\n ApolloLink.execute = function(link, operation) {\n return link.request((0, _indexJs1.createOperation)(operation.context, (0, _indexJs1.transformOperation)((0, _indexJs1.validateOperation)(operation)))) || (0, _indexJs.Observable).of();\n };\n ApolloLink.concat = function(first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) return firstLink;\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) return new ApolloLink(function(operation) {\n return firstLink.request(operation, function(op) {\n return nextLink.request(op) || (0, _indexJs.Observable).of();\n }) || (0, _indexJs.Observable).of();\n });\n else return new ApolloLink(function(operation, forward) {\n return firstLink.request(operation, function(op) {\n return nextLink.request(op, forward) || (0, _indexJs.Observable).of();\n }) || (0, _indexJs.Observable).of();\n });\n };\n ApolloLink.prototype.split = function(test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function(next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function(operation, forward) {\n throw new (0, _tsInvariant.InvariantError)(21);\n };\n ApolloLink.prototype.onError = function(error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\n throw error;\n };\n ApolloLink.prototype.setOnError = function(fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}();\n\n},{\"tslib\":\"5RODp\",\"ts-invariant\":\"2pI3w\",\"../../utilities/index.js\":\"k55vB\",\"../utils/index.js\":\"bdwh2\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"k55vB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"shouldInclude\", ()=>(0, _directivesJs.shouldInclude));\nparcelHelpers.export(exports, \"hasDirectives\", ()=>(0, _directivesJs.hasDirectives));\nparcelHelpers.export(exports, \"hasClientExports\", ()=>(0, _directivesJs.hasClientExports));\nparcelHelpers.export(exports, \"getDirectiveNames\", ()=>(0, _directivesJs.getDirectiveNames));\nparcelHelpers.export(exports, \"getInclusionDirectives\", ()=>(0, _directivesJs.getInclusionDirectives));\nparcelHelpers.export(exports, \"createFragmentMap\", ()=>(0, _fragmentsJs.createFragmentMap));\nparcelHelpers.export(exports, \"getFragmentQueryDocument\", ()=>(0, _fragmentsJs.getFragmentQueryDocument));\nparcelHelpers.export(exports, \"getFragmentFromSelection\", ()=>(0, _fragmentsJs.getFragmentFromSelection));\nparcelHelpers.export(exports, \"checkDocument\", ()=>(0, _getFromASTJs.checkDocument));\nparcelHelpers.export(exports, \"getOperationDefinition\", ()=>(0, _getFromASTJs.getOperationDefinition));\nparcelHelpers.export(exports, \"getOperationName\", ()=>(0, _getFromASTJs.getOperationName));\nparcelHelpers.export(exports, \"getFragmentDefinitions\", ()=>(0, _getFromASTJs.getFragmentDefinitions));\nparcelHelpers.export(exports, \"getQueryDefinition\", ()=>(0, _getFromASTJs.getQueryDefinition));\nparcelHelpers.export(exports, \"getFragmentDefinition\", ()=>(0, _getFromASTJs.getFragmentDefinition));\nparcelHelpers.export(exports, \"getMainDefinition\", ()=>(0, _getFromASTJs.getMainDefinition));\nparcelHelpers.export(exports, \"getDefaultValues\", ()=>(0, _getFromASTJs.getDefaultValues));\nparcelHelpers.export(exports, \"makeReference\", ()=>(0, _storeUtilsJs.makeReference));\nparcelHelpers.export(exports, \"isReference\", ()=>(0, _storeUtilsJs.isReference));\nparcelHelpers.export(exports, \"isField\", ()=>(0, _storeUtilsJs.isField));\nparcelHelpers.export(exports, \"isInlineFragment\", ()=>(0, _storeUtilsJs.isInlineFragment));\nparcelHelpers.export(exports, \"valueToObjectRepresentation\", ()=>(0, _storeUtilsJs.valueToObjectRepresentation));\nparcelHelpers.export(exports, \"storeKeyNameFromField\", ()=>(0, _storeUtilsJs.storeKeyNameFromField));\nparcelHelpers.export(exports, \"argumentsObjectFromField\", ()=>(0, _storeUtilsJs.argumentsObjectFromField));\nparcelHelpers.export(exports, \"resultKeyNameFromField\", ()=>(0, _storeUtilsJs.resultKeyNameFromField));\nparcelHelpers.export(exports, \"getStoreKeyName\", ()=>(0, _storeUtilsJs.getStoreKeyName));\nparcelHelpers.export(exports, \"getTypenameFromResult\", ()=>(0, _storeUtilsJs.getTypenameFromResult));\nparcelHelpers.export(exports, \"addTypenameToDocument\", ()=>(0, _transformJs.addTypenameToDocument));\nparcelHelpers.export(exports, \"buildQueryFromSelectionSet\", ()=>(0, _transformJs.buildQueryFromSelectionSet));\nparcelHelpers.export(exports, \"removeDirectivesFromDocument\", ()=>(0, _transformJs.removeDirectivesFromDocument));\nparcelHelpers.export(exports, \"removeConnectionDirectiveFromDocument\", ()=>(0, _transformJs.removeConnectionDirectiveFromDocument));\nparcelHelpers.export(exports, \"removeArgumentsFromDocument\", ()=>(0, _transformJs.removeArgumentsFromDocument));\nparcelHelpers.export(exports, \"removeFragmentSpreadFromDocument\", ()=>(0, _transformJs.removeFragmentSpreadFromDocument));\nparcelHelpers.export(exports, \"removeClientSetsFromDocument\", ()=>(0, _transformJs.removeClientSetsFromDocument));\nparcelHelpers.export(exports, \"concatPagination\", ()=>(0, _paginationJs.concatPagination));\nparcelHelpers.export(exports, \"offsetLimitPagination\", ()=>(0, _paginationJs.offsetLimitPagination));\nparcelHelpers.export(exports, \"relayStylePagination\", ()=>(0, _paginationJs.relayStylePagination));\nparcelHelpers.export(exports, \"Observable\", ()=>(0, _observableJs.Observable));\nvar _directivesJs = require(\"./graphql/directives.js\");\nvar _fragmentsJs = require(\"./graphql/fragments.js\");\nvar _getFromASTJs = require(\"./graphql/getFromAST.js\");\nvar _storeUtilsJs = require(\"./graphql/storeUtils.js\");\nvar _transformJs = require(\"./graphql/transform.js\");\nvar _paginationJs = require(\"./policies/pagination.js\");\nvar _observableJs = require(\"./observables/Observable.js\");\nvar _mergeDeepJs = require(\"./common/mergeDeep.js\");\nparcelHelpers.exportAll(_mergeDeepJs, exports);\nvar _cloneDeepJs = require(\"./common/cloneDeep.js\");\nparcelHelpers.exportAll(_cloneDeepJs, exports);\nvar _maybeDeepFreezeJs = require(\"./common/maybeDeepFreeze.js\");\nparcelHelpers.exportAll(_maybeDeepFreezeJs, exports);\nvar _iterationJs = require(\"./observables/iteration.js\");\nparcelHelpers.exportAll(_iterationJs, exports);\nvar _asyncMapJs = require(\"./observables/asyncMap.js\");\nparcelHelpers.exportAll(_asyncMapJs, exports);\nvar _concastJs = require(\"./observables/Concast.js\");\nparcelHelpers.exportAll(_concastJs, exports);\nvar _subclassingJs = require(\"./observables/subclassing.js\");\nparcelHelpers.exportAll(_subclassingJs, exports);\nvar _arraysJs = require(\"./common/arrays.js\");\nparcelHelpers.exportAll(_arraysJs, exports);\nvar _errorHandlingJs = require(\"./common/errorHandling.js\");\nparcelHelpers.exportAll(_errorHandlingJs, exports);\nvar _canUseJs = require(\"./common/canUse.js\");\nparcelHelpers.exportAll(_canUseJs, exports);\nvar _compactJs = require(\"./common/compact.js\");\nparcelHelpers.exportAll(_compactJs, exports);\n\n},{\"./graphql/directives.js\":\"91pbl\",\"./graphql/fragments.js\":\"ihq4t\",\"./graphql/getFromAST.js\":\"2MXZ3\",\"./graphql/storeUtils.js\":\"fVqew\",\"./graphql/transform.js\":\"kI1pM\",\"./policies/pagination.js\":\"8aYfi\",\"./observables/Observable.js\":\"jbiGu\",\"./common/mergeDeep.js\":\"3DI7j\",\"./common/cloneDeep.js\":\"hbHBs\",\"./common/maybeDeepFreeze.js\":\"739CY\",\"./observables/iteration.js\":\"8Yve4\",\"./observables/asyncMap.js\":\"gwUgI\",\"./observables/Concast.js\":\"gSTlz\",\"./observables/subclassing.js\":\"apAKh\",\"./common/arrays.js\":\"b8nAm\",\"./common/errorHandling.js\":\"gjlhw\",\"./common/canUse.js\":\"5l5O1\",\"./common/compact.js\":\"38rYW\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"91pbl\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"shouldInclude\", ()=>shouldInclude);\nparcelHelpers.export(exports, \"getDirectiveNames\", ()=>getDirectiveNames);\nparcelHelpers.export(exports, \"hasDirectives\", ()=>hasDirectives);\nparcelHelpers.export(exports, \"hasClientExports\", ()=>hasClientExports);\nparcelHelpers.export(exports, \"getInclusionDirectives\", ()=>getInclusionDirectives);\nvar _graphql = require(\"graphql\");\nvar _tsInvariant = require(\"ts-invariant\");\nfunction shouldInclude(_a, variables) {\n var directives = _a.directives;\n if (!directives || !directives.length) return true;\n return getInclusionDirectives(directives).every(function(_a) {\n var directive = _a.directive, ifArgument = _a.ifArgument;\n var evaledValue = false;\n if (ifArgument.value.kind === \"Variable\") {\n evaledValue = variables && variables[ifArgument.value.name.value];\n (0, _tsInvariant.invariant)(evaledValue !== void 0, 38);\n } else evaledValue = ifArgument.value.value;\n return directive.name.value === \"skip\" ? !evaledValue : evaledValue;\n });\n}\nfunction getDirectiveNames(root) {\n var names = [];\n (0, _graphql.visit)(root, {\n Directive: function(node) {\n names.push(node.name.value);\n }\n });\n return names;\n}\nfunction hasDirectives(names, root) {\n return getDirectiveNames(root).some(function(name) {\n return names.indexOf(name) > -1;\n });\n}\nfunction hasClientExports(document) {\n return document && hasDirectives([\n \"client\"\n ], document) && hasDirectives([\n \"export\"\n ], document);\n}\nfunction isInclusionDirective(_a) {\n var value = _a.name.value;\n return value === \"skip\" || value === \"include\";\n}\nfunction getInclusionDirectives(directives) {\n var result = [];\n if (directives && directives.length) directives.forEach(function(directive) {\n if (!isInclusionDirective(directive)) return;\n var directiveArguments = directive.arguments;\n var directiveName = directive.name.value;\n (0, _tsInvariant.invariant)(directiveArguments && directiveArguments.length === 1, 39);\n var ifArgument = directiveArguments[0];\n (0, _tsInvariant.invariant)(ifArgument.name && ifArgument.name.value === \"if\", 40);\n var ifValue = ifArgument.value;\n (0, _tsInvariant.invariant)(ifValue && (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\"), 41);\n result.push({\n directive: directive,\n ifArgument: ifArgument\n });\n });\n return result;\n}\n\n},{\"graphql\":\"crWS5\",\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"crWS5\":[function(require,module,exports) {\n/**\n * GraphQL.js provides a reference implementation for the GraphQL specification\n * but is also a useful utility for operating on GraphQL files and building\n * sophisticated tools.\n *\n * This primary module exports a general purpose function for fulfilling all\n * steps of the GraphQL specification in a single operation, but also includes\n * utilities for every part of the GraphQL specification:\n *\n * - Parsing the GraphQL language.\n * - Building a GraphQL type schema.\n * - Validating a GraphQL request against a type schema.\n * - Executing a GraphQL request against a type schema.\n *\n * This also includes utility functions for operating on GraphQL types and\n * GraphQL documents to facilitate building tools.\n *\n * You may also import from each sub-directory directly. For example, the\n * following two import statements are equivalent:\n *\n * import { parse } from 'graphql';\n * import { parse } from 'graphql/language';\n */ // The GraphQL.js version info.\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"version\", ()=>(0, _versionMjs.version)) // The primary entry point into fulfilling a GraphQL request.\n;\nparcelHelpers.export(exports, \"versionInfo\", ()=>(0, _versionMjs.versionInfo));\nparcelHelpers.export(exports, \"graphql\", ()=>(0, _graphqlMjs.graphql)) // Create and operate on GraphQL type definitions and schema.\n;\nparcelHelpers.export(exports, \"graphqlSync\", ()=>(0, _graphqlMjs.graphqlSync));\nparcelHelpers.export(exports, \"GraphQLSchema\", ()=>(0, _indexMjs.GraphQLSchema));\nparcelHelpers.export(exports, \"GraphQLDirective\", ()=>(0, _indexMjs.GraphQLDirective));\nparcelHelpers.export(exports, \"GraphQLScalarType\", ()=>(0, _indexMjs.GraphQLScalarType));\nparcelHelpers.export(exports, \"GraphQLObjectType\", ()=>(0, _indexMjs.GraphQLObjectType));\nparcelHelpers.export(exports, \"GraphQLInterfaceType\", ()=>(0, _indexMjs.GraphQLInterfaceType));\nparcelHelpers.export(exports, \"GraphQLUnionType\", ()=>(0, _indexMjs.GraphQLUnionType));\nparcelHelpers.export(exports, \"GraphQLEnumType\", ()=>(0, _indexMjs.GraphQLEnumType));\nparcelHelpers.export(exports, \"GraphQLInputObjectType\", ()=>(0, _indexMjs.GraphQLInputObjectType));\nparcelHelpers.export(exports, \"GraphQLList\", ()=>(0, _indexMjs.GraphQLList));\nparcelHelpers.export(exports, \"GraphQLNonNull\", ()=>(0, _indexMjs.GraphQLNonNull));\nparcelHelpers.export(exports, \"specifiedScalarTypes\", ()=>(0, _indexMjs.specifiedScalarTypes));\nparcelHelpers.export(exports, \"GraphQLInt\", ()=>(0, _indexMjs.GraphQLInt));\nparcelHelpers.export(exports, \"GraphQLFloat\", ()=>(0, _indexMjs.GraphQLFloat));\nparcelHelpers.export(exports, \"GraphQLString\", ()=>(0, _indexMjs.GraphQLString));\nparcelHelpers.export(exports, \"GraphQLBoolean\", ()=>(0, _indexMjs.GraphQLBoolean));\nparcelHelpers.export(exports, \"GraphQLID\", ()=>(0, _indexMjs.GraphQLID));\nparcelHelpers.export(exports, \"specifiedDirectives\", ()=>(0, _indexMjs.specifiedDirectives));\nparcelHelpers.export(exports, \"GraphQLIncludeDirective\", ()=>(0, _indexMjs.GraphQLIncludeDirective));\nparcelHelpers.export(exports, \"GraphQLSkipDirective\", ()=>(0, _indexMjs.GraphQLSkipDirective));\nparcelHelpers.export(exports, \"GraphQLDeprecatedDirective\", ()=>(0, _indexMjs.GraphQLDeprecatedDirective));\nparcelHelpers.export(exports, \"GraphQLSpecifiedByDirective\", ()=>(0, _indexMjs.GraphQLSpecifiedByDirective));\nparcelHelpers.export(exports, \"TypeKind\", ()=>(0, _indexMjs.TypeKind));\nparcelHelpers.export(exports, \"DEFAULT_DEPRECATION_REASON\", ()=>(0, _indexMjs.DEFAULT_DEPRECATION_REASON));\nparcelHelpers.export(exports, \"introspectionTypes\", ()=>(0, _indexMjs.introspectionTypes));\nparcelHelpers.export(exports, \"__Schema\", ()=>(0, _indexMjs.__Schema));\nparcelHelpers.export(exports, \"__Directive\", ()=>(0, _indexMjs.__Directive));\nparcelHelpers.export(exports, \"__DirectiveLocation\", ()=>(0, _indexMjs.__DirectiveLocation));\nparcelHelpers.export(exports, \"__Type\", ()=>(0, _indexMjs.__Type));\nparcelHelpers.export(exports, \"__Field\", ()=>(0, _indexMjs.__Field));\nparcelHelpers.export(exports, \"__InputValue\", ()=>(0, _indexMjs.__InputValue));\nparcelHelpers.export(exports, \"__EnumValue\", ()=>(0, _indexMjs.__EnumValue));\nparcelHelpers.export(exports, \"__TypeKind\", ()=>(0, _indexMjs.__TypeKind));\nparcelHelpers.export(exports, \"SchemaMetaFieldDef\", ()=>(0, _indexMjs.SchemaMetaFieldDef));\nparcelHelpers.export(exports, \"TypeMetaFieldDef\", ()=>(0, _indexMjs.TypeMetaFieldDef));\nparcelHelpers.export(exports, \"TypeNameMetaFieldDef\", ()=>(0, _indexMjs.TypeNameMetaFieldDef));\nparcelHelpers.export(exports, \"isSchema\", ()=>(0, _indexMjs.isSchema));\nparcelHelpers.export(exports, \"isDirective\", ()=>(0, _indexMjs.isDirective));\nparcelHelpers.export(exports, \"isType\", ()=>(0, _indexMjs.isType));\nparcelHelpers.export(exports, \"isScalarType\", ()=>(0, _indexMjs.isScalarType));\nparcelHelpers.export(exports, \"isObjectType\", ()=>(0, _indexMjs.isObjectType));\nparcelHelpers.export(exports, \"isInterfaceType\", ()=>(0, _indexMjs.isInterfaceType));\nparcelHelpers.export(exports, \"isUnionType\", ()=>(0, _indexMjs.isUnionType));\nparcelHelpers.export(exports, \"isEnumType\", ()=>(0, _indexMjs.isEnumType));\nparcelHelpers.export(exports, \"isInputObjectType\", ()=>(0, _indexMjs.isInputObjectType));\nparcelHelpers.export(exports, \"isListType\", ()=>(0, _indexMjs.isListType));\nparcelHelpers.export(exports, \"isNonNullType\", ()=>(0, _indexMjs.isNonNullType));\nparcelHelpers.export(exports, \"isInputType\", ()=>(0, _indexMjs.isInputType));\nparcelHelpers.export(exports, \"isOutputType\", ()=>(0, _indexMjs.isOutputType));\nparcelHelpers.export(exports, \"isLeafType\", ()=>(0, _indexMjs.isLeafType));\nparcelHelpers.export(exports, \"isCompositeType\", ()=>(0, _indexMjs.isCompositeType));\nparcelHelpers.export(exports, \"isAbstractType\", ()=>(0, _indexMjs.isAbstractType));\nparcelHelpers.export(exports, \"isWrappingType\", ()=>(0, _indexMjs.isWrappingType));\nparcelHelpers.export(exports, \"isNullableType\", ()=>(0, _indexMjs.isNullableType));\nparcelHelpers.export(exports, \"isNamedType\", ()=>(0, _indexMjs.isNamedType));\nparcelHelpers.export(exports, \"isRequiredArgument\", ()=>(0, _indexMjs.isRequiredArgument));\nparcelHelpers.export(exports, \"isRequiredInputField\", ()=>(0, _indexMjs.isRequiredInputField));\nparcelHelpers.export(exports, \"isSpecifiedScalarType\", ()=>(0, _indexMjs.isSpecifiedScalarType));\nparcelHelpers.export(exports, \"isIntrospectionType\", ()=>(0, _indexMjs.isIntrospectionType));\nparcelHelpers.export(exports, \"isSpecifiedDirective\", ()=>(0, _indexMjs.isSpecifiedDirective));\nparcelHelpers.export(exports, \"assertSchema\", ()=>(0, _indexMjs.assertSchema));\nparcelHelpers.export(exports, \"assertDirective\", ()=>(0, _indexMjs.assertDirective));\nparcelHelpers.export(exports, \"assertType\", ()=>(0, _indexMjs.assertType));\nparcelHelpers.export(exports, \"assertScalarType\", ()=>(0, _indexMjs.assertScalarType));\nparcelHelpers.export(exports, \"assertObjectType\", ()=>(0, _indexMjs.assertObjectType));\nparcelHelpers.export(exports, \"assertInterfaceType\", ()=>(0, _indexMjs.assertInterfaceType));\nparcelHelpers.export(exports, \"assertUnionType\", ()=>(0, _indexMjs.assertUnionType));\nparcelHelpers.export(exports, \"assertEnumType\", ()=>(0, _indexMjs.assertEnumType));\nparcelHelpers.export(exports, \"assertInputObjectType\", ()=>(0, _indexMjs.assertInputObjectType));\nparcelHelpers.export(exports, \"assertListType\", ()=>(0, _indexMjs.assertListType));\nparcelHelpers.export(exports, \"assertNonNullType\", ()=>(0, _indexMjs.assertNonNullType));\nparcelHelpers.export(exports, \"assertInputType\", ()=>(0, _indexMjs.assertInputType));\nparcelHelpers.export(exports, \"assertOutputType\", ()=>(0, _indexMjs.assertOutputType));\nparcelHelpers.export(exports, \"assertLeafType\", ()=>(0, _indexMjs.assertLeafType));\nparcelHelpers.export(exports, \"assertCompositeType\", ()=>(0, _indexMjs.assertCompositeType));\nparcelHelpers.export(exports, \"assertAbstractType\", ()=>(0, _indexMjs.assertAbstractType));\nparcelHelpers.export(exports, \"assertWrappingType\", ()=>(0, _indexMjs.assertWrappingType));\nparcelHelpers.export(exports, \"assertNullableType\", ()=>(0, _indexMjs.assertNullableType));\nparcelHelpers.export(exports, \"assertNamedType\", ()=>(0, _indexMjs.assertNamedType));\nparcelHelpers.export(exports, \"getNullableType\", ()=>(0, _indexMjs.getNullableType));\nparcelHelpers.export(exports, \"getNamedType\", ()=>(0, _indexMjs.getNamedType));\nparcelHelpers.export(exports, \"validateSchema\", ()=>(0, _indexMjs.validateSchema));\nparcelHelpers.export(exports, \"assertValidSchema\", ()=>(0, _indexMjs.assertValidSchema));\n// Parse and operate on GraphQL language source files.\nparcelHelpers.export(exports, \"Token\", ()=>(0, _indexMjs1.Token));\nparcelHelpers.export(exports, \"Source\", ()=>(0, _indexMjs1.Source));\nparcelHelpers.export(exports, \"Location\", ()=>(0, _indexMjs1.Location));\nparcelHelpers.export(exports, \"getLocation\", ()=>(0, _indexMjs1.getLocation));\nparcelHelpers.export(exports, \"printLocation\", ()=>(0, _indexMjs1.printLocation));\nparcelHelpers.export(exports, \"printSourceLocation\", ()=>(0, _indexMjs1.printSourceLocation));\nparcelHelpers.export(exports, \"Lexer\", ()=>(0, _indexMjs1.Lexer));\nparcelHelpers.export(exports, \"TokenKind\", ()=>(0, _indexMjs1.TokenKind));\nparcelHelpers.export(exports, \"parse\", ()=>(0, _indexMjs1.parse));\nparcelHelpers.export(exports, \"parseValue\", ()=>(0, _indexMjs1.parseValue));\nparcelHelpers.export(exports, \"parseType\", ()=>(0, _indexMjs1.parseType));\nparcelHelpers.export(exports, \"print\", ()=>(0, _indexMjs1.print));\nparcelHelpers.export(exports, \"visit\", ()=>(0, _indexMjs1.visit));\nparcelHelpers.export(exports, \"visitInParallel\", ()=>(0, _indexMjs1.visitInParallel));\nparcelHelpers.export(exports, \"getVisitFn\", ()=>(0, _indexMjs1.getVisitFn));\nparcelHelpers.export(exports, \"BREAK\", ()=>(0, _indexMjs1.BREAK));\nparcelHelpers.export(exports, \"Kind\", ()=>(0, _indexMjs1.Kind));\nparcelHelpers.export(exports, \"DirectiveLocation\", ()=>(0, _indexMjs1.DirectiveLocation));\nparcelHelpers.export(exports, \"isDefinitionNode\", ()=>(0, _indexMjs1.isDefinitionNode));\nparcelHelpers.export(exports, \"isExecutableDefinitionNode\", ()=>(0, _indexMjs1.isExecutableDefinitionNode));\nparcelHelpers.export(exports, \"isSelectionNode\", ()=>(0, _indexMjs1.isSelectionNode));\nparcelHelpers.export(exports, \"isValueNode\", ()=>(0, _indexMjs1.isValueNode));\nparcelHelpers.export(exports, \"isTypeNode\", ()=>(0, _indexMjs1.isTypeNode));\nparcelHelpers.export(exports, \"isTypeSystemDefinitionNode\", ()=>(0, _indexMjs1.isTypeSystemDefinitionNode));\nparcelHelpers.export(exports, \"isTypeDefinitionNode\", ()=>(0, _indexMjs1.isTypeDefinitionNode));\nparcelHelpers.export(exports, \"isTypeSystemExtensionNode\", ()=>(0, _indexMjs1.isTypeSystemExtensionNode));\nparcelHelpers.export(exports, \"isTypeExtensionNode\", ()=>(0, _indexMjs1.isTypeExtensionNode));\n// Execute GraphQL queries.\nparcelHelpers.export(exports, \"execute\", ()=>(0, _indexMjs2.execute));\nparcelHelpers.export(exports, \"executeSync\", ()=>(0, _indexMjs2.executeSync));\nparcelHelpers.export(exports, \"defaultFieldResolver\", ()=>(0, _indexMjs2.defaultFieldResolver));\nparcelHelpers.export(exports, \"defaultTypeResolver\", ()=>(0, _indexMjs2.defaultTypeResolver));\nparcelHelpers.export(exports, \"responsePathAsArray\", ()=>(0, _indexMjs2.responsePathAsArray));\nparcelHelpers.export(exports, \"getDirectiveValues\", ()=>(0, _indexMjs2.getDirectiveValues));\nparcelHelpers.export(exports, \"subscribe\", ()=>(0, _indexMjs3.subscribe));\nparcelHelpers.export(exports, \"createSourceEventStream\", ()=>(0, _indexMjs3.createSourceEventStream));\n// Validate GraphQL documents.\nparcelHelpers.export(exports, \"validate\", ()=>(0, _indexMjs4.validate));\nparcelHelpers.export(exports, \"ValidationContext\", ()=>(0, _indexMjs4.ValidationContext));\nparcelHelpers.export(exports, \"specifiedRules\", ()=>(0, _indexMjs4.specifiedRules));\nparcelHelpers.export(exports, \"ExecutableDefinitionsRule\", ()=>(0, _indexMjs4.ExecutableDefinitionsRule));\nparcelHelpers.export(exports, \"FieldsOnCorrectTypeRule\", ()=>(0, _indexMjs4.FieldsOnCorrectTypeRule));\nparcelHelpers.export(exports, \"FragmentsOnCompositeTypesRule\", ()=>(0, _indexMjs4.FragmentsOnCompositeTypesRule));\nparcelHelpers.export(exports, \"KnownArgumentNamesRule\", ()=>(0, _indexMjs4.KnownArgumentNamesRule));\nparcelHelpers.export(exports, \"KnownDirectivesRule\", ()=>(0, _indexMjs4.KnownDirectivesRule));\nparcelHelpers.export(exports, \"KnownFragmentNamesRule\", ()=>(0, _indexMjs4.KnownFragmentNamesRule));\nparcelHelpers.export(exports, \"KnownTypeNamesRule\", ()=>(0, _indexMjs4.KnownTypeNamesRule));\nparcelHelpers.export(exports, \"LoneAnonymousOperationRule\", ()=>(0, _indexMjs4.LoneAnonymousOperationRule));\nparcelHelpers.export(exports, \"NoFragmentCyclesRule\", ()=>(0, _indexMjs4.NoFragmentCyclesRule));\nparcelHelpers.export(exports, \"NoUndefinedVariablesRule\", ()=>(0, _indexMjs4.NoUndefinedVariablesRule));\nparcelHelpers.export(exports, \"NoUnusedFragmentsRule\", ()=>(0, _indexMjs4.NoUnusedFragmentsRule));\nparcelHelpers.export(exports, \"NoUnusedVariablesRule\", ()=>(0, _indexMjs4.NoUnusedVariablesRule));\nparcelHelpers.export(exports, \"OverlappingFieldsCanBeMergedRule\", ()=>(0, _indexMjs4.OverlappingFieldsCanBeMergedRule));\nparcelHelpers.export(exports, \"PossibleFragmentSpreadsRule\", ()=>(0, _indexMjs4.PossibleFragmentSpreadsRule));\nparcelHelpers.export(exports, \"ProvidedRequiredArgumentsRule\", ()=>(0, _indexMjs4.ProvidedRequiredArgumentsRule));\nparcelHelpers.export(exports, \"ScalarLeafsRule\", ()=>(0, _indexMjs4.ScalarLeafsRule));\nparcelHelpers.export(exports, \"SingleFieldSubscriptionsRule\", ()=>(0, _indexMjs4.SingleFieldSubscriptionsRule));\nparcelHelpers.export(exports, \"UniqueArgumentNamesRule\", ()=>(0, _indexMjs4.UniqueArgumentNamesRule));\nparcelHelpers.export(exports, \"UniqueDirectivesPerLocationRule\", ()=>(0, _indexMjs4.UniqueDirectivesPerLocationRule));\nparcelHelpers.export(exports, \"UniqueFragmentNamesRule\", ()=>(0, _indexMjs4.UniqueFragmentNamesRule));\nparcelHelpers.export(exports, \"UniqueInputFieldNamesRule\", ()=>(0, _indexMjs4.UniqueInputFieldNamesRule));\nparcelHelpers.export(exports, \"UniqueOperationNamesRule\", ()=>(0, _indexMjs4.UniqueOperationNamesRule));\nparcelHelpers.export(exports, \"UniqueVariableNamesRule\", ()=>(0, _indexMjs4.UniqueVariableNamesRule));\nparcelHelpers.export(exports, \"ValuesOfCorrectTypeRule\", ()=>(0, _indexMjs4.ValuesOfCorrectTypeRule));\nparcelHelpers.export(exports, \"VariablesAreInputTypesRule\", ()=>(0, _indexMjs4.VariablesAreInputTypesRule));\nparcelHelpers.export(exports, \"VariablesInAllowedPositionRule\", ()=>(0, _indexMjs4.VariablesInAllowedPositionRule));\nparcelHelpers.export(exports, \"LoneSchemaDefinitionRule\", ()=>(0, _indexMjs4.LoneSchemaDefinitionRule));\nparcelHelpers.export(exports, \"UniqueOperationTypesRule\", ()=>(0, _indexMjs4.UniqueOperationTypesRule));\nparcelHelpers.export(exports, \"UniqueTypeNamesRule\", ()=>(0, _indexMjs4.UniqueTypeNamesRule));\nparcelHelpers.export(exports, \"UniqueEnumValueNamesRule\", ()=>(0, _indexMjs4.UniqueEnumValueNamesRule));\nparcelHelpers.export(exports, \"UniqueFieldDefinitionNamesRule\", ()=>(0, _indexMjs4.UniqueFieldDefinitionNamesRule));\nparcelHelpers.export(exports, \"UniqueDirectiveNamesRule\", ()=>(0, _indexMjs4.UniqueDirectiveNamesRule));\nparcelHelpers.export(exports, \"PossibleTypeExtensionsRule\", ()=>(0, _indexMjs4.PossibleTypeExtensionsRule));\nparcelHelpers.export(exports, \"NoDeprecatedCustomRule\", ()=>(0, _indexMjs4.NoDeprecatedCustomRule));\nparcelHelpers.export(exports, \"NoSchemaIntrospectionCustomRule\", ()=>(0, _indexMjs4.NoSchemaIntrospectionCustomRule));\n// Create, format, and print GraphQL errors.\nparcelHelpers.export(exports, \"GraphQLError\", ()=>(0, _indexMjs5.GraphQLError));\nparcelHelpers.export(exports, \"syntaxError\", ()=>(0, _indexMjs5.syntaxError));\nparcelHelpers.export(exports, \"locatedError\", ()=>(0, _indexMjs5.locatedError));\nparcelHelpers.export(exports, \"printError\", ()=>(0, _indexMjs5.printError));\nparcelHelpers.export(exports, \"formatError\", ()=>(0, _indexMjs5.formatError));\n// Utilities for operating on GraphQL type schema and parsed sources.\nparcelHelpers.export(exports, \"getIntrospectionQuery\", ()=>(0, _indexMjs6.getIntrospectionQuery));\nparcelHelpers.export(exports, \"getOperationAST\", ()=>(0, _indexMjs6.getOperationAST));\nparcelHelpers.export(exports, \"getOperationRootType\", ()=>(0, _indexMjs6.getOperationRootType));\nparcelHelpers.export(exports, \"introspectionFromSchema\", ()=>(0, _indexMjs6.introspectionFromSchema));\nparcelHelpers.export(exports, \"buildClientSchema\", ()=>(0, _indexMjs6.buildClientSchema));\nparcelHelpers.export(exports, \"buildASTSchema\", ()=>(0, _indexMjs6.buildASTSchema));\nparcelHelpers.export(exports, \"buildSchema\", ()=>(0, _indexMjs6.buildSchema));\nparcelHelpers.export(exports, \"getDescription\", ()=>(0, _indexMjs6.getDescription));\nparcelHelpers.export(exports, \"extendSchema\", ()=>(0, _indexMjs6.extendSchema));\nparcelHelpers.export(exports, \"lexicographicSortSchema\", ()=>(0, _indexMjs6.lexicographicSortSchema));\nparcelHelpers.export(exports, \"printSchema\", ()=>(0, _indexMjs6.printSchema));\nparcelHelpers.export(exports, \"printType\", ()=>(0, _indexMjs6.printType));\nparcelHelpers.export(exports, \"printIntrospectionSchema\", ()=>(0, _indexMjs6.printIntrospectionSchema));\nparcelHelpers.export(exports, \"typeFromAST\", ()=>(0, _indexMjs6.typeFromAST));\nparcelHelpers.export(exports, \"valueFromAST\", ()=>(0, _indexMjs6.valueFromAST));\nparcelHelpers.export(exports, \"valueFromASTUntyped\", ()=>(0, _indexMjs6.valueFromASTUntyped));\nparcelHelpers.export(exports, \"astFromValue\", ()=>(0, _indexMjs6.astFromValue));\nparcelHelpers.export(exports, \"TypeInfo\", ()=>(0, _indexMjs6.TypeInfo));\nparcelHelpers.export(exports, \"visitWithTypeInfo\", ()=>(0, _indexMjs6.visitWithTypeInfo));\nparcelHelpers.export(exports, \"coerceInputValue\", ()=>(0, _indexMjs6.coerceInputValue));\nparcelHelpers.export(exports, \"concatAST\", ()=>(0, _indexMjs6.concatAST));\nparcelHelpers.export(exports, \"separateOperations\", ()=>(0, _indexMjs6.separateOperations));\nparcelHelpers.export(exports, \"stripIgnoredCharacters\", ()=>(0, _indexMjs6.stripIgnoredCharacters));\nparcelHelpers.export(exports, \"isEqualType\", ()=>(0, _indexMjs6.isEqualType));\nparcelHelpers.export(exports, \"isTypeSubTypeOf\", ()=>(0, _indexMjs6.isTypeSubTypeOf));\nparcelHelpers.export(exports, \"doTypesOverlap\", ()=>(0, _indexMjs6.doTypesOverlap));\nparcelHelpers.export(exports, \"assertValidName\", ()=>(0, _indexMjs6.assertValidName));\nparcelHelpers.export(exports, \"isValidNameError\", ()=>(0, _indexMjs6.isValidNameError));\nparcelHelpers.export(exports, \"BreakingChangeType\", ()=>(0, _indexMjs6.BreakingChangeType));\nparcelHelpers.export(exports, \"DangerousChangeType\", ()=>(0, _indexMjs6.DangerousChangeType));\nparcelHelpers.export(exports, \"findBreakingChanges\", ()=>(0, _indexMjs6.findBreakingChanges));\nparcelHelpers.export(exports, \"findDangerousChanges\", ()=>(0, _indexMjs6.findDangerousChanges));\nparcelHelpers.export(exports, \"findDeprecatedUsages\", ()=>(0, _indexMjs6.findDeprecatedUsages));\nvar _versionMjs = require(\"./version.mjs\");\nvar _graphqlMjs = require(\"./graphql.mjs\");\nvar _indexMjs = require(\"./type/index.mjs\");\nvar _indexMjs1 = require(\"./language/index.mjs\");\nvar _indexMjs2 = require(\"./execution/index.mjs\");\nvar _indexMjs3 = require(\"./subscription/index.mjs\");\nvar _indexMjs4 = require(\"./validation/index.mjs\");\nvar _indexMjs5 = require(\"./error/index.mjs\");\nvar _indexMjs6 = require(\"./utilities/index.mjs\");\n\n},{\"./version.mjs\":false,\"./graphql.mjs\":false,\"./type/index.mjs\":false,\"./language/index.mjs\":\"aRjPy\",\"./execution/index.mjs\":false,\"./subscription/index.mjs\":false,\"./validation/index.mjs\":false,\"./error/index.mjs\":false,\"./utilities/index.mjs\":false,\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aRjPy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Source\", ()=>(0, _sourceMjs.Source));\nparcelHelpers.export(exports, \"getLocation\", ()=>(0, _locationMjs.getLocation));\nparcelHelpers.export(exports, \"printLocation\", ()=>(0, _printLocationMjs.printLocation));\nparcelHelpers.export(exports, \"printSourceLocation\", ()=>(0, _printLocationMjs.printSourceLocation));\nparcelHelpers.export(exports, \"Kind\", ()=>(0, _kindsMjs.Kind));\nparcelHelpers.export(exports, \"TokenKind\", ()=>(0, _tokenKindMjs.TokenKind));\nparcelHelpers.export(exports, \"Lexer\", ()=>(0, _lexerMjs.Lexer));\nparcelHelpers.export(exports, \"parse\", ()=>(0, _parserMjs.parse));\nparcelHelpers.export(exports, \"parseValue\", ()=>(0, _parserMjs.parseValue));\nparcelHelpers.export(exports, \"parseType\", ()=>(0, _parserMjs.parseType));\nparcelHelpers.export(exports, \"print\", ()=>(0, _printerMjs.print));\nparcelHelpers.export(exports, \"visit\", ()=>(0, _visitorMjs.visit));\nparcelHelpers.export(exports, \"visitInParallel\", ()=>(0, _visitorMjs.visitInParallel));\nparcelHelpers.export(exports, \"getVisitFn\", ()=>(0, _visitorMjs.getVisitFn));\nparcelHelpers.export(exports, \"BREAK\", ()=>(0, _visitorMjs.BREAK));\nparcelHelpers.export(exports, \"Location\", ()=>(0, _astMjs.Location));\nparcelHelpers.export(exports, \"Token\", ()=>(0, _astMjs.Token));\nparcelHelpers.export(exports, \"isDefinitionNode\", ()=>(0, _predicatesMjs.isDefinitionNode));\nparcelHelpers.export(exports, \"isExecutableDefinitionNode\", ()=>(0, _predicatesMjs.isExecutableDefinitionNode));\nparcelHelpers.export(exports, \"isSelectionNode\", ()=>(0, _predicatesMjs.isSelectionNode));\nparcelHelpers.export(exports, \"isValueNode\", ()=>(0, _predicatesMjs.isValueNode));\nparcelHelpers.export(exports, \"isTypeNode\", ()=>(0, _predicatesMjs.isTypeNode));\nparcelHelpers.export(exports, \"isTypeSystemDefinitionNode\", ()=>(0, _predicatesMjs.isTypeSystemDefinitionNode));\nparcelHelpers.export(exports, \"isTypeDefinitionNode\", ()=>(0, _predicatesMjs.isTypeDefinitionNode));\nparcelHelpers.export(exports, \"isTypeSystemExtensionNode\", ()=>(0, _predicatesMjs.isTypeSystemExtensionNode));\nparcelHelpers.export(exports, \"isTypeExtensionNode\", ()=>(0, _predicatesMjs.isTypeExtensionNode));\nparcelHelpers.export(exports, \"DirectiveLocation\", ()=>(0, _directiveLocationMjs.DirectiveLocation));\nvar _sourceMjs = require(\"./source.mjs\");\nvar _locationMjs = require(\"./location.mjs\");\nvar _printLocationMjs = require(\"./printLocation.mjs\");\nvar _kindsMjs = require(\"./kinds.mjs\");\nvar _tokenKindMjs = require(\"./tokenKind.mjs\");\nvar _lexerMjs = require(\"./lexer.mjs\");\nvar _parserMjs = require(\"./parser.mjs\");\nvar _printerMjs = require(\"./printer.mjs\");\nvar _visitorMjs = require(\"./visitor.mjs\");\nvar _astMjs = require(\"./ast.mjs\");\nvar _predicatesMjs = require(\"./predicates.mjs\");\nvar _directiveLocationMjs = require(\"./directiveLocation.mjs\");\n\n},{\"./source.mjs\":false,\"./location.mjs\":false,\"./printLocation.mjs\":false,\"./kinds.mjs\":false,\"./tokenKind.mjs\":false,\"./lexer.mjs\":false,\"./parser.mjs\":\"dXvX2\",\"./printer.mjs\":\"c8XDu\",\"./visitor.mjs\":\"h7DdO\",\"./ast.mjs\":false,\"./predicates.mjs\":false,\"./directiveLocation.mjs\":false,\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8OEpO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Source\", ()=>Source);\n/**\n * Test if the given value is a Source object.\n *\n * @internal\n */ // eslint-disable-next-line no-redeclare\nparcelHelpers.export(exports, \"isSource\", ()=>isSource);\nvar _symbolsMjs = require(\"../polyfills/symbols.mjs\");\nvar _inspectMjs = require(\"../jsutils/inspect.mjs\");\nvar _inspectMjsDefault = parcelHelpers.interopDefault(_inspectMjs);\nvar _devAssertMjs = require(\"../jsutils/devAssert.mjs\");\nvar _devAssertMjsDefault = parcelHelpers.interopDefault(_devAssertMjs);\nvar _instanceOfMjs = require(\"../jsutils/instanceOf.mjs\");\nvar _instanceOfMjsDefault = parcelHelpers.interopDefault(_instanceOfMjs);\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nvar Source = /*#__PURE__*/ function() {\n function Source(body) {\n var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"GraphQL request\";\n var locationOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n line: 1,\n column: 1\n };\n typeof body === \"string\" || (0, _devAssertMjsDefault.default)(0, \"Body must be a string. Received: \".concat((0, _inspectMjsDefault.default)(body), \".\"));\n this.body = body;\n this.name = name;\n this.locationOffset = locationOffset;\n this.locationOffset.line > 0 || (0, _devAssertMjsDefault.default)(0, \"line in locationOffset is 1-indexed and must be positive.\");\n this.locationOffset.column > 0 || (0, _devAssertMjsDefault.default)(0, \"column in locationOffset is 1-indexed and must be positive.\");\n } // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n _createClass(Source, [\n {\n key: (0, _symbolsMjs.SYMBOL_TO_STRING_TAG),\n get: function get() {\n return \"Source\";\n }\n }\n ]);\n return Source;\n}();\nfunction isSource(source) {\n return (0, _instanceOfMjsDefault.default)(source, Source);\n}\n\n},{\"../polyfills/symbols.mjs\":\"b9ApG\",\"../jsutils/inspect.mjs\":\"WQahI\",\"../jsutils/devAssert.mjs\":\"fGYz0\",\"../jsutils/instanceOf.mjs\":\"joPSX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"b9ApG\":[function(require,module,exports) {\n// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SYMBOL_ITERATOR\", ()=>SYMBOL_ITERATOR);\nparcelHelpers.export(exports, \"SYMBOL_ASYNC_ITERATOR\", ()=>SYMBOL_ASYNC_ITERATOR);\nparcelHelpers.export(exports, \"SYMBOL_TO_STRING_TAG\", ()=>SYMBOL_TO_STRING_TAG);\nvar SYMBOL_ITERATOR = typeof Symbol === \"function\" && Symbol.iterator != null ? Symbol.iterator : \"@@iterator\"; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator\nvar SYMBOL_ASYNC_ITERATOR = typeof Symbol === \"function\" && Symbol.asyncIterator != null ? Symbol.asyncIterator : \"@@asyncIterator\"; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar SYMBOL_TO_STRING_TAG = typeof Symbol === \"function\" && Symbol.toStringTag != null ? Symbol.toStringTag : \"@@toStringTag\";\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"WQahI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>inspect);\n/* eslint-disable flowtype/no-weak-types */ var _nodejsCustomInspectSymbolMjs = require(\"./nodejsCustomInspectSymbol.mjs\");\nvar _nodejsCustomInspectSymbolMjsDefault = parcelHelpers.interopDefault(_nodejsCustomInspectSymbolMjs);\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nvar MAX_ARRAY_LENGTH = 10;\nvar MAX_RECURSIVE_DEPTH = 2;\nfunction inspect(value) {\n return formatValue(value, []);\n}\nfunction formatValue(value, seenValues) {\n switch(_typeof(value)){\n case \"string\":\n return JSON.stringify(value);\n case \"function\":\n return value.name ? \"[function \".concat(value.name, \"]\") : \"[function]\";\n case \"object\":\n if (value === null) return \"null\";\n return formatObjectValue(value, seenValues);\n default:\n return String(value);\n }\n}\nfunction formatObjectValue(value, previouslySeenValues) {\n if (previouslySeenValues.indexOf(value) !== -1) return \"[Circular]\";\n var seenValues = [].concat(previouslySeenValues, [\n value\n ]);\n var customInspectFn = getCustomFn(value);\n if (customInspectFn !== undefined) {\n var customValue = customInspectFn.call(value); // check for infinite recursion\n if (customValue !== value) return typeof customValue === \"string\" ? customValue : formatValue(customValue, seenValues);\n } else if (Array.isArray(value)) return formatArray(value, seenValues);\n return formatObject(value, seenValues);\n}\nfunction formatObject(object, seenValues) {\n var keys = Object.keys(object);\n if (keys.length === 0) return \"{}\";\n if (seenValues.length > MAX_RECURSIVE_DEPTH) return \"[\" + getObjectTag(object) + \"]\";\n var properties = keys.map(function(key) {\n var value = formatValue(object[key], seenValues);\n return key + \": \" + value;\n });\n return \"{ \" + properties.join(\", \") + \" }\";\n}\nfunction formatArray(array, seenValues) {\n if (array.length === 0) return \"[]\";\n if (seenValues.length > MAX_RECURSIVE_DEPTH) return \"[Array]\";\n var len = Math.min(MAX_ARRAY_LENGTH, array.length);\n var remaining = array.length - len;\n var items = [];\n for(var i = 0; i < len; ++i)items.push(formatValue(array[i], seenValues));\n if (remaining === 1) items.push(\"... 1 more item\");\n else if (remaining > 1) items.push(\"... \".concat(remaining, \" more items\"));\n return \"[\" + items.join(\", \") + \"]\";\n}\nfunction getCustomFn(object) {\n var customInspectFn = object[String((0, _nodejsCustomInspectSymbolMjsDefault.default))];\n if (typeof customInspectFn === \"function\") return customInspectFn;\n if (typeof object.inspect === \"function\") return object.inspect;\n}\nfunction getObjectTag(object) {\n var tag = Object.prototype.toString.call(object).replace(/^\\[object /, \"\").replace(/]$/, \"\");\n if (tag === \"Object\" && typeof object.constructor === \"function\") {\n var name = object.constructor.name;\n if (typeof name === \"string\" && name !== \"\") return name;\n }\n return tag;\n}\n\n},{\"./nodejsCustomInspectSymbol.mjs\":\"d5vVS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"d5vVS\":[function(require,module,exports) {\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar nodejsCustomInspectSymbol = typeof Symbol === \"function\" && typeof Symbol.for === \"function\" ? Symbol.for(\"nodejs.util.inspect.custom\") : undefined;\nexports.default = nodejsCustomInspectSymbol;\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fGYz0\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>devAssert);\nfunction devAssert(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n if (!booleanCondition) throw new Error(message);\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"joPSX\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _inspectMjs = require(\"./inspect.mjs\");\nvar _inspectMjsDefault = parcelHelpers.interopDefault(_inspectMjs);\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n */ // See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n// See: https://webpack.js.org/guides/production/\nexports.default = // eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n return value instanceof constructor;\n};\n\n},{\"./inspect.mjs\":\"WQahI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3bC3H\":[function(require,module,exports) {\n/**\n * Represents a location in a Source.\n */ /**\n * Takes a Source and a UTF-8 character offset, and returns the corresponding\n * line and column as a SourceLocation.\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getLocation\", ()=>getLocation);\nfunction getLocation(source, position) {\n var lineRegexp = /\\r\\n|[\\n\\r]/g;\n var line = 1;\n var column = position + 1;\n var match;\n while((match = lineRegexp.exec(source.body)) && match.index < position){\n line += 1;\n column = position + 1 - (match.index + match[0].length);\n }\n return {\n line: line,\n column: column\n };\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"a4p9f\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */ parcelHelpers.export(exports, \"printLocation\", ()=>printLocation);\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */ parcelHelpers.export(exports, \"printSourceLocation\", ()=>printSourceLocation);\nvar _locationMjs = require(\"./location.mjs\");\nfunction printLocation(location) {\n return printSourceLocation(location.source, (0, _locationMjs.getLocation)(location.source, location.start));\n}\nfunction printSourceLocation(source, sourceLocation) {\n var firstLineColumnOffset = source.locationOffset.column - 1;\n var body = whitespace(firstLineColumnOffset) + source.body;\n var lineIndex = sourceLocation.line - 1;\n var lineOffset = source.locationOffset.line - 1;\n var lineNum = sourceLocation.line + lineOffset;\n var columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0;\n var columnNum = sourceLocation.column + columnOffset;\n var locationStr = \"\".concat(source.name, \":\").concat(lineNum, \":\").concat(columnNum, \"\\n\");\n var lines = body.split(/\\r\\n|[\\n\\r]/g);\n var locationLine = lines[lineIndex]; // Special case for minified documents\n if (locationLine.length > 120) {\n var subLineIndex = Math.floor(columnNum / 80);\n var subLineColumnNum = columnNum % 80;\n var subLines = [];\n for(var i = 0; i < locationLine.length; i += 80)subLines.push(locationLine.slice(i, i + 80));\n return locationStr + printPrefixedLines([\n [\n \"\".concat(lineNum),\n subLines[0]\n ]\n ].concat(subLines.slice(1, subLineIndex + 1).map(function(subLine) {\n return [\n \"\",\n subLine\n ];\n }), [\n [\n \" \",\n whitespace(subLineColumnNum - 1) + \"^\"\n ],\n [\n \"\",\n subLines[subLineIndex + 1]\n ]\n ]));\n }\n return locationStr + printPrefixedLines([\n [\n \"\".concat(lineNum - 1),\n lines[lineIndex - 1]\n ],\n [\n \"\".concat(lineNum),\n locationLine\n ],\n [\n \"\",\n whitespace(columnNum - 1) + \"^\"\n ],\n [\n \"\".concat(lineNum + 1),\n lines[lineIndex + 1]\n ]\n ]);\n}\nfunction printPrefixedLines(lines) {\n var existingLines = lines.filter(function(_ref) {\n var _ = _ref[0], line = _ref[1];\n return line !== undefined;\n });\n var padLen = Math.max.apply(Math, existingLines.map(function(_ref2) {\n var prefix = _ref2[0];\n return prefix.length;\n }));\n return existingLines.map(function(_ref3) {\n var prefix = _ref3[0], line = _ref3[1];\n return leftPad(padLen, prefix) + (line ? \" | \" + line : \" |\");\n }).join(\"\\n\");\n}\nfunction whitespace(len) {\n return Array(len + 1).join(\" \");\n}\nfunction leftPad(len, str) {\n return whitespace(len - str.length) + str;\n}\n\n},{\"./location.mjs\":\"3bC3H\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9hEEX\":[function(require,module,exports) {\n/**\n * The set of allowed kind values for AST nodes.\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Kind\", ()=>Kind);\nvar Kind = Object.freeze({\n // Name\n NAME: \"Name\",\n // Document\n DOCUMENT: \"Document\",\n OPERATION_DEFINITION: \"OperationDefinition\",\n VARIABLE_DEFINITION: \"VariableDefinition\",\n SELECTION_SET: \"SelectionSet\",\n FIELD: \"Field\",\n ARGUMENT: \"Argument\",\n // Fragments\n FRAGMENT_SPREAD: \"FragmentSpread\",\n INLINE_FRAGMENT: \"InlineFragment\",\n FRAGMENT_DEFINITION: \"FragmentDefinition\",\n // Values\n VARIABLE: \"Variable\",\n INT: \"IntValue\",\n FLOAT: \"FloatValue\",\n STRING: \"StringValue\",\n BOOLEAN: \"BooleanValue\",\n NULL: \"NullValue\",\n ENUM: \"EnumValue\",\n LIST: \"ListValue\",\n OBJECT: \"ObjectValue\",\n OBJECT_FIELD: \"ObjectField\",\n // Directives\n DIRECTIVE: \"Directive\",\n // Types\n NAMED_TYPE: \"NamedType\",\n LIST_TYPE: \"ListType\",\n NON_NULL_TYPE: \"NonNullType\",\n // Type System Definitions\n SCHEMA_DEFINITION: \"SchemaDefinition\",\n OPERATION_TYPE_DEFINITION: \"OperationTypeDefinition\",\n // Type Definitions\n SCALAR_TYPE_DEFINITION: \"ScalarTypeDefinition\",\n OBJECT_TYPE_DEFINITION: \"ObjectTypeDefinition\",\n FIELD_DEFINITION: \"FieldDefinition\",\n INPUT_VALUE_DEFINITION: \"InputValueDefinition\",\n INTERFACE_TYPE_DEFINITION: \"InterfaceTypeDefinition\",\n UNION_TYPE_DEFINITION: \"UnionTypeDefinition\",\n ENUM_TYPE_DEFINITION: \"EnumTypeDefinition\",\n ENUM_VALUE_DEFINITION: \"EnumValueDefinition\",\n INPUT_OBJECT_TYPE_DEFINITION: \"InputObjectTypeDefinition\",\n // Directive Definitions\n DIRECTIVE_DEFINITION: \"DirectiveDefinition\",\n // Type System Extensions\n SCHEMA_EXTENSION: \"SchemaExtension\",\n // Type Extensions\n SCALAR_TYPE_EXTENSION: \"ScalarTypeExtension\",\n OBJECT_TYPE_EXTENSION: \"ObjectTypeExtension\",\n INTERFACE_TYPE_EXTENSION: \"InterfaceTypeExtension\",\n UNION_TYPE_EXTENSION: \"UnionTypeExtension\",\n ENUM_TYPE_EXTENSION: \"EnumTypeExtension\",\n INPUT_OBJECT_TYPE_EXTENSION: \"InputObjectTypeExtension\"\n}); /**\n * The enum type representing the possible kind values of AST nodes.\n */ \n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2CCFz\":[function(require,module,exports) {\n/**\n * An exported enum describing the different kinds of tokens that the\n * lexer emits.\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"TokenKind\", ()=>TokenKind);\nvar TokenKind = Object.freeze({\n SOF: \"\",\n EOF: \"\",\n BANG: \"!\",\n DOLLAR: \"$\",\n AMP: \"&\",\n PAREN_L: \"(\",\n PAREN_R: \")\",\n SPREAD: \"...\",\n COLON: \":\",\n EQUALS: \"=\",\n AT: \"@\",\n BRACKET_L: \"[\",\n BRACKET_R: \"]\",\n BRACE_L: \"{\",\n PIPE: \"|\",\n BRACE_R: \"}\",\n NAME: \"Name\",\n INT: \"Int\",\n FLOAT: \"Float\",\n STRING: \"String\",\n BLOCK_STRING: \"BlockString\",\n COMMENT: \"Comment\"\n}); /**\n * The enum type representing the token kinds values.\n */ \n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6B9aw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Lexer\", ()=>Lexer);\n/**\n * @internal\n */ parcelHelpers.export(exports, \"isPunctuatorTokenKind\", ()=>isPunctuatorTokenKind);\nvar _syntaxErrorMjs = require(\"../error/syntaxError.mjs\");\nvar _astMjs = require(\"./ast.mjs\");\nvar _tokenKindMjs = require(\"./tokenKind.mjs\");\nvar _blockStringMjs = require(\"./blockString.mjs\");\nvar Lexer = /*#__PURE__*/ function() {\n /**\n * The previously focused non-ignored token.\n */ /**\n * The currently focused non-ignored token.\n */ /**\n * The (1-indexed) line containing the current token.\n */ /**\n * The character offset at which the current line begins.\n */ function Lexer(source) {\n var startOfFileToken = new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).SOF, 0, 0, 0, 0, null);\n this.source = source;\n this.lastToken = startOfFileToken;\n this.token = startOfFileToken;\n this.line = 1;\n this.lineStart = 0;\n }\n /**\n * Advances the token stream to the next non-ignored token.\n */ var _proto = Lexer.prototype;\n _proto.advance = function advance() {\n this.lastToken = this.token;\n var token = this.token = this.lookahead();\n return token;\n } /**\n * Looks ahead and returns the next non-ignored token, but does not change\n * the state of Lexer.\n */ ;\n _proto.lookahead = function lookahead() {\n var token = this.token;\n if (token.kind !== (0, _tokenKindMjs.TokenKind).EOF) do {\n var _token$next;\n // Note: next is only mutable during parsing, so we cast to allow this.\n token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);\n }while (token.kind === (0, _tokenKindMjs.TokenKind).COMMENT);\n return token;\n };\n return Lexer;\n}();\nfunction isPunctuatorTokenKind(kind) {\n return kind === (0, _tokenKindMjs.TokenKind).BANG || kind === (0, _tokenKindMjs.TokenKind).DOLLAR || kind === (0, _tokenKindMjs.TokenKind).AMP || kind === (0, _tokenKindMjs.TokenKind).PAREN_L || kind === (0, _tokenKindMjs.TokenKind).PAREN_R || kind === (0, _tokenKindMjs.TokenKind).SPREAD || kind === (0, _tokenKindMjs.TokenKind).COLON || kind === (0, _tokenKindMjs.TokenKind).EQUALS || kind === (0, _tokenKindMjs.TokenKind).AT || kind === (0, _tokenKindMjs.TokenKind).BRACKET_L || kind === (0, _tokenKindMjs.TokenKind).BRACKET_R || kind === (0, _tokenKindMjs.TokenKind).BRACE_L || kind === (0, _tokenKindMjs.TokenKind).PIPE || kind === (0, _tokenKindMjs.TokenKind).BRACE_R;\n}\nfunction printCharCode(code) {\n return isNaN(code) ? (0, _tokenKindMjs.TokenKind).EOF : code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : '\"\\\\u'.concat((\"00\" + code.toString(16).toUpperCase()).slice(-4), '\"');\n}\n/**\n * Gets the next token from the source starting at the given position.\n *\n * This skips over whitespace until it finds the next lexable token, then lexes\n * punctuators immediately or calls the appropriate helper function for more\n * complicated tokens.\n */ function readToken(lexer, prev) {\n var source = lexer.source;\n var body = source.body;\n var bodyLength = body.length;\n var pos = prev.end;\n while(pos < bodyLength){\n var code = body.charCodeAt(pos);\n var _line = lexer.line;\n var _col = 1 + pos - lexer.lineStart; // SourceCharacter\n switch(code){\n case 0xfeff:\n case 9:\n case 32:\n case 44:\n // ,\n ++pos;\n continue;\n case 10:\n // \\n\n ++pos;\n ++lexer.line;\n lexer.lineStart = pos;\n continue;\n case 13:\n // \\r\n if (body.charCodeAt(pos + 1) === 10) pos += 2;\n else ++pos;\n ++lexer.line;\n lexer.lineStart = pos;\n continue;\n case 33:\n // !\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).BANG, pos, pos + 1, _line, _col, prev);\n case 35:\n // #\n return readComment(source, pos, _line, _col, prev);\n case 36:\n // $\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).DOLLAR, pos, pos + 1, _line, _col, prev);\n case 38:\n // &\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).AMP, pos, pos + 1, _line, _col, prev);\n case 40:\n // (\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).PAREN_L, pos, pos + 1, _line, _col, prev);\n case 41:\n // )\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).PAREN_R, pos, pos + 1, _line, _col, prev);\n case 46:\n // .\n if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).SPREAD, pos, pos + 3, _line, _col, prev);\n break;\n case 58:\n // :\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).COLON, pos, pos + 1, _line, _col, prev);\n case 61:\n // =\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).EQUALS, pos, pos + 1, _line, _col, prev);\n case 64:\n // @\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).AT, pos, pos + 1, _line, _col, prev);\n case 91:\n // [\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).BRACKET_L, pos, pos + 1, _line, _col, prev);\n case 93:\n // ]\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).BRACKET_R, pos, pos + 1, _line, _col, prev);\n case 123:\n // {\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).BRACE_L, pos, pos + 1, _line, _col, prev);\n case 124:\n // |\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).PIPE, pos, pos + 1, _line, _col, prev);\n case 125:\n // }\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).BRACE_R, pos, pos + 1, _line, _col, prev);\n case 34:\n // \"\n if (body.charCodeAt(pos + 1) === 34 && body.charCodeAt(pos + 2) === 34) return readBlockString(source, pos, _line, _col, prev, lexer);\n return readString(source, pos, _line, _col, prev);\n case 45:\n case 48:\n case 49:\n case 50:\n case 51:\n case 52:\n case 53:\n case 54:\n case 55:\n case 56:\n case 57:\n // 9\n return readNumber(source, pos, code, _line, _col, prev);\n case 65:\n case 66:\n case 67:\n case 68:\n case 69:\n case 70:\n case 71:\n case 72:\n case 73:\n case 74:\n case 75:\n case 76:\n case 77:\n case 78:\n case 79:\n case 80:\n case 81:\n case 82:\n case 83:\n case 84:\n case 85:\n case 86:\n case 87:\n case 88:\n case 89:\n case 90:\n case 95:\n case 97:\n case 98:\n case 99:\n case 100:\n case 101:\n case 102:\n case 103:\n case 104:\n case 105:\n case 106:\n case 107:\n case 108:\n case 109:\n case 110:\n case 111:\n case 112:\n case 113:\n case 114:\n case 115:\n case 116:\n case 117:\n case 118:\n case 119:\n case 120:\n case 121:\n case 122:\n // z\n return readName(source, pos, _line, _col, prev);\n }\n throw (0, _syntaxErrorMjs.syntaxError)(source, pos, unexpectedCharacterMessage(code));\n }\n var line = lexer.line;\n var col = 1 + pos - lexer.lineStart;\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).EOF, bodyLength, bodyLength, line, col, prev);\n}\n/**\n * Report a message that an unexpected character was encountered.\n */ function unexpectedCharacterMessage(code) {\n if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) return \"Cannot contain the invalid character \".concat(printCharCode(code), \".\");\n if (code === 39) // '\n return \"Unexpected single quote character ('), did you mean to use a double quote (\\\")?\";\n return \"Cannot parse the unexpected character \".concat(printCharCode(code), \".\");\n}\n/**\n * Reads a comment token from the source file.\n *\n * #[\\u0009\\u0020-\\uFFFF]*\n */ function readComment(source, start, line, col, prev) {\n var body = source.body;\n var code;\n var position = start;\n do code = body.charCodeAt(++position);\n while (!isNaN(code) && (code > 0x001f || code === 0x0009));\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).COMMENT, start, position, line, col, prev, body.slice(start + 1, position));\n}\n/**\n * Reads a number token from the source file, either a float\n * or an int depending on whether a decimal point appears.\n *\n * Int: -?(0|[1-9][0-9]*)\n * Float: -?(0|[1-9][0-9]*)(\\.[0-9]+)?((E|e)(+|-)?[0-9]+)?\n */ function readNumber(source, start, firstCode, line, col, prev) {\n var body = source.body;\n var code = firstCode;\n var position = start;\n var isFloat = false;\n if (code === 45) // -\n code = body.charCodeAt(++position);\n if (code === 48) {\n // 0\n code = body.charCodeAt(++position);\n if (code >= 48 && code <= 57) throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid number, unexpected digit after 0: \".concat(printCharCode(code), \".\"));\n } else {\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n }\n if (code === 46) {\n // .\n isFloat = true;\n code = body.charCodeAt(++position);\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n }\n if (code === 69 || code === 101) {\n // E e\n isFloat = true;\n code = body.charCodeAt(++position);\n if (code === 43 || code === 45) // + -\n code = body.charCodeAt(++position);\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n } // Numbers cannot be followed by . or NameStart\n if (code === 46 || isNameStart(code)) throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n return new (0, _astMjs.Token)(isFloat ? (0, _tokenKindMjs.TokenKind).FLOAT : (0, _tokenKindMjs.TokenKind).INT, start, position, line, col, prev, body.slice(start, position));\n}\n/**\n * Returns the new position in the source after reading digits.\n */ function readDigits(source, start, firstCode) {\n var body = source.body;\n var position = start;\n var code = firstCode;\n if (code >= 48 && code <= 57) {\n // 0 - 9\n do code = body.charCodeAt(++position);\n while (code >= 48 && code <= 57); // 0 - 9\n return position;\n }\n throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n}\n/**\n * Reads a string token from the source file.\n *\n * \"([^\"\\\\\\u000A\\u000D]|(\\\\(u[0-9a-fA-F]{4}|[\"\\\\/bfnrt])))*\"\n */ function readString(source, start, line, col, prev) {\n var body = source.body;\n var position = start + 1;\n var chunkStart = position;\n var code = 0;\n var value = \"\";\n while(position < body.length && !isNaN(code = body.charCodeAt(position)) && // not LineTerminator\n code !== 0x000a && code !== 0x000d){\n // Closing Quote (\")\n if (code === 34) {\n value += body.slice(chunkStart, position);\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).STRING, start, position + 1, line, col, prev, value);\n } // SourceCharacter\n if (code < 0x0020 && code !== 0x0009) throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n ++position;\n if (code === 92) {\n // \\\n value += body.slice(chunkStart, position - 1);\n code = body.charCodeAt(position);\n switch(code){\n case 34:\n value += '\"';\n break;\n case 47:\n value += \"/\";\n break;\n case 92:\n value += \"\\\\\";\n break;\n case 98:\n value += \"\\b\";\n break;\n case 102:\n value += \"\\f\";\n break;\n case 110:\n value += \"\\n\";\n break;\n case 114:\n value += \"\\r\";\n break;\n case 116:\n value += \"\t\";\n break;\n case 117:\n // uXXXX\n var charCode = uniCharCode(body.charCodeAt(position + 1), body.charCodeAt(position + 2), body.charCodeAt(position + 3), body.charCodeAt(position + 4));\n if (charCode < 0) {\n var invalidSequence = body.slice(position + 1, position + 5);\n throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid character escape sequence: \\\\u\".concat(invalidSequence, \".\"));\n }\n value += String.fromCharCode(charCode);\n position += 4;\n break;\n default:\n throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid character escape sequence: \\\\\".concat(String.fromCharCode(code), \".\"));\n }\n ++position;\n chunkStart = position;\n }\n }\n throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Unterminated string.\");\n}\n/**\n * Reads a block string token from the source file.\n *\n * \"\"\"(\"?\"?(\\\\\"\"\"|\\\\(?!=\"\"\")|[^\"\\\\]))*\"\"\"\n */ function readBlockString(source, start, line, col, prev, lexer) {\n var body = source.body;\n var position = start + 3;\n var chunkStart = position;\n var code = 0;\n var rawValue = \"\";\n while(position < body.length && !isNaN(code = body.charCodeAt(position))){\n // Closing Triple-Quote (\"\"\")\n if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {\n rawValue += body.slice(chunkStart, position);\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).BLOCK_STRING, start, position + 3, line, col, prev, (0, _blockStringMjs.dedentBlockStringValue)(rawValue));\n } // SourceCharacter\n if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n if (code === 10) {\n // new line\n ++position;\n ++lexer.line;\n lexer.lineStart = position;\n } else if (code === 13) {\n // carriage return\n if (body.charCodeAt(position + 1) === 10) position += 2;\n else ++position;\n ++lexer.line;\n lexer.lineStart = position;\n } else if (code === 92 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34 && body.charCodeAt(position + 3) === 34) {\n rawValue += body.slice(chunkStart, position) + '\"\"\"';\n position += 4;\n chunkStart = position;\n } else ++position;\n }\n throw (0, _syntaxErrorMjs.syntaxError)(source, position, \"Unterminated string.\");\n}\n/**\n * Converts four hexadecimal chars to the integer that the\n * string represents. For example, uniCharCode('0','0','0','f')\n * will return 15, and uniCharCode('0','0','f','f') returns 255.\n *\n * Returns a negative number on error, if a char was invalid.\n *\n * This is implemented by noting that char2hex() returns -1 on error,\n * which means the result of ORing the char2hex() will also be negative.\n */ function uniCharCode(a, b, c, d) {\n return char2hex(a) << 12 | char2hex(b) << 8 | char2hex(c) << 4 | char2hex(d);\n}\n/**\n * Converts a hex character to its integer value.\n * '0' becomes 0, '9' becomes 9\n * 'A' becomes 10, 'F' becomes 15\n * 'a' becomes 10, 'f' becomes 15\n *\n * Returns -1 on error.\n */ function char2hex(a) {\n return a >= 48 && a <= 57 ? a - 48 // 0-9\n : a >= 65 && a <= 70 ? a - 55 // A-F\n : a >= 97 && a <= 102 ? a - 87 // a-f\n : -1;\n}\n/**\n * Reads an alphanumeric + underscore name from the source.\n *\n * [_A-Za-z][_0-9A-Za-z]*\n */ function readName(source, start, line, col, prev) {\n var body = source.body;\n var bodyLength = body.length;\n var position = start + 1;\n var code = 0;\n while(position !== bodyLength && !isNaN(code = body.charCodeAt(position)) && (code === 95 || // _\n code >= 48 && code <= 57 || // 0-9\n code >= 65 && code <= 90 || // A-Z\n code >= 97 && code <= 122 // a-z\n ))++position;\n return new (0, _astMjs.Token)((0, _tokenKindMjs.TokenKind).NAME, start, position, line, col, prev, body.slice(start, position));\n} // _ A-Z a-z\nfunction isNameStart(code) {\n return code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122;\n}\n\n},{\"../error/syntaxError.mjs\":\"5mJxx\",\"./ast.mjs\":\"fbjye\",\"./tokenKind.mjs\":\"2CCFz\",\"./blockString.mjs\":\"1Vj4i\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5mJxx\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Produces a GraphQLError representing a syntax error, containing useful\n * descriptive information about the syntax error's position in the source.\n */ parcelHelpers.export(exports, \"syntaxError\", ()=>syntaxError);\nvar _graphQLErrorMjs = require(\"./GraphQLError.mjs\");\nfunction syntaxError(source, position, description) {\n return new (0, _graphQLErrorMjs.GraphQLError)(\"Syntax Error: \".concat(description), undefined, source, [\n position\n ]);\n}\n\n},{\"./GraphQLError.mjs\":\"es92y\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"es92y\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"GraphQLError\", ()=>GraphQLError);\n/**\n * Prints a GraphQLError to a string, representing useful location information\n * about the error's position in the source.\n */ parcelHelpers.export(exports, \"printError\", ()=>printError);\nvar _isObjectLikeMjs = require(\"../jsutils/isObjectLike.mjs\");\nvar _isObjectLikeMjsDefault = parcelHelpers.interopDefault(_isObjectLikeMjs);\nvar _symbolsMjs = require(\"../polyfills/symbols.mjs\");\nvar _locationMjs = require(\"../language/location.mjs\");\nvar _printLocationMjs = require(\"../language/printLocation.mjs\");\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) return call;\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") throw new TypeError(\"Super expression must either be null or a function\");\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return _setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}\nfunction _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) _construct = Reflect.construct;\n else _construct = function _construct(Parent, args, Class) {\n var a = [\n null\n ];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n return _construct.apply(null, arguments);\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nvar GraphQLError = /*#__PURE__*/ function(_Error) {\n _inherits(GraphQLError, _Error);\n var _super = _createSuper(GraphQLError);\n /**\n * An array of { line, column } locations within the source GraphQL document\n * which correspond to this error.\n *\n * Errors during validation often contain multiple locations, for example to\n * point out two things with the same name. Errors during execution include a\n * single location, the field which produced the error.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */ /**\n * An array describing the JSON-path into the execution response which\n * corresponds to this error. Only included for errors during execution.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */ /**\n * An array of GraphQL AST Nodes corresponding to this error.\n */ /**\n * The source GraphQL document for the first location of this error.\n *\n * Note that if this Error represents more than one node, the source may not\n * represent nodes after the first node.\n */ /**\n * An array of character offsets within the source GraphQL document\n * which correspond to this error.\n */ /**\n * The original error thrown from a field resolver during execution.\n */ /**\n * Extension fields to add to the formatted error.\n */ function GraphQLError(message, nodes, source, positions, path, originalError, extensions) {\n var _nodeLocations, _nodeLocations2, _nodeLocations3;\n var _this;\n _classCallCheck(this, GraphQLError);\n _this = _super.call(this, message);\n _this.name = \"GraphQLError\";\n _this.originalError = originalError !== null && originalError !== void 0 ? originalError : undefined; // Compute list of blame nodes.\n _this.nodes = undefinedIfEmpty(Array.isArray(nodes) ? nodes : nodes ? [\n nodes\n ] : undefined);\n var nodeLocations = [];\n for(var _i2 = 0, _ref3 = (_this$nodes = _this.nodes) !== null && _this$nodes !== void 0 ? _this$nodes : []; _i2 < _ref3.length; _i2++){\n var _this$nodes;\n var _ref4 = _ref3[_i2];\n var loc = _ref4.loc;\n if (loc != null) nodeLocations.push(loc);\n }\n nodeLocations = undefinedIfEmpty(nodeLocations); // Compute locations in the source for the given nodes/positions.\n _this.source = source !== null && source !== void 0 ? source : (_nodeLocations = nodeLocations) === null || _nodeLocations === void 0 ? void 0 : _nodeLocations[0].source;\n _this.positions = positions !== null && positions !== void 0 ? positions : (_nodeLocations2 = nodeLocations) === null || _nodeLocations2 === void 0 ? void 0 : _nodeLocations2.map(function(loc) {\n return loc.start;\n });\n _this.locations = positions && source ? positions.map(function(pos) {\n return (0, _locationMjs.getLocation)(source, pos);\n }) : (_nodeLocations3 = nodeLocations) === null || _nodeLocations3 === void 0 ? void 0 : _nodeLocations3.map(function(loc) {\n return (0, _locationMjs.getLocation)(loc.source, loc.start);\n });\n _this.path = path !== null && path !== void 0 ? path : undefined;\n var originalExtensions = originalError === null || originalError === void 0 ? void 0 : originalError.extensions;\n if (extensions == null && (0, _isObjectLikeMjsDefault.default)(originalExtensions)) _this.extensions = _objectSpread({}, originalExtensions);\n else _this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};\n // By being enumerable, JSON.stringify will include bellow properties in the resulting output.\n // This ensures that the simplest possible GraphQL service adheres to the spec.\n Object.defineProperties(_assertThisInitialized(_this), {\n message: {\n enumerable: true\n },\n locations: {\n enumerable: _this.locations != null\n },\n path: {\n enumerable: _this.path != null\n },\n extensions: {\n enumerable: _this.extensions != null && Object.keys(_this.extensions).length > 0\n },\n name: {\n enumerable: false\n },\n nodes: {\n enumerable: false\n },\n source: {\n enumerable: false\n },\n positions: {\n enumerable: false\n },\n originalError: {\n enumerable: false\n }\n }); // Include (non-enumerable) stack trace.\n if (originalError !== null && originalError !== void 0 && originalError.stack) {\n Object.defineProperty(_assertThisInitialized(_this), \"stack\", {\n value: originalError.stack,\n writable: true,\n configurable: true\n });\n return _possibleConstructorReturn(_this);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n if (Error.captureStackTrace) Error.captureStackTrace(_assertThisInitialized(_this), GraphQLError);\n else Object.defineProperty(_assertThisInitialized(_this), \"stack\", {\n value: Error().stack,\n writable: true,\n configurable: true\n });\n return _this;\n }\n _createClass(GraphQLError, [\n {\n key: \"toString\",\n value: function toString() {\n return printError(this);\n } // FIXME: workaround to not break chai comparisons, should be remove in v16\n },\n {\n key: (0, _symbolsMjs.SYMBOL_TO_STRING_TAG),\n get: function get() {\n return \"Object\";\n }\n }\n ]);\n return GraphQLError;\n}(/*#__PURE__*/ _wrapNativeSuper(Error));\nfunction undefinedIfEmpty(array) {\n return array === undefined || array.length === 0 ? undefined : array;\n}\nfunction printError(error) {\n var output = error.message;\n if (error.nodes) for(var _i4 = 0, _error$nodes2 = error.nodes; _i4 < _error$nodes2.length; _i4++){\n var node = _error$nodes2[_i4];\n if (node.loc) output += \"\\n\\n\" + (0, _printLocationMjs.printLocation)(node.loc);\n }\n else if (error.source && error.locations) for(var _i6 = 0, _error$locations2 = error.locations; _i6 < _error$locations2.length; _i6++){\n var location = _error$locations2[_i6];\n output += \"\\n\\n\" + (0, _printLocationMjs.printSourceLocation)(error.source, location);\n }\n return output;\n}\n\n},{\"../jsutils/isObjectLike.mjs\":\"6GqPU\",\"../polyfills/symbols.mjs\":\"b9ApG\",\"../language/location.mjs\":\"3bC3H\",\"../language/printLocation.mjs\":\"a4p9f\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6GqPU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>isObjectLike);\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction isObjectLike(value) {\n return _typeof(value) == \"object\" && value !== null;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fbjye\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Location\", ()=>Location);\nparcelHelpers.export(exports, \"Token\", ()=>Token);\n/**\n * @internal\n */ parcelHelpers.export(exports, \"isNode\", ()=>isNode) /**\n * The list of all possible AST node types.\n */ ;\nvar _defineInspectMjs = require(\"../jsutils/defineInspect.mjs\");\nvar _defineInspectMjsDefault = parcelHelpers.interopDefault(_defineInspectMjs);\nvar Location = /*#__PURE__*/ function() {\n /**\n * The character offset at which this Node begins.\n */ /**\n * The character offset at which this Node ends.\n */ /**\n * The Token at which this Node begins.\n */ /**\n * The Token at which this Node ends.\n */ /**\n * The Source document the AST represents.\n */ function Location(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n var _proto = Location.prototype;\n _proto.toJSON = function toJSON() {\n return {\n start: this.start,\n end: this.end\n };\n };\n return Location;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n(0, _defineInspectMjsDefault.default)(Location);\nvar Token = /*#__PURE__*/ function() {\n /**\n * The kind of Token.\n */ /**\n * The character offset at which this Node begins.\n */ /**\n * The character offset at which this Node ends.\n */ /**\n * The 1-indexed line number on which this Token appears.\n */ /**\n * The 1-indexed column number at which this Token begins.\n */ /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n */ /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. is always the first node and \n * the last.\n */ function Token(kind, start, end, line, column, prev, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column;\n this.value = value;\n this.prev = prev;\n this.next = null;\n }\n var _proto2 = Token.prototype;\n _proto2.toJSON = function toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column\n };\n };\n return Token;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n(0, _defineInspectMjsDefault.default)(Token);\nfunction isNode(maybeNode) {\n return maybeNode != null && typeof maybeNode.kind === \"string\";\n}\n\n},{\"../jsutils/defineInspect.mjs\":\"aExjM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aExjM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>defineInspect);\nvar _invariantMjs = require(\"./invariant.mjs\");\nvar _invariantMjsDefault = parcelHelpers.interopDefault(_invariantMjs);\nvar _nodejsCustomInspectSymbolMjs = require(\"./nodejsCustomInspectSymbol.mjs\");\nvar _nodejsCustomInspectSymbolMjsDefault = parcelHelpers.interopDefault(_nodejsCustomInspectSymbolMjs);\nfunction defineInspect(classObject) {\n var fn = classObject.prototype.toJSON;\n typeof fn === \"function\" || (0, _invariantMjsDefault.default)(0);\n classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')\n if (0, _nodejsCustomInspectSymbolMjsDefault.default) classObject.prototype[0, _nodejsCustomInspectSymbolMjsDefault.default] = fn;\n}\n\n},{\"./invariant.mjs\":\"khvRB\",\"./nodejsCustomInspectSymbol.mjs\":\"d5vVS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"khvRB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>invariant);\nfunction invariant(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n if (!booleanCondition) throw new Error(message != null ? message : \"Unexpected invariant triggered.\");\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1Vj4i\":[function(require,module,exports) {\n/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"dedentBlockStringValue\", ()=>dedentBlockStringValue);\n/**\n * @internal\n */ parcelHelpers.export(exports, \"getBlockStringIndentation\", ()=>getBlockStringIndentation);\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */ parcelHelpers.export(exports, \"printBlockString\", ()=>printBlockString);\nfunction dedentBlockStringValue(rawString) {\n // Expand a block string's raw value into independent lines.\n var lines = rawString.split(/\\r\\n|[\\n\\r]/g); // Remove common indentation from all lines but first.\n var commonIndent = getBlockStringIndentation(rawString);\n if (commonIndent !== 0) for(var i = 1; i < lines.length; i++)lines[i] = lines[i].slice(commonIndent);\n // Remove leading and trailing blank lines.\n var startLine = 0;\n while(startLine < lines.length && isBlank(lines[startLine]))++startLine;\n var endLine = lines.length;\n while(endLine > startLine && isBlank(lines[endLine - 1]))--endLine;\n // Return a string of the lines joined with U+000A.\n return lines.slice(startLine, endLine).join(\"\\n\");\n}\nfunction isBlank(str) {\n for(var i = 0; i < str.length; ++i){\n if (str[i] !== \" \" && str[i] !== \"\t\") return false;\n }\n return true;\n}\nfunction getBlockStringIndentation(value) {\n var _commonIndent;\n var isFirstLine = true;\n var isEmptyLine = true;\n var indent = 0;\n var commonIndent = null;\n for(var i = 0; i < value.length; ++i)switch(value.charCodeAt(i)){\n case 13:\n // \\r\n if (value.charCodeAt(i + 1) === 10) ++i; // skip \\r\\n as one symbol\n // falls through\n case 10:\n // \\n\n isFirstLine = false;\n isEmptyLine = true;\n indent = 0;\n break;\n case 9:\n case 32:\n // \n ++indent;\n break;\n default:\n if (isEmptyLine && !isFirstLine && (commonIndent === null || indent < commonIndent)) commonIndent = indent;\n isEmptyLine = false;\n }\n return (_commonIndent = commonIndent) !== null && _commonIndent !== void 0 ? _commonIndent : 0;\n}\nfunction printBlockString(value) {\n var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isSingleLine = value.indexOf(\"\\n\") === -1;\n var hasLeadingSpace = value[0] === \" \" || value[0] === \"\t\";\n var hasTrailingQuote = value[value.length - 1] === '\"';\n var hasTrailingSlash = value[value.length - 1] === \"\\\\\";\n var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;\n var result = \"\"; // Format a multi-line block quote to account for leading space.\n if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) result += \"\\n\" + indentation;\n result += indentation ? value.replace(/\\n/g, \"\\n\" + indentation) : value;\n if (printAsMultipleLines) result += \"\\n\";\n return '\"\"\"' + result.replace(/\"\"\"/g, '\\\\\"\"\"') + '\"\"\"';\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dXvX2\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Configuration options to control parser behavior\n */ /**\n * Given a GraphQL source, parses it into a Document.\n * Throws GraphQLError if a syntax error is encountered.\n */ parcelHelpers.export(exports, \"parse\", ()=>parse);\n/**\n * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for\n * that value.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Values directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: valueFromAST().\n */ parcelHelpers.export(exports, \"parseValue\", ()=>parseValue);\n/**\n * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for\n * that type.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Types directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: typeFromAST().\n */ parcelHelpers.export(exports, \"parseType\", ()=>parseType);\nparcelHelpers.export(exports, \"Parser\", ()=>Parser);\nvar _syntaxErrorMjs = require(\"../error/syntaxError.mjs\");\nvar _kindsMjs = require(\"./kinds.mjs\");\nvar _astMjs = require(\"./ast.mjs\");\nvar _tokenKindMjs = require(\"./tokenKind.mjs\");\nvar _sourceMjs = require(\"./source.mjs\");\nvar _directiveLocationMjs = require(\"./directiveLocation.mjs\");\nvar _lexerMjs = require(\"./lexer.mjs\");\nfunction parse(source, options) {\n var parser = new Parser(source, options);\n return parser.parseDocument();\n}\nfunction parseValue(source, options) {\n var parser = new Parser(source, options);\n parser.expectToken((0, _tokenKindMjs.TokenKind).SOF);\n var value = parser.parseValueLiteral(false);\n parser.expectToken((0, _tokenKindMjs.TokenKind).EOF);\n return value;\n}\nfunction parseType(source, options) {\n var parser = new Parser(source, options);\n parser.expectToken((0, _tokenKindMjs.TokenKind).SOF);\n var type = parser.parseTypeReference();\n parser.expectToken((0, _tokenKindMjs.TokenKind).EOF);\n return type;\n}\nvar Parser = /*#__PURE__*/ function() {\n function Parser(source, options) {\n var sourceObj = (0, _sourceMjs.isSource)(source) ? source : new (0, _sourceMjs.Source)(source);\n this._lexer = new (0, _lexerMjs.Lexer)(sourceObj);\n this._options = options;\n }\n /**\n * Converts a name lex token into a name parse node.\n */ var _proto = Parser.prototype;\n _proto.parseName = function parseName() {\n var token = this.expectToken((0, _tokenKindMjs.TokenKind).NAME);\n return {\n kind: (0, _kindsMjs.Kind).NAME,\n value: token.value,\n loc: this.loc(token)\n };\n } // Implements the parsing rules in the Document section.\n /**\n * Document : Definition+\n */ ;\n _proto.parseDocument = function parseDocument() {\n var start = this._lexer.token;\n return {\n kind: (0, _kindsMjs.Kind).DOCUMENT,\n definitions: this.many((0, _tokenKindMjs.TokenKind).SOF, this.parseDefinition, (0, _tokenKindMjs.TokenKind).EOF),\n loc: this.loc(start)\n };\n } /**\n * Definition :\n * - ExecutableDefinition\n * - TypeSystemDefinition\n * - TypeSystemExtension\n *\n * ExecutableDefinition :\n * - OperationDefinition\n * - FragmentDefinition\n */ ;\n _proto.parseDefinition = function parseDefinition() {\n if (this.peek((0, _tokenKindMjs.TokenKind).NAME)) switch(this._lexer.token.value){\n case \"query\":\n case \"mutation\":\n case \"subscription\":\n return this.parseOperationDefinition();\n case \"fragment\":\n return this.parseFragmentDefinition();\n case \"schema\":\n case \"scalar\":\n case \"type\":\n case \"interface\":\n case \"union\":\n case \"enum\":\n case \"input\":\n case \"directive\":\n return this.parseTypeSystemDefinition();\n case \"extend\":\n return this.parseTypeSystemExtension();\n }\n else if (this.peek((0, _tokenKindMjs.TokenKind).BRACE_L)) return this.parseOperationDefinition();\n else if (this.peekDescription()) return this.parseTypeSystemDefinition();\n throw this.unexpected();\n } // Implements the parsing rules in the Operations section.\n /**\n * OperationDefinition :\n * - SelectionSet\n * - OperationType Name? VariableDefinitions? Directives? SelectionSet\n */ ;\n _proto.parseOperationDefinition = function parseOperationDefinition() {\n var start = this._lexer.token;\n if (this.peek((0, _tokenKindMjs.TokenKind).BRACE_L)) return {\n kind: (0, _kindsMjs.Kind).OPERATION_DEFINITION,\n operation: \"query\",\n name: undefined,\n variableDefinitions: [],\n directives: [],\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n var operation = this.parseOperationType();\n var name;\n if (this.peek((0, _tokenKindMjs.TokenKind).NAME)) name = this.parseName();\n return {\n kind: (0, _kindsMjs.Kind).OPERATION_DEFINITION,\n operation: operation,\n name: name,\n variableDefinitions: this.parseVariableDefinitions(),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n } /**\n * OperationType : one of query mutation subscription\n */ ;\n _proto.parseOperationType = function parseOperationType() {\n var operationToken = this.expectToken((0, _tokenKindMjs.TokenKind).NAME);\n switch(operationToken.value){\n case \"query\":\n return \"query\";\n case \"mutation\":\n return \"mutation\";\n case \"subscription\":\n return \"subscription\";\n }\n throw this.unexpected(operationToken);\n } /**\n * VariableDefinitions : ( VariableDefinition+ )\n */ ;\n _proto.parseVariableDefinitions = function parseVariableDefinitions() {\n return this.optionalMany((0, _tokenKindMjs.TokenKind).PAREN_L, this.parseVariableDefinition, (0, _tokenKindMjs.TokenKind).PAREN_R);\n } /**\n * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?\n */ ;\n _proto.parseVariableDefinition = function parseVariableDefinition() {\n var start = this._lexer.token;\n return {\n kind: (0, _kindsMjs.Kind).VARIABLE_DEFINITION,\n variable: this.parseVariable(),\n type: (this.expectToken((0, _tokenKindMjs.TokenKind).COLON), this.parseTypeReference()),\n defaultValue: this.expectOptionalToken((0, _tokenKindMjs.TokenKind).EQUALS) ? this.parseValueLiteral(true) : undefined,\n directives: this.parseDirectives(true),\n loc: this.loc(start)\n };\n } /**\n * Variable : $ Name\n */ ;\n _proto.parseVariable = function parseVariable() {\n var start = this._lexer.token;\n this.expectToken((0, _tokenKindMjs.TokenKind).DOLLAR);\n return {\n kind: (0, _kindsMjs.Kind).VARIABLE,\n name: this.parseName(),\n loc: this.loc(start)\n };\n } /**\n * SelectionSet : { Selection+ }\n */ ;\n _proto.parseSelectionSet = function parseSelectionSet() {\n var start = this._lexer.token;\n return {\n kind: (0, _kindsMjs.Kind).SELECTION_SET,\n selections: this.many((0, _tokenKindMjs.TokenKind).BRACE_L, this.parseSelection, (0, _tokenKindMjs.TokenKind).BRACE_R),\n loc: this.loc(start)\n };\n } /**\n * Selection :\n * - Field\n * - FragmentSpread\n * - InlineFragment\n */ ;\n _proto.parseSelection = function parseSelection() {\n return this.peek((0, _tokenKindMjs.TokenKind).SPREAD) ? this.parseFragment() : this.parseField();\n } /**\n * Field : Alias? Name Arguments? Directives? SelectionSet?\n *\n * Alias : Name :\n */ ;\n _proto.parseField = function parseField() {\n var start = this._lexer.token;\n var nameOrAlias = this.parseName();\n var alias;\n var name;\n if (this.expectOptionalToken((0, _tokenKindMjs.TokenKind).COLON)) {\n alias = nameOrAlias;\n name = this.parseName();\n } else name = nameOrAlias;\n return {\n kind: (0, _kindsMjs.Kind).FIELD,\n alias: alias,\n name: name,\n arguments: this.parseArguments(false),\n directives: this.parseDirectives(false),\n selectionSet: this.peek((0, _tokenKindMjs.TokenKind).BRACE_L) ? this.parseSelectionSet() : undefined,\n loc: this.loc(start)\n };\n } /**\n * Arguments[Const] : ( Argument[?Const]+ )\n */ ;\n _proto.parseArguments = function parseArguments(isConst) {\n var item = isConst ? this.parseConstArgument : this.parseArgument;\n return this.optionalMany((0, _tokenKindMjs.TokenKind).PAREN_L, item, (0, _tokenKindMjs.TokenKind).PAREN_R);\n } /**\n * Argument[Const] : Name : Value[?Const]\n */ ;\n _proto.parseArgument = function parseArgument() {\n var start = this._lexer.token;\n var name = this.parseName();\n this.expectToken((0, _tokenKindMjs.TokenKind).COLON);\n return {\n kind: (0, _kindsMjs.Kind).ARGUMENT,\n name: name,\n value: this.parseValueLiteral(false),\n loc: this.loc(start)\n };\n };\n _proto.parseConstArgument = function parseConstArgument() {\n var start = this._lexer.token;\n return {\n kind: (0, _kindsMjs.Kind).ARGUMENT,\n name: this.parseName(),\n value: (this.expectToken((0, _tokenKindMjs.TokenKind).COLON), this.parseValueLiteral(true)),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Fragments section.\n /**\n * Corresponds to both FragmentSpread and InlineFragment in the spec.\n *\n * FragmentSpread : ... FragmentName Directives?\n *\n * InlineFragment : ... TypeCondition? Directives? SelectionSet\n */ ;\n _proto.parseFragment = function parseFragment() {\n var start = this._lexer.token;\n this.expectToken((0, _tokenKindMjs.TokenKind).SPREAD);\n var hasTypeCondition = this.expectOptionalKeyword(\"on\");\n if (!hasTypeCondition && this.peek((0, _tokenKindMjs.TokenKind).NAME)) return {\n kind: (0, _kindsMjs.Kind).FRAGMENT_SPREAD,\n name: this.parseFragmentName(),\n directives: this.parseDirectives(false),\n loc: this.loc(start)\n };\n return {\n kind: (0, _kindsMjs.Kind).INLINE_FRAGMENT,\n typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n } /**\n * FragmentDefinition :\n * - fragment FragmentName on TypeCondition Directives? SelectionSet\n *\n * TypeCondition : NamedType\n */ ;\n _proto.parseFragmentDefinition = function parseFragmentDefinition() {\n var _this$_options;\n var start = this._lexer.token;\n this.expectKeyword(\"fragment\"); // Experimental support for defining variables within fragments changes\n // the grammar of FragmentDefinition:\n // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet\n if (((_this$_options = this._options) === null || _this$_options === void 0 ? void 0 : _this$_options.experimentalFragmentVariables) === true) return {\n kind: (0, _kindsMjs.Kind).FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n variableDefinitions: this.parseVariableDefinitions(),\n typeCondition: (this.expectKeyword(\"on\"), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n return {\n kind: (0, _kindsMjs.Kind).FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n typeCondition: (this.expectKeyword(\"on\"), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n } /**\n * FragmentName : Name but not `on`\n */ ;\n _proto.parseFragmentName = function parseFragmentName() {\n if (this._lexer.token.value === \"on\") throw this.unexpected();\n return this.parseName();\n } // Implements the parsing rules in the Values section.\n /**\n * Value[Const] :\n * - [~Const] Variable\n * - IntValue\n * - FloatValue\n * - StringValue\n * - BooleanValue\n * - NullValue\n * - EnumValue\n * - ListValue[?Const]\n * - ObjectValue[?Const]\n *\n * BooleanValue : one of `true` `false`\n *\n * NullValue : `null`\n *\n * EnumValue : Name but not `true`, `false` or `null`\n */ ;\n _proto.parseValueLiteral = function parseValueLiteral(isConst) {\n var token = this._lexer.token;\n switch(token.kind){\n case (0, _tokenKindMjs.TokenKind).BRACKET_L:\n return this.parseList(isConst);\n case (0, _tokenKindMjs.TokenKind).BRACE_L:\n return this.parseObject(isConst);\n case (0, _tokenKindMjs.TokenKind).INT:\n this._lexer.advance();\n return {\n kind: (0, _kindsMjs.Kind).INT,\n value: token.value,\n loc: this.loc(token)\n };\n case (0, _tokenKindMjs.TokenKind).FLOAT:\n this._lexer.advance();\n return {\n kind: (0, _kindsMjs.Kind).FLOAT,\n value: token.value,\n loc: this.loc(token)\n };\n case (0, _tokenKindMjs.TokenKind).STRING:\n case (0, _tokenKindMjs.TokenKind).BLOCK_STRING:\n return this.parseStringLiteral();\n case (0, _tokenKindMjs.TokenKind).NAME:\n this._lexer.advance();\n switch(token.value){\n case \"true\":\n return {\n kind: (0, _kindsMjs.Kind).BOOLEAN,\n value: true,\n loc: this.loc(token)\n };\n case \"false\":\n return {\n kind: (0, _kindsMjs.Kind).BOOLEAN,\n value: false,\n loc: this.loc(token)\n };\n case \"null\":\n return {\n kind: (0, _kindsMjs.Kind).NULL,\n loc: this.loc(token)\n };\n default:\n return {\n kind: (0, _kindsMjs.Kind).ENUM,\n value: token.value,\n loc: this.loc(token)\n };\n }\n case (0, _tokenKindMjs.TokenKind).DOLLAR:\n if (!isConst) return this.parseVariable();\n break;\n }\n throw this.unexpected();\n };\n _proto.parseStringLiteral = function parseStringLiteral() {\n var token = this._lexer.token;\n this._lexer.advance();\n return {\n kind: (0, _kindsMjs.Kind).STRING,\n value: token.value,\n block: token.kind === (0, _tokenKindMjs.TokenKind).BLOCK_STRING,\n loc: this.loc(token)\n };\n } /**\n * ListValue[Const] :\n * - [ ]\n * - [ Value[?Const]+ ]\n */ ;\n _proto.parseList = function parseList(isConst) {\n var _this = this;\n var start = this._lexer.token;\n var item = function item() {\n return _this.parseValueLiteral(isConst);\n };\n return {\n kind: (0, _kindsMjs.Kind).LIST,\n values: this.any((0, _tokenKindMjs.TokenKind).BRACKET_L, item, (0, _tokenKindMjs.TokenKind).BRACKET_R),\n loc: this.loc(start)\n };\n } /**\n * ObjectValue[Const] :\n * - { }\n * - { ObjectField[?Const]+ }\n */ ;\n _proto.parseObject = function parseObject(isConst) {\n var _this2 = this;\n var start = this._lexer.token;\n var item = function item() {\n return _this2.parseObjectField(isConst);\n };\n return {\n kind: (0, _kindsMjs.Kind).OBJECT,\n fields: this.any((0, _tokenKindMjs.TokenKind).BRACE_L, item, (0, _tokenKindMjs.TokenKind).BRACE_R),\n loc: this.loc(start)\n };\n } /**\n * ObjectField[Const] : Name : Value[?Const]\n */ ;\n _proto.parseObjectField = function parseObjectField(isConst) {\n var start = this._lexer.token;\n var name = this.parseName();\n this.expectToken((0, _tokenKindMjs.TokenKind).COLON);\n return {\n kind: (0, _kindsMjs.Kind).OBJECT_FIELD,\n name: name,\n value: this.parseValueLiteral(isConst),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Directives section.\n /**\n * Directives[Const] : Directive[?Const]+\n */ ;\n _proto.parseDirectives = function parseDirectives(isConst) {\n var directives = [];\n while(this.peek((0, _tokenKindMjs.TokenKind).AT))directives.push(this.parseDirective(isConst));\n return directives;\n } /**\n * Directive[Const] : @ Name Arguments[?Const]?\n */ ;\n _proto.parseDirective = function parseDirective(isConst) {\n var start = this._lexer.token;\n this.expectToken((0, _tokenKindMjs.TokenKind).AT);\n return {\n kind: (0, _kindsMjs.Kind).DIRECTIVE,\n name: this.parseName(),\n arguments: this.parseArguments(isConst),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Types section.\n /**\n * Type :\n * - NamedType\n * - ListType\n * - NonNullType\n */ ;\n _proto.parseTypeReference = function parseTypeReference() {\n var start = this._lexer.token;\n var type;\n if (this.expectOptionalToken((0, _tokenKindMjs.TokenKind).BRACKET_L)) {\n type = this.parseTypeReference();\n this.expectToken((0, _tokenKindMjs.TokenKind).BRACKET_R);\n type = {\n kind: (0, _kindsMjs.Kind).LIST_TYPE,\n type: type,\n loc: this.loc(start)\n };\n } else type = this.parseNamedType();\n if (this.expectOptionalToken((0, _tokenKindMjs.TokenKind).BANG)) return {\n kind: (0, _kindsMjs.Kind).NON_NULL_TYPE,\n type: type,\n loc: this.loc(start)\n };\n return type;\n } /**\n * NamedType : Name\n */ ;\n _proto.parseNamedType = function parseNamedType() {\n var start = this._lexer.token;\n return {\n kind: (0, _kindsMjs.Kind).NAMED_TYPE,\n name: this.parseName(),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Type Definition section.\n /**\n * TypeSystemDefinition :\n * - SchemaDefinition\n * - TypeDefinition\n * - DirectiveDefinition\n *\n * TypeDefinition :\n * - ScalarTypeDefinition\n * - ObjectTypeDefinition\n * - InterfaceTypeDefinition\n * - UnionTypeDefinition\n * - EnumTypeDefinition\n * - InputObjectTypeDefinition\n */ ;\n _proto.parseTypeSystemDefinition = function parseTypeSystemDefinition() {\n // Many definitions begin with a description and require a lookahead.\n var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;\n if (keywordToken.kind === (0, _tokenKindMjs.TokenKind).NAME) switch(keywordToken.value){\n case \"schema\":\n return this.parseSchemaDefinition();\n case \"scalar\":\n return this.parseScalarTypeDefinition();\n case \"type\":\n return this.parseObjectTypeDefinition();\n case \"interface\":\n return this.parseInterfaceTypeDefinition();\n case \"union\":\n return this.parseUnionTypeDefinition();\n case \"enum\":\n return this.parseEnumTypeDefinition();\n case \"input\":\n return this.parseInputObjectTypeDefinition();\n case \"directive\":\n return this.parseDirectiveDefinition();\n }\n throw this.unexpected(keywordToken);\n };\n _proto.peekDescription = function peekDescription() {\n return this.peek((0, _tokenKindMjs.TokenKind).STRING) || this.peek((0, _tokenKindMjs.TokenKind).BLOCK_STRING);\n } /**\n * Description : StringValue\n */ ;\n _proto.parseDescription = function parseDescription() {\n if (this.peekDescription()) return this.parseStringLiteral();\n } /**\n * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }\n */ ;\n _proto.parseSchemaDefinition = function parseSchemaDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"schema\");\n var directives = this.parseDirectives(true);\n var operationTypes = this.many((0, _tokenKindMjs.TokenKind).BRACE_L, this.parseOperationTypeDefinition, (0, _tokenKindMjs.TokenKind).BRACE_R);\n return {\n kind: (0, _kindsMjs.Kind).SCHEMA_DEFINITION,\n description: description,\n directives: directives,\n operationTypes: operationTypes,\n loc: this.loc(start)\n };\n } /**\n * OperationTypeDefinition : OperationType : NamedType\n */ ;\n _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {\n var start = this._lexer.token;\n var operation = this.parseOperationType();\n this.expectToken((0, _tokenKindMjs.TokenKind).COLON);\n var type = this.parseNamedType();\n return {\n kind: (0, _kindsMjs.Kind).OPERATION_TYPE_DEFINITION,\n operation: operation,\n type: type,\n loc: this.loc(start)\n };\n } /**\n * ScalarTypeDefinition : Description? scalar Name Directives[Const]?\n */ ;\n _proto.parseScalarTypeDefinition = function parseScalarTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"scalar\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n return {\n kind: (0, _kindsMjs.Kind).SCALAR_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n } /**\n * ObjectTypeDefinition :\n * Description?\n * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?\n */ ;\n _proto.parseObjectTypeDefinition = function parseObjectTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"type\");\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n return {\n kind: (0, _kindsMjs.Kind).OBJECT_TYPE_DEFINITION,\n description: description,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n } /**\n * ImplementsInterfaces :\n * - implements `&`? NamedType\n * - ImplementsInterfaces & NamedType\n */ ;\n _proto.parseImplementsInterfaces = function parseImplementsInterfaces() {\n var _this$_options2;\n if (!this.expectOptionalKeyword(\"implements\")) return [];\n if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {\n var types = []; // Optional leading ampersand\n this.expectOptionalToken((0, _tokenKindMjs.TokenKind).AMP);\n do types.push(this.parseNamedType());\n while (this.expectOptionalToken((0, _tokenKindMjs.TokenKind).AMP) || this.peek((0, _tokenKindMjs.TokenKind).NAME));\n return types;\n }\n return this.delimitedMany((0, _tokenKindMjs.TokenKind).AMP, this.parseNamedType);\n } /**\n * FieldsDefinition : { FieldDefinition+ }\n */ ;\n _proto.parseFieldsDefinition = function parseFieldsDefinition() {\n var _this$_options3;\n // Legacy support for the SDL?\n if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek((0, _tokenKindMjs.TokenKind).BRACE_L) && this._lexer.lookahead().kind === (0, _tokenKindMjs.TokenKind).BRACE_R) {\n this._lexer.advance();\n this._lexer.advance();\n return [];\n }\n return this.optionalMany((0, _tokenKindMjs.TokenKind).BRACE_L, this.parseFieldDefinition, (0, _tokenKindMjs.TokenKind).BRACE_R);\n } /**\n * FieldDefinition :\n * - Description? Name ArgumentsDefinition? : Type Directives[Const]?\n */ ;\n _proto.parseFieldDefinition = function parseFieldDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n var args = this.parseArgumentDefs();\n this.expectToken((0, _tokenKindMjs.TokenKind).COLON);\n var type = this.parseTypeReference();\n var directives = this.parseDirectives(true);\n return {\n kind: (0, _kindsMjs.Kind).FIELD_DEFINITION,\n description: description,\n name: name,\n arguments: args,\n type: type,\n directives: directives,\n loc: this.loc(start)\n };\n } /**\n * ArgumentsDefinition : ( InputValueDefinition+ )\n */ ;\n _proto.parseArgumentDefs = function parseArgumentDefs() {\n return this.optionalMany((0, _tokenKindMjs.TokenKind).PAREN_L, this.parseInputValueDef, (0, _tokenKindMjs.TokenKind).PAREN_R);\n } /**\n * InputValueDefinition :\n * - Description? Name : Type DefaultValue? Directives[Const]?\n */ ;\n _proto.parseInputValueDef = function parseInputValueDef() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n this.expectToken((0, _tokenKindMjs.TokenKind).COLON);\n var type = this.parseTypeReference();\n var defaultValue;\n if (this.expectOptionalToken((0, _tokenKindMjs.TokenKind).EQUALS)) defaultValue = this.parseValueLiteral(true);\n var directives = this.parseDirectives(true);\n return {\n kind: (0, _kindsMjs.Kind).INPUT_VALUE_DEFINITION,\n description: description,\n name: name,\n type: type,\n defaultValue: defaultValue,\n directives: directives,\n loc: this.loc(start)\n };\n } /**\n * InterfaceTypeDefinition :\n * - Description? interface Name Directives[Const]? FieldsDefinition?\n */ ;\n _proto.parseInterfaceTypeDefinition = function parseInterfaceTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"interface\");\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n return {\n kind: (0, _kindsMjs.Kind).INTERFACE_TYPE_DEFINITION,\n description: description,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n } /**\n * UnionTypeDefinition :\n * - Description? union Name Directives[Const]? UnionMemberTypes?\n */ ;\n _proto.parseUnionTypeDefinition = function parseUnionTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"union\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var types = this.parseUnionMemberTypes();\n return {\n kind: (0, _kindsMjs.Kind).UNION_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n types: types,\n loc: this.loc(start)\n };\n } /**\n * UnionMemberTypes :\n * - = `|`? NamedType\n * - UnionMemberTypes | NamedType\n */ ;\n _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {\n return this.expectOptionalToken((0, _tokenKindMjs.TokenKind).EQUALS) ? this.delimitedMany((0, _tokenKindMjs.TokenKind).PIPE, this.parseNamedType) : [];\n } /**\n * EnumTypeDefinition :\n * - Description? enum Name Directives[Const]? EnumValuesDefinition?\n */ ;\n _proto.parseEnumTypeDefinition = function parseEnumTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"enum\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var values = this.parseEnumValuesDefinition();\n return {\n kind: (0, _kindsMjs.Kind).ENUM_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n values: values,\n loc: this.loc(start)\n };\n } /**\n * EnumValuesDefinition : { EnumValueDefinition+ }\n */ ;\n _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {\n return this.optionalMany((0, _tokenKindMjs.TokenKind).BRACE_L, this.parseEnumValueDefinition, (0, _tokenKindMjs.TokenKind).BRACE_R);\n } /**\n * EnumValueDefinition : Description? EnumValue Directives[Const]?\n *\n * EnumValue : Name\n */ ;\n _proto.parseEnumValueDefinition = function parseEnumValueDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n return {\n kind: (0, _kindsMjs.Kind).ENUM_VALUE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n } /**\n * InputObjectTypeDefinition :\n * - Description? input Name Directives[Const]? InputFieldsDefinition?\n */ ;\n _proto.parseInputObjectTypeDefinition = function parseInputObjectTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"input\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var fields = this.parseInputFieldsDefinition();\n return {\n kind: (0, _kindsMjs.Kind).INPUT_OBJECT_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n } /**\n * InputFieldsDefinition : { InputValueDefinition+ }\n */ ;\n _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {\n return this.optionalMany((0, _tokenKindMjs.TokenKind).BRACE_L, this.parseInputValueDef, (0, _tokenKindMjs.TokenKind).BRACE_R);\n } /**\n * TypeSystemExtension :\n * - SchemaExtension\n * - TypeExtension\n *\n * TypeExtension :\n * - ScalarTypeExtension\n * - ObjectTypeExtension\n * - InterfaceTypeExtension\n * - UnionTypeExtension\n * - EnumTypeExtension\n * - InputObjectTypeDefinition\n */ ;\n _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {\n var keywordToken = this._lexer.lookahead();\n if (keywordToken.kind === (0, _tokenKindMjs.TokenKind).NAME) switch(keywordToken.value){\n case \"schema\":\n return this.parseSchemaExtension();\n case \"scalar\":\n return this.parseScalarTypeExtension();\n case \"type\":\n return this.parseObjectTypeExtension();\n case \"interface\":\n return this.parseInterfaceTypeExtension();\n case \"union\":\n return this.parseUnionTypeExtension();\n case \"enum\":\n return this.parseEnumTypeExtension();\n case \"input\":\n return this.parseInputObjectTypeExtension();\n }\n throw this.unexpected(keywordToken);\n } /**\n * SchemaExtension :\n * - extend schema Directives[Const]? { OperationTypeDefinition+ }\n * - extend schema Directives[Const]\n */ ;\n _proto.parseSchemaExtension = function parseSchemaExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"schema\");\n var directives = this.parseDirectives(true);\n var operationTypes = this.optionalMany((0, _tokenKindMjs.TokenKind).BRACE_L, this.parseOperationTypeDefinition, (0, _tokenKindMjs.TokenKind).BRACE_R);\n if (directives.length === 0 && operationTypes.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).SCHEMA_EXTENSION,\n directives: directives,\n operationTypes: operationTypes,\n loc: this.loc(start)\n };\n } /**\n * ScalarTypeExtension :\n * - extend scalar Name Directives[Const]\n */ ;\n _proto.parseScalarTypeExtension = function parseScalarTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"scalar\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n if (directives.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).SCALAR_TYPE_EXTENSION,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n } /**\n * ObjectTypeExtension :\n * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend type Name ImplementsInterfaces? Directives[Const]\n * - extend type Name ImplementsInterfaces\n */ ;\n _proto.parseObjectTypeExtension = function parseObjectTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"type\");\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).OBJECT_TYPE_EXTENSION,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n } /**\n * InterfaceTypeExtension :\n * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend interface Name ImplementsInterfaces? Directives[Const]\n * - extend interface Name ImplementsInterfaces\n */ ;\n _proto.parseInterfaceTypeExtension = function parseInterfaceTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"interface\");\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).INTERFACE_TYPE_EXTENSION,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n } /**\n * UnionTypeExtension :\n * - extend union Name Directives[Const]? UnionMemberTypes\n * - extend union Name Directives[Const]\n */ ;\n _proto.parseUnionTypeExtension = function parseUnionTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"union\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var types = this.parseUnionMemberTypes();\n if (directives.length === 0 && types.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).UNION_TYPE_EXTENSION,\n name: name,\n directives: directives,\n types: types,\n loc: this.loc(start)\n };\n } /**\n * EnumTypeExtension :\n * - extend enum Name Directives[Const]? EnumValuesDefinition\n * - extend enum Name Directives[Const]\n */ ;\n _proto.parseEnumTypeExtension = function parseEnumTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"enum\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var values = this.parseEnumValuesDefinition();\n if (directives.length === 0 && values.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).ENUM_TYPE_EXTENSION,\n name: name,\n directives: directives,\n values: values,\n loc: this.loc(start)\n };\n } /**\n * InputObjectTypeExtension :\n * - extend input Name Directives[Const]? InputFieldsDefinition\n * - extend input Name Directives[Const]\n */ ;\n _proto.parseInputObjectTypeExtension = function parseInputObjectTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword(\"extend\");\n this.expectKeyword(\"input\");\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var fields = this.parseInputFieldsDefinition();\n if (directives.length === 0 && fields.length === 0) throw this.unexpected();\n return {\n kind: (0, _kindsMjs.Kind).INPUT_OBJECT_TYPE_EXTENSION,\n name: name,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n } /**\n * DirectiveDefinition :\n * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations\n */ ;\n _proto.parseDirectiveDefinition = function parseDirectiveDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword(\"directive\");\n this.expectToken((0, _tokenKindMjs.TokenKind).AT);\n var name = this.parseName();\n var args = this.parseArgumentDefs();\n var repeatable = this.expectOptionalKeyword(\"repeatable\");\n this.expectKeyword(\"on\");\n var locations = this.parseDirectiveLocations();\n return {\n kind: (0, _kindsMjs.Kind).DIRECTIVE_DEFINITION,\n description: description,\n name: name,\n arguments: args,\n repeatable: repeatable,\n locations: locations,\n loc: this.loc(start)\n };\n } /**\n * DirectiveLocations :\n * - `|`? DirectiveLocation\n * - DirectiveLocations | DirectiveLocation\n */ ;\n _proto.parseDirectiveLocations = function parseDirectiveLocations() {\n return this.delimitedMany((0, _tokenKindMjs.TokenKind).PIPE, this.parseDirectiveLocation);\n } /*\n * DirectiveLocation :\n * - ExecutableDirectiveLocation\n * - TypeSystemDirectiveLocation\n *\n * ExecutableDirectiveLocation : one of\n * `QUERY`\n * `MUTATION`\n * `SUBSCRIPTION`\n * `FIELD`\n * `FRAGMENT_DEFINITION`\n * `FRAGMENT_SPREAD`\n * `INLINE_FRAGMENT`\n *\n * TypeSystemDirectiveLocation : one of\n * `SCHEMA`\n * `SCALAR`\n * `OBJECT`\n * `FIELD_DEFINITION`\n * `ARGUMENT_DEFINITION`\n * `INTERFACE`\n * `UNION`\n * `ENUM`\n * `ENUM_VALUE`\n * `INPUT_OBJECT`\n * `INPUT_FIELD_DEFINITION`\n */ ;\n _proto.parseDirectiveLocation = function parseDirectiveLocation() {\n var start = this._lexer.token;\n var name = this.parseName();\n if ((0, _directiveLocationMjs.DirectiveLocation)[name.value] !== undefined) return name;\n throw this.unexpected(start);\n } // Core parsing utility functions\n /**\n * Returns a location object, used to identify the place in the source that created a given parsed object.\n */ ;\n _proto.loc = function loc(startToken) {\n var _this$_options4;\n if (((_this$_options4 = this._options) === null || _this$_options4 === void 0 ? void 0 : _this$_options4.noLocation) !== true) return new (0, _astMjs.Location)(startToken, this._lexer.lastToken, this._lexer.source);\n } /**\n * Determines if the next token is of a given kind\n */ ;\n _proto.peek = function peek(kind) {\n return this._lexer.token.kind === kind;\n } /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */ ;\n _proto.expectToken = function expectToken(kind) {\n var token = this._lexer.token;\n if (token.kind === kind) {\n this._lexer.advance();\n return token;\n }\n throw (0, _syntaxErrorMjs.syntaxError)(this._lexer.source, token.start, \"Expected \".concat(getTokenKindDesc(kind), \", found \").concat(getTokenDesc(token), \".\"));\n } /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and return undefined.\n */ ;\n _proto.expectOptionalToken = function expectOptionalToken(kind) {\n var token = this._lexer.token;\n if (token.kind === kind) {\n this._lexer.advance();\n return token;\n }\n return undefined;\n } /**\n * If the next token is a given keyword, advance the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */ ;\n _proto.expectKeyword = function expectKeyword(value) {\n var token = this._lexer.token;\n if (token.kind === (0, _tokenKindMjs.TokenKind).NAME && token.value === value) this._lexer.advance();\n else throw (0, _syntaxErrorMjs.syntaxError)(this._lexer.source, token.start, 'Expected \"'.concat(value, '\", found ').concat(getTokenDesc(token), \".\"));\n } /**\n * If the next token is a given keyword, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */ ;\n _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {\n var token = this._lexer.token;\n if (token.kind === (0, _tokenKindMjs.TokenKind).NAME && token.value === value) {\n this._lexer.advance();\n return true;\n }\n return false;\n } /**\n * Helper function for creating an error when an unexpected lexed token is encountered.\n */ ;\n _proto.unexpected = function unexpected(atToken) {\n var token = atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;\n return (0, _syntaxErrorMjs.syntaxError)(this._lexer.source, token.start, \"Unexpected \".concat(getTokenDesc(token), \".\"));\n } /**\n * Returns a possibly empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */ ;\n _proto.any = function any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n var nodes = [];\n while(!this.expectOptionalToken(closeKind))nodes.push(parseFn.call(this));\n return nodes;\n } /**\n * Returns a list of parse nodes, determined by the parseFn.\n * It can be empty only if open token is missing otherwise it will always return non-empty list\n * that begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */ ;\n _proto.optionalMany = function optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n var nodes = [];\n do nodes.push(parseFn.call(this));\n while (!this.expectOptionalToken(closeKind));\n return nodes;\n }\n return [];\n } /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */ ;\n _proto.many = function many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n var nodes = [];\n do nodes.push(parseFn.call(this));\n while (!this.expectOptionalToken(closeKind));\n return nodes;\n } /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.\n * Advances the parser to the next lex token after last item in the list.\n */ ;\n _proto.delimitedMany = function delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n var nodes = [];\n do nodes.push(parseFn.call(this));\n while (this.expectOptionalToken(delimiterKind));\n return nodes;\n };\n return Parser;\n}();\n/**\n * A helper function to describe a token as a string for debugging.\n */ function getTokenDesc(token) {\n var value = token.value;\n return getTokenKindDesc(token.kind) + (value != null ? ' \"'.concat(value, '\"') : \"\");\n}\n/**\n * A helper function to describe a token kind as a string for debugging.\n */ function getTokenKindDesc(kind) {\n return (0, _lexerMjs.isPunctuatorTokenKind)(kind) ? '\"'.concat(kind, '\"') : kind;\n}\n\n},{\"../error/syntaxError.mjs\":\"5mJxx\",\"./kinds.mjs\":\"9hEEX\",\"./ast.mjs\":\"fbjye\",\"./tokenKind.mjs\":\"2CCFz\",\"./source.mjs\":\"8OEpO\",\"./directiveLocation.mjs\":\"lKgz6\",\"./lexer.mjs\":\"6B9aw\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lKgz6\":[function(require,module,exports) {\n/**\n * The set of allowed directive location values.\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DirectiveLocation\", ()=>DirectiveLocation);\nvar DirectiveLocation = Object.freeze({\n // Request Definitions\n QUERY: \"QUERY\",\n MUTATION: \"MUTATION\",\n SUBSCRIPTION: \"SUBSCRIPTION\",\n FIELD: \"FIELD\",\n FRAGMENT_DEFINITION: \"FRAGMENT_DEFINITION\",\n FRAGMENT_SPREAD: \"FRAGMENT_SPREAD\",\n INLINE_FRAGMENT: \"INLINE_FRAGMENT\",\n VARIABLE_DEFINITION: \"VARIABLE_DEFINITION\",\n // Type System Definitions\n SCHEMA: \"SCHEMA\",\n SCALAR: \"SCALAR\",\n OBJECT: \"OBJECT\",\n FIELD_DEFINITION: \"FIELD_DEFINITION\",\n ARGUMENT_DEFINITION: \"ARGUMENT_DEFINITION\",\n INTERFACE: \"INTERFACE\",\n UNION: \"UNION\",\n ENUM: \"ENUM\",\n ENUM_VALUE: \"ENUM_VALUE\",\n INPUT_OBJECT: \"INPUT_OBJECT\",\n INPUT_FIELD_DEFINITION: \"INPUT_FIELD_DEFINITION\"\n}); /**\n * The enum type representing the directive location values.\n */ \n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"c8XDu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */ parcelHelpers.export(exports, \"print\", ()=>print);\nvar _visitorMjs = require(\"./visitor.mjs\");\nvar _blockStringMjs = require(\"./blockString.mjs\");\nfunction print(ast) {\n return (0, _visitorMjs.visit)(ast, {\n leave: printDocASTReducer\n });\n}\nvar MAX_LINE_LENGTH = 80; // TODO: provide better type coverage in future\nvar printDocASTReducer = {\n Name: function Name(node) {\n return node.value;\n },\n Variable: function Variable(node) {\n return \"$\" + node.name;\n },\n // Document\n Document: function Document(node) {\n return join(node.definitions, \"\\n\\n\") + \"\\n\";\n },\n OperationDefinition: function OperationDefinition(node) {\n var op = node.operation;\n var name = node.name;\n var varDefs = wrap(\"(\", join(node.variableDefinitions, \", \"), \")\");\n var directives = join(node.directives, \" \");\n var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n return !name && !directives && !varDefs && op === \"query\" ? selectionSet : join([\n op,\n join([\n name,\n varDefs\n ]),\n directives,\n selectionSet\n ], \" \");\n },\n VariableDefinition: function VariableDefinition(_ref) {\n var variable = _ref.variable, type = _ref.type, defaultValue = _ref.defaultValue, directives = _ref.directives;\n return variable + \": \" + type + wrap(\" = \", defaultValue) + wrap(\" \", join(directives, \" \"));\n },\n SelectionSet: function SelectionSet(_ref2) {\n var selections = _ref2.selections;\n return block(selections);\n },\n Field: function Field(_ref3) {\n var alias = _ref3.alias, name = _ref3.name, args = _ref3.arguments, directives = _ref3.directives, selectionSet = _ref3.selectionSet;\n var prefix = wrap(\"\", alias, \": \") + name;\n var argsLine = prefix + wrap(\"(\", join(args, \", \"), \")\");\n if (argsLine.length > MAX_LINE_LENGTH) argsLine = prefix + wrap(\"(\\n\", indent(join(args, \"\\n\")), \"\\n)\");\n return join([\n argsLine,\n join(directives, \" \"),\n selectionSet\n ], \" \");\n },\n Argument: function Argument(_ref4) {\n var name = _ref4.name, value = _ref4.value;\n return name + \": \" + value;\n },\n // Fragments\n FragmentSpread: function FragmentSpread(_ref5) {\n var name = _ref5.name, directives = _ref5.directives;\n return \"...\" + name + wrap(\" \", join(directives, \" \"));\n },\n InlineFragment: function InlineFragment(_ref6) {\n var typeCondition = _ref6.typeCondition, directives = _ref6.directives, selectionSet = _ref6.selectionSet;\n return join([\n \"...\",\n wrap(\"on \", typeCondition),\n join(directives, \" \"),\n selectionSet\n ], \" \");\n },\n FragmentDefinition: function FragmentDefinition(_ref7) {\n var name = _ref7.name, typeCondition = _ref7.typeCondition, variableDefinitions = _ref7.variableDefinitions, directives = _ref7.directives, selectionSet = _ref7.selectionSet;\n return(// or removed in the future.\n \"fragment \".concat(name).concat(wrap(\"(\", join(variableDefinitions, \", \"), \")\"), \" \") + \"on \".concat(typeCondition, \" \").concat(wrap(\"\", join(directives, \" \"), \" \")) + selectionSet);\n },\n // Value\n IntValue: function IntValue(_ref8) {\n var value = _ref8.value;\n return value;\n },\n FloatValue: function FloatValue(_ref9) {\n var value = _ref9.value;\n return value;\n },\n StringValue: function StringValue(_ref10, key) {\n var value = _ref10.value, isBlockString = _ref10.block;\n return isBlockString ? (0, _blockStringMjs.printBlockString)(value, key === \"description\" ? \"\" : \" \") : JSON.stringify(value);\n },\n BooleanValue: function BooleanValue(_ref11) {\n var value = _ref11.value;\n return value ? \"true\" : \"false\";\n },\n NullValue: function NullValue() {\n return \"null\";\n },\n EnumValue: function EnumValue(_ref12) {\n var value = _ref12.value;\n return value;\n },\n ListValue: function ListValue(_ref13) {\n var values = _ref13.values;\n return \"[\" + join(values, \", \") + \"]\";\n },\n ObjectValue: function ObjectValue(_ref14) {\n var fields = _ref14.fields;\n return \"{\" + join(fields, \", \") + \"}\";\n },\n ObjectField: function ObjectField(_ref15) {\n var name = _ref15.name, value = _ref15.value;\n return name + \": \" + value;\n },\n // Directive\n Directive: function Directive(_ref16) {\n var name = _ref16.name, args = _ref16.arguments;\n return \"@\" + name + wrap(\"(\", join(args, \", \"), \")\");\n },\n // Type\n NamedType: function NamedType(_ref17) {\n var name = _ref17.name;\n return name;\n },\n ListType: function ListType(_ref18) {\n var type = _ref18.type;\n return \"[\" + type + \"]\";\n },\n NonNullType: function NonNullType(_ref19) {\n var type = _ref19.type;\n return type + \"!\";\n },\n // Type System Definitions\n SchemaDefinition: addDescription(function(_ref20) {\n var directives = _ref20.directives, operationTypes = _ref20.operationTypes;\n return join([\n \"schema\",\n join(directives, \" \"),\n block(operationTypes)\n ], \" \");\n }),\n OperationTypeDefinition: function OperationTypeDefinition(_ref21) {\n var operation = _ref21.operation, type = _ref21.type;\n return operation + \": \" + type;\n },\n ScalarTypeDefinition: addDescription(function(_ref22) {\n var name = _ref22.name, directives = _ref22.directives;\n return join([\n \"scalar\",\n name,\n join(directives, \" \")\n ], \" \");\n }),\n ObjectTypeDefinition: addDescription(function(_ref23) {\n var name = _ref23.name, interfaces = _ref23.interfaces, directives = _ref23.directives, fields = _ref23.fields;\n return join([\n \"type\",\n name,\n wrap(\"implements \", join(interfaces, \" & \")),\n join(directives, \" \"),\n block(fields)\n ], \" \");\n }),\n FieldDefinition: addDescription(function(_ref24) {\n var name = _ref24.name, args = _ref24.arguments, type = _ref24.type, directives = _ref24.directives;\n return name + (hasMultilineItems(args) ? wrap(\"(\\n\", indent(join(args, \"\\n\")), \"\\n)\") : wrap(\"(\", join(args, \", \"), \")\")) + \": \" + type + wrap(\" \", join(directives, \" \"));\n }),\n InputValueDefinition: addDescription(function(_ref25) {\n var name = _ref25.name, type = _ref25.type, defaultValue = _ref25.defaultValue, directives = _ref25.directives;\n return join([\n name + \": \" + type,\n wrap(\"= \", defaultValue),\n join(directives, \" \")\n ], \" \");\n }),\n InterfaceTypeDefinition: addDescription(function(_ref26) {\n var name = _ref26.name, interfaces = _ref26.interfaces, directives = _ref26.directives, fields = _ref26.fields;\n return join([\n \"interface\",\n name,\n wrap(\"implements \", join(interfaces, \" & \")),\n join(directives, \" \"),\n block(fields)\n ], \" \");\n }),\n UnionTypeDefinition: addDescription(function(_ref27) {\n var name = _ref27.name, directives = _ref27.directives, types = _ref27.types;\n return join([\n \"union\",\n name,\n join(directives, \" \"),\n types && types.length !== 0 ? \"= \" + join(types, \" | \") : \"\"\n ], \" \");\n }),\n EnumTypeDefinition: addDescription(function(_ref28) {\n var name = _ref28.name, directives = _ref28.directives, values = _ref28.values;\n return join([\n \"enum\",\n name,\n join(directives, \" \"),\n block(values)\n ], \" \");\n }),\n EnumValueDefinition: addDescription(function(_ref29) {\n var name = _ref29.name, directives = _ref29.directives;\n return join([\n name,\n join(directives, \" \")\n ], \" \");\n }),\n InputObjectTypeDefinition: addDescription(function(_ref30) {\n var name = _ref30.name, directives = _ref30.directives, fields = _ref30.fields;\n return join([\n \"input\",\n name,\n join(directives, \" \"),\n block(fields)\n ], \" \");\n }),\n DirectiveDefinition: addDescription(function(_ref31) {\n var name = _ref31.name, args = _ref31.arguments, repeatable = _ref31.repeatable, locations = _ref31.locations;\n return \"directive @\" + name + (hasMultilineItems(args) ? wrap(\"(\\n\", indent(join(args, \"\\n\")), \"\\n)\") : wrap(\"(\", join(args, \", \"), \")\")) + (repeatable ? \" repeatable\" : \"\") + \" on \" + join(locations, \" | \");\n }),\n SchemaExtension: function SchemaExtension(_ref32) {\n var directives = _ref32.directives, operationTypes = _ref32.operationTypes;\n return join([\n \"extend schema\",\n join(directives, \" \"),\n block(operationTypes)\n ], \" \");\n },\n ScalarTypeExtension: function ScalarTypeExtension(_ref33) {\n var name = _ref33.name, directives = _ref33.directives;\n return join([\n \"extend scalar\",\n name,\n join(directives, \" \")\n ], \" \");\n },\n ObjectTypeExtension: function ObjectTypeExtension(_ref34) {\n var name = _ref34.name, interfaces = _ref34.interfaces, directives = _ref34.directives, fields = _ref34.fields;\n return join([\n \"extend type\",\n name,\n wrap(\"implements \", join(interfaces, \" & \")),\n join(directives, \" \"),\n block(fields)\n ], \" \");\n },\n InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) {\n var name = _ref35.name, interfaces = _ref35.interfaces, directives = _ref35.directives, fields = _ref35.fields;\n return join([\n \"extend interface\",\n name,\n wrap(\"implements \", join(interfaces, \" & \")),\n join(directives, \" \"),\n block(fields)\n ], \" \");\n },\n UnionTypeExtension: function UnionTypeExtension(_ref36) {\n var name = _ref36.name, directives = _ref36.directives, types = _ref36.types;\n return join([\n \"extend union\",\n name,\n join(directives, \" \"),\n types && types.length !== 0 ? \"= \" + join(types, \" | \") : \"\"\n ], \" \");\n },\n EnumTypeExtension: function EnumTypeExtension(_ref37) {\n var name = _ref37.name, directives = _ref37.directives, values = _ref37.values;\n return join([\n \"extend enum\",\n name,\n join(directives, \" \"),\n block(values)\n ], \" \");\n },\n InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) {\n var name = _ref38.name, directives = _ref38.directives, fields = _ref38.fields;\n return join([\n \"extend input\",\n name,\n join(directives, \" \"),\n block(fields)\n ], \" \");\n }\n};\nfunction addDescription(cb) {\n return function(node) {\n return join([\n node.description,\n cb(node)\n ], \"\\n\");\n };\n}\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */ function join(maybeArray) {\n var _maybeArray$filter$jo;\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(function(x) {\n return x;\n }).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : \"\";\n}\n/**\n * Given array, print each item on its own line, wrapped in an\n * indented \"{ }\" block.\n */ function block(array) {\n return wrap(\"{\\n\", indent(join(array, \"\\n\")), \"\\n}\");\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */ function wrap(start, maybeString) {\n var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n return maybeString != null && maybeString !== \"\" ? start + maybeString + end : \"\";\n}\nfunction indent(str) {\n return wrap(\" \", str.replace(/\\n/g, \"\\n \"));\n}\nfunction isMultiline(str) {\n return str.indexOf(\"\\n\") !== -1;\n}\nfunction hasMultilineItems(maybeArray) {\n return maybeArray != null && maybeArray.some(isMultiline);\n}\n\n},{\"./visitor.mjs\":\"h7DdO\",\"./blockString.mjs\":\"1Vj4i\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"h7DdO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"QueryDocumentKeys\", ()=>QueryDocumentKeys);\nparcelHelpers.export(exports, \"BREAK\", ()=>BREAK);\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to four permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n *\n * 2) Named visitors that trigger upon entering and leaving a node of\n * a specific kind.\n *\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n *\n * 4) Parallel visitors for entering and leaving nodes of a specific kind.\n *\n * visit(ast, {\n * enter: {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * },\n * leave: {\n * Kind(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n */ parcelHelpers.export(exports, \"visit\", ()=>visit);\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */ parcelHelpers.export(exports, \"visitInParallel\", ()=>visitInParallel);\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n */ parcelHelpers.export(exports, \"getVisitFn\", ()=>getVisitFn);\nvar _inspectMjs = require(\"../jsutils/inspect.mjs\");\nvar _inspectMjsDefault = parcelHelpers.interopDefault(_inspectMjs);\nvar _astMjs = require(\"./ast.mjs\");\nvar QueryDocumentKeys = {\n Name: [],\n Document: [\n \"definitions\"\n ],\n OperationDefinition: [\n \"name\",\n \"variableDefinitions\",\n \"directives\",\n \"selectionSet\"\n ],\n VariableDefinition: [\n \"variable\",\n \"type\",\n \"defaultValue\",\n \"directives\"\n ],\n Variable: [\n \"name\"\n ],\n SelectionSet: [\n \"selections\"\n ],\n Field: [\n \"alias\",\n \"name\",\n \"arguments\",\n \"directives\",\n \"selectionSet\"\n ],\n Argument: [\n \"name\",\n \"value\"\n ],\n FragmentSpread: [\n \"name\",\n \"directives\"\n ],\n InlineFragment: [\n \"typeCondition\",\n \"directives\",\n \"selectionSet\"\n ],\n FragmentDefinition: [\n \"name\",\n // or removed in the future.\n \"variableDefinitions\",\n \"typeCondition\",\n \"directives\",\n \"selectionSet\"\n ],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: [\n \"values\"\n ],\n ObjectValue: [\n \"fields\"\n ],\n ObjectField: [\n \"name\",\n \"value\"\n ],\n Directive: [\n \"name\",\n \"arguments\"\n ],\n NamedType: [\n \"name\"\n ],\n ListType: [\n \"type\"\n ],\n NonNullType: [\n \"type\"\n ],\n SchemaDefinition: [\n \"description\",\n \"directives\",\n \"operationTypes\"\n ],\n OperationTypeDefinition: [\n \"type\"\n ],\n ScalarTypeDefinition: [\n \"description\",\n \"name\",\n \"directives\"\n ],\n ObjectTypeDefinition: [\n \"description\",\n \"name\",\n \"interfaces\",\n \"directives\",\n \"fields\"\n ],\n FieldDefinition: [\n \"description\",\n \"name\",\n \"arguments\",\n \"type\",\n \"directives\"\n ],\n InputValueDefinition: [\n \"description\",\n \"name\",\n \"type\",\n \"defaultValue\",\n \"directives\"\n ],\n InterfaceTypeDefinition: [\n \"description\",\n \"name\",\n \"interfaces\",\n \"directives\",\n \"fields\"\n ],\n UnionTypeDefinition: [\n \"description\",\n \"name\",\n \"directives\",\n \"types\"\n ],\n EnumTypeDefinition: [\n \"description\",\n \"name\",\n \"directives\",\n \"values\"\n ],\n EnumValueDefinition: [\n \"description\",\n \"name\",\n \"directives\"\n ],\n InputObjectTypeDefinition: [\n \"description\",\n \"name\",\n \"directives\",\n \"fields\"\n ],\n DirectiveDefinition: [\n \"description\",\n \"name\",\n \"arguments\",\n \"locations\"\n ],\n SchemaExtension: [\n \"directives\",\n \"operationTypes\"\n ],\n ScalarTypeExtension: [\n \"name\",\n \"directives\"\n ],\n ObjectTypeExtension: [\n \"name\",\n \"interfaces\",\n \"directives\",\n \"fields\"\n ],\n InterfaceTypeExtension: [\n \"name\",\n \"interfaces\",\n \"directives\",\n \"fields\"\n ],\n UnionTypeExtension: [\n \"name\",\n \"directives\",\n \"types\"\n ],\n EnumTypeExtension: [\n \"name\",\n \"directives\",\n \"values\"\n ],\n InputObjectTypeExtension: [\n \"name\",\n \"directives\",\n \"fields\"\n ]\n};\nvar BREAK = Object.freeze({});\nfunction visit(root, visitor) {\n var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys;\n /* eslint-disable no-undef-init */ var stack = undefined;\n var inArray = Array.isArray(root);\n var keys = [\n root\n ];\n var index = -1;\n var edits = [];\n var node = undefined;\n var key = undefined;\n var parent = undefined;\n var path = [];\n var ancestors = [];\n var newRoot = root;\n /* eslint-enable no-undef-init */ do {\n index++;\n var isLeaving = index === keys.length;\n var isEdited = isLeaving && edits.length !== 0;\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n if (isEdited) {\n if (inArray) node = node.slice();\n else {\n var clone = {};\n for(var _i2 = 0, _Object$keys2 = Object.keys(node); _i2 < _Object$keys2.length; _i2++){\n var k = _Object$keys2[_i2];\n clone[k] = node[k];\n }\n node = clone;\n }\n var editOffset = 0;\n for(var ii = 0; ii < edits.length; ii++){\n var editKey = edits[ii][0];\n var editValue = edits[ii][1];\n if (inArray) editKey -= editOffset;\n if (inArray && editValue === null) {\n node.splice(editKey, 1);\n editOffset++;\n } else node[editKey] = editValue;\n }\n }\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else {\n key = parent ? inArray ? index : keys[index] : undefined;\n node = parent ? parent[key] : newRoot;\n if (node === null || node === undefined) continue;\n if (parent) path.push(key);\n }\n var result = void 0;\n if (!Array.isArray(node)) {\n if (!(0, _astMjs.isNode)(node)) throw new Error(\"Invalid AST Node: \".concat((0, _inspectMjsDefault.default)(node), \".\"));\n var visitFn = getVisitFn(visitor, node.kind, isLeaving);\n if (visitFn) {\n result = visitFn.call(visitor, node, key, parent, path, ancestors);\n if (result === BREAK) break;\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([\n key,\n result\n ]);\n if (!isLeaving) {\n if ((0, _astMjs.isNode)(result)) node = result;\n else {\n path.pop();\n continue;\n }\n }\n }\n }\n }\n if (result === undefined && isEdited) edits.push([\n key,\n node\n ]);\n if (isLeaving) path.pop();\n else {\n var _visitorKeys$node$kin;\n stack = {\n inArray: inArray,\n index: index,\n keys: keys,\n edits: edits,\n prev: stack\n };\n inArray = Array.isArray(node);\n keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];\n index = -1;\n edits = [];\n if (parent) ancestors.push(parent);\n parent = node;\n }\n }while (stack !== undefined);\n if (edits.length !== 0) newRoot = edits[edits.length - 1][1];\n return newRoot;\n}\nfunction visitInParallel(visitors) {\n var skipping = new Array(visitors.length);\n return {\n enter: function enter(node) {\n for(var i = 0; i < visitors.length; i++)if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind, /* isLeaving */ false);\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n if (result === false) skipping[i] = node;\n else if (result === BREAK) skipping[i] = BREAK;\n else if (result !== undefined) return result;\n }\n }\n },\n leave: function leave(node) {\n for(var i = 0; i < visitors.length; i++){\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind, /* isLeaving */ true);\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n if (result === BREAK) skipping[i] = BREAK;\n else if (result !== undefined && result !== false) return result;\n }\n } else if (skipping[i] === node) skipping[i] = null;\n }\n }\n };\n}\nfunction getVisitFn(visitor, kind, isLeaving) {\n var kindVisitor = visitor[kind];\n if (kindVisitor) {\n if (!isLeaving && typeof kindVisitor === \"function\") // { Kind() {} }\n return kindVisitor;\n var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter;\n if (typeof kindSpecificVisitor === \"function\") // { Kind: { enter() {}, leave() {} } }\n return kindSpecificVisitor;\n } else {\n var specificVisitor = isLeaving ? visitor.leave : visitor.enter;\n if (specificVisitor) {\n if (typeof specificVisitor === \"function\") // { enter() {}, leave() {} }\n return specificVisitor;\n var specificKindVisitor = specificVisitor[kind];\n if (typeof specificKindVisitor === \"function\") // { enter: { Kind() {} }, leave: { Kind() {} } }\n return specificKindVisitor;\n }\n }\n}\n\n},{\"../jsutils/inspect.mjs\":\"WQahI\",\"./ast.mjs\":\"fbjye\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ihq4t\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getFragmentQueryDocument\", ()=>getFragmentQueryDocument);\nparcelHelpers.export(exports, \"createFragmentMap\", ()=>createFragmentMap);\nparcelHelpers.export(exports, \"getFragmentFromSelection\", ()=>getFragmentFromSelection);\nvar _tslib = require(\"tslib\");\nvar _tsInvariant = require(\"ts-invariant\");\nfunction getFragmentQueryDocument(document, fragmentName) {\n var actualFragmentName = fragmentName;\n var fragments = [];\n document.definitions.forEach(function(definition) {\n if (definition.kind === \"OperationDefinition\") throw new (0, _tsInvariant.InvariantError)(42);\n if (definition.kind === \"FragmentDefinition\") fragments.push(definition);\n });\n if (typeof actualFragmentName === \"undefined\") {\n (0, _tsInvariant.invariant)(fragments.length === 1, 43);\n actualFragmentName = fragments[0].name.value;\n }\n var query = (0, _tslib.__assign)((0, _tslib.__assign)({}, document), {\n definitions: (0, _tslib.__spreadArrays)([\n {\n kind: \"OperationDefinition\",\n operation: \"query\",\n selectionSet: {\n kind: \"SelectionSet\",\n selections: [\n {\n kind: \"FragmentSpread\",\n name: {\n kind: \"Name\",\n value: actualFragmentName\n }\n }\n ]\n }\n }\n ], document.definitions)\n });\n return query;\n}\nfunction createFragmentMap(fragments) {\n if (fragments === void 0) fragments = [];\n var symTable = {};\n fragments.forEach(function(fragment) {\n symTable[fragment.name.value] = fragment;\n });\n return symTable;\n}\nfunction getFragmentFromSelection(selection, fragmentMap) {\n switch(selection.kind){\n case \"InlineFragment\":\n return selection;\n case \"FragmentSpread\":\n var fragment = fragmentMap && fragmentMap[selection.name.value];\n (0, _tsInvariant.invariant)(fragment, 44);\n return fragment;\n default:\n return null;\n }\n}\n\n},{\"tslib\":\"5RODp\",\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2MXZ3\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"checkDocument\", ()=>checkDocument);\nparcelHelpers.export(exports, \"getOperationDefinition\", ()=>getOperationDefinition);\nparcelHelpers.export(exports, \"getOperationName\", ()=>getOperationName);\nparcelHelpers.export(exports, \"getFragmentDefinitions\", ()=>getFragmentDefinitions);\nparcelHelpers.export(exports, \"getQueryDefinition\", ()=>getQueryDefinition);\nparcelHelpers.export(exports, \"getFragmentDefinition\", ()=>getFragmentDefinition);\nparcelHelpers.export(exports, \"getMainDefinition\", ()=>getMainDefinition);\nparcelHelpers.export(exports, \"getDefaultValues\", ()=>getDefaultValues);\nvar _tsInvariant = require(\"ts-invariant\");\nvar _storeUtilsJs = require(\"./storeUtils.js\");\nfunction checkDocument(doc) {\n (0, _tsInvariant.invariant)(doc && doc.kind === \"Document\", 45);\n var operations = doc.definitions.filter(function(d) {\n return d.kind !== \"FragmentDefinition\";\n }).map(function(definition) {\n if (definition.kind !== \"OperationDefinition\") throw new (0, _tsInvariant.InvariantError)(46);\n return definition;\n });\n (0, _tsInvariant.invariant)(operations.length <= 1, 47);\n return doc;\n}\nfunction getOperationDefinition(doc) {\n checkDocument(doc);\n return doc.definitions.filter(function(definition) {\n return definition.kind === \"OperationDefinition\";\n })[0];\n}\nfunction getOperationName(doc) {\n return doc.definitions.filter(function(definition) {\n return definition.kind === \"OperationDefinition\" && definition.name;\n }).map(function(x) {\n return x.name.value;\n })[0] || null;\n}\nfunction getFragmentDefinitions(doc) {\n return doc.definitions.filter(function(definition) {\n return definition.kind === \"FragmentDefinition\";\n });\n}\nfunction getQueryDefinition(doc) {\n var queryDef = getOperationDefinition(doc);\n (0, _tsInvariant.invariant)(queryDef && queryDef.operation === \"query\", 48);\n return queryDef;\n}\nfunction getFragmentDefinition(doc) {\n (0, _tsInvariant.invariant)(doc.kind === \"Document\", 49);\n (0, _tsInvariant.invariant)(doc.definitions.length <= 1, 50);\n var fragmentDef = doc.definitions[0];\n (0, _tsInvariant.invariant)(fragmentDef.kind === \"FragmentDefinition\", 51);\n return fragmentDef;\n}\nfunction getMainDefinition(queryDoc) {\n checkDocument(queryDoc);\n var fragmentDefinition;\n for(var _i = 0, _a = queryDoc.definitions; _i < _a.length; _i++){\n var definition = _a[_i];\n if (definition.kind === \"OperationDefinition\") {\n var operation = definition.operation;\n if (operation === \"query\" || operation === \"mutation\" || operation === \"subscription\") return definition;\n }\n if (definition.kind === \"FragmentDefinition\" && !fragmentDefinition) fragmentDefinition = definition;\n }\n if (fragmentDefinition) return fragmentDefinition;\n throw new (0, _tsInvariant.InvariantError)(52);\n}\nfunction getDefaultValues(definition) {\n var defaultValues = Object.create(null);\n var defs = definition && definition.variableDefinitions;\n if (defs && defs.length) defs.forEach(function(def) {\n if (def.defaultValue) (0, _storeUtilsJs.valueToObjectRepresentation)(defaultValues, def.variable.name, def.defaultValue);\n });\n return defaultValues;\n}\n\n},{\"ts-invariant\":\"2pI3w\",\"./storeUtils.js\":\"fVqew\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fVqew\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"makeReference\", ()=>makeReference);\nparcelHelpers.export(exports, \"isReference\", ()=>isReference);\nparcelHelpers.export(exports, \"valueToObjectRepresentation\", ()=>valueToObjectRepresentation);\nparcelHelpers.export(exports, \"storeKeyNameFromField\", ()=>storeKeyNameFromField);\nparcelHelpers.export(exports, \"getStoreKeyName\", ()=>getStoreKeyName);\nparcelHelpers.export(exports, \"argumentsObjectFromField\", ()=>argumentsObjectFromField);\nparcelHelpers.export(exports, \"resultKeyNameFromField\", ()=>resultKeyNameFromField);\nparcelHelpers.export(exports, \"getTypenameFromResult\", ()=>getTypenameFromResult);\nparcelHelpers.export(exports, \"isField\", ()=>isField);\nparcelHelpers.export(exports, \"isInlineFragment\", ()=>isInlineFragment);\nvar _fastJsonStableStringify = require(\"fast-json-stable-stringify\");\nvar _fastJsonStableStringifyDefault = parcelHelpers.interopDefault(_fastJsonStableStringify);\nvar _tsInvariant = require(\"ts-invariant\");\nvar _fragmentsJs = require(\"./fragments.js\");\nfunction makeReference(id) {\n return {\n __ref: String(id)\n };\n}\nfunction isReference(obj) {\n return Boolean(obj && typeof obj === \"object\" && typeof obj.__ref === \"string\");\n}\nfunction isStringValue(value) {\n return value.kind === \"StringValue\";\n}\nfunction isBooleanValue(value) {\n return value.kind === \"BooleanValue\";\n}\nfunction isIntValue(value) {\n return value.kind === \"IntValue\";\n}\nfunction isFloatValue(value) {\n return value.kind === \"FloatValue\";\n}\nfunction isVariable(value) {\n return value.kind === \"Variable\";\n}\nfunction isObjectValue(value) {\n return value.kind === \"ObjectValue\";\n}\nfunction isListValue(value) {\n return value.kind === \"ListValue\";\n}\nfunction isEnumValue(value) {\n return value.kind === \"EnumValue\";\n}\nfunction isNullValue(value) {\n return value.kind === \"NullValue\";\n}\nfunction valueToObjectRepresentation(argObj, name, value, variables) {\n if (isIntValue(value) || isFloatValue(value)) argObj[name.value] = Number(value.value);\n else if (isBooleanValue(value) || isStringValue(value)) argObj[name.value] = value.value;\n else if (isObjectValue(value)) {\n var nestedArgObj_1 = {};\n value.fields.map(function(obj) {\n return valueToObjectRepresentation(nestedArgObj_1, obj.name, obj.value, variables);\n });\n argObj[name.value] = nestedArgObj_1;\n } else if (isVariable(value)) {\n var variableValue = (variables || {})[value.name.value];\n argObj[name.value] = variableValue;\n } else if (isListValue(value)) argObj[name.value] = value.values.map(function(listValue) {\n var nestedArgArrayObj = {};\n valueToObjectRepresentation(nestedArgArrayObj, name, listValue, variables);\n return nestedArgArrayObj[name.value];\n });\n else if (isEnumValue(value)) argObj[name.value] = value.value;\n else if (isNullValue(value)) argObj[name.value] = null;\n else throw new (0, _tsInvariant.InvariantError)(53);\n}\nfunction storeKeyNameFromField(field, variables) {\n var directivesObj = null;\n if (field.directives) {\n directivesObj = {};\n field.directives.forEach(function(directive) {\n directivesObj[directive.name.value] = {};\n if (directive.arguments) directive.arguments.forEach(function(_a) {\n var name = _a.name, value = _a.value;\n return valueToObjectRepresentation(directivesObj[directive.name.value], name, value, variables);\n });\n });\n }\n var argObj = null;\n if (field.arguments && field.arguments.length) {\n argObj = {};\n field.arguments.forEach(function(_a) {\n var name = _a.name, value = _a.value;\n return valueToObjectRepresentation(argObj, name, value, variables);\n });\n }\n return getStoreKeyName(field.name.value, argObj, directivesObj);\n}\nvar KNOWN_DIRECTIVES = [\n \"connection\",\n \"include\",\n \"skip\",\n \"client\",\n \"rest\",\n \"export\"\n];\nfunction getStoreKeyName(fieldName, args, directives) {\n if (args && directives && directives[\"connection\"] && directives[\"connection\"][\"key\"]) {\n if (directives[\"connection\"][\"filter\"] && directives[\"connection\"][\"filter\"].length > 0) {\n var filterKeys = directives[\"connection\"][\"filter\"] ? directives[\"connection\"][\"filter\"] : [];\n filterKeys.sort();\n var filteredArgs_1 = {};\n filterKeys.forEach(function(key) {\n filteredArgs_1[key] = args[key];\n });\n return directives[\"connection\"][\"key\"] + \"(\" + JSON.stringify(filteredArgs_1) + \")\";\n } else return directives[\"connection\"][\"key\"];\n }\n var completeFieldName = fieldName;\n if (args) {\n var stringifiedArgs = (0, _fastJsonStableStringifyDefault.default)(args);\n completeFieldName += \"(\" + stringifiedArgs + \")\";\n }\n if (directives) Object.keys(directives).forEach(function(key) {\n if (KNOWN_DIRECTIVES.indexOf(key) !== -1) return;\n if (directives[key] && Object.keys(directives[key]).length) completeFieldName += \"@\" + key + \"(\" + JSON.stringify(directives[key]) + \")\";\n else completeFieldName += \"@\" + key;\n });\n return completeFieldName;\n}\nfunction argumentsObjectFromField(field, variables) {\n if (field.arguments && field.arguments.length) {\n var argObj_1 = {};\n field.arguments.forEach(function(_a) {\n var name = _a.name, value = _a.value;\n return valueToObjectRepresentation(argObj_1, name, value, variables);\n });\n return argObj_1;\n }\n return null;\n}\nfunction resultKeyNameFromField(field) {\n return field.alias ? field.alias.value : field.name.value;\n}\nfunction getTypenameFromResult(result, selectionSet, fragmentMap) {\n if (typeof result.__typename === \"string\") return result.__typename;\n for(var _i = 0, _a = selectionSet.selections; _i < _a.length; _i++){\n var selection = _a[_i];\n if (isField(selection)) {\n if (selection.name.value === \"__typename\") return result[resultKeyNameFromField(selection)];\n } else {\n var typename = getTypenameFromResult(result, (0, _fragmentsJs.getFragmentFromSelection)(selection, fragmentMap).selectionSet, fragmentMap);\n if (typeof typename === \"string\") return typename;\n }\n }\n}\nfunction isField(selection) {\n return selection.kind === \"Field\";\n}\nfunction isInlineFragment(selection) {\n return selection.kind === \"InlineFragment\";\n}\n\n},{\"fast-json-stable-stringify\":\"58Wk9\",\"ts-invariant\":\"2pI3w\",\"./fragments.js\":\"ihq4t\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"58Wk9\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = function(data, opts) {\n if (!opts) opts = {};\n if (typeof opts === \"function\") opts = {\n cmp: opts\n };\n var cycles = typeof opts.cycles === \"boolean\" ? opts.cycles : false;\n var cmp = opts.cmp && function(f) {\n return function(node) {\n return function(a, b) {\n var aobj = {\n key: a,\n value: node[a]\n };\n var bobj = {\n key: b,\n value: node[b]\n };\n return f(aobj, bobj);\n };\n };\n }(opts.cmp);\n var seen = [];\n return function stringify(node) {\n if (node && node.toJSON && typeof node.toJSON === \"function\") node = node.toJSON();\n if (node === undefined) return;\n if (typeof node == \"number\") return isFinite(node) ? \"\" + node : \"null\";\n if (typeof node !== \"object\") return JSON.stringify(node);\n var i, out;\n if (Array.isArray(node)) {\n out = \"[\";\n for(i = 0; i < node.length; i++){\n if (i) out += \",\";\n out += stringify(node[i]) || \"null\";\n }\n return out + \"]\";\n }\n if (node === null) return \"null\";\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify(\"__cycle__\");\n throw new TypeError(\"Converting circular structure to JSON\");\n }\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = \"\";\n for(i = 0; i < keys.length; i++){\n var key = keys[i];\n var value = stringify(node[key]);\n if (!value) continue;\n if (out) out += \",\";\n out += JSON.stringify(key) + \":\" + value;\n }\n seen.splice(seenIndex, 1);\n return \"{\" + out + \"}\";\n }(data);\n};\n\n},{}],\"kI1pM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"removeDirectivesFromDocument\", ()=>removeDirectivesFromDocument);\nparcelHelpers.export(exports, \"addTypenameToDocument\", ()=>addTypenameToDocument);\nparcelHelpers.export(exports, \"removeConnectionDirectiveFromDocument\", ()=>removeConnectionDirectiveFromDocument);\nparcelHelpers.export(exports, \"removeArgumentsFromDocument\", ()=>removeArgumentsFromDocument);\nparcelHelpers.export(exports, \"removeFragmentSpreadFromDocument\", ()=>removeFragmentSpreadFromDocument);\nparcelHelpers.export(exports, \"buildQueryFromSelectionSet\", ()=>buildQueryFromSelectionSet);\nparcelHelpers.export(exports, \"removeClientSetsFromDocument\", ()=>removeClientSetsFromDocument);\nvar _tslib = require(\"tslib\");\nvar _graphql = require(\"graphql\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _getFromASTJs = require(\"./getFromAST.js\");\nvar _filterInPlaceJs = require(\"../common/filterInPlace.js\");\nvar _storeUtilsJs = require(\"./storeUtils.js\");\nvar _fragmentsJs = require(\"./fragments.js\");\nvar TYPENAME_FIELD = {\n kind: \"Field\",\n name: {\n kind: \"Name\",\n value: \"__typename\"\n }\n};\nfunction isEmpty(op, fragments) {\n return op.selectionSet.selections.every(function(selection) {\n return selection.kind === \"FragmentSpread\" && isEmpty(fragments[selection.name.value], fragments);\n });\n}\nfunction nullIfDocIsEmpty(doc) {\n return isEmpty((0, _getFromASTJs.getOperationDefinition)(doc) || (0, _getFromASTJs.getFragmentDefinition)(doc), (0, _fragmentsJs.createFragmentMap)((0, _getFromASTJs.getFragmentDefinitions)(doc))) ? null : doc;\n}\nfunction getDirectiveMatcher(directives) {\n return function directiveMatcher(directive) {\n return directives.some(function(dir) {\n return dir.name && dir.name === directive.name.value || dir.test && dir.test(directive);\n });\n };\n}\nfunction removeDirectivesFromDocument(directives, doc) {\n var variablesInUse = Object.create(null);\n var variablesToRemove = [];\n var fragmentSpreadsInUse = Object.create(null);\n var fragmentSpreadsToRemove = [];\n var modifiedDoc = nullIfDocIsEmpty((0, _graphql.visit)(doc, {\n Variable: {\n enter: function(node, _key, parent) {\n if (parent.kind !== \"VariableDefinition\") variablesInUse[node.name.value] = true;\n }\n },\n Field: {\n enter: function(node) {\n if (directives && node.directives) {\n var shouldRemoveField = directives.some(function(directive) {\n return directive.remove;\n });\n if (shouldRemoveField && node.directives && node.directives.some(getDirectiveMatcher(directives))) {\n if (node.arguments) node.arguments.forEach(function(arg) {\n if (arg.value.kind === \"Variable\") variablesToRemove.push({\n name: arg.value.name.value\n });\n });\n if (node.selectionSet) getAllFragmentSpreadsFromSelectionSet(node.selectionSet).forEach(function(frag) {\n fragmentSpreadsToRemove.push({\n name: frag.name.value\n });\n });\n return null;\n }\n }\n }\n },\n FragmentSpread: {\n enter: function(node) {\n fragmentSpreadsInUse[node.name.value] = true;\n }\n },\n Directive: {\n enter: function(node) {\n if (getDirectiveMatcher(directives)(node)) return null;\n }\n }\n }));\n if (modifiedDoc && (0, _filterInPlaceJs.filterInPlace)(variablesToRemove, function(v) {\n return !!v.name && !variablesInUse[v.name];\n }).length) modifiedDoc = removeArgumentsFromDocument(variablesToRemove, modifiedDoc);\n if (modifiedDoc && (0, _filterInPlaceJs.filterInPlace)(fragmentSpreadsToRemove, function(fs) {\n return !!fs.name && !fragmentSpreadsInUse[fs.name];\n }).length) modifiedDoc = removeFragmentSpreadFromDocument(fragmentSpreadsToRemove, modifiedDoc);\n return modifiedDoc;\n}\nfunction addTypenameToDocument(doc) {\n return (0, _graphql.visit)((0, _getFromASTJs.checkDocument)(doc), {\n SelectionSet: {\n enter: function(node, _key, parent) {\n if (parent && parent.kind === \"OperationDefinition\") return;\n var selections = node.selections;\n if (!selections) return;\n var skip = selections.some(function(selection) {\n return (0, _storeUtilsJs.isField)(selection) && (selection.name.value === \"__typename\" || selection.name.value.lastIndexOf(\"__\", 0) === 0);\n });\n if (skip) return;\n var field = parent;\n if ((0, _storeUtilsJs.isField)(field) && field.directives && field.directives.some(function(d) {\n return d.name.value === \"export\";\n })) return;\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, node), {\n selections: (0, _tslib.__spreadArrays)(selections, [\n TYPENAME_FIELD\n ])\n });\n }\n }\n });\n}\naddTypenameToDocument.added = function(field) {\n return field === TYPENAME_FIELD;\n};\nvar connectionRemoveConfig = {\n test: function(directive) {\n var willRemove = directive.name.value === \"connection\";\n if (willRemove) !directive.arguments || directive.arguments.some(function(arg) {\n return arg.name.value === \"key\";\n });\n return willRemove;\n }\n};\nfunction removeConnectionDirectiveFromDocument(doc) {\n return removeDirectivesFromDocument([\n connectionRemoveConfig\n ], (0, _getFromASTJs.checkDocument)(doc));\n}\nfunction hasDirectivesInSelectionSet(directives, selectionSet, nestedCheck) {\n if (nestedCheck === void 0) nestedCheck = true;\n return !!selectionSet && selectionSet.selections && selectionSet.selections.some(function(selection) {\n return hasDirectivesInSelection(directives, selection, nestedCheck);\n });\n}\nfunction hasDirectivesInSelection(directives, selection, nestedCheck) {\n if (nestedCheck === void 0) nestedCheck = true;\n if (!(0, _storeUtilsJs.isField)(selection)) return true;\n if (!selection.directives) return false;\n return selection.directives.some(getDirectiveMatcher(directives)) || nestedCheck && hasDirectivesInSelectionSet(directives, selection.selectionSet, nestedCheck);\n}\nfunction getArgumentMatcher(config) {\n return function argumentMatcher(argument) {\n return config.some(function(aConfig) {\n return argument.value && argument.value.kind === \"Variable\" && argument.value.name && (aConfig.name === argument.value.name.value || aConfig.test && aConfig.test(argument));\n });\n };\n}\nfunction removeArgumentsFromDocument(config, doc) {\n var argMatcher = getArgumentMatcher(config);\n return nullIfDocIsEmpty((0, _graphql.visit)(doc, {\n OperationDefinition: {\n enter: function(node) {\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, node), {\n variableDefinitions: node.variableDefinitions ? node.variableDefinitions.filter(function(varDef) {\n return !config.some(function(arg) {\n return arg.name === varDef.variable.name.value;\n });\n }) : []\n });\n }\n },\n Field: {\n enter: function(node) {\n var shouldRemoveField = config.some(function(argConfig) {\n return argConfig.remove;\n });\n if (shouldRemoveField) {\n var argMatchCount_1 = 0;\n if (node.arguments) node.arguments.forEach(function(arg) {\n if (argMatcher(arg)) argMatchCount_1 += 1;\n });\n if (argMatchCount_1 === 1) return null;\n }\n }\n },\n Argument: {\n enter: function(node) {\n if (argMatcher(node)) return null;\n }\n }\n }));\n}\nfunction removeFragmentSpreadFromDocument(config, doc) {\n function enter(node) {\n if (config.some(function(def) {\n return def.name === node.name.value;\n })) return null;\n }\n return nullIfDocIsEmpty((0, _graphql.visit)(doc, {\n FragmentSpread: {\n enter: enter\n },\n FragmentDefinition: {\n enter: enter\n }\n }));\n}\nfunction getAllFragmentSpreadsFromSelectionSet(selectionSet) {\n var allFragments = [];\n selectionSet.selections.forEach(function(selection) {\n if (((0, _storeUtilsJs.isField)(selection) || (0, _storeUtilsJs.isInlineFragment)(selection)) && selection.selectionSet) getAllFragmentSpreadsFromSelectionSet(selection.selectionSet).forEach(function(frag) {\n return allFragments.push(frag);\n });\n else if (selection.kind === \"FragmentSpread\") allFragments.push(selection);\n });\n return allFragments;\n}\nfunction buildQueryFromSelectionSet(document) {\n var definition = (0, _getFromASTJs.getMainDefinition)(document);\n var definitionOperation = definition.operation;\n if (definitionOperation === \"query\") return document;\n var modifiedDoc = (0, _graphql.visit)(document, {\n OperationDefinition: {\n enter: function(node) {\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, node), {\n operation: \"query\"\n });\n }\n }\n });\n return modifiedDoc;\n}\nfunction removeClientSetsFromDocument(document) {\n (0, _getFromASTJs.checkDocument)(document);\n var modifiedDoc = removeDirectivesFromDocument([\n {\n test: function(directive) {\n return directive.name.value === \"client\";\n },\n remove: true\n }\n ], document);\n if (modifiedDoc) modifiedDoc = (0, _graphql.visit)(modifiedDoc, {\n FragmentDefinition: {\n enter: function(node) {\n if (node.selectionSet) {\n var isTypenameOnly = node.selectionSet.selections.every(function(selection) {\n return (0, _storeUtilsJs.isField)(selection) && selection.name.value === \"__typename\";\n });\n if (isTypenameOnly) return null;\n }\n }\n }\n });\n return modifiedDoc;\n}\n\n},{\"tslib\":\"5RODp\",\"graphql\":\"crWS5\",\"ts-invariant\":\"2pI3w\",\"./getFromAST.js\":\"2MXZ3\",\"../common/filterInPlace.js\":\"Dzcdk\",\"./storeUtils.js\":\"fVqew\",\"./fragments.js\":\"ihq4t\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"Dzcdk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"filterInPlace\", ()=>filterInPlace);\nfunction filterInPlace(array, test, context) {\n var target = 0;\n array.forEach(function(elem, i) {\n if (test.call(this, elem, i, array)) array[target++] = elem;\n }, context);\n array.length = target;\n return array;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8aYfi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"concatPagination\", ()=>concatPagination);\nparcelHelpers.export(exports, \"offsetLimitPagination\", ()=>offsetLimitPagination);\nparcelHelpers.export(exports, \"relayStylePagination\", ()=>relayStylePagination);\nvar _tslib = require(\"tslib\");\nvar _mergeDeepJs = require(\"../common/mergeDeep.js\");\nfunction concatPagination(keyArgs) {\n if (keyArgs === void 0) keyArgs = false;\n return {\n keyArgs: keyArgs,\n merge: function(existing, incoming) {\n return existing ? (0, _tslib.__spreadArrays)(existing, incoming) : incoming;\n }\n };\n}\nfunction offsetLimitPagination(keyArgs) {\n if (keyArgs === void 0) keyArgs = false;\n return {\n keyArgs: keyArgs,\n merge: function(existing, incoming, _a) {\n var args = _a.args;\n var merged = existing ? existing.slice(0) : [];\n if (args) {\n var _b = args.offset, offset = _b === void 0 ? 0 : _b;\n for(var i = 0; i < incoming.length; ++i)merged[offset + i] = incoming[i];\n } else merged.push.apply(merged, incoming);\n return merged;\n }\n };\n}\nfunction relayStylePagination(keyArgs) {\n if (keyArgs === void 0) keyArgs = false;\n return {\n keyArgs: keyArgs,\n read: function(existing, _a) {\n var canRead = _a.canRead, readField = _a.readField;\n if (!existing) return;\n var edges = [];\n var startCursor = \"\";\n var endCursor = \"\";\n existing.edges.forEach(function(edge) {\n if (canRead(readField(\"node\", edge))) {\n edges.push(edge);\n if (edge.cursor) {\n startCursor = startCursor || edge.cursor;\n endCursor = edge.cursor;\n }\n }\n });\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, getExtras(existing)), {\n edges: edges,\n pageInfo: (0, _tslib.__assign)((0, _tslib.__assign)({}, existing.pageInfo), {\n startCursor: startCursor,\n endCursor: endCursor\n })\n });\n },\n merge: function(existing, incoming, _a) {\n if (existing === void 0) existing = makeEmptyData();\n var args = _a.args, isReference = _a.isReference, readField = _a.readField;\n var incomingEdges = incoming.edges ? incoming.edges.map(function(edge) {\n if (isReference(edge = (0, _tslib.__assign)({}, edge))) edge.cursor = readField(\"cursor\", edge);\n return edge;\n }) : [];\n if (incoming.pageInfo) {\n var pageInfo_1 = incoming.pageInfo;\n var startCursor = pageInfo_1.startCursor, endCursor = pageInfo_1.endCursor;\n var firstEdge = incomingEdges[0];\n var lastEdge = incomingEdges[incomingEdges.length - 1];\n if (firstEdge && startCursor) firstEdge.cursor = startCursor;\n if (lastEdge && endCursor) lastEdge.cursor = endCursor;\n var firstCursor = firstEdge && firstEdge.cursor;\n if (firstCursor && !startCursor) incoming = (0, _mergeDeepJs.mergeDeep)(incoming, {\n pageInfo: {\n startCursor: firstCursor\n }\n });\n var lastCursor = lastEdge && lastEdge.cursor;\n if (lastCursor && !endCursor) incoming = (0, _mergeDeepJs.mergeDeep)(incoming, {\n pageInfo: {\n endCursor: lastCursor\n }\n });\n }\n var prefix = existing.edges;\n var suffix = [];\n if (args && args.after) {\n var index = prefix.findIndex(function(edge) {\n return edge.cursor === args.after;\n });\n if (index >= 0) prefix = prefix.slice(0, index + 1);\n } else if (args && args.before) {\n var index = prefix.findIndex(function(edge) {\n return edge.cursor === args.before;\n });\n suffix = index < 0 ? prefix : prefix.slice(index);\n prefix = [];\n } else if (incoming.edges) prefix = [];\n var edges = (0, _tslib.__spreadArrays)(prefix, incomingEdges, suffix);\n var pageInfo = (0, _tslib.__assign)((0, _tslib.__assign)({}, incoming.pageInfo), existing.pageInfo);\n if (incoming.pageInfo) {\n var _b = incoming.pageInfo, hasPreviousPage = _b.hasPreviousPage, hasNextPage = _b.hasNextPage, startCursor = _b.startCursor, endCursor = _b.endCursor, extras = (0, _tslib.__rest)(_b, [\n \"hasPreviousPage\",\n \"hasNextPage\",\n \"startCursor\",\n \"endCursor\"\n ]);\n Object.assign(pageInfo, extras);\n if (!prefix.length) {\n if (void 0 !== hasPreviousPage) pageInfo.hasPreviousPage = hasPreviousPage;\n if (void 0 !== startCursor) pageInfo.startCursor = startCursor;\n }\n if (!suffix.length) {\n if (void 0 !== hasNextPage) pageInfo.hasNextPage = hasNextPage;\n if (void 0 !== endCursor) pageInfo.endCursor = endCursor;\n }\n }\n return (0, _tslib.__assign)((0, _tslib.__assign)((0, _tslib.__assign)({}, getExtras(existing)), getExtras(incoming)), {\n edges: edges,\n pageInfo: pageInfo\n });\n }\n };\n}\nvar getExtras = function(obj) {\n return (0, _tslib.__rest)(obj, notExtras);\n};\nvar notExtras = [\n \"edges\",\n \"pageInfo\"\n];\nfunction makeEmptyData() {\n return {\n edges: [],\n pageInfo: {\n hasPreviousPage: false,\n hasNextPage: true,\n startCursor: \"\",\n endCursor: \"\"\n }\n };\n}\n\n},{\"tslib\":\"5RODp\",\"../common/mergeDeep.js\":\"3DI7j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3DI7j\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"mergeDeep\", ()=>mergeDeep);\nparcelHelpers.export(exports, \"mergeDeepArray\", ()=>mergeDeepArray);\nparcelHelpers.export(exports, \"DeepMerger\", ()=>DeepMerger);\nvar _tslib = require(\"tslib\");\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction mergeDeep() {\n var sources = [];\n for(var _i = 0; _i < arguments.length; _i++)sources[_i] = arguments[_i];\n return mergeDeepArray(sources);\n}\nfunction mergeDeepArray(sources) {\n var target = sources[0] || {};\n var count = sources.length;\n if (count > 1) {\n var merger = new DeepMerger();\n for(var i = 1; i < count; ++i)target = merger.merge(target, sources[i]);\n }\n return target;\n}\nfunction isObject(obj) {\n return obj !== null && typeof obj === \"object\";\n}\nvar defaultReconciler = function(target, source, property) {\n return this.merge(target[property], source[property]);\n};\nvar DeepMerger = function() {\n function DeepMerger(reconciler) {\n if (reconciler === void 0) reconciler = defaultReconciler;\n this.reconciler = reconciler;\n this.isObject = isObject;\n this.pastCopies = new Set();\n }\n DeepMerger.prototype.merge = function(target, source) {\n var _this = this;\n var context = [];\n for(var _i = 2; _i < arguments.length; _i++)context[_i - 2] = arguments[_i];\n if (isObject(source) && isObject(target)) {\n Object.keys(source).forEach(function(sourceKey) {\n if (hasOwnProperty.call(target, sourceKey)) {\n var targetValue = target[sourceKey];\n if (source[sourceKey] !== targetValue) {\n var result = _this.reconciler.apply(_this, (0, _tslib.__spreadArrays)([\n target,\n source,\n sourceKey\n ], context));\n if (result !== targetValue) {\n target = _this.shallowCopyForMerge(target);\n target[sourceKey] = result;\n }\n }\n } else {\n target = _this.shallowCopyForMerge(target);\n target[sourceKey] = source[sourceKey];\n }\n });\n return target;\n }\n return source;\n };\n DeepMerger.prototype.shallowCopyForMerge = function(value) {\n if (isObject(value) && !this.pastCopies.has(value)) {\n if (Array.isArray(value)) value = value.slice(0);\n else value = (0, _tslib.__assign)({\n __proto__: Object.getPrototypeOf(value)\n }, value);\n this.pastCopies.add(value);\n }\n return value;\n };\n return DeepMerger;\n}();\n\n},{\"tslib\":\"5RODp\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jbiGu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Observable\", ()=>(0, _zenObservableDefault.default));\nvar _zenObservable = require(\"zen-observable\");\nvar _zenObservableDefault = parcelHelpers.interopDefault(_zenObservable);\nvar _symbolObservable = require(\"symbol-observable\");\nvar prototype = (0, _zenObservableDefault.default).prototype;\nvar fakeObsSymbol = \"@@observable\";\nif (!prototype[fakeObsSymbol]) prototype[fakeObsSymbol] = function() {\n return this;\n};\n\n},{\"zen-observable\":\"kJx3V\",\"symbol-observable\":\"94vFV\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kJx3V\":[function(require,module,exports) {\nmodule.exports = require(\"fe6bb7da9da67ed3\").Observable;\n\n},{\"fe6bb7da9da67ed3\":\"b9s62\"}],\"b9s62\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Observable = void 0;\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n// === Symbol Support ===\nvar hasSymbols = function() {\n return typeof Symbol === \"function\";\n};\nvar hasSymbol = function(name) {\n return hasSymbols() && Boolean(Symbol[name]);\n};\nvar getSymbol = function(name) {\n return hasSymbol(name) ? Symbol[name] : \"@@\" + name;\n};\nif (hasSymbols() && !hasSymbol(\"observable\")) Symbol.observable = Symbol(\"observable\");\nvar SymbolIterator = getSymbol(\"iterator\");\nvar SymbolObservable = getSymbol(\"observable\");\nvar SymbolSpecies = getSymbol(\"species\"); // === Abstract Operations ===\nfunction getMethod(obj, key) {\n var value = obj[key];\n if (value == null) return undefined;\n if (typeof value !== \"function\") throw new TypeError(value + \" is not a function\");\n return value;\n}\nfunction getSpecies(obj) {\n var ctor = obj.constructor;\n if (ctor !== undefined) {\n ctor = ctor[SymbolSpecies];\n if (ctor === null) ctor = undefined;\n }\n return ctor !== undefined ? ctor : Observable;\n}\nfunction isObservable(x) {\n return x instanceof Observable; // SPEC: Brand check\n}\nfunction hostReportError(e) {\n if (hostReportError.log) hostReportError.log(e);\n else setTimeout(function() {\n throw e;\n });\n}\nfunction enqueue(fn) {\n Promise.resolve().then(function() {\n try {\n fn();\n } catch (e) {\n hostReportError(e);\n }\n });\n}\nfunction cleanupSubscription(subscription) {\n var cleanup = subscription._cleanup;\n if (cleanup === undefined) return;\n subscription._cleanup = undefined;\n if (!cleanup) return;\n try {\n if (typeof cleanup === \"function\") cleanup();\n else {\n var unsubscribe = getMethod(cleanup, \"unsubscribe\");\n if (unsubscribe) unsubscribe.call(cleanup);\n }\n } catch (e) {\n hostReportError(e);\n }\n}\nfunction closeSubscription(subscription) {\n subscription._observer = undefined;\n subscription._queue = undefined;\n subscription._state = \"closed\";\n}\nfunction flushSubscription(subscription) {\n var queue = subscription._queue;\n if (!queue) return;\n subscription._queue = undefined;\n subscription._state = \"ready\";\n for(var i = 0; i < queue.length; ++i){\n notifySubscription(subscription, queue[i].type, queue[i].value);\n if (subscription._state === \"closed\") break;\n }\n}\nfunction notifySubscription(subscription, type, value) {\n subscription._state = \"running\";\n var observer = subscription._observer;\n try {\n var m = getMethod(observer, type);\n switch(type){\n case \"next\":\n if (m) m.call(observer, value);\n break;\n case \"error\":\n closeSubscription(subscription);\n if (m) m.call(observer, value);\n else throw value;\n break;\n case \"complete\":\n closeSubscription(subscription);\n if (m) m.call(observer);\n break;\n }\n } catch (e) {\n hostReportError(e);\n }\n if (subscription._state === \"closed\") cleanupSubscription(subscription);\n else if (subscription._state === \"running\") subscription._state = \"ready\";\n}\nfunction onNotify(subscription, type, value) {\n if (subscription._state === \"closed\") return;\n if (subscription._state === \"buffering\") {\n subscription._queue.push({\n type: type,\n value: value\n });\n return;\n }\n if (subscription._state !== \"ready\") {\n subscription._state = \"buffering\";\n subscription._queue = [\n {\n type: type,\n value: value\n }\n ];\n enqueue(function() {\n return flushSubscription(subscription);\n });\n return;\n }\n notifySubscription(subscription, type, value);\n}\nvar Subscription = /*#__PURE__*/ function() {\n function Subscription(observer, subscriber) {\n _classCallCheck(this, Subscription);\n // ASSERT: observer is an object\n // ASSERT: subscriber is callable\n this._cleanup = undefined;\n this._observer = observer;\n this._queue = undefined;\n this._state = \"initializing\";\n var subscriptionObserver = new SubscriptionObserver(this);\n try {\n this._cleanup = subscriber.call(undefined, subscriptionObserver);\n } catch (e) {\n subscriptionObserver.error(e);\n }\n if (this._state === \"initializing\") this._state = \"ready\";\n }\n _createClass(Subscription, [\n {\n key: \"unsubscribe\",\n value: function unsubscribe() {\n if (this._state !== \"closed\") {\n closeSubscription(this);\n cleanupSubscription(this);\n }\n }\n },\n {\n key: \"closed\",\n get: function() {\n return this._state === \"closed\";\n }\n }\n ]);\n return Subscription;\n}();\nvar SubscriptionObserver = /*#__PURE__*/ function() {\n function SubscriptionObserver(subscription) {\n _classCallCheck(this, SubscriptionObserver);\n this._subscription = subscription;\n }\n _createClass(SubscriptionObserver, [\n {\n key: \"next\",\n value: function next(value) {\n onNotify(this._subscription, \"next\", value);\n }\n },\n {\n key: \"error\",\n value: function error(value) {\n onNotify(this._subscription, \"error\", value);\n }\n },\n {\n key: \"complete\",\n value: function complete() {\n onNotify(this._subscription, \"complete\");\n }\n },\n {\n key: \"closed\",\n get: function() {\n return this._subscription._state === \"closed\";\n }\n }\n ]);\n return SubscriptionObserver;\n}();\nvar Observable = /*#__PURE__*/ function() {\n function Observable(subscriber) {\n _classCallCheck(this, Observable);\n if (!(this instanceof Observable)) throw new TypeError(\"Observable cannot be called as a function\");\n if (typeof subscriber !== \"function\") throw new TypeError(\"Observable initializer must be a function\");\n this._subscriber = subscriber;\n }\n _createClass(Observable, [\n {\n key: \"subscribe\",\n value: function subscribe(observer) {\n if (typeof observer !== \"object\" || observer === null) observer = {\n next: observer,\n error: arguments[1],\n complete: arguments[2]\n };\n return new Subscription(observer, this._subscriber);\n }\n },\n {\n key: \"forEach\",\n value: function forEach(fn) {\n var _this = this;\n return new Promise(function(resolve, reject) {\n if (typeof fn !== \"function\") {\n reject(new TypeError(fn + \" is not a function\"));\n return;\n }\n function done() {\n subscription.unsubscribe();\n resolve();\n }\n var subscription = _this.subscribe({\n next: function(value) {\n try {\n fn(value, done);\n } catch (e) {\n reject(e);\n subscription.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n });\n }\n },\n {\n key: \"map\",\n value: function map(fn) {\n var _this2 = this;\n if (typeof fn !== \"function\") throw new TypeError(fn + \" is not a function\");\n var C = getSpecies(this);\n return new C(function(observer) {\n return _this2.subscribe({\n next: function(value) {\n try {\n value = fn(value);\n } catch (e) {\n return observer.error(e);\n }\n observer.next(value);\n },\n error: function(e) {\n observer.error(e);\n },\n complete: function() {\n observer.complete();\n }\n });\n });\n }\n },\n {\n key: \"filter\",\n value: function filter(fn) {\n var _this3 = this;\n if (typeof fn !== \"function\") throw new TypeError(fn + \" is not a function\");\n var C = getSpecies(this);\n return new C(function(observer) {\n return _this3.subscribe({\n next: function(value) {\n try {\n if (!fn(value)) return;\n } catch (e) {\n return observer.error(e);\n }\n observer.next(value);\n },\n error: function(e) {\n observer.error(e);\n },\n complete: function() {\n observer.complete();\n }\n });\n });\n }\n },\n {\n key: \"reduce\",\n value: function reduce(fn) {\n var _this4 = this;\n if (typeof fn !== \"function\") throw new TypeError(fn + \" is not a function\");\n var C = getSpecies(this);\n var hasSeed = arguments.length > 1;\n var hasValue = false;\n var seed = arguments[1];\n var acc = seed;\n return new C(function(observer) {\n return _this4.subscribe({\n next: function(value) {\n var first = !hasValue;\n hasValue = true;\n if (!first || hasSeed) try {\n acc = fn(acc, value);\n } catch (e) {\n return observer.error(e);\n }\n else acc = value;\n },\n error: function(e) {\n observer.error(e);\n },\n complete: function() {\n if (!hasValue && !hasSeed) return observer.error(new TypeError(\"Cannot reduce an empty sequence\"));\n observer.next(acc);\n observer.complete();\n }\n });\n });\n }\n },\n {\n key: \"concat\",\n value: function concat() {\n var _this5 = this;\n for(var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++)sources[_key] = arguments[_key];\n var C = getSpecies(this);\n return new C(function(observer) {\n var subscription;\n var index = 0;\n function startNext(next) {\n subscription = next.subscribe({\n next: function(v) {\n observer.next(v);\n },\n error: function(e) {\n observer.error(e);\n },\n complete: function() {\n if (index === sources.length) {\n subscription = undefined;\n observer.complete();\n } else startNext(C.from(sources[index++]));\n }\n });\n }\n startNext(_this5);\n return function() {\n if (subscription) {\n subscription.unsubscribe();\n subscription = undefined;\n }\n };\n });\n }\n },\n {\n key: \"flatMap\",\n value: function flatMap(fn) {\n var _this6 = this;\n if (typeof fn !== \"function\") throw new TypeError(fn + \" is not a function\");\n var C = getSpecies(this);\n return new C(function(observer) {\n var subscriptions = [];\n var outer = _this6.subscribe({\n next: function(value) {\n if (fn) try {\n value = fn(value);\n } catch (e) {\n return observer.error(e);\n }\n var inner = C.from(value).subscribe({\n next: function(value) {\n observer.next(value);\n },\n error: function(e) {\n observer.error(e);\n },\n complete: function() {\n var i = subscriptions.indexOf(inner);\n if (i >= 0) subscriptions.splice(i, 1);\n completeIfDone();\n }\n });\n subscriptions.push(inner);\n },\n error: function(e) {\n observer.error(e);\n },\n complete: function() {\n completeIfDone();\n }\n });\n function completeIfDone() {\n if (outer.closed && subscriptions.length === 0) observer.complete();\n }\n return function() {\n subscriptions.forEach(function(s) {\n return s.unsubscribe();\n });\n outer.unsubscribe();\n };\n });\n }\n },\n {\n key: SymbolObservable,\n value: function() {\n return this;\n }\n }\n ], [\n {\n key: \"from\",\n value: function from(x) {\n var C = typeof this === \"function\" ? this : Observable;\n if (x == null) throw new TypeError(x + \" is not an object\");\n var method = getMethod(x, SymbolObservable);\n if (method) {\n var observable = method.call(x);\n if (Object(observable) !== observable) throw new TypeError(observable + \" is not an object\");\n if (isObservable(observable) && observable.constructor === C) return observable;\n return new C(function(observer) {\n return observable.subscribe(observer);\n });\n }\n if (hasSymbol(\"iterator\")) {\n method = getMethod(x, SymbolIterator);\n if (method) return new C(function(observer) {\n enqueue(function() {\n if (observer.closed) return;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n try {\n for(var _iterator = method.call(x)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _item = _step.value;\n observer.next(_item);\n if (observer.closed) return;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n } finally{\n if (_didIteratorError) throw _iteratorError;\n }\n }\n observer.complete();\n });\n });\n }\n if (Array.isArray(x)) return new C(function(observer) {\n enqueue(function() {\n if (observer.closed) return;\n for(var i = 0; i < x.length; ++i){\n observer.next(x[i]);\n if (observer.closed) return;\n }\n observer.complete();\n });\n });\n throw new TypeError(x + \" is not observable\");\n }\n },\n {\n key: \"of\",\n value: function of() {\n for(var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)items[_key2] = arguments[_key2];\n var C = typeof this === \"function\" ? this : Observable;\n return new C(function(observer) {\n enqueue(function() {\n if (observer.closed) return;\n for(var i = 0; i < items.length; ++i){\n observer.next(items[i]);\n if (observer.closed) return;\n }\n observer.complete();\n });\n });\n }\n },\n {\n key: SymbolSpecies,\n get: function() {\n return this;\n }\n }\n ]);\n return Observable;\n}();\nexports.Observable = Observable;\nif (hasSymbols()) Object.defineProperty(Observable, Symbol(\"extensions\"), {\n value: {\n symbol: SymbolObservable,\n hostReportError: hostReportError\n },\n configurable: true\n});\n\n},{}],\"94vFV\":[function(require,module,exports) {\n/* global window */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _ponyfillJs = require(\"./ponyfill.js\");\nvar _ponyfillJsDefault = parcelHelpers.interopDefault(_ponyfillJs);\nvar global = arguments[3];\nvar root;\nif (typeof self !== \"undefined\") root = self;\nelse if (typeof window !== \"undefined\") root = window;\nelse if (typeof global !== \"undefined\") root = global;\nelse root = module;\nvar result = (0, _ponyfillJsDefault.default)(root);\nexports.default = result;\n\n},{\"./ponyfill.js\":\"5YVuf\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5YVuf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>symbolObservablePonyfill);\nfunction symbolObservablePonyfill(root) {\n var result;\n var Symbol = root.Symbol;\n if (typeof Symbol === \"function\") {\n if (Symbol.observable) result = Symbol.observable;\n else {\n // This just needs to be something that won't trample other user's Symbol.for use\n // It also will guide people to the source of their issues, if this is problematic.\n // META: It's a resource locator!\n result = Symbol.for(\"https://github.com/benlesh/symbol-observable\");\n try {\n Symbol.observable = result;\n } catch (err) {\n // Do nothing. In some environments, users have frozen `Symbol` for security reasons,\n // if it is frozen assigning to it will throw. In this case, we don't care, because\n // they will need to use the returned value from the ponyfill.\n }\n }\n } else result = \"@@observable\";\n return result;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hbHBs\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"cloneDeep\", ()=>cloneDeep);\nvar toString = Object.prototype.toString;\nfunction cloneDeep(value) {\n return cloneDeepHelper(value);\n}\nfunction cloneDeepHelper(val, seen) {\n switch(toString.call(val)){\n case \"[object Array]\":\n seen = seen || new Map;\n if (seen.has(val)) return seen.get(val);\n var copy_1 = val.slice(0);\n seen.set(val, copy_1);\n copy_1.forEach(function(child, i) {\n copy_1[i] = cloneDeepHelper(child, seen);\n });\n return copy_1;\n case \"[object Object]\":\n seen = seen || new Map;\n if (seen.has(val)) return seen.get(val);\n var copy_2 = Object.create(Object.getPrototypeOf(val));\n seen.set(val, copy_2);\n Object.keys(val).forEach(function(key) {\n copy_2[key] = cloneDeepHelper(val[key], seen);\n });\n return copy_2;\n default:\n return val;\n }\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"739CY\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"maybeDeepFreeze\", ()=>maybeDeepFreeze);\nvar _environmentJs = require(\"./environment.js\");\nfunction isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nfunction deepFreeze(value) {\n var workSet = new Set([\n value\n ]);\n workSet.forEach(function(obj) {\n if (isObject(obj)) {\n if (!Object.isFrozen(obj)) Object.freeze(obj);\n Object.getOwnPropertyNames(obj).forEach(function(name) {\n if (isObject(obj[name])) workSet.add(obj[name]);\n });\n }\n });\n return value;\n}\nfunction maybeDeepFreeze(obj) {\n return obj;\n}\n\n},{\"./environment.js\":\"jJqKN\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jJqKN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getEnv\", ()=>getEnv);\nparcelHelpers.export(exports, \"isEnv\", ()=>isEnv);\nparcelHelpers.export(exports, \"isDevelopment\", ()=>isDevelopment);\nparcelHelpers.export(exports, \"isTest\", ()=>isTest);\nvar process = require(\"2a94660f990cbd44\");\nfunction getEnv() {\n if (typeof process !== \"undefined\" && \"production\") return \"production\";\n return \"development\";\n}\nfunction isEnv(env) {\n return getEnv() === env;\n}\nfunction isDevelopment() {\n return isEnv(\"development\") === true;\n}\nfunction isTest() {\n return isEnv(\"test\") === true;\n}\n\n},{\"2a94660f990cbd44\":\"5QIF0\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8Yve4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"iterateObserversSafely\", ()=>iterateObserversSafely);\nfunction iterateObserversSafely(observers, method, argument) {\n var observersWithMethod = [];\n observers.forEach(function(obs) {\n return obs[method] && observersWithMethod.push(obs);\n });\n observersWithMethod.forEach(function(obs) {\n return obs[method](argument);\n });\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gwUgI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"asyncMap\", ()=>asyncMap);\nvar _observableJs = require(\"./Observable.js\");\nfunction asyncMap(observable, mapFn, catchFn) {\n return new (0, _observableJs.Observable)(function(observer) {\n var next = observer.next, error = observer.error, complete = observer.complete;\n var activeCallbackCount = 0;\n var completed = false;\n var promiseQueue = {\n then: function(callback) {\n return new Promise(function(resolve) {\n return resolve(callback());\n });\n }\n };\n function makeCallback(examiner, delegate) {\n if (examiner) return function(arg) {\n ++activeCallbackCount;\n var both = function() {\n return examiner(arg);\n };\n promiseQueue = promiseQueue.then(both, both).then(function(result) {\n --activeCallbackCount;\n next && next.call(observer, result);\n if (completed) handler.complete();\n }, function(error) {\n --activeCallbackCount;\n throw error;\n }).catch(function(caught) {\n error && error.call(observer, caught);\n });\n };\n else return function(arg) {\n return delegate && delegate.call(observer, arg);\n };\n }\n var handler = {\n next: makeCallback(mapFn, next),\n error: makeCallback(catchFn, error),\n complete: function() {\n completed = true;\n if (!activeCallbackCount) complete && complete.call(observer);\n }\n };\n var sub = observable.subscribe(handler);\n return function() {\n return sub.unsubscribe();\n };\n });\n}\n\n},{\"./Observable.js\":\"jbiGu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gSTlz\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Concast\", ()=>Concast);\nvar _tslib = require(\"tslib\");\nvar _observableJs = require(\"./Observable.js\");\nvar _iterationJs = require(\"./iteration.js\");\nvar _subclassingJs = require(\"./subclassing.js\");\nfunction isPromiseLike(value) {\n return value && typeof value.then === \"function\";\n}\nvar Concast = function(_super) {\n (0, _tslib.__extends)(Concast, _super);\n function Concast(sources) {\n var _this = _super.call(this, function(observer) {\n _this.addObserver(observer);\n return function() {\n return _this.removeObserver(observer);\n };\n }) || this;\n _this.observers = new Set();\n _this.addCount = 0;\n _this.promise = new Promise(function(resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n _this.handlers = {\n next: function(result) {\n if (_this.sub !== null) {\n _this.latest = [\n \"next\",\n result\n ];\n (0, _iterationJs.iterateObserversSafely)(_this.observers, \"next\", result);\n }\n },\n error: function(error) {\n var sub = _this.sub;\n if (sub !== null) {\n if (sub) Promise.resolve().then(function() {\n return sub.unsubscribe();\n });\n _this.sub = null;\n _this.latest = [\n \"error\",\n error\n ];\n _this.reject(error);\n (0, _iterationJs.iterateObserversSafely)(_this.observers, \"error\", error);\n }\n },\n complete: function() {\n if (_this.sub !== null) {\n var value = _this.sources.shift();\n if (!value) {\n _this.sub = null;\n if (_this.latest && _this.latest[0] === \"next\") _this.resolve(_this.latest[1]);\n else _this.resolve();\n (0, _iterationJs.iterateObserversSafely)(_this.observers, \"complete\");\n } else if (isPromiseLike(value)) value.then(function(obs) {\n return _this.sub = obs.subscribe(_this.handlers);\n });\n else _this.sub = value.subscribe(_this.handlers);\n }\n }\n };\n _this.cancel = function(reason) {\n _this.reject(reason);\n _this.sources = [];\n _this.handlers.complete();\n };\n _this.promise.catch(function(_) {});\n if (typeof sources === \"function\") sources = [\n new (0, _observableJs.Observable)(sources)\n ];\n if (isPromiseLike(sources)) sources.then(function(iterable) {\n return _this.start(iterable);\n }, _this.handlers.error);\n else _this.start(sources);\n return _this;\n }\n Concast.prototype.start = function(sources) {\n if (this.sub !== void 0) return;\n this.sources = Array.from(sources);\n this.handlers.complete();\n };\n Concast.prototype.deliverLastMessage = function(observer) {\n if (this.latest) {\n var nextOrError = this.latest[0];\n var method = observer[nextOrError];\n if (method) method.call(observer, this.latest[1]);\n if (this.sub === null && nextOrError === \"next\" && observer.complete) observer.complete();\n }\n };\n Concast.prototype.addObserver = function(observer) {\n if (!this.observers.has(observer)) {\n this.deliverLastMessage(observer);\n this.observers.add(observer);\n ++this.addCount;\n }\n };\n Concast.prototype.removeObserver = function(observer, quietly) {\n if (this.observers.delete(observer) && --this.addCount < 1 && !quietly) this.handlers.error(new Error(\"Observable cancelled prematurely\"));\n };\n Concast.prototype.cleanup = function(callback) {\n var _this = this;\n var called = false;\n var once = function() {\n if (!called) {\n called = true;\n _this.observers.delete(observer);\n callback();\n }\n };\n var observer = {\n next: once,\n error: once,\n complete: once\n };\n var count = this.addCount;\n this.addObserver(observer);\n this.addCount = count;\n };\n return Concast;\n}((0, _observableJs.Observable));\n(0, _subclassingJs.fixObservableSubclass)(Concast);\n\n},{\"tslib\":\"5RODp\",\"./Observable.js\":\"jbiGu\",\"./iteration.js\":\"8Yve4\",\"./subclassing.js\":\"apAKh\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"apAKh\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"fixObservableSubclass\", ()=>fixObservableSubclass);\nvar _observableJs = require(\"./Observable.js\");\nfunction fixObservableSubclass(subclass) {\n function set(key) {\n Object.defineProperty(subclass, key, {\n value: (0, _observableJs.Observable)\n });\n }\n if (typeof Symbol === \"function\" && Symbol.species) set(Symbol.species);\n set(\"@@species\");\n return subclass;\n}\n\n},{\"./Observable.js\":\"jbiGu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"b8nAm\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"isNonEmptyArray\", ()=>isNonEmptyArray);\nfunction isNonEmptyArray(value) {\n return Array.isArray(value) && value.length > 0;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gjlhw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"graphQLResultHasError\", ()=>graphQLResultHasError);\nfunction graphQLResultHasError(result) {\n return result.errors && result.errors.length > 0 || false;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5l5O1\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"canUseWeakMap\", ()=>canUseWeakMap);\nvar canUseWeakMap = typeof WeakMap === \"function\" && !(typeof navigator === \"object\" && navigator.product === \"ReactNative\");\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"38rYW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"compact\", ()=>compact);\nfunction compact() {\n var objects = [];\n for(var _i = 0; _i < arguments.length; _i++)objects[_i] = arguments[_i];\n var result = Object.create(null);\n objects.forEach(function(obj) {\n if (!obj) return;\n Object.keys(obj).forEach(function(key) {\n var value = obj[key];\n if (value !== void 0) result[key] = value;\n });\n });\n return result;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bdwh2\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"fromError\", ()=>(0, _fromErrorJs.fromError));\nparcelHelpers.export(exports, \"toPromise\", ()=>(0, _toPromiseJs.toPromise));\nparcelHelpers.export(exports, \"fromPromise\", ()=>(0, _fromPromiseJs.fromPromise));\nparcelHelpers.export(exports, \"throwServerError\", ()=>(0, _throwServerErrorJs.throwServerError));\nparcelHelpers.export(exports, \"validateOperation\", ()=>(0, _validateOperationJs.validateOperation));\nparcelHelpers.export(exports, \"createOperation\", ()=>(0, _createOperationJs.createOperation));\nparcelHelpers.export(exports, \"transformOperation\", ()=>(0, _transformOperationJs.transformOperation));\nvar _fromErrorJs = require(\"./fromError.js\");\nvar _toPromiseJs = require(\"./toPromise.js\");\nvar _fromPromiseJs = require(\"./fromPromise.js\");\nvar _throwServerErrorJs = require(\"./throwServerError.js\");\nvar _validateOperationJs = require(\"./validateOperation.js\");\nvar _createOperationJs = require(\"./createOperation.js\");\nvar _transformOperationJs = require(\"./transformOperation.js\");\n\n},{\"./fromError.js\":\"diI07\",\"./toPromise.js\":\"chdT7\",\"./fromPromise.js\":\"6p27v\",\"./throwServerError.js\":\"6cmEm\",\"./validateOperation.js\":\"5ObUR\",\"./createOperation.js\":\"cXYpD\",\"./transformOperation.js\":\"fuwrx\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"diI07\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"fromError\", ()=>fromError);\nvar _indexJs = require(\"../../utilities/index.js\");\nfunction fromError(errorValue) {\n return new (0, _indexJs.Observable)(function(observer) {\n observer.error(errorValue);\n });\n}\n\n},{\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"chdT7\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"toPromise\", ()=>toPromise);\nvar _tsInvariant = require(\"ts-invariant\");\nfunction toPromise(observable) {\n var completed = false;\n return new Promise(function(resolve, reject) {\n observable.subscribe({\n next: function(data) {\n if (completed) ;\n else {\n completed = true;\n resolve(data);\n }\n },\n error: reject\n });\n });\n}\n\n},{\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6p27v\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"fromPromise\", ()=>fromPromise);\nvar _indexJs = require(\"../../utilities/index.js\");\nfunction fromPromise(promise) {\n return new (0, _indexJs.Observable)(function(observer) {\n promise.then(function(value) {\n observer.next(value);\n observer.complete();\n }).catch(observer.error.bind(observer));\n });\n}\n\n},{\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6cmEm\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"throwServerError\", ()=>throwServerError);\nvar throwServerError = function(response, result, message) {\n var error = new Error(message);\n error.name = \"ServerError\";\n error.response = response;\n error.statusCode = response.status;\n error.result = result;\n throw error;\n};\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5ObUR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"validateOperation\", ()=>validateOperation);\nvar _tsInvariant = require(\"ts-invariant\");\nfunction validateOperation(operation) {\n var OPERATION_FIELDS = [\n \"query\",\n \"operationName\",\n \"variables\",\n \"extensions\",\n \"context\"\n ];\n for(var _i = 0, _a = Object.keys(operation); _i < _a.length; _i++){\n var key = _a[_i];\n if (OPERATION_FIELDS.indexOf(key) < 0) throw new (0, _tsInvariant.InvariantError)(26);\n }\n return operation;\n}\n\n},{\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cXYpD\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createOperation\", ()=>createOperation);\nvar _tslib = require(\"tslib\");\nfunction createOperation(starting, operation) {\n var context = (0, _tslib.__assign)({}, starting);\n var setContext = function(next) {\n if (typeof next === \"function\") context = (0, _tslib.__assign)((0, _tslib.__assign)({}, context), next(context));\n else context = (0, _tslib.__assign)((0, _tslib.__assign)({}, context), next);\n };\n var getContext = function() {\n return (0, _tslib.__assign)({}, context);\n };\n Object.defineProperty(operation, \"setContext\", {\n enumerable: false,\n value: setContext\n });\n Object.defineProperty(operation, \"getContext\", {\n enumerable: false,\n value: getContext\n });\n return operation;\n}\n\n},{\"tslib\":\"5RODp\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fuwrx\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"transformOperation\", ()=>transformOperation);\nvar _indexJs = require(\"../../utilities/index.js\");\nfunction transformOperation(operation) {\n var transformedOperation = {\n variables: operation.variables || {},\n extensions: operation.extensions || {},\n operationName: operation.operationName,\n query: operation.query\n };\n if (!transformedOperation.operationName) transformedOperation.operationName = typeof transformedOperation.query !== \"string\" ? (0, _indexJs.getOperationName)(transformedOperation.query) || undefined : \"\";\n return transformedOperation;\n}\n\n},{\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4imHp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"from\", ()=>from);\nvar _apolloLinkJs = require(\"./ApolloLink.js\");\nvar from = (0, _apolloLinkJs.ApolloLink).from;\n\n},{\"./ApolloLink.js\":\"gu1vX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eYGav\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"split\", ()=>split);\nvar _apolloLinkJs = require(\"./ApolloLink.js\");\nvar split = (0, _apolloLinkJs.ApolloLink).split;\n\n},{\"./ApolloLink.js\":\"gu1vX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lgjiZ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"concat\", ()=>concat);\nvar _apolloLinkJs = require(\"./ApolloLink.js\");\nvar concat = (0, _apolloLinkJs.ApolloLink).concat;\n\n},{\"./ApolloLink.js\":\"gu1vX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iOTkz\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"execute\", ()=>execute);\nvar _apolloLinkJs = require(\"./ApolloLink.js\");\nvar execute = (0, _apolloLinkJs.ApolloLink).execute;\n\n},{\"./ApolloLink.js\":\"gu1vX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8IYYS\":[function(require,module,exports) {\n\n},{}],\"7b1d7\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"version\", ()=>version);\nvar version = \"3.3.15\";\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6rkPi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"parseAndCheckHttpResponse\", ()=>(0, _parseAndCheckHttpResponseJs.parseAndCheckHttpResponse));\nparcelHelpers.export(exports, \"serializeFetchParameter\", ()=>(0, _serializeFetchParameterJs.serializeFetchParameter));\nparcelHelpers.export(exports, \"fallbackHttpConfig\", ()=>(0, _selectHttpOptionsAndBodyJs.fallbackHttpConfig));\nparcelHelpers.export(exports, \"selectHttpOptionsAndBody\", ()=>(0, _selectHttpOptionsAndBodyJs.selectHttpOptionsAndBody));\nparcelHelpers.export(exports, \"checkFetcher\", ()=>(0, _checkFetcherJs.checkFetcher));\nparcelHelpers.export(exports, \"createSignalIfSupported\", ()=>(0, _createSignalIfSupportedJs.createSignalIfSupported));\nparcelHelpers.export(exports, \"selectURI\", ()=>(0, _selectURIJs.selectURI));\nparcelHelpers.export(exports, \"createHttpLink\", ()=>(0, _createHttpLinkJs.createHttpLink));\nparcelHelpers.export(exports, \"HttpLink\", ()=>(0, _httpLinkJs.HttpLink));\nparcelHelpers.export(exports, \"rewriteURIForGET\", ()=>(0, _rewriteURIForGETJs.rewriteURIForGET));\nvar _parseAndCheckHttpResponseJs = require(\"./parseAndCheckHttpResponse.js\");\nvar _serializeFetchParameterJs = require(\"./serializeFetchParameter.js\");\nvar _selectHttpOptionsAndBodyJs = require(\"./selectHttpOptionsAndBody.js\");\nvar _checkFetcherJs = require(\"./checkFetcher.js\");\nvar _createSignalIfSupportedJs = require(\"./createSignalIfSupported.js\");\nvar _selectURIJs = require(\"./selectURI.js\");\nvar _createHttpLinkJs = require(\"./createHttpLink.js\");\nvar _httpLinkJs = require(\"./HttpLink.js\");\nvar _rewriteURIForGETJs = require(\"./rewriteURIForGET.js\");\n\n},{\"./parseAndCheckHttpResponse.js\":\"87K8b\",\"./serializeFetchParameter.js\":\"aDWte\",\"./selectHttpOptionsAndBody.js\":\"4mnJ8\",\"./checkFetcher.js\":\"anoPt\",\"./createSignalIfSupported.js\":\"gphXs\",\"./selectURI.js\":\"gey39\",\"./createHttpLink.js\":\"q6VKi\",\"./HttpLink.js\":\"gS1LW\",\"./rewriteURIForGET.js\":\"lOvFy\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"87K8b\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"parseAndCheckHttpResponse\", ()=>parseAndCheckHttpResponse);\nvar _indexJs = require(\"../utils/index.js\");\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction parseAndCheckHttpResponse(operations) {\n return function(response) {\n return response.text().then(function(bodyText) {\n try {\n return JSON.parse(bodyText);\n } catch (err) {\n var parseError = err;\n parseError.name = \"ServerParseError\";\n parseError.response = response;\n parseError.statusCode = response.status;\n parseError.bodyText = bodyText;\n throw parseError;\n }\n }).then(function(result) {\n if (response.status >= 300) (0, _indexJs.throwServerError)(response, result, \"Response not successful: Received status code \" + response.status);\n if (!Array.isArray(result) && !hasOwnProperty.call(result, \"data\") && !hasOwnProperty.call(result, \"errors\")) (0, _indexJs.throwServerError)(response, result, \"Server response was missing for query '\" + (Array.isArray(operations) ? operations.map(function(op) {\n return op.operationName;\n }) : operations.operationName) + \"'.\");\n return result;\n });\n };\n}\n\n},{\"../utils/index.js\":\"bdwh2\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aDWte\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"serializeFetchParameter\", ()=>serializeFetchParameter);\nvar _tsInvariant = require(\"ts-invariant\");\nvar serializeFetchParameter = function(p, label) {\n var serialized;\n try {\n serialized = JSON.stringify(p);\n } catch (e) {\n var parseError = new (0, _tsInvariant.InvariantError)(23);\n parseError.parseError = e;\n throw parseError;\n }\n return serialized;\n};\n\n},{\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4mnJ8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"fallbackHttpConfig\", ()=>fallbackHttpConfig);\nparcelHelpers.export(exports, \"selectHttpOptionsAndBody\", ()=>selectHttpOptionsAndBody);\nvar _tslib = require(\"tslib\");\nvar _graphql = require(\"graphql\");\nvar defaultHttpOptions = {\n includeQuery: true,\n includeExtensions: false\n};\nvar defaultHeaders = {\n accept: \"*/*\",\n \"content-type\": \"application/json\"\n};\nvar defaultOptions = {\n method: \"POST\"\n};\nvar fallbackHttpConfig = {\n http: defaultHttpOptions,\n headers: defaultHeaders,\n options: defaultOptions\n};\nvar selectHttpOptionsAndBody = function(operation, fallbackConfig) {\n var configs = [];\n for(var _i = 2; _i < arguments.length; _i++)configs[_i - 2] = arguments[_i];\n var options = (0, _tslib.__assign)((0, _tslib.__assign)({}, fallbackConfig.options), {\n headers: fallbackConfig.headers,\n credentials: fallbackConfig.credentials\n });\n var http = fallbackConfig.http || {};\n configs.forEach(function(config) {\n options = (0, _tslib.__assign)((0, _tslib.__assign)((0, _tslib.__assign)({}, options), config.options), {\n headers: (0, _tslib.__assign)((0, _tslib.__assign)({}, options.headers), config.headers)\n });\n if (config.credentials) options.credentials = config.credentials;\n http = (0, _tslib.__assign)((0, _tslib.__assign)({}, http), config.http);\n });\n var operationName = operation.operationName, extensions = operation.extensions, variables = operation.variables, query = operation.query;\n var body = {\n operationName: operationName,\n variables: variables\n };\n if (http.includeExtensions) body.extensions = extensions;\n if (http.includeQuery) body.query = (0, _graphql.print)(query);\n return {\n options: options,\n body: body\n };\n};\n\n},{\"tslib\":\"5RODp\",\"graphql\":\"crWS5\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"anoPt\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"checkFetcher\", ()=>checkFetcher);\nvar _tsInvariant = require(\"ts-invariant\");\nvar checkFetcher = function(fetcher) {\n if (!fetcher && typeof fetch === \"undefined\") throw new (0, _tsInvariant.InvariantError)(22);\n};\n\n},{\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gphXs\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createSignalIfSupported\", ()=>createSignalIfSupported);\nvar createSignalIfSupported = function() {\n if (typeof AbortController === \"undefined\") return {\n controller: false,\n signal: false\n };\n var controller = new AbortController();\n var signal = controller.signal;\n return {\n controller: controller,\n signal: signal\n };\n};\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gey39\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectURI\", ()=>selectURI);\nvar selectURI = function(operation, fallbackURI) {\n var context = operation.getContext();\n var contextURI = context.uri;\n if (contextURI) return contextURI;\n else if (typeof fallbackURI === \"function\") return fallbackURI(operation);\n else return fallbackURI || \"/graphql\";\n};\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"q6VKi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createHttpLink\", ()=>createHttpLink);\nvar _tslib = require(\"tslib\");\nvar _graphql = require(\"graphql\");\nvar _indexJs = require(\"../core/index.js\");\nvar _indexJs1 = require(\"../../utilities/index.js\");\nvar _serializeFetchParameterJs = require(\"./serializeFetchParameter.js\");\nvar _selectURIJs = require(\"./selectURI.js\");\nvar _parseAndCheckHttpResponseJs = require(\"./parseAndCheckHttpResponse.js\");\nvar _checkFetcherJs = require(\"./checkFetcher.js\");\nvar _selectHttpOptionsAndBodyJs = require(\"./selectHttpOptionsAndBody.js\");\nvar _createSignalIfSupportedJs = require(\"./createSignalIfSupported.js\");\nvar _rewriteURIForGETJs = require(\"./rewriteURIForGET.js\");\nvar _indexJs2 = require(\"../utils/index.js\");\nvar createHttpLink = function(linkOptions) {\n if (linkOptions === void 0) linkOptions = {};\n var _a = linkOptions.uri, uri = _a === void 0 ? \"/graphql\" : _a, fetcher = linkOptions.fetch, includeExtensions = linkOptions.includeExtensions, useGETForQueries = linkOptions.useGETForQueries, _b = linkOptions.includeUnusedVariables, includeUnusedVariables = _b === void 0 ? false : _b, requestOptions = (0, _tslib.__rest)(linkOptions, [\n \"uri\",\n \"fetch\",\n \"includeExtensions\",\n \"useGETForQueries\",\n \"includeUnusedVariables\"\n ]);\n (0, _checkFetcherJs.checkFetcher)(fetcher);\n if (!fetcher) fetcher = fetch;\n var linkConfig = {\n http: {\n includeExtensions: includeExtensions\n },\n options: requestOptions.fetchOptions,\n credentials: requestOptions.credentials,\n headers: requestOptions.headers\n };\n return new (0, _indexJs.ApolloLink)(function(operation) {\n var chosenURI = (0, _selectURIJs.selectURI)(operation, uri);\n var context = operation.getContext();\n var clientAwarenessHeaders = {};\n if (context.clientAwareness) {\n var _a = context.clientAwareness, name_1 = _a.name, version = _a.version;\n if (name_1) clientAwarenessHeaders[\"apollographql-client-name\"] = name_1;\n if (version) clientAwarenessHeaders[\"apollographql-client-version\"] = version;\n }\n var contextHeaders = (0, _tslib.__assign)((0, _tslib.__assign)({}, clientAwarenessHeaders), context.headers);\n var contextConfig = {\n http: context.http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: contextHeaders\n };\n var _b = (0, _selectHttpOptionsAndBodyJs.selectHttpOptionsAndBody)(operation, (0, _selectHttpOptionsAndBodyJs.fallbackHttpConfig), linkConfig, contextConfig), options = _b.options, body = _b.body;\n if (body.variables && !includeUnusedVariables) {\n var unusedNames_1 = new Set(Object.keys(body.variables));\n (0, _graphql.visit)(operation.query, {\n Variable: function(node, _key, parent) {\n if (parent && parent.kind !== \"VariableDefinition\") unusedNames_1.delete(node.name.value);\n }\n });\n if (unusedNames_1.size) {\n body.variables = (0, _tslib.__assign)({}, body.variables);\n unusedNames_1.forEach(function(name) {\n delete body.variables[name];\n });\n }\n }\n var controller;\n if (!options.signal) {\n var _c = (0, _createSignalIfSupportedJs.createSignalIfSupported)(), _controller = _c.controller, signal = _c.signal;\n controller = _controller;\n if (controller) options.signal = signal;\n }\n var definitionIsMutation = function(d) {\n return d.kind === \"OperationDefinition\" && d.operation === \"mutation\";\n };\n if (useGETForQueries && !operation.query.definitions.some(definitionIsMutation)) options.method = \"GET\";\n if (options.method === \"GET\") {\n var _d = (0, _rewriteURIForGETJs.rewriteURIForGET)(chosenURI, body), newURI = _d.newURI, parseError = _d.parseError;\n if (parseError) return (0, _indexJs2.fromError)(parseError);\n chosenURI = newURI;\n } else try {\n options.body = (0, _serializeFetchParameterJs.serializeFetchParameter)(body, \"Payload\");\n } catch (parseError) {\n return (0, _indexJs2.fromError)(parseError);\n }\n return new (0, _indexJs1.Observable)(function(observer) {\n fetcher(chosenURI, options).then(function(response) {\n operation.setContext({\n response: response\n });\n return response;\n }).then((0, _parseAndCheckHttpResponseJs.parseAndCheckHttpResponse)(operation)).then(function(result) {\n observer.next(result);\n observer.complete();\n return result;\n }).catch(function(err) {\n if (err.name === \"AbortError\") return;\n if (err.result && err.result.errors && err.result.data) observer.next(err.result);\n observer.error(err);\n });\n return function() {\n if (controller) controller.abort();\n };\n });\n });\n};\n\n},{\"tslib\":\"5RODp\",\"graphql\":\"crWS5\",\"../core/index.js\":\"gXJ1R\",\"../../utilities/index.js\":\"k55vB\",\"./serializeFetchParameter.js\":\"aDWte\",\"./selectURI.js\":\"gey39\",\"./parseAndCheckHttpResponse.js\":\"87K8b\",\"./checkFetcher.js\":\"anoPt\",\"./selectHttpOptionsAndBody.js\":\"4mnJ8\",\"./createSignalIfSupported.js\":\"gphXs\",\"./rewriteURIForGET.js\":\"lOvFy\",\"../utils/index.js\":\"bdwh2\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lOvFy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"rewriteURIForGET\", ()=>rewriteURIForGET);\nvar _serializeFetchParameterJs = require(\"./serializeFetchParameter.js\");\nfunction rewriteURIForGET(chosenURI, body) {\n var queryParams = [];\n var addQueryParam = function(key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if (\"query\" in body) addQueryParam(\"query\", body.query);\n if (body.operationName) addQueryParam(\"operationName\", body.operationName);\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = (0, _serializeFetchParameterJs.serializeFetchParameter)(body.variables, \"Variables map\");\n } catch (parseError) {\n return {\n parseError: parseError\n };\n }\n addQueryParam(\"variables\", serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = (0, _serializeFetchParameterJs.serializeFetchParameter)(body.extensions, \"Extensions map\");\n } catch (parseError) {\n return {\n parseError: parseError\n };\n }\n addQueryParam(\"extensions\", serializedExtensions);\n }\n var fragment = \"\", preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf(\"#\");\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf(\"?\") === -1 ? \"?\" : \"&\";\n var newURI = preFragment + queryParamsPrefix + queryParams.join(\"&\") + fragment;\n return {\n newURI: newURI\n };\n}\n\n},{\"./serializeFetchParameter.js\":\"aDWte\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gS1LW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"HttpLink\", ()=>HttpLink);\nvar _tslib = require(\"tslib\");\nvar _indexJs = require(\"../core/index.js\");\nvar _createHttpLinkJs = require(\"./createHttpLink.js\");\nvar HttpLink = function(_super) {\n (0, _tslib.__extends)(HttpLink, _super);\n function HttpLink(options) {\n if (options === void 0) options = {};\n var _this = _super.call(this, (0, _createHttpLinkJs.createHttpLink)(options).request) || this;\n _this.options = options;\n return _this;\n }\n return HttpLink;\n}((0, _indexJs.ApolloLink));\n\n},{\"tslib\":\"5RODp\",\"../core/index.js\":\"gXJ1R\",\"./createHttpLink.js\":\"q6VKi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gzqpZ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"QueryManager\", ()=>QueryManager);\nvar _tslib = require(\"tslib\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _equality = require(\"@wry/equality\");\nvar _indexJs = require(\"../link/core/index.js\");\nvar _indexJs1 = require(\"../utilities/index.js\");\nvar _indexJs2 = require(\"../errors/index.js\");\nvar _observableQueryJs = require(\"./ObservableQuery.js\");\nvar _networkStatusJs = require(\"./networkStatus.js\");\nvar _localStateJs = require(\"./LocalState.js\");\nvar _queryInfoJs = require(\"./QueryInfo.js\");\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar QueryManager = function() {\n function QueryManager(_a) {\n var cache = _a.cache, link = _a.link, _b = _a.queryDeduplication, queryDeduplication = _b === void 0 ? false : _b, onBroadcast = _a.onBroadcast, _c = _a.ssrMode, ssrMode = _c === void 0 ? false : _c, _d = _a.clientAwareness, clientAwareness = _d === void 0 ? {} : _d, localState = _a.localState, assumeImmutableResults = _a.assumeImmutableResults;\n this.clientAwareness = {};\n this.queries = new Map();\n this.fetchCancelFns = new Map();\n this.transformCache = new ((0, _indexJs1.canUseWeakMap) ? WeakMap : Map)();\n this.queryIdCounter = 1;\n this.requestIdCounter = 1;\n this.mutationIdCounter = 1;\n this.inFlightLinkObservables = new Map();\n this.cache = cache;\n this.link = link;\n this.queryDeduplication = queryDeduplication;\n this.clientAwareness = clientAwareness;\n this.localState = localState || new (0, _localStateJs.LocalState)({\n cache: cache\n });\n this.ssrMode = ssrMode;\n this.assumeImmutableResults = !!assumeImmutableResults;\n if (this.onBroadcast = onBroadcast) this.mutationStore = Object.create(null);\n }\n QueryManager.prototype.stop = function() {\n var _this = this;\n this.queries.forEach(function(_info, queryId) {\n _this.stopQueryNoBroadcast(queryId);\n });\n this.cancelPendingFetches(new (0, _tsInvariant.InvariantError)(12));\n };\n QueryManager.prototype.cancelPendingFetches = function(error) {\n this.fetchCancelFns.forEach(function(cancel) {\n return cancel(error);\n });\n this.fetchCancelFns.clear();\n };\n QueryManager.prototype.mutate = function(_a) {\n var mutation = _a.mutation, variables = _a.variables, optimisticResponse = _a.optimisticResponse, updateQueries = _a.updateQueries, _b = _a.refetchQueries, refetchQueries = _b === void 0 ? [] : _b, _c = _a.awaitRefetchQueries, awaitRefetchQueries = _c === void 0 ? false : _c, updateWithProxyFn = _a.update, _d = _a.errorPolicy, errorPolicy = _d === void 0 ? \"none\" : _d, fetchPolicy = _a.fetchPolicy, _e = _a.context, context = _e === void 0 ? {} : _e;\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n var mutationId, mutationStoreValue, self;\n return (0, _tslib.__generator)(this, function(_f) {\n switch(_f.label){\n case 0:\n (0, _tsInvariant.invariant)(mutation, 13);\n (0, _tsInvariant.invariant)(!fetchPolicy || fetchPolicy === \"no-cache\", 14);\n mutationId = this.generateMutationId();\n mutation = this.transform(mutation).document;\n variables = this.getVariables(mutation, variables);\n if (!this.transform(mutation).hasClientExports) return [\n 3,\n 2\n ];\n return [\n 4,\n this.localState.addExportedVariables(mutation, variables, context)\n ];\n case 1:\n variables = _f.sent();\n _f.label = 2;\n case 2:\n mutationStoreValue = this.mutationStore && (this.mutationStore[mutationId] = {\n mutation: mutation,\n variables: variables,\n loading: true,\n error: null\n });\n if (optimisticResponse) this.markMutationOptimistic(optimisticResponse, {\n mutationId: mutationId,\n document: mutation,\n variables: variables,\n errorPolicy: errorPolicy,\n updateQueries: updateQueries,\n update: updateWithProxyFn\n });\n this.broadcastQueries();\n self = this;\n return [\n 2,\n new Promise(function(resolve, reject) {\n var storeResult;\n var error;\n self.getObservableFromLink(mutation, (0, _tslib.__assign)((0, _tslib.__assign)({}, context), {\n optimisticResponse: optimisticResponse\n }), variables, false).subscribe({\n next: function(result) {\n if ((0, _indexJs1.graphQLResultHasError)(result) && errorPolicy === \"none\") {\n error = new (0, _indexJs2.ApolloError)({\n graphQLErrors: result.errors\n });\n return;\n }\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = null;\n }\n if (fetchPolicy !== \"no-cache\") try {\n self.markMutationResult({\n mutationId: mutationId,\n result: result,\n document: mutation,\n variables: variables,\n errorPolicy: errorPolicy,\n updateQueries: updateQueries,\n update: updateWithProxyFn\n });\n } catch (e) {\n error = new (0, _indexJs2.ApolloError)({\n networkError: e\n });\n return;\n }\n storeResult = result;\n },\n error: function(err) {\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = err;\n }\n if (optimisticResponse) self.cache.removeOptimistic(mutationId);\n self.broadcastQueries();\n reject(new (0, _indexJs2.ApolloError)({\n networkError: err\n }));\n },\n complete: function() {\n if (error && mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = error;\n }\n if (optimisticResponse) self.cache.removeOptimistic(mutationId);\n self.broadcastQueries();\n if (error) {\n reject(error);\n return;\n }\n if (typeof refetchQueries === \"function\") refetchQueries = refetchQueries(storeResult);\n var refetchQueryPromises = [];\n if ((0, _indexJs1.isNonEmptyArray)(refetchQueries)) refetchQueries.forEach(function(refetchQuery) {\n if (typeof refetchQuery === \"string\") self.queries.forEach(function(_a) {\n var observableQuery = _a.observableQuery;\n if (observableQuery && observableQuery.hasObservers() && observableQuery.queryName === refetchQuery) refetchQueryPromises.push(observableQuery.refetch());\n });\n else {\n var queryOptions = {\n query: refetchQuery.query,\n variables: refetchQuery.variables,\n fetchPolicy: \"network-only\"\n };\n if (refetchQuery.context) queryOptions.context = refetchQuery.context;\n refetchQueryPromises.push(self.query(queryOptions));\n }\n });\n Promise.all(awaitRefetchQueries ? refetchQueryPromises : []).then(function() {\n if (errorPolicy === \"ignore\" && storeResult && (0, _indexJs1.graphQLResultHasError)(storeResult)) delete storeResult.errors;\n resolve(storeResult);\n }, reject);\n }\n });\n })\n ];\n }\n });\n });\n };\n QueryManager.prototype.markMutationResult = function(mutation, cache) {\n var _this = this;\n if (cache === void 0) cache = this.cache;\n if ((0, _queryInfoJs.shouldWriteResult)(mutation.result, mutation.errorPolicy)) {\n var cacheWrites_1 = [\n {\n result: mutation.result.data,\n dataId: \"ROOT_MUTATION\",\n query: mutation.document,\n variables: mutation.variables\n }\n ];\n var updateQueries_1 = mutation.updateQueries;\n if (updateQueries_1) this.queries.forEach(function(_a, queryId) {\n var observableQuery = _a.observableQuery;\n var queryName = observableQuery && observableQuery.queryName;\n if (!queryName || !hasOwnProperty.call(updateQueries_1, queryName)) return;\n var updater = updateQueries_1[queryName];\n var _b = _this.queries.get(queryId), document = _b.document, variables = _b.variables;\n var _c = cache.diff({\n query: document,\n variables: variables,\n returnPartialData: true,\n optimistic: false\n }), currentQueryResult = _c.result, complete = _c.complete;\n if (complete && currentQueryResult) {\n var nextQueryResult = updater(currentQueryResult, {\n mutationResult: mutation.result,\n queryName: document && (0, _indexJs1.getOperationName)(document) || void 0,\n queryVariables: variables\n });\n if (nextQueryResult) cacheWrites_1.push({\n result: nextQueryResult,\n dataId: \"ROOT_QUERY\",\n query: document,\n variables: variables\n });\n }\n });\n cache.performTransaction(function(c) {\n cacheWrites_1.forEach(function(write) {\n return c.write(write);\n });\n var update = mutation.update;\n if (update) update(c, mutation.result);\n }, null);\n }\n };\n QueryManager.prototype.markMutationOptimistic = function(optimisticResponse, mutation) {\n var _this = this;\n var data = typeof optimisticResponse === \"function\" ? optimisticResponse(mutation.variables) : optimisticResponse;\n return this.cache.recordOptimisticTransaction(function(cache) {\n try {\n _this.markMutationResult((0, _tslib.__assign)((0, _tslib.__assign)({}, mutation), {\n result: {\n data: data\n }\n }), cache);\n } catch (error) {}\n }, mutation.mutationId);\n };\n QueryManager.prototype.fetchQuery = function(queryId, options, networkStatus) {\n return this.fetchQueryObservable(queryId, options, networkStatus).promise;\n };\n QueryManager.prototype.getQueryStore = function() {\n var store = Object.create(null);\n this.queries.forEach(function(info, queryId) {\n store[queryId] = {\n variables: info.variables,\n networkStatus: info.networkStatus,\n networkError: info.networkError,\n graphQLErrors: info.graphQLErrors\n };\n });\n return store;\n };\n QueryManager.prototype.resetErrors = function(queryId) {\n var queryInfo = this.queries.get(queryId);\n if (queryInfo) {\n queryInfo.networkError = undefined;\n queryInfo.graphQLErrors = [];\n }\n };\n QueryManager.prototype.transform = function(document) {\n var transformCache = this.transformCache;\n if (!transformCache.has(document)) {\n var transformed = this.cache.transformDocument(document);\n var forLink = (0, _indexJs1.removeConnectionDirectiveFromDocument)(this.cache.transformForLink(transformed));\n var clientQuery = this.localState.clientQuery(transformed);\n var serverQuery = forLink && this.localState.serverQuery(forLink);\n var cacheEntry_1 = {\n document: transformed,\n hasClientExports: (0, _indexJs1.hasClientExports)(transformed),\n hasForcedResolvers: this.localState.shouldForceResolvers(transformed),\n clientQuery: clientQuery,\n serverQuery: serverQuery,\n defaultVars: (0, _indexJs1.getDefaultValues)((0, _indexJs1.getOperationDefinition)(transformed))\n };\n var add = function(doc) {\n if (doc && !transformCache.has(doc)) transformCache.set(doc, cacheEntry_1);\n };\n add(document);\n add(transformed);\n add(clientQuery);\n add(serverQuery);\n }\n return transformCache.get(document);\n };\n QueryManager.prototype.getVariables = function(document, variables) {\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, this.transform(document).defaultVars), variables);\n };\n QueryManager.prototype.watchQuery = function(options) {\n options = (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n variables: this.getVariables(options.query, options.variables)\n });\n if (typeof options.notifyOnNetworkStatusChange === \"undefined\") options.notifyOnNetworkStatusChange = false;\n var queryInfo = new (0, _queryInfoJs.QueryInfo)(this.cache);\n var observable = new (0, _observableQueryJs.ObservableQuery)({\n queryManager: this,\n queryInfo: queryInfo,\n options: options\n });\n this.queries.set(observable.queryId, queryInfo);\n queryInfo.init({\n document: options.query,\n observableQuery: observable,\n variables: options.variables\n });\n return observable;\n };\n QueryManager.prototype.query = function(options) {\n var _this = this;\n (0, _tsInvariant.invariant)(options.query, 15);\n (0, _tsInvariant.invariant)(options.query.kind === \"Document\", 16);\n (0, _tsInvariant.invariant)(!options.returnPartialData, 17);\n (0, _tsInvariant.invariant)(!options.pollInterval, 18);\n var queryId = this.generateQueryId();\n return this.fetchQuery(queryId, options).finally(function() {\n return _this.stopQuery(queryId);\n });\n };\n QueryManager.prototype.generateQueryId = function() {\n return String(this.queryIdCounter++);\n };\n QueryManager.prototype.generateRequestId = function() {\n return this.requestIdCounter++;\n };\n QueryManager.prototype.generateMutationId = function() {\n return String(this.mutationIdCounter++);\n };\n QueryManager.prototype.stopQueryInStore = function(queryId) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.broadcastQueries();\n };\n QueryManager.prototype.stopQueryInStoreNoBroadcast = function(queryId) {\n var queryInfo = this.queries.get(queryId);\n if (queryInfo) queryInfo.stop();\n };\n QueryManager.prototype.clearStore = function() {\n this.cancelPendingFetches(new (0, _tsInvariant.InvariantError)(19));\n this.queries.forEach(function(queryInfo) {\n if (queryInfo.observableQuery) queryInfo.networkStatus = (0, _networkStatusJs.NetworkStatus).loading;\n else queryInfo.stop();\n });\n if (this.mutationStore) this.mutationStore = Object.create(null);\n return this.cache.reset();\n };\n QueryManager.prototype.resetStore = function() {\n var _this = this;\n return this.clearStore().then(function() {\n return _this.reFetchObservableQueries();\n });\n };\n QueryManager.prototype.reFetchObservableQueries = function(includeStandby) {\n var _this = this;\n if (includeStandby === void 0) includeStandby = false;\n var observableQueryPromises = [];\n this.queries.forEach(function(_a, queryId) {\n var observableQuery = _a.observableQuery;\n if (observableQuery && observableQuery.hasObservers()) {\n var fetchPolicy = observableQuery.options.fetchPolicy;\n observableQuery.resetLastResults();\n if (fetchPolicy !== \"cache-only\" && (includeStandby || fetchPolicy !== \"standby\")) observableQueryPromises.push(observableQuery.refetch());\n _this.getQuery(queryId).setDiff(null);\n }\n });\n this.broadcastQueries();\n return Promise.all(observableQueryPromises);\n };\n QueryManager.prototype.setObservableQuery = function(observableQuery) {\n this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery);\n };\n QueryManager.prototype.startGraphQLSubscription = function(_a) {\n var _this = this;\n var query = _a.query, fetchPolicy = _a.fetchPolicy, errorPolicy = _a.errorPolicy, variables = _a.variables, _b = _a.context, context = _b === void 0 ? {} : _b;\n query = this.transform(query).document;\n variables = this.getVariables(query, variables);\n var makeObservable = function(variables) {\n return _this.getObservableFromLink(query, context, variables, false).map(function(result) {\n if (fetchPolicy !== \"no-cache\") {\n if ((0, _queryInfoJs.shouldWriteResult)(result, errorPolicy)) _this.cache.write({\n query: query,\n result: result.data,\n dataId: \"ROOT_SUBSCRIPTION\",\n variables: variables\n });\n _this.broadcastQueries();\n }\n if ((0, _indexJs1.graphQLResultHasError)(result)) throw new (0, _indexJs2.ApolloError)({\n graphQLErrors: result.errors\n });\n return result;\n });\n };\n if (this.transform(query).hasClientExports) {\n var observablePromise_1 = this.localState.addExportedVariables(query, variables, context).then(makeObservable);\n return new (0, _indexJs1.Observable)(function(observer) {\n var sub = null;\n observablePromise_1.then(function(observable) {\n return sub = observable.subscribe(observer);\n }, observer.error);\n return function() {\n return sub && sub.unsubscribe();\n };\n });\n }\n return makeObservable(variables);\n };\n QueryManager.prototype.stopQuery = function(queryId) {\n this.stopQueryNoBroadcast(queryId);\n this.broadcastQueries();\n };\n QueryManager.prototype.stopQueryNoBroadcast = function(queryId) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.removeQuery(queryId);\n };\n QueryManager.prototype.removeQuery = function(queryId) {\n this.fetchCancelFns.delete(queryId);\n this.getQuery(queryId).stop();\n this.queries.delete(queryId);\n };\n QueryManager.prototype.broadcastQueries = function() {\n if (this.onBroadcast) this.onBroadcast();\n this.queries.forEach(function(info) {\n return info.notify();\n });\n };\n QueryManager.prototype.getLocalState = function() {\n return this.localState;\n };\n QueryManager.prototype.getObservableFromLink = function(query, context, variables, deduplication) {\n var _this = this;\n var _a;\n if (deduplication === void 0) deduplication = (_a = context === null || context === void 0 ? void 0 : context.queryDeduplication) !== null && _a !== void 0 ? _a : this.queryDeduplication;\n var observable;\n var serverQuery = this.transform(query).serverQuery;\n if (serverQuery) {\n var _b = this, inFlightLinkObservables_1 = _b.inFlightLinkObservables, link = _b.link;\n var operation = {\n query: serverQuery,\n variables: variables,\n operationName: (0, _indexJs1.getOperationName)(serverQuery) || void 0,\n context: this.prepareContext((0, _tslib.__assign)((0, _tslib.__assign)({}, context), {\n forceFetch: !deduplication\n }))\n };\n context = operation.context;\n if (deduplication) {\n var byVariables_1 = inFlightLinkObservables_1.get(serverQuery) || new Map();\n inFlightLinkObservables_1.set(serverQuery, byVariables_1);\n var varJson_1 = JSON.stringify(variables);\n observable = byVariables_1.get(varJson_1);\n if (!observable) {\n var concast = new (0, _indexJs1.Concast)([\n (0, _indexJs.execute)(link, operation)\n ]);\n byVariables_1.set(varJson_1, observable = concast);\n concast.cleanup(function() {\n if (byVariables_1.delete(varJson_1) && byVariables_1.size < 1) inFlightLinkObservables_1.delete(serverQuery);\n });\n }\n } else observable = new (0, _indexJs1.Concast)([\n (0, _indexJs.execute)(link, operation)\n ]);\n } else {\n observable = new (0, _indexJs1.Concast)([\n (0, _indexJs1.Observable).of({\n data: {}\n })\n ]);\n context = this.prepareContext(context);\n }\n var clientQuery = this.transform(query).clientQuery;\n if (clientQuery) observable = (0, _indexJs1.asyncMap)(observable, function(result) {\n return _this.localState.runResolvers({\n document: clientQuery,\n remoteResult: result,\n context: context,\n variables: variables\n });\n });\n return observable;\n };\n QueryManager.prototype.getResultsFromLink = function(queryInfo, allowCacheWrite, options) {\n var requestId = queryInfo.lastRequestId = this.generateRequestId();\n return (0, _indexJs1.asyncMap)(this.getObservableFromLink(queryInfo.document, options.context, options.variables), function(result) {\n var hasErrors = (0, _indexJs1.isNonEmptyArray)(result.errors);\n if (requestId >= queryInfo.lastRequestId) {\n if (hasErrors && options.errorPolicy === \"none\") throw queryInfo.markError(new (0, _indexJs2.ApolloError)({\n graphQLErrors: result.errors\n }));\n queryInfo.markResult(result, options, allowCacheWrite);\n queryInfo.markReady();\n }\n var aqr = {\n data: result.data,\n loading: false,\n networkStatus: queryInfo.networkStatus || (0, _networkStatusJs.NetworkStatus).ready\n };\n if (hasErrors && options.errorPolicy !== \"ignore\") aqr.errors = result.errors;\n return aqr;\n }, function(networkError) {\n var error = (0, _indexJs2.isApolloError)(networkError) ? networkError : new (0, _indexJs2.ApolloError)({\n networkError: networkError\n });\n if (requestId >= queryInfo.lastRequestId) queryInfo.markError(error);\n throw error;\n });\n };\n QueryManager.prototype.fetchQueryObservable = function(queryId, options, networkStatus) {\n var _this = this;\n if (networkStatus === void 0) networkStatus = (0, _networkStatusJs.NetworkStatus).loading;\n var query = this.transform(options.query).document;\n var variables = this.getVariables(query, options.variables);\n var queryInfo = this.getQuery(queryId);\n var oldNetworkStatus = queryInfo.networkStatus;\n var _a = options.fetchPolicy, fetchPolicy = _a === void 0 ? \"cache-first\" : _a, _b = options.errorPolicy, errorPolicy = _b === void 0 ? \"none\" : _b, _c = options.returnPartialData, returnPartialData = _c === void 0 ? false : _c, _d = options.notifyOnNetworkStatusChange, notifyOnNetworkStatusChange = _d === void 0 ? false : _d, _e = options.context, context = _e === void 0 ? {} : _e;\n var mightUseNetwork = fetchPolicy === \"cache-first\" || fetchPolicy === \"cache-and-network\" || fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\";\n if (mightUseNetwork && notifyOnNetworkStatusChange && typeof oldNetworkStatus === \"number\" && oldNetworkStatus !== networkStatus && (0, _networkStatusJs.isNetworkRequestInFlight)(networkStatus)) {\n if (fetchPolicy !== \"cache-first\") fetchPolicy = \"cache-and-network\";\n returnPartialData = true;\n }\n var normalized = Object.assign({}, options, {\n query: query,\n variables: variables,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy,\n returnPartialData: returnPartialData,\n notifyOnNetworkStatusChange: notifyOnNetworkStatusChange,\n context: context\n });\n var fromVariables = function(variables) {\n normalized.variables = variables;\n return _this.fetchQueryByPolicy(queryInfo, normalized, networkStatus);\n };\n this.fetchCancelFns.set(queryId, function(reason) {\n Promise.resolve().then(function() {\n return concast.cancel(reason);\n });\n });\n var concast = new (0, _indexJs1.Concast)(this.transform(normalized.query).hasClientExports ? this.localState.addExportedVariables(normalized.query, normalized.variables, normalized.context).then(fromVariables) : fromVariables(normalized.variables));\n concast.cleanup(function() {\n _this.fetchCancelFns.delete(queryId);\n var nextFetchPolicy = options.nextFetchPolicy;\n if (nextFetchPolicy) {\n options.nextFetchPolicy = void 0;\n options.fetchPolicy = typeof nextFetchPolicy === \"function\" ? nextFetchPolicy.call(options, options.fetchPolicy || \"cache-first\") : nextFetchPolicy;\n }\n });\n return concast;\n };\n QueryManager.prototype.fetchQueryByPolicy = function(queryInfo, options, networkStatus) {\n var _this = this;\n var query = options.query, variables = options.variables, fetchPolicy = options.fetchPolicy, errorPolicy = options.errorPolicy, returnPartialData = options.returnPartialData, context = options.context;\n queryInfo.init({\n document: query,\n variables: variables,\n networkStatus: networkStatus\n });\n var readCache = function() {\n return queryInfo.getDiff(variables);\n };\n var resultsFromCache = function(diff, networkStatus) {\n if (networkStatus === void 0) networkStatus = queryInfo.networkStatus || (0, _networkStatusJs.NetworkStatus).loading;\n var data = diff.result;\n var fromData = function(data) {\n return (0, _indexJs1.Observable).of((0, _tslib.__assign)({\n data: data,\n loading: (0, _networkStatusJs.isNetworkRequestInFlight)(networkStatus),\n networkStatus: networkStatus\n }, diff.complete ? null : {\n partial: true\n }));\n };\n if (_this.transform(query).hasForcedResolvers) return _this.localState.runResolvers({\n document: query,\n remoteResult: {\n data: data\n },\n context: context,\n variables: variables,\n onlyRunForcedResolvers: true\n }).then(function(resolved) {\n return fromData(resolved.data);\n });\n return fromData(data);\n };\n var resultsFromLink = function(allowCacheWrite) {\n return _this.getResultsFromLink(queryInfo, allowCacheWrite, {\n variables: variables,\n context: context,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy\n });\n };\n switch(fetchPolicy){\n default:\n case \"cache-first\":\n var diff = readCache();\n if (diff.complete) return [\n resultsFromCache(diff, queryInfo.markReady())\n ];\n if (returnPartialData) return [\n resultsFromCache(diff),\n resultsFromLink(true)\n ];\n return [\n resultsFromLink(true)\n ];\n case \"cache-and-network\":\n var diff = readCache();\n if (diff.complete || returnPartialData) return [\n resultsFromCache(diff),\n resultsFromLink(true)\n ];\n return [\n resultsFromLink(true)\n ];\n case \"cache-only\":\n return [\n resultsFromCache(readCache(), queryInfo.markReady())\n ];\n case \"network-only\":\n return [\n resultsFromLink(true)\n ];\n case \"no-cache\":\n return [\n resultsFromLink(false)\n ];\n case \"standby\":\n return [];\n }\n };\n QueryManager.prototype.getQuery = function(queryId) {\n if (queryId && !this.queries.has(queryId)) this.queries.set(queryId, new (0, _queryInfoJs.QueryInfo)(this.cache));\n return this.queries.get(queryId);\n };\n QueryManager.prototype.prepareContext = function(context) {\n if (context === void 0) context = {};\n var newContext = this.localState.prepareContext(context);\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, newContext), {\n clientAwareness: this.clientAwareness\n });\n };\n return QueryManager;\n}();\n\n},{\"tslib\":\"5RODp\",\"ts-invariant\":\"2pI3w\",\"@wry/equality\":\"egZvf\",\"../link/core/index.js\":\"gXJ1R\",\"../utilities/index.js\":\"k55vB\",\"../errors/index.js\":\"73MUX\",\"./ObservableQuery.js\":\"aszik\",\"./networkStatus.js\":\"8yReP\",\"./LocalState.js\":\"9TB6L\",\"./QueryInfo.js\":\"2iGeB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"egZvf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"equal\", ()=>equal);\nvar _a = Object.prototype, toString = _a.toString, hasOwnProperty = _a.hasOwnProperty;\nvar fnToStr = Function.prototype.toString;\nvar previousComparisons = new Map();\n/**\r\n * Performs a deep equality check on two JavaScript values, tolerating cycles.\r\n */ function equal(a, b) {\n try {\n return check(a, b);\n } finally{\n previousComparisons.clear();\n }\n}\nfunction check(a, b) {\n // If the two values are strictly equal, our job is easy.\n if (a === b) return true;\n // Object.prototype.toString returns a representation of the runtime type of\n // the given value that is considerably more precise than typeof.\n var aTag = toString.call(a);\n var bTag = toString.call(b);\n // If the runtime types of a and b are different, they could maybe be equal\n // under some interpretation of equality, but for simplicity and performance\n // we just return false instead.\n if (aTag !== bTag) return false;\n switch(aTag){\n case \"[object Array]\":\n // Arrays are a lot like other objects, but we can cheaply compare their\n // lengths as a short-cut before comparing their elements.\n if (a.length !== b.length) return false;\n // Fall through to object case...\n case \"[object Object]\":\n if (previouslyCompared(a, b)) return true;\n var aKeys = definedKeys(a);\n var bKeys = definedKeys(b);\n // If `a` and `b` have a different number of enumerable keys, they\n // must be different.\n var keyCount = aKeys.length;\n if (keyCount !== bKeys.length) return false;\n // Now make sure they have the same keys.\n for(var k = 0; k < keyCount; ++k){\n if (!hasOwnProperty.call(b, aKeys[k])) return false;\n }\n // Finally, check deep equality of all child properties.\n for(var k = 0; k < keyCount; ++k){\n var key = aKeys[k];\n if (!check(a[key], b[key])) return false;\n }\n return true;\n case \"[object Error]\":\n return a.name === b.name && a.message === b.message;\n case \"[object Number]\":\n // Handle NaN, which is !== itself.\n if (a !== a) return b !== b;\n // Fall through to shared +a === +b case...\n case \"[object Boolean]\":\n case \"[object Date]\":\n return +a === +b;\n case \"[object RegExp]\":\n case \"[object String]\":\n return a == \"\" + b;\n case \"[object Map]\":\n case \"[object Set]\":\n if (a.size !== b.size) return false;\n if (previouslyCompared(a, b)) return true;\n var aIterator = a.entries();\n var isMap = aTag === \"[object Map]\";\n while(true){\n var info = aIterator.next();\n if (info.done) break;\n // If a instanceof Set, aValue === aKey.\n var _a = info.value, aKey = _a[0], aValue = _a[1];\n // So this works the same way for both Set and Map.\n if (!b.has(aKey)) return false;\n // However, we care about deep equality of values only when dealing\n // with Map structures.\n if (isMap && !check(aValue, b.get(aKey))) return false;\n }\n return true;\n case \"[object AsyncFunction]\":\n case \"[object GeneratorFunction]\":\n case \"[object AsyncGeneratorFunction]\":\n case \"[object Function]\":\n var aCode = fnToStr.call(a);\n if (aCode !== fnToStr.call(b)) return false;\n // We consider non-native functions equal if they have the same code\n // (native functions require === because their code is censored).\n // Note that this behavior is not entirely sound, since !== function\n // objects with the same code can behave differently depending on\n // their closure scope. However, any function can behave differently\n // depending on the values of its input arguments (including this)\n // and its calling context (including its closure scope), even\n // though the function object is === to itself; and it is entirely\n // possible for functions that are not === to behave exactly the\n // same under all conceivable circumstances. Because none of these\n // factors are statically decidable in JavaScript, JS function\n // equality is not well-defined. This ambiguity allows us to\n // consider the best possible heuristic among various imperfect\n // options, and equating non-native functions that have the same\n // code has enormous practical benefits, such as when comparing\n // functions that are repeatedly passed as fresh function\n // expressions within objects that are otherwise deeply equal. Since\n // any function created from the same syntactic expression (in the\n // same code location) will always stringify to the same code\n // according to fnToStr.call, we can reasonably expect these\n // repeatedly passed function expressions to have the same code, and\n // thus behave \"the same\" (with all the caveats mentioned above),\n // even though the runtime function objects are !== to one another.\n return !endsWith(aCode, nativeCodeSuffix);\n }\n // Otherwise the values are not equal.\n return false;\n}\nfunction definedKeys(obj) {\n // Remember that the second argument to Array.prototype.filter will be\n // used as `this` within the callback function.\n return Object.keys(obj).filter(isDefinedKey, obj);\n}\nfunction isDefinedKey(key) {\n return this[key] !== void 0;\n}\nvar nativeCodeSuffix = \"{ [native code] }\";\nfunction endsWith(full, suffix) {\n var fromIndex = full.length - suffix.length;\n return fromIndex >= 0 && full.indexOf(suffix, fromIndex) === fromIndex;\n}\nfunction previouslyCompared(a, b) {\n // Though cyclic references can make an object graph appear infinite from the\n // perspective of a depth-first traversal, the graph still contains a finite\n // number of distinct object references. We use the previousComparisons cache\n // to avoid comparing the same pair of object references more than once, which\n // guarantees termination (even if we end up comparing every object in one\n // graph to every object in the other graph, which is extremely unlikely),\n // while still allowing weird isomorphic structures (like rings with different\n // lengths) a chance to pass the equality test.\n var bSet = previousComparisons.get(a);\n if (bSet) {\n // Return true here because we can be sure false will be returned somewhere\n // else if the objects are not equivalent.\n if (bSet.has(b)) return true;\n } else previousComparisons.set(a, bSet = new Set);\n bSet.add(b);\n return false;\n}\nexports.default = equal;\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"73MUX\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"isApolloError\", ()=>isApolloError);\nparcelHelpers.export(exports, \"ApolloError\", ()=>ApolloError);\nvar _tslib = require(\"tslib\");\nvar _indexJs = require(\"../utilities/index.js\");\nfunction isApolloError(err) {\n return err.hasOwnProperty(\"graphQLErrors\");\n}\nvar generateErrorMessage = function(err) {\n var message = \"\";\n if ((0, _indexJs.isNonEmptyArray)(err.graphQLErrors)) err.graphQLErrors.forEach(function(graphQLError) {\n var errorMessage = graphQLError ? graphQLError.message : \"Error message not found.\";\n message += errorMessage + \"\\n\";\n });\n if (err.networkError) message += err.networkError.message + \"\\n\";\n message = message.replace(/\\n$/, \"\");\n return message;\n};\nvar ApolloError = function(_super) {\n (0, _tslib.__extends)(ApolloError, _super);\n function ApolloError(_a) {\n var graphQLErrors = _a.graphQLErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo;\n var _this = _super.call(this, errorMessage) || this;\n _this.graphQLErrors = graphQLErrors || [];\n _this.networkError = networkError || null;\n _this.message = errorMessage || generateErrorMessage(_this);\n _this.extraInfo = extraInfo;\n _this.__proto__ = ApolloError.prototype;\n return _this;\n }\n return ApolloError;\n}(Error);\n\n},{\"tslib\":\"5RODp\",\"../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aszik\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ObservableQuery\", ()=>ObservableQuery);\nvar _tslib = require(\"tslib\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _equality = require(\"@wry/equality\");\nvar _networkStatusJs = require(\"./networkStatus.js\");\nvar _indexJs = require(\"../utilities/index.js\");\nvar _reobserverJs = require(\"./Reobserver.js\");\nvar warnedAboutUpdateQuery = false;\nvar ObservableQuery = function(_super) {\n (0, _tslib.__extends)(ObservableQuery, _super);\n function ObservableQuery(_a) {\n var queryManager = _a.queryManager, queryInfo = _a.queryInfo, options = _a.options;\n var _this = _super.call(this, function(observer) {\n return _this.onSubscribe(observer);\n }) || this;\n _this.observers = new Set();\n _this.subscriptions = new Set();\n _this.observer = {\n next: function(result) {\n if (_this.lastError || _this.isDifferentFromLastResult(result)) {\n _this.updateLastResult(result);\n (0, _indexJs.iterateObserversSafely)(_this.observers, \"next\", result);\n }\n },\n error: function(error) {\n _this.updateLastResult((0, _tslib.__assign)((0, _tslib.__assign)({}, _this.lastResult), {\n error: error,\n errors: error.graphQLErrors,\n networkStatus: (0, _networkStatusJs.NetworkStatus).error,\n loading: false\n }));\n (0, _indexJs.iterateObserversSafely)(_this.observers, \"error\", _this.lastError = error);\n }\n };\n _this.isTornDown = false;\n _this.options = options;\n _this.queryId = queryManager.generateQueryId();\n var opDef = (0, _indexJs.getOperationDefinition)(options.query);\n _this.queryName = opDef && opDef.name && opDef.name.value;\n _this.queryManager = queryManager;\n _this.queryInfo = queryInfo;\n return _this;\n }\n Object.defineProperty(ObservableQuery.prototype, \"variables\", {\n get: function() {\n return this.options.variables;\n },\n enumerable: false,\n configurable: true\n });\n ObservableQuery.prototype.result = function() {\n var _this = this;\n return new Promise(function(resolve, reject) {\n var observer = {\n next: function(result) {\n resolve(result);\n _this.observers.delete(observer);\n if (!_this.observers.size) _this.queryManager.removeQuery(_this.queryId);\n setTimeout(function() {\n subscription.unsubscribe();\n }, 0);\n },\n error: reject\n };\n var subscription = _this.subscribe(observer);\n });\n };\n ObservableQuery.prototype.getCurrentResult = function(saveAsLastResult) {\n if (saveAsLastResult === void 0) saveAsLastResult = true;\n var lastResult = this.lastResult;\n var networkStatus = this.queryInfo.networkStatus || lastResult && lastResult.networkStatus || (0, _networkStatusJs.NetworkStatus).ready;\n var result = (0, _tslib.__assign)((0, _tslib.__assign)({}, lastResult), {\n loading: (0, _networkStatusJs.isNetworkRequestInFlight)(networkStatus),\n networkStatus: networkStatus\n });\n if (this.isTornDown) return result;\n var _a = this.options.fetchPolicy, fetchPolicy = _a === void 0 ? \"cache-first\" : _a;\n if (fetchPolicy === \"no-cache\" || fetchPolicy === \"network-only\") delete result.partial;\n else if (!result.data || !this.queryManager.transform(this.options.query).hasForcedResolvers) {\n var diff = this.queryInfo.getDiff();\n result.data = diff.complete || this.options.returnPartialData ? diff.result : void 0;\n if (diff.complete) {\n if (result.networkStatus === (0, _networkStatusJs.NetworkStatus).loading && (fetchPolicy === \"cache-first\" || fetchPolicy === \"cache-only\")) {\n result.networkStatus = (0, _networkStatusJs.NetworkStatus).ready;\n result.loading = false;\n }\n delete result.partial;\n } else result.partial = true;\n }\n if (saveAsLastResult) this.updateLastResult(result);\n return result;\n };\n ObservableQuery.prototype.isDifferentFromLastResult = function(newResult) {\n return !(0, _equality.equal)(this.lastResultSnapshot, newResult);\n };\n ObservableQuery.prototype.getLastResult = function() {\n return this.lastResult;\n };\n ObservableQuery.prototype.getLastError = function() {\n return this.lastError;\n };\n ObservableQuery.prototype.resetLastResults = function() {\n delete this.lastResult;\n delete this.lastResultSnapshot;\n delete this.lastError;\n this.isTornDown = false;\n };\n ObservableQuery.prototype.resetQueryStoreErrors = function() {\n this.queryManager.resetErrors(this.queryId);\n };\n ObservableQuery.prototype.refetch = function(variables) {\n var reobserveOptions = {\n pollInterval: 0\n };\n var fetchPolicy = this.options.fetchPolicy;\n if (fetchPolicy !== \"no-cache\" && fetchPolicy !== \"cache-and-network\") {\n reobserveOptions.fetchPolicy = \"network-only\";\n reobserveOptions.nextFetchPolicy = fetchPolicy || \"cache-first\";\n }\n if (variables && !(0, _equality.equal)(this.options.variables, variables)) reobserveOptions.variables = this.options.variables = (0, _tslib.__assign)((0, _tslib.__assign)({}, this.options.variables), variables);\n return this.newReobserver(false).reobserve(reobserveOptions, (0, _networkStatusJs.NetworkStatus).refetch);\n };\n ObservableQuery.prototype.fetchMore = function(fetchMoreOptions) {\n var _this = this;\n var combinedOptions = (0, _tslib.__assign)((0, _tslib.__assign)({}, fetchMoreOptions.query ? fetchMoreOptions : (0, _tslib.__assign)((0, _tslib.__assign)((0, _tslib.__assign)({}, this.options), fetchMoreOptions), {\n variables: (0, _tslib.__assign)((0, _tslib.__assign)({}, this.options.variables), fetchMoreOptions.variables)\n })), {\n fetchPolicy: \"no-cache\"\n });\n var qid = this.queryManager.generateQueryId();\n if (combinedOptions.notifyOnNetworkStatusChange) {\n this.queryInfo.networkStatus = (0, _networkStatusJs.NetworkStatus).fetchMore;\n this.observe();\n }\n return this.queryManager.fetchQuery(qid, combinedOptions, (0, _networkStatusJs.NetworkStatus).fetchMore).then(function(fetchMoreResult) {\n var data = fetchMoreResult.data;\n var updateQuery = fetchMoreOptions.updateQuery;\n if (updateQuery) _this.updateQuery(function(previous) {\n return updateQuery(previous, {\n fetchMoreResult: data,\n variables: combinedOptions.variables\n });\n });\n else _this.queryManager.cache.writeQuery({\n query: combinedOptions.query,\n variables: combinedOptions.variables,\n data: data\n });\n return fetchMoreResult;\n }).finally(function() {\n _this.queryManager.stopQuery(qid);\n _this.reobserve();\n });\n };\n ObservableQuery.prototype.subscribeToMore = function(options) {\n var _this = this;\n var subscription = this.queryManager.startGraphQLSubscription({\n query: options.document,\n variables: options.variables,\n context: options.context\n }).subscribe({\n next: function(subscriptionData) {\n var updateQuery = options.updateQuery;\n if (updateQuery) _this.updateQuery(function(previous, _a) {\n var variables = _a.variables;\n return updateQuery(previous, {\n subscriptionData: subscriptionData,\n variables: variables\n });\n });\n },\n error: function(err) {\n if (options.onError) {\n options.onError(err);\n return;\n }\n }\n });\n this.subscriptions.add(subscription);\n return function() {\n if (_this.subscriptions.delete(subscription)) subscription.unsubscribe();\n };\n };\n ObservableQuery.prototype.setOptions = function(newOptions) {\n return this.reobserve(newOptions);\n };\n ObservableQuery.prototype.setVariables = function(variables) {\n if ((0, _equality.equal)(this.variables, variables)) return this.observers.size ? this.result() : Promise.resolve();\n this.options.variables = variables;\n if (!this.observers.size) return Promise.resolve();\n var _a = this.options.fetchPolicy, fetchPolicy = _a === void 0 ? \"cache-first\" : _a;\n var reobserveOptions = {\n fetchPolicy: fetchPolicy,\n variables: variables\n };\n if (fetchPolicy !== \"cache-first\" && fetchPolicy !== \"no-cache\" && fetchPolicy !== \"network-only\") {\n reobserveOptions.fetchPolicy = \"cache-and-network\";\n reobserveOptions.nextFetchPolicy = fetchPolicy;\n }\n return this.reobserve(reobserveOptions, (0, _networkStatusJs.NetworkStatus).setVariables);\n };\n ObservableQuery.prototype.updateQuery = function(mapFn) {\n var _a;\n var queryManager = this.queryManager;\n var result = queryManager.cache.diff({\n query: this.options.query,\n variables: this.variables,\n previousResult: (_a = this.lastResult) === null || _a === void 0 ? void 0 : _a.data,\n returnPartialData: true,\n optimistic: false\n }).result;\n var newResult = mapFn(result, {\n variables: this.variables\n });\n if (newResult) {\n queryManager.cache.writeQuery({\n query: this.options.query,\n data: newResult,\n variables: this.variables\n });\n queryManager.broadcastQueries();\n }\n };\n ObservableQuery.prototype.startPolling = function(pollInterval) {\n this.getReobserver().updateOptions({\n pollInterval: pollInterval\n });\n };\n ObservableQuery.prototype.stopPolling = function() {\n if (this.reobserver) this.reobserver.updateOptions({\n pollInterval: 0\n });\n };\n ObservableQuery.prototype.updateLastResult = function(newResult) {\n var previousResult = this.lastResult;\n this.lastResult = newResult;\n this.lastResultSnapshot = this.queryManager.assumeImmutableResults ? newResult : (0, _indexJs.cloneDeep)(newResult);\n if (!(0, _indexJs.isNonEmptyArray)(newResult.errors)) delete this.lastError;\n return previousResult;\n };\n ObservableQuery.prototype.onSubscribe = function(observer) {\n var _this = this;\n if (observer === this.observer) return function() {};\n try {\n var subObserver = observer._subscription._observer;\n if (subObserver && !subObserver.error) subObserver.error = defaultSubscriptionObserverErrorCallback;\n } catch (_a) {}\n var first = !this.observers.size;\n this.observers.add(observer);\n if (this.lastError) observer.error && observer.error(this.lastError);\n else if (this.lastResult) observer.next && observer.next(this.lastResult);\n if (first) this.reobserve().catch(function(_) {});\n return function() {\n if (_this.observers.delete(observer) && !_this.observers.size) _this.tearDownQuery();\n };\n };\n ObservableQuery.prototype.getReobserver = function() {\n return this.reobserver || (this.reobserver = this.newReobserver(true));\n };\n ObservableQuery.prototype.newReobserver = function(shareOptions) {\n var _this = this;\n var _a = this, queryManager = _a.queryManager, queryId = _a.queryId;\n queryManager.setObservableQuery(this);\n return new (0, _reobserverJs.Reobserver)(this.observer, shareOptions ? this.options : (0, _tslib.__assign)({}, this.options), function(currentOptions, newNetworkStatus) {\n queryManager.setObservableQuery(_this);\n return queryManager.fetchQueryObservable(queryId, currentOptions, newNetworkStatus);\n }, !queryManager.ssrMode && function() {\n return !(0, _networkStatusJs.isNetworkRequestInFlight)(_this.queryInfo.networkStatus);\n });\n };\n ObservableQuery.prototype.reobserve = function(newOptions, newNetworkStatus) {\n this.isTornDown = false;\n return this.getReobserver().reobserve(newOptions, newNetworkStatus);\n };\n ObservableQuery.prototype.observe = function() {\n this.observer.next(this.getCurrentResult(false));\n };\n ObservableQuery.prototype.hasObservers = function() {\n return this.observers.size > 0;\n };\n ObservableQuery.prototype.tearDownQuery = function() {\n if (this.isTornDown) return;\n if (this.reobserver) {\n this.reobserver.stop();\n delete this.reobserver;\n }\n this.subscriptions.forEach(function(sub) {\n return sub.unsubscribe();\n });\n this.subscriptions.clear();\n this.queryManager.stopQuery(this.queryId);\n this.observers.clear();\n this.isTornDown = true;\n };\n return ObservableQuery;\n}((0, _indexJs.Observable));\n(0, _indexJs.fixObservableSubclass)(ObservableQuery);\nfunction defaultSubscriptionObserverErrorCallback(error) {}\n\n},{\"tslib\":\"5RODp\",\"ts-invariant\":\"2pI3w\",\"@wry/equality\":\"egZvf\",\"./networkStatus.js\":\"8yReP\",\"../utilities/index.js\":\"k55vB\",\"./Reobserver.js\":\"6Lc1n\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8yReP\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"NetworkStatus\", ()=>NetworkStatus);\nparcelHelpers.export(exports, \"isNetworkRequestInFlight\", ()=>isNetworkRequestInFlight);\nvar NetworkStatus;\n(function(NetworkStatus) {\n NetworkStatus[NetworkStatus[\"loading\"] = 1] = \"loading\";\n NetworkStatus[NetworkStatus[\"setVariables\"] = 2] = \"setVariables\";\n NetworkStatus[NetworkStatus[\"fetchMore\"] = 3] = \"fetchMore\";\n NetworkStatus[NetworkStatus[\"refetch\"] = 4] = \"refetch\";\n NetworkStatus[NetworkStatus[\"poll\"] = 6] = \"poll\";\n NetworkStatus[NetworkStatus[\"ready\"] = 7] = \"ready\";\n NetworkStatus[NetworkStatus[\"error\"] = 8] = \"error\";\n})(NetworkStatus || (NetworkStatus = {}));\nfunction isNetworkRequestInFlight(networkStatus) {\n return networkStatus ? networkStatus < 7 : false;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6Lc1n\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Reobserver\", ()=>Reobserver);\nvar _networkStatusJs = require(\"./networkStatus.js\");\nvar _indexJs = require(\"../utilities/index.js\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar Reobserver = function() {\n function Reobserver(observer, options, fetch, shouldFetch) {\n this.observer = observer;\n this.options = options;\n this.fetch = fetch;\n this.shouldFetch = shouldFetch;\n }\n Reobserver.prototype.reobserve = function(newOptions, newNetworkStatus) {\n if (newOptions) this.updateOptions(newOptions);\n else this.updatePolling();\n var concast = this.fetch(this.options, newNetworkStatus);\n if (this.concast) this.concast.removeObserver(this.observer, true);\n concast.addObserver(this.observer);\n return (this.concast = concast).promise;\n };\n Reobserver.prototype.updateOptions = function(newOptions) {\n Object.assign(this.options, (0, _indexJs.compact)(newOptions));\n this.updatePolling();\n return this;\n };\n Reobserver.prototype.stop = function() {\n if (this.concast) {\n this.concast.removeObserver(this.observer);\n delete this.concast;\n }\n if (this.pollingInfo) {\n clearTimeout(this.pollingInfo.timeout);\n this.options.pollInterval = 0;\n this.updatePolling();\n }\n };\n Reobserver.prototype.updatePolling = function() {\n var _this = this;\n var _a = this, pollingInfo = _a.pollingInfo, pollInterval = _a.options.pollInterval;\n if (!pollInterval) {\n if (pollingInfo) {\n clearTimeout(pollingInfo.timeout);\n delete this.pollingInfo;\n }\n return;\n }\n if (pollingInfo && pollingInfo.interval === pollInterval) return;\n (0, _tsInvariant.invariant)(pollInterval, 20);\n if (this.shouldFetch === false) return;\n var info = pollingInfo || (this.pollingInfo = {});\n info.interval = pollInterval;\n var maybeFetch = function() {\n if (_this.pollingInfo) {\n if (_this.shouldFetch && _this.shouldFetch()) _this.reobserve({\n fetchPolicy: \"network-only\",\n nextFetchPolicy: _this.options.fetchPolicy || \"cache-first\"\n }, (0, _networkStatusJs.NetworkStatus).poll).then(poll, poll);\n else poll();\n }\n };\n var poll = function() {\n var info = _this.pollingInfo;\n if (info) {\n clearTimeout(info.timeout);\n info.timeout = setTimeout(maybeFetch, info.interval);\n }\n };\n poll();\n };\n return Reobserver;\n}();\n\n},{\"./networkStatus.js\":\"8yReP\",\"../utilities/index.js\":\"k55vB\",\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9TB6L\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"LocalState\", ()=>LocalState);\nvar _tslib = require(\"tslib\");\nvar _graphql = require(\"graphql\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../utilities/index.js\");\nvar _indexJs1 = require(\"../cache/index.js\");\nvar LocalState = function() {\n function LocalState(_a) {\n var cache = _a.cache, client = _a.client, resolvers = _a.resolvers, fragmentMatcher = _a.fragmentMatcher;\n this.cache = cache;\n if (client) this.client = client;\n if (resolvers) this.addResolvers(resolvers);\n if (fragmentMatcher) this.setFragmentMatcher(fragmentMatcher);\n }\n LocalState.prototype.addResolvers = function(resolvers) {\n var _this = this;\n this.resolvers = this.resolvers || {};\n if (Array.isArray(resolvers)) resolvers.forEach(function(resolverGroup) {\n _this.resolvers = (0, _indexJs.mergeDeep)(_this.resolvers, resolverGroup);\n });\n else this.resolvers = (0, _indexJs.mergeDeep)(this.resolvers, resolvers);\n };\n LocalState.prototype.setResolvers = function(resolvers) {\n this.resolvers = {};\n this.addResolvers(resolvers);\n };\n LocalState.prototype.getResolvers = function() {\n return this.resolvers || {};\n };\n LocalState.prototype.runResolvers = function(_a) {\n var document = _a.document, remoteResult = _a.remoteResult, context = _a.context, variables = _a.variables, _b = _a.onlyRunForcedResolvers, onlyRunForcedResolvers = _b === void 0 ? false : _b;\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n return (0, _tslib.__generator)(this, function(_c) {\n if (document) return [\n 2,\n this.resolveDocument(document, remoteResult.data, context, variables, this.fragmentMatcher, onlyRunForcedResolvers).then(function(localResult) {\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, remoteResult), {\n data: localResult.result\n });\n })\n ];\n return [\n 2,\n remoteResult\n ];\n });\n });\n };\n LocalState.prototype.setFragmentMatcher = function(fragmentMatcher) {\n this.fragmentMatcher = fragmentMatcher;\n };\n LocalState.prototype.getFragmentMatcher = function() {\n return this.fragmentMatcher;\n };\n LocalState.prototype.clientQuery = function(document) {\n if ((0, _indexJs.hasDirectives)([\n \"client\"\n ], document)) {\n if (this.resolvers) return document;\n }\n return null;\n };\n LocalState.prototype.serverQuery = function(document) {\n return (0, _indexJs.removeClientSetsFromDocument)(document);\n };\n LocalState.prototype.prepareContext = function(context) {\n var cache = this.cache;\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, context), {\n cache: cache,\n getCacheKey: function(obj) {\n return cache.identify(obj);\n }\n });\n };\n LocalState.prototype.addExportedVariables = function(document, variables, context) {\n if (variables === void 0) variables = {};\n if (context === void 0) context = {};\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n return (0, _tslib.__generator)(this, function(_a) {\n if (document) return [\n 2,\n this.resolveDocument(document, this.buildRootValueFromCache(document, variables) || {}, this.prepareContext(context), variables).then(function(data) {\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, variables), data.exportedVariables);\n })\n ];\n return [\n 2,\n (0, _tslib.__assign)({}, variables)\n ];\n });\n });\n };\n LocalState.prototype.shouldForceResolvers = function(document) {\n var forceResolvers = false;\n (0, _graphql.visit)(document, {\n Directive: {\n enter: function(node) {\n if (node.name.value === \"client\" && node.arguments) {\n forceResolvers = node.arguments.some(function(arg) {\n return arg.name.value === \"always\" && arg.value.kind === \"BooleanValue\" && arg.value.value === true;\n });\n if (forceResolvers) return 0, _graphql.BREAK;\n }\n }\n }\n });\n return forceResolvers;\n };\n LocalState.prototype.buildRootValueFromCache = function(document, variables) {\n return this.cache.diff({\n query: (0, _indexJs.buildQueryFromSelectionSet)(document),\n variables: variables,\n returnPartialData: true,\n optimistic: false\n }).result;\n };\n LocalState.prototype.resolveDocument = function(document, rootValue, context, variables, fragmentMatcher, onlyRunForcedResolvers) {\n if (context === void 0) context = {};\n if (variables === void 0) variables = {};\n if (fragmentMatcher === void 0) fragmentMatcher = function() {\n return true;\n };\n if (onlyRunForcedResolvers === void 0) onlyRunForcedResolvers = false;\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n var mainDefinition, fragments, fragmentMap, definitionOperation, defaultOperationType, _a, cache, client, execContext;\n return (0, _tslib.__generator)(this, function(_b) {\n mainDefinition = (0, _indexJs.getMainDefinition)(document);\n fragments = (0, _indexJs.getFragmentDefinitions)(document);\n fragmentMap = (0, _indexJs.createFragmentMap)(fragments);\n definitionOperation = mainDefinition.operation;\n defaultOperationType = definitionOperation ? definitionOperation.charAt(0).toUpperCase() + definitionOperation.slice(1) : \"Query\";\n _a = this, cache = _a.cache, client = _a.client;\n execContext = {\n fragmentMap: fragmentMap,\n context: (0, _tslib.__assign)((0, _tslib.__assign)({}, context), {\n cache: cache,\n client: client\n }),\n variables: variables,\n fragmentMatcher: fragmentMatcher,\n defaultOperationType: defaultOperationType,\n exportedVariables: {},\n onlyRunForcedResolvers: onlyRunForcedResolvers\n };\n return [\n 2,\n this.resolveSelectionSet(mainDefinition.selectionSet, rootValue, execContext).then(function(result) {\n return {\n result: result,\n exportedVariables: execContext.exportedVariables\n };\n })\n ];\n });\n });\n };\n LocalState.prototype.resolveSelectionSet = function(selectionSet, rootValue, execContext) {\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n var fragmentMap, context, variables, resultsToMerge, execute;\n var _this = this;\n return (0, _tslib.__generator)(this, function(_a) {\n fragmentMap = execContext.fragmentMap, context = execContext.context, variables = execContext.variables;\n resultsToMerge = [\n rootValue\n ];\n execute = function(selection) {\n return (0, _tslib.__awaiter)(_this, void 0, void 0, function() {\n var fragment, typeCondition;\n return (0, _tslib.__generator)(this, function(_a) {\n if (!(0, _indexJs.shouldInclude)(selection, variables)) return [\n 2\n ];\n if ((0, _indexJs.isField)(selection)) return [\n 2,\n this.resolveField(selection, rootValue, execContext).then(function(fieldResult) {\n var _a;\n if (typeof fieldResult !== \"undefined\") resultsToMerge.push((_a = {}, _a[(0, _indexJs.resultKeyNameFromField)(selection)] = fieldResult, _a));\n })\n ];\n if ((0, _indexJs.isInlineFragment)(selection)) fragment = selection;\n else {\n fragment = fragmentMap[selection.name.value];\n (0, _tsInvariant.invariant)(fragment, 11);\n }\n if (fragment && fragment.typeCondition) {\n typeCondition = fragment.typeCondition.name.value;\n if (execContext.fragmentMatcher(rootValue, typeCondition, context)) return [\n 2,\n this.resolveSelectionSet(fragment.selectionSet, rootValue, execContext).then(function(fragmentResult) {\n resultsToMerge.push(fragmentResult);\n })\n ];\n }\n return [\n 2\n ];\n });\n });\n };\n return [\n 2,\n Promise.all(selectionSet.selections.map(execute)).then(function() {\n return (0, _indexJs.mergeDeepArray)(resultsToMerge);\n })\n ];\n });\n });\n };\n LocalState.prototype.resolveField = function(field, rootValue, execContext) {\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n var variables, fieldName, aliasedFieldName, aliasUsed, defaultResult, resultPromise, resolverType, resolverMap, resolve;\n var _this = this;\n return (0, _tslib.__generator)(this, function(_a) {\n variables = execContext.variables;\n fieldName = field.name.value;\n aliasedFieldName = (0, _indexJs.resultKeyNameFromField)(field);\n aliasUsed = fieldName !== aliasedFieldName;\n defaultResult = rootValue[aliasedFieldName] || rootValue[fieldName];\n resultPromise = Promise.resolve(defaultResult);\n if (!execContext.onlyRunForcedResolvers || this.shouldForceResolvers(field)) {\n resolverType = rootValue.__typename || execContext.defaultOperationType;\n resolverMap = this.resolvers && this.resolvers[resolverType];\n if (resolverMap) {\n resolve = resolverMap[aliasUsed ? fieldName : aliasedFieldName];\n if (resolve) resultPromise = Promise.resolve((0, _indexJs1.cacheSlot).withValue(this.cache, resolve, [\n rootValue,\n (0, _indexJs.argumentsObjectFromField)(field, variables),\n execContext.context,\n {\n field: field,\n fragmentMap: execContext.fragmentMap\n }\n ]));\n }\n }\n return [\n 2,\n resultPromise.then(function(result) {\n if (result === void 0) result = defaultResult;\n if (field.directives) field.directives.forEach(function(directive) {\n if (directive.name.value === \"export\" && directive.arguments) directive.arguments.forEach(function(arg) {\n if (arg.name.value === \"as\" && arg.value.kind === \"StringValue\") execContext.exportedVariables[arg.value.value] = result;\n });\n });\n if (!field.selectionSet) return result;\n if (result == null) return result;\n if (Array.isArray(result)) return _this.resolveSubSelectedArray(field, result, execContext);\n if (field.selectionSet) return _this.resolveSelectionSet(field.selectionSet, result, execContext);\n })\n ];\n });\n });\n };\n LocalState.prototype.resolveSubSelectedArray = function(field, result, execContext) {\n var _this = this;\n return Promise.all(result.map(function(item) {\n if (item === null) return null;\n if (Array.isArray(item)) return _this.resolveSubSelectedArray(field, item, execContext);\n if (field.selectionSet) return _this.resolveSelectionSet(field.selectionSet, item, execContext);\n }));\n };\n return LocalState;\n}();\n\n},{\"tslib\":\"5RODp\",\"graphql\":\"crWS5\",\"ts-invariant\":\"2pI3w\",\"../utilities/index.js\":\"k55vB\",\"../cache/index.js\":\"fv0fM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fv0fM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloCache\", ()=>(0, _cacheJs.ApolloCache));\nparcelHelpers.export(exports, \"Cache\", ()=>(0, _cacheJs1.Cache));\nparcelHelpers.export(exports, \"MissingFieldError\", ()=>(0, _commonJs.MissingFieldError));\nparcelHelpers.export(exports, \"isReference\", ()=>(0, _indexJs.isReference));\nparcelHelpers.export(exports, \"makeReference\", ()=>(0, _indexJs.makeReference));\nparcelHelpers.export(exports, \"InMemoryCache\", ()=>(0, _inMemoryCacheJs.InMemoryCache));\nparcelHelpers.export(exports, \"makeVar\", ()=>(0, _reactiveVarsJs.makeVar));\nparcelHelpers.export(exports, \"cacheSlot\", ()=>(0, _reactiveVarsJs.cacheSlot));\nparcelHelpers.export(exports, \"defaultDataIdFromObject\", ()=>(0, _policiesJs.defaultDataIdFromObject));\nvar _cacheJs = require(\"./core/cache.js\");\nvar _cacheJs1 = require(\"./core/types/Cache.js\");\nvar _commonJs = require(\"./core/types/common.js\");\nvar _indexJs = require(\"../utilities/index.js\");\nvar _inMemoryCacheJs = require(\"./inmemory/inMemoryCache.js\");\nvar _reactiveVarsJs = require(\"./inmemory/reactiveVars.js\");\nvar _policiesJs = require(\"./inmemory/policies.js\");\nvar _typesJs = require(\"./inmemory/types.js\");\nparcelHelpers.exportAll(_typesJs, exports);\n\n},{\"./core/cache.js\":\"ktbzp\",\"./core/types/Cache.js\":\"xTrhF\",\"./core/types/common.js\":\"bp7SS\",\"../utilities/index.js\":\"k55vB\",\"./inmemory/inMemoryCache.js\":\"f5Hyy\",\"./inmemory/reactiveVars.js\":\"7nqYk\",\"./inmemory/policies.js\":\"6FYrH\",\"./inmemory/types.js\":\"i6tcv\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ktbzp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloCache\", ()=>ApolloCache);\nvar _optimism = require(\"optimism\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar ApolloCache = function() {\n function ApolloCache() {\n this.getFragmentDoc = (0, _optimism.wrap)((0, _indexJs.getFragmentQueryDocument));\n }\n ApolloCache.prototype.recordOptimisticTransaction = function(transaction, optimisticId) {\n this.performTransaction(transaction, optimisticId);\n };\n ApolloCache.prototype.transformDocument = function(document) {\n return document;\n };\n ApolloCache.prototype.identify = function(object) {\n return;\n };\n ApolloCache.prototype.gc = function() {\n return [];\n };\n ApolloCache.prototype.modify = function(options) {\n return false;\n };\n ApolloCache.prototype.transformForLink = function(document) {\n return document;\n };\n ApolloCache.prototype.readQuery = function(options, optimistic) {\n if (optimistic === void 0) optimistic = !!options.optimistic;\n return this.read({\n rootId: options.id || \"ROOT_QUERY\",\n query: options.query,\n variables: options.variables,\n returnPartialData: options.returnPartialData,\n optimistic: optimistic\n });\n };\n ApolloCache.prototype.readFragment = function(options, optimistic) {\n if (optimistic === void 0) optimistic = !!options.optimistic;\n return this.read({\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n variables: options.variables,\n rootId: options.id,\n returnPartialData: options.returnPartialData,\n optimistic: optimistic\n });\n };\n ApolloCache.prototype.writeQuery = function(options) {\n return this.write({\n dataId: options.id || \"ROOT_QUERY\",\n result: options.data,\n query: options.query,\n variables: options.variables,\n broadcast: options.broadcast\n });\n };\n ApolloCache.prototype.writeFragment = function(options) {\n return this.write({\n dataId: options.id,\n result: options.data,\n variables: options.variables,\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n broadcast: options.broadcast\n });\n };\n return ApolloCache;\n}();\n\n},{\"optimism\":\"2cebH\",\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2cebH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"KeyTrie\", ()=>(0, _trie.Trie));\nparcelHelpers.export(exports, \"asyncFromGen\", ()=>(0, _context.asyncFromGen));\nparcelHelpers.export(exports, \"bindContext\", ()=>(0, _context.bind));\nparcelHelpers.export(exports, \"noContext\", ()=>(0, _context.noContext));\nparcelHelpers.export(exports, \"setTimeout\", ()=>(0, _context.setTimeout));\nparcelHelpers.export(exports, \"defaultMakeCacheKey\", ()=>defaultMakeCacheKey);\nparcelHelpers.export(exports, \"dep\", ()=>dep);\nparcelHelpers.export(exports, \"wrap\", ()=>wrap);\nvar _trie = require(\"@wry/trie\");\nvar _context = require(\"@wry/context\");\nfunction defaultDispose() {}\nvar Cache = /** @class */ function() {\n function Cache(max, dispose) {\n if (max === void 0) max = Infinity;\n if (dispose === void 0) dispose = defaultDispose;\n this.max = max;\n this.dispose = dispose;\n this.map = new Map();\n this.newest = null;\n this.oldest = null;\n }\n Cache.prototype.has = function(key) {\n return this.map.has(key);\n };\n Cache.prototype.get = function(key) {\n var node = this.getNode(key);\n return node && node.value;\n };\n Cache.prototype.getNode = function(key) {\n var node = this.map.get(key);\n if (node && node !== this.newest) {\n var older = node.older, newer = node.newer;\n if (newer) newer.older = older;\n if (older) older.newer = newer;\n node.older = this.newest;\n node.older.newer = node;\n node.newer = null;\n this.newest = node;\n if (node === this.oldest) this.oldest = newer;\n }\n return node;\n };\n Cache.prototype.set = function(key, value) {\n var node = this.getNode(key);\n if (node) return node.value = value;\n node = {\n key: key,\n value: value,\n newer: null,\n older: this.newest\n };\n if (this.newest) this.newest.newer = node;\n this.newest = node;\n this.oldest = this.oldest || node;\n this.map.set(key, node);\n return node.value;\n };\n Cache.prototype.clean = function() {\n while(this.oldest && this.map.size > this.max)this.delete(this.oldest.key);\n };\n Cache.prototype.delete = function(key) {\n var node = this.map.get(key);\n if (node) {\n if (node === this.newest) this.newest = node.older;\n if (node === this.oldest) this.oldest = node.newer;\n if (node.newer) node.newer.older = node.older;\n if (node.older) node.older.newer = node.newer;\n this.map.delete(key);\n this.dispose(node.value, key);\n return true;\n }\n return false;\n };\n return Cache;\n}();\nvar parentEntrySlot = new (0, _context.Slot)();\nfunction maybeUnsubscribe(entryOrDep) {\n var unsubscribe = entryOrDep.unsubscribe;\n if (typeof unsubscribe === \"function\") {\n entryOrDep.unsubscribe = void 0;\n unsubscribe();\n }\n}\nvar emptySetPool = [];\nvar POOL_TARGET_SIZE = 100;\n// Since this package might be used browsers, we should avoid using the\n// Node built-in assert module.\nfunction assert(condition, optionalMessage) {\n if (!condition) throw new Error(optionalMessage || \"assertion failure\");\n}\nfunction valueIs(a, b) {\n var len = a.length;\n return(// Unknown values are not equal to each other.\n len > 0 && // Both values must be ordinary (or both exceptional) to be equal.\n len === b.length && // The underlying value or exception must be the same.\n a[len - 1] === b[len - 1]);\n}\nfunction valueGet(value) {\n switch(value.length){\n case 0:\n throw new Error(\"unknown value\");\n case 1:\n return value[0];\n case 2:\n throw value[1];\n }\n}\nfunction valueCopy(value) {\n return value.slice(0);\n}\nvar Entry = /** @class */ function() {\n function Entry(fn) {\n this.fn = fn;\n this.parents = new Set();\n this.childValues = new Map();\n // When this Entry has children that are dirty, this property becomes\n // a Set containing other Entry objects, borrowed from emptySetPool.\n // When the set becomes empty, it gets recycled back to emptySetPool.\n this.dirtyChildren = null;\n this.dirty = true;\n this.recomputing = false;\n this.value = [];\n this.deps = null;\n ++Entry.count;\n }\n Entry.prototype.peek = function() {\n if (this.value.length === 1 && !mightBeDirty(this)) return this.value[0];\n };\n // This is the most important method of the Entry API, because it\n // determines whether the cached this.value can be returned immediately,\n // or must be recomputed. The overall performance of the caching system\n // depends on the truth of the following observations: (1) this.dirty is\n // usually false, (2) this.dirtyChildren is usually null/empty, and thus\n // (3) valueGet(this.value) is usually returned without recomputation.\n Entry.prototype.recompute = function(args) {\n assert(!this.recomputing, \"already recomputing\");\n rememberParent(this);\n return mightBeDirty(this) ? reallyRecompute(this, args) : valueGet(this.value);\n };\n Entry.prototype.setDirty = function() {\n if (this.dirty) return;\n this.dirty = true;\n this.value.length = 0;\n reportDirty(this);\n forgetChildren(this);\n // We can go ahead and unsubscribe here, since any further dirty\n // notifications we receive will be redundant, and unsubscribing may\n // free up some resources, e.g. file watchers.\n maybeUnsubscribe(this);\n };\n Entry.prototype.dispose = function() {\n var _this = this;\n forgetChildren(this);\n maybeUnsubscribe(this);\n // Because this entry has been kicked out of the cache (in index.js),\n // we've lost the ability to find out if/when this entry becomes dirty,\n // whether that happens through a subscription, because of a direct call\n // to entry.setDirty(), or because one of its children becomes dirty.\n // Because of this loss of future information, we have to assume the\n // worst (that this entry might have become dirty very soon), so we must\n // immediately mark this entry's parents as dirty. Normally we could\n // just call entry.setDirty() rather than calling parent.setDirty() for\n // each parent, but that would leave this entry in parent.childValues\n // and parent.dirtyChildren, which would prevent the child from being\n // truly forgotten.\n this.parents.forEach(function(parent) {\n parent.setDirty();\n forgetChild(parent, _this);\n });\n };\n Entry.prototype.dependOn = function(dep) {\n dep.add(this);\n if (!this.deps) this.deps = emptySetPool.pop() || new Set();\n this.deps.add(dep);\n };\n Entry.prototype.forgetDeps = function() {\n var _this = this;\n if (this.deps) {\n this.deps.forEach(function(dep) {\n return dep.delete(_this);\n });\n this.deps.clear();\n emptySetPool.push(this.deps);\n this.deps = null;\n }\n };\n Entry.count = 0;\n return Entry;\n}();\nfunction rememberParent(child) {\n var parent = parentEntrySlot.getValue();\n if (parent) {\n child.parents.add(parent);\n if (!parent.childValues.has(child)) parent.childValues.set(child, []);\n if (mightBeDirty(child)) reportDirtyChild(parent, child);\n else reportCleanChild(parent, child);\n return parent;\n }\n}\nfunction reallyRecompute(entry, args) {\n forgetChildren(entry);\n // Set entry as the parent entry while calling recomputeNewValue(entry).\n parentEntrySlot.withValue(entry, recomputeNewValue, [\n entry,\n args\n ]);\n if (maybeSubscribe(entry, args)) // If we successfully recomputed entry.value and did not fail to\n // (re)subscribe, then this Entry is no longer explicitly dirty.\n setClean(entry);\n return valueGet(entry.value);\n}\nfunction recomputeNewValue(entry, args) {\n entry.recomputing = true;\n // Set entry.value as unknown.\n entry.value.length = 0;\n try {\n // If entry.fn succeeds, entry.value will become a normal Value.\n entry.value[0] = entry.fn.apply(null, args);\n } catch (e) {\n // If entry.fn throws, entry.value will become exceptional.\n entry.value[1] = e;\n }\n // Either way, this line is always reached.\n entry.recomputing = false;\n}\nfunction mightBeDirty(entry) {\n return entry.dirty || !!(entry.dirtyChildren && entry.dirtyChildren.size);\n}\nfunction setClean(entry) {\n entry.dirty = false;\n if (mightBeDirty(entry)) // This Entry may still have dirty children, in which case we can't\n // let our parents know we're clean just yet.\n return;\n reportClean(entry);\n}\nfunction reportDirty(child) {\n child.parents.forEach(function(parent) {\n return reportDirtyChild(parent, child);\n });\n}\nfunction reportClean(child) {\n child.parents.forEach(function(parent) {\n return reportCleanChild(parent, child);\n });\n}\n// Let a parent Entry know that one of its children may be dirty.\nfunction reportDirtyChild(parent, child) {\n // Must have called rememberParent(child) before calling\n // reportDirtyChild(parent, child).\n assert(parent.childValues.has(child));\n assert(mightBeDirty(child));\n if (!parent.dirtyChildren) parent.dirtyChildren = emptySetPool.pop() || new Set;\n else if (parent.dirtyChildren.has(child)) // If we already know this child is dirty, then we must have already\n // informed our own parents that we are dirty, so we can terminate\n // the recursion early.\n return;\n parent.dirtyChildren.add(child);\n reportDirty(parent);\n}\n// Let a parent Entry know that one of its children is no longer dirty.\nfunction reportCleanChild(parent, child) {\n // Must have called rememberChild(child) before calling\n // reportCleanChild(parent, child).\n assert(parent.childValues.has(child));\n assert(!mightBeDirty(child));\n var childValue = parent.childValues.get(child);\n if (childValue.length === 0) parent.childValues.set(child, valueCopy(child.value));\n else if (!valueIs(childValue, child.value)) parent.setDirty();\n removeDirtyChild(parent, child);\n if (mightBeDirty(parent)) return;\n reportClean(parent);\n}\nfunction removeDirtyChild(parent, child) {\n var dc = parent.dirtyChildren;\n if (dc) {\n dc.delete(child);\n if (dc.size === 0) {\n if (emptySetPool.length < POOL_TARGET_SIZE) emptySetPool.push(dc);\n parent.dirtyChildren = null;\n }\n }\n}\n// Removes all children from this entry and returns an array of the\n// removed children.\nfunction forgetChildren(parent) {\n if (parent.childValues.size > 0) parent.childValues.forEach(function(_value, child) {\n forgetChild(parent, child);\n });\n // Remove this parent Entry from any sets to which it was added by the\n // addToSet method.\n parent.forgetDeps();\n // After we forget all our children, this.dirtyChildren must be empty\n // and therefore must have been reset to null.\n assert(parent.dirtyChildren === null);\n}\nfunction forgetChild(parent, child) {\n child.parents.delete(parent);\n parent.childValues.delete(child);\n removeDirtyChild(parent, child);\n}\nfunction maybeSubscribe(entry, args) {\n if (typeof entry.subscribe === \"function\") try {\n maybeUnsubscribe(entry); // Prevent double subscriptions.\n entry.unsubscribe = entry.subscribe.apply(null, args);\n } catch (e) {\n // If this Entry has a subscribe function and it threw an exception\n // (or an unsubscribe function it previously returned now throws),\n // return false to indicate that we were not able to subscribe (or\n // unsubscribe), and this Entry should remain dirty.\n entry.setDirty();\n return false;\n }\n // Returning true indicates either that there was no entry.subscribe\n // function or that it succeeded.\n return true;\n}\nfunction dep(options) {\n var depsByKey = new Map();\n var subscribe = options && options.subscribe;\n function depend(key) {\n var parent = parentEntrySlot.getValue();\n if (parent) {\n var dep_1 = depsByKey.get(key);\n if (!dep_1) depsByKey.set(key, dep_1 = new Set);\n parent.dependOn(dep_1);\n if (typeof subscribe === \"function\") {\n maybeUnsubscribe(dep_1);\n dep_1.unsubscribe = subscribe(key);\n }\n }\n }\n depend.dirty = function dirty(key) {\n var dep = depsByKey.get(key);\n if (dep) {\n dep.forEach(function(entry) {\n return entry.setDirty();\n });\n depsByKey.delete(key);\n maybeUnsubscribe(dep);\n }\n };\n return depend;\n}\n// The defaultMakeCacheKey function is remarkably powerful, because it gives\n// a unique object for any shallow-identical list of arguments. If you need\n// to implement a custom makeCacheKey function, you may find it helpful to\n// delegate the final work to defaultMakeCacheKey, which is why we export it\n// here. However, you may want to avoid defaultMakeCacheKey if your runtime\n// does not support WeakMap, or you have the ability to return a string key.\n// In those cases, just write your own custom makeCacheKey functions.\nvar keyTrie = new (0, _trie.Trie)(typeof WeakMap === \"function\");\nfunction defaultMakeCacheKey() {\n var args = [];\n for(var _i = 0; _i < arguments.length; _i++)args[_i] = arguments[_i];\n return keyTrie.lookupArray(args);\n}\nvar caches = new Set();\nfunction wrap(originalFunction, options) {\n if (options === void 0) options = Object.create(null);\n var cache = new Cache(options.max || Math.pow(2, 16), function(entry) {\n return entry.dispose();\n });\n var keyArgs = options.keyArgs;\n var makeCacheKey = options.makeCacheKey || defaultMakeCacheKey;\n function optimistic() {\n var key = makeCacheKey.apply(null, keyArgs ? keyArgs.apply(null, arguments) : arguments);\n if (key === void 0) return originalFunction.apply(null, arguments);\n var entry = cache.get(key);\n if (!entry) {\n cache.set(key, entry = new Entry(originalFunction));\n entry.subscribe = options.subscribe;\n }\n var value = entry.recompute(Array.prototype.slice.call(arguments));\n // Move this entry to the front of the least-recently used queue,\n // since we just finished computing its value.\n cache.set(key, entry);\n caches.add(cache);\n // Clean up any excess entries in the cache, but only if there is no\n // active parent entry, meaning we're not in the middle of a larger\n // computation that might be flummoxed by the cleaning.\n if (!parentEntrySlot.hasValue()) {\n caches.forEach(function(cache) {\n return cache.clean();\n });\n caches.clear();\n }\n return value;\n }\n function lookup() {\n var key = makeCacheKey.apply(null, arguments);\n if (key !== void 0) return cache.get(key);\n }\n optimistic.dirty = function() {\n var entry = lookup.apply(null, arguments);\n if (entry) entry.setDirty();\n };\n optimistic.peek = function() {\n var entry = lookup.apply(null, arguments);\n if (entry) return entry.peek();\n };\n optimistic.forget = function() {\n var key = makeCacheKey.apply(null, arguments);\n return key !== void 0 && cache.delete(key);\n };\n return optimistic;\n}\n\n},{\"@wry/trie\":\"cS0Zv\",\"@wry/context\":\"03oWS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cS0Zv\":[function(require,module,exports) {\n// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\n// object keys weakly, yet can also hold non-object keys, unlike the\n// native `WeakMap`.\n// If no makeData function is supplied, the looked-up data will be an empty,\n// null-prototype Object.\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Trie\", ()=>Trie);\nvar defaultMakeData = function() {\n return Object.create(null);\n};\n// Useful for processing arguments objects as well as arrays.\nvar _a = Array.prototype, forEach = _a.forEach, slice = _a.slice;\nvar Trie = /** @class */ function() {\n function Trie(weakness, makeData) {\n if (weakness === void 0) weakness = true;\n if (makeData === void 0) makeData = defaultMakeData;\n this.weakness = weakness;\n this.makeData = makeData;\n }\n Trie.prototype.lookup = function() {\n var array = [];\n for(var _i = 0; _i < arguments.length; _i++)array[_i] = arguments[_i];\n return this.lookupArray(array);\n };\n Trie.prototype.lookupArray = function(array) {\n var node = this;\n forEach.call(array, function(key) {\n return node = node.getChildTrie(key);\n });\n return node.data || (node.data = this.makeData(slice.call(array)));\n };\n Trie.prototype.getChildTrie = function(key) {\n var map = this.weakness && isObjRef(key) ? this.weak || (this.weak = new WeakMap()) : this.strong || (this.strong = new Map());\n var child = map.get(key);\n if (!child) map.set(key, child = new Trie(this.weakness, this.makeData));\n return child;\n };\n return Trie;\n}();\nfunction isObjRef(value) {\n switch(typeof value){\n case \"object\":\n if (value === null) break;\n // Fall through to return true...\n case \"function\":\n return true;\n }\n return false;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"03oWS\":[function(require,module,exports) {\n// This currentContext variable will only be used if the makeSlotClass\n// function is called, which happens only if this is the first copy of the\n// @wry/context package to be imported.\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Slot\", ()=>Slot);\nparcelHelpers.export(exports, \"asyncFromGen\", ()=>asyncFromGen);\nparcelHelpers.export(exports, \"bind\", ()=>bind);\nparcelHelpers.export(exports, \"noContext\", ()=>noContext);\nparcelHelpers.export(exports, \"setTimeout\", ()=>setTimeoutWithContext);\nparcelHelpers.export(exports, \"wrapYieldingFiberMethods\", ()=>wrapYieldingFiberMethods);\nvar currentContext = null;\n// This unique internal object is used to denote the absence of a value\n// for a given Slot, and is never exposed to outside code.\nvar MISSING_VALUE = {};\nvar idCounter = 1;\n// Although we can't do anything about the cost of duplicated code from\n// accidentally bundling multiple copies of the @wry/context package, we can\n// avoid creating the Slot class more than once using makeSlotClass.\nvar makeSlotClass = function() {\n return /** @class */ function() {\n function Slot() {\n // If you have a Slot object, you can find out its slot.id, but you cannot\n // guess the slot.id of a Slot you don't have access to, thanks to the\n // randomized suffix.\n this.id = [\n \"slot\",\n idCounter++,\n Date.now(),\n Math.random().toString(36).slice(2)\n ].join(\":\");\n }\n Slot.prototype.hasValue = function() {\n for(var context_1 = currentContext; context_1; context_1 = context_1.parent)// We use the Slot object iself as a key to its value, which means the\n // value cannot be obtained without a reference to the Slot object.\n if (this.id in context_1.slots) {\n var value = context_1.slots[this.id];\n if (value === MISSING_VALUE) break;\n if (context_1 !== currentContext) // Cache the value in currentContext.slots so the next lookup will\n // be faster. This caching is safe because the tree of contexts and\n // the values of the slots are logically immutable.\n currentContext.slots[this.id] = value;\n return true;\n }\n if (currentContext) // If a value was not found for this Slot, it's never going to be found\n // no matter how many times we look it up, so we might as well cache\n // the absence of the value, too.\n currentContext.slots[this.id] = MISSING_VALUE;\n return false;\n };\n Slot.prototype.getValue = function() {\n if (this.hasValue()) return currentContext.slots[this.id];\n };\n Slot.prototype.withValue = function(value, callback, // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args, thisArg) {\n var _a;\n var slots = (_a = {\n __proto__: null\n }, _a[this.id] = value, _a);\n var parent = currentContext;\n currentContext = {\n parent: parent,\n slots: slots\n };\n try {\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg, args);\n } finally{\n currentContext = parent;\n }\n };\n // Capture the current context and wrap a callback function so that it\n // reestablishes the captured context when called.\n Slot.bind = function(callback) {\n var context = currentContext;\n return function() {\n var saved = currentContext;\n try {\n currentContext = context;\n return callback.apply(this, arguments);\n } finally{\n currentContext = saved;\n }\n };\n };\n // Immediately run a callback function without any captured context.\n Slot.noContext = function(callback, // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args, thisArg) {\n if (currentContext) {\n var saved = currentContext;\n try {\n currentContext = null;\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg, args);\n } finally{\n currentContext = saved;\n }\n } else return callback.apply(thisArg, args);\n };\n return Slot;\n }();\n};\n// We store a single global implementation of the Slot class as a permanent\n// non-enumerable symbol property of the Array constructor. This obfuscation\n// does nothing to prevent access to the Slot class, but at least it ensures\n// the implementation (i.e. currentContext) cannot be tampered with, and all\n// copies of the @wry/context package (hopefully just one) will share the\n// same Slot implementation. Since the first copy of the @wry/context package\n// to be imported wins, this technique imposes a very high cost for any\n// future breaking changes to the Slot class.\nvar globalKey = \"@wry/context:Slot\";\nvar host = Array;\nvar Slot = host[globalKey] || function() {\n var Slot = makeSlotClass();\n try {\n Object.defineProperty(host, globalKey, {\n value: host[globalKey] = Slot,\n enumerable: false,\n writable: false,\n configurable: false\n });\n } finally{\n return Slot;\n }\n}();\nvar bind = Slot.bind, noContext = Slot.noContext;\nfunction setTimeoutWithContext(callback, delay) {\n return setTimeout(bind(callback), delay);\n}\n// Turn any generator function into an async function (using yield instead\n// of await), with context automatically preserved across yields.\nfunction asyncFromGen(genFn) {\n return function() {\n var gen = genFn.apply(this, arguments);\n var boundNext = bind(gen.next);\n var boundThrow = bind(gen.throw);\n return new Promise(function(resolve, reject) {\n function invoke(method, argument) {\n try {\n var result = method.call(gen, argument);\n } catch (error) {\n return reject(error);\n }\n var next = result.done ? resolve : invokeNext;\n if (isPromiseLike(result.value)) result.value.then(next, result.done ? reject : invokeThrow);\n else next(result.value);\n }\n var invokeNext = function(value) {\n return invoke(boundNext, value);\n };\n var invokeThrow = function(error) {\n return invoke(boundThrow, error);\n };\n invokeNext();\n });\n };\n}\nfunction isPromiseLike(value) {\n return value && typeof value.then === \"function\";\n}\n// If you use the fibers npm package to implement coroutines in Node.js,\n// you should call this function at least once to ensure context management\n// remains coherent across any yields.\nvar wrappedFibers = [];\nfunction wrapYieldingFiberMethods(Fiber) {\n // There can be only one implementation of Fiber per process, so this array\n // should never grow longer than one element.\n if (wrappedFibers.indexOf(Fiber) < 0) {\n var wrap = function(obj, method) {\n var fn = obj[method];\n obj[method] = function() {\n return noContext(fn, arguments, this);\n };\n };\n // These methods can yield, according to\n // https://github.com/laverdet/node-fibers/blob/ddebed9b8ae3883e57f822e2108e6943e5c8d2a8/fibers.js#L97-L100\n wrap(Fiber, \"yield\");\n wrap(Fiber.prototype, \"run\");\n wrap(Fiber.prototype, \"throwInto\");\n wrappedFibers.push(Fiber);\n }\n return Fiber;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"xTrhF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Cache\", ()=>Cache);\nvar Cache;\nCache || (Cache = {});\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bp7SS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"MissingFieldError\", ()=>MissingFieldError);\nvar MissingFieldError = function() {\n function MissingFieldError(message, path, query, clientOnly, variables) {\n this.message = message;\n this.path = path;\n this.query = query;\n this.clientOnly = clientOnly;\n this.variables = variables;\n }\n return MissingFieldError;\n}();\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"f5Hyy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"InMemoryCache\", ()=>InMemoryCache);\nvar _tslib = require(\"tslib\");\nvar _fixPolyfillsJs = require(\"./fixPolyfills.js\");\nvar _optimism = require(\"optimism\");\nvar _cacheJs = require(\"../core/cache.js\");\nvar _commonJs = require(\"../core/types/common.js\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar _readFromStoreJs = require(\"./readFromStore.js\");\nvar _writeToStoreJs = require(\"./writeToStore.js\");\nvar _entityStoreJs = require(\"./entityStore.js\");\nvar _reactiveVarsJs = require(\"./reactiveVars.js\");\nvar _policiesJs = require(\"./policies.js\");\nvar _helpersJs = require(\"./helpers.js\");\nvar defaultConfig = {\n dataIdFromObject: (0, _policiesJs.defaultDataIdFromObject),\n addTypename: true,\n resultCaching: true,\n typePolicies: {}\n};\nvar InMemoryCache = function(_super) {\n (0, _tslib.__extends)(InMemoryCache, _super);\n function InMemoryCache(config) {\n if (config === void 0) config = {};\n var _this = _super.call(this) || this;\n _this.watches = new Set();\n _this.typenameDocumentCache = new Map();\n _this.makeVar = (0, _reactiveVarsJs.makeVar);\n _this.txCount = 0;\n _this.maybeBroadcastWatch = (0, _optimism.wrap)(function(c, fromOptimisticTransaction) {\n return _this.broadcastWatch.call(_this, c, !!fromOptimisticTransaction);\n }, {\n makeCacheKey: function(c) {\n var store = c.optimistic ? _this.optimisticData : _this.data;\n if ((0, _entityStoreJs.supportsResultCaching)(store)) {\n var optimistic = c.optimistic, rootId = c.rootId, variables = c.variables;\n return store.makeCacheKey(c.query, c.callback, JSON.stringify({\n optimistic: optimistic,\n rootId: rootId,\n variables: variables\n }));\n }\n }\n });\n _this.watchDep = (0, _optimism.dep)();\n _this.config = (0, _tslib.__assign)((0, _tslib.__assign)({}, defaultConfig), config);\n _this.addTypename = !!_this.config.addTypename;\n _this.policies = new (0, _policiesJs.Policies)({\n cache: _this,\n dataIdFromObject: _this.config.dataIdFromObject,\n possibleTypes: _this.config.possibleTypes,\n typePolicies: _this.config.typePolicies\n });\n _this.data = new (0, _entityStoreJs.EntityStore).Root({\n policies: _this.policies,\n resultCaching: _this.config.resultCaching\n });\n _this.optimisticData = _this.data;\n _this.storeWriter = new (0, _writeToStoreJs.StoreWriter)(_this, _this.storeReader = new (0, _readFromStoreJs.StoreReader)({\n cache: _this,\n addTypename: _this.addTypename\n }));\n return _this;\n }\n InMemoryCache.prototype.restore = function(data) {\n if (data) this.data.replace(data);\n return this;\n };\n InMemoryCache.prototype.extract = function(optimistic) {\n if (optimistic === void 0) optimistic = false;\n return (optimistic ? this.optimisticData : this.data).extract();\n };\n InMemoryCache.prototype.read = function(options) {\n var _a = options.returnPartialData, returnPartialData = _a === void 0 ? false : _a;\n try {\n return this.storeReader.diffQueryAgainstStore({\n store: options.optimistic ? this.optimisticData : this.data,\n query: options.query,\n variables: options.variables,\n rootId: options.rootId,\n config: this.config,\n returnPartialData: returnPartialData\n }).result || null;\n } catch (e) {\n if (e instanceof (0, _commonJs.MissingFieldError)) return null;\n throw e;\n }\n };\n InMemoryCache.prototype.write = function(options) {\n try {\n ++this.txCount;\n return this.storeWriter.writeToStore({\n store: this.data,\n query: options.query,\n result: options.result,\n dataId: options.dataId,\n variables: options.variables\n });\n } finally{\n if (!--this.txCount && options.broadcast !== false) this.broadcastWatches();\n }\n };\n InMemoryCache.prototype.modify = function(options) {\n if ((0, _helpersJs.hasOwn).call(options, \"id\") && !options.id) return false;\n var store = options.optimistic ? this.optimisticData : this.data;\n try {\n ++this.txCount;\n return store.modify(options.id || \"ROOT_QUERY\", options.fields);\n } finally{\n if (!--this.txCount && options.broadcast !== false) this.broadcastWatches();\n }\n };\n InMemoryCache.prototype.diff = function(options) {\n return this.storeReader.diffQueryAgainstStore({\n store: options.optimistic ? this.optimisticData : this.data,\n rootId: options.id || \"ROOT_QUERY\",\n query: options.query,\n variables: options.variables,\n returnPartialData: options.returnPartialData,\n config: this.config\n });\n };\n InMemoryCache.prototype.watch = function(watch) {\n var _this = this;\n if (!this.watches.size) (0, _reactiveVarsJs.recallCache)(this);\n this.watches.add(watch);\n if (watch.immediate) this.maybeBroadcastWatch(watch);\n return function() {\n if (_this.watches.delete(watch) && !_this.watches.size) (0, _reactiveVarsJs.forgetCache)(_this);\n _this.watchDep.dirty(watch);\n _this.maybeBroadcastWatch.forget(watch);\n };\n };\n InMemoryCache.prototype.gc = function() {\n return this.optimisticData.gc();\n };\n InMemoryCache.prototype.retain = function(rootId, optimistic) {\n return (optimistic ? this.optimisticData : this.data).retain(rootId);\n };\n InMemoryCache.prototype.release = function(rootId, optimistic) {\n return (optimistic ? this.optimisticData : this.data).release(rootId);\n };\n InMemoryCache.prototype.identify = function(object) {\n return (0, _indexJs.isReference)(object) ? object.__ref : this.policies.identify(object)[0];\n };\n InMemoryCache.prototype.evict = function(options) {\n if (!options.id) {\n if ((0, _helpersJs.hasOwn).call(options, \"id\")) return false;\n options = (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n id: \"ROOT_QUERY\"\n });\n }\n try {\n ++this.txCount;\n return this.optimisticData.evict(options);\n } finally{\n if (!--this.txCount && options.broadcast !== false) this.broadcastWatches();\n }\n };\n InMemoryCache.prototype.reset = function() {\n this.data.clear();\n this.optimisticData = this.data;\n this.broadcastWatches();\n return Promise.resolve();\n };\n InMemoryCache.prototype.removeOptimistic = function(idToRemove) {\n var newOptimisticData = this.optimisticData.removeLayer(idToRemove);\n if (newOptimisticData !== this.optimisticData) {\n this.optimisticData = newOptimisticData;\n this.broadcastWatches();\n }\n };\n InMemoryCache.prototype.performTransaction = function(transaction, optimisticId) {\n var _this = this;\n var perform = function(layer) {\n var _a = _this, data = _a.data, optimisticData = _a.optimisticData;\n ++_this.txCount;\n if (layer) _this.data = _this.optimisticData = layer;\n try {\n transaction(_this);\n } finally{\n --_this.txCount;\n _this.data = data;\n _this.optimisticData = optimisticData;\n }\n };\n var fromOptimisticTransaction = false;\n if (typeof optimisticId === \"string\") {\n this.optimisticData = this.optimisticData.addLayer(optimisticId, perform);\n fromOptimisticTransaction = true;\n } else if (optimisticId === null) perform(this.data);\n else perform();\n this.broadcastWatches(fromOptimisticTransaction);\n };\n InMemoryCache.prototype.transformDocument = function(document) {\n if (this.addTypename) {\n var result = this.typenameDocumentCache.get(document);\n if (!result) {\n result = (0, _indexJs.addTypenameToDocument)(document);\n this.typenameDocumentCache.set(document, result);\n this.typenameDocumentCache.set(result, result);\n }\n return result;\n }\n return document;\n };\n InMemoryCache.prototype.broadcastWatches = function(fromOptimisticTransaction) {\n var _this = this;\n if (!this.txCount) this.watches.forEach(function(c) {\n return _this.maybeBroadcastWatch(c, fromOptimisticTransaction);\n });\n };\n InMemoryCache.prototype.broadcastWatch = function(c, fromOptimisticTransaction) {\n this.watchDep.dirty(c);\n this.watchDep(c);\n var diff = this.diff({\n query: c.query,\n variables: c.variables,\n optimistic: c.optimistic\n });\n if (c.optimistic && fromOptimisticTransaction) diff.fromOptimisticTransaction = true;\n c.callback(diff);\n };\n return InMemoryCache;\n}((0, _cacheJs.ApolloCache));\n\n},{\"tslib\":\"5RODp\",\"./fixPolyfills.js\":\"bxtp5\",\"optimism\":\"2cebH\",\"../core/cache.js\":\"ktbzp\",\"../core/types/common.js\":\"bp7SS\",\"../../utilities/index.js\":\"k55vB\",\"./readFromStore.js\":\"fiqlx\",\"./writeToStore.js\":\"p7BPt\",\"./entityStore.js\":\"jKv8k\",\"./reactiveVars.js\":\"7nqYk\",\"./policies.js\":\"6FYrH\",\"./helpers.js\":\"2vRuy\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bxtp5\":[function(require,module,exports) {\n\n},{}],\"fiqlx\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"StoreReader\", ()=>StoreReader);\nvar _tslib = require(\"tslib\");\nvar _optimism = require(\"optimism\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar _entityStoreJs = require(\"./entityStore.js\");\nvar _helpersJs = require(\"./helpers.js\");\nvar _commonJs = require(\"../core/types/common.js\");\nfunction missingFromInvariant(err, context) {\n return new (0, _commonJs.MissingFieldError)(err.message, context.path.slice(), context.query, context.clientOnly, context.variables);\n}\nvar StoreReader = function() {\n function StoreReader(config) {\n var _this = this;\n this.config = config;\n this.executeSelectionSet = (0, _optimism.wrap)(function(options) {\n return _this.execSelectionSetImpl(options);\n }, {\n keyArgs: function(options) {\n return [\n options.selectionSet,\n options.objectOrReference,\n options.context\n ];\n },\n makeCacheKey: function(selectionSet, parent, context) {\n if ((0, _entityStoreJs.supportsResultCaching)(context.store)) return context.store.makeCacheKey(selectionSet, (0, _indexJs.isReference)(parent) ? parent.__ref : parent, context.varString);\n }\n });\n this.knownResults = new WeakMap();\n this.executeSubSelectedArray = (0, _optimism.wrap)(function(options) {\n return _this.execSubSelectedArrayImpl(options);\n }, {\n makeCacheKey: function(_a) {\n var field = _a.field, array = _a.array, context = _a.context;\n if ((0, _entityStoreJs.supportsResultCaching)(context.store)) return context.store.makeCacheKey(field, array, context.varString);\n }\n });\n this.config = (0, _tslib.__assign)({\n addTypename: true\n }, config);\n }\n StoreReader.prototype.diffQueryAgainstStore = function(_a) {\n var store = _a.store, query = _a.query, _b = _a.rootId, rootId = _b === void 0 ? \"ROOT_QUERY\" : _b, variables = _a.variables, _c = _a.returnPartialData, returnPartialData = _c === void 0 ? true : _c;\n var policies = this.config.cache.policies;\n variables = (0, _tslib.__assign)((0, _tslib.__assign)({}, (0, _indexJs.getDefaultValues)((0, _indexJs.getQueryDefinition)(query))), variables);\n var execResult = this.executeSelectionSet({\n selectionSet: (0, _indexJs.getMainDefinition)(query).selectionSet,\n objectOrReference: (0, _indexJs.makeReference)(rootId),\n context: {\n store: store,\n query: query,\n policies: policies,\n variables: variables,\n varString: JSON.stringify(variables),\n fragmentMap: (0, _indexJs.createFragmentMap)((0, _indexJs.getFragmentDefinitions)(query)),\n path: [],\n clientOnly: false\n }\n });\n var hasMissingFields = execResult.missing && execResult.missing.length > 0;\n if (hasMissingFields && !returnPartialData) throw execResult.missing[0];\n return {\n result: execResult.result,\n missing: execResult.missing,\n complete: !hasMissingFields\n };\n };\n StoreReader.prototype.isFresh = function(result, parent, selectionSet, context) {\n if ((0, _entityStoreJs.supportsResultCaching)(context.store) && this.knownResults.get(result) === selectionSet) {\n var latest = this.executeSelectionSet.peek(selectionSet, parent, context);\n if (latest && result === latest.result) return true;\n }\n return false;\n };\n StoreReader.prototype.execSelectionSetImpl = function(_a) {\n var _this = this;\n var selectionSet = _a.selectionSet, objectOrReference = _a.objectOrReference, context = _a.context;\n if ((0, _indexJs.isReference)(objectOrReference) && !context.policies.rootTypenamesById[objectOrReference.__ref] && !context.store.has(objectOrReference.__ref)) return {\n result: {},\n missing: [\n missingFromInvariant(new (0, _tsInvariant.InvariantError)(4), context)\n ]\n };\n var variables = context.variables, policies = context.policies, store = context.store;\n var objectsToMerge = [];\n var finalResult = {\n result: null\n };\n var typename = store.getFieldValue(objectOrReference, \"__typename\");\n if (this.config.addTypename && typeof typename === \"string\" && !policies.rootIdsByTypename[typename]) objectsToMerge.push({\n __typename: typename\n });\n function getMissing() {\n return finalResult.missing || (finalResult.missing = []);\n }\n function handleMissing(result) {\n var _a;\n if (result.missing) (_a = getMissing()).push.apply(_a, result.missing);\n return result.result;\n }\n var workSet = new Set(selectionSet.selections);\n workSet.forEach(function(selection) {\n var _a;\n if (!(0, _indexJs.shouldInclude)(selection, variables)) return;\n if ((0, _indexJs.isField)(selection)) {\n var fieldValue = policies.readField({\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables,\n from: objectOrReference\n }, context);\n var resultName = (0, _indexJs.resultKeyNameFromField)(selection);\n context.path.push(resultName);\n var wasClientOnly = context.clientOnly;\n context.clientOnly = wasClientOnly || !!(selection.directives && selection.directives.some(function(d) {\n return d.name.value === \"client\";\n }));\n if (fieldValue === void 0) {\n if (!(0, _indexJs.addTypenameToDocument).added(selection)) getMissing().push(missingFromInvariant(new (0, _tsInvariant.InvariantError)(5), context));\n } else if (Array.isArray(fieldValue)) fieldValue = handleMissing(_this.executeSubSelectedArray({\n field: selection,\n array: fieldValue,\n context: context\n }));\n else if (!selection.selectionSet) ;\n else if (fieldValue != null) fieldValue = handleMissing(_this.executeSelectionSet({\n selectionSet: selection.selectionSet,\n objectOrReference: fieldValue,\n context: context\n }));\n if (fieldValue !== void 0) objectsToMerge.push((_a = {}, _a[resultName] = fieldValue, _a));\n context.clientOnly = wasClientOnly;\n (0, _tsInvariant.invariant)(context.path.pop() === resultName);\n } else {\n var fragment = (0, _indexJs.getFragmentFromSelection)(selection, context.fragmentMap);\n if (fragment && policies.fragmentMatches(fragment, typename)) fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n });\n finalResult.result = (0, _indexJs.mergeDeepArray)(objectsToMerge);\n this.knownResults.set(finalResult.result, selectionSet);\n return finalResult;\n };\n StoreReader.prototype.execSubSelectedArrayImpl = function(_a) {\n var _this = this;\n var field = _a.field, array = _a.array, context = _a.context;\n var missing;\n function handleMissing(childResult, i) {\n if (childResult.missing) {\n missing = missing || [];\n missing.push.apply(missing, childResult.missing);\n }\n (0, _tsInvariant.invariant)(context.path.pop() === i);\n return childResult.result;\n }\n if (field.selectionSet) array = array.filter(context.store.canRead);\n array = array.map(function(item, i) {\n if (item === null) return null;\n context.path.push(i);\n if (Array.isArray(item)) return handleMissing(_this.executeSubSelectedArray({\n field: field,\n array: item,\n context: context\n }), i);\n if (field.selectionSet) return handleMissing(_this.executeSelectionSet({\n selectionSet: field.selectionSet,\n objectOrReference: item,\n context: context\n }), i);\n (0, _tsInvariant.invariant)(context.path.pop() === i);\n return item;\n });\n return {\n result: array,\n missing: missing\n };\n };\n return StoreReader;\n}();\nfunction assertSelectionSetForIdValue(store, field, fieldValue) {\n if (!field.selectionSet) {\n var workSet_1 = new Set([\n fieldValue\n ]);\n workSet_1.forEach(function(value) {\n if (value && typeof value === \"object\") {\n (0, _tsInvariant.invariant)(!(0, _indexJs.isReference)(value), 6);\n Object.values(value).forEach(workSet_1.add, workSet_1);\n }\n });\n }\n}\n\n},{\"tslib\":\"5RODp\",\"optimism\":\"2cebH\",\"ts-invariant\":\"2pI3w\",\"../../utilities/index.js\":\"k55vB\",\"./entityStore.js\":\"jKv8k\",\"./helpers.js\":\"2vRuy\",\"../core/types/common.js\":\"bp7SS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jKv8k\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"EntityStore\", ()=>EntityStore);\nparcelHelpers.export(exports, \"supportsResultCaching\", ()=>supportsResultCaching);\nvar _tslib = require(\"tslib\");\nvar _optimism = require(\"optimism\");\nvar _equality = require(\"@wry/equality\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar _helpersJs = require(\"./helpers.js\");\nvar DELETE = Object.create(null);\nvar delModifier = function() {\n return DELETE;\n};\nvar INVALIDATE = Object.create(null);\nvar EntityStore = function() {\n function EntityStore(policies, group) {\n var _this = this;\n this.policies = policies;\n this.group = group;\n this.data = Object.create(null);\n this.rootIds = Object.create(null);\n this.refs = Object.create(null);\n this.getFieldValue = function(objectOrReference, storeFieldName) {\n return (0, _indexJs.maybeDeepFreeze)((0, _indexJs.isReference)(objectOrReference) ? _this.get(objectOrReference.__ref, storeFieldName) : objectOrReference && objectOrReference[storeFieldName]);\n };\n this.canRead = function(objOrRef) {\n return (0, _indexJs.isReference)(objOrRef) ? _this.has(objOrRef.__ref) : typeof objOrRef === \"object\";\n };\n this.toReference = function(objOrIdOrRef, mergeIntoStore) {\n if (typeof objOrIdOrRef === \"string\") return (0, _indexJs.makeReference)(objOrIdOrRef);\n if ((0, _indexJs.isReference)(objOrIdOrRef)) return objOrIdOrRef;\n var id = _this.policies.identify(objOrIdOrRef)[0];\n if (id) {\n var ref = (0, _indexJs.makeReference)(id);\n if (mergeIntoStore) _this.merge(id, objOrIdOrRef);\n return ref;\n }\n };\n }\n EntityStore.prototype.toObject = function() {\n return (0, _tslib.__assign)({}, this.data);\n };\n EntityStore.prototype.has = function(dataId) {\n return this.lookup(dataId, true) !== void 0;\n };\n EntityStore.prototype.get = function(dataId, fieldName) {\n this.group.depend(dataId, fieldName);\n if ((0, _helpersJs.hasOwn).call(this.data, dataId)) {\n var storeObject = this.data[dataId];\n if (storeObject && (0, _helpersJs.hasOwn).call(storeObject, fieldName)) return storeObject[fieldName];\n }\n if (fieldName === \"__typename\" && (0, _helpersJs.hasOwn).call(this.policies.rootTypenamesById, dataId)) return this.policies.rootTypenamesById[dataId];\n if (this instanceof Layer) return this.parent.get(dataId, fieldName);\n };\n EntityStore.prototype.lookup = function(dataId, dependOnExistence) {\n if (dependOnExistence) this.group.depend(dataId, \"__exists\");\n if ((0, _helpersJs.hasOwn).call(this.data, dataId)) return this.data[dataId];\n if (this instanceof Layer) return this.parent.lookup(dataId, dependOnExistence);\n if (this.policies.rootTypenamesById[dataId]) return Object.create(null);\n };\n EntityStore.prototype.merge = function(dataId, incoming) {\n var _this = this;\n var existing = this.lookup(dataId);\n var merged = new (0, _indexJs.DeepMerger)(storeObjectReconciler).merge(existing, incoming);\n this.data[dataId] = merged;\n if (merged !== existing) {\n delete this.refs[dataId];\n if (this.group.caching) {\n var fieldsToDirty_1 = Object.create(null);\n if (!existing) fieldsToDirty_1.__exists = 1;\n Object.keys(incoming).forEach(function(storeFieldName) {\n if (!existing || existing[storeFieldName] !== merged[storeFieldName]) {\n fieldsToDirty_1[storeFieldName] = 1;\n var fieldName = (0, _helpersJs.fieldNameFromStoreName)(storeFieldName);\n if (fieldName !== storeFieldName && !_this.policies.hasKeyArgs(merged.__typename, fieldName)) fieldsToDirty_1[fieldName] = 1;\n if (merged[storeFieldName] === void 0 && !(_this instanceof Layer)) delete merged[storeFieldName];\n }\n });\n Object.keys(fieldsToDirty_1).forEach(function(fieldName) {\n return _this.group.dirty(dataId, fieldName);\n });\n }\n }\n };\n EntityStore.prototype.modify = function(dataId, fields) {\n var _this = this;\n var storeObject = this.lookup(dataId);\n if (storeObject) {\n var changedFields_1 = Object.create(null);\n var needToMerge_1 = false;\n var allDeleted_1 = true;\n var sharedDetails_1 = {\n DELETE: DELETE,\n INVALIDATE: INVALIDATE,\n isReference: (0, _indexJs.isReference),\n toReference: this.toReference,\n canRead: this.canRead,\n readField: function(fieldNameOrOptions, from) {\n return _this.policies.readField(typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from: from || (0, _indexJs.makeReference)(dataId)\n } : fieldNameOrOptions, {\n store: _this\n });\n }\n };\n Object.keys(storeObject).forEach(function(storeFieldName) {\n var fieldName = (0, _helpersJs.fieldNameFromStoreName)(storeFieldName);\n var fieldValue = storeObject[storeFieldName];\n if (fieldValue === void 0) return;\n var modify = typeof fields === \"function\" ? fields : fields[storeFieldName] || fields[fieldName];\n if (modify) {\n var newValue = modify === delModifier ? DELETE : modify((0, _indexJs.maybeDeepFreeze)(fieldValue), (0, _tslib.__assign)((0, _tslib.__assign)({}, sharedDetails_1), {\n fieldName: fieldName,\n storeFieldName: storeFieldName,\n storage: _this.getStorage(dataId, storeFieldName)\n }));\n if (newValue === INVALIDATE) _this.group.dirty(dataId, storeFieldName);\n else {\n if (newValue === DELETE) newValue = void 0;\n if (newValue !== fieldValue) {\n changedFields_1[storeFieldName] = newValue;\n needToMerge_1 = true;\n fieldValue = newValue;\n }\n }\n }\n if (fieldValue !== void 0) allDeleted_1 = false;\n });\n if (needToMerge_1) {\n this.merge(dataId, changedFields_1);\n if (allDeleted_1) {\n if (this instanceof Layer) this.data[dataId] = void 0;\n else delete this.data[dataId];\n this.group.dirty(dataId, \"__exists\");\n }\n return true;\n }\n }\n return false;\n };\n EntityStore.prototype.delete = function(dataId, fieldName, args) {\n var _a;\n var storeObject = this.lookup(dataId);\n if (storeObject) {\n var typename = this.getFieldValue(storeObject, \"__typename\");\n var storeFieldName = fieldName && args ? this.policies.getStoreFieldName({\n typename: typename,\n fieldName: fieldName,\n args: args\n }) : fieldName;\n return this.modify(dataId, storeFieldName ? (_a = {}, _a[storeFieldName] = delModifier, _a) : delModifier);\n }\n return false;\n };\n EntityStore.prototype.evict = function(options) {\n var evicted = false;\n if (options.id) {\n if ((0, _helpersJs.hasOwn).call(this.data, options.id)) evicted = this.delete(options.id, options.fieldName, options.args);\n if (this instanceof Layer) evicted = this.parent.evict(options) || evicted;\n if (options.fieldName || evicted) this.group.dirty(options.id, options.fieldName || \"__exists\");\n }\n return evicted;\n };\n EntityStore.prototype.clear = function() {\n this.replace(null);\n };\n EntityStore.prototype.extract = function() {\n var _this = this;\n var obj = this.toObject();\n var extraRootIds = [];\n this.getRootIdSet().forEach(function(id) {\n if (!(0, _helpersJs.hasOwn).call(_this.policies.rootTypenamesById, id)) extraRootIds.push(id);\n });\n if (extraRootIds.length) obj.__META = {\n extraRootIds: extraRootIds.sort()\n };\n return obj;\n };\n EntityStore.prototype.replace = function(newData) {\n var _this = this;\n Object.keys(this.data).forEach(function(dataId) {\n if (!(newData && (0, _helpersJs.hasOwn).call(newData, dataId))) _this.delete(dataId);\n });\n if (newData) {\n var __META = newData.__META, rest_1 = (0, _tslib.__rest)(newData, [\n \"__META\"\n ]);\n Object.keys(rest_1).forEach(function(dataId) {\n _this.merge(dataId, rest_1[dataId]);\n });\n if (__META) __META.extraRootIds.forEach(this.retain, this);\n }\n };\n EntityStore.prototype.retain = function(rootId) {\n return this.rootIds[rootId] = (this.rootIds[rootId] || 0) + 1;\n };\n EntityStore.prototype.release = function(rootId) {\n if (this.rootIds[rootId] > 0) {\n var count = --this.rootIds[rootId];\n if (!count) delete this.rootIds[rootId];\n return count;\n }\n return 0;\n };\n EntityStore.prototype.getRootIdSet = function(ids) {\n if (ids === void 0) ids = new Set();\n Object.keys(this.rootIds).forEach(ids.add, ids);\n if (this instanceof Layer) this.parent.getRootIdSet(ids);\n else Object.keys(this.policies.rootTypenamesById).forEach(ids.add, ids);\n return ids;\n };\n EntityStore.prototype.gc = function() {\n var _this = this;\n var ids = this.getRootIdSet();\n var snapshot = this.toObject();\n ids.forEach(function(id) {\n if ((0, _helpersJs.hasOwn).call(snapshot, id)) {\n Object.keys(_this.findChildRefIds(id)).forEach(ids.add, ids);\n delete snapshot[id];\n }\n });\n var idsToRemove = Object.keys(snapshot);\n if (idsToRemove.length) {\n var root_1 = this;\n while(root_1 instanceof Layer)root_1 = root_1.parent;\n idsToRemove.forEach(function(id) {\n return root_1.delete(id);\n });\n }\n return idsToRemove;\n };\n EntityStore.prototype.findChildRefIds = function(dataId) {\n if (!(0, _helpersJs.hasOwn).call(this.refs, dataId)) {\n var found_1 = this.refs[dataId] = Object.create(null);\n var workSet_1 = new Set([\n this.data[dataId]\n ]);\n var canTraverse_1 = function(obj) {\n return obj !== null && typeof obj === \"object\";\n };\n workSet_1.forEach(function(obj) {\n if ((0, _indexJs.isReference)(obj)) found_1[obj.__ref] = true;\n else if (canTraverse_1(obj)) Object.values(obj).filter(canTraverse_1).forEach(workSet_1.add, workSet_1);\n });\n }\n return this.refs[dataId];\n };\n EntityStore.prototype.makeCacheKey = function() {\n var args = [];\n for(var _i = 0; _i < arguments.length; _i++)args[_i] = arguments[_i];\n return this.group.keyMaker.lookupArray(args);\n };\n return EntityStore;\n}();\nvar CacheGroup = function() {\n function CacheGroup(caching) {\n this.caching = caching;\n this.d = null;\n this.keyMaker = new (0, _optimism.KeyTrie)((0, _indexJs.canUseWeakMap));\n this.d = caching ? (0, _optimism.dep)() : null;\n }\n CacheGroup.prototype.depend = function(dataId, storeFieldName) {\n if (this.d) {\n this.d(makeDepKey(dataId, storeFieldName));\n var fieldName = (0, _helpersJs.fieldNameFromStoreName)(storeFieldName);\n if (fieldName !== storeFieldName) this.d(makeDepKey(dataId, fieldName));\n }\n };\n CacheGroup.prototype.dirty = function(dataId, storeFieldName) {\n if (this.d) this.d.dirty(makeDepKey(dataId, storeFieldName));\n };\n return CacheGroup;\n}();\nfunction makeDepKey(dataId, storeFieldName) {\n return storeFieldName + \"#\" + dataId;\n}\n(function(EntityStore) {\n var Root = function(_super) {\n (0, _tslib.__extends)(Root, _super);\n function Root(_a) {\n var policies = _a.policies, _b = _a.resultCaching, resultCaching = _b === void 0 ? true : _b, seed = _a.seed;\n var _this = _super.call(this, policies, new CacheGroup(resultCaching)) || this;\n _this.storageTrie = new (0, _optimism.KeyTrie)((0, _indexJs.canUseWeakMap));\n _this.sharedLayerGroup = new CacheGroup(resultCaching);\n if (seed) _this.replace(seed);\n return _this;\n }\n Root.prototype.addLayer = function(layerId, replay) {\n return new Layer(layerId, this, replay, this.sharedLayerGroup);\n };\n Root.prototype.removeLayer = function() {\n return this;\n };\n Root.prototype.getStorage = function() {\n return this.storageTrie.lookupArray(arguments);\n };\n return Root;\n }(EntityStore);\n EntityStore.Root = Root;\n})(EntityStore || (EntityStore = {}));\nvar Layer = function(_super) {\n (0, _tslib.__extends)(Layer, _super);\n function Layer(id, parent, replay, group) {\n var _this = _super.call(this, parent.policies, group) || this;\n _this.id = id;\n _this.parent = parent;\n _this.replay = replay;\n _this.group = group;\n replay(_this);\n return _this;\n }\n Layer.prototype.addLayer = function(layerId, replay) {\n return new Layer(layerId, this, replay, this.group);\n };\n Layer.prototype.removeLayer = function(layerId) {\n var _this = this;\n var parent = this.parent.removeLayer(layerId);\n if (layerId === this.id) {\n if (this.group.caching) Object.keys(this.data).forEach(function(dataId) {\n if (_this.data[dataId] !== parent.lookup(dataId)) _this.delete(dataId);\n });\n return parent;\n }\n if (parent === this.parent) return this;\n return parent.addLayer(this.id, this.replay);\n };\n Layer.prototype.toObject = function() {\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, this.parent.toObject()), this.data);\n };\n Layer.prototype.findChildRefIds = function(dataId) {\n var fromParent = this.parent.findChildRefIds(dataId);\n return (0, _helpersJs.hasOwn).call(this.data, dataId) ? (0, _tslib.__assign)((0, _tslib.__assign)({}, fromParent), _super.prototype.findChildRefIds.call(this, dataId)) : fromParent;\n };\n Layer.prototype.getStorage = function() {\n var p = this.parent;\n while(p.parent)p = p.parent;\n return p.getStorage.apply(p, arguments);\n };\n return Layer;\n}(EntityStore);\nfunction storeObjectReconciler(existingObject, incomingObject, property) {\n var existingValue = existingObject[property];\n var incomingValue = incomingObject[property];\n return (0, _equality.equal)(existingValue, incomingValue) ? existingValue : incomingValue;\n}\nfunction supportsResultCaching(store) {\n return !!(store instanceof EntityStore && store.group.caching);\n}\n\n},{\"tslib\":\"5RODp\",\"optimism\":\"2cebH\",\"@wry/equality\":\"egZvf\",\"../../utilities/index.js\":\"k55vB\",\"./helpers.js\":\"2vRuy\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2vRuy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"hasOwn\", ()=>hasOwn);\nparcelHelpers.export(exports, \"getTypenameFromStoreObject\", ()=>getTypenameFromStoreObject);\nparcelHelpers.export(exports, \"TypeOrFieldNameRegExp\", ()=>TypeOrFieldNameRegExp);\nparcelHelpers.export(exports, \"fieldNameFromStoreName\", ()=>fieldNameFromStoreName);\nparcelHelpers.export(exports, \"selectionSetMatchesResult\", ()=>selectionSetMatchesResult);\nparcelHelpers.export(exports, \"storeValueIsStoreObject\", ()=>storeValueIsStoreObject);\nparcelHelpers.export(exports, \"makeProcessedFieldsMerger\", ()=>makeProcessedFieldsMerger);\nvar _indexJs = require(\"../../utilities/index.js\");\nvar hasOwn = Object.prototype.hasOwnProperty;\nfunction getTypenameFromStoreObject(store, objectOrReference) {\n return (0, _indexJs.isReference)(objectOrReference) ? store.get(objectOrReference.__ref, \"__typename\") : objectOrReference && objectOrReference.__typename;\n}\nvar TypeOrFieldNameRegExp = /^[_a-z][_0-9a-z]*/i;\nfunction fieldNameFromStoreName(storeFieldName) {\n var match = storeFieldName.match(TypeOrFieldNameRegExp);\n return match ? match[0] : storeFieldName;\n}\nfunction selectionSetMatchesResult(selectionSet, result, variables) {\n if (result && typeof result === \"object\") return Array.isArray(result) ? result.every(function(item) {\n return selectionSetMatchesResult(selectionSet, item, variables);\n }) : selectionSet.selections.every(function(field) {\n if ((0, _indexJs.isField)(field) && (0, _indexJs.shouldInclude)(field, variables)) {\n var key = (0, _indexJs.resultKeyNameFromField)(field);\n return hasOwn.call(result, key) && (!field.selectionSet || selectionSetMatchesResult(field.selectionSet, result[key], variables));\n }\n return true;\n });\n return false;\n}\nfunction storeValueIsStoreObject(value) {\n return value !== null && typeof value === \"object\" && !(0, _indexJs.isReference)(value) && !Array.isArray(value);\n}\nfunction makeProcessedFieldsMerger() {\n return new (0, _indexJs.DeepMerger);\n}\n\n},{\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"p7BPt\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"StoreWriter\", ()=>StoreWriter);\nvar _tslib = require(\"tslib\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _equality = require(\"@wry/equality\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar _helpersJs = require(\"./helpers.js\");\nvar StoreWriter = function() {\n function StoreWriter(cache, reader) {\n this.cache = cache;\n this.reader = reader;\n }\n StoreWriter.prototype.writeToStore = function(_a) {\n var query = _a.query, result = _a.result, dataId = _a.dataId, store = _a.store, variables = _a.variables;\n var operationDefinition = (0, _indexJs.getOperationDefinition)(query);\n var merger = (0, _helpersJs.makeProcessedFieldsMerger)();\n variables = (0, _tslib.__assign)((0, _tslib.__assign)({}, (0, _indexJs.getDefaultValues)(operationDefinition)), variables);\n var ref = this.processSelectionSet({\n result: result || Object.create(null),\n dataId: dataId,\n selectionSet: operationDefinition.selectionSet,\n mergeTree: {\n map: new Map\n },\n context: {\n store: store,\n written: Object.create(null),\n merge: function(existing, incoming) {\n return merger.merge(existing, incoming);\n },\n variables: variables,\n varString: JSON.stringify(variables),\n fragmentMap: (0, _indexJs.createFragmentMap)((0, _indexJs.getFragmentDefinitions)(query))\n }\n });\n if (!(0, _indexJs.isReference)(ref)) throw new (0, _tsInvariant.InvariantError)(7);\n store.retain(ref.__ref);\n return ref;\n };\n StoreWriter.prototype.processSelectionSet = function(_a) {\n var _this = this;\n var dataId = _a.dataId, result = _a.result, selectionSet = _a.selectionSet, context = _a.context, mergeTree = _a.mergeTree;\n var policies = this.cache.policies;\n var _b = policies.identify(result, selectionSet, context.fragmentMap), id = _b[0], keyObject = _b[1];\n dataId = dataId || id;\n if (\"string\" === typeof dataId) {\n var sets = context.written[dataId] || (context.written[dataId] = []);\n var ref = (0, _indexJs.makeReference)(dataId);\n if (sets.indexOf(selectionSet) >= 0) return ref;\n sets.push(selectionSet);\n if (this.reader && this.reader.isFresh(result, ref, selectionSet, context)) return ref;\n }\n var incomingFields = Object.create(null);\n if (keyObject) incomingFields = context.merge(incomingFields, keyObject);\n var typename = dataId && policies.rootTypenamesById[dataId] || (0, _indexJs.getTypenameFromResult)(result, selectionSet, context.fragmentMap) || dataId && context.store.get(dataId, \"__typename\");\n if (\"string\" === typeof typename) incomingFields.__typename = typename;\n var workSet = new Set(selectionSet.selections);\n workSet.forEach(function(selection) {\n var _a;\n if (!(0, _indexJs.shouldInclude)(selection, context.variables)) return;\n if ((0, _indexJs.isField)(selection)) {\n var resultFieldKey = (0, _indexJs.resultKeyNameFromField)(selection);\n var value = result[resultFieldKey];\n if (typeof value !== \"undefined\") {\n var storeFieldName = policies.getStoreFieldName({\n typename: typename,\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables\n });\n var childTree = getChildMergeTree(mergeTree, storeFieldName);\n var incomingValue = _this.processFieldValue(value, selection, context, childTree);\n var childTypename = selection.selectionSet && context.store.getFieldValue(incomingValue, \"__typename\") || void 0;\n var merge = policies.getMergeFunction(typename, selection.name.value, childTypename);\n if (merge) childTree.info = {\n field: selection,\n typename: typename,\n merge: merge\n };\n else maybeRecycleChildMergeTree(mergeTree, storeFieldName);\n incomingFields = context.merge(incomingFields, (_a = {}, _a[storeFieldName] = incomingValue, _a));\n } else if (policies.usingPossibleTypes && !(0, _indexJs.hasDirectives)([\n \"defer\",\n \"client\"\n ], selection)) throw new (0, _tsInvariant.InvariantError)(8);\n } else {\n var fragment = (0, _indexJs.getFragmentFromSelection)(selection, context.fragmentMap);\n if (fragment && policies.fragmentMatches(fragment, typename, result, context.variables)) fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n });\n if (\"string\" === typeof dataId) {\n var entityRef_1 = (0, _indexJs.makeReference)(dataId);\n if (mergeTree.map.size) incomingFields = this.applyMerges(mergeTree, entityRef_1, incomingFields, context);\n var hasSelectionSet_1, fieldsWithSelectionSets_1, hasMergeFunction_1;\n context.store.merge(dataId, incomingFields);\n return entityRef_1;\n }\n return incomingFields;\n };\n StoreWriter.prototype.processFieldValue = function(value, field, context, mergeTree) {\n var _this = this;\n if (!field.selectionSet || value === null) return value;\n if (Array.isArray(value)) return value.map(function(item, i) {\n var value = _this.processFieldValue(item, field, context, getChildMergeTree(mergeTree, i));\n maybeRecycleChildMergeTree(mergeTree, i);\n return value;\n });\n return this.processSelectionSet({\n result: value,\n selectionSet: field.selectionSet,\n context: context,\n mergeTree: mergeTree\n });\n };\n StoreWriter.prototype.applyMerges = function(mergeTree, existing, incoming, context, getStorageArgs) {\n var _a;\n var _this = this;\n if (mergeTree.map.size && !(0, _indexJs.isReference)(incoming)) {\n var e_1 = !Array.isArray(incoming) && ((0, _indexJs.isReference)(existing) || (0, _helpersJs.storeValueIsStoreObject)(existing)) ? existing : void 0;\n var i_1 = incoming;\n if (e_1 && !getStorageArgs) getStorageArgs = [\n (0, _indexJs.isReference)(e_1) ? e_1.__ref : e_1\n ];\n var changedFields_1;\n var getValue_1 = function(from, name) {\n return Array.isArray(from) ? typeof name === \"number\" ? from[name] : void 0 : context.store.getFieldValue(from, String(name));\n };\n mergeTree.map.forEach(function(childTree, storeFieldName) {\n if (getStorageArgs) getStorageArgs.push(storeFieldName);\n var eVal = getValue_1(e_1, storeFieldName);\n var iVal = getValue_1(i_1, storeFieldName);\n var aVal = _this.applyMerges(childTree, eVal, iVal, context, getStorageArgs);\n if (aVal !== iVal) {\n changedFields_1 = changedFields_1 || new Map;\n changedFields_1.set(storeFieldName, aVal);\n }\n if (getStorageArgs) (0, _tsInvariant.invariant)(getStorageArgs.pop() === storeFieldName);\n });\n if (changedFields_1) {\n incoming = Array.isArray(i_1) ? i_1.slice(0) : (0, _tslib.__assign)({}, i_1);\n changedFields_1.forEach(function(value, name) {\n incoming[name] = value;\n });\n }\n }\n if (mergeTree.info) return this.cache.policies.runMergeFunction(existing, incoming, mergeTree.info, context, getStorageArgs && (_a = context.store).getStorage.apply(_a, getStorageArgs));\n return incoming;\n };\n return StoreWriter;\n}();\nvar emptyMergeTreePool = [];\nfunction getChildMergeTree(_a, name) {\n var map = _a.map;\n if (!map.has(name)) map.set(name, emptyMergeTreePool.pop() || {\n map: new Map\n });\n return map.get(name);\n}\nfunction maybeRecycleChildMergeTree(_a, name) {\n var map = _a.map;\n var childTree = map.get(name);\n if (childTree && !childTree.info && !childTree.map.size) {\n emptyMergeTreePool.push(childTree);\n map.delete(name);\n }\n}\nvar warnings = new Set();\nfunction warnAboutDataLoss(existingRef, incomingObj, storeFieldName, store) {\n var getChild = function(objOrRef) {\n var child = store.getFieldValue(objOrRef, storeFieldName);\n return typeof child === \"object\" && child;\n };\n var existing = getChild(existingRef);\n if (!existing) return;\n var incoming = getChild(incomingObj);\n if (!incoming) return;\n if ((0, _indexJs.isReference)(existing)) return;\n if ((0, _equality.equal)(existing, incoming)) return;\n if (Object.keys(existing).every(function(key) {\n return store.getFieldValue(incoming, key) !== void 0;\n })) return;\n var parentType = store.getFieldValue(existingRef, \"__typename\") || store.getFieldValue(incomingObj, \"__typename\");\n var fieldName = (0, _helpersJs.fieldNameFromStoreName)(storeFieldName);\n var typeDotName = parentType + \".\" + fieldName;\n if (warnings.has(typeDotName)) return;\n warnings.add(typeDotName);\n var childTypenames = [];\n if (!Array.isArray(existing) && !Array.isArray(incoming)) [\n existing,\n incoming\n ].forEach(function(child) {\n var typename = store.getFieldValue(child, \"__typename\");\n if (typeof typename === \"string\" && !childTypenames.includes(typename)) childTypenames.push(typename);\n });\n}\n\n},{\"tslib\":\"5RODp\",\"ts-invariant\":\"2pI3w\",\"@wry/equality\":\"egZvf\",\"../../utilities/index.js\":\"k55vB\",\"./helpers.js\":\"2vRuy\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7nqYk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"cacheSlot\", ()=>cacheSlot);\nparcelHelpers.export(exports, \"forgetCache\", ()=>forgetCache);\nparcelHelpers.export(exports, \"recallCache\", ()=>recallCache);\nparcelHelpers.export(exports, \"makeVar\", ()=>makeVar);\nvar _optimism = require(\"optimism\");\nvar _context = require(\"@wry/context\");\nvar cacheSlot = new (0, _context.Slot)();\nfunction consumeAndIterate(set, callback) {\n if (set.size) {\n var items_1 = [];\n set.forEach(function(item) {\n return items_1.push(item);\n });\n set.clear();\n items_1.forEach(callback);\n }\n}\nvar cacheInfoMap = new WeakMap();\nfunction getCacheInfo(cache) {\n var info = cacheInfoMap.get(cache);\n if (!info) cacheInfoMap.set(cache, info = {\n vars: new Set,\n dep: (0, _optimism.dep)()\n });\n return info;\n}\nfunction forgetCache(cache) {\n getCacheInfo(cache).vars.forEach(function(rv) {\n return rv.forgetCache(cache);\n });\n}\nfunction recallCache(cache) {\n getCacheInfo(cache).vars.forEach(function(rv) {\n return rv.attachCache(cache);\n });\n}\nfunction makeVar(value) {\n var caches = new Set();\n var listeners = new Set();\n var rv = function(newValue) {\n if (arguments.length > 0) {\n if (value !== newValue) {\n value = newValue;\n caches.forEach(function(cache) {\n getCacheInfo(cache).dep.dirty(rv);\n broadcast(cache);\n });\n consumeAndIterate(listeners, function(listener) {\n return listener(value);\n });\n }\n } else {\n var cache = cacheSlot.getValue();\n if (cache) {\n attach(cache);\n getCacheInfo(cache).dep(rv);\n }\n }\n return value;\n };\n rv.onNextChange = function(listener) {\n listeners.add(listener);\n return function() {\n listeners.delete(listener);\n };\n };\n var attach = rv.attachCache = function(cache) {\n caches.add(cache);\n getCacheInfo(cache).vars.add(rv);\n return rv;\n };\n rv.forgetCache = function(cache) {\n return caches.delete(cache);\n };\n return rv;\n}\nfunction broadcast(cache) {\n if (cache.broadcastWatches) cache.broadcastWatches();\n}\n\n},{\"optimism\":\"2cebH\",\"@wry/context\":\"03oWS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6FYrH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"defaultDataIdFromObject\", ()=>defaultDataIdFromObject);\nparcelHelpers.export(exports, \"Policies\", ()=>Policies);\nvar _tslib = require(\"tslib\");\nvar _optimism = require(\"optimism\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../../utilities/index.js\");\nvar _helpersJs = require(\"./helpers.js\");\nvar _reactiveVarsJs = require(\"./reactiveVars.js\");\nfunction argsFromFieldSpecifier(spec) {\n return spec.args !== void 0 ? spec.args : spec.field ? (0, _indexJs.argumentsObjectFromField)(spec.field, spec.variables) : null;\n}\nvar defaultDataIdFromObject = function(_a, context) {\n var __typename = _a.__typename, id = _a.id, _id = _a._id;\n if (typeof __typename === \"string\") {\n if (context) context.keyObject = id !== void 0 ? {\n id: id\n } : _id !== void 0 ? {\n _id: _id\n } : void 0;\n if (id === void 0) id = _id;\n if (id !== void 0) return __typename + \":\" + (typeof id === \"number\" || typeof id === \"string\" ? id : JSON.stringify(id));\n }\n};\nvar nullKeyFieldsFn = function() {\n return void 0;\n};\nvar simpleKeyArgsFn = function(_args, context) {\n return context.fieldName;\n};\nvar mergeTrueFn = function(existing, incoming, _a) {\n var mergeObjects = _a.mergeObjects;\n return mergeObjects(existing, incoming);\n};\nvar mergeFalseFn = function(_, incoming) {\n return incoming;\n};\nvar Policies = function() {\n function Policies(config) {\n this.config = config;\n this.typePolicies = Object.create(null);\n this.toBeAdded = Object.create(null);\n this.supertypeMap = new Map();\n this.fuzzySubtypes = new Map();\n this.rootIdsByTypename = Object.create(null);\n this.rootTypenamesById = Object.create(null);\n this.usingPossibleTypes = false;\n this.config = (0, _tslib.__assign)({\n dataIdFromObject: defaultDataIdFromObject\n }, config);\n this.cache = this.config.cache;\n this.setRootTypename(\"Query\");\n this.setRootTypename(\"Mutation\");\n this.setRootTypename(\"Subscription\");\n if (config.possibleTypes) this.addPossibleTypes(config.possibleTypes);\n if (config.typePolicies) this.addTypePolicies(config.typePolicies);\n }\n Policies.prototype.identify = function(object, selectionSet, fragmentMap) {\n var typename = selectionSet && fragmentMap ? (0, _indexJs.getTypenameFromResult)(object, selectionSet, fragmentMap) : object.__typename;\n if (typename === this.rootTypenamesById.ROOT_QUERY) return [\n \"ROOT_QUERY\"\n ];\n var context = {\n typename: typename,\n selectionSet: selectionSet,\n fragmentMap: fragmentMap\n };\n var id;\n var policy = typename && this.getTypePolicy(typename);\n var keyFn = policy && policy.keyFn || this.config.dataIdFromObject;\n while(keyFn){\n var specifierOrId = keyFn(object, context);\n if (Array.isArray(specifierOrId)) keyFn = keyFieldsFnFromSpecifier(specifierOrId);\n else {\n id = specifierOrId;\n break;\n }\n }\n id = id ? String(id) : void 0;\n return context.keyObject ? [\n id,\n context.keyObject\n ] : [\n id\n ];\n };\n Policies.prototype.addTypePolicies = function(typePolicies) {\n var _this = this;\n Object.keys(typePolicies).forEach(function(typename) {\n var _a = typePolicies[typename], queryType = _a.queryType, mutationType = _a.mutationType, subscriptionType = _a.subscriptionType, incoming = (0, _tslib.__rest)(_a, [\n \"queryType\",\n \"mutationType\",\n \"subscriptionType\"\n ]);\n if (queryType) _this.setRootTypename(\"Query\", typename);\n if (mutationType) _this.setRootTypename(\"Mutation\", typename);\n if (subscriptionType) _this.setRootTypename(\"Subscription\", typename);\n if ((0, _helpersJs.hasOwn).call(_this.toBeAdded, typename)) _this.toBeAdded[typename].push(incoming);\n else _this.toBeAdded[typename] = [\n incoming\n ];\n });\n };\n Policies.prototype.updateTypePolicy = function(typename, incoming) {\n var _this = this;\n var existing = this.getTypePolicy(typename);\n var keyFields = incoming.keyFields, fields = incoming.fields;\n function setMerge(existing, merge) {\n existing.merge = typeof merge === \"function\" ? merge : merge === true ? mergeTrueFn : merge === false ? mergeFalseFn : existing.merge;\n }\n setMerge(existing, incoming.merge);\n existing.keyFn = keyFields === false ? nullKeyFieldsFn : Array.isArray(keyFields) ? keyFieldsFnFromSpecifier(keyFields) : typeof keyFields === \"function\" ? keyFields : existing.keyFn;\n if (fields) Object.keys(fields).forEach(function(fieldName) {\n var existing = _this.getFieldPolicy(typename, fieldName, true);\n var incoming = fields[fieldName];\n if (typeof incoming === \"function\") existing.read = incoming;\n else {\n var keyArgs = incoming.keyArgs, read = incoming.read, merge = incoming.merge;\n existing.keyFn = keyArgs === false ? simpleKeyArgsFn : Array.isArray(keyArgs) ? keyArgsFnFromSpecifier(keyArgs) : typeof keyArgs === \"function\" ? keyArgs : existing.keyFn;\n if (typeof read === \"function\") existing.read = read;\n setMerge(existing, merge);\n }\n if (existing.read && existing.merge) existing.keyFn = existing.keyFn || simpleKeyArgsFn;\n });\n };\n Policies.prototype.setRootTypename = function(which, typename) {\n if (typename === void 0) typename = which;\n var rootId = \"ROOT_\" + which.toUpperCase();\n var old = this.rootTypenamesById[rootId];\n if (typename !== old) {\n (0, _tsInvariant.invariant)(!old || old === which, 1);\n if (old) delete this.rootIdsByTypename[old];\n this.rootIdsByTypename[typename] = rootId;\n this.rootTypenamesById[rootId] = typename;\n }\n };\n Policies.prototype.addPossibleTypes = function(possibleTypes) {\n var _this = this;\n this.usingPossibleTypes = true;\n Object.keys(possibleTypes).forEach(function(supertype) {\n _this.getSupertypeSet(supertype, true);\n possibleTypes[supertype].forEach(function(subtype) {\n _this.getSupertypeSet(subtype, true).add(supertype);\n var match = subtype.match((0, _helpersJs.TypeOrFieldNameRegExp));\n if (!match || match[0] !== subtype) _this.fuzzySubtypes.set(subtype, new RegExp(subtype));\n });\n });\n };\n Policies.prototype.getTypePolicy = function(typename) {\n var _this = this;\n if (!(0, _helpersJs.hasOwn).call(this.typePolicies, typename)) {\n var policy_1 = this.typePolicies[typename] = Object.create(null);\n policy_1.fields = Object.create(null);\n var supertypes = this.supertypeMap.get(typename);\n if (supertypes && supertypes.size) supertypes.forEach(function(supertype) {\n var _a = _this.getTypePolicy(supertype), fields = _a.fields, rest = (0, _tslib.__rest)(_a, [\n \"fields\"\n ]);\n Object.assign(policy_1, rest);\n Object.assign(policy_1.fields, fields);\n });\n }\n var inbox = this.toBeAdded[typename];\n if (inbox && inbox.length) this.updateTypePolicy(typename, (0, _indexJs.compact).apply(void 0, inbox.splice(0)));\n return this.typePolicies[typename];\n };\n Policies.prototype.getFieldPolicy = function(typename, fieldName, createIfMissing) {\n if (typename) {\n var fieldPolicies = this.getTypePolicy(typename).fields;\n return fieldPolicies[fieldName] || createIfMissing && (fieldPolicies[fieldName] = Object.create(null));\n }\n };\n Policies.prototype.getSupertypeSet = function(subtype, createIfMissing) {\n var supertypeSet = this.supertypeMap.get(subtype);\n if (!supertypeSet && createIfMissing) this.supertypeMap.set(subtype, supertypeSet = new Set());\n return supertypeSet;\n };\n Policies.prototype.fragmentMatches = function(fragment, typename, result, variables) {\n var _this = this;\n if (!fragment.typeCondition) return true;\n if (!typename) return false;\n var supertype = fragment.typeCondition.name.value;\n if (typename === supertype) return true;\n if (this.usingPossibleTypes && this.supertypeMap.has(supertype)) {\n var typenameSupertypeSet = this.getSupertypeSet(typename, true);\n var workQueue_1 = [\n typenameSupertypeSet\n ];\n var maybeEnqueue_1 = function(subtype) {\n var supertypeSet = _this.getSupertypeSet(subtype, false);\n if (supertypeSet && supertypeSet.size && workQueue_1.indexOf(supertypeSet) < 0) workQueue_1.push(supertypeSet);\n };\n var needToCheckFuzzySubtypes = !!(result && this.fuzzySubtypes.size);\n var checkingFuzzySubtypes = false;\n for(var i = 0; i < workQueue_1.length; ++i){\n var supertypeSet = workQueue_1[i];\n if (supertypeSet.has(supertype)) {\n if (!typenameSupertypeSet.has(supertype)) {\n checkingFuzzySubtypes;\n typenameSupertypeSet.add(supertype);\n }\n return true;\n }\n supertypeSet.forEach(maybeEnqueue_1);\n if (needToCheckFuzzySubtypes && i === workQueue_1.length - 1 && (0, _helpersJs.selectionSetMatchesResult)(fragment.selectionSet, result, variables)) {\n needToCheckFuzzySubtypes = false;\n checkingFuzzySubtypes = true;\n this.fuzzySubtypes.forEach(function(regExp, fuzzyString) {\n var match = typename.match(regExp);\n if (match && match[0] === typename) maybeEnqueue_1(fuzzyString);\n });\n }\n }\n }\n return false;\n };\n Policies.prototype.hasKeyArgs = function(typename, fieldName) {\n var policy = this.getFieldPolicy(typename, fieldName, false);\n return !!(policy && policy.keyFn);\n };\n Policies.prototype.getStoreFieldName = function(fieldSpec) {\n var typename = fieldSpec.typename, fieldName = fieldSpec.fieldName;\n var policy = this.getFieldPolicy(typename, fieldName, false);\n var storeFieldName;\n var keyFn = policy && policy.keyFn;\n if (keyFn && typename) {\n var context = {\n typename: typename,\n fieldName: fieldName,\n field: fieldSpec.field || null,\n variables: fieldSpec.variables\n };\n var args = argsFromFieldSpecifier(fieldSpec);\n while(keyFn){\n var specifierOrString = keyFn(args, context);\n if (Array.isArray(specifierOrString)) keyFn = keyArgsFnFromSpecifier(specifierOrString);\n else {\n storeFieldName = specifierOrString || fieldName;\n break;\n }\n }\n }\n if (storeFieldName === void 0) storeFieldName = fieldSpec.field ? (0, _indexJs.storeKeyNameFromField)(fieldSpec.field, fieldSpec.variables) : (0, _indexJs.getStoreKeyName)(fieldName, argsFromFieldSpecifier(fieldSpec));\n if (storeFieldName === false) return fieldName;\n return fieldName === (0, _helpersJs.fieldNameFromStoreName)(storeFieldName) ? storeFieldName : fieldName + \":\" + storeFieldName;\n };\n Policies.prototype.readField = function(options, context) {\n var objectOrReference = options.from;\n if (!objectOrReference) return;\n var nameOrField = options.field || options.fieldName;\n if (!nameOrField) return;\n if (options.typename === void 0) {\n var typename = context.store.getFieldValue(objectOrReference, \"__typename\");\n if (typename) options.typename = typename;\n }\n var storeFieldName = this.getStoreFieldName(options);\n var fieldName = (0, _helpersJs.fieldNameFromStoreName)(storeFieldName);\n var existing = context.store.getFieldValue(objectOrReference, storeFieldName);\n var policy = this.getFieldPolicy(options.typename, fieldName, false);\n var read = policy && policy.read;\n if (read) {\n var readOptions = makeFieldFunctionOptions(this, objectOrReference, options, context, context.store.getStorage((0, _indexJs.isReference)(objectOrReference) ? objectOrReference.__ref : objectOrReference, storeFieldName));\n return (0, _reactiveVarsJs.cacheSlot).withValue(this.cache, read, [\n existing,\n readOptions\n ]);\n }\n return existing;\n };\n Policies.prototype.getMergeFunction = function(parentTypename, fieldName, childTypename) {\n var policy = this.getFieldPolicy(parentTypename, fieldName, false);\n var merge = policy && policy.merge;\n if (!merge && childTypename) {\n policy = this.getTypePolicy(childTypename);\n merge = policy && policy.merge;\n }\n return merge;\n };\n Policies.prototype.runMergeFunction = function(existing, incoming, _a, context, storage) {\n var field = _a.field, typename = _a.typename, merge = _a.merge;\n if (merge === mergeTrueFn) return makeMergeObjectsFunction(context.store.getFieldValue)(existing, incoming);\n if (merge === mergeFalseFn) return incoming;\n return merge(existing, incoming, makeFieldFunctionOptions(this, void 0, {\n typename: typename,\n fieldName: field.name.value,\n field: field,\n variables: context.variables\n }, context, storage || Object.create(null)));\n };\n return Policies;\n}();\nfunction makeFieldFunctionOptions(policies, objectOrReference, fieldSpec, context, storage) {\n var storeFieldName = policies.getStoreFieldName(fieldSpec);\n var fieldName = (0, _helpersJs.fieldNameFromStoreName)(storeFieldName);\n var variables = fieldSpec.variables || context.variables;\n var _a = context.store, getFieldValue = _a.getFieldValue, toReference = _a.toReference, canRead = _a.canRead;\n return {\n args: argsFromFieldSpecifier(fieldSpec),\n field: fieldSpec.field || null,\n fieldName: fieldName,\n storeFieldName: storeFieldName,\n variables: variables,\n isReference: (0, _indexJs.isReference),\n toReference: toReference,\n storage: storage,\n cache: policies.cache,\n canRead: canRead,\n readField: function(fieldNameOrOptions, from) {\n var options = typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from: from\n } : (0, _tslib.__assign)({}, fieldNameOrOptions);\n if (void 0 === options.from) options.from = objectOrReference;\n if (void 0 === options.variables) options.variables = variables;\n return policies.readField(options, context);\n },\n mergeObjects: makeMergeObjectsFunction(getFieldValue)\n };\n}\nfunction makeMergeObjectsFunction(getFieldValue) {\n return function mergeObjects(existing, incoming) {\n if (Array.isArray(existing) || Array.isArray(incoming)) throw new (0, _tsInvariant.InvariantError)(2);\n if (existing && typeof existing === \"object\" && incoming && typeof incoming === \"object\") {\n var eType = getFieldValue(existing, \"__typename\");\n var iType = getFieldValue(incoming, \"__typename\");\n var typesDiffer = eType && iType && eType !== iType;\n if (typesDiffer || !(0, _helpersJs.storeValueIsStoreObject)(existing) || !(0, _helpersJs.storeValueIsStoreObject)(incoming)) return incoming;\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, existing), incoming);\n }\n return incoming;\n };\n}\nfunction keyArgsFnFromSpecifier(specifier) {\n return function(args, context) {\n return args ? context.fieldName + \":\" + JSON.stringify(computeKeyObject(args, specifier, false)) : context.fieldName;\n };\n}\nfunction keyFieldsFnFromSpecifier(specifier) {\n var trie = new (0, _optimism.KeyTrie)((0, _indexJs.canUseWeakMap));\n return function(object, context) {\n var aliasMap;\n if (context.selectionSet && context.fragmentMap) {\n var info = trie.lookupArray([\n context.selectionSet,\n context.fragmentMap\n ]);\n aliasMap = info.aliasMap || (info.aliasMap = makeAliasMap(context.selectionSet, context.fragmentMap));\n }\n var keyObject = context.keyObject = computeKeyObject(object, specifier, true, aliasMap);\n return context.typename + \":\" + JSON.stringify(keyObject);\n };\n}\nfunction makeAliasMap(selectionSet, fragmentMap) {\n var map = Object.create(null);\n var workQueue = new Set([\n selectionSet\n ]);\n workQueue.forEach(function(selectionSet) {\n selectionSet.selections.forEach(function(selection) {\n if ((0, _indexJs.isField)(selection)) {\n if (selection.alias) {\n var responseKey = selection.alias.value;\n var storeKey = selection.name.value;\n if (storeKey !== responseKey) {\n var aliases = map.aliases || (map.aliases = Object.create(null));\n aliases[storeKey] = responseKey;\n }\n }\n if (selection.selectionSet) {\n var subsets = map.subsets || (map.subsets = Object.create(null));\n subsets[selection.name.value] = makeAliasMap(selection.selectionSet, fragmentMap);\n }\n } else {\n var fragment = (0, _indexJs.getFragmentFromSelection)(selection, fragmentMap);\n if (fragment) workQueue.add(fragment.selectionSet);\n }\n });\n });\n return map;\n}\nfunction computeKeyObject(response, specifier, strict, aliasMap) {\n var keyObj = Object.create(null);\n var prevKey;\n specifier.forEach(function(s) {\n if (Array.isArray(s)) {\n if (typeof prevKey === \"string\") {\n var subsets = aliasMap && aliasMap.subsets;\n var subset = subsets && subsets[prevKey];\n keyObj[prevKey] = computeKeyObject(response[prevKey], s, strict, subset);\n }\n } else {\n var aliases = aliasMap && aliasMap.aliases;\n var responseName = aliases && aliases[s] || s;\n if ((0, _helpersJs.hasOwn).call(response, responseName)) keyObj[prevKey = s] = response[responseName];\n else {\n (0, _tsInvariant.invariant)(!strict, 3);\n prevKey = void 0;\n }\n }\n });\n return keyObj;\n}\n\n},{\"tslib\":\"5RODp\",\"optimism\":\"2cebH\",\"ts-invariant\":\"2pI3w\",\"../../utilities/index.js\":\"k55vB\",\"./helpers.js\":\"2vRuy\",\"./reactiveVars.js\":\"7nqYk\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i6tcv\":[function(require,module,exports) {\n\n},{}],\"2iGeB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"QueryInfo\", ()=>QueryInfo);\nparcelHelpers.export(exports, \"shouldWriteResult\", ()=>shouldWriteResult);\nvar _equality = require(\"@wry/equality\");\nvar _indexJs = require(\"../utilities/index.js\");\nvar _networkStatusJs = require(\"./networkStatus.js\");\nvar destructiveMethodCounts = new ((0, _indexJs.canUseWeakMap) ? WeakMap : Map)();\nfunction wrapDestructiveCacheMethod(cache, methodName) {\n var original = cache[methodName];\n if (typeof original === \"function\") cache[methodName] = function() {\n destructiveMethodCounts.set(cache, (destructiveMethodCounts.get(cache) + 1) % 1e15);\n return original.apply(this, arguments);\n };\n}\nfunction cancelNotifyTimeout(info) {\n if (info[\"notifyTimeout\"]) {\n clearTimeout(info[\"notifyTimeout\"]);\n info[\"notifyTimeout\"] = void 0;\n }\n}\nvar QueryInfo = function() {\n function QueryInfo(cache) {\n this.cache = cache;\n this.listeners = new Set();\n this.document = null;\n this.lastRequestId = 1;\n this.subscriptions = new Set();\n this.stopped = false;\n this.dirty = false;\n this.diff = null;\n this.observableQuery = null;\n if (!destructiveMethodCounts.has(cache)) {\n destructiveMethodCounts.set(cache, 0);\n wrapDestructiveCacheMethod(cache, \"evict\");\n wrapDestructiveCacheMethod(cache, \"modify\");\n wrapDestructiveCacheMethod(cache, \"reset\");\n }\n }\n QueryInfo.prototype.init = function(query) {\n var networkStatus = query.networkStatus || (0, _networkStatusJs.NetworkStatus).loading;\n if (this.variables && this.networkStatus !== (0, _networkStatusJs.NetworkStatus).loading && !(0, _equality.equal)(this.variables, query.variables)) networkStatus = (0, _networkStatusJs.NetworkStatus).setVariables;\n if (!(0, _equality.equal)(query.variables, this.variables)) this.diff = null;\n Object.assign(this, {\n document: query.document,\n variables: query.variables,\n networkError: null,\n graphQLErrors: this.graphQLErrors || [],\n networkStatus: networkStatus\n });\n if (query.observableQuery) this.setObservableQuery(query.observableQuery);\n if (query.lastRequestId) this.lastRequestId = query.lastRequestId;\n return this;\n };\n QueryInfo.prototype.reset = function() {\n cancelNotifyTimeout(this);\n this.diff = null;\n this.dirty = false;\n };\n QueryInfo.prototype.getDiff = function(variables) {\n if (variables === void 0) variables = this.variables;\n if (this.diff && (0, _equality.equal)(variables, this.variables)) return this.diff;\n this.updateWatch(this.variables = variables);\n return this.diff = this.cache.diff({\n query: this.document,\n variables: variables,\n returnPartialData: true,\n optimistic: true\n });\n };\n QueryInfo.prototype.setDiff = function(diff) {\n var _this = this;\n var oldDiff = this.diff;\n this.diff = diff;\n if (!this.dirty && (diff && diff.result) !== (oldDiff && oldDiff.result)) {\n this.dirty = true;\n if (!this.notifyTimeout) this.notifyTimeout = setTimeout(function() {\n return _this.notify();\n }, 0);\n }\n };\n QueryInfo.prototype.setObservableQuery = function(oq) {\n var _this = this;\n if (oq === this.observableQuery) return;\n if (this.oqListener) this.listeners.delete(this.oqListener);\n this.observableQuery = oq;\n if (oq) {\n oq[\"queryInfo\"] = this;\n this.listeners.add(this.oqListener = function() {\n if (_this.getDiff().fromOptimisticTransaction) oq[\"observe\"]();\n else oq.reobserve();\n });\n } else delete this.oqListener;\n };\n QueryInfo.prototype.notify = function() {\n var _this = this;\n cancelNotifyTimeout(this);\n if (this.shouldNotify()) this.listeners.forEach(function(listener) {\n return listener(_this);\n });\n this.dirty = false;\n };\n QueryInfo.prototype.shouldNotify = function() {\n if (!this.dirty || !this.listeners.size) return false;\n if ((0, _networkStatusJs.isNetworkRequestInFlight)(this.networkStatus) && this.observableQuery) {\n var fetchPolicy = this.observableQuery.options.fetchPolicy;\n if (fetchPolicy !== \"cache-only\" && fetchPolicy !== \"cache-and-network\") return false;\n }\n return true;\n };\n QueryInfo.prototype.stop = function() {\n if (!this.stopped) {\n this.stopped = true;\n this.reset();\n this.cancel();\n delete this.cancel;\n this.subscriptions.forEach(function(sub) {\n return sub.unsubscribe();\n });\n var oq = this.observableQuery;\n if (oq) oq.stopPolling();\n }\n };\n QueryInfo.prototype.cancel = function() {};\n QueryInfo.prototype.updateWatch = function(variables) {\n var _this = this;\n if (variables === void 0) variables = this.variables;\n var oq = this.observableQuery;\n if (oq && oq.options.fetchPolicy === \"no-cache\") return;\n if (!this.lastWatch || this.lastWatch.query !== this.document || !(0, _equality.equal)(variables, this.lastWatch.variables)) {\n this.cancel();\n this.cancel = this.cache.watch(this.lastWatch = {\n query: this.document,\n variables: variables,\n optimistic: true,\n callback: function(diff) {\n return _this.setDiff(diff);\n }\n });\n }\n };\n QueryInfo.prototype.shouldWrite = function(result, variables) {\n var lastWrite = this.lastWrite;\n return !(lastWrite && lastWrite.dmCount === destructiveMethodCounts.get(this.cache) && (0, _equality.equal)(variables, lastWrite.variables) && (0, _equality.equal)(result.data, lastWrite.result.data));\n };\n QueryInfo.prototype.markResult = function(result, options, allowCacheWrite) {\n var _this = this;\n this.graphQLErrors = (0, _indexJs.isNonEmptyArray)(result.errors) ? result.errors : [];\n this.reset();\n if (options.fetchPolicy === \"no-cache\") this.diff = {\n result: result.data,\n complete: true\n };\n else if (!this.stopped && allowCacheWrite) {\n if (shouldWriteResult(result, options.errorPolicy)) this.cache.performTransaction(function(cache) {\n if (_this.shouldWrite(result, options.variables)) {\n cache.writeQuery({\n query: _this.document,\n data: result.data,\n variables: options.variables\n });\n _this.lastWrite = {\n result: result,\n variables: options.variables,\n dmCount: destructiveMethodCounts.get(_this.cache)\n };\n } else if (_this.diff && _this.diff.complete) {\n result.data = _this.diff.result;\n return;\n }\n var diff = cache.diff({\n query: _this.document,\n variables: options.variables,\n returnPartialData: true,\n optimistic: true\n });\n if (!_this.stopped) _this.updateWatch(options.variables);\n _this.diff = diff;\n if (diff.complete) result.data = diff.result;\n });\n else this.lastWrite = void 0;\n }\n };\n QueryInfo.prototype.markReady = function() {\n this.networkError = null;\n return this.networkStatus = (0, _networkStatusJs.NetworkStatus).ready;\n };\n QueryInfo.prototype.markError = function(error) {\n this.networkStatus = (0, _networkStatusJs.NetworkStatus).error;\n this.lastWrite = void 0;\n this.reset();\n if (error.graphQLErrors) this.graphQLErrors = error.graphQLErrors;\n if (error.networkError) this.networkError = error.networkError;\n return error;\n };\n return QueryInfo;\n}();\nfunction shouldWriteResult(result, errorPolicy) {\n if (errorPolicy === void 0) errorPolicy = \"none\";\n var ignoreErrors = errorPolicy === \"ignore\" || errorPolicy === \"all\";\n var writeWithErrors = !(0, _indexJs.graphQLResultHasError)(result);\n if (!writeWithErrors && ignoreErrors && result.data) writeWithErrors = true;\n return writeWithErrors;\n}\n\n},{\"@wry/equality\":\"egZvf\",\"../utilities/index.js\":\"k55vB\",\"./networkStatus.js\":\"8yReP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jrYcZ\":[function(require,module,exports) {\n\n},{}],\"bEarf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"gql\", ()=>gql);\nparcelHelpers.export(exports, \"resetCaches\", ()=>resetCaches);\nparcelHelpers.export(exports, \"disableFragmentWarnings\", ()=>disableFragmentWarnings);\nparcelHelpers.export(exports, \"enableExperimentalFragmentVariables\", ()=>enableExperimentalFragmentVariables);\nparcelHelpers.export(exports, \"disableExperimentalFragmentVariables\", ()=>disableExperimentalFragmentVariables);\nvar _tslib = require(\"tslib\");\nvar _graphql = require(\"graphql\");\nvar docCache = new Map();\nvar fragmentSourceMap = new Map();\nvar printFragmentWarnings = true;\nvar experimentalFragmentVariables = false;\nfunction normalize(string) {\n return string.replace(/[\\s,]+/g, \" \").trim();\n}\nfunction cacheKeyFromLoc(loc) {\n return normalize(loc.source.body.substring(loc.start, loc.end));\n}\nfunction processFragments(ast) {\n var seenKeys = new Set();\n var definitions = [];\n ast.definitions.forEach(function(fragmentDefinition) {\n if (fragmentDefinition.kind === \"FragmentDefinition\") {\n var fragmentName = fragmentDefinition.name.value;\n var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc);\n var sourceKeySet = fragmentSourceMap.get(fragmentName);\n if (sourceKeySet && !sourceKeySet.has(sourceKey)) {\n if (printFragmentWarnings) console.warn(\"Warning: fragment with name \" + fragmentName + \" already exists.\\n\" + \"graphql-tag enforces all fragment names across your application to be unique; read more about\\n\" + \"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names\");\n } else if (!sourceKeySet) fragmentSourceMap.set(fragmentName, sourceKeySet = new Set);\n sourceKeySet.add(sourceKey);\n if (!seenKeys.has(sourceKey)) {\n seenKeys.add(sourceKey);\n definitions.push(fragmentDefinition);\n }\n } else definitions.push(fragmentDefinition);\n });\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, ast), {\n definitions: definitions\n });\n}\nfunction stripLoc(doc) {\n var workSet = new Set(doc.definitions);\n workSet.forEach(function(node) {\n if (node.loc) delete node.loc;\n Object.keys(node).forEach(function(key) {\n var value = node[key];\n if (value && typeof value === \"object\") workSet.add(value);\n });\n });\n var loc = doc.loc;\n if (loc) {\n delete loc.startToken;\n delete loc.endToken;\n }\n return doc;\n}\nfunction parseDocument(source) {\n var cacheKey = normalize(source);\n if (!docCache.has(cacheKey)) {\n var parsed = (0, _graphql.parse)(source, {\n experimentalFragmentVariables: experimentalFragmentVariables\n });\n if (!parsed || parsed.kind !== \"Document\") throw new Error(\"Not a valid GraphQL document.\");\n docCache.set(cacheKey, stripLoc(processFragments(parsed)));\n }\n return docCache.get(cacheKey);\n}\nfunction gql(literals) {\n var args = [];\n for(var _i = 1; _i < arguments.length; _i++)args[_i - 1] = arguments[_i];\n if (typeof literals === \"string\") literals = [\n literals\n ];\n var result = literals[0];\n args.forEach(function(arg, i) {\n if (arg && arg.kind === \"Document\") result += arg.loc.source.body;\n else result += arg;\n result += literals[i + 1];\n });\n return parseDocument(result);\n}\nfunction resetCaches() {\n docCache.clear();\n fragmentSourceMap.clear();\n}\nfunction disableFragmentWarnings() {\n printFragmentWarnings = false;\n}\nfunction enableExperimentalFragmentVariables() {\n experimentalFragmentVariables = true;\n}\nfunction disableExperimentalFragmentVariables() {\n experimentalFragmentVariables = false;\n}\nvar extras = {\n gql: gql,\n resetCaches: resetCaches,\n disableFragmentWarnings: disableFragmentWarnings,\n enableExperimentalFragmentVariables: enableExperimentalFragmentVariables,\n disableExperimentalFragmentVariables: disableExperimentalFragmentVariables\n};\n(function(gql_1) {\n gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables;\n})(gql || (gql = {}));\ngql[\"default\"] = gql;\nexports.default = gql;\n\n},{\"tslib\":\"gBS4y\",\"graphql\":\"crWS5\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gBS4y\":[function(require,module,exports) {\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"__extends\", ()=>__extends);\nparcelHelpers.export(exports, \"__assign\", ()=>__assign);\nparcelHelpers.export(exports, \"__rest\", ()=>__rest);\nparcelHelpers.export(exports, \"__decorate\", ()=>__decorate);\nparcelHelpers.export(exports, \"__param\", ()=>__param);\nparcelHelpers.export(exports, \"__metadata\", ()=>__metadata);\nparcelHelpers.export(exports, \"__awaiter\", ()=>__awaiter);\nparcelHelpers.export(exports, \"__generator\", ()=>__generator);\nparcelHelpers.export(exports, \"__createBinding\", ()=>__createBinding);\nparcelHelpers.export(exports, \"__exportStar\", ()=>__exportStar);\nparcelHelpers.export(exports, \"__values\", ()=>__values);\nparcelHelpers.export(exports, \"__read\", ()=>__read);\n/** @deprecated */ parcelHelpers.export(exports, \"__spread\", ()=>__spread);\n/** @deprecated */ parcelHelpers.export(exports, \"__spreadArrays\", ()=>__spreadArrays);\nparcelHelpers.export(exports, \"__spreadArray\", ()=>__spreadArray);\nparcelHelpers.export(exports, \"__await\", ()=>__await);\nparcelHelpers.export(exports, \"__asyncGenerator\", ()=>__asyncGenerator);\nparcelHelpers.export(exports, \"__asyncDelegator\", ()=>__asyncDelegator);\nparcelHelpers.export(exports, \"__asyncValues\", ()=>__asyncValues);\nparcelHelpers.export(exports, \"__makeTemplateObject\", ()=>__makeTemplateObject);\nparcelHelpers.export(exports, \"__importStar\", ()=>__importStar);\nparcelHelpers.export(exports, \"__importDefault\", ()=>__importDefault);\nparcelHelpers.export(exports, \"__classPrivateFieldGet\", ()=>__classPrivateFieldGet);\nparcelHelpers.export(exports, \"__classPrivateFieldSet\", ()=>__classPrivateFieldSet);\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n};\nfunction __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction __param(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(_)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar __createBinding = Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction __exportStar(m, o) {\n for(var p in m)if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nfunction __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction __spread() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat(__read(arguments[i]));\n return ar;\n}\nfunction __spreadArrays() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction __spreadArray(to, from) {\n for(var i = 0, il = from.length, j = to.length; i < il; i++, j++)to[j] = from[i];\n return to;\n}\nfunction __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nfunction __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function verb(n) {\n if (g[n]) i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: n === \"return\"\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nvar __setModuleDefault = Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n};\nfunction __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n }\n __setModuleDefault(result, mod);\n return result;\n}\nfunction __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3mize\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloProvider\", ()=>(0, _indexJs.ApolloProvider));\nparcelHelpers.export(exports, \"ApolloConsumer\", ()=>(0, _indexJs.ApolloConsumer));\nparcelHelpers.export(exports, \"getApolloContext\", ()=>(0, _indexJs.getApolloContext));\nparcelHelpers.export(exports, \"resetApolloContext\", ()=>(0, _indexJs.resetApolloContext));\nparcelHelpers.export(exports, \"DocumentType\", ()=>(0, _indexJs2.DocumentType));\nparcelHelpers.export(exports, \"operationName\", ()=>(0, _indexJs2.operationName));\nparcelHelpers.export(exports, \"parser\", ()=>(0, _indexJs2.parser));\nvar _indexJs = require(\"./context/index.js\");\nvar _indexJs1 = require(\"./hooks/index.js\");\nparcelHelpers.exportAll(_indexJs1, exports);\nvar _indexJs2 = require(\"./parser/index.js\");\nvar _typesJs = require(\"./types/types.js\");\nparcelHelpers.exportAll(_typesJs, exports);\n\n},{\"./context/index.js\":\"hwMAq\",\"./hooks/index.js\":\"8oYkn\",\"./parser/index.js\":\"fn08x\",\"./types/types.js\":\"eHNp0\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hwMAq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _apolloConsumerJs = require(\"./ApolloConsumer.js\");\nparcelHelpers.exportAll(_apolloConsumerJs, exports);\nvar _apolloContextJs = require(\"./ApolloContext.js\");\nparcelHelpers.exportAll(_apolloContextJs, exports);\nvar _apolloProviderJs = require(\"./ApolloProvider.js\");\nparcelHelpers.exportAll(_apolloProviderJs, exports);\n\n},{\"./ApolloConsumer.js\":\"h1UDO\",\"./ApolloContext.js\":\"fGSCO\",\"./ApolloProvider.js\":\"2zOPA\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"h1UDO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloConsumer\", ()=>ApolloConsumer);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _tsInvariant = require(\"ts-invariant\");\nvar _apolloContextJs = require(\"./ApolloContext.js\");\nvar ApolloConsumer = function(props) {\n var ApolloContext = (0, _apolloContextJs.getApolloContext)();\n return (0, _reactDefault.default).createElement(ApolloContext.Consumer, null, function(context) {\n (0, _tsInvariant.invariant)(context && context.client, 27);\n return props.children(context.client);\n });\n};\n\n},{\"react\":\"6uln9\",\"ts-invariant\":\"2pI3w\",\"./ApolloContext.js\":\"fGSCO\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fGSCO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"getApolloContext\", ()=>getApolloContext);\nparcelHelpers.export(exports, \"resetApolloContext\", ()=>getApolloContext);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _indexJs = require(\"../../utilities/index.js\");\nvar cache = new ((0, _indexJs.canUseWeakMap) ? WeakMap : Map)();\nfunction getApolloContext() {\n var context = cache.get((0, _reactDefault.default).createContext);\n if (!context) {\n context = (0, _reactDefault.default).createContext({});\n context.displayName = \"ApolloContext\";\n cache.set((0, _reactDefault.default).createContext, context);\n }\n return context;\n}\n\n},{\"react\":\"6uln9\",\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2zOPA\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ApolloProvider\", ()=>ApolloProvider);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _tsInvariant = require(\"ts-invariant\");\nvar _apolloContextJs = require(\"./ApolloContext.js\");\nvar ApolloProvider = function(_a) {\n var client = _a.client, children = _a.children;\n var ApolloContext = (0, _apolloContextJs.getApolloContext)();\n return (0, _reactDefault.default).createElement(ApolloContext.Consumer, null, function(context) {\n if (context === void 0) context = {};\n if (client && context.client !== client) context = Object.assign({}, context, {\n client: client\n });\n (0, _tsInvariant.invariant)(context.client, 28);\n return (0, _reactDefault.default).createElement(ApolloContext.Provider, {\n value: context\n }, children);\n });\n};\n\n},{\"react\":\"6uln9\",\"ts-invariant\":\"2pI3w\",\"./ApolloContext.js\":\"fGSCO\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8oYkn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _useApolloClientJs = require(\"./useApolloClient.js\");\nparcelHelpers.exportAll(_useApolloClientJs, exports);\nvar _useLazyQueryJs = require(\"./useLazyQuery.js\");\nparcelHelpers.exportAll(_useLazyQueryJs, exports);\nvar _useMutationJs = require(\"./useMutation.js\");\nparcelHelpers.exportAll(_useMutationJs, exports);\nvar _useQueryJs = require(\"./useQuery.js\");\nparcelHelpers.exportAll(_useQueryJs, exports);\nvar _useSubscriptionJs = require(\"./useSubscription.js\");\nparcelHelpers.exportAll(_useSubscriptionJs, exports);\nvar _useReactiveVarJs = require(\"./useReactiveVar.js\");\nparcelHelpers.exportAll(_useReactiveVarJs, exports);\n\n},{\"./useApolloClient.js\":\"bsPvH\",\"./useLazyQuery.js\":\"13o2Z\",\"./useMutation.js\":\"7062L\",\"./useQuery.js\":\"bKifF\",\"./useSubscription.js\":\"gy0Ll\",\"./useReactiveVar.js\":\"iEInr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bsPvH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useApolloClient\", ()=>useApolloClient);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../context/index.js\");\nfunction useApolloClient() {\n var client = (0, _reactDefault.default).useContext((0, _indexJs.getApolloContext)()).client;\n (0, _tsInvariant.invariant)(client, 33);\n return client;\n}\n\n},{\"react\":\"6uln9\",\"ts-invariant\":\"2pI3w\",\"../context/index.js\":\"hwMAq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"13o2Z\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useLazyQuery\", ()=>useLazyQuery);\nvar _useBaseQueryJs = require(\"./utils/useBaseQuery.js\");\nfunction useLazyQuery(query, options) {\n return (0, _useBaseQueryJs.useBaseQuery)(query, options, true);\n}\n\n},{\"./utils/useBaseQuery.js\":\"jUGRZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jUGRZ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useBaseQuery\", ()=>useBaseQuery);\nvar _tslib = require(\"tslib\");\nvar _react = require(\"react\");\nvar _indexJs = require(\"../../data/index.js\");\nvar _useDeepMemoJs = require(\"./useDeepMemo.js\");\nvar _indexJs1 = require(\"../../context/index.js\");\nfunction useBaseQuery(query, options, lazy) {\n if (lazy === void 0) lazy = false;\n var context = (0, _react.useContext)((0, _indexJs1.getApolloContext)());\n var _a = (0, _react.useReducer)(function(x) {\n return x + 1;\n }, 0), tick = _a[0], forceUpdate = _a[1];\n var updatedOptions = options ? (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n query: query\n }) : {\n query: query\n };\n var queryDataRef = (0, _react.useRef)();\n var queryData = queryDataRef.current || (queryDataRef.current = new (0, _indexJs.QueryData)({\n options: updatedOptions,\n context: context,\n onNewData: function() {\n if (!queryData.ssrInitiated()) Promise.resolve().then(function() {\n return queryDataRef.current && forceUpdate();\n });\n else forceUpdate();\n }\n }));\n queryData.setOptions(updatedOptions);\n queryData.context = context;\n var memo = {\n options: (0, _tslib.__assign)((0, _tslib.__assign)({}, updatedOptions), {\n onError: undefined,\n onCompleted: undefined\n }),\n context: context,\n tick: tick\n };\n var result = (0, _useDeepMemoJs.useDeepMemo)(function() {\n return lazy ? queryData.executeLazy() : queryData.execute();\n }, memo);\n var queryResult = lazy ? result[1] : result;\n (0, _react.useEffect)(function() {\n return function() {\n return queryData.cleanup();\n };\n }, []);\n (0, _react.useEffect)(function() {\n return queryData.afterExecute({\n lazy: lazy\n });\n }, [\n queryResult.loading,\n queryResult.networkStatus,\n queryResult.error,\n queryResult.data\n ]);\n return result;\n}\n\n},{\"tslib\":\"5RODp\",\"react\":\"6uln9\",\"../../data/index.js\":\"2B2Ki\",\"./useDeepMemo.js\":\"3rrnv\",\"../../context/index.js\":\"hwMAq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2B2Ki\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SubscriptionData\", ()=>(0, _subscriptionDataJs.SubscriptionData));\nparcelHelpers.export(exports, \"OperationData\", ()=>(0, _operationDataJs.OperationData));\nparcelHelpers.export(exports, \"MutationData\", ()=>(0, _mutationDataJs.MutationData));\nparcelHelpers.export(exports, \"QueryData\", ()=>(0, _queryDataJs.QueryData));\nvar _subscriptionDataJs = require(\"./SubscriptionData.js\");\nvar _operationDataJs = require(\"./OperationData.js\");\nvar _mutationDataJs = require(\"./MutationData.js\");\nvar _queryDataJs = require(\"./QueryData.js\");\n\n},{\"./SubscriptionData.js\":\"dXinH\",\"./OperationData.js\":\"ju51z\",\"./MutationData.js\":\"lFSat\",\"./QueryData.js\":\"f7VRB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dXinH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SubscriptionData\", ()=>SubscriptionData);\nvar _tslib = require(\"tslib\");\nvar _equality = require(\"@wry/equality\");\nvar _operationDataJs = require(\"./OperationData.js\");\nvar SubscriptionData = function(_super) {\n (0, _tslib.__extends)(SubscriptionData, _super);\n function SubscriptionData(_a) {\n var options = _a.options, context = _a.context, setResult = _a.setResult;\n var _this = _super.call(this, options, context) || this;\n _this.currentObservable = {};\n _this.setResult = setResult;\n _this.initialize(options);\n return _this;\n }\n SubscriptionData.prototype.execute = function(result) {\n if (this.getOptions().skip === true) {\n this.cleanup();\n return {\n loading: false,\n error: undefined,\n data: undefined,\n variables: this.getOptions().variables\n };\n }\n var currentResult = result;\n if (this.refreshClient().isNew) currentResult = this.getLoadingResult();\n var shouldResubscribe = this.getOptions().shouldResubscribe;\n if (typeof shouldResubscribe === \"function\") shouldResubscribe = !!shouldResubscribe(this.getOptions());\n if (shouldResubscribe !== false && this.previousOptions && Object.keys(this.previousOptions).length > 0 && (this.previousOptions.subscription !== this.getOptions().subscription || !(0, _equality.equal)(this.previousOptions.variables, this.getOptions().variables) || this.previousOptions.skip !== this.getOptions().skip)) {\n this.cleanup();\n currentResult = this.getLoadingResult();\n }\n this.initialize(this.getOptions());\n this.startSubscription();\n this.previousOptions = this.getOptions();\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, currentResult), {\n variables: this.getOptions().variables\n });\n };\n SubscriptionData.prototype.afterExecute = function() {\n this.isMounted = true;\n };\n SubscriptionData.prototype.cleanup = function() {\n this.endSubscription();\n delete this.currentObservable.query;\n };\n SubscriptionData.prototype.initialize = function(options) {\n if (this.currentObservable.query || this.getOptions().skip === true) return;\n this.currentObservable.query = this.refreshClient().client.subscribe({\n query: options.subscription,\n variables: options.variables,\n fetchPolicy: options.fetchPolicy,\n context: options.context\n });\n };\n SubscriptionData.prototype.startSubscription = function() {\n if (this.currentObservable.subscription) return;\n this.currentObservable.subscription = this.currentObservable.query.subscribe({\n next: this.updateCurrentData.bind(this),\n error: this.updateError.bind(this),\n complete: this.completeSubscription.bind(this)\n });\n };\n SubscriptionData.prototype.getLoadingResult = function() {\n return {\n loading: true,\n error: undefined,\n data: undefined\n };\n };\n SubscriptionData.prototype.updateResult = function(result) {\n if (this.isMounted) this.setResult(result);\n };\n SubscriptionData.prototype.updateCurrentData = function(result) {\n var onSubscriptionData = this.getOptions().onSubscriptionData;\n this.updateResult({\n data: result.data,\n loading: false,\n error: undefined\n });\n if (onSubscriptionData) onSubscriptionData({\n client: this.refreshClient().client,\n subscriptionData: result\n });\n };\n SubscriptionData.prototype.updateError = function(error) {\n this.updateResult({\n error: error,\n loading: false\n });\n };\n SubscriptionData.prototype.completeSubscription = function() {\n var _this = this;\n Promise.resolve().then(function() {\n var onSubscriptionComplete = _this.getOptions().onSubscriptionComplete;\n if (onSubscriptionComplete) onSubscriptionComplete();\n _this.endSubscription();\n });\n };\n SubscriptionData.prototype.endSubscription = function() {\n if (this.currentObservable.subscription) {\n this.currentObservable.subscription.unsubscribe();\n delete this.currentObservable.subscription;\n }\n };\n return SubscriptionData;\n}((0, _operationDataJs.OperationData));\n\n},{\"tslib\":\"5RODp\",\"@wry/equality\":\"egZvf\",\"./OperationData.js\":\"ju51z\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ju51z\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"OperationData\", ()=>OperationData);\nvar _equality = require(\"@wry/equality\");\nvar _tsInvariant = require(\"ts-invariant\");\nvar _indexJs = require(\"../parser/index.js\");\nvar OperationData = function() {\n function OperationData(options, context) {\n this.isMounted = false;\n this.previousOptions = {};\n this.context = {};\n this.options = {};\n this.options = options || {};\n this.context = context || {};\n }\n OperationData.prototype.getOptions = function() {\n return this.options;\n };\n OperationData.prototype.setOptions = function(newOptions, storePrevious) {\n if (storePrevious === void 0) storePrevious = false;\n if (storePrevious && !(0, _equality.equal)(this.options, newOptions)) this.previousOptions = this.options;\n this.options = newOptions;\n };\n OperationData.prototype.unmount = function() {\n this.isMounted = false;\n };\n OperationData.prototype.refreshClient = function() {\n var client = this.options && this.options.client || this.context && this.context.client;\n (0, _tsInvariant.invariant)(!!client, 29);\n var isNew = false;\n if (client !== this.client) {\n isNew = true;\n this.client = client;\n this.cleanup();\n }\n return {\n client: this.client,\n isNew: isNew\n };\n };\n OperationData.prototype.verifyDocumentType = function(document, type) {\n var operation = (0, _indexJs.parser)(document);\n var requiredOperationName = (0, _indexJs.operationName)(type);\n var usedOperationName = (0, _indexJs.operationName)(operation.type);\n (0, _tsInvariant.invariant)(operation.type === type, 30);\n };\n return OperationData;\n}();\n\n},{\"@wry/equality\":\"egZvf\",\"ts-invariant\":\"2pI3w\",\"../parser/index.js\":\"fn08x\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fn08x\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DocumentType\", ()=>DocumentType);\nparcelHelpers.export(exports, \"operationName\", ()=>operationName);\nparcelHelpers.export(exports, \"parser\", ()=>parser);\nvar _tsInvariant = require(\"ts-invariant\");\nvar DocumentType;\n(function(DocumentType) {\n DocumentType[DocumentType[\"Query\"] = 0] = \"Query\";\n DocumentType[DocumentType[\"Mutation\"] = 1] = \"Mutation\";\n DocumentType[DocumentType[\"Subscription\"] = 2] = \"Subscription\";\n})(DocumentType || (DocumentType = {}));\nvar cache = new Map();\nfunction operationName(type) {\n var name;\n switch(type){\n case DocumentType.Query:\n name = \"Query\";\n break;\n case DocumentType.Mutation:\n name = \"Mutation\";\n break;\n case DocumentType.Subscription:\n name = \"Subscription\";\n break;\n }\n return name;\n}\nfunction parser(document) {\n var cached = cache.get(document);\n if (cached) return cached;\n var variables, type, name;\n (0, _tsInvariant.invariant)(!!document && !!document.kind, 34);\n var fragments = document.definitions.filter(function(x) {\n return x.kind === \"FragmentDefinition\";\n });\n var queries = document.definitions.filter(function(x) {\n return x.kind === \"OperationDefinition\" && x.operation === \"query\";\n });\n var mutations = document.definitions.filter(function(x) {\n return x.kind === \"OperationDefinition\" && x.operation === \"mutation\";\n });\n var subscriptions = document.definitions.filter(function(x) {\n return x.kind === \"OperationDefinition\" && x.operation === \"subscription\";\n });\n (0, _tsInvariant.invariant)(!fragments.length || queries.length || mutations.length || subscriptions.length, 35);\n (0, _tsInvariant.invariant)(queries.length + mutations.length + subscriptions.length <= 1, 36);\n type = queries.length ? DocumentType.Query : DocumentType.Mutation;\n if (!queries.length && !mutations.length) type = DocumentType.Subscription;\n var definitions = queries.length ? queries : mutations.length ? mutations : subscriptions;\n (0, _tsInvariant.invariant)(definitions.length === 1, 37);\n var definition = definitions[0];\n variables = definition.variableDefinitions || [];\n if (definition.name && definition.name.kind === \"Name\") name = definition.name.value;\n else name = \"data\";\n var payload = {\n name: name,\n type: type,\n variables: variables\n };\n cache.set(document, payload);\n return payload;\n}\n\n},{\"ts-invariant\":\"2pI3w\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lFSat\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"MutationData\", ()=>MutationData);\nvar _tslib = require(\"tslib\");\nvar _equality = require(\"@wry/equality\");\nvar _indexJs = require(\"../parser/index.js\");\nvar _indexJs1 = require(\"../../errors/index.js\");\nvar _operationDataJs = require(\"./OperationData.js\");\nvar _indexJs2 = require(\"../../core/index.js\");\nvar MutationData = function(_super) {\n (0, _tslib.__extends)(MutationData, _super);\n function MutationData(_a) {\n var options = _a.options, context = _a.context, result = _a.result, setResult = _a.setResult;\n var _this = _super.call(this, options, context) || this;\n _this.runMutation = function(mutationFunctionOptions) {\n if (mutationFunctionOptions === void 0) mutationFunctionOptions = {};\n _this.onMutationStart();\n var mutationId = _this.generateNewMutationId();\n return _this.mutate(mutationFunctionOptions).then(function(response) {\n _this.onMutationCompleted(response, mutationId);\n return response;\n }).catch(function(error) {\n _this.onMutationError(error, mutationId);\n if (!_this.getOptions().onError) throw error;\n });\n };\n _this.verifyDocumentType(options.mutation, (0, _indexJs.DocumentType).Mutation);\n _this.result = result;\n _this.setResult = setResult;\n _this.mostRecentMutationId = 0;\n return _this;\n }\n MutationData.prototype.execute = function(result) {\n this.isMounted = true;\n this.verifyDocumentType(this.getOptions().mutation, (0, _indexJs.DocumentType).Mutation);\n return [\n this.runMutation,\n (0, _tslib.__assign)((0, _tslib.__assign)({}, result), {\n client: this.refreshClient().client\n })\n ];\n };\n MutationData.prototype.afterExecute = function() {\n this.isMounted = true;\n return this.unmount.bind(this);\n };\n MutationData.prototype.cleanup = function() {};\n MutationData.prototype.mutate = function(options) {\n return this.refreshClient().client.mutate((0, _indexJs2.mergeOptions)(this.getOptions(), options));\n };\n MutationData.prototype.onMutationStart = function() {\n if (!this.result.loading && !this.getOptions().ignoreResults) this.updateResult({\n loading: true,\n error: undefined,\n data: undefined,\n called: true\n });\n };\n MutationData.prototype.onMutationCompleted = function(response, mutationId) {\n var _a = this.getOptions(), onCompleted = _a.onCompleted, ignoreResults = _a.ignoreResults;\n var data = response.data, errors = response.errors;\n var error = errors && errors.length > 0 ? new (0, _indexJs1.ApolloError)({\n graphQLErrors: errors\n }) : undefined;\n var callOncomplete = function() {\n return onCompleted ? onCompleted(data) : null;\n };\n if (this.isMostRecentMutation(mutationId) && !ignoreResults) this.updateResult({\n called: true,\n loading: false,\n data: data,\n error: error\n });\n callOncomplete();\n };\n MutationData.prototype.onMutationError = function(error, mutationId) {\n var onError = this.getOptions().onError;\n if (this.isMostRecentMutation(mutationId)) this.updateResult({\n loading: false,\n error: error,\n data: undefined,\n called: true\n });\n if (onError) onError(error);\n };\n MutationData.prototype.generateNewMutationId = function() {\n return ++this.mostRecentMutationId;\n };\n MutationData.prototype.isMostRecentMutation = function(mutationId) {\n return this.mostRecentMutationId === mutationId;\n };\n MutationData.prototype.updateResult = function(result) {\n if (this.isMounted && (!this.previousResult || !(0, _equality.equal)(this.previousResult, result))) {\n this.setResult(result);\n this.previousResult = result;\n }\n };\n return MutationData;\n}((0, _operationDataJs.OperationData));\n\n},{\"tslib\":\"5RODp\",\"@wry/equality\":\"egZvf\",\"../parser/index.js\":\"fn08x\",\"../../errors/index.js\":\"73MUX\",\"./OperationData.js\":\"ju51z\",\"../../core/index.js\":\"4NtVX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"f7VRB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"QueryData\", ()=>QueryData);\nvar _tslib = require(\"tslib\");\nvar _equality = require(\"@wry/equality\");\nvar _indexJs = require(\"../../errors/index.js\");\nvar _indexJs1 = require(\"../../core/index.js\");\nvar _indexJs2 = require(\"../parser/index.js\");\nvar _operationDataJs = require(\"./OperationData.js\");\nvar QueryData = function(_super) {\n (0, _tslib.__extends)(QueryData, _super);\n function QueryData(_a) {\n var options = _a.options, context = _a.context, onNewData = _a.onNewData;\n var _this = _super.call(this, options, context) || this;\n _this.runLazy = false;\n _this.previous = Object.create(null);\n _this.runLazyQuery = function(options) {\n _this.cleanup();\n _this.runLazy = true;\n _this.lazyOptions = options;\n _this.onNewData();\n };\n _this.getQueryResult = function() {\n var result = _this.observableQueryFields();\n var options = _this.getOptions();\n if (options.skip) result = (0, _tslib.__assign)((0, _tslib.__assign)({}, result), {\n data: undefined,\n error: undefined,\n loading: false,\n networkStatus: (0, _indexJs1.NetworkStatus).ready,\n called: true\n });\n else if (_this.currentObservable) {\n var currentResult = _this.currentObservable.getCurrentResult();\n var data = currentResult.data, loading = currentResult.loading, partial = currentResult.partial, networkStatus = currentResult.networkStatus, errors = currentResult.errors;\n var error = currentResult.error;\n if (errors && errors.length > 0) error = new (0, _indexJs.ApolloError)({\n graphQLErrors: errors\n });\n result = (0, _tslib.__assign)((0, _tslib.__assign)({}, result), {\n data: data,\n loading: loading,\n networkStatus: networkStatus,\n error: error,\n called: true\n });\n if (loading) ;\n else if (error) Object.assign(result, {\n data: (_this.currentObservable.getLastResult() || {}).data\n });\n else {\n var fetchPolicy = _this.currentObservable.options.fetchPolicy;\n var partialRefetch = options.partialRefetch;\n if (partialRefetch && partial && (!data || Object.keys(data).length === 0) && fetchPolicy !== \"cache-only\") {\n Object.assign(result, {\n loading: true,\n networkStatus: (0, _indexJs1.NetworkStatus).loading\n });\n result.refetch();\n return result;\n }\n }\n }\n result.client = _this.client;\n _this.setOptions(options, true);\n var previousResult = _this.previous.result;\n _this.previous.loading = previousResult && previousResult.loading || false;\n result.previousData = previousResult && (previousResult.data || previousResult.previousData);\n _this.previous.result = result;\n _this.currentObservable && _this.currentObservable.resetQueryStoreErrors();\n return result;\n };\n _this.obsRefetch = function(variables) {\n var _a;\n return (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.refetch(variables);\n };\n _this.obsFetchMore = function(fetchMoreOptions) {\n return _this.currentObservable.fetchMore(fetchMoreOptions);\n };\n _this.obsUpdateQuery = function(mapFn) {\n return _this.currentObservable.updateQuery(mapFn);\n };\n _this.obsStartPolling = function(pollInterval) {\n var _a;\n (_a = _this.currentObservable) === null || _a === void 0 || _a.startPolling(pollInterval);\n };\n _this.obsStopPolling = function() {\n var _a;\n (_a = _this.currentObservable) === null || _a === void 0 || _a.stopPolling();\n };\n _this.obsSubscribeToMore = function(options) {\n return _this.currentObservable.subscribeToMore(options);\n };\n _this.onNewData = onNewData;\n return _this;\n }\n QueryData.prototype.execute = function() {\n this.refreshClient();\n var _a = this.getOptions(), skip = _a.skip, query = _a.query;\n if (skip || query !== this.previous.query) {\n this.removeQuerySubscription();\n this.removeObservable(!skip);\n this.previous.query = query;\n }\n this.updateObservableQuery();\n if (this.isMounted) this.startQuerySubscription();\n return this.getExecuteSsrResult() || this.getExecuteResult();\n };\n QueryData.prototype.executeLazy = function() {\n return !this.runLazy ? [\n this.runLazyQuery,\n {\n loading: false,\n networkStatus: (0, _indexJs1.NetworkStatus).ready,\n called: false,\n data: undefined\n }\n ] : [\n this.runLazyQuery,\n this.execute()\n ];\n };\n QueryData.prototype.fetchData = function() {\n var _this = this;\n var options = this.getOptions();\n if (options.skip || options.ssr === false) return false;\n return new Promise(function(resolve) {\n return _this.startQuerySubscription(resolve);\n });\n };\n QueryData.prototype.afterExecute = function(_a) {\n var _b = (_a === void 0 ? {} : _a).lazy, lazy = _b === void 0 ? false : _b;\n this.isMounted = true;\n if (!lazy || this.runLazy) this.handleErrorOrCompleted();\n this.previousOptions = this.getOptions();\n return this.unmount.bind(this);\n };\n QueryData.prototype.cleanup = function() {\n this.removeQuerySubscription();\n this.removeObservable(true);\n delete this.previous.result;\n };\n QueryData.prototype.getOptions = function() {\n var options = _super.prototype.getOptions.call(this);\n if (this.lazyOptions) {\n options.variables = (0, _tslib.__assign)((0, _tslib.__assign)({}, options.variables), this.lazyOptions.variables);\n options.context = (0, _tslib.__assign)((0, _tslib.__assign)({}, options.context), this.lazyOptions.context);\n }\n if (this.runLazy) delete options.skip;\n return options;\n };\n QueryData.prototype.ssrInitiated = function() {\n return this.context && this.context.renderPromises;\n };\n QueryData.prototype.getExecuteResult = function() {\n var result = this.getQueryResult();\n this.startQuerySubscription();\n return result;\n };\n QueryData.prototype.getExecuteSsrResult = function() {\n var _a = this.getOptions(), ssr = _a.ssr, skip = _a.skip;\n var ssrDisabled = ssr === false;\n var fetchDisabled = this.refreshClient().client.disableNetworkFetches;\n var ssrLoading = (0, _tslib.__assign)({\n loading: true,\n networkStatus: (0, _indexJs1.NetworkStatus).loading,\n called: true,\n data: undefined,\n stale: false,\n client: this.client\n }, this.observableQueryFields());\n if (ssrDisabled && (this.ssrInitiated() || fetchDisabled)) {\n this.previous.result = ssrLoading;\n return ssrLoading;\n }\n if (this.ssrInitiated()) {\n var result = this.getQueryResult() || ssrLoading;\n if (result.loading && !skip) this.context.renderPromises.addQueryPromise(this, function() {\n return null;\n });\n return result;\n }\n };\n QueryData.prototype.prepareObservableQueryOptions = function() {\n var options = this.getOptions();\n this.verifyDocumentType(options.query, (0, _indexJs2.DocumentType).Query);\n var displayName = options.displayName || \"Query\";\n if (this.ssrInitiated() && (options.fetchPolicy === \"network-only\" || options.fetchPolicy === \"cache-and-network\")) options.fetchPolicy = \"cache-first\";\n return (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n displayName: displayName,\n context: options.context\n });\n };\n QueryData.prototype.initializeObservableQuery = function() {\n if (this.ssrInitiated()) this.currentObservable = this.context.renderPromises.getSSRObservable(this.getOptions());\n if (!this.currentObservable) {\n var observableQueryOptions = this.prepareObservableQueryOptions();\n this.previous.observableQueryOptions = (0, _tslib.__assign)((0, _tslib.__assign)({}, observableQueryOptions), {\n children: null\n });\n this.currentObservable = this.refreshClient().client.watchQuery((0, _tslib.__assign)({}, observableQueryOptions));\n if (this.ssrInitiated()) this.context.renderPromises.registerSSRObservable(this.currentObservable, observableQueryOptions);\n }\n };\n QueryData.prototype.updateObservableQuery = function() {\n if (!this.currentObservable) {\n this.initializeObservableQuery();\n return;\n }\n if (this.getOptions().skip) return;\n var newObservableQueryOptions = (0, _tslib.__assign)((0, _tslib.__assign)({}, this.prepareObservableQueryOptions()), {\n children: null\n });\n if (!(0, _equality.equal)(newObservableQueryOptions, this.previous.observableQueryOptions)) {\n this.previous.observableQueryOptions = newObservableQueryOptions;\n this.currentObservable.setOptions(newObservableQueryOptions).catch(function() {});\n }\n };\n QueryData.prototype.startQuerySubscription = function(onNewData) {\n var _this = this;\n if (onNewData === void 0) onNewData = this.onNewData;\n if (this.currentSubscription || this.getOptions().skip) return;\n this.currentSubscription = this.currentObservable.subscribe({\n next: function(_a) {\n var loading = _a.loading, networkStatus = _a.networkStatus, data = _a.data;\n var previousResult = _this.previous.result;\n if (previousResult && previousResult.loading === loading && previousResult.networkStatus === networkStatus && (0, _equality.equal)(previousResult.data, data)) return;\n onNewData();\n },\n error: function(error) {\n _this.resubscribeToQuery();\n if (!error.hasOwnProperty(\"graphQLErrors\")) throw error;\n var previousResult = _this.previous.result;\n if (previousResult && previousResult.loading || !(0, _equality.equal)(error, _this.previous.error)) {\n _this.previous.error = error;\n onNewData();\n }\n }\n });\n };\n QueryData.prototype.resubscribeToQuery = function() {\n this.removeQuerySubscription();\n var currentObservable = this.currentObservable;\n if (currentObservable) {\n var lastError = currentObservable.getLastError();\n var lastResult = currentObservable.getLastResult();\n currentObservable.resetLastResults();\n this.startQuerySubscription();\n Object.assign(currentObservable, {\n lastError: lastError,\n lastResult: lastResult\n });\n }\n };\n QueryData.prototype.handleErrorOrCompleted = function() {\n if (!this.currentObservable || !this.previous.result) return;\n var _a = this.previous.result, data = _a.data, loading = _a.loading, error = _a.error;\n if (!loading) {\n var _b = this.getOptions(), query = _b.query, variables = _b.variables, onCompleted = _b.onCompleted, onError = _b.onError, skip = _b.skip;\n if (this.previousOptions && !this.previous.loading && (0, _equality.equal)(this.previousOptions.query, query) && (0, _equality.equal)(this.previousOptions.variables, variables)) return;\n if (onCompleted && !error && !skip) onCompleted(data);\n else if (onError && error) onError(error);\n }\n };\n QueryData.prototype.removeQuerySubscription = function() {\n if (this.currentSubscription) {\n this.currentSubscription.unsubscribe();\n delete this.currentSubscription;\n }\n };\n QueryData.prototype.removeObservable = function(andDelete) {\n if (this.currentObservable) {\n this.currentObservable[\"tearDownQuery\"]();\n if (andDelete) delete this.currentObservable;\n }\n };\n QueryData.prototype.observableQueryFields = function() {\n var _a;\n return {\n variables: (_a = this.currentObservable) === null || _a === void 0 ? void 0 : _a.variables,\n refetch: this.obsRefetch,\n fetchMore: this.obsFetchMore,\n updateQuery: this.obsUpdateQuery,\n startPolling: this.obsStartPolling,\n stopPolling: this.obsStopPolling,\n subscribeToMore: this.obsSubscribeToMore\n };\n };\n return QueryData;\n}((0, _operationDataJs.OperationData));\n\n},{\"tslib\":\"5RODp\",\"@wry/equality\":\"egZvf\",\"../../errors/index.js\":\"73MUX\",\"../../core/index.js\":\"4NtVX\",\"../parser/index.js\":\"fn08x\",\"./OperationData.js\":\"ju51z\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3rrnv\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useDeepMemo\", ()=>useDeepMemo);\nvar _react = require(\"react\");\nvar _equality = require(\"@wry/equality\");\nfunction useDeepMemo(memoFn, key) {\n var ref = (0, _react.useRef)();\n if (!ref.current || !(0, _equality.equal)(key, ref.current.key)) ref.current = {\n key: key,\n value: memoFn()\n };\n return ref.current.value;\n}\n\n},{\"react\":\"6uln9\",\"@wry/equality\":\"egZvf\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7062L\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useMutation\", ()=>useMutation);\nvar _tslib = require(\"tslib\");\nvar _react = require(\"react\");\nvar _indexJs = require(\"../data/index.js\");\nvar _indexJs1 = require(\"../context/index.js\");\nfunction useMutation(mutation, options) {\n var context = (0, _react.useContext)((0, _indexJs1.getApolloContext)());\n var _a = (0, _react.useState)({\n called: false,\n loading: false\n }), result = _a[0], setResult = _a[1];\n var updatedOptions = options ? (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n mutation: mutation\n }) : {\n mutation: mutation\n };\n var mutationDataRef = (0, _react.useRef)();\n function getMutationDataRef() {\n if (!mutationDataRef.current) mutationDataRef.current = new (0, _indexJs.MutationData)({\n options: updatedOptions,\n context: context,\n result: result,\n setResult: setResult\n });\n return mutationDataRef.current;\n }\n var mutationData = getMutationDataRef();\n mutationData.setOptions(updatedOptions);\n mutationData.context = context;\n (0, _react.useEffect)(function() {\n return mutationData.afterExecute();\n });\n return mutationData.execute(result);\n}\n\n},{\"tslib\":\"5RODp\",\"react\":\"6uln9\",\"../data/index.js\":\"2B2Ki\",\"../context/index.js\":\"hwMAq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bKifF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useQuery\", ()=>useQuery);\nvar _useBaseQueryJs = require(\"./utils/useBaseQuery.js\");\nfunction useQuery(query, options) {\n return (0, _useBaseQueryJs.useBaseQuery)(query, options, false);\n}\n\n},{\"./utils/useBaseQuery.js\":\"jUGRZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gy0Ll\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useSubscription\", ()=>useSubscription);\nvar _tslib = require(\"tslib\");\nvar _react = require(\"react\");\nvar _indexJs = require(\"../data/index.js\");\nvar _indexJs1 = require(\"../context/index.js\");\nfunction useSubscription(subscription, options) {\n var context = (0, _react.useContext)((0, _indexJs1.getApolloContext)());\n var updatedOptions = options ? (0, _tslib.__assign)((0, _tslib.__assign)({}, options), {\n subscription: subscription\n }) : {\n subscription: subscription\n };\n var _a = (0, _react.useState)({\n loading: !updatedOptions.skip,\n error: undefined,\n data: undefined\n }), result = _a[0], setResult = _a[1];\n var subscriptionDataRef = (0, _react.useRef)();\n function getSubscriptionDataRef() {\n if (!subscriptionDataRef.current) subscriptionDataRef.current = new (0, _indexJs.SubscriptionData)({\n options: updatedOptions,\n context: context,\n setResult: setResult\n });\n return subscriptionDataRef.current;\n }\n var subscriptionData = getSubscriptionDataRef();\n subscriptionData.setOptions(updatedOptions, true);\n subscriptionData.context = context;\n (0, _react.useEffect)(function() {\n return subscriptionData.afterExecute();\n });\n (0, _react.useEffect)(function() {\n return subscriptionData.cleanup.bind(subscriptionData);\n }, []);\n return subscriptionData.execute(result);\n}\n\n},{\"tslib\":\"5RODp\",\"react\":\"6uln9\",\"../data/index.js\":\"2B2Ki\",\"../context/index.js\":\"hwMAq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iEInr\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useReactiveVar\", ()=>useReactiveVar);\nvar _react = require(\"react\");\nfunction useReactiveVar(rv) {\n var value = rv();\n var _a = (0, _react.useState)(value), setValue = _a[1];\n (0, _react.useEffect)(function() {\n return rv.onNextChange(setValue);\n }, [\n value\n ]);\n (0, _react.useEffect)(function() {\n setValue(rv());\n }, []);\n return value;\n}\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eHNp0\":[function(require,module,exports) {\n\n},{}],\"eiZnp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createUploadLink\", ()=>(0, _createUploadLinkJsDefault.default));\nparcelHelpers.export(exports, \"formDataAppendFile\", ()=>(0, _formDataAppendFileJsDefault.default));\nparcelHelpers.export(exports, \"isExtractableFile\", ()=>(0, _isExtractableFileJsDefault.default));\nparcelHelpers.export(exports, \"ReactNativeFile\", ()=>(0, _reactNativeFileJsDefault.default));\nvar _createUploadLinkJs = require(\"./createUploadLink.js\");\nvar _createUploadLinkJsDefault = parcelHelpers.interopDefault(_createUploadLinkJs);\nvar _formDataAppendFileJs = require(\"./formDataAppendFile.js\");\nvar _formDataAppendFileJsDefault = parcelHelpers.interopDefault(_formDataAppendFileJs);\nvar _isExtractableFileJs = require(\"./isExtractableFile.js\");\nvar _isExtractableFileJsDefault = parcelHelpers.interopDefault(_isExtractableFileJs);\nvar _reactNativeFileJs = require(\"./ReactNativeFile.js\");\nvar _reactNativeFileJsDefault = parcelHelpers.interopDefault(_reactNativeFileJs);\n\n},{\"./createUploadLink.js\":\"lmK5r\",\"./formDataAppendFile.js\":false,\"./isExtractableFile.js\":false,\"./ReactNativeFile.js\":false,\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lmK5r\":[function(require,module,exports) {\n\"use strict\";\nvar _extends = require(\"e0667b4f0f744c30\");\nvar _require = require(\"fed7da74fa6de590\"), ApolloLink = _require.ApolloLink, Observable = _require.Observable;\nvar _require2 = require(\"f00f2030e74f1330\"), createSignalIfSupported = _require2.createSignalIfSupported, fallbackHttpConfig = _require2.fallbackHttpConfig, parseAndCheckHttpResponse = _require2.parseAndCheckHttpResponse, rewriteURIForGET = _require2.rewriteURIForGET, selectHttpOptionsAndBody = _require2.selectHttpOptionsAndBody, selectURI = _require2.selectURI, serializeFetchParameter = _require2.serializeFetchParameter;\nvar extractFiles = require(\"8a91f345bc037c9b\");\nvar formDataAppendFile = require(\"2f65cb353ec56580\");\nvar isExtractableFile = require(\"d328e35ab624fd68\");\nmodule.exports = function createUploadLink(_temp) {\n var _ref = _temp === void 0 ? {} : _temp, _ref$uri = _ref.uri, fetchUri = _ref$uri === void 0 ? \"/graphql\" : _ref$uri, useGETForQueries = _ref.useGETForQueries, _ref$isExtractableFil = _ref.isExtractableFile, customIsExtractableFile = _ref$isExtractableFil === void 0 ? isExtractableFile : _ref$isExtractableFil, CustomFormData = _ref.FormData, _ref$formDataAppendFi = _ref.formDataAppendFile, customFormDataAppendFile = _ref$formDataAppendFi === void 0 ? formDataAppendFile : _ref$formDataAppendFi, customFetch = _ref.fetch, fetchOptions = _ref.fetchOptions, credentials = _ref.credentials, headers = _ref.headers, includeExtensions = _ref.includeExtensions;\n var linkConfig = {\n http: {\n includeExtensions: includeExtensions\n },\n options: fetchOptions,\n credentials: credentials,\n headers: headers\n };\n return new ApolloLink(function(operation) {\n var context = operation.getContext();\n var _context$clientAwaren = context.clientAwareness;\n _context$clientAwaren = _context$clientAwaren === void 0 ? {} : _context$clientAwaren;\n var name = _context$clientAwaren.name, version = _context$clientAwaren.version, headers = context.headers;\n var contextConfig = {\n http: context.http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: _extends({}, name && {\n \"apollographql-client-name\": name\n }, version && {\n \"apollographql-client-version\": version\n }, headers)\n };\n var _selectHttpOptionsAnd = selectHttpOptionsAndBody(operation, fallbackHttpConfig, linkConfig, contextConfig), options = _selectHttpOptionsAnd.options, body = _selectHttpOptionsAnd.body;\n var _extractFiles = extractFiles(body, \"\", customIsExtractableFile), clone = _extractFiles.clone, files = _extractFiles.files;\n var uri = selectURI(operation, fetchUri);\n if (files.size) {\n delete options.headers[\"content-type\"];\n var RuntimeFormData = CustomFormData || FormData;\n var form = new RuntimeFormData();\n form.append(\"operations\", serializeFetchParameter(clone, \"Payload\"));\n var map = {};\n var i = 0;\n files.forEach(function(paths) {\n map[++i] = paths;\n });\n form.append(\"map\", JSON.stringify(map));\n i = 0;\n files.forEach(function(paths, file) {\n customFormDataAppendFile(form, ++i, file);\n });\n options.body = form;\n } else {\n if (useGETForQueries && !operation.query.definitions.some(function(definition) {\n return definition.kind === \"OperationDefinition\" && definition.operation === \"mutation\";\n })) options.method = \"GET\";\n if (options.method === \"GET\") {\n var _rewriteURIForGET = rewriteURIForGET(uri, body), newURI = _rewriteURIForGET.newURI, parseError = _rewriteURIForGET.parseError;\n if (parseError) return new Observable(function(observer) {\n observer.error(parseError);\n });\n uri = newURI;\n } else options.body = serializeFetchParameter(clone, \"Payload\");\n }\n var _createSignalIfSuppor = createSignalIfSupported(), controller = _createSignalIfSuppor.controller;\n if (controller) {\n if (options.signal) options.signal.addEventListener(\"abort\", function() {\n controller.abort();\n });\n options.signal = controller.signal;\n }\n var runtimeFetch = customFetch || fetch;\n return new Observable(function(observer) {\n var cleaningUp;\n runtimeFetch(uri, options).then(function(response) {\n operation.setContext({\n response: response\n });\n return response;\n }).then(parseAndCheckHttpResponse(operation)).then(function(result) {\n observer.next(result);\n observer.complete();\n }).catch(function(error) {\n if (!cleaningUp) {\n if (error.result && error.result.errors && error.result.data) observer.next(error.result);\n observer.error(error);\n }\n });\n return function() {\n cleaningUp = true;\n if (controller) controller.abort();\n };\n });\n });\n};\n\n},{\"e0667b4f0f744c30\":\"4iKIP\",\"fed7da74fa6de590\":\"4NtVX\",\"f00f2030e74f1330\":\"6rkPi\",\"8a91f345bc037c9b\":\"1fKdw\",\"2f65cb353ec56580\":\"hXJ06\",\"d328e35ab624fd68\":\"ff3Kf\"}],\"4iKIP\":[function(require,module,exports) {\nfunction _extends() {\n module.exports = _extends = Object.assign ? Object.assign.bind() : function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _extends.apply(this, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n},{}],\"1fKdw\":[function(require,module,exports) {\n\"use strict\";\nvar defaultIsExtractableFile = require(\"d8d998a38c7d9b76\");\nmodule.exports = function extractFiles(value, path, isExtractableFile) {\n if (path === void 0) path = \"\";\n if (isExtractableFile === void 0) isExtractableFile = defaultIsExtractableFile;\n var clone;\n var files = new Map();\n function addFile(paths, file) {\n var storedPaths = files.get(file);\n if (storedPaths) storedPaths.push.apply(storedPaths, paths);\n else files.set(file, paths);\n }\n if (isExtractableFile(value)) {\n clone = null;\n addFile([\n path\n ], value);\n } else {\n var prefix = path ? path + \".\" : \"\";\n if (typeof FileList !== \"undefined\" && value instanceof FileList) clone = Array.prototype.map.call(value, function(file, i) {\n addFile([\n \"\" + prefix + i\n ], file);\n return null;\n });\n else if (Array.isArray(value)) clone = value.map(function(child, i) {\n var result = extractFiles(child, \"\" + prefix + i, isExtractableFile);\n result.files.forEach(addFile);\n return result.clone;\n });\n else if (value && value.constructor === Object) {\n clone = {};\n for(var i in value){\n var result = extractFiles(value[i], \"\" + prefix + i, isExtractableFile);\n result.files.forEach(addFile);\n clone[i] = result.clone;\n }\n } else clone = value;\n }\n return {\n clone: clone,\n files: files\n };\n};\n\n},{\"d8d998a38c7d9b76\":\"aKjbh\"}],\"aKjbh\":[function(require,module,exports) {\n\"use strict\";\nvar ReactNativeFile = require(\"b58708c8621f87b5\");\nmodule.exports = function isExtractableFile(value) {\n return typeof File !== \"undefined\" && value instanceof File || typeof Blob !== \"undefined\" && value instanceof Blob || value instanceof ReactNativeFile;\n};\n\n},{\"b58708c8621f87b5\":\"7ACt2\"}],\"7ACt2\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = function ReactNativeFile(_ref) {\n var uri = _ref.uri, name = _ref.name, type = _ref.type;\n this.uri = uri;\n this.name = name;\n this.type = type;\n};\n\n},{}],\"hXJ06\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = function formDataAppendFile(formData, fieldName, file) {\n formData.append(fieldName, file, file.name);\n};\n\n},{}],\"ff3Kf\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = require(\"d67fc58bfb51baa0\");\n\n},{\"d67fc58bfb51baa0\":\"aKjbh\"}],\"j3EAa\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"IntlProvider\", ()=>(0, _provider.IntlProvider));\nparcelHelpers.export(exports, \"InteractionProvider\", ()=>(0, _provider.InteractionProvider));\nparcelHelpers.export(exports, \"InteractionDialogRenderer\", ()=>(0, _provider.InteractionDialogRenderer));\nparcelHelpers.export(exports, \"MediaUiProvider\", ()=>(0, _provider.MediaUiProvider));\nparcelHelpers.export(exports, \"NotifyProvider\", ()=>(0, _provider.NotifyProvider));\nparcelHelpers.export(exports, \"useIntl\", ()=>(0, _provider.useIntl));\nparcelHelpers.export(exports, \"useInteraction\", ()=>(0, _provider.useInteraction));\nparcelHelpers.export(exports, \"useMediaUi\", ()=>(0, _provider.useMediaUi));\nparcelHelpers.export(exports, \"useNotify\", ()=>(0, _provider.useNotify));\nparcelHelpers.export(exports, \"typeDefs\", ()=>(0, _typeDefs.typeDefs));\nparcelHelpers.export(exports, \"Components\", ()=>_components);\nparcelHelpers.export(exports, \"Events\", ()=>_events);\nparcelHelpers.export(exports, \"Helper\", ()=>_helper);\nvar _provider = require(\"./provider\");\nvar _typeDefs = require(\"./typeDefs\");\nvar _events = require(\"./events\");\nvar _components = require(\"./components\");\nvar _helper = require(\"./helper\");\n\n},{\"./provider\":\"jhdjb\",\"./typeDefs\":\"5FV15\",\"./events\":\"59Xr2\",\"./components\":\"5LFSk\",\"./helper\":\"80jPI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jhdjb\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"IntlProvider\", ()=>(0, _intl.IntlProvider));\nparcelHelpers.export(exports, \"Interaction\", ()=>(0, _interaction.Interaction));\nparcelHelpers.export(exports, \"InteractionProvider\", ()=>(0, _interaction.InteractionProvider));\nparcelHelpers.export(exports, \"InteractionDialogRenderer\", ()=>(0, _interaction.InteractionDialogRenderer));\nparcelHelpers.export(exports, \"MediaUiProvider\", ()=>(0, _mediaUiProvider.MediaUiProvider));\nparcelHelpers.export(exports, \"NotifyProvider\", ()=>(0, _notify.NotifyProvider));\nparcelHelpers.export(exports, \"useIntl\", ()=>(0, _intl.useIntl));\nparcelHelpers.export(exports, \"useInteraction\", ()=>(0, _interaction.useInteraction));\nparcelHelpers.export(exports, \"useMediaUi\", ()=>(0, _mediaUiProvider.useMediaUi));\nparcelHelpers.export(exports, \"useNotify\", ()=>(0, _notify.useNotify));\nvar _notify = require(\"./Notify\");\nvar _mediaUiProvider = require(\"./MediaUiProvider\");\nvar _intl = require(\"./Intl\");\nvar _interaction = require(\"./Interaction\");\n\n},{\"./Notify\":\"hVocq\",\"./MediaUiProvider\":\"5D3rI\",\"./Intl\":\"2tVzu\",\"./Interaction\":\"33NuS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hVocq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"NotifyContext\", ()=>NotifyContext);\nparcelHelpers.export(exports, \"useNotify\", ()=>useNotify);\nparcelHelpers.export(exports, \"NotifyProvider\", ()=>NotifyProvider);\nvar _react = require(\"react\");\nconst NotifyContext = /*#__PURE__*/ (0, _react.createContext)(null);\nconst useNotify = ()=>(0, _react.useContext)(NotifyContext);\nfunction NotifyProvider({ children , notificationApi }) {\n const error = (title, message = \"\")=>notificationApi[\"error\"](title, message);\n const warning = (title, message = \"\")=>notificationApi[\"warning\"](title, message);\n const ok = (title)=>notificationApi[\"ok\"](title);\n const info = (title)=>notificationApi[\"info\"](title);\n const notice = (title)=>notificationApi[\"notice\"](title);\n return /*#__PURE__*/ _react.createElement(NotifyContext.Provider, {\n value: {\n notice,\n error,\n ok,\n info,\n warning\n }\n }, children);\n}\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5D3rI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"MediaUiContext\", ()=>MediaUiContext);\nparcelHelpers.export(exports, \"useMediaUi\", ()=>useMediaUi);\nparcelHelpers.export(exports, \"MediaUiProvider\", ()=>MediaUiProvider);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _client = require(\"@apollo/client\");\nvar _matcher = require(\"matcher\");\nvar _hooks = require(\"../hooks\");\nvar _notify = require(\"./Notify\");\nvar _intl = require(\"./Intl\");\nvar _interaction = require(\"./Interaction\");\nvar _asset = require(\"../fragments/asset\");\nvar _strategy = require(\"../strategy\");\nvar _recoil = require(\"recoil\");\nvar _state = require(\"../state\");\nconst MediaUiContext = /*#__PURE__*/ (0, _react.createContext)({});\nconst useMediaUi = ()=>(0, _react.useContext)(MediaUiContext);\nfunction MediaUiProvider({ children , dummyImage , selectionMode =false , isInNodeCreationDialog =false , onAssetSelection =null , containerRef , approvalAttainmentStrategyFactory =(0, _strategy.DefaultApprovalAttainmentStrategyFactory) }) {\n const { translate } = (0, _intl.useIntl)();\n const Notify = (0, _notify.useNotify)();\n const Interaction = (0, _interaction.useInteraction)();\n const client = (0, _client.useApolloClient)();\n const { importAsset } = (0, _hooks.useImportAsset)();\n const constraints = (0, _recoil.useRecoilValue)((0, _state.constraintsState));\n const approvalAttainmentStrategy = (0, _react.useMemo)(()=>approvalAttainmentStrategyFactory({\n interaction: Interaction,\n intl: {\n translate\n }\n }), [\n approvalAttainmentStrategyFactory,\n Interaction,\n translate\n ]);\n // TODO: This can properly be optimised by turning it into a recoil readonly selector family\n const isAssetSelectable = (0, _react.useCallback)((asset)=>{\n if (constraints.mediaTypes?.length > 0) {\n if (!(0, _matcher.isMatch)(asset.file.mediaType, constraints.mediaTypes)) return false;\n }\n if (constraints.assetSources?.length > 0) {\n if (!(0, _matcher.isMatch)(asset.assetSource.id, constraints.assetSources)) return false;\n }\n return true;\n }, [\n constraints\n ]);\n // TODO: Move into select asset hook, as it's the only place using this method\n const handleSelectAsset = (0, _react.useCallback)((assetIdentity)=>{\n if (!onAssetSelection || !assetIdentity) return;\n // Read local asset data from cache as the asset editor and the constraint check require it\n const asset = client.readFragment({\n fragment: (0, _client.gql)`\n fragment LocalAssetData on Asset {\n ...AssetProps\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n `,\n fragmentName: \"LocalAssetData\",\n variables: {\n includeUsage: false\n },\n id: client.cache.identify({\n __typename: \"Asset\",\n id: assetIdentity.assetId\n })\n });\n if (!isAssetSelectable(asset)) {\n Notify.notice(translate(\"action.selectAsset.invalidType.message\", \"You can only select any of the following types: {types}\", {\n types: constraints.mediaTypes.join(\", \")\n }));\n return;\n }\n if (asset.localId) onAssetSelection(asset.localId);\n else // If no local id is present, we first need to import the asset from its remote source\n importAsset(assetIdentity).then(({ data })=>{\n onAssetSelection(data.importAsset.localId);\n });\n }, [\n client,\n importAsset,\n onAssetSelection,\n isAssetSelectable,\n translate,\n Notify,\n constraints.mediaTypes\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(MediaUiContext.Provider, {\n value: {\n containerRef,\n dummyImage,\n handleSelectAsset,\n selectionMode,\n isInNodeCreationDialog,\n isAssetSelectable,\n approvalAttainmentStrategy\n }\n }, children);\n}\n\n},{\"react\":\"6uln9\",\"@apollo/client\":\"bWmmR\",\"matcher\":\"8HAhQ\",\"../hooks\":\"b2lzd\",\"./Notify\":\"hVocq\",\"./Intl\":\"2tVzu\",\"./Interaction\":\"33NuS\",\"../fragments/asset\":\"cP1Zi\",\"../strategy\":\"cfZ69\",\"recoil\":\"2QijJ\",\"../state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8HAhQ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"matcher\", ()=>matcher);\nparcelHelpers.export(exports, \"isMatch\", ()=>isMatch);\nvar _escapeStringRegexp = require(\"escape-string-regexp\");\nvar _escapeStringRegexpDefault = parcelHelpers.interopDefault(_escapeStringRegexp);\nconst regexpCache = new Map();\nconst sanitizeArray = (input, inputName)=>{\n if (!Array.isArray(input)) switch(typeof input){\n case \"string\":\n input = [\n input\n ];\n break;\n case \"undefined\":\n input = [];\n break;\n default:\n throw new TypeError(`Expected '${inputName}' to be a string or an array, but got a type of '${typeof input}'`);\n }\n return input.filter((string)=>{\n if (typeof string !== \"string\") {\n if (typeof string === \"undefined\") return false;\n throw new TypeError(`Expected '${inputName}' to be an array of strings, but found a type of '${typeof string}' in the array`);\n }\n return true;\n });\n};\nconst makeRegexp = (pattern, options)=>{\n options = {\n caseSensitive: false,\n ...options\n };\n const cacheKey = pattern + JSON.stringify(options);\n if (regexpCache.has(cacheKey)) return regexpCache.get(cacheKey);\n const negated = pattern[0] === \"!\";\n if (negated) pattern = pattern.slice(1);\n pattern = (0, _escapeStringRegexpDefault.default)(pattern).replace(/\\\\\\*/g, \"[\\\\s\\\\S]*\");\n const regexp = new RegExp(`^${pattern}$`, options.caseSensitive ? \"\" : \"i\");\n regexp.negated = negated;\n regexpCache.set(cacheKey, regexp);\n return regexp;\n};\nconst baseMatcher = (inputs, patterns, options, firstMatchOnly)=>{\n inputs = sanitizeArray(inputs, \"inputs\");\n patterns = sanitizeArray(patterns, \"patterns\");\n if (patterns.length === 0) return [];\n patterns = patterns.map((pattern)=>makeRegexp(pattern, options));\n const { allPatterns } = options || {};\n const result = [];\n for (const input of inputs){\n // String is included only if it matches at least one non-negated pattern supplied.\n // Note: the `allPatterns` option requires every non-negated pattern to be matched once.\n // Matching a negated pattern excludes the string.\n let matches;\n const didFit = [\n ...patterns\n ].fill(false);\n for (const [index, pattern] of patterns.entries())if (pattern.test(input)) {\n didFit[index] = true;\n matches = !pattern.negated;\n if (!matches) break;\n }\n if (!(matches === false || matches === undefined && patterns.some((pattern)=>!pattern.negated) || allPatterns && didFit.some((yes, index)=>!yes && !patterns[index].negated))) {\n result.push(input);\n if (firstMatchOnly) break;\n }\n }\n return result;\n};\nfunction matcher(inputs, patterns, options) {\n return baseMatcher(inputs, patterns, options, false);\n}\nfunction isMatch(inputs, patterns, options) {\n return baseMatcher(inputs, patterns, options, true).length > 0;\n}\n\n},{\"escape-string-regexp\":\"i3S3H\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i3S3H\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>escapeStringRegexp);\nfunction escapeStringRegexp(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"b2lzd\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useAssetCountQuery\", ()=>(0, _useAssetCountQueryDefault.default));\nparcelHelpers.export(exports, \"useAssetQuery\", ()=>(0, _useAssetQueryDefault.default));\nparcelHelpers.export(exports, \"useAssetsQuery\", ()=>(0, _useAssetsQueryDefault.default));\nparcelHelpers.export(exports, \"useConfigQuery\", ()=>(0, _useConfigQueryDefault.default));\nparcelHelpers.export(exports, \"useDeleteAsset\", ()=>(0, _useDeleteAssetDefault.default));\nparcelHelpers.export(exports, \"useEvent\", ()=>(0, _useEventDefault.default));\nparcelHelpers.export(exports, \"useImportAsset\", ()=>(0, _useImportAssetDefault.default));\nparcelHelpers.export(exports, \"useSelectAsset\", ()=>(0, _useSelectAssetDefault.default));\nparcelHelpers.export(exports, \"useSelectedAsset\", ()=>(0, _useSelectedAssetDefault.default));\nparcelHelpers.export(exports, \"useSetAssetCollections\", ()=>(0, _useSetAssetCollectionsDefault.default));\nparcelHelpers.export(exports, \"useSetAssetTags\", ()=>(0, _useSetAssetTagsDefault.default));\nparcelHelpers.export(exports, \"useUntagAsset\", ()=>(0, _useUntagAssetDefault.default));\nparcelHelpers.export(exports, \"useUpdateAsset\", ()=>(0, _useUpdateAssetDefault.default));\nvar _useAssetCountQuery = require(\"./useAssetCountQuery\");\nvar _useAssetCountQueryDefault = parcelHelpers.interopDefault(_useAssetCountQuery);\nvar _useAssetQuery = require(\"./useAssetQuery\");\nvar _useAssetQueryDefault = parcelHelpers.interopDefault(_useAssetQuery);\nvar _useAssetsQuery = require(\"./useAssetsQuery\");\nvar _useAssetsQueryDefault = parcelHelpers.interopDefault(_useAssetsQuery);\nvar _useConfigQuery = require(\"./useConfigQuery\");\nvar _useConfigQueryDefault = parcelHelpers.interopDefault(_useConfigQuery);\nvar _useDeleteAsset = require(\"./useDeleteAsset\");\nvar _useDeleteAssetDefault = parcelHelpers.interopDefault(_useDeleteAsset);\nvar _useEvent = require(\"./useEvent\");\nvar _useEventDefault = parcelHelpers.interopDefault(_useEvent);\nvar _useImportAsset = require(\"./useImportAsset\");\nvar _useImportAssetDefault = parcelHelpers.interopDefault(_useImportAsset);\nvar _useSelectAsset = require(\"./useSelectAsset\");\nvar _useSelectAssetDefault = parcelHelpers.interopDefault(_useSelectAsset);\nvar _useSelectedAsset = require(\"./useSelectedAsset\");\nvar _useSelectedAssetDefault = parcelHelpers.interopDefault(_useSelectedAsset);\nvar _useSetAssetCollections = require(\"./useSetAssetCollections\");\nvar _useSetAssetCollectionsDefault = parcelHelpers.interopDefault(_useSetAssetCollections);\nvar _useSetAssetTags = require(\"./useSetAssetTags\");\nvar _useSetAssetTagsDefault = parcelHelpers.interopDefault(_useSetAssetTags);\nvar _useUntagAsset = require(\"./useUntagAsset\");\nvar _useUntagAssetDefault = parcelHelpers.interopDefault(_useUntagAsset);\nvar _useUpdateAsset = require(\"./useUpdateAsset\");\nvar _useUpdateAssetDefault = parcelHelpers.interopDefault(_useUpdateAsset);\n\n},{\"./useAssetCountQuery\":\"iBCGl\",\"./useAssetQuery\":\"hFrZn\",\"./useAssetsQuery\":\"3UNSz\",\"./useConfigQuery\":\"c2M0S\",\"./useDeleteAsset\":\"2YBVY\",\"./useEvent\":\"aH9Zl\",\"./useImportAsset\":\"6dCH9\",\"./useSelectAsset\":\"6rOsM\",\"./useSelectedAsset\":\"lbZkV\",\"./useSetAssetCollections\":\"86uFF\",\"./useSetAssetTags\":\"cnDOn\",\"./useUntagAsset\":\"eZQ4W\",\"./useUpdateAsset\":\"kpp4n\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iBCGl\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useAssetCountQuery);\nvar _client = require(\"@apollo/client\");\nvar _recoil = require(\"recoil\");\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nvar _queries = require(\"../queries\");\nvar _state = require(\"../state\");\nfunction useAssetCountQuery(total = false) {\n const searchTerm = (0, _recoil.useRecoilValue)((0, _state.searchTermState));\n const { tagId , assetCollectionId } = (0, _recoil.useRecoilValue)((0, _state.selectedAssetCollectionAndTagState));\n const assetSourceId = (0, _recoil.useRecoilValue)((0, _featureAssetSources.selectedAssetSourceState));\n const mediaType = (0, _recoil.useRecoilValue)((0, _state.selectedMediaTypeState));\n const assetType = (0, _recoil.useRecoilValue)((0, _state.selectedAssetTypeState));\n const { data , loading } = (0, _client.useQuery)((0, _queries.ASSET_COUNT), {\n variables: {\n assetCollectionId: total ? undefined : assetCollectionId,\n assetSourceId,\n mediaType,\n assetType,\n tagId: total ? undefined : tagId,\n searchTerm: searchTerm.toString()\n }\n });\n return {\n assetCount: data?.assetCount || 0,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"recoil\":\"2QijJ\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"../queries\":\"euEE7\",\"../state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2QijJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DefaultValue\", ()=>Recoil_index_1);\nparcelHelpers.export(exports, \"RecoilEnv\", ()=>Recoil_index_4);\nparcelHelpers.export(exports, \"RecoilLoadable\", ()=>Recoil_index_3);\nparcelHelpers.export(exports, \"RecoilRoot\", ()=>Recoil_index_5);\nparcelHelpers.export(exports, \"atom\", ()=>Recoil_index_8);\nparcelHelpers.export(exports, \"atomFamily\", ()=>Recoil_index_10);\nparcelHelpers.export(exports, \"constSelector\", ()=>Recoil_index_12);\nparcelHelpers.export(exports, \"errorSelector\", ()=>Recoil_index_13);\nparcelHelpers.export(exports, \"isRecoilValue\", ()=>Recoil_index_2);\nparcelHelpers.export(exports, \"noWait\", ()=>Recoil_index_15);\nparcelHelpers.export(exports, \"readOnlySelector\", ()=>Recoil_index_14);\nparcelHelpers.export(exports, \"retentionZone\", ()=>Recoil_index_38);\nparcelHelpers.export(exports, \"selector\", ()=>Recoil_index_9);\nparcelHelpers.export(exports, \"selectorFamily\", ()=>Recoil_index_11);\nparcelHelpers.export(exports, \"snapshot_UNSTABLE\", ()=>Recoil_index_36);\nparcelHelpers.export(exports, \"useGetRecoilValueInfo_UNSTABLE\", ()=>Recoil_index_26);\nparcelHelpers.export(exports, \"useGotoRecoilSnapshot\", ()=>Recoil_index_33);\nparcelHelpers.export(exports, \"useRecoilBridgeAcrossReactRoots_UNSTABLE\", ()=>Recoil_index_7);\nparcelHelpers.export(exports, \"useRecoilCallback\", ()=>Recoil_index_31);\nparcelHelpers.export(exports, \"useRecoilRefresher_UNSTABLE\", ()=>Recoil_index_27);\nparcelHelpers.export(exports, \"useRecoilSnapshot\", ()=>Recoil_index_34);\nparcelHelpers.export(exports, \"useRecoilState\", ()=>Recoil_index_22);\nparcelHelpers.export(exports, \"useRecoilStateLoadable\", ()=>Recoil_index_23);\nparcelHelpers.export(exports, \"useRecoilState_TRANSITION_SUPPORT_UNSTABLE\", ()=>Recoil_index_30);\nparcelHelpers.export(exports, \"useRecoilStoreID\", ()=>Recoil_index_6);\nparcelHelpers.export(exports, \"useRecoilTransactionObserver_UNSTABLE\", ()=>Recoil_index_35);\nparcelHelpers.export(exports, \"useRecoilTransaction_UNSTABLE\", ()=>Recoil_index_32);\nparcelHelpers.export(exports, \"useRecoilValue\", ()=>Recoil_index_20);\nparcelHelpers.export(exports, \"useRecoilValueLoadable\", ()=>Recoil_index_21);\nparcelHelpers.export(exports, \"useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE\", ()=>Recoil_index_28);\nparcelHelpers.export(exports, \"useRecoilValue_TRANSITION_SUPPORT_UNSTABLE\", ()=>Recoil_index_29);\nparcelHelpers.export(exports, \"useResetRecoilState\", ()=>Recoil_index_25);\nparcelHelpers.export(exports, \"useRetain\", ()=>Recoil_index_37);\nparcelHelpers.export(exports, \"useSetRecoilState\", ()=>Recoil_index_24);\nparcelHelpers.export(exports, \"waitForAll\", ()=>Recoil_index_18);\nparcelHelpers.export(exports, \"waitForAllSettled\", ()=>Recoil_index_19);\nparcelHelpers.export(exports, \"waitForAny\", ()=>Recoil_index_17);\nparcelHelpers.export(exports, \"waitForNone\", ()=>Recoil_index_16);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar process = require(\"86da38ec19b50b77\");\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function err(message) {\n const error = new Error(message); // In V8, Error objects keep the closure scope chain alive until the\n // err.stack property is accessed.\n if (error.stack === undefined) // IE sets the stack only if error is thrown\n try {\n throw error;\n } catch (_) {} // eslint-disable-line fb-www/no-unused-catch-bindings, no-empty\n return error;\n}\nvar err_1 = err;\n// @oss-only\nvar Recoil_err = err_1;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ // Split declaration and implementation to allow this function to pretend to\n// check for actual instance of Promise instead of something with a `then`\n// method.\n// eslint-disable-next-line no-redeclare\nfunction isPromise(p) {\n return !!p && typeof p.then === \"function\";\n}\nvar Recoil_isPromise = isPromise;\nfunction nullthrows(x, message) {\n if (x != null) return x;\n throw Recoil_err(message !== null && message !== void 0 ? message : \"Got unexpected null or undefined\");\n}\nvar Recoil_nullthrows = nullthrows;\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nclass BaseLoadable {\n getValue() {\n throw Recoil_err(\"BaseLoadable\");\n }\n toPromise() {\n throw Recoil_err(\"BaseLoadable\");\n }\n valueMaybe() {\n throw Recoil_err(\"BaseLoadable\");\n }\n valueOrThrow() {\n // $FlowFixMe[prop-missing]\n throw Recoil_err(`Loadable expected value, but in \"${this.state}\" state`);\n }\n promiseMaybe() {\n throw Recoil_err(\"BaseLoadable\");\n }\n promiseOrThrow() {\n // $FlowFixMe[prop-missing]\n throw Recoil_err(`Loadable expected promise, but in \"${this.state}\" state`);\n }\n errorMaybe() {\n throw Recoil_err(\"BaseLoadable\");\n }\n errorOrThrow() {\n // $FlowFixMe[prop-missing]\n throw Recoil_err(`Loadable expected error, but in \"${this.state}\" state`);\n }\n is(other) {\n // $FlowFixMe[prop-missing]\n return other.state === this.state && other.contents === this.contents;\n }\n map(_map) {\n throw Recoil_err(\"BaseLoadable\");\n }\n}\nclass ValueLoadable extends BaseLoadable {\n constructor(value){\n super();\n _defineProperty(this, \"state\", \"hasValue\");\n _defineProperty(this, \"contents\", void 0);\n this.contents = value;\n }\n getValue() {\n return this.contents;\n }\n toPromise() {\n return Promise.resolve(this.contents);\n }\n valueMaybe() {\n return this.contents;\n }\n valueOrThrow() {\n return this.contents;\n }\n promiseMaybe() {\n return undefined;\n }\n errorMaybe() {\n return undefined;\n }\n map(map) {\n try {\n const next = map(this.contents);\n return Recoil_isPromise(next) ? loadableWithPromise(next) : isLoadable(next) ? next : loadableWithValue(next);\n } catch (e) {\n return Recoil_isPromise(e) ? // errors and subsequent retries will be handled in 'loading' case\n // $FlowFixMe[prop-missing]\n loadableWithPromise(e.next(()=>this.map(map))) : loadableWithError(e);\n }\n }\n}\nclass ErrorLoadable extends BaseLoadable {\n constructor(error){\n super();\n _defineProperty(this, \"state\", \"hasError\");\n _defineProperty(this, \"contents\", void 0);\n this.contents = error;\n }\n getValue() {\n throw this.contents;\n }\n toPromise() {\n return Promise.reject(this.contents);\n }\n valueMaybe() {\n return undefined;\n }\n promiseMaybe() {\n return undefined;\n }\n errorMaybe() {\n return this.contents;\n }\n errorOrThrow() {\n return this.contents;\n }\n map(_map) {\n // $FlowIssue[incompatible-return]\n return this;\n }\n}\nclass LoadingLoadable extends BaseLoadable {\n constructor(promise){\n super();\n _defineProperty(this, \"state\", \"loading\");\n _defineProperty(this, \"contents\", void 0);\n this.contents = promise;\n }\n getValue() {\n throw this.contents;\n }\n toPromise() {\n return this.contents;\n }\n valueMaybe() {\n return undefined;\n }\n promiseMaybe() {\n return this.contents;\n }\n promiseOrThrow() {\n return this.contents;\n }\n errorMaybe() {\n return undefined;\n }\n map(map) {\n return loadableWithPromise(this.contents.then((value)=>{\n const next = map(value);\n if (isLoadable(next)) {\n const nextLoadable = next;\n switch(nextLoadable.state){\n case \"hasValue\":\n return nextLoadable.contents;\n case \"hasError\":\n throw nextLoadable.contents;\n case \"loading\":\n return nextLoadable.contents;\n }\n } // $FlowIssue[incompatible-return]\n return next;\n }) // $FlowFixMe[incompatible-call]\n .catch((e)=>{\n if (Recoil_isPromise(e)) // we were \"suspended,\" try again\n return e.then(()=>this.map(map).contents);\n throw e;\n }));\n }\n}\nfunction loadableWithValue(value) {\n return Object.freeze(new ValueLoadable(value));\n}\nfunction loadableWithError(error) {\n return Object.freeze(new ErrorLoadable(error));\n}\nfunction loadableWithPromise(promise) {\n return Object.freeze(new LoadingLoadable(promise));\n}\nfunction loadableLoading() {\n return Object.freeze(new LoadingLoadable(new Promise(()=>{})));\n}\nfunction loadableAllArray(inputs) {\n return inputs.every((i)=>i.state === \"hasValue\") ? loadableWithValue(inputs.map((i)=>i.contents)) : inputs.some((i)=>i.state === \"hasError\") ? loadableWithError(Recoil_nullthrows(inputs.find((i)=>i.state === \"hasError\"), \"Invalid loadable passed to loadableAll\").contents) : loadableWithPromise(Promise.all(inputs.map((i)=>i.contents)));\n}\nfunction loadableAll(inputs) {\n const unwrapedInputs = Array.isArray(inputs) ? inputs : Object.getOwnPropertyNames(inputs).map((key)=>inputs[key]);\n const normalizedInputs = unwrapedInputs.map((x)=>isLoadable(x) ? x : Recoil_isPromise(x) ? loadableWithPromise(x) : loadableWithValue(x));\n const output = loadableAllArray(normalizedInputs);\n return Array.isArray(inputs) ? output : // $FlowIssue[incompatible-call]\n output.map((outputs)=>Object.getOwnPropertyNames(inputs).reduce((out, key, idx)=>({\n ...out,\n [key]: outputs[idx]\n }), {}));\n}\nfunction isLoadable(x) {\n return x instanceof BaseLoadable;\n}\nconst LoadableStaticInterface = {\n of: (value)=>Recoil_isPromise(value) ? loadableWithPromise(value) : isLoadable(value) ? value : loadableWithValue(value),\n error: (error)=>loadableWithError(error),\n // $FlowIssue[incompatible-return]\n loading: ()=>loadableLoading(),\n // $FlowIssue[unclear-type]\n all: loadableAll,\n isLoadable\n};\nvar Recoil_Loadable = {\n loadableWithValue,\n loadableWithError,\n loadableWithPromise,\n loadableLoading,\n loadableAll,\n isLoadable,\n RecoilLoadable: LoadableStaticInterface\n};\nvar Recoil_Loadable_1 = Recoil_Loadable.loadableWithValue;\nvar Recoil_Loadable_2 = Recoil_Loadable.loadableWithError;\nvar Recoil_Loadable_3 = Recoil_Loadable.loadableWithPromise;\nvar Recoil_Loadable_4 = Recoil_Loadable.loadableLoading;\nvar Recoil_Loadable_5 = Recoil_Loadable.loadableAll;\nvar Recoil_Loadable_6 = Recoil_Loadable.isLoadable;\nvar Recoil_Loadable_7 = Recoil_Loadable.RecoilLoadable;\nvar Recoil_Loadable$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n loadableWithValue: Recoil_Loadable_1,\n loadableWithError: Recoil_Loadable_2,\n loadableWithPromise: Recoil_Loadable_3,\n loadableLoading: Recoil_Loadable_4,\n loadableAll: Recoil_Loadable_5,\n isLoadable: Recoil_Loadable_6,\n RecoilLoadable: Recoil_Loadable_7\n});\nconst env = {\n RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED: true,\n // Note: RECOIL_GKS_ENABLED settings will only be honored in OSS builds of Recoil\n RECOIL_GKS_ENABLED: new Set([\n \"recoil_hamt_2020\",\n \"recoil_sync_external_store\",\n \"recoil_suppress_rerender_in_callback\",\n \"recoil_memory_managament_2020\"\n ])\n};\nfunction readProcessEnvBooleanFlag(name, set) {\n var _process$env$name, _process$env$name$toL;\n const sanitizedValue = (_process$env$name = process.env[name]) === null || _process$env$name === void 0 ? void 0 : (_process$env$name$toL = _process$env$name.toLowerCase()) === null || _process$env$name$toL === void 0 ? void 0 : _process$env$name$toL.trim();\n if (sanitizedValue == null || sanitizedValue === \"\") return;\n const allowedValues = [\n \"true\",\n \"false\"\n ];\n if (!allowedValues.includes(sanitizedValue)) throw Recoil_err(`process.env.${name} value must be 'true', 'false', or empty: ${sanitizedValue}`);\n set(sanitizedValue === \"true\");\n}\nfunction readProcessEnvStringArrayFlag(name, set) {\n var _process$env$name2;\n const sanitizedValue = (_process$env$name2 = process.env[name]) === null || _process$env$name2 === void 0 ? void 0 : _process$env$name2.trim();\n if (sanitizedValue == null || sanitizedValue === \"\") return;\n set(sanitizedValue.split(/\\s*,\\s*|\\s+/));\n}\n/**\n * Allow NodeJS/NextJS/etc to set the initial state through process.env variable\n * Note: we don't assume 'process' is available in all runtime environments\n *\n * @see https://github.com/facebookexperimental/Recoil/issues/733\n */ function applyProcessEnvFlagOverrides() {\n var _process;\n // note: this check is needed in addition to the check below, runtime error will occur without it!\n // eslint-disable-next-line fb-www/typeof-undefined\n if (typeof process === \"undefined\") return;\n if (((_process = process) === null || _process === void 0 ? void 0 : _process.env) == null) return;\n readProcessEnvBooleanFlag(\"RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED\", (value)=>{\n env.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED = value;\n });\n readProcessEnvStringArrayFlag(\"RECOIL_GKS_ENABLED\", (value)=>{\n value.forEach((gk)=>{\n env.RECOIL_GKS_ENABLED.add(gk);\n });\n });\n}\napplyProcessEnvFlagOverrides();\nvar Recoil_RecoilEnv = env;\nfunction Recoil_gkx_OSS(gk) {\n return Recoil_RecoilEnv.RECOIL_GKS_ENABLED.has(gk);\n}\nRecoil_gkx_OSS.setPass = (gk)=>{\n Recoil_RecoilEnv.RECOIL_GKS_ENABLED.add(gk);\n};\nRecoil_gkx_OSS.setFail = (gk)=>{\n Recoil_RecoilEnv.RECOIL_GKS_ENABLED.delete(gk);\n};\nRecoil_gkx_OSS.clear = ()=>{\n Recoil_RecoilEnv.RECOIL_GKS_ENABLED.clear();\n};\nvar Recoil_gkx = Recoil_gkx_OSS; // @oss-only\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function recoverableViolation(message, _projectName, { error } = {}) {\n return null;\n}\nvar recoverableViolation_1 = recoverableViolation;\n// @oss-only\nvar Recoil_recoverableViolation = recoverableViolation_1;\nvar _createMutableSource, _useMutableSource, _useSyncExternalStore;\nconst createMutableSource = (_createMutableSource = (0, _reactDefault.default).createMutableSource) !== null && _createMutableSource !== void 0 ? _createMutableSource : (0, _reactDefault.default).unstable_createMutableSource;\nconst useMutableSource = (_useMutableSource = (0, _reactDefault.default).useMutableSource) !== null && _useMutableSource !== void 0 ? _useMutableSource : (0, _reactDefault.default).unstable_useMutableSource; // https://github.com/reactwg/react-18/discussions/86\nconst useSyncExternalStore = (_useSyncExternalStore = (0, _reactDefault.default).useSyncExternalStore) !== null && _useSyncExternalStore !== void 0 ? _useSyncExternalStore : (0, _reactDefault.default).unstable_useSyncExternalStore;\nlet ReactRendererVersionMismatchWarnOnce = false; // Check if the current renderer supports `useSyncExternalStore()`.\n// Since React goes through a proxy dispatcher and the current renderer can\n// change we can't simply check if `React.useSyncExternalStore()` is defined.\nfunction currentRendererSupportsUseSyncExternalStore() {\n var _ReactCurrentDispatch;\n // $FlowFixMe[incompatible-use]\n const { ReactCurrentDispatcher , ReactCurrentOwner } = /* $FlowFixMe[prop-missing] This workaround was approved as a safer mechanism\n * to detect if the current renderer supports useSyncExternalStore()\n * https://fb.workplace.com/groups/reactjs/posts/9558682330846963/ */ (0, _reactDefault.default).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n const dispatcher = (_ReactCurrentDispatch = ReactCurrentDispatcher === null || ReactCurrentDispatcher === void 0 ? void 0 : ReactCurrentDispatcher.current) !== null && _ReactCurrentDispatch !== void 0 ? _ReactCurrentDispatch : ReactCurrentOwner.currentDispatcher;\n const isUseSyncExternalStoreSupported = dispatcher.useSyncExternalStore != null;\n if (useSyncExternalStore && !isUseSyncExternalStoreSupported && !ReactRendererVersionMismatchWarnOnce) {\n ReactRendererVersionMismatchWarnOnce = true;\n Recoil_recoverableViolation(\"A React renderer without React 18+ API support is being used with React 18+.\");\n }\n return isUseSyncExternalStoreSupported;\n}\n/**\n * mode: The React API and approach to use for syncing state with React\n * early: Re-renders from Recoil updates occur:\n * 1) earlier\n * 2) in sync with React updates in the same batch\n * 3) before transaction observers instead of after.\n * concurrent: Is the current mode compatible with Concurrent Mode and useTransition()\n */ function reactMode() {\n // NOTE: This mode is currently broken with some Suspense cases\n // see Recoil_selector-test.js\n if (Recoil_gkx(\"recoil_transition_support\")) return {\n mode: \"TRANSITION_SUPPORT\",\n early: true,\n concurrent: true\n };\n if (Recoil_gkx(\"recoil_sync_external_store\") && useSyncExternalStore != null) return {\n mode: \"SYNC_EXTERNAL_STORE\",\n early: true,\n concurrent: false\n };\n if (Recoil_gkx(\"recoil_mutable_source\") && useMutableSource != null && typeof window !== \"undefined\" && !window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE) return Recoil_gkx(\"recoil_suppress_rerender_in_callback\") ? {\n mode: \"MUTABLE_SOURCE\",\n early: true,\n concurrent: true\n } : {\n mode: \"MUTABLE_SOURCE\",\n early: false,\n concurrent: false\n };\n return Recoil_gkx(\"recoil_suppress_rerender_in_callback\") ? {\n mode: \"LEGACY\",\n early: true,\n concurrent: false\n } : {\n mode: \"LEGACY\",\n early: false,\n concurrent: false\n };\n} // TODO Need to figure out if there is a standard/open-source equivalent to see if hot module replacement is happening:\nfunction isFastRefreshEnabled() {\n // @fb-only: const {isAcceptingUpdate} = require('__debug');\n // @fb-only: return typeof isAcceptingUpdate === 'function' && isAcceptingUpdate();\n return false; // @oss-only\n}\nvar Recoil_ReactMode = {\n createMutableSource,\n useMutableSource,\n useSyncExternalStore,\n currentRendererSupportsUseSyncExternalStore,\n reactMode,\n isFastRefreshEnabled\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ // eslint-disable-next-line no-unused-vars\nclass AbstractRecoilValue {\n constructor(newKey){\n _defineProperty(this, \"key\", void 0);\n this.key = newKey;\n }\n toJSON() {\n return {\n key: this.key\n };\n }\n}\nclass RecoilState extends AbstractRecoilValue {\n}\nclass RecoilValueReadOnly extends AbstractRecoilValue {\n}\nfunction isRecoilValue(x) {\n return x instanceof RecoilState || x instanceof RecoilValueReadOnly;\n}\nvar Recoil_RecoilValue = {\n AbstractRecoilValue,\n RecoilState,\n RecoilValueReadOnly,\n isRecoilValue\n};\nvar Recoil_RecoilValue_1 = Recoil_RecoilValue.AbstractRecoilValue;\nvar Recoil_RecoilValue_2 = Recoil_RecoilValue.RecoilState;\nvar Recoil_RecoilValue_3 = Recoil_RecoilValue.RecoilValueReadOnly;\nvar Recoil_RecoilValue_4 = Recoil_RecoilValue.isRecoilValue;\nvar Recoil_RecoilValue$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n AbstractRecoilValue: Recoil_RecoilValue_1,\n RecoilState: Recoil_RecoilValue_2,\n RecoilValueReadOnly: Recoil_RecoilValue_3,\n isRecoilValue: Recoil_RecoilValue_4\n});\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function sprintf(format, ...args) {\n let index = 0;\n return format.replace(/%s/g, ()=>String(args[index++]));\n}\nvar sprintf_1 = sprintf;\nfunction expectationViolation(format, ...args) {}\nvar expectationViolation_1 = expectationViolation;\n// @oss-only\nvar Recoil_expectationViolation = expectationViolation_1;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Creates a new iterable whose output is generated by passing the input\n * iterable's values through the mapper function.\n */ function mapIterable(iterable, callback) {\n // Use generator to create iterable/iterator\n return function*() {\n let index = 0;\n for (const value of iterable)yield callback(value, index++);\n }();\n}\nvar Recoil_mapIterable = mapIterable;\nconst { isFastRefreshEnabled: isFastRefreshEnabled$1 } = Recoil_ReactMode;\nclass DefaultValue {\n}\nconst DEFAULT_VALUE = new DefaultValue();\n// flowlint-next-line unclear-type:off\nconst nodes = new Map(); // flowlint-next-line unclear-type:off\nconst recoilValues = new Map();\n/* eslint-disable no-redeclare */ function recoilValuesForKeys(keys) {\n return Recoil_mapIterable(keys, (key)=>Recoil_nullthrows(recoilValues.get(key)));\n}\nfunction checkForDuplicateAtomKey(key) {\n if (nodes.has(key)) {\n const message = `Duplicate atom key \"${key}\". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;\n // @fb-only: recoverableViolation(message, 'recoil');\n console.warn(message); // @oss-only\n }\n}\nfunction registerNode(node) {\n if (Recoil_RecoilEnv.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED) checkForDuplicateAtomKey(node.key);\n nodes.set(node.key, node);\n const recoilValue = node.set == null ? new Recoil_RecoilValue$1.RecoilValueReadOnly(node.key) : new Recoil_RecoilValue$1.RecoilState(node.key);\n recoilValues.set(node.key, recoilValue);\n return recoilValue;\n}\n/* eslint-enable no-redeclare */ class NodeMissingError extends Error {\n} // flowlint-next-line unclear-type:off\nfunction getNode(key) {\n const node = nodes.get(key);\n if (node == null) throw new NodeMissingError(`Missing definition for RecoilValue: \"${key}\"\"`);\n return node;\n} // flowlint-next-line unclear-type:off\nfunction getNodeMaybe(key) {\n return nodes.get(key);\n}\nconst configDeletionHandlers = new Map();\nfunction deleteNodeConfigIfPossible(key) {\n var _node$shouldDeleteCon;\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n const node = nodes.get(key);\n if (node !== null && node !== void 0 && (_node$shouldDeleteCon = node.shouldDeleteConfigOnRelease) !== null && _node$shouldDeleteCon !== void 0 && _node$shouldDeleteCon.call(node)) {\n var _getConfigDeletionHan;\n nodes.delete(key);\n (_getConfigDeletionHan = getConfigDeletionHandler(key)) === null || _getConfigDeletionHan === void 0 || _getConfigDeletionHan();\n configDeletionHandlers.delete(key);\n }\n}\nfunction setConfigDeletionHandler(key, fn) {\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n if (fn === undefined) configDeletionHandlers.delete(key);\n else configDeletionHandlers.set(key, fn);\n}\nfunction getConfigDeletionHandler(key) {\n return configDeletionHandlers.get(key);\n}\nvar Recoil_Node = {\n nodes,\n recoilValues,\n registerNode,\n getNode,\n getNodeMaybe,\n deleteNodeConfigIfPossible,\n setConfigDeletionHandler,\n getConfigDeletionHandler,\n recoilValuesForKeys,\n NodeMissingError,\n DefaultValue,\n DEFAULT_VALUE\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function enqueueExecution(s, f) {\n f();\n}\nvar Recoil_Queue = {\n enqueueExecution\n};\nfunction createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n}\nvar hamt_1 = createCommonjsModule(function(module) {\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n } : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n /**\n @fileOverview Hash Array Mapped Trie.\n\n Code based on: https://github.com/exclipy/pdata\n*/ var hamt = {}; // export\n /* Configuration\n ******************************************************************************/ var SIZE = 5;\n var BUCKET_SIZE = Math.pow(2, SIZE);\n var MASK = BUCKET_SIZE - 1;\n var MAX_INDEX_NODE = BUCKET_SIZE / 2;\n var MIN_ARRAY_NODE = BUCKET_SIZE / 4;\n /*\n ******************************************************************************/ var nothing = {};\n var constant = function constant(x) {\n return function() {\n return x;\n };\n };\n /**\n Get 32 bit hash of string.\n\n Based on:\n http://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery\n*/ var hash = hamt.hash = function(str) {\n var type = typeof str === \"undefined\" ? \"undefined\" : _typeof(str);\n if (type === \"number\") return str;\n if (type !== \"string\") str += \"\";\n var hash = 0;\n for(var i = 0, len = str.length; i < len; ++i){\n var c = str.charCodeAt(i);\n hash = (hash << 5) - hash + c | 0;\n }\n return hash;\n };\n /* Bit Ops\n ******************************************************************************/ /**\n Hamming weight.\n\n Taken from: http://jsperf.com/hamming-weight\n*/ var popcount = function popcount(x) {\n x -= x >> 1 & 0x55555555;\n x = (x & 0x33333333) + (x >> 2 & 0x33333333);\n x = x + (x >> 4) & 0x0f0f0f0f;\n x += x >> 8;\n x += x >> 16;\n return x & 0x7f;\n };\n var hashFragment = function hashFragment(shift, h) {\n return h >>> shift & MASK;\n };\n var toBitmap = function toBitmap(x) {\n return 1 << x;\n };\n var fromBitmap = function fromBitmap(bitmap, bit) {\n return popcount(bitmap & bit - 1);\n };\n /* Array Ops\n ******************************************************************************/ /**\n Set a value in an array.\n\n @param mutate Should the input array be mutated?\n @param at Index to change.\n @param v New value\n @param arr Array.\n*/ var arrayUpdate = function arrayUpdate(mutate, at, v, arr) {\n var out = arr;\n if (!mutate) {\n var len = arr.length;\n out = new Array(len);\n for(var i = 0; i < len; ++i)out[i] = arr[i];\n }\n out[at] = v;\n return out;\n };\n /**\n Remove a value from an array.\n\n @param mutate Should the input array be mutated?\n @param at Index to remove.\n @param arr Array.\n*/ var arraySpliceOut = function arraySpliceOut(mutate, at, arr) {\n var newLen = arr.length - 1;\n var i = 0;\n var g = 0;\n var out = arr;\n if (mutate) i = g = at;\n else {\n out = new Array(newLen);\n while(i < at)out[g++] = arr[i++];\n }\n ++i;\n while(i <= newLen)out[g++] = arr[i++];\n if (mutate) out.length = newLen;\n return out;\n };\n /**\n Insert a value into an array.\n\n @param mutate Should the input array be mutated?\n @param at Index to insert at.\n @param v Value to insert,\n @param arr Array.\n*/ var arraySpliceIn = function arraySpliceIn(mutate, at, v, arr) {\n var len = arr.length;\n if (mutate) {\n var _i = len;\n while(_i >= at)arr[_i--] = arr[_i];\n arr[at] = v;\n return arr;\n }\n var i = 0, g = 0;\n var out = new Array(len + 1);\n while(i < at)out[g++] = arr[i++];\n out[at] = v;\n while(i < len)out[++g] = arr[i++];\n return out;\n };\n /* Node Structures\n ******************************************************************************/ var LEAF = 1;\n var COLLISION = 2;\n var INDEX = 3;\n var ARRAY = 4;\n /**\n Empty node.\n*/ var empty = {\n __hamt_isEmpty: true\n };\n var isEmptyNode = function isEmptyNode(x) {\n return x === empty || x && x.__hamt_isEmpty;\n };\n /**\n Leaf holding a value.\n\n @member edit Edit of the node.\n @member hash Hash of key.\n @member key Key.\n @member value Value stored.\n*/ var Leaf = function Leaf(edit, hash, key, value) {\n return {\n type: LEAF,\n edit: edit,\n hash: hash,\n key: key,\n value: value,\n _modify: Leaf__modify\n };\n };\n /**\n Leaf holding multiple values with the same hash but different keys.\n\n @member edit Edit of the node.\n @member hash Hash of key.\n @member children Array of collision children node.\n*/ var Collision = function Collision(edit, hash, children) {\n return {\n type: COLLISION,\n edit: edit,\n hash: hash,\n children: children,\n _modify: Collision__modify\n };\n };\n /**\n Internal node with a sparse set of children.\n\n Uses a bitmap and array to pack children.\n\n @member edit Edit of the node.\n @member mask Bitmap that encode the positions of children in the array.\n @member children Array of child nodes.\n*/ var IndexedNode = function IndexedNode(edit, mask, children) {\n return {\n type: INDEX,\n edit: edit,\n mask: mask,\n children: children,\n _modify: IndexedNode__modify\n };\n };\n /**\n Internal node with many children.\n\n @member edit Edit of the node.\n @member size Number of children.\n @member children Array of child nodes.\n*/ var ArrayNode = function ArrayNode(edit, size, children) {\n return {\n type: ARRAY,\n edit: edit,\n size: size,\n children: children,\n _modify: ArrayNode__modify\n };\n };\n /**\n Is `node` a leaf node?\n*/ var isLeaf = function isLeaf(node) {\n return node === empty || node.type === LEAF || node.type === COLLISION;\n };\n /* Internal node operations.\n ******************************************************************************/ /**\n Expand an indexed node into an array node.\n\n @param edit Current edit.\n @param frag Index of added child.\n @param child Added child.\n @param mask Index node mask before child added.\n @param subNodes Index node children before child added.\n*/ var expand = function expand(edit, frag, child, bitmap, subNodes) {\n var arr = [];\n var bit = bitmap;\n var count = 0;\n for(var i = 0; bit; ++i){\n if (bit & 1) arr[i] = subNodes[count++];\n bit >>>= 1;\n }\n arr[frag] = child;\n return ArrayNode(edit, count + 1, arr);\n };\n /**\n Collapse an array node into a indexed node.\n\n @param edit Current edit.\n @param count Number of elements in new array.\n @param removed Index of removed element.\n @param elements Array node children before remove.\n*/ var pack = function pack(edit, count, removed, elements) {\n var children = new Array(count - 1);\n var g = 0;\n var bitmap = 0;\n for(var i = 0, len = elements.length; i < len; ++i)if (i !== removed) {\n var elem = elements[i];\n if (elem && !isEmptyNode(elem)) {\n children[g++] = elem;\n bitmap |= 1 << i;\n }\n }\n return IndexedNode(edit, bitmap, children);\n };\n /**\n Merge two leaf nodes.\n\n @param shift Current shift.\n @param h1 Node 1 hash.\n @param n1 Node 1.\n @param h2 Node 2 hash.\n @param n2 Node 2.\n*/ var mergeLeaves = function mergeLeaves(edit, shift, h1, n1, h2, n2) {\n if (h1 === h2) return Collision(edit, h1, [\n n2,\n n1\n ]);\n var subH1 = hashFragment(shift, h1);\n var subH2 = hashFragment(shift, h2);\n return IndexedNode(edit, toBitmap(subH1) | toBitmap(subH2), subH1 === subH2 ? [\n mergeLeaves(edit, shift + SIZE, h1, n1, h2, n2)\n ] : subH1 < subH2 ? [\n n1,\n n2\n ] : [\n n2,\n n1\n ]);\n };\n /**\n Update an entry in a collision list.\n\n @param mutate Should mutation be used?\n @param edit Current edit.\n @param keyEq Key compare function.\n @param hash Hash of collision.\n @param list Collision list.\n @param f Update function.\n @param k Key to update.\n @param size Size ref.\n*/ var updateCollisionList = function updateCollisionList(mutate, edit, keyEq, h, list, f, k, size) {\n var len = list.length;\n for(var i = 0; i < len; ++i){\n var child = list[i];\n if (keyEq(k, child.key)) {\n var value = child.value;\n var _newValue = f(value);\n if (_newValue === value) return list;\n if (_newValue === nothing) {\n --size.value;\n return arraySpliceOut(mutate, i, list);\n }\n return arrayUpdate(mutate, i, Leaf(edit, h, k, _newValue), list);\n }\n }\n var newValue = f();\n if (newValue === nothing) return list;\n ++size.value;\n return arrayUpdate(mutate, len, Leaf(edit, h, k, newValue), list);\n };\n var canEditNode = function canEditNode(edit, node) {\n return edit === node.edit;\n };\n /* Editing\n ******************************************************************************/ var Leaf__modify = function Leaf__modify(edit, keyEq, shift, f, h, k, size) {\n if (keyEq(k, this.key)) {\n var _v = f(this.value);\n if (_v === this.value) return this;\n else if (_v === nothing) {\n --size.value;\n return empty;\n }\n if (canEditNode(edit, this)) {\n this.value = _v;\n return this;\n }\n return Leaf(edit, h, k, _v);\n }\n var v = f();\n if (v === nothing) return this;\n ++size.value;\n return mergeLeaves(edit, shift, this.hash, this, h, Leaf(edit, h, k, v));\n };\n var Collision__modify = function Collision__modify(edit, keyEq, shift, f, h, k, size) {\n if (h === this.hash) {\n var canEdit = canEditNode(edit, this);\n var list = updateCollisionList(canEdit, edit, keyEq, this.hash, this.children, f, k, size);\n if (list === this.children) return this;\n return list.length > 1 ? Collision(edit, this.hash, list) : list[0]; // collapse single element collision list\n }\n var v = f();\n if (v === nothing) return this;\n ++size.value;\n return mergeLeaves(edit, shift, this.hash, this, h, Leaf(edit, h, k, v));\n };\n var IndexedNode__modify = function IndexedNode__modify(edit, keyEq, shift, f, h, k, size) {\n var mask = this.mask;\n var children = this.children;\n var frag = hashFragment(shift, h);\n var bit = toBitmap(frag);\n var indx = fromBitmap(mask, bit);\n var exists = mask & bit;\n var current = exists ? children[indx] : empty;\n var child = current._modify(edit, keyEq, shift + SIZE, f, h, k, size);\n if (current === child) return this;\n var canEdit = canEditNode(edit, this);\n var bitmap = mask;\n var newChildren = void 0;\n if (exists && isEmptyNode(child)) {\n // remove\n bitmap &= ~bit;\n if (!bitmap) return empty;\n if (children.length <= 2 && isLeaf(children[indx ^ 1])) return children[indx ^ 1]; // collapse\n newChildren = arraySpliceOut(canEdit, indx, children);\n } else if (!exists && !isEmptyNode(child)) {\n // add\n if (children.length >= MAX_INDEX_NODE) return expand(edit, frag, child, mask, children);\n bitmap |= bit;\n newChildren = arraySpliceIn(canEdit, indx, child, children);\n } else // modify\n newChildren = arrayUpdate(canEdit, indx, child, children);\n if (canEdit) {\n this.mask = bitmap;\n this.children = newChildren;\n return this;\n }\n return IndexedNode(edit, bitmap, newChildren);\n };\n var ArrayNode__modify = function ArrayNode__modify(edit, keyEq, shift, f, h, k, size) {\n var count = this.size;\n var children = this.children;\n var frag = hashFragment(shift, h);\n var child = children[frag];\n var newChild = (child || empty)._modify(edit, keyEq, shift + SIZE, f, h, k, size);\n if (child === newChild) return this;\n var canEdit = canEditNode(edit, this);\n var newChildren = void 0;\n if (isEmptyNode(child) && !isEmptyNode(newChild)) {\n // add\n ++count;\n newChildren = arrayUpdate(canEdit, frag, newChild, children);\n } else if (!isEmptyNode(child) && isEmptyNode(newChild)) {\n // remove\n --count;\n if (count <= MIN_ARRAY_NODE) return pack(edit, count, frag, children);\n newChildren = arrayUpdate(canEdit, frag, empty, children);\n } else // modify\n newChildren = arrayUpdate(canEdit, frag, newChild, children);\n if (canEdit) {\n this.size = count;\n this.children = newChildren;\n return this;\n }\n return ArrayNode(edit, count, newChildren);\n };\n empty._modify = function(edit, keyEq, shift, f, h, k, size) {\n var v = f();\n if (v === nothing) return empty;\n ++size.value;\n return Leaf(edit, h, k, v);\n };\n /*\n ******************************************************************************/ function Map1(editable, edit, config, root, size) {\n this._editable = editable;\n this._edit = edit;\n this._config = config;\n this._root = root;\n this._size = size;\n }\n Map1.prototype.setTree = function(newRoot, newSize) {\n if (this._editable) {\n this._root = newRoot;\n this._size = newSize;\n return this;\n }\n return newRoot === this._root ? this : new Map1(this._editable, this._edit, this._config, newRoot, newSize);\n };\n /* Queries\n ******************************************************************************/ /**\n Lookup the value for `key` in `map` using a custom `hash`.\n\n Returns the value or `alt` if none.\n*/ var tryGetHash = hamt.tryGetHash = function(alt, hash, key, map) {\n var node = map._root;\n var shift = 0;\n var keyEq = map._config.keyEq;\n while(true)switch(node.type){\n case LEAF:\n return keyEq(key, node.key) ? node.value : alt;\n case COLLISION:\n if (hash === node.hash) {\n var children = node.children;\n for(var i = 0, len = children.length; i < len; ++i){\n var child = children[i];\n if (keyEq(key, child.key)) return child.value;\n }\n }\n return alt;\n case INDEX:\n var frag = hashFragment(shift, hash);\n var bit = toBitmap(frag);\n if (node.mask & bit) {\n node = node.children[fromBitmap(node.mask, bit)];\n shift += SIZE;\n break;\n }\n return alt;\n case ARRAY:\n node = node.children[hashFragment(shift, hash)];\n if (node) {\n shift += SIZE;\n break;\n }\n return alt;\n default:\n return alt;\n }\n };\n Map1.prototype.tryGetHash = function(alt, hash, key) {\n return tryGetHash(alt, hash, key, this);\n };\n /**\n Lookup the value for `key` in `map` using internal hash function.\n\n @see `tryGetHash`\n*/ var tryGet = hamt.tryGet = function(alt, key, map) {\n return tryGetHash(alt, map._config.hash(key), key, map);\n };\n Map1.prototype.tryGet = function(alt, key) {\n return tryGet(alt, key, this);\n };\n /**\n Lookup the value for `key` in `map` using a custom `hash`.\n\n Returns the value or `undefined` if none.\n*/ var getHash = hamt.getHash = function(hash, key, map) {\n return tryGetHash(undefined, hash, key, map);\n };\n Map1.prototype.getHash = function(hash, key) {\n return getHash(hash, key, this);\n };\n /**\n Lookup the value for `key` in `map` using internal hash function.\n\n @see `get`\n*/ var get = hamt.get = function(key, map) {\n return tryGetHash(undefined, map._config.hash(key), key, map);\n };\n Map1.prototype.get = function(key, alt) {\n return tryGet(alt, key, this);\n };\n /**\n Does an entry exist for `key` in `map`? Uses custom `hash`.\n*/ var hasHash = hamt.has = function(hash, key, map) {\n return tryGetHash(nothing, hash, key, map) !== nothing;\n };\n Map1.prototype.hasHash = function(hash, key) {\n return hasHash(hash, key, this);\n };\n /**\n Does an entry exist for `key` in `map`? Uses internal hash function.\n*/ var has = hamt.has = function(key, map) {\n return hasHash(map._config.hash(key), key, map);\n };\n Map1.prototype.has = function(key) {\n return has(key, this);\n };\n var defKeyCompare = function defKeyCompare(x, y) {\n return x === y;\n };\n /**\n Create an empty map.\n\n @param config Configuration.\n*/ hamt.make = function(config) {\n return new Map1(0, 0, {\n keyEq: config && config.keyEq || defKeyCompare,\n hash: config && config.hash || hash\n }, empty, 0);\n };\n /**\n Empty map.\n*/ hamt.empty = hamt.make();\n /**\n Does `map` contain any elements?\n*/ var isEmpty = hamt.isEmpty = function(map) {\n return map && !!isEmptyNode(map._root);\n };\n Map1.prototype.isEmpty = function() {\n return isEmpty(this);\n };\n /* Updates\n ******************************************************************************/ /**\n Alter the value stored for `key` in `map` using function `f` using\n custom hash.\n\n `f` is invoked with the current value for `k` if it exists,\n or no arguments if no such value exists. `modify` will always either\n update or insert a value into the map.\n\n Returns a map with the modified value. Does not alter `map`.\n*/ var modifyHash = hamt.modifyHash = function(f, hash, key, map) {\n var size = {\n value: map._size\n };\n var newRoot = map._root._modify(map._editable ? map._edit : NaN, map._config.keyEq, 0, f, hash, key, size);\n return map.setTree(newRoot, size.value);\n };\n Map1.prototype.modifyHash = function(hash, key, f) {\n return modifyHash(f, hash, key, this);\n };\n /**\n Alter the value stored for `key` in `map` using function `f` using\n internal hash function.\n\n @see `modifyHash`\n*/ var modify = hamt.modify = function(f, key, map) {\n return modifyHash(f, map._config.hash(key), key, map);\n };\n Map1.prototype.modify = function(key, f) {\n return modify(f, key, this);\n };\n /**\n Store `value` for `key` in `map` using custom `hash`.\n\n Returns a map with the modified value. Does not alter `map`.\n*/ var setHash = hamt.setHash = function(hash, key, value, map) {\n return modifyHash(constant(value), hash, key, map);\n };\n Map1.prototype.setHash = function(hash, key, value) {\n return setHash(hash, key, value, this);\n };\n /**\n Store `value` for `key` in `map` using internal hash function.\n\n @see `setHash`\n*/ var set = hamt.set = function(key, value, map) {\n return setHash(map._config.hash(key), key, value, map);\n };\n Map1.prototype.set = function(key, value) {\n return set(key, value, this);\n };\n /**\n Remove the entry for `key` in `map`.\n\n Returns a map with the value removed. Does not alter `map`.\n*/ var del = constant(nothing);\n var removeHash = hamt.removeHash = function(hash, key, map) {\n return modifyHash(del, hash, key, map);\n };\n Map1.prototype.removeHash = Map1.prototype.deleteHash = function(hash, key) {\n return removeHash(hash, key, this);\n };\n /**\n Remove the entry for `key` in `map` using internal hash function.\n\n @see `removeHash`\n*/ var remove = hamt.remove = function(key, map) {\n return removeHash(map._config.hash(key), key, map);\n };\n Map1.prototype.remove = Map1.prototype.delete = function(key) {\n return remove(key, this);\n };\n /* Mutation\n ******************************************************************************/ /**\n Mark `map` as mutable.\n */ var beginMutation = hamt.beginMutation = function(map) {\n return new Map1(map._editable + 1, map._edit + 1, map._config, map._root, map._size);\n };\n Map1.prototype.beginMutation = function() {\n return beginMutation(this);\n };\n /**\n Mark `map` as immutable.\n */ var endMutation = hamt.endMutation = function(map) {\n map._editable = map._editable && map._editable - 1;\n return map;\n };\n Map1.prototype.endMutation = function() {\n return endMutation(this);\n };\n /**\n Mutate `map` within the context of `f`.\n @param f\n @param map HAMT\n*/ var mutate = hamt.mutate = function(f, map) {\n var transient = beginMutation(map);\n f(transient);\n return endMutation(transient);\n };\n Map1.prototype.mutate = function(f) {\n return mutate(f, this);\n };\n /* Traversal\n ******************************************************************************/ /**\n Apply a continuation.\n*/ var appk = function appk(k) {\n return k && lazyVisitChildren(k[0], k[1], k[2], k[3], k[4]);\n };\n /**\n Recursively visit all values stored in an array of nodes lazily.\n*/ var lazyVisitChildren = function lazyVisitChildren(len, children, i, f, k) {\n while(i < len){\n var child = children[i++];\n if (child && !isEmptyNode(child)) return lazyVisit(child, f, [\n len,\n children,\n i,\n f,\n k\n ]);\n }\n return appk(k);\n };\n /**\n Recursively visit all values stored in `node` lazily.\n*/ var lazyVisit = function lazyVisit(node, f, k) {\n switch(node.type){\n case LEAF:\n return {\n value: f(node),\n rest: k\n };\n case COLLISION:\n case ARRAY:\n case INDEX:\n var children = node.children;\n return lazyVisitChildren(children.length, children, 0, f, k);\n default:\n return appk(k);\n }\n };\n var DONE = {\n done: true\n };\n /**\n Javascript iterator over a map.\n*/ function MapIterator(v) {\n this.v = v;\n }\n MapIterator.prototype.next = function() {\n if (!this.v) return DONE;\n var v0 = this.v;\n this.v = appk(v0.rest);\n return v0;\n };\n MapIterator.prototype[Symbol.iterator] = function() {\n return this;\n };\n /**\n Lazily visit each value in map with function `f`.\n*/ var visit = function visit(map, f) {\n return new MapIterator(lazyVisit(map._root, f));\n };\n /**\n Get a Javascsript iterator of `map`.\n\n Iterates over `[key, value]` arrays.\n*/ var buildPairs = function buildPairs(x) {\n return [\n x.key,\n x.value\n ];\n };\n var entries = hamt.entries = function(map) {\n return visit(map, buildPairs);\n };\n Map1.prototype.entries = Map1.prototype[Symbol.iterator] = function() {\n return entries(this);\n };\n /**\n Get array of all keys in `map`.\n\n Order is not guaranteed.\n*/ var buildKeys = function buildKeys(x) {\n return x.key;\n };\n var keys = hamt.keys = function(map) {\n return visit(map, buildKeys);\n };\n Map1.prototype.keys = function() {\n return keys(this);\n };\n /**\n Get array of all values in `map`.\n\n Order is not guaranteed, duplicates are preserved.\n*/ var buildValues = function buildValues(x) {\n return x.value;\n };\n var values = hamt.values = Map1.prototype.values = function(map) {\n return visit(map, buildValues);\n };\n Map1.prototype.values = function() {\n return values(this);\n };\n /* Fold\n ******************************************************************************/ /**\n Visit every entry in the map, aggregating data.\n\n Order of nodes is not guaranteed.\n\n @param f Function mapping accumulated value, value, and key to new value.\n @param z Starting value.\n @param m HAMT\n*/ var fold = hamt.fold = function(f, z, m) {\n var root = m._root;\n if (root.type === LEAF) return f(z, root.value, root.key);\n var toVisit = [\n root.children\n ];\n var children = void 0;\n while(children = toVisit.pop())for(var i = 0, len = children.length; i < len;){\n var child = children[i++];\n if (child && child.type) {\n if (child.type === LEAF) z = f(z, child.value, child.key);\n else toVisit.push(child.children);\n }\n }\n return z;\n };\n Map1.prototype.fold = function(f, z) {\n return fold(f, z, this);\n };\n /**\n Visit every entry in the map, aggregating data.\n\n Order of nodes is not guaranteed.\n\n @param f Function invoked with value and key\n @param map HAMT\n*/ var forEach = hamt.forEach = function(f, map) {\n return fold(function(_, value, key) {\n return f(value, key, map);\n }, null, map);\n };\n Map1.prototype.forEach = function(f) {\n return forEach(f, this);\n };\n /* Aggregate\n ******************************************************************************/ /**\n Get the number of entries in `map`.\n*/ var count = hamt.count = function(map) {\n return map._size;\n };\n Map1.prototype.count = function() {\n return count(this);\n };\n Object.defineProperty(Map1.prototype, \"size\", {\n get: Map1.prototype.count\n });\n /* Export\n ******************************************************************************/ if (module.exports) module.exports = hamt;\n else undefined.hamt = hamt;\n});\nclass BuiltInMap {\n constructor(existing){\n _defineProperty(this, \"_map\", void 0);\n this._map = new Map(existing === null || existing === void 0 ? void 0 : existing.entries());\n }\n keys() {\n return this._map.keys();\n }\n entries() {\n return this._map.entries();\n }\n get(k) {\n return this._map.get(k);\n }\n has(k) {\n return this._map.has(k);\n }\n set(k, v) {\n this._map.set(k, v);\n return this;\n }\n delete(k) {\n this._map.delete(k);\n return this;\n }\n clone() {\n return persistentMap(this);\n }\n toMap() {\n return new Map(this._map);\n }\n}\nclass HashArrayMappedTrieMap {\n // Because hamt.empty is not a function there is no way to introduce type\n // parameters on it, so empty is typed as HAMTPlusMap.\n // $FlowIssue\n constructor(existing){\n _defineProperty(this, \"_hamt\", hamt_1.empty.beginMutation());\n if (existing instanceof HashArrayMappedTrieMap) {\n const h = existing._hamt.endMutation();\n existing._hamt = h.beginMutation();\n this._hamt = h.beginMutation();\n } else if (existing) for (const [k, v] of existing.entries())this._hamt.set(k, v);\n }\n keys() {\n return this._hamt.keys();\n }\n entries() {\n return this._hamt.entries();\n }\n get(k) {\n return this._hamt.get(k);\n }\n has(k) {\n return this._hamt.has(k);\n }\n set(k, v) {\n this._hamt.set(k, v);\n return this;\n }\n delete(k) {\n this._hamt.delete(k);\n return this;\n }\n clone() {\n return persistentMap(this);\n }\n toMap() {\n return new Map(this._hamt);\n }\n}\nfunction persistentMap(existing) {\n if (Recoil_gkx(\"recoil_hamt_2020\")) return new HashArrayMappedTrieMap(existing);\n else return new BuiltInMap(existing);\n}\nvar Recoil_PersistentMap = {\n persistentMap\n};\nvar Recoil_PersistentMap_1 = Recoil_PersistentMap.persistentMap;\nvar Recoil_PersistentMap$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n persistentMap: Recoil_PersistentMap_1\n});\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Returns a set containing all of the values from the first set that are not\n * present in any of the subsequent sets.\n *\n * Note: this is written procedurally (i.e., without filterSet) for performant\n * use in tight loops.\n */ function differenceSets(set, ...setsWithValuesToRemove) {\n const ret = new Set();\n FIRST: for (const value of set){\n for (const otherSet of setsWithValuesToRemove){\n if (otherSet.has(value)) continue FIRST;\n }\n ret.add(value);\n }\n return ret;\n}\nvar Recoil_differenceSets = differenceSets;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Returns a new Map object with the same keys as the original, but with the\n * values replaced with the output of the given callback function.\n */ function mapMap(map, callback) {\n const result = new Map();\n map.forEach((value, key)=>{\n result.set(key, callback(value, key));\n });\n return result;\n}\nvar Recoil_mapMap = mapMap;\nfunction makeGraph() {\n return {\n nodeDeps: new Map(),\n nodeToNodeSubscriptions: new Map()\n };\n}\nfunction cloneGraph(graph) {\n return {\n nodeDeps: Recoil_mapMap(graph.nodeDeps, (s)=>new Set(s)),\n nodeToNodeSubscriptions: Recoil_mapMap(graph.nodeToNodeSubscriptions, (s)=>new Set(s))\n };\n} // Note that this overwrites the deps of existing nodes, rather than unioning\n// the new deps with the old deps.\nfunction mergeDepsIntoGraph(key, newDeps, graph, // graph compared with olderGraph:\nolderGraph) {\n const { nodeDeps , nodeToNodeSubscriptions } = graph;\n const oldDeps = nodeDeps.get(key);\n if (oldDeps && olderGraph && oldDeps !== olderGraph.nodeDeps.get(key)) return;\n // Update nodeDeps:\n nodeDeps.set(key, newDeps); // Add new deps to nodeToNodeSubscriptions:\n const addedDeps = oldDeps == null ? newDeps : Recoil_differenceSets(newDeps, oldDeps);\n for (const dep of addedDeps){\n if (!nodeToNodeSubscriptions.has(dep)) nodeToNodeSubscriptions.set(dep, new Set());\n const existing = Recoil_nullthrows(nodeToNodeSubscriptions.get(dep));\n existing.add(key);\n } // Remove removed deps from nodeToNodeSubscriptions:\n if (oldDeps) {\n const removedDeps = Recoil_differenceSets(oldDeps, newDeps);\n for (const dep of removedDeps){\n if (!nodeToNodeSubscriptions.has(dep)) return;\n const existing = Recoil_nullthrows(nodeToNodeSubscriptions.get(dep));\n existing.delete(key);\n if (existing.size === 0) nodeToNodeSubscriptions.delete(dep);\n }\n }\n}\nfunction saveDepsToStore(key, deps, store, version) {\n var _storeState$nextTree, _storeState$previousT, _storeState$previousT2, _storeState$previousT3;\n const storeState = store.getState();\n if (!(version === storeState.currentTree.version || version === ((_storeState$nextTree = storeState.nextTree) === null || _storeState$nextTree === void 0 ? void 0 : _storeState$nextTree.version) || version === ((_storeState$previousT = storeState.previousTree) === null || _storeState$previousT === void 0 ? void 0 : _storeState$previousT.version))) Recoil_recoverableViolation(\"Tried to save dependencies to a discarded tree\");\n // Merge the dependencies discovered into the store's dependency map\n // for the version that was read:\n const graph = store.getGraph(version);\n mergeDepsIntoGraph(key, deps, graph); // If this version is not the latest version, also write these dependencies\n // into later versions if they don't already have their own:\n if (version === ((_storeState$previousT2 = storeState.previousTree) === null || _storeState$previousT2 === void 0 ? void 0 : _storeState$previousT2.version)) {\n const currentGraph = store.getGraph(storeState.currentTree.version);\n mergeDepsIntoGraph(key, deps, currentGraph, graph);\n }\n if (version === ((_storeState$previousT3 = storeState.previousTree) === null || _storeState$previousT3 === void 0 ? void 0 : _storeState$previousT3.version) || version === storeState.currentTree.version) {\n var _storeState$nextTree2;\n const nextVersion = (_storeState$nextTree2 = storeState.nextTree) === null || _storeState$nextTree2 === void 0 ? void 0 : _storeState$nextTree2.version;\n if (nextVersion !== undefined) {\n const nextGraph = store.getGraph(nextVersion);\n mergeDepsIntoGraph(key, deps, nextGraph, graph);\n }\n }\n}\nvar Recoil_Graph = {\n cloneGraph,\n graph: makeGraph,\n saveDepsToStore\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ let nextTreeStateVersion = 0;\nconst getNextTreeStateVersion = ()=>nextTreeStateVersion++;\nlet nextStoreID = 0;\nconst getNextStoreID = ()=>nextStoreID++;\nlet nextComponentID = 0;\nconst getNextComponentID = ()=>nextComponentID++;\nvar Recoil_Keys = {\n getNextTreeStateVersion,\n getNextStoreID,\n getNextComponentID\n};\nconst { persistentMap: persistentMap$1 } = Recoil_PersistentMap$1;\nconst { graph } = Recoil_Graph;\nconst { getNextTreeStateVersion: getNextTreeStateVersion$1 } = Recoil_Keys;\nfunction makeEmptyTreeState() {\n const version = getNextTreeStateVersion$1();\n return {\n version,\n stateID: version,\n transactionMetadata: {},\n dirtyAtoms: new Set(),\n atomValues: persistentMap$1(),\n nonvalidatedAtoms: persistentMap$1()\n };\n}\nfunction makeEmptyStoreState() {\n const currentTree = makeEmptyTreeState();\n return {\n currentTree,\n nextTree: null,\n previousTree: null,\n commitDepth: 0,\n knownAtoms: new Set(),\n knownSelectors: new Set(),\n transactionSubscriptions: new Map(),\n nodeTransactionSubscriptions: new Map(),\n nodeToComponentSubscriptions: new Map(),\n queuedComponentCallbacks_DEPRECATED: [],\n suspendedComponentResolvers: new Set(),\n graphsByVersion: new Map().set(currentTree.version, graph()),\n retention: {\n referenceCounts: new Map(),\n nodesRetainedByZone: new Map(),\n retainablesToCheckForRelease: new Set()\n },\n nodeCleanupFunctions: new Map()\n };\n}\nvar Recoil_State = {\n makeEmptyTreeState,\n makeEmptyStoreState,\n getNextTreeStateVersion: getNextTreeStateVersion$1\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ class RetentionZone {\n}\nfunction retentionZone() {\n return new RetentionZone();\n}\nvar Recoil_RetentionZone = {\n RetentionZone,\n retentionZone\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Utilities for working with built-in Maps and Sets without mutating them.\n *\n * \n * @format\n * @oncall recoil\n */ function setByAddingToSet(set, v) {\n const next = new Set(set);\n next.add(v);\n return next;\n}\nfunction setByDeletingFromSet(set, v) {\n const next = new Set(set);\n next.delete(v);\n return next;\n}\nfunction mapBySettingInMap(map, k, v) {\n const next = new Map(map);\n next.set(k, v);\n return next;\n}\nfunction mapByUpdatingInMap(map, k, updater) {\n const next = new Map(map);\n next.set(k, updater(next.get(k)));\n return next;\n}\nfunction mapByDeletingFromMap(map, k) {\n const next = new Map(map);\n next.delete(k);\n return next;\n}\nfunction mapByDeletingMultipleFromMap(map, ks) {\n const next = new Map(map);\n ks.forEach((k)=>next.delete(k));\n return next;\n}\nvar Recoil_CopyOnWrite = {\n setByAddingToSet,\n setByDeletingFromSet,\n mapBySettingInMap,\n mapByUpdatingInMap,\n mapByDeletingFromMap,\n mapByDeletingMultipleFromMap\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Creates a new iterable whose output is generated by passing the input\n * iterable's values through the filter function.\n */ function* filterIterable(iterable, predicate) {\n // Use generator to create iterable/iterator\n let index = 0;\n for (const value of iterable)if (predicate(value, index++)) yield value;\n}\nvar Recoil_filterIterable = filterIterable;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Return a proxy object based on the provided base and factories objects.\n * The proxy will include all properties of the base object as-is.\n * The factories object contains callbacks to obtain the values of the properies\n * for its keys.\n *\n * This is useful for providing users an object where some properties may be\n * lazily computed only on first access.\n */ // $FlowIssue[unclear-type]\nfunction lazyProxy(base, factories) {\n const proxy = new Proxy(base, {\n // Compute and cache lazy property if not already done.\n get: (target, prop)=>{\n if (!(prop in target) && prop in factories) target[prop] = factories[prop]();\n return target[prop];\n },\n // This method allows user to iterate keys as normal\n ownKeys: (target)=>{\n return Object.keys(target);\n }\n }); // $FlowIssue[incompatible-return]\n return proxy;\n}\nvar Recoil_lazyProxy = lazyProxy;\nconst { getNode: getNode$1 , getNodeMaybe: getNodeMaybe$1 , recoilValuesForKeys: recoilValuesForKeys$1 } = Recoil_Node;\nconst { RetentionZone: RetentionZone$1 } = Recoil_RetentionZone;\nconst { setByAddingToSet: setByAddingToSet$1 } = Recoil_CopyOnWrite;\n// flowlint-next-line unclear-type:off\nconst emptySet = Object.freeze(new Set());\nclass ReadOnlyRecoilValueError extends Error {\n}\nfunction initializeRetentionForNode(store, nodeKey, retainedBy) {\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return ()=>undefined;\n const { nodesRetainedByZone } = store.getState().retention;\n function addToZone(zone) {\n let set = nodesRetainedByZone.get(zone);\n if (!set) nodesRetainedByZone.set(zone, set = new Set());\n set.add(nodeKey);\n }\n if (retainedBy instanceof RetentionZone$1) addToZone(retainedBy);\n else if (Array.isArray(retainedBy)) for (const zone of retainedBy)addToZone(zone);\n return ()=>{\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n const { retention } = store.getState();\n function deleteFromZone(zone) {\n const set = retention.nodesRetainedByZone.get(zone);\n set === null || set === void 0 || set.delete(nodeKey);\n if (set && set.size === 0) retention.nodesRetainedByZone.delete(zone);\n }\n if (retainedBy instanceof RetentionZone$1) deleteFromZone(retainedBy);\n else if (Array.isArray(retainedBy)) for (const zone of retainedBy)deleteFromZone(zone);\n };\n}\nfunction initializeNodeIfNewToStore(store, treeState, key, trigger) {\n const storeState = store.getState();\n if (storeState.nodeCleanupFunctions.has(key)) return;\n const node = getNode$1(key);\n const retentionCleanup = initializeRetentionForNode(store, key, node.retainedBy);\n const nodeCleanup = node.init(store, treeState, trigger);\n storeState.nodeCleanupFunctions.set(key, ()=>{\n nodeCleanup();\n retentionCleanup();\n });\n}\nfunction initializeNode(store, key, trigger) {\n initializeNodeIfNewToStore(store, store.getState().currentTree, key, trigger);\n}\nfunction cleanUpNode(store, key) {\n var _state$nodeCleanupFun;\n const state = store.getState();\n (_state$nodeCleanupFun = state.nodeCleanupFunctions.get(key)) === null || _state$nodeCleanupFun === void 0 || _state$nodeCleanupFun();\n state.nodeCleanupFunctions.delete(key);\n} // Get the current value loadable of a node and update the state.\n// Update dependencies and subscriptions for selectors.\n// Update saved value validation for atoms.\nfunction getNodeLoadable(store, state, key) {\n initializeNodeIfNewToStore(store, state, key, \"get\");\n return getNode$1(key).get(store, state);\n} // Peek at the current value loadable for a node without any evaluation or state change\nfunction peekNodeLoadable(store, state, key) {\n return getNode$1(key).peek(store, state);\n} // Write value directly to state bypassing the Node interface as the node\n// definitions may not have been loaded yet when processing the initial snapshot.\nfunction setUnvalidatedAtomValue_DEPRECATED(state, key, newValue) {\n var _node$invalidate;\n const node = getNodeMaybe$1(key);\n node === null || node === void 0 || (_node$invalidate = node.invalidate) === null || _node$invalidate === void 0 || _node$invalidate.call(node, state);\n return {\n ...state,\n atomValues: state.atomValues.clone().delete(key),\n nonvalidatedAtoms: state.nonvalidatedAtoms.clone().set(key, newValue),\n dirtyAtoms: setByAddingToSet$1(state.dirtyAtoms, key)\n };\n} // Return the discovered dependencies and values to be written by setting\n// a node value. (Multiple values may be written due to selectors getting to\n// set upstreams; deps may be discovered because of reads in updater functions.)\nfunction setNodeValue(store, state, key, newValue) {\n const node = getNode$1(key);\n if (node.set == null) throw new ReadOnlyRecoilValueError(`Attempt to set read-only RecoilValue: ${key}`);\n const set = node.set; // so flow doesn't lose the above refinement.\n initializeNodeIfNewToStore(store, state, key, \"set\");\n return set(store, state, newValue);\n}\nfunction peekNodeInfo(store, state, key) {\n const storeState = store.getState();\n const graph = store.getGraph(state.version);\n const type = getNode$1(key).nodeType;\n return Recoil_lazyProxy({\n type\n }, {\n // $FlowFixMe[underconstrained-implicit-instantiation]\n loadable: ()=>peekNodeLoadable(store, state, key),\n isActive: ()=>storeState.knownAtoms.has(key) || storeState.knownSelectors.has(key),\n isSet: ()=>type === \"selector\" ? false : state.atomValues.has(key),\n isModified: ()=>state.dirtyAtoms.has(key),\n // Report current dependencies. If the node hasn't been evaluated, then\n // dependencies may be missing based on the current state.\n deps: ()=>{\n var _graph$nodeDeps$get;\n return recoilValuesForKeys$1((_graph$nodeDeps$get = graph.nodeDeps.get(key)) !== null && _graph$nodeDeps$get !== void 0 ? _graph$nodeDeps$get : []);\n },\n // Reports all \"current\" subscribers. Evaluating other nodes or\n // previous in-progress async evaluations may introduce new subscribers.\n subscribers: ()=>{\n var _storeState$nodeToCom, _storeState$nodeToCom2;\n return {\n nodes: recoilValuesForKeys$1(Recoil_filterIterable(getDownstreamNodes(store, state, new Set([\n key\n ])), (nodeKey)=>nodeKey !== key)),\n components: Recoil_mapIterable((_storeState$nodeToCom = (_storeState$nodeToCom2 = storeState.nodeToComponentSubscriptions.get(key)) === null || _storeState$nodeToCom2 === void 0 ? void 0 : _storeState$nodeToCom2.values()) !== null && _storeState$nodeToCom !== void 0 ? _storeState$nodeToCom : [], ([name])=>({\n name\n }))\n };\n }\n });\n} // Find all of the recursively dependent nodes\nfunction getDownstreamNodes(store, state, keys) {\n const visitedNodes = new Set();\n const visitingNodes = Array.from(keys);\n const graph = store.getGraph(state.version);\n for(let key = visitingNodes.pop(); key; key = visitingNodes.pop()){\n var _graph$nodeToNodeSubs;\n visitedNodes.add(key);\n const subscribedNodes = (_graph$nodeToNodeSubs = graph.nodeToNodeSubscriptions.get(key)) !== null && _graph$nodeToNodeSubs !== void 0 ? _graph$nodeToNodeSubs : emptySet;\n for (const downstreamNode of subscribedNodes)if (!visitedNodes.has(downstreamNode)) visitingNodes.push(downstreamNode);\n }\n return visitedNodes;\n}\nvar Recoil_FunctionalCore = {\n getNodeLoadable,\n peekNodeLoadable,\n setNodeValue,\n initializeNode,\n cleanUpNode,\n setUnvalidatedAtomValue_DEPRECATED,\n peekNodeInfo,\n getDownstreamNodes\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ let _invalidateMemoizedSnapshot = null;\nfunction setInvalidateMemoizedSnapshot(invalidate) {\n _invalidateMemoizedSnapshot = invalidate;\n}\nfunction invalidateMemoizedSnapshot() {\n var _invalidateMemoizedSn;\n (_invalidateMemoizedSn = _invalidateMemoizedSnapshot) === null || _invalidateMemoizedSn === void 0 || _invalidateMemoizedSn();\n}\nvar Recoil_SnapshotCache = {\n setInvalidateMemoizedSnapshot,\n invalidateMemoizedSnapshot\n};\nconst { getDownstreamNodes: getDownstreamNodes$1 , getNodeLoadable: getNodeLoadable$1 , setNodeValue: setNodeValue$1 } = Recoil_FunctionalCore;\nconst { getNextComponentID: getNextComponentID$1 } = Recoil_Keys;\nconst { getNode: getNode$2 , getNodeMaybe: getNodeMaybe$2 } = Recoil_Node;\nconst { DefaultValue: DefaultValue$1 } = Recoil_Node;\nconst { reactMode: reactMode$1 } = Recoil_ReactMode;\nconst { AbstractRecoilValue: AbstractRecoilValue$1 , RecoilState: RecoilState$1 , RecoilValueReadOnly: RecoilValueReadOnly$1 , isRecoilValue: isRecoilValue$1 } = Recoil_RecoilValue$1;\nconst { invalidateMemoizedSnapshot: invalidateMemoizedSnapshot$1 } = Recoil_SnapshotCache;\nfunction getRecoilValueAsLoadable(store, { key }, treeState = store.getState().currentTree) {\n var _storeState$nextTree, _storeState$previousT;\n // Reading from an older tree can cause bugs because the dependencies that we\n // discover during the read are lost.\n const storeState = store.getState();\n if (!(treeState.version === storeState.currentTree.version || treeState.version === ((_storeState$nextTree = storeState.nextTree) === null || _storeState$nextTree === void 0 ? void 0 : _storeState$nextTree.version) || treeState.version === ((_storeState$previousT = storeState.previousTree) === null || _storeState$previousT === void 0 ? void 0 : _storeState$previousT.version))) Recoil_recoverableViolation(\"Tried to read from a discarded tree\");\n const loadable = getNodeLoadable$1(store, treeState, key);\n if (loadable.state === \"loading\") loadable.contents.catch(()=>{\n /**\n * HACK: intercept thrown error here to prevent an uncaught promise exception. Ideally this would happen closer to selector\n * execution (perhaps introducing a new ERROR class to be resolved by async selectors that are in an error state)\n */ return;\n });\n return loadable;\n}\nfunction applyAtomValueWrites(atomValues, writes) {\n const result = atomValues.clone();\n writes.forEach((v, k)=>{\n if (v.state === \"hasValue\" && v.contents instanceof DefaultValue$1) result.delete(k);\n else result.set(k, v);\n });\n return result;\n}\nfunction valueFromValueOrUpdater(store, state, { key }, valueOrUpdater) {\n if (typeof valueOrUpdater === \"function\") {\n // Updater form: pass in the current value. Throw if the current value\n // is unavailable (namely when updating an async selector that's\n // pending or errored):\n const current = getNodeLoadable$1(store, state, key);\n if (current.state === \"loading\") {\n const msg = `Tried to set atom or selector \"${key}\" using an updater function while the current state is pending, this is not currently supported.`;\n Recoil_recoverableViolation(msg);\n throw Recoil_err(msg);\n } else if (current.state === \"hasError\") throw current.contents;\n // T itself may be a function, so our refinement is not sufficient:\n return valueOrUpdater(current.contents); // flowlint-line unclear-type:off\n } else return valueOrUpdater;\n}\nfunction applyAction(store, state, action) {\n if (action.type === \"set\") {\n const { recoilValue , valueOrUpdater } = action;\n const newValue = valueFromValueOrUpdater(store, state, recoilValue, valueOrUpdater);\n const writes = setNodeValue$1(store, state, recoilValue.key, newValue);\n for (const [key, loadable] of writes.entries())writeLoadableToTreeState(state, key, loadable);\n } else if (action.type === \"setLoadable\") {\n const { recoilValue: { key } , loadable } = action;\n writeLoadableToTreeState(state, key, loadable);\n } else if (action.type === \"markModified\") {\n const { recoilValue: { key } } = action;\n state.dirtyAtoms.add(key);\n } else if (action.type === \"setUnvalidated\") {\n var _node$invalidate;\n // Write value directly to state bypassing the Node interface as the node\n // definitions may not have been loaded yet when processing the initial snapshot.\n const { recoilValue: { key } , unvalidatedValue } = action;\n const node = getNodeMaybe$2(key);\n node === null || node === void 0 || (_node$invalidate = node.invalidate) === null || _node$invalidate === void 0 || _node$invalidate.call(node, state);\n state.atomValues.delete(key);\n state.nonvalidatedAtoms.set(key, unvalidatedValue);\n state.dirtyAtoms.add(key);\n } else Recoil_recoverableViolation(`Unknown action ${action.type}`);\n}\nfunction writeLoadableToTreeState(state, key, loadable) {\n if (loadable.state === \"hasValue\" && loadable.contents instanceof DefaultValue$1) state.atomValues.delete(key);\n else state.atomValues.set(key, loadable);\n state.dirtyAtoms.add(key);\n state.nonvalidatedAtoms.delete(key);\n}\nfunction applyActionsToStore(store, actions) {\n store.replaceState((state)=>{\n const newState = copyTreeState(state);\n for (const action of actions)applyAction(store, newState, action);\n invalidateDownstreams(store, newState);\n invalidateMemoizedSnapshot$1();\n return newState;\n });\n}\nfunction queueOrPerformStateUpdate(store, action) {\n if (batchStack.length) {\n const actionsByStore = batchStack[batchStack.length - 1];\n let actions = actionsByStore.get(store);\n if (!actions) actionsByStore.set(store, actions = []);\n actions.push(action);\n } else applyActionsToStore(store, [\n action\n ]);\n}\nconst batchStack = [];\nfunction batchStart() {\n const actionsByStore = new Map();\n batchStack.push(actionsByStore);\n return ()=>{\n for (const [store, actions] of actionsByStore)applyActionsToStore(store, actions);\n const popped = batchStack.pop();\n if (popped !== actionsByStore) Recoil_recoverableViolation(\"Incorrect order of batch popping\");\n };\n}\nfunction copyTreeState(state) {\n return {\n ...state,\n atomValues: state.atomValues.clone(),\n nonvalidatedAtoms: state.nonvalidatedAtoms.clone(),\n dirtyAtoms: new Set(state.dirtyAtoms)\n };\n}\nfunction invalidateDownstreams(store, state) {\n // Inform any nodes that were changed or downstream of changes so that they\n // can clear out any caches as needed due to the update:\n const downstreams = getDownstreamNodes$1(store, state, state.dirtyAtoms);\n for (const key of downstreams){\n var _getNodeMaybe, _getNodeMaybe$invalid;\n (_getNodeMaybe = getNodeMaybe$2(key)) === null || _getNodeMaybe === void 0 || (_getNodeMaybe$invalid = _getNodeMaybe.invalidate) === null || _getNodeMaybe$invalid === void 0 || _getNodeMaybe$invalid.call(_getNodeMaybe, state);\n }\n}\nfunction setRecoilValue(store, recoilValue, valueOrUpdater) {\n queueOrPerformStateUpdate(store, {\n type: \"set\",\n recoilValue,\n valueOrUpdater\n });\n}\nfunction setRecoilValueLoadable(store, recoilValue, loadable) {\n if (loadable instanceof DefaultValue$1) return setRecoilValue(store, recoilValue, loadable);\n queueOrPerformStateUpdate(store, {\n type: \"setLoadable\",\n recoilValue,\n loadable: loadable\n });\n}\nfunction markRecoilValueModified(store, recoilValue) {\n queueOrPerformStateUpdate(store, {\n type: \"markModified\",\n recoilValue\n });\n}\nfunction setUnvalidatedRecoilValue(store, recoilValue, unvalidatedValue) {\n queueOrPerformStateUpdate(store, {\n type: \"setUnvalidated\",\n recoilValue,\n unvalidatedValue\n });\n}\nfunction subscribeToRecoilValue(store, { key }, callback, componentDebugName = null) {\n const subID = getNextComponentID$1();\n const storeState = store.getState();\n if (!storeState.nodeToComponentSubscriptions.has(key)) storeState.nodeToComponentSubscriptions.set(key, new Map());\n Recoil_nullthrows(storeState.nodeToComponentSubscriptions.get(key)).set(subID, [\n componentDebugName !== null && componentDebugName !== void 0 ? componentDebugName : \"\",\n callback\n ]); // Handle the case that, during the same tick that we are subscribing, an atom\n // has been updated by some effect handler. Otherwise we will miss the update.\n const mode = reactMode$1();\n if (mode.early && (mode.mode === \"LEGACY\" || mode.mode === \"MUTABLE_SOURCE\")) {\n const nextTree = store.getState().nextTree;\n if (nextTree && nextTree.dirtyAtoms.has(key)) callback(nextTree);\n }\n return {\n release: ()=>{\n const releaseStoreState = store.getState();\n const subs = releaseStoreState.nodeToComponentSubscriptions.get(key);\n if (subs === undefined || !subs.has(subID)) {\n Recoil_recoverableViolation(`Subscription missing at release time for atom ${key}. This is a bug in Recoil.`);\n return;\n }\n subs.delete(subID);\n if (subs.size === 0) releaseStoreState.nodeToComponentSubscriptions.delete(key);\n }\n };\n}\nfunction refreshRecoilValue(store, recoilValue) {\n var _node$clearCache;\n const { currentTree } = store.getState();\n const node = getNode$2(recoilValue.key);\n (_node$clearCache = node.clearCache) === null || _node$clearCache === void 0 || _node$clearCache.call(node, store, currentTree);\n}\nvar Recoil_RecoilValueInterface = {\n RecoilValueReadOnly: RecoilValueReadOnly$1,\n AbstractRecoilValue: AbstractRecoilValue$1,\n RecoilState: RecoilState$1,\n getRecoilValueAsLoadable,\n setRecoilValue,\n setRecoilValueLoadable,\n markRecoilValueModified,\n setUnvalidatedRecoilValue,\n subscribeToRecoilValue,\n isRecoilValue: isRecoilValue$1,\n applyAtomValueWrites,\n // TODO Remove export when deprecating initialStoreState_DEPRECATED in RecoilRoot\n batchStart,\n writeLoadableToTreeState,\n invalidateDownstreams,\n copyTreeState,\n refreshRecoilValue\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * The someSet() method tests whether some elements in the given Set pass the\n * test implemented by the provided function.\n */ function someSet(set, callback, context) {\n const iterator = set.entries();\n let current = iterator.next();\n while(!current.done){\n const entry = current.value;\n if (callback.call(context, entry[1], entry[0], set)) return true;\n current = iterator.next();\n }\n return false;\n}\nvar Recoil_someSet = someSet;\nconst { cleanUpNode: cleanUpNode$1 } = Recoil_FunctionalCore;\nconst { deleteNodeConfigIfPossible: deleteNodeConfigIfPossible$1 , getNode: getNode$3 } = Recoil_Node;\nconst { RetentionZone: RetentionZone$2 } = Recoil_RetentionZone;\n// Components that aren't mounted after suspending for this long will be assumed\n// to be discarded and their resources released.\nconst SUSPENSE_TIMEOUT_MS = 120000;\nconst emptySet$1 = new Set();\nfunction releaseRetainablesNowOnCurrentTree(store, retainables) {\n const storeState = store.getState();\n const treeState = storeState.currentTree;\n if (storeState.nextTree) {\n Recoil_recoverableViolation(\"releaseNodesNowOnCurrentTree should only be called at the end of a batch\");\n return; // leak memory rather than erase something that's about to be used.\n }\n const nodes = new Set();\n for (const r of retainables){\n if (r instanceof RetentionZone$2) for (const n of nodesRetainedByZone(storeState, r))nodes.add(n);\n else nodes.add(r);\n }\n const releasableNodes = findReleasableNodes(store, nodes);\n for (const node of releasableNodes)releaseNode(store, treeState, node);\n}\nfunction findReleasableNodes(store, searchFromNodes) {\n const storeState = store.getState();\n const treeState = storeState.currentTree;\n const graph = store.getGraph(treeState.version);\n const releasableNodes = new Set(); // mutated to collect answer\n const nonReleasableNodes = new Set();\n findReleasableNodesInner(searchFromNodes);\n return releasableNodes;\n function findReleasableNodesInner(searchFromNodes) {\n const releasableNodesFoundThisIteration = new Set();\n const downstreams = getDownstreamNodesInTopologicalOrder(store, treeState, searchFromNodes, releasableNodes, nonReleasableNodes // don't descend into these\n ); // Find which of the downstream nodes are releasable and which are not:\n for (const node of downstreams){\n var _storeState$retention;\n // Not releasable if configured to be retained forever:\n if (getNode$3(node).retainedBy === \"recoilRoot\") {\n nonReleasableNodes.add(node);\n continue;\n } // Not releasable if retained directly by a component:\n if (((_storeState$retention = storeState.retention.referenceCounts.get(node)) !== null && _storeState$retention !== void 0 ? _storeState$retention : 0) > 0) {\n nonReleasableNodes.add(node);\n continue;\n } // Not releasable if retained by a zone:\n if (zonesThatCouldRetainNode(node).some((z)=>storeState.retention.referenceCounts.get(z))) {\n nonReleasableNodes.add(node);\n continue;\n } // Not releasable if it has a non-releasable child (which will already be in\n // nonReleasableNodes because we are going in topological order):\n const nodeChildren = graph.nodeToNodeSubscriptions.get(node);\n if (nodeChildren && Recoil_someSet(nodeChildren, (child)=>nonReleasableNodes.has(child))) {\n nonReleasableNodes.add(node);\n continue;\n }\n releasableNodes.add(node);\n releasableNodesFoundThisIteration.add(node);\n } // If we found any releasable nodes, we need to walk UP from those nodes to\n // find whether their parents can now be released as well:\n const parents = new Set();\n for (const node of releasableNodesFoundThisIteration)for (const parent of (_graph$nodeDeps$get = graph.nodeDeps.get(node)) !== null && _graph$nodeDeps$get !== void 0 ? _graph$nodeDeps$get : emptySet$1){\n var _graph$nodeDeps$get;\n if (!releasableNodes.has(parent)) parents.add(parent);\n }\n if (parents.size) findReleasableNodesInner(parents);\n }\n} // Children before parents\nfunction getDownstreamNodesInTopologicalOrder(store, treeState, nodes, doNotDescendInto1, doNotDescendInto2) {\n const graph = store.getGraph(treeState.version);\n const answer = [];\n const visited = new Set();\n while(nodes.size > 0)visit(Recoil_nullthrows(nodes.values().next().value));\n return answer;\n function visit(node) {\n if (doNotDescendInto1.has(node) || doNotDescendInto2.has(node)) {\n nodes.delete(node);\n return;\n }\n if (visited.has(node)) return;\n const children = graph.nodeToNodeSubscriptions.get(node);\n if (children) for (const child of children)visit(child);\n visited.add(node);\n nodes.delete(node);\n answer.push(node);\n }\n}\nfunction releaseNode(store, treeState, node) {\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n // Atom effects, in-closure caches, etc.:\n cleanUpNode$1(store, node); // Delete from store state:\n const storeState = store.getState();\n storeState.knownAtoms.delete(node);\n storeState.knownSelectors.delete(node);\n storeState.nodeTransactionSubscriptions.delete(node);\n storeState.retention.referenceCounts.delete(node);\n const zones = zonesThatCouldRetainNode(node);\n for (const zone of zones){\n var _storeState$retention2;\n (_storeState$retention2 = storeState.retention.nodesRetainedByZone.get(zone)) === null || _storeState$retention2 === void 0 || _storeState$retention2.delete(node);\n } // Note that we DO NOT delete from nodeToComponentSubscriptions because this\n // already happens when the last component that was retaining the node unmounts,\n // and this could happen either before or after that.\n // Delete from TreeState and dep graph:\n treeState.atomValues.delete(node);\n treeState.dirtyAtoms.delete(node);\n treeState.nonvalidatedAtoms.delete(node);\n const graph = storeState.graphsByVersion.get(treeState.version);\n if (graph) {\n const deps = graph.nodeDeps.get(node);\n if (deps !== undefined) {\n graph.nodeDeps.delete(node);\n for (const dep of deps){\n var _graph$nodeToNodeSubs;\n (_graph$nodeToNodeSubs = graph.nodeToNodeSubscriptions.get(dep)) === null || _graph$nodeToNodeSubs === void 0 || _graph$nodeToNodeSubs.delete(node);\n }\n } // No need to delete sub's deps as there should be no subs at this point.\n // But an invariant would require deleting nodes in topological order.\n graph.nodeToNodeSubscriptions.delete(node);\n } // Node config (for family members only as their configs can be recreated, and\n // only if they are not retained within any other Stores):\n deleteNodeConfigIfPossible$1(node);\n}\nfunction nodesRetainedByZone(storeState, zone) {\n var _storeState$retention3;\n return (_storeState$retention3 = storeState.retention.nodesRetainedByZone.get(zone)) !== null && _storeState$retention3 !== void 0 ? _storeState$retention3 : emptySet$1;\n}\nfunction zonesThatCouldRetainNode(node) {\n const retainedBy = getNode$3(node).retainedBy;\n if (retainedBy === undefined || retainedBy === \"components\" || retainedBy === \"recoilRoot\") return [];\n else if (retainedBy instanceof RetentionZone$2) return [\n retainedBy\n ];\n else return retainedBy; // it's an array of zones\n}\nfunction scheduleOrPerformPossibleReleaseOfRetainable(store, retainable) {\n const state = store.getState();\n if (state.nextTree) state.retention.retainablesToCheckForRelease.add(retainable);\n else releaseRetainablesNowOnCurrentTree(store, new Set([\n retainable\n ]));\n}\nfunction updateRetainCount(store, retainable, delta) {\n var _map$get;\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n const map = store.getState().retention.referenceCounts;\n const newCount = ((_map$get = map.get(retainable)) !== null && _map$get !== void 0 ? _map$get : 0) + delta;\n if (newCount === 0) updateRetainCountToZero(store, retainable);\n else map.set(retainable, newCount);\n}\nfunction updateRetainCountToZero(store, retainable) {\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n const map = store.getState().retention.referenceCounts;\n map.delete(retainable);\n scheduleOrPerformPossibleReleaseOfRetainable(store, retainable);\n}\nfunction releaseScheduledRetainablesNow(store) {\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n const state = store.getState();\n releaseRetainablesNowOnCurrentTree(store, state.retention.retainablesToCheckForRelease);\n state.retention.retainablesToCheckForRelease.clear();\n}\nfunction retainedByOptionWithDefault(r) {\n // The default will change from 'recoilRoot' to 'components' in the future.\n return r === undefined ? \"recoilRoot\" : r;\n}\nvar Recoil_Retention = {\n SUSPENSE_TIMEOUT_MS,\n updateRetainCount,\n updateRetainCountToZero,\n releaseScheduledRetainablesNow,\n retainedByOptionWithDefault\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This is to export esstiential functions from react-dom\n * for our web build\n *\n * \n * @format\n * @oncall recoil\n */ const { unstable_batchedUpdates } = (0, _reactDomDefault.default);\nvar ReactBatchedUpdates = {\n unstable_batchedUpdates\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This is to export esstiential functions from react-dom\n * for our web build\n *\n * \n * @format\n * @oncall recoil\n */ // @fb-only: const {unstable_batchedUpdates} = require('ReactDOMComet');\n// prettier-ignore\nconst { unstable_batchedUpdates: unstable_batchedUpdates$1 } = ReactBatchedUpdates; // @oss-only\nvar Recoil_ReactBatchedUpdates = {\n unstable_batchedUpdates: unstable_batchedUpdates$1\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ const { batchStart: batchStart$1 } = Recoil_RecoilValueInterface;\nconst { unstable_batchedUpdates: unstable_batchedUpdates$2 } = Recoil_ReactBatchedUpdates; // flowlint-next-line unclear-type:off\n/*\n * During SSR, unstable_batchedUpdates may be undefined so this\n * falls back to a basic function that executes the batch\n */ let batcher = unstable_batchedUpdates$2 || ((batchFn)=>batchFn());\n/**\n * Sets the provided batcher function as the batcher function used by Recoil.\n *\n * Set the batcher to a custom batcher for your renderer,\n * if you use a renderer other than React DOM or React Native.\n */ const setBatcher = (newBatcher)=>{\n batcher = newBatcher;\n};\n/**\n * Returns the current batcher function.\n */ const getBatcher = ()=>batcher;\n/**\n * Calls the current batcher function and passes the\n * provided callback function.\n */ const batchUpdates = (callback)=>{\n batcher(()=>{\n let batchEnd = ()=>undefined;\n try {\n batchEnd = batchStart$1();\n callback();\n } finally{\n batchEnd();\n }\n });\n};\nvar Recoil_Batching = {\n getBatcher,\n setBatcher,\n batchUpdates\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Combines multiple Iterables into a single Iterable.\n * Traverses the input Iterables in the order provided and maintains the order\n * of their elements.\n *\n * Example:\n * ```\n * const r = Array.from(concatIterables(['a', 'b'], ['c'], ['d', 'e', 'f']));\n * r == ['a', 'b', 'c', 'd', 'e', 'f'];\n * ```\n */ function* concatIterables(iters) {\n for (const iter of iters)for (const val of iter)yield val;\n}\nvar Recoil_concatIterables = concatIterables;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /* eslint-disable fb-www/typeof-undefined */ const isSSR = typeof Window === \"undefined\" || typeof window === \"undefined\";\n/* eslint-enable fb-www/typeof-undefined */ const isWindow = (value)=>!isSSR && (value === window || value instanceof Window);\nconst isReactNative = typeof navigator !== \"undefined\" && navigator.product === \"ReactNative\"; // eslint-disable-line fb-www/typeof-undefined\nvar Recoil_Environment = {\n isSSR,\n isReactNative,\n isWindow\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Caches a function's results based on the key returned by the passed\n * hashFunction.\n */ function memoizeWithArgsHash(fn, hashFunction) {\n let cache;\n return (...args)=>{\n if (!cache) cache = {};\n const key = hashFunction(...args);\n if (!Object.hasOwnProperty.call(cache, key)) cache[key] = fn(...args);\n return cache[key];\n };\n}\n/**\n * Caches a function's results based on a comparison of the arguments.\n * Only caches the last return of the function.\n * Defaults to reference equality\n */ function memoizeOneWithArgsHash(fn, hashFunction) {\n let lastKey;\n let lastResult; // breaking cache when arguments change\n return (...args)=>{\n const key = hashFunction(...args);\n if (lastKey === key) return lastResult;\n lastKey = key;\n lastResult = fn(...args);\n return lastResult;\n };\n}\n/**\n * Caches a function's results based on a comparison of the arguments.\n * Only caches the last return of the function.\n * Defaults to reference equality\n */ function memoizeOneWithArgsHashAndInvalidation(fn, hashFunction) {\n let lastKey;\n let lastResult; // breaking cache when arguments change\n const memoizedFn = (...args)=>{\n const key = hashFunction(...args);\n if (lastKey === key) return lastResult;\n lastKey = key;\n lastResult = fn(...args);\n return lastResult;\n };\n const invalidate = ()=>{\n lastKey = null;\n };\n return [\n memoizedFn,\n invalidate\n ];\n}\nvar Recoil_Memoize = {\n memoizeWithArgsHash,\n memoizeOneWithArgsHash,\n memoizeOneWithArgsHashAndInvalidation\n};\nconst { batchUpdates: batchUpdates$1 } = Recoil_Batching;\nconst { initializeNode: initializeNode$1 , peekNodeInfo: peekNodeInfo$1 } = Recoil_FunctionalCore;\nconst { graph: graph$1 } = Recoil_Graph;\nconst { getNextStoreID: getNextStoreID$1 } = Recoil_Keys;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$1 , recoilValues: recoilValues$1 , recoilValuesForKeys: recoilValuesForKeys$2 } = Recoil_Node;\nconst { AbstractRecoilValue: AbstractRecoilValue$2 , getRecoilValueAsLoadable: getRecoilValueAsLoadable$1 , setRecoilValue: setRecoilValue$1 , setUnvalidatedRecoilValue: setUnvalidatedRecoilValue$1 } = Recoil_RecoilValueInterface;\nconst { updateRetainCount: updateRetainCount$1 } = Recoil_Retention;\nconst { setInvalidateMemoizedSnapshot: setInvalidateMemoizedSnapshot$1 } = Recoil_SnapshotCache;\nconst { getNextTreeStateVersion: getNextTreeStateVersion$2 , makeEmptyStoreState: makeEmptyStoreState$1 } = Recoil_State;\nconst { isSSR: isSSR$1 } = Recoil_Environment;\nconst { memoizeOneWithArgsHashAndInvalidation: memoizeOneWithArgsHashAndInvalidation$1 } = Recoil_Memoize;\n// Opaque at this surface because it's part of the public API from here.\nconst retainWarning = `\nRecoil Snapshots only last for the duration of the callback they are provided to. To keep a Snapshot longer, do this:\n\n const release = snapshot.retain();\n try {\n await doSomethingWithSnapshot(snapshot);\n } finally {\n release();\n }\n\nThis is currently a DEV-only warning but will become a thrown exception in the next release of Recoil.\n`; // A \"Snapshot\" is \"read-only\" and captures a specific set of values of atoms.\n// However, the data-flow-graph and selector values may evolve as selector\n// evaluation functions are executed and async selectors resolve.\nclass Snapshot {\n // eslint-disable-next-line fb-www/no-uninitialized-properties\n constructor(storeState, parentStoreID){\n _defineProperty(this, \"_store\", void 0);\n _defineProperty(this, \"_refCount\", 1);\n _defineProperty(this, \"getLoadable\", (recoilValue)=>{\n this.checkRefCount_INTERNAL();\n return getRecoilValueAsLoadable$1(this._store, recoilValue);\n });\n _defineProperty(this, \"getPromise\", (recoilValue)=>{\n this.checkRefCount_INTERNAL();\n return this.getLoadable(recoilValue).toPromise();\n });\n _defineProperty(this, \"getNodes_UNSTABLE\", (opt)=>{\n this.checkRefCount_INTERNAL(); // TODO Deal with modified selectors\n if ((opt === null || opt === void 0 ? void 0 : opt.isModified) === true) {\n if ((opt === null || opt === void 0 ? void 0 : opt.isInitialized) === false) return [];\n const state = this._store.getState().currentTree;\n return recoilValuesForKeys$2(state.dirtyAtoms);\n }\n const knownAtoms = this._store.getState().knownAtoms;\n const knownSelectors = this._store.getState().knownSelectors;\n return (opt === null || opt === void 0 ? void 0 : opt.isInitialized) == null ? recoilValues$1.values() : opt.isInitialized === true ? recoilValuesForKeys$2(Recoil_concatIterables([\n knownAtoms,\n knownSelectors\n ])) : Recoil_filterIterable(recoilValues$1.values(), ({ key })=>!knownAtoms.has(key) && !knownSelectors.has(key));\n });\n _defineProperty(this, \"getInfo_UNSTABLE\", ({ key })=>{\n this.checkRefCount_INTERNAL();\n return peekNodeInfo$1(this._store, this._store.getState().currentTree, key);\n });\n _defineProperty(this, \"map\", (mapper)=>{\n this.checkRefCount_INTERNAL();\n const mutableSnapshot = new MutableSnapshot(this, batchUpdates$1);\n mapper(mutableSnapshot); // if removing batchUpdates from `set` add it here\n return mutableSnapshot;\n });\n _defineProperty(this, \"asyncMap\", async (mapper)=>{\n this.checkRefCount_INTERNAL();\n const mutableSnapshot = new MutableSnapshot(this, batchUpdates$1);\n mutableSnapshot.retain(); // Retain new snapshot during async mapper\n await mapper(mutableSnapshot); // Continue to retain the new snapshot for the user, but auto-release it\n // after the next tick, the same as a new synchronous snapshot.\n mutableSnapshot.autoRelease_INTERNAL();\n return mutableSnapshot;\n });\n this._store = {\n storeID: getNextStoreID$1(),\n parentStoreID,\n getState: ()=>storeState,\n replaceState: (replacer)=>{\n // no batching, so nextTree is never active\n storeState.currentTree = replacer(storeState.currentTree);\n },\n getGraph: (version)=>{\n const graphs = storeState.graphsByVersion;\n if (graphs.has(version)) return Recoil_nullthrows(graphs.get(version));\n const newGraph = graph$1();\n graphs.set(version, newGraph);\n return newGraph;\n },\n subscribeToTransactions: ()=>({\n release: ()=>{}\n }),\n addTransactionMetadata: ()=>{\n throw Recoil_err(\"Cannot subscribe to Snapshots\");\n }\n }; // Initialize any nodes that are live in the parent store (primarily so that\n // this snapshot gets counted towards the node's live stores count).\n // TODO Optimize this when cloning snapshots for callbacks\n for (const nodeKey of this._store.getState().knownAtoms){\n initializeNode$1(this._store, nodeKey, \"get\");\n updateRetainCount$1(this._store, nodeKey, 1);\n }\n this.autoRelease_INTERNAL();\n }\n retain() {\n if (this._refCount <= 0) Recoil_recoverableViolation(\"Attempt to retain() Snapshot that was already released.\");\n this._refCount++;\n let released = false;\n return ()=>{\n if (!released) {\n released = true;\n this._release();\n }\n };\n }\n /**\n * Release the snapshot on the next tick. This means the snapshot is retained\n * during the execution of the current function using it.\n */ autoRelease_INTERNAL() {\n if (!isSSR$1) // Use timeout of 10 to workaround Firefox issue: https://github.com/facebookexperimental/Recoil/issues/1936\n window.setTimeout(()=>this._release(), 10);\n }\n _release() {\n this._refCount--;\n if (this._refCount === 0) {\n this._store.getState().nodeCleanupFunctions.forEach((cleanup)=>cleanup());\n this._store.getState().nodeCleanupFunctions.clear();\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n // Temporarily nerfing this to allow us to find broken call sites without\n // actually breaking anybody yet.\n // for (const k of this._store.getState().knownAtoms) {\n // updateRetainCountToZero(this._store, k);\n // }\n } else this._refCount;\n }\n isRetained() {\n return this._refCount > 0;\n }\n checkRefCount_INTERNAL() {\n Recoil_gkx(\"recoil_memory_managament_2020\") && this._refCount;\n }\n getStore_INTERNAL() {\n this.checkRefCount_INTERNAL();\n return this._store;\n }\n getID() {\n this.checkRefCount_INTERNAL();\n return this._store.getState().currentTree.stateID;\n }\n getStoreID() {\n this.checkRefCount_INTERNAL();\n return this._store.storeID;\n }\n}\nfunction cloneStoreState(store, treeState, bumpVersion = false) {\n const storeState = store.getState();\n const version = bumpVersion ? getNextTreeStateVersion$2() : treeState.version;\n return {\n // Always clone the TreeState to isolate stores from accidental mutations.\n // For example, reading a selector from a cloned snapshot shouldn't cache\n // in the original treestate which may cause the original to skip\n // initialization of upstream atoms.\n currentTree: {\n // TODO snapshots shouldn't really have versions because a new version number\n // is always assigned when the snapshot is gone to.\n version: bumpVersion ? version : treeState.version,\n stateID: bumpVersion ? version : treeState.stateID,\n transactionMetadata: {\n ...treeState.transactionMetadata\n },\n dirtyAtoms: new Set(treeState.dirtyAtoms),\n atomValues: treeState.atomValues.clone(),\n nonvalidatedAtoms: treeState.nonvalidatedAtoms.clone()\n },\n commitDepth: 0,\n nextTree: null,\n previousTree: null,\n knownAtoms: new Set(storeState.knownAtoms),\n // FIXME here's a copy\n knownSelectors: new Set(storeState.knownSelectors),\n // FIXME here's a copy\n transactionSubscriptions: new Map(),\n nodeTransactionSubscriptions: new Map(),\n nodeToComponentSubscriptions: new Map(),\n queuedComponentCallbacks_DEPRECATED: [],\n suspendedComponentResolvers: new Set(),\n graphsByVersion: new Map().set(version, store.getGraph(treeState.version)),\n retention: {\n referenceCounts: new Map(),\n nodesRetainedByZone: new Map(),\n retainablesToCheckForRelease: new Set()\n },\n // FIXME here's a copy\n // Create blank cleanup handlers for atoms so snapshots don't re-run\n // atom effects.\n nodeCleanupFunctions: new Map(Recoil_mapIterable(storeState.nodeCleanupFunctions.entries(), ([key])=>[\n key,\n ()=>{}\n ]))\n };\n} // Factory to build a fresh snapshot\nfunction freshSnapshot(initializeState) {\n const snapshot = new Snapshot(makeEmptyStoreState$1());\n return initializeState != null ? snapshot.map(initializeState) : snapshot;\n} // Factory to clone a snapshot state\nconst [memoizedCloneSnapshot, invalidateMemoizedSnapshot$2] = memoizeOneWithArgsHashAndInvalidation$1((store, version)=>{\n var _storeState$nextTree;\n const storeState = store.getState();\n const treeState = version === \"latest\" ? (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree : Recoil_nullthrows(storeState.previousTree);\n return new Snapshot(cloneStoreState(store, treeState), store.storeID);\n}, (store, version)=>{\n var _store$getState$nextT, _store$getState$previ;\n return String(version) + String(store.storeID) + String((_store$getState$nextT = store.getState().nextTree) === null || _store$getState$nextT === void 0 ? void 0 : _store$getState$nextT.version) + String(store.getState().currentTree.version) + String((_store$getState$previ = store.getState().previousTree) === null || _store$getState$previ === void 0 ? void 0 : _store$getState$previ.version);\n}); // Avoid circular dependencies\nsetInvalidateMemoizedSnapshot$1(invalidateMemoizedSnapshot$2);\nfunction cloneSnapshot(store, version = \"latest\") {\n const snapshot = memoizedCloneSnapshot(store, version);\n if (!snapshot.isRetained()) {\n invalidateMemoizedSnapshot$2();\n return memoizedCloneSnapshot(store, version);\n }\n return snapshot;\n}\nclass MutableSnapshot extends Snapshot {\n constructor(snapshot, batch){\n super(cloneStoreState(snapshot.getStore_INTERNAL(), snapshot.getStore_INTERNAL().getState().currentTree, true), snapshot.getStoreID());\n _defineProperty(this, \"_batch\", void 0);\n _defineProperty(this, \"set\", (recoilState, newValueOrUpdater)=>{\n this.checkRefCount_INTERNAL();\n const store = this.getStore_INTERNAL(); // This batchUpdates ensures this `set` is applied immediately and you can\n // read the written value after calling `set`. I would like to remove this\n // behavior and only batch in `Snapshot.map`, but this would be a breaking\n // change potentially.\n this._batch(()=>{\n updateRetainCount$1(store, recoilState.key, 1);\n setRecoilValue$1(this.getStore_INTERNAL(), recoilState, newValueOrUpdater);\n });\n });\n _defineProperty(this, \"reset\", (recoilState)=>{\n this.checkRefCount_INTERNAL();\n const store = this.getStore_INTERNAL(); // See note at `set` about batched updates.\n this._batch(()=>{\n updateRetainCount$1(store, recoilState.key, 1);\n setRecoilValue$1(this.getStore_INTERNAL(), recoilState, DEFAULT_VALUE$1);\n });\n });\n _defineProperty(this, \"setUnvalidatedAtomValues_DEPRECATED\", (values)=>{\n this.checkRefCount_INTERNAL();\n const store = this.getStore_INTERNAL(); // See note at `set` about batched updates.\n batchUpdates$1(()=>{\n for (const [k, v] of values.entries()){\n updateRetainCount$1(store, k, 1);\n setUnvalidatedRecoilValue$1(store, new AbstractRecoilValue$2(k), v);\n }\n });\n });\n this._batch = batch;\n }\n}\nvar Recoil_Snapshot = {\n Snapshot,\n MutableSnapshot,\n freshSnapshot,\n cloneSnapshot\n};\nvar Recoil_Snapshot_1 = Recoil_Snapshot.Snapshot;\nvar Recoil_Snapshot_2 = Recoil_Snapshot.MutableSnapshot;\nvar Recoil_Snapshot_3 = Recoil_Snapshot.freshSnapshot;\nvar Recoil_Snapshot_4 = Recoil_Snapshot.cloneSnapshot;\nvar Recoil_Snapshot$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n Snapshot: Recoil_Snapshot_1,\n MutableSnapshot: Recoil_Snapshot_2,\n freshSnapshot: Recoil_Snapshot_3,\n cloneSnapshot: Recoil_Snapshot_4\n});\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function unionSets(...sets) {\n const result = new Set();\n for (const set of sets)for (const value of set)result.add(value);\n return result;\n}\nvar Recoil_unionSets = unionSets;\nconst { useRef } = (0, _reactDefault.default);\n/**\n * The same as `useRef()` except that if a function is specified then it will\n * call that function to get the value to initialize the reference with.\n * This is similar to how `useState()` behaves when given a function. It allows\n * the user to avoid generating the initial value for subsequent renders.\n * The tradeoff is that to set the reference to a function itself you need to\n * nest it: useRefInitOnce(() => () => {...});\n */ function useRefInitOnce(initialValue) {\n // $FlowExpectedError[incompatible-call]\n const ref = useRef(initialValue);\n if (ref.current === initialValue && typeof initialValue === \"function\") // $FlowExpectedError[incompatible-use]\n ref.current = initialValue();\n return ref;\n}\nvar Recoil_useRefInitOnce = useRefInitOnce;\n// @fb-only: const RecoilusagelogEvent = require('RecoilusagelogEvent');\n// @fb-only: const RecoilUsageLogFalcoEvent = require('RecoilUsageLogFalcoEvent');\n// @fb-only: const URI = require('URI');\nconst { getNextTreeStateVersion: getNextTreeStateVersion$3 , makeEmptyStoreState: makeEmptyStoreState$2 } = Recoil_State;\nconst { cleanUpNode: cleanUpNode$2 , getDownstreamNodes: getDownstreamNodes$2 , initializeNode: initializeNode$2 , setNodeValue: setNodeValue$2 , setUnvalidatedAtomValue_DEPRECATED: setUnvalidatedAtomValue_DEPRECATED$1 } = Recoil_FunctionalCore;\nconst { graph: graph$2 } = Recoil_Graph;\nconst { cloneGraph: cloneGraph$1 } = Recoil_Graph;\nconst { getNextStoreID: getNextStoreID$2 } = Recoil_Keys;\nconst { createMutableSource: createMutableSource$1 , reactMode: reactMode$2 } = Recoil_ReactMode;\nconst { applyAtomValueWrites: applyAtomValueWrites$1 } = Recoil_RecoilValueInterface;\nconst { releaseScheduledRetainablesNow: releaseScheduledRetainablesNow$1 } = Recoil_Retention;\nconst { freshSnapshot: freshSnapshot$1 } = Recoil_Snapshot$1;\nconst { useCallback , useContext , useEffect , useMemo , useRef: useRef$1 , useState } = (0, _reactDefault.default);\nfunction notInAContext() {\n throw Recoil_err(\"This component must be used inside a component.\");\n}\nconst defaultStore = Object.freeze({\n storeID: getNextStoreID$2(),\n getState: notInAContext,\n replaceState: notInAContext,\n getGraph: notInAContext,\n subscribeToTransactions: notInAContext,\n addTransactionMetadata: notInAContext\n});\nlet stateReplacerIsBeingExecuted = false;\nfunction startNextTreeIfNeeded(store) {\n if (stateReplacerIsBeingExecuted) throw Recoil_err(\"An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.\");\n const storeState = store.getState();\n if (storeState.nextTree === null) {\n if (Recoil_gkx(\"recoil_memory_managament_2020\") && Recoil_gkx(\"recoil_release_on_cascading_update_killswitch_2021\")) // If this is a cascading update (that is, rendering due to one state change\n // invokes a second state change), we won't have cleaned up retainables yet\n // because this normally happens after notifying components. Do it before\n // proceeding with the cascading update so that it remains predictable:\n {\n if (storeState.commitDepth > 0) releaseScheduledRetainablesNow$1(store);\n }\n const version = storeState.currentTree.version;\n const nextVersion = getNextTreeStateVersion$3();\n storeState.nextTree = {\n ...storeState.currentTree,\n version: nextVersion,\n stateID: nextVersion,\n dirtyAtoms: new Set(),\n transactionMetadata: {}\n };\n storeState.graphsByVersion.set(nextVersion, cloneGraph$1(Recoil_nullthrows(storeState.graphsByVersion.get(version))));\n }\n}\nconst AppContext = (0, _reactDefault.default).createContext({\n current: defaultStore\n});\nconst useStoreRef = ()=>useContext(AppContext); // $FlowExpectedError[incompatible-call]\nconst MutableSourceContext = (0, _reactDefault.default).createContext(null);\nfunction useRecoilMutableSource() {\n const mutableSource = useContext(MutableSourceContext);\n if (mutableSource == null) Recoil_expectationViolation(\"Attempted to use a Recoil hook outside of a . must be an ancestor of any component that uses Recoil hooks.\");\n return mutableSource;\n}\nfunction notifyComponents(store, storeState, treeState) {\n const dependentNodes = getDownstreamNodes$2(store, treeState, treeState.dirtyAtoms);\n for (const key of dependentNodes){\n const comps = storeState.nodeToComponentSubscriptions.get(key);\n if (comps) for (const [_subID, [_debugName, callback]] of comps)callback(treeState);\n }\n}\nfunction sendEndOfBatchNotifications(store) {\n const storeState = store.getState();\n const treeState = storeState.currentTree; // Inform transaction subscribers of the transaction:\n const dirtyAtoms = treeState.dirtyAtoms;\n if (dirtyAtoms.size) {\n // Execute Node-specific subscribers before global subscribers\n for (const [key, subscriptions] of storeState.nodeTransactionSubscriptions){\n if (dirtyAtoms.has(key)) for (const [_, subscription] of subscriptions)subscription(store);\n }\n for (const [_, subscription] of storeState.transactionSubscriptions)subscription(store);\n if (!reactMode$2().early || storeState.suspendedComponentResolvers.size > 0) {\n // Notifying components is needed to wake from suspense, even when using\n // early rendering.\n notifyComponents(store, storeState, treeState); // Wake all suspended components so the right one(s) can try to re-render.\n // We need to wake up components not just when some asynchronous selector\n // resolved, but also when changing synchronous values because this may cause\n // a selector to change from asynchronous to synchronous, in which case there\n // would be no follow-up asynchronous resolution to wake us up.\n // TODO OPTIMIZATION Only wake up related downstream components\n storeState.suspendedComponentResolvers.forEach((cb)=>cb());\n storeState.suspendedComponentResolvers.clear();\n }\n } // Special behavior ONLY invoked by useInterface.\n // FIXME delete queuedComponentCallbacks_DEPRECATED when deleting useInterface.\n storeState.queuedComponentCallbacks_DEPRECATED.forEach((cb)=>cb(treeState));\n storeState.queuedComponentCallbacks_DEPRECATED.splice(0, storeState.queuedComponentCallbacks_DEPRECATED.length);\n}\nfunction endBatch(store) {\n const storeState = store.getState();\n storeState.commitDepth++;\n try {\n const { nextTree } = storeState; // Ignore commits that are not because of Recoil transactions -- namely,\n // because something above RecoilRoot re-rendered:\n if (nextTree == null) return;\n // nextTree is now committed -- note that copying and reset occurs when\n // a transaction begins, in startNextTreeIfNeeded:\n storeState.previousTree = storeState.currentTree;\n storeState.currentTree = nextTree;\n storeState.nextTree = null;\n sendEndOfBatchNotifications(store);\n if (storeState.previousTree != null) storeState.graphsByVersion.delete(storeState.previousTree.version);\n else Recoil_recoverableViolation(\"Ended batch with no previous state, which is unexpected\", \"recoil\");\n storeState.previousTree = null;\n if (Recoil_gkx(\"recoil_memory_managament_2020\")) // Only release retainables if there were no writes during the end of the\n // batch. This avoids releasing something we might be about to use.\n {\n if (nextTree == null) releaseScheduledRetainablesNow$1(store);\n }\n } finally{\n storeState.commitDepth--;\n }\n}\n/*\n * The purpose of the Batcher is to observe when React batches end so that\n * Recoil state changes can be batched. Whenever Recoil state changes, we call\n * setState on the batcher. Then we wait for that change to be committed, which\n * signifies the end of the batch. That's when we respond to the Recoil change.\n */ function Batcher({ setNotifyBatcherOfChange }) {\n const storeRef = useStoreRef();\n const [, setState] = useState([]); // $FlowFixMe[incompatible-call]\n setNotifyBatcherOfChange(()=>setState({}));\n useEffect(()=>{\n // $FlowFixMe[incompatible-call]\n setNotifyBatcherOfChange(()=>setState({})); // If an asynchronous selector resolves after the Batcher is unmounted,\n // notifyBatcherOfChange will still be called. An error gets thrown whenever\n // setState is called after a component is already unmounted, so this sets\n // notifyBatcherOfChange to be a no-op.\n return ()=>{\n setNotifyBatcherOfChange(()=>{});\n };\n }, [\n setNotifyBatcherOfChange\n ]);\n useEffect(()=>{\n // enqueueExecution runs this function immediately; it is only used to\n // manipulate the order of useEffects during tests, since React seems to\n // call useEffect in an unpredictable order sometimes.\n Recoil_Queue.enqueueExecution(\"Batcher\", ()=>{\n endBatch(storeRef.current);\n });\n });\n return null;\n}\n// which will no longer be needed.\nfunction initialStoreState_DEPRECATED(store, initializeState) {\n const initial = makeEmptyStoreState$2();\n initializeState({\n set: (atom, value)=>{\n const state = initial.currentTree;\n const writes = setNodeValue$2(store, state, atom.key, value);\n const writtenNodes = new Set(writes.keys());\n const nonvalidatedAtoms = state.nonvalidatedAtoms.clone();\n for (const n of writtenNodes)nonvalidatedAtoms.delete(n);\n initial.currentTree = {\n ...state,\n dirtyAtoms: Recoil_unionSets(state.dirtyAtoms, writtenNodes),\n atomValues: applyAtomValueWrites$1(state.atomValues, writes),\n // NB: PLEASE un-export applyAtomValueWrites when deleting this code\n nonvalidatedAtoms\n };\n },\n setUnvalidatedAtomValues: (atomValues)=>{\n // FIXME replace this with a mutative loop\n atomValues.forEach((v, k)=>{\n initial.currentTree = setUnvalidatedAtomValue_DEPRECATED$1(initial.currentTree, k, v);\n });\n }\n });\n return initial;\n} // Initialize state snapshot for for the initializeState prop.\n// Atom effect initialization takes precedence over this prop.\n// Any atom effects will be run before initialization, but then cleaned up,\n// they are then re-run when used as part of rendering. These semantics are\n// compatible with React StrictMode where effects may be re-run multiple times\n// but state initialization only happens once the first time.\nfunction initialStoreState(initializeState) {\n // Initialize a snapshot and get its store\n const snapshot = freshSnapshot$1(initializeState);\n const storeState = snapshot.getStore_INTERNAL().getState(); // Counteract the snapshot auto-release\n snapshot.retain(); // Cleanup any effects run during initialization and clear the handlers so\n // they will re-initialize if used during rendering. This allows atom effect\n // initialization to take precedence over initializeState and be compatible\n // with StrictMode semantics.\n storeState.nodeCleanupFunctions.forEach((cleanup)=>cleanup());\n storeState.nodeCleanupFunctions.clear();\n return storeState;\n}\nlet nextID = 0;\nfunction RecoilRoot_INTERNAL({ initializeState_DEPRECATED , initializeState , store_INTERNAL: storeProp , // For use with React \"context bridging\"\nchildren }) {\n // prettier-ignore\n // @fb-only: useEffect(() => {\n // @fb-only: if (gkx('recoil_usage_logging')) {\n // @fb-only: try {\n // @fb-only: RecoilUsageLogFalcoEvent.log(() => ({\n // @fb-only: type: RecoilusagelogEvent.RECOIL_ROOT_MOUNTED,\n // @fb-only: path: URI.getRequestURI().getPath(),\n // @fb-only: }));\n // @fb-only: } catch {\n // @fb-only: recoverableViolation(\n // @fb-only: 'Error when logging Recoil Usage event',\n // @fb-only: 'recoil',\n // @fb-only: );\n // @fb-only: }\n // @fb-only: }\n // @fb-only: }, []);\n let storeStateRef; // eslint-disable-line prefer-const\n const getGraph = (version)=>{\n const graphs = storeStateRef.current.graphsByVersion;\n if (graphs.has(version)) return Recoil_nullthrows(graphs.get(version));\n const newGraph = graph$2();\n graphs.set(version, newGraph);\n return newGraph;\n };\n const subscribeToTransactions = (callback, key)=>{\n if (key == null) {\n // Global transaction subscriptions\n const { transactionSubscriptions } = storeRef.current.getState();\n const id = nextID++;\n transactionSubscriptions.set(id, callback);\n return {\n release: ()=>{\n transactionSubscriptions.delete(id);\n }\n };\n } else {\n // Node-specific transaction subscriptions:\n const { nodeTransactionSubscriptions } = storeRef.current.getState();\n if (!nodeTransactionSubscriptions.has(key)) nodeTransactionSubscriptions.set(key, new Map());\n const id = nextID++;\n Recoil_nullthrows(nodeTransactionSubscriptions.get(key)).set(id, callback);\n return {\n release: ()=>{\n const subs = nodeTransactionSubscriptions.get(key);\n if (subs) {\n subs.delete(id);\n if (subs.size === 0) nodeTransactionSubscriptions.delete(key);\n }\n }\n };\n }\n };\n const addTransactionMetadata = (metadata)=>{\n startNextTreeIfNeeded(storeRef.current);\n for (const k of Object.keys(metadata))Recoil_nullthrows(storeRef.current.getState().nextTree).transactionMetadata[k] = metadata[k];\n };\n const replaceState = (replacer)=>{\n startNextTreeIfNeeded(storeRef.current); // Use replacer to get the next state:\n const nextTree = Recoil_nullthrows(storeStateRef.current.nextTree);\n let replaced;\n try {\n stateReplacerIsBeingExecuted = true;\n replaced = replacer(nextTree);\n } finally{\n stateReplacerIsBeingExecuted = false;\n }\n if (replaced === nextTree) return;\n storeStateRef.current.nextTree = replaced;\n if (reactMode$2().early) notifyComponents(storeRef.current, storeStateRef.current, replaced);\n Recoil_nullthrows(notifyBatcherOfChange.current)();\n };\n const notifyBatcherOfChange = useRef$1(null);\n const setNotifyBatcherOfChange = useCallback((x)=>{\n notifyBatcherOfChange.current = x;\n }, [\n notifyBatcherOfChange\n ]);\n const storeRef = Recoil_useRefInitOnce(()=>storeProp !== null && storeProp !== void 0 ? storeProp : {\n storeID: getNextStoreID$2(),\n getState: ()=>storeStateRef.current,\n replaceState,\n getGraph,\n subscribeToTransactions,\n addTransactionMetadata\n });\n if (storeProp != null) storeRef.current = storeProp;\n storeStateRef = Recoil_useRefInitOnce(()=>initializeState_DEPRECATED != null ? initialStoreState_DEPRECATED(storeRef.current, initializeState_DEPRECATED) : initializeState != null ? initialStoreState(initializeState) : makeEmptyStoreState$2());\n const mutableSource = useMemo(()=>createMutableSource$1 === null || createMutableSource$1 === void 0 ? void 0 : createMutableSource$1(storeStateRef, ()=>storeStateRef.current.currentTree.version), [\n storeStateRef\n ]); // Cleanup when the is unmounted\n useEffect(()=>{\n // React is free to call effect cleanup handlers and effects at will, the\n // deps array is only an optimization. For example, React strict mode\n // will execute each effect twice for testing. Therefore, we need symmetry\n // to re-initialize all known atoms after they were cleaned up.\n const store = storeRef.current;\n for (const atomKey of new Set(store.getState().knownAtoms))initializeNode$2(store, atomKey, \"get\");\n return ()=>{\n for (const atomKey of store.getState().knownAtoms)cleanUpNode$2(store, atomKey);\n };\n }, [\n storeRef\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(AppContext.Provider, {\n value: storeRef\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(MutableSourceContext.Provider, {\n value: mutableSource\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(Batcher, {\n setNotifyBatcherOfChange: setNotifyBatcherOfChange\n }), children));\n}\nfunction RecoilRoot(props) {\n const { override , ...propsExceptOverride } = props;\n const ancestorStoreRef = useStoreRef();\n if (override === false && ancestorStoreRef.current !== defaultStore) // If ancestorStoreRef.current !== defaultStore, it means that this\n // RecoilRoot is not nested within another.\n return props.children;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(RecoilRoot_INTERNAL, propsExceptOverride);\n}\nfunction useRecoilStoreID() {\n return useStoreRef().current.storeID;\n}\nvar Recoil_RecoilRoot = {\n RecoilRoot,\n useStoreRef,\n useRecoilMutableSource,\n useRecoilStoreID,\n notifyComponents_FOR_TESTING: notifyComponents,\n sendEndOfBatchNotifications_FOR_TESTING: sendEndOfBatchNotifications\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function shallowArrayEqual(a, b) {\n if (a === b) return true;\n if (a.length !== b.length) return false;\n for(let i = 0, l = a.length; i < l; i++){\n if (a[i] !== b[i]) return false;\n }\n return true;\n}\nvar Recoil_shallowArrayEqual = shallowArrayEqual;\nconst { useEffect: useEffect$1 , useRef: useRef$2 } = (0, _reactDefault.default);\nfunction usePrevious(value) {\n const ref = useRef$2();\n useEffect$1(()=>{\n // $FlowFixMe[incompatible-type]\n ref.current = value;\n });\n return ref.current;\n}\nvar Recoil_usePrevious = usePrevious;\nconst { useStoreRef: useStoreRef$1 } = Recoil_RecoilRoot;\nconst { SUSPENSE_TIMEOUT_MS: SUSPENSE_TIMEOUT_MS$1 } = Recoil_Retention;\nconst { updateRetainCount: updateRetainCount$2 } = Recoil_Retention;\nconst { RetentionZone: RetentionZone$3 } = Recoil_RetentionZone;\nconst { useEffect: useEffect$2 , useRef: useRef$3 } = (0, _reactDefault.default);\nconst { isSSR: isSSR$2 } = Recoil_Environment;\n// I don't see a way to avoid the any type here because we want to accept readable\n// and writable values with any type parameter, but normally with writable ones\n// RecoilState is not a subtype of RecoilState.\n// flowlint-line unclear-type:off\nfunction useRetain(toRetain) {\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n // eslint-disable-next-line fb-www/react-hooks\n return useRetain_ACTUAL(toRetain);\n}\nfunction useRetain_ACTUAL(toRetain) {\n const array = Array.isArray(toRetain) ? toRetain : [\n toRetain\n ];\n const retainables = array.map((a)=>a instanceof RetentionZone$3 ? a : a.key);\n const storeRef = useStoreRef$1();\n useEffect$2(()=>{\n if (!Recoil_gkx(\"recoil_memory_managament_2020\")) return;\n const store = storeRef.current;\n if (timeoutID.current && !isSSR$2) {\n // Already performed a temporary retain on render, simply cancel the release\n // of that temporary retain.\n window.clearTimeout(timeoutID.current);\n timeoutID.current = null;\n } else for (const r of retainables)updateRetainCount$2(store, r, 1);\n return ()=>{\n for (const r of retainables)updateRetainCount$2(store, r, -1);\n }; // eslint-disable-next-line fb-www/react-hooks-deps\n }, [\n storeRef,\n ...retainables\n ]); // We want to retain if the component suspends. This is terrible but the Suspense\n // API affords us no better option. If we suspend and never commit after some\n // seconds, then release. The 'actual' retain/release in the effect above\n // cancels this.\n const timeoutID = useRef$3();\n const previousRetainables = Recoil_usePrevious(retainables);\n if (!isSSR$2 && (previousRetainables === undefined || !Recoil_shallowArrayEqual(previousRetainables, retainables))) {\n const store = storeRef.current;\n for (const r of retainables)updateRetainCount$2(store, r, 1);\n if (previousRetainables) for (const r of previousRetainables)updateRetainCount$2(store, r, -1);\n if (timeoutID.current) window.clearTimeout(timeoutID.current);\n timeoutID.current = window.setTimeout(()=>{\n timeoutID.current = null;\n for (const r of retainables)updateRetainCount$2(store, r, -1);\n }, SUSPENSE_TIMEOUT_MS$1);\n }\n}\nvar Recoil_useRetain = useRetain;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * THIS CODE HAS BEEN COMMENTED OUT INTENTIONALLY\n *\n * This technique of getting the component name is imperfect, since it both only\n * works in a non-minified code base, and more importantly introduces performance\n * problems since it relies in throwing errors which is an expensive operation.\n *\n * At some point we may want to reevaluate this technique hence why we have commented\n * this code out, rather than delete it all together.\n */ // const {useRef} = require('react');\n// const gkx = require('recoil-shared/util/Recoil_gkx');\n// const stackTraceParser = require('recoil-shared/util/Recoil_stackTraceParser');\nfunction useComponentName() {\n // const nameRef = useRef();\n // if (__DEV__) {\n // if (gkx('recoil_infer_component_names')) {\n // if (nameRef.current === undefined) {\n // // There is no blessed way to determine the calling React component from\n // // within a hook. This hack uses the fact that hooks must start with 'use'\n // // and that hooks are either called by React Components or other hooks. It\n // // follows therefore, that to find the calling component, you simply need\n // // to look down the stack and find the first function which doesn't start\n // // with 'use'. We are only enabling this in dev for now, since once the\n // // codebase is minified, the naming assumptions no longer hold true.\n // // eslint-disable-next-line fb-www/no-new-error\n // const frames = stackTraceParser(new Error().stack);\n // for (const {methodName} of frames) {\n // // I observed cases where the frame was of the form 'Object.useXXX'\n // // hence why I'm searching for hooks following a word boundary\n // if (!methodName.match(/\\buse[^\\b]+$/)) {\n // return (nameRef.current = methodName);\n // }\n // }\n // nameRef.current = null;\n // }\n // return nameRef.current ?? '';\n // }\n // }\n // @fb-only: return \"\";\n return \"\"; // @oss-only\n}\nvar Recoil_useComponentName = useComponentName;\nconst { batchUpdates: batchUpdates$2 } = Recoil_Batching;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$2 } = Recoil_Node;\nconst { currentRendererSupportsUseSyncExternalStore: currentRendererSupportsUseSyncExternalStore$1 , reactMode: reactMode$3 , useMutableSource: useMutableSource$1 , useSyncExternalStore: useSyncExternalStore$1 } = Recoil_ReactMode;\nconst { useRecoilMutableSource: useRecoilMutableSource$1 , useStoreRef: useStoreRef$2 } = Recoil_RecoilRoot;\nconst { isRecoilValue: isRecoilValue$2 } = Recoil_RecoilValue$1;\nconst { AbstractRecoilValue: AbstractRecoilValue$3 , getRecoilValueAsLoadable: getRecoilValueAsLoadable$2 , setRecoilValue: setRecoilValue$2 , setUnvalidatedRecoilValue: setUnvalidatedRecoilValue$2 , subscribeToRecoilValue: subscribeToRecoilValue$1 } = Recoil_RecoilValueInterface;\nconst { useCallback: useCallback$1 , useEffect: useEffect$3 , useMemo: useMemo$1 , useRef: useRef$4 , useState: useState$1 } = (0, _reactDefault.default);\nconst { setByAddingToSet: setByAddingToSet$2 } = Recoil_CopyOnWrite;\nconst { isSSR: isSSR$3 } = Recoil_Environment;\nfunction handleLoadable(loadable, recoilValue, storeRef) {\n // We can't just throw the promise we are waiting on to Suspense. If the\n // upstream dependencies change it may produce a state in which the component\n // can render, but it would still be suspended on a Promise that may never resolve.\n if (loadable.state === \"hasValue\") return loadable.contents;\n else if (loadable.state === \"loading\") {\n const promise = new Promise((resolve)=>{\n const suspendedComponentResolvers = storeRef.current.getState().suspendedComponentResolvers;\n suspendedComponentResolvers.add(resolve); // SSR should clear out the wake-up resolver if the Promise is resolved\n // to avoid infinite loops. (See https://github.com/facebookexperimental/Recoil/pull/2073)\n if (isSSR$3 && Recoil_isPromise(loadable.contents)) loadable.contents.finally(()=>{\n suspendedComponentResolvers.delete(resolve);\n });\n }); // $FlowExpectedError Flow(prop-missing) for integrating with tools that inspect thrown promises @fb-only\n // @fb-only: promise.displayName = `Recoil State: ${recoilValue.key}`;\n throw promise;\n } else if (loadable.state === \"hasError\") throw loadable.contents;\n else throw Recoil_err(`Invalid value of loadable atom \"${recoilValue.key}\"`);\n}\nfunction validateRecoilValue(recoilValue, hookName // $FlowFixMe[missing-local-annot]\n) {\n if (!isRecoilValue$2(recoilValue)) throw Recoil_err(`Invalid argument to ${hookName}: expected an atom or selector but got ${String(recoilValue)}`);\n}\n/**\n * Various things are broken with useRecoilInterface, particularly concurrent\n * mode, React strict mode, and memory management. They will not be fixed.\n * */ function useRecoilInterface_DEPRECATED() {\n const componentName = Recoil_useComponentName();\n const storeRef = useStoreRef$2(); // eslint-disable-next-line fb-www/react-no-unused-state-hook\n const [, forceUpdate] = useState$1([]);\n const recoilValuesUsed = useRef$4(new Set());\n recoilValuesUsed.current = new Set(); // Track the RecoilValues used just during this render\n const previousSubscriptions = useRef$4(new Set());\n const subscriptions = useRef$4(new Map());\n const unsubscribeFrom = useCallback$1((key)=>{\n const sub = subscriptions.current.get(key);\n if (sub) {\n sub.release();\n subscriptions.current.delete(key);\n }\n }, [\n subscriptions\n ]);\n const updateState = useCallback$1((_state, key)=>{\n if (subscriptions.current.has(key)) forceUpdate([]);\n }, []); // Effect to add/remove subscriptions as nodes are used\n useEffect$3(()=>{\n const store = storeRef.current;\n Recoil_differenceSets(recoilValuesUsed.current, previousSubscriptions.current).forEach((key)=>{\n if (subscriptions.current.has(key)) {\n Recoil_expectationViolation(`Double subscription to RecoilValue \"${key}\"`);\n return;\n }\n const sub = subscribeToRecoilValue$1(store, new AbstractRecoilValue$3(key), (state)=>updateState(state, key), componentName);\n subscriptions.current.set(key, sub);\n /**\n * Since we're subscribing in an effect we need to update to the latest\n * value of the atom since it may have changed since we rendered. We can\n * go ahead and do that now, unless we're in the middle of a batch --\n * in which case we should do it at the end of the batch, due to the\n * following edge case: Suppose an atom is updated in another useEffect\n * of this same component. Then the following sequence of events occur:\n * 1. Atom is updated and subs fired (but we may not be subscribed\n * yet depending on order of effects, so we miss this) Updated value\n * is now in nextTree, but not currentTree.\n * 2. This effect happens. We subscribe and update.\n * 3. From the update we re-render and read currentTree, with old value.\n * 4. Batcher's effect sets currentTree to nextTree.\n * In this sequence we miss the update. To avoid that, add the update\n * to queuedComponentCallback if a batch is in progress.\n */ // FIXME delete queuedComponentCallbacks_DEPRECATED when deleting useInterface.\n const state = store.getState();\n if (state.nextTree) store.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{\n updateState(store.getState(), key);\n });\n else updateState(store.getState(), key);\n });\n Recoil_differenceSets(previousSubscriptions.current, recoilValuesUsed.current).forEach((key)=>{\n unsubscribeFrom(key);\n });\n previousSubscriptions.current = recoilValuesUsed.current;\n }); // Effect to unsubscribe from all when unmounting\n useEffect$3(()=>{\n const currentSubscriptions = subscriptions.current; // Restore subscriptions that were cleared due to StrictMode running this effect twice\n Recoil_differenceSets(recoilValuesUsed.current, new Set(currentSubscriptions.keys())).forEach((key)=>{\n const sub = subscribeToRecoilValue$1(storeRef.current, new AbstractRecoilValue$3(key), (state)=>updateState(state, key), componentName);\n currentSubscriptions.set(key, sub);\n });\n return ()=>currentSubscriptions.forEach((_, key)=>unsubscribeFrom(key));\n }, [\n componentName,\n storeRef,\n unsubscribeFrom,\n updateState\n ]);\n return useMemo$1(()=>{\n // eslint-disable-next-line no-shadow\n function useSetRecoilState(recoilState) {\n return (newValueOrUpdater)=>{\n setRecoilValue$2(storeRef.current, recoilState, newValueOrUpdater);\n };\n } // eslint-disable-next-line no-shadow\n function useResetRecoilState(recoilState) {\n return ()=>setRecoilValue$2(storeRef.current, recoilState, DEFAULT_VALUE$2);\n } // eslint-disable-next-line no-shadow\n function useRecoilValueLoadable(recoilValue) {\n var _storeState$nextTree;\n if (!recoilValuesUsed.current.has(recoilValue.key)) recoilValuesUsed.current = setByAddingToSet$2(recoilValuesUsed.current, recoilValue.key);\n // TODO Restore optimization to memoize lookup\n const storeState = storeRef.current.getState();\n return getRecoilValueAsLoadable$2(storeRef.current, recoilValue, reactMode$3().early ? (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree : storeState.currentTree);\n } // eslint-disable-next-line no-shadow\n function useRecoilValue(recoilValue) {\n const loadable = useRecoilValueLoadable(recoilValue);\n return handleLoadable(loadable, recoilValue, storeRef);\n } // eslint-disable-next-line no-shadow\n function useRecoilState(recoilState) {\n return [\n useRecoilValue(recoilState),\n useSetRecoilState(recoilState)\n ];\n } // eslint-disable-next-line no-shadow\n function useRecoilStateLoadable(recoilState) {\n return [\n useRecoilValueLoadable(recoilState),\n useSetRecoilState(recoilState)\n ];\n }\n return {\n getRecoilValue: useRecoilValue,\n getRecoilValueLoadable: useRecoilValueLoadable,\n getRecoilState: useRecoilState,\n getRecoilStateLoadable: useRecoilStateLoadable,\n getSetRecoilState: useSetRecoilState,\n getResetRecoilState: useResetRecoilState\n };\n }, [\n recoilValuesUsed,\n storeRef\n ]);\n}\nconst recoilComponentGetRecoilValueCount_FOR_TESTING = {\n current: 0\n};\nfunction useRecoilValueLoadable_SYNC_EXTERNAL_STORE(recoilValue) {\n const storeRef = useStoreRef$2();\n const componentName = Recoil_useComponentName();\n const getSnapshot = useCallback$1(()=>{\n var _storeState$nextTree2;\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree2 = storeState.nextTree) !== null && _storeState$nextTree2 !== void 0 ? _storeState$nextTree2 : storeState.currentTree : storeState.currentTree;\n const loadable = getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n return {\n loadable,\n key: recoilValue.key\n };\n }, [\n storeRef,\n recoilValue\n ]); // Memoize the state to avoid unnecessary rerenders\n const memoizePreviousSnapshot = useCallback$1((getState)=>{\n let prevState;\n return ()=>{\n var _prevState, _prevState2;\n const nextState = getState();\n if ((_prevState = prevState) !== null && _prevState !== void 0 && _prevState.loadable.is(nextState.loadable) && ((_prevState2 = prevState) === null || _prevState2 === void 0 ? void 0 : _prevState2.key) === nextState.key) return prevState;\n prevState = nextState;\n return nextState;\n };\n }, []);\n const getMemoizedSnapshot = useMemo$1(()=>memoizePreviousSnapshot(getSnapshot), [\n getSnapshot,\n memoizePreviousSnapshot\n ]);\n const subscribe = useCallback$1((notify)=>{\n const store = storeRef.current;\n const subscription = subscribeToRecoilValue$1(store, recoilValue, notify, componentName);\n return subscription.release;\n }, [\n storeRef,\n recoilValue,\n componentName\n ]);\n return useSyncExternalStore$1(subscribe, getMemoizedSnapshot, getMemoizedSnapshot // getServerSnapshot() for SSR support\n ).loadable;\n}\nfunction useRecoilValueLoadable_MUTABLE_SOURCE(recoilValue) {\n const storeRef = useStoreRef$2();\n const getLoadable = useCallback$1(()=>{\n var _storeState$nextTree3;\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree3 = storeState.nextTree) !== null && _storeState$nextTree3 !== void 0 ? _storeState$nextTree3 : storeState.currentTree : storeState.currentTree;\n return getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n }, [\n storeRef,\n recoilValue\n ]);\n const getLoadableWithTesting = useCallback$1(()=>{\n return getLoadable();\n }, [\n getLoadable\n ]);\n const componentName = Recoil_useComponentName();\n const subscribe = useCallback$1((_storeState, notify)=>{\n const store = storeRef.current;\n const subscription = subscribeToRecoilValue$1(store, recoilValue, ()=>{\n if (!Recoil_gkx(\"recoil_suppress_rerender_in_callback\")) return notify();\n // Only re-render if the value has changed.\n // This will evaluate the atom/selector now as well as when the\n // component renders, but that may help with prefetching.\n const newLoadable = getLoadable();\n if (!prevLoadableRef.current.is(newLoadable)) notify();\n // If the component is suspended then the effect setting prevLoadableRef\n // will not run. So, set the previous value here when its subscription\n // is fired to wake it up. We can't just rely on this, though, because\n // this only executes when an atom/selector is dirty and the atom/selector\n // passed to the hook can dynamically change.\n prevLoadableRef.current = newLoadable;\n }, componentName);\n return subscription.release;\n }, [\n storeRef,\n recoilValue,\n componentName,\n getLoadable\n ]);\n const source = useRecoilMutableSource$1();\n if (source == null) throw Recoil_err(\"Recoil hooks must be used in components contained within a component.\");\n const loadable = useMutableSource$1(source, getLoadableWithTesting, subscribe);\n const prevLoadableRef = useRef$4(loadable);\n useEffect$3(()=>{\n prevLoadableRef.current = loadable;\n });\n return loadable;\n}\nfunction useRecoilValueLoadable_TRANSITION_SUPPORT(recoilValue) {\n const storeRef = useStoreRef$2();\n const componentName = Recoil_useComponentName(); // Accessors to get the current state\n const getLoadable = useCallback$1(()=>{\n var _storeState$nextTree4;\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree4 = storeState.nextTree) !== null && _storeState$nextTree4 !== void 0 ? _storeState$nextTree4 : storeState.currentTree : storeState.currentTree;\n return getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n }, [\n storeRef,\n recoilValue\n ]);\n const getState = useCallback$1(()=>({\n loadable: getLoadable(),\n key: recoilValue.key\n }), [\n getLoadable,\n recoilValue.key\n ]); // Memoize state snapshots\n const updateState = useCallback$1((prevState)=>{\n const nextState = getState();\n return prevState.loadable.is(nextState.loadable) && prevState.key === nextState.key ? prevState : nextState;\n }, [\n getState\n ]); // Subscribe to Recoil state changes\n useEffect$3(()=>{\n const subscription = subscribeToRecoilValue$1(storeRef.current, recoilValue, (_state)=>{\n setState(updateState);\n }, componentName); // Update state in case we are using a different key\n setState(updateState);\n return subscription.release;\n }, [\n componentName,\n recoilValue,\n storeRef,\n updateState\n ]); // Get the current state\n const [state, setState] = useState$1(getState); // If we changed keys, then return the state for the new key.\n // This is important in case the old key would cause the component to suspend.\n // We don't have to set the new state here since the subscribing effect above\n // will do that.\n return state.key !== recoilValue.key ? getState().loadable : state.loadable;\n}\nfunction useRecoilValueLoadable_LEGACY(recoilValue) {\n const storeRef = useStoreRef$2(); // eslint-disable-next-line fb-www/react-no-unused-state-hook\n const [, forceUpdate] = useState$1([]);\n const componentName = Recoil_useComponentName();\n const getLoadable = useCallback$1(()=>{\n var _storeState$nextTree5;\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree5 = storeState.nextTree) !== null && _storeState$nextTree5 !== void 0 ? _storeState$nextTree5 : storeState.currentTree : storeState.currentTree;\n return getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n }, [\n storeRef,\n recoilValue\n ]);\n const loadable = getLoadable();\n const prevLoadableRef = useRef$4(loadable);\n useEffect$3(()=>{\n prevLoadableRef.current = loadable;\n });\n useEffect$3(()=>{\n const store = storeRef.current;\n const storeState = store.getState();\n const subscription = subscribeToRecoilValue$1(store, recoilValue, (_state)=>{\n var _prevLoadableRef$curr;\n if (!Recoil_gkx(\"recoil_suppress_rerender_in_callback\")) return forceUpdate([]);\n const newLoadable = getLoadable();\n if (!((_prevLoadableRef$curr = prevLoadableRef.current) !== null && _prevLoadableRef$curr !== void 0 && _prevLoadableRef$curr.is(newLoadable))) // $FlowFixMe[incompatible-call]\n forceUpdate(newLoadable);\n prevLoadableRef.current = newLoadable;\n }, componentName);\n /**\n * Since we're subscribing in an effect we need to update to the latest\n * value of the atom since it may have changed since we rendered. We can\n * go ahead and do that now, unless we're in the middle of a batch --\n * in which case we should do it at the end of the batch, due to the\n * following edge case: Suppose an atom is updated in another useEffect\n * of this same component. Then the following sequence of events occur:\n * 1. Atom is updated and subs fired (but we may not be subscribed\n * yet depending on order of effects, so we miss this) Updated value\n * is now in nextTree, but not currentTree.\n * 2. This effect happens. We subscribe and update.\n * 3. From the update we re-render and read currentTree, with old value.\n * 4. Batcher's effect sets currentTree to nextTree.\n * In this sequence we miss the update. To avoid that, add the update\n * to queuedComponentCallback if a batch is in progress.\n */ if (storeState.nextTree) store.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{\n // $FlowFixMe[incompatible-type]\n prevLoadableRef.current = null;\n forceUpdate([]);\n });\n else {\n var _prevLoadableRef$curr2;\n if (!Recoil_gkx(\"recoil_suppress_rerender_in_callback\")) return forceUpdate([]);\n const newLoadable = getLoadable();\n if (!((_prevLoadableRef$curr2 = prevLoadableRef.current) !== null && _prevLoadableRef$curr2 !== void 0 && _prevLoadableRef$curr2.is(newLoadable))) // $FlowFixMe[incompatible-call]\n forceUpdate(newLoadable);\n prevLoadableRef.current = newLoadable;\n }\n return subscription.release;\n }, [\n componentName,\n getLoadable,\n recoilValue,\n storeRef\n ]);\n return loadable;\n}\n/**\n Like useRecoilValue(), but either returns the value if available or\n just undefined if not available for any reason, such as pending or error.\n*/ function useRecoilValueLoadable(recoilValue) {\n if (Recoil_gkx(\"recoil_memory_managament_2020\")) // eslint-disable-next-line fb-www/react-hooks\n Recoil_useRetain(recoilValue);\n return ({\n TRANSITION_SUPPORT: useRecoilValueLoadable_TRANSITION_SUPPORT,\n // Recoil will attemp to detect if `useSyncExternalStore()` is supported with\n // `reactMode()` before calling it. However, sometimes the host React\n // environment supports it but uses additional React renderers (such as with\n // `react-three-fiber`) which do not. While this is technically a user issue\n // by using a renderer with React 18+ that doesn't fully support React 18 we\n // don't want to break users if it can be avoided. As the current renderer can\n // change at runtime, we need to dynamically check and fallback if necessary.\n SYNC_EXTERNAL_STORE: currentRendererSupportsUseSyncExternalStore$1() ? useRecoilValueLoadable_SYNC_EXTERNAL_STORE : useRecoilValueLoadable_TRANSITION_SUPPORT,\n MUTABLE_SOURCE: useRecoilValueLoadable_MUTABLE_SOURCE,\n LEGACY: useRecoilValueLoadable_LEGACY\n })[reactMode$3().mode](recoilValue);\n}\n/**\n Returns the value represented by the RecoilValue.\n If the value is pending, it will throw a Promise to suspend the component,\n if the value is an error it will throw it for the nearest React error boundary.\n This will also subscribe the component for any updates in the value.\n */ function useRecoilValue(recoilValue) {\n const storeRef = useStoreRef$2();\n const loadable = useRecoilValueLoadable(recoilValue);\n return handleLoadable(loadable, recoilValue, storeRef);\n}\n/**\n Returns a function that allows the value of a RecoilState to be updated, but does\n not subscribe the component to changes to that RecoilState.\n*/ function useSetRecoilState(recoilState) {\n const storeRef = useStoreRef$2();\n return useCallback$1((newValueOrUpdater)=>{\n setRecoilValue$2(storeRef.current, recoilState, newValueOrUpdater);\n }, [\n storeRef,\n recoilState\n ]);\n}\n/**\n Returns a function that will reset the value of a RecoilState to its default\n*/ function useResetRecoilState(recoilState) {\n const storeRef = useStoreRef$2();\n return useCallback$1(()=>{\n setRecoilValue$2(storeRef.current, recoilState, DEFAULT_VALUE$2);\n }, [\n storeRef,\n recoilState\n ]);\n}\n/**\n Equivalent to useState(). Allows the value of the RecoilState to be read and written.\n Subsequent updates to the RecoilState will cause the component to re-render. If the\n RecoilState is pending, this will suspend the component and initiate the\n retrieval of the value. If evaluating the RecoilState resulted in an error, this will\n throw the error so that the nearest React error boundary can catch it.\n*/ function useRecoilState(recoilState) {\n return [\n useRecoilValue(recoilState),\n useSetRecoilState(recoilState)\n ];\n}\n/**\n Like useRecoilState(), but does not cause Suspense or React error handling. Returns\n an object that indicates whether the RecoilState is available, pending, or\n unavailable due to an error.\n*/ function useRecoilStateLoadable(recoilState) {\n return [\n useRecoilValueLoadable(recoilState),\n useSetRecoilState(recoilState)\n ];\n}\nfunction useSetUnvalidatedAtomValues() {\n const storeRef = useStoreRef$2();\n return (values, transactionMetadata = {})=>{\n batchUpdates$2(()=>{\n storeRef.current.addTransactionMetadata(transactionMetadata);\n values.forEach((value, key)=>setUnvalidatedRecoilValue$2(storeRef.current, new AbstractRecoilValue$3(key), value));\n });\n };\n}\n/**\n * Experimental variants of hooks with support for useTransition()\n */ function useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE(recoilValue) {\n if (Recoil_gkx(\"recoil_memory_managament_2020\")) // eslint-disable-next-line fb-www/react-hooks\n Recoil_useRetain(recoilValue);\n return useRecoilValueLoadable_TRANSITION_SUPPORT(recoilValue);\n}\nfunction useRecoilValue_TRANSITION_SUPPORT_UNSTABLE(recoilValue) {\n const storeRef = useStoreRef$2();\n const loadable = useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE(recoilValue);\n return handleLoadable(loadable, recoilValue, storeRef);\n}\nfunction useRecoilState_TRANSITION_SUPPORT_UNSTABLE(recoilState) {\n return [\n useRecoilValue_TRANSITION_SUPPORT_UNSTABLE(recoilState),\n useSetRecoilState(recoilState)\n ];\n}\nvar Recoil_Hooks = {\n recoilComponentGetRecoilValueCount_FOR_TESTING,\n useRecoilInterface: useRecoilInterface_DEPRECATED,\n useRecoilState,\n useRecoilStateLoadable,\n useRecoilValue,\n useRecoilValueLoadable,\n useResetRecoilState,\n useSetRecoilState,\n useSetUnvalidatedAtomValues,\n useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE,\n useRecoilValue_TRANSITION_SUPPORT_UNSTABLE,\n useRecoilState_TRANSITION_SUPPORT_UNSTABLE\n};\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Returns a map containing all of the keys + values from the original map where\n * the given callback returned true.\n */ function filterMap(map, callback) {\n const result = new Map();\n for (const [key, value] of map)if (callback(value, key)) result.set(key, value);\n return result;\n}\nvar Recoil_filterMap = filterMap;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ /**\n * Returns a set containing all of the values from the original set where\n * the given callback returned true.\n */ function filterSet(set, callback) {\n const result = new Set();\n for (const value of set)if (callback(value)) result.add(value);\n return result;\n}\nvar Recoil_filterSet = filterSet;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function mergeMaps(...maps) {\n const result = new Map();\n for(let i = 0; i < maps.length; i++){\n const iterator = maps[i].keys();\n let nextKey;\n while(!(nextKey = iterator.next()).done)// $FlowIssue[incompatible-call] - map/iterator knows nothing about flow types\n result.set(nextKey.value, maps[i].get(nextKey.value));\n }\n return result;\n}\nvar Recoil_mergeMaps = mergeMaps;\nconst { batchUpdates: batchUpdates$3 } = Recoil_Batching;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$3 , getNode: getNode$4 , nodes: nodes$1 } = Recoil_Node;\nconst { useStoreRef: useStoreRef$3 } = Recoil_RecoilRoot;\nconst { AbstractRecoilValue: AbstractRecoilValue$4 , setRecoilValueLoadable: setRecoilValueLoadable$1 } = Recoil_RecoilValueInterface;\nconst { SUSPENSE_TIMEOUT_MS: SUSPENSE_TIMEOUT_MS$2 } = Recoil_Retention;\nconst { cloneSnapshot: cloneSnapshot$1 } = Recoil_Snapshot$1;\nconst { useCallback: useCallback$2 , useEffect: useEffect$4 , useRef: useRef$5 , useState: useState$2 } = (0, _reactDefault.default);\nconst { isSSR: isSSR$4 } = Recoil_Environment;\nfunction useTransactionSubscription(callback) {\n const storeRef = useStoreRef$3();\n useEffect$4(()=>{\n const sub = storeRef.current.subscribeToTransactions(callback);\n return sub.release;\n }, [\n callback,\n storeRef\n ]);\n}\nfunction externallyVisibleAtomValuesInState(state) {\n const atomValues = state.atomValues.toMap();\n const persistedAtomContentsValues = Recoil_mapMap(Recoil_filterMap(atomValues, (v, k)=>{\n const node = getNode$4(k);\n const persistence = node.persistence_UNSTABLE;\n return persistence != null && persistence.type !== \"none\" && v.state === \"hasValue\";\n }), (v)=>v.contents); // Merge in nonvalidated atoms; we may not have defs for them but they will\n // all have persistence on or they wouldn't be there in the first place.\n return Recoil_mergeMaps(state.nonvalidatedAtoms.toMap(), persistedAtomContentsValues);\n}\n/**\n Calls the given callback after any atoms have been modified and the consequent\n component re-renders have been committed. This is intended for persisting\n the values of the atoms to storage. The stored values can then be restored\n using the useSetUnvalidatedAtomValues hook.\n\n The callback receives the following info:\n\n atomValues: The current value of every atom that is both persistable (persistence\n type not set to 'none') and whose value is available (not in an\n error or loading state).\n\n previousAtomValues: The value of every persistable and available atom before\n the transaction began.\n\n atomInfo: A map containing the persistence settings for each atom. Every key\n that exists in atomValues will also exist in atomInfo.\n\n modifiedAtoms: The set of atoms that were written to during the transaction.\n\n transactionMetadata: Arbitrary information that was added via the\n useSetUnvalidatedAtomValues hook. Useful for ignoring the useSetUnvalidatedAtomValues\n transaction, to avoid loops.\n*/ function useTransactionObservation_DEPRECATED(callback) {\n useTransactionSubscription(useCallback$2((store)=>{\n let previousTree = store.getState().previousTree;\n const currentTree = store.getState().currentTree;\n if (!previousTree) {\n Recoil_recoverableViolation(\"Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil\");\n previousTree = store.getState().currentTree; // attempt to trundle on\n }\n const atomValues = externallyVisibleAtomValuesInState(currentTree);\n const previousAtomValues = externallyVisibleAtomValuesInState(previousTree);\n const atomInfo = Recoil_mapMap(nodes$1, (node)=>{\n var _node$persistence_UNS, _node$persistence_UNS2, _node$persistence_UNS3, _node$persistence_UNS4;\n return {\n persistence_UNSTABLE: {\n type: (_node$persistence_UNS = (_node$persistence_UNS2 = node.persistence_UNSTABLE) === null || _node$persistence_UNS2 === void 0 ? void 0 : _node$persistence_UNS2.type) !== null && _node$persistence_UNS !== void 0 ? _node$persistence_UNS : \"none\",\n backButton: (_node$persistence_UNS3 = (_node$persistence_UNS4 = node.persistence_UNSTABLE) === null || _node$persistence_UNS4 === void 0 ? void 0 : _node$persistence_UNS4.backButton) !== null && _node$persistence_UNS3 !== void 0 ? _node$persistence_UNS3 : false\n }\n };\n }); // Filter on existance in atomValues so that externally-visible rules\n // are also applied to modified atoms (specifically exclude selectors):\n const modifiedAtoms = Recoil_filterSet(currentTree.dirtyAtoms, (k)=>atomValues.has(k) || previousAtomValues.has(k));\n callback({\n atomValues,\n previousAtomValues,\n atomInfo,\n modifiedAtoms,\n transactionMetadata: {\n ...currentTree.transactionMetadata\n }\n });\n }, [\n callback\n ]));\n}\nfunction useRecoilTransactionObserver(callback) {\n useTransactionSubscription(useCallback$2((store)=>{\n const snapshot = cloneSnapshot$1(store, \"latest\");\n const previousSnapshot = cloneSnapshot$1(store, \"previous\");\n callback({\n snapshot,\n previousSnapshot\n });\n }, [\n callback\n ]));\n} // Return a snapshot of the current state and subscribe to all state changes\nfunction useRecoilSnapshot() {\n const storeRef = useStoreRef$3();\n const [snapshot, setSnapshot] = useState$2(()=>cloneSnapshot$1(storeRef.current));\n const previousSnapshot = Recoil_usePrevious(snapshot);\n const timeoutID = useRef$5();\n const releaseRef = useRef$5();\n useTransactionSubscription(useCallback$2((store)=>setSnapshot(cloneSnapshot$1(store)), [])); // Retain snapshot for duration component is mounted\n useEffect$4(()=>{\n const release = snapshot.retain(); // Release the retain from the rendering call\n if (timeoutID.current && !isSSR$4) {\n var _releaseRef$current;\n window.clearTimeout(timeoutID.current);\n timeoutID.current = null;\n (_releaseRef$current = releaseRef.current) === null || _releaseRef$current === void 0 || _releaseRef$current.call(releaseRef);\n releaseRef.current = null;\n }\n return ()=>{\n // Defer the release. If \"Fast Refresh\"\" is used then the component may\n // re-render with the same state. The previous cleanup will then run and\n // then the new effect will run. We don't want the snapshot to be released\n // by that cleanup before the new effect has a chance to retain it again.\n // Use timeout of 10 to workaround Firefox issue: https://github.com/facebookexperimental/Recoil/issues/1936\n window.setTimeout(release, 10);\n };\n }, [\n snapshot\n ]); // Retain snapshot until above effect is run.\n // Release after a threshold in case component is suspended.\n if (previousSnapshot !== snapshot && !isSSR$4) {\n // Release the previous snapshot\n if (timeoutID.current) {\n var _releaseRef$current2;\n window.clearTimeout(timeoutID.current);\n timeoutID.current = null;\n (_releaseRef$current2 = releaseRef.current) === null || _releaseRef$current2 === void 0 || _releaseRef$current2.call(releaseRef);\n releaseRef.current = null;\n }\n releaseRef.current = snapshot.retain();\n timeoutID.current = window.setTimeout(()=>{\n var _releaseRef$current3;\n timeoutID.current = null;\n (_releaseRef$current3 = releaseRef.current) === null || _releaseRef$current3 === void 0 || _releaseRef$current3.call(releaseRef);\n releaseRef.current = null;\n }, SUSPENSE_TIMEOUT_MS$2);\n }\n return snapshot;\n}\nfunction gotoSnapshot(store, snapshot) {\n var _storeState$nextTree;\n const storeState = store.getState();\n const prev = (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree;\n const next = snapshot.getStore_INTERNAL().getState().currentTree;\n batchUpdates$3(()=>{\n const keysToUpdate = new Set();\n for (const keys of [\n prev.atomValues.keys(),\n next.atomValues.keys()\n ])for (const key of keys){\n var _prev$atomValues$get, _next$atomValues$get;\n if (((_prev$atomValues$get = prev.atomValues.get(key)) === null || _prev$atomValues$get === void 0 ? void 0 : _prev$atomValues$get.contents) !== ((_next$atomValues$get = next.atomValues.get(key)) === null || _next$atomValues$get === void 0 ? void 0 : _next$atomValues$get.contents) && getNode$4(key).shouldRestoreFromSnapshots) keysToUpdate.add(key);\n }\n keysToUpdate.forEach((key)=>{\n setRecoilValueLoadable$1(store, new AbstractRecoilValue$4(key), next.atomValues.has(key) ? Recoil_nullthrows(next.atomValues.get(key)) : DEFAULT_VALUE$3);\n });\n store.replaceState((state)=>({\n ...state,\n stateID: snapshot.getID()\n }));\n });\n}\nfunction useGotoRecoilSnapshot() {\n const storeRef = useStoreRef$3();\n return useCallback$2((snapshot)=>gotoSnapshot(storeRef.current, snapshot), [\n storeRef\n ]);\n}\nvar Recoil_SnapshotHooks = {\n useRecoilSnapshot,\n gotoSnapshot,\n useGotoRecoilSnapshot,\n useRecoilTransactionObserver,\n useTransactionObservation_DEPRECATED,\n useTransactionSubscription_DEPRECATED: useTransactionSubscription\n};\nconst { peekNodeInfo: peekNodeInfo$2 } = Recoil_FunctionalCore;\nconst { useStoreRef: useStoreRef$4 } = Recoil_RecoilRoot;\nfunction useGetRecoilValueInfo() {\n const storeRef = useStoreRef$4(); // $FlowFixMe[incompatible-return]\n return ({ key })=>peekNodeInfo$2(storeRef.current, storeRef.current.getState().currentTree, key);\n}\nvar Recoil_useGetRecoilValueInfo = useGetRecoilValueInfo;\nconst { reactMode: reactMode$4 } = Recoil_ReactMode;\nconst { RecoilRoot: RecoilRoot$1 , useStoreRef: useStoreRef$5 } = Recoil_RecoilRoot;\nconst { useMemo: useMemo$2 } = (0, _reactDefault.default);\nfunction useRecoilBridgeAcrossReactRoots() {\n // The test fails when using useMutableSource(), but only if act() is used\n // for the nested root. So, this may only be a testing environment issue.\n if (reactMode$4().mode === \"MUTABLE_SOURCE\") // eslint-disable-next-line fb-www/no-console\n console.warn(\"Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.\");\n const store = useStoreRef$5().current;\n return useMemo$2(()=>{\n // eslint-disable-next-line no-shadow\n function RecoilBridge({ children }) {\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(RecoilRoot$1, {\n store_INTERNAL: store\n }, children);\n }\n return RecoilBridge;\n }, [\n store\n ]);\n}\nvar Recoil_useRecoilBridgeAcrossReactRoots = useRecoilBridgeAcrossReactRoots;\nconst { loadableWithValue: loadableWithValue$1 } = Recoil_Loadable$1;\nconst { initializeNode: initializeNode$3 } = Recoil_FunctionalCore;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$4 , getNode: getNode$5 } = Recoil_Node;\nconst { copyTreeState: copyTreeState$1 , getRecoilValueAsLoadable: getRecoilValueAsLoadable$3 , invalidateDownstreams: invalidateDownstreams$1 , writeLoadableToTreeState: writeLoadableToTreeState$1 } = Recoil_RecoilValueInterface;\nfunction isAtom(recoilValue) {\n return getNode$5(recoilValue.key).nodeType === \"atom\";\n}\nclass TransactionInterfaceImpl {\n constructor(store, treeState){\n _defineProperty(this, \"_store\", void 0);\n _defineProperty(this, \"_treeState\", void 0);\n _defineProperty(this, \"_changes\", void 0);\n _defineProperty(this, \"get\", (recoilValue)=>{\n if (this._changes.has(recoilValue.key)) // $FlowIssue[incompatible-return]\n return this._changes.get(recoilValue.key);\n if (!isAtom(recoilValue)) throw Recoil_err(\"Reading selectors within atomicUpdate is not supported\");\n const loadable = getRecoilValueAsLoadable$3(this._store, recoilValue, this._treeState);\n if (loadable.state === \"hasValue\") return loadable.contents;\n else if (loadable.state === \"hasError\") throw loadable.contents;\n else throw Recoil_err(`Expected Recoil atom ${recoilValue.key} to have a value, but it is in a loading state.`);\n });\n _defineProperty(this, \"set\", (recoilState, valueOrUpdater)=>{\n if (!isAtom(recoilState)) throw Recoil_err(\"Setting selectors within atomicUpdate is not supported\");\n if (typeof valueOrUpdater === \"function\") {\n const current = this.get(recoilState);\n this._changes.set(recoilState.key, valueOrUpdater(current)); // flowlint-line unclear-type:off\n } else {\n // Initialize atom and run effects if not initialized yet\n initializeNode$3(this._store, recoilState.key, \"set\");\n this._changes.set(recoilState.key, valueOrUpdater);\n }\n });\n _defineProperty(this, \"reset\", (recoilState)=>{\n this.set(recoilState, DEFAULT_VALUE$4);\n });\n this._store = store;\n this._treeState = treeState;\n this._changes = new Map();\n }\n // eslint-disable-next-line fb-www/extra-arrow-initializer\n newTreeState_INTERNAL() {\n if (this._changes.size === 0) return this._treeState;\n const newState = copyTreeState$1(this._treeState);\n for (const [k, v] of this._changes)writeLoadableToTreeState$1(newState, k, loadableWithValue$1(v));\n invalidateDownstreams$1(this._store, newState);\n return newState;\n }\n}\nfunction atomicUpdater(store) {\n return (fn)=>{\n store.replaceState((treeState)=>{\n const changeset = new TransactionInterfaceImpl(store, treeState);\n fn(changeset);\n return changeset.newTreeState_INTERNAL();\n });\n };\n}\nvar Recoil_AtomicUpdates = {\n atomicUpdater\n};\nvar Recoil_AtomicUpdates_1 = Recoil_AtomicUpdates.atomicUpdater;\nvar Recoil_AtomicUpdates$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n atomicUpdater: Recoil_AtomicUpdates_1\n});\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function invariant(condition, message) {\n if (!condition) throw new Error(message);\n}\nvar invariant_1 = invariant;\n// @oss-only\nvar Recoil_invariant = invariant_1;\nconst { atomicUpdater: atomicUpdater$1 } = Recoil_AtomicUpdates$1;\nconst { batchUpdates: batchUpdates$4 } = Recoil_Batching;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$5 } = Recoil_Node;\nconst { useStoreRef: useStoreRef$6 } = Recoil_RecoilRoot;\nconst { refreshRecoilValue: refreshRecoilValue$1 , setRecoilValue: setRecoilValue$3 } = Recoil_RecoilValueInterface;\nconst { cloneSnapshot: cloneSnapshot$2 } = Recoil_Snapshot$1;\nconst { gotoSnapshot: gotoSnapshot$1 } = Recoil_SnapshotHooks;\nconst { useCallback: useCallback$3 } = (0, _reactDefault.default);\nclass Sentinel {\n}\nconst SENTINEL = new Sentinel();\nfunction recoilCallback(store, fn, args, extraInterface) {\n let ret = SENTINEL;\n let releaseSnapshot;\n batchUpdates$4(()=>{\n const errMsg = \"useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.\";\n if (typeof fn !== \"function\") throw Recoil_err(errMsg);\n // Clone the snapshot lazily to avoid overhead if the callback does not use it.\n // Note that this means the snapshot may represent later state from when\n // the callback was called if it first accesses the snapshot asynchronously.\n const callbackInterface = Recoil_lazyProxy({\n ...extraInterface !== null && extraInterface !== void 0 ? extraInterface : {},\n // flowlint-line unclear-type:off\n // $FlowFixMe[missing-local-annot]\n set: (node, newValue)=>setRecoilValue$3(store, node, newValue),\n // $FlowFixMe[missing-local-annot]\n reset: (node)=>setRecoilValue$3(store, node, DEFAULT_VALUE$5),\n // $FlowFixMe[missing-local-annot]\n refresh: (node)=>refreshRecoilValue$1(store, node),\n gotoSnapshot: (snapshot)=>gotoSnapshot$1(store, snapshot),\n transact_UNSTABLE: (transaction)=>atomicUpdater$1(store)(transaction)\n }, {\n snapshot: ()=>{\n const snapshot = cloneSnapshot$2(store);\n releaseSnapshot = snapshot.retain();\n return snapshot;\n }\n });\n const callback = fn(callbackInterface);\n if (typeof callback !== \"function\") throw Recoil_err(errMsg);\n ret = callback(...args);\n });\n !!(ret instanceof Sentinel) && Recoil_invariant(false);\n if (Recoil_isPromise(ret)) ret = ret.finally(()=>{\n var _releaseSnapshot;\n (_releaseSnapshot = releaseSnapshot) === null || _releaseSnapshot === void 0 || _releaseSnapshot();\n });\n else {\n var _releaseSnapshot2;\n (_releaseSnapshot2 = releaseSnapshot) === null || _releaseSnapshot2 === void 0 || _releaseSnapshot2();\n }\n return ret;\n}\nfunction useRecoilCallback(fn, deps) {\n const storeRef = useStoreRef$6();\n return useCallback$3((...args)=>{\n return recoilCallback(storeRef.current, fn, args);\n }, deps != null ? [\n ...deps,\n storeRef\n ] : undefined // eslint-disable-line fb-www/react-hooks-deps\n );\n}\nvar Recoil_useRecoilCallback = {\n recoilCallback,\n useRecoilCallback\n};\nconst { useStoreRef: useStoreRef$7 } = Recoil_RecoilRoot;\nconst { refreshRecoilValue: refreshRecoilValue$2 } = Recoil_RecoilValueInterface;\nconst { useCallback: useCallback$4 } = (0, _reactDefault.default);\nfunction useRecoilRefresher(recoilValue) {\n const storeRef = useStoreRef$7();\n return useCallback$4(()=>{\n const store = storeRef.current;\n refreshRecoilValue$2(store, recoilValue);\n }, [\n recoilValue,\n storeRef\n ]);\n}\nvar Recoil_useRecoilRefresher = useRecoilRefresher;\nconst { atomicUpdater: atomicUpdater$2 } = Recoil_AtomicUpdates$1;\nconst { useStoreRef: useStoreRef$8 } = Recoil_RecoilRoot;\nconst { useMemo: useMemo$3 } = (0, _reactDefault.default);\nfunction useRecoilTransaction(fn, deps) {\n const storeRef = useStoreRef$8();\n return useMemo$3(()=>(...args)=>{\n const atomicUpdate = atomicUpdater$2(storeRef.current);\n atomicUpdate((transactionInterface)=>{\n fn(transactionInterface)(...args);\n });\n }, deps != null ? [\n ...deps,\n storeRef\n ] : undefined // eslint-disable-line fb-www/react-hooks-deps\n );\n}\nvar Recoil_useRecoilTransaction = useRecoilTransaction;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ class WrappedValue {\n constructor(value){\n _defineProperty(this, \"value\", void 0);\n this.value = value;\n }\n}\nvar Recoil_Wrapper = {\n WrappedValue\n};\nvar Recoil_Wrapper_1 = Recoil_Wrapper.WrappedValue;\nvar Recoil_Wrapper$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n WrappedValue: Recoil_Wrapper_1\n});\nconst { isFastRefreshEnabled: isFastRefreshEnabled$2 } = Recoil_ReactMode;\nclass ChangedPathError extends Error {\n}\nclass TreeCache {\n // $FlowIssue[unclear-type]\n constructor(options){\n var _options$onHit, _options$onSet, _options$mapNodeValue;\n _defineProperty(this, \"_name\", void 0);\n _defineProperty(this, \"_numLeafs\", void 0);\n _defineProperty(this, \"_root\", void 0);\n _defineProperty(this, \"_onHit\", void 0);\n _defineProperty(this, \"_onSet\", void 0);\n _defineProperty(this, \"_mapNodeValue\", void 0);\n this._name = options === null || options === void 0 ? void 0 : options.name;\n this._numLeafs = 0;\n this._root = null;\n this._onHit = (_options$onHit = options === null || options === void 0 ? void 0 : options.onHit) !== null && _options$onHit !== void 0 ? _options$onHit : ()=>{};\n this._onSet = (_options$onSet = options === null || options === void 0 ? void 0 : options.onSet) !== null && _options$onSet !== void 0 ? _options$onSet : ()=>{};\n this._mapNodeValue = (_options$mapNodeValue = options === null || options === void 0 ? void 0 : options.mapNodeValue) !== null && _options$mapNodeValue !== void 0 ? _options$mapNodeValue : (val)=>val;\n }\n size() {\n return this._numLeafs;\n }\n root() {\n return this._root;\n }\n get(getNodeValue, handlers) {\n var _this$getLeafNode;\n return (_this$getLeafNode = this.getLeafNode(getNodeValue, handlers)) === null || _this$getLeafNode === void 0 ? void 0 : _this$getLeafNode.value;\n }\n getLeafNode(getNodeValue, handlers) {\n if (this._root == null) return undefined;\n // Iterate down the tree based on the current node values until we hit a leaf\n // $FlowIssue[unclear-type]\n let node = this._root;\n while(node){\n handlers === null || handlers === void 0 || handlers.onNodeVisit(node);\n if (node.type === \"leaf\") {\n this._onHit(node);\n return node;\n }\n const nodeValue = this._mapNodeValue(getNodeValue(node.nodeKey));\n node = node.branches.get(nodeValue);\n }\n return undefined;\n }\n set(route, value, handlers) {\n const addLeaf = ()=>{\n var _node2, _node3, _this$_root2, _handlers$onNodeVisit2;\n // First, setup the branch nodes for the route:\n // Iterate down the tree to find or add branch nodes following the route\n let node;\n let branchKey;\n for (const [nodeKey, nodeValue] of route){\n var _node, _handlers$onNodeVisit, _this$_root;\n // If the previous root was a leaf, while we not have a get(), it means\n // the selector has inconsistent values or implementation changed.\n const root = this._root;\n if ((root === null || root === void 0 ? void 0 : root.type) === \"leaf\") throw this.invalidCacheError();\n // node now refers to the next node down in the tree\n const parent = node; // $FlowFixMe[prop-missing]\n // $FlowFixMe[incompatible-type]\n node = parent ? parent.branches.get(branchKey) : root; // $FlowFixMe[prop-missing]\n // $FlowFixMe[incompatible-type]\n node = (_node = node) !== null && _node !== void 0 ? _node : {\n type: \"branch\",\n nodeKey,\n parent,\n branches: new Map(),\n branchKey\n }; // If we found an existing node, confirm it has a consistent value\n if (node.type !== \"branch\" || node.nodeKey !== nodeKey) throw this.invalidCacheError();\n // Add the branch node to the tree\n parent === null || parent === void 0 || parent.branches.set(branchKey, node);\n handlers === null || handlers === void 0 || (_handlers$onNodeVisit = handlers.onNodeVisit) === null || _handlers$onNodeVisit === void 0 || _handlers$onNodeVisit.call(handlers, node); // Prepare for next iteration and install root if it is new.\n branchKey = this._mapNodeValue(nodeValue);\n this._root = (_this$_root = this._root) !== null && _this$_root !== void 0 ? _this$_root : node;\n } // Second, setup the leaf node:\n // If there is an existing leaf for this route confirm it is consistent\n const oldLeaf = node ? (_node2 = node) === null || _node2 === void 0 ? void 0 : _node2.branches.get(branchKey) : this._root;\n if (oldLeaf != null && (oldLeaf.type !== \"leaf\" || oldLeaf.branchKey !== branchKey)) throw this.invalidCacheError();\n // Create a new or replacement leaf.\n const leafNode = {\n type: \"leaf\",\n value,\n parent: node,\n branchKey\n }; // Install the leaf and call handlers\n (_node3 = node) === null || _node3 === void 0 || _node3.branches.set(branchKey, leafNode);\n this._root = (_this$_root2 = this._root) !== null && _this$_root2 !== void 0 ? _this$_root2 : leafNode;\n this._numLeafs++;\n this._onSet(leafNode);\n handlers === null || handlers === void 0 || (_handlers$onNodeVisit2 = handlers.onNodeVisit) === null || _handlers$onNodeVisit2 === void 0 || _handlers$onNodeVisit2.call(handlers, leafNode);\n };\n try {\n addLeaf();\n } catch (error) {\n // If the cache was stale or observed inconsistent values, such as with\n // Fast Refresh, then clear it and rebuild with the new values.\n if (error instanceof ChangedPathError) {\n this.clear();\n addLeaf();\n } else throw error;\n }\n }\n delete(leaf) {\n const root = this.root();\n if (!root) return false;\n if (leaf === root) {\n this._root = null;\n this._numLeafs = 0;\n return true;\n } // Iterate up from the leaf deleteing it from it's parent's branches.\n let node = leaf.parent;\n let branchKey = leaf.branchKey;\n while(node){\n var _node4;\n node.branches.delete(branchKey); // Stop iterating if we hit the root.\n if (node === root) {\n if (node.branches.size === 0) {\n this._root = null;\n this._numLeafs = 0;\n } else this._numLeafs--;\n return true;\n } // Stop iterating if there are other branches since we don't need to\n // remove any more nodes.\n if (node.branches.size > 0) break;\n // Iterate up to our parent\n branchKey = (_node4 = node) === null || _node4 === void 0 ? void 0 : _node4.branchKey;\n node = node.parent;\n } // Confirm that the leaf we are deleting is actually attached to our tree\n for(; node !== root; node = node.parent){\n if (node == null) return false;\n }\n this._numLeafs--;\n return true;\n }\n clear() {\n this._numLeafs = 0;\n this._root = null;\n }\n invalidCacheError() {\n const CHANGED_PATH_ERROR_MESSAGE = isFastRefreshEnabled$2() ? \"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.\" : \"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.\";\n Recoil_recoverableViolation(CHANGED_PATH_ERROR_MESSAGE + (this._name != null ? ` - ${this._name}` : \"\"));\n throw new ChangedPathError();\n }\n}\nvar Recoil_TreeCache = {\n TreeCache\n};\nvar Recoil_TreeCache_1 = Recoil_TreeCache.TreeCache;\nvar Recoil_TreeCache$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n TreeCache: Recoil_TreeCache_1\n});\nclass LRUCache {\n constructor(options){\n var _options$mapKey;\n _defineProperty(this, \"_maxSize\", void 0);\n _defineProperty(this, \"_size\", void 0);\n _defineProperty(this, \"_head\", void 0);\n _defineProperty(this, \"_tail\", void 0);\n _defineProperty(this, \"_map\", void 0);\n _defineProperty(this, \"_keyMapper\", void 0);\n this._maxSize = options.maxSize;\n this._size = 0;\n this._head = null;\n this._tail = null;\n this._map = new Map();\n this._keyMapper = (_options$mapKey = options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : (v)=>v;\n }\n head() {\n return this._head;\n }\n tail() {\n return this._tail;\n }\n size() {\n return this._size;\n }\n maxSize() {\n return this._maxSize;\n }\n has(key) {\n return this._map.has(this._keyMapper(key));\n }\n get(key) {\n const mappedKey = this._keyMapper(key);\n const node = this._map.get(mappedKey);\n if (!node) return undefined;\n this.set(key, node.value);\n return node.value;\n }\n set(key, val) {\n const mappedKey = this._keyMapper(key);\n const existingNode = this._map.get(mappedKey);\n if (existingNode) this.delete(key);\n const head = this.head();\n const node = {\n key,\n right: head,\n left: null,\n value: val\n };\n if (head) head.left = node;\n else this._tail = node;\n this._map.set(mappedKey, node);\n this._head = node;\n this._size++;\n this._maybeDeleteLRU();\n }\n _maybeDeleteLRU() {\n if (this.size() > this.maxSize()) this.deleteLru();\n }\n deleteLru() {\n const tail = this.tail();\n if (tail) this.delete(tail.key);\n }\n delete(key) {\n const mappedKey = this._keyMapper(key);\n if (!this._size || !this._map.has(mappedKey)) return;\n const node = Recoil_nullthrows(this._map.get(mappedKey));\n const right = node.right;\n const left = node.left;\n if (right) right.left = node.left;\n if (left) left.right = node.right;\n if (node === this.head()) this._head = right;\n if (node === this.tail()) this._tail = left;\n this._map.delete(mappedKey);\n this._size--;\n }\n clear() {\n this._size = 0;\n this._head = null;\n this._tail = null;\n this._map = new Map();\n }\n}\nvar Recoil_LRUCache = {\n LRUCache\n};\nvar Recoil_LRUCache_1 = Recoil_LRUCache.LRUCache;\nvar Recoil_LRUCache$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n LRUCache: Recoil_LRUCache_1\n});\nconst { LRUCache: LRUCache$1 } = Recoil_LRUCache$1;\nconst { TreeCache: TreeCache$1 } = Recoil_TreeCache$1;\nfunction treeCacheLRU({ name , maxSize , mapNodeValue =(v)=>v }) {\n const lruCache = new LRUCache$1({\n maxSize\n });\n const cache = new TreeCache$1({\n name,\n mapNodeValue,\n onHit: (node)=>{\n lruCache.set(node, true);\n },\n onSet: (node)=>{\n const lruNode = lruCache.tail();\n lruCache.set(node, true);\n if (lruNode && cache.size() > maxSize) // $FlowFixMe[incompatible-call]\n cache.delete(lruNode.key);\n }\n });\n return cache;\n}\nvar Recoil_treeCacheLRU = treeCacheLRU;\nconst TIME_WARNING_THRESHOLD_MS = 15;\nfunction stringify(x, opt, key) {\n // A optimization to avoid the more expensive JSON.stringify() for simple strings\n // This may lose protection for u2028 and u2029, though.\n if (typeof x === \"string\" && !x.includes('\"') && !x.includes(\"\\\\\")) return `\"${x}\"`;\n // Handle primitive types\n switch(typeof x){\n case \"undefined\":\n return \"\";\n // JSON.stringify(undefined) returns undefined, but we always want to return a string\n case \"boolean\":\n return x ? \"true\" : \"false\";\n case \"number\":\n case \"symbol\":\n // case 'bigint': // BigInt is not supported in www\n return String(x);\n case \"string\":\n // Add surrounding quotes and escape internal quotes\n return JSON.stringify(x);\n case \"function\":\n if ((opt === null || opt === void 0 ? void 0 : opt.allowFunctions) !== true) throw Recoil_err(\"Attempt to serialize function in a Recoil cache key\");\n return `__FUNCTION(${x.name})__`;\n }\n if (x === null) return \"null\";\n // Fallback case for unknown types\n if (typeof x !== \"object\") {\n var _JSON$stringify;\n return (_JSON$stringify = JSON.stringify(x)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : \"\";\n } // Deal with all promises as equivalent for now.\n if (Recoil_isPromise(x)) return \"__PROMISE__\";\n // Arrays handle recursive stringification\n if (Array.isArray(x)) // $FlowFixMe[missing-local-annot]\n return `[${x.map((v, i)=>stringify(v, opt, i.toString()))}]`;\n // If an object defines a toJSON() method, then use that to override the\n // serialization. This matches the behavior of JSON.stringify().\n // Pass the key for compatibility.\n // Immutable.js collections define this method to allow us to serialize them.\n if (typeof x.toJSON === \"function\") // flowlint-next-line unclear-type: off\n return stringify(x.toJSON(key), opt, key);\n // For built-in Maps, sort the keys in a stable order instead of the\n // default insertion order. Support non-string keys.\n if (x instanceof Map) {\n const obj = {};\n for (const [k, v] of x)// Stringify will escape any nested quotes\n obj[typeof k === \"string\" ? k : stringify(k, opt)] = v;\n return stringify(obj, opt, key);\n } // For built-in Sets, sort the keys in a stable order instead of the\n // default insertion order.\n if (x instanceof Set) return stringify(Array.from(x).sort((a, b)=>stringify(a, opt).localeCompare(stringify(b, opt))), opt, key);\n // Anything else that is iterable serialize as an Array.\n if (Symbol !== undefined && x[Symbol.iterator] != null && typeof x[Symbol.iterator] === \"function\") // flowlint-next-line unclear-type: off\n return stringify(Array.from(x), opt, key);\n // For all other Objects, sort the keys in a stable order.\n return `{${Object.keys(x).filter((k)=>x[k] !== undefined).sort() // stringify the key to add quotes and escape any nested slashes or quotes.\n .map((k)=>`${stringify(k, opt)}:${stringify(x[k], opt, k)}`).join(\",\")}}`;\n} // Utility similar to JSON.stringify() except:\n// * Serialize built-in Sets as an Array\n// * Serialize built-in Maps as an Object. Supports non-string keys.\n// * Serialize other iterables as arrays\n// * Sort the keys of Objects and Maps to have a stable order based on string conversion.\n// This overrides their default insertion order.\n// * Still uses toJSON() of any object to override serialization\n// * Support Symbols (though don't guarantee uniqueness)\n// * We could support BigInt, but Flow doesn't seem to like it.\n// See Recoil_stableStringify-test.js for examples\nfunction stableStringify(x, opt = {\n allowFunctions: false\n}) {\n return stringify(x, opt);\n}\nvar Recoil_stableStringify = stableStringify;\nconst { TreeCache: TreeCache$2 } = Recoil_TreeCache$1;\nconst defaultPolicy = {\n equality: \"reference\",\n eviction: \"keep-all\",\n maxSize: Infinity\n};\nfunction treeCacheFromPolicy({ equality =defaultPolicy.equality , eviction =defaultPolicy.eviction , maxSize =defaultPolicy.maxSize } = defaultPolicy, name) {\n const valueMapper = getValueMapper(equality);\n return getTreeCache(eviction, maxSize, valueMapper, name);\n}\nfunction getValueMapper(equality) {\n switch(equality){\n case \"reference\":\n return (val)=>val;\n case \"value\":\n return (val)=>Recoil_stableStringify(val);\n }\n throw Recoil_err(`Unrecognized equality policy ${equality}`);\n}\nfunction getTreeCache(eviction, maxSize, mapNodeValue, name) {\n switch(eviction){\n case \"keep-all\":\n return new TreeCache$2({\n name,\n mapNodeValue\n });\n case \"lru\":\n return Recoil_treeCacheLRU({\n name,\n maxSize: Recoil_nullthrows(maxSize),\n mapNodeValue\n });\n case \"most-recent\":\n return Recoil_treeCacheLRU({\n name,\n maxSize: 1,\n mapNodeValue\n });\n }\n throw Recoil_err(`Unrecognized eviction policy ${eviction}`);\n}\nvar Recoil_treeCacheFromPolicy = treeCacheFromPolicy;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ function isNode(object) {\n var _ownerDocument, _doc$defaultView;\n if (typeof window === \"undefined\") return false;\n const doc = object != null ? (_ownerDocument = object.ownerDocument) !== null && _ownerDocument !== void 0 ? _ownerDocument : object : document;\n const defaultView = (_doc$defaultView = doc.defaultView) !== null && _doc$defaultView !== void 0 ? _doc$defaultView : window;\n return !!(object != null && (typeof defaultView.Node === \"function\" ? object instanceof defaultView.Node : typeof object === \"object\" && typeof object.nodeType === \"number\" && typeof object.nodeName === \"string\"));\n}\nvar Recoil_isNode = isNode;\nconst { isReactNative: isReactNative$1 , isWindow: isWindow$1 } = Recoil_Environment;\nfunction shouldNotBeFrozen(value) {\n // Primitives and functions:\n if (value === null || typeof value !== \"object\") return true;\n // React elements:\n switch(typeof value.$$typeof){\n case \"symbol\":\n return true;\n case \"number\":\n return true;\n } // Immutable structures:\n if (value[\"@@__IMMUTABLE_ITERABLE__@@\"] != null || value[\"@@__IMMUTABLE_KEYED__@@\"] != null || value[\"@@__IMMUTABLE_INDEXED__@@\"] != null || value[\"@@__IMMUTABLE_ORDERED__@@\"] != null || value[\"@@__IMMUTABLE_RECORD__@@\"] != null) return true;\n // DOM nodes:\n if (Recoil_isNode(value)) return true;\n if (Recoil_isPromise(value)) return true;\n if (value instanceof Error) return true;\n if (ArrayBuffer.isView(value)) return true;\n // Some environments, just as Jest, don't work with the instanceof check\n if (!isReactNative$1 && isWindow$1(value)) return true;\n return false;\n} // Recursively freeze a value to enforce it is read-only.\n// This may also have minimal performance improvements for enumerating\n// objects (based on browser implementations, of course)\nfunction deepFreezeValue(value) {\n if (typeof value !== \"object\" || shouldNotBeFrozen(value)) return;\n Object.freeze(value); // Make all properties read-only\n for(const key in value)// $FlowIssue[method-unbinding] added when improving typing for this parameters\n if (Object.prototype.hasOwnProperty.call(value, key)) {\n const prop = value[key]; // Prevent infinite recurssion for circular references.\n if (typeof prop === \"object\" && prop != null && !Object.isFrozen(prop)) deepFreezeValue(prop);\n }\n Object.seal(value); // This also makes existing properties non-configurable.\n}\nvar Recoil_deepFreezeValue = deepFreezeValue;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This is a stub for some integration into FB internal stuff\n *\n * \n * @format\n * @oncall recoil\n */ function startPerfBlock(_id) {\n return ()=>null;\n}\nvar Recoil_PerformanceTimings = {\n startPerfBlock\n};\nconst { isLoadable: isLoadable$1 , loadableWithError: loadableWithError$1 , loadableWithPromise: loadableWithPromise$1 , loadableWithValue: loadableWithValue$2 } = Recoil_Loadable$1;\nconst { WrappedValue: WrappedValue$1 } = Recoil_Wrapper$1;\nconst { getNodeLoadable: getNodeLoadable$2 , peekNodeLoadable: peekNodeLoadable$1 , setNodeValue: setNodeValue$3 } = Recoil_FunctionalCore;\nconst { saveDepsToStore: saveDepsToStore$1 } = Recoil_Graph;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$6 , getConfigDeletionHandler: getConfigDeletionHandler$1 , getNode: getNode$6 , registerNode: registerNode$1 } = Recoil_Node;\nconst { isRecoilValue: isRecoilValue$3 } = Recoil_RecoilValue$1;\nconst { markRecoilValueModified: markRecoilValueModified$1 } = Recoil_RecoilValueInterface;\nconst { retainedByOptionWithDefault: retainedByOptionWithDefault$1 } = Recoil_Retention;\nconst { recoilCallback: recoilCallback$1 } = Recoil_useRecoilCallback;\nconst { startPerfBlock: startPerfBlock$1 } = Recoil_PerformanceTimings;\nclass Canceled {\n}\nconst CANCELED = new Canceled();\n/**\n * An ExecutionID is an arbitrary ID that lets us distinguish executions from\n * each other. This is necessary as we need a way of solving this problem:\n * \"given 3 async executions, only update state for the 'latest' execution when\n * it finishes running regardless of when the other 2 finish\". ExecutionIDs\n * provide a convenient way of identifying executions so that we can track and\n * manage them over time.\n */ const dependencyStack = []; // for detecting circular dependencies.\nconst waitingStores = new Map();\nconst getNewExecutionID = (()=>{\n let executionID = 0;\n return ()=>executionID++;\n})();\n/* eslint-disable no-redeclare */ function selector(options) {\n let recoilValue = null;\n const { key , get , cachePolicy_UNSTABLE: cachePolicy } = options;\n const set = options.set != null ? options.set : undefined; // flow\n const discoveredDependencyNodeKeys = new Set();\n const cache = Recoil_treeCacheFromPolicy(cachePolicy !== null && cachePolicy !== void 0 ? cachePolicy : {\n equality: \"reference\",\n eviction: \"keep-all\"\n }, key);\n const retainedBy = retainedByOptionWithDefault$1(options.retainedBy_UNSTABLE);\n const executionInfoMap = new Map();\n let liveStoresCount = 0;\n function selectorIsLive() {\n return !Recoil_gkx(\"recoil_memory_managament_2020\") || liveStoresCount > 0;\n }\n function selectorInit(store) {\n store.getState().knownSelectors.add(key);\n liveStoresCount++;\n return ()=>{\n liveStoresCount--;\n };\n }\n function selectorShouldDeleteConfigOnRelease() {\n return getConfigDeletionHandler$1(key) !== undefined && !selectorIsLive();\n }\n function resolveAsync(store, state, executionID, loadable, depValues) {\n setCache(state, loadable, depValues);\n notifyStoresOfResolvedAsync(store, executionID);\n }\n function notifyStoresOfResolvedAsync(store, executionID) {\n if (isLatestExecution(store, executionID)) clearExecutionInfo(store);\n notifyWaitingStores(executionID, true);\n }\n /**\n * Notify stores to pull the selector again if a new async dep was discovered.\n * 1) Async selector adds a new dep but doesn't resolve yet.\n * Note that deps for an async selector are based on the state when the\n * evaluation started, in order to provide a consistent picture of state.\n * 2) But, new value of dep based on the current state might cause the selector\n * to resolve or resolve differently.\n * 3) Therefore, this notification will pull the selector based on the current\n * state for the components\n */ function notifyStoresOfNewAsyncDep(store, executionID) {\n if (isLatestExecution(store, executionID)) {\n const executionInfo = Recoil_nullthrows(getExecutionInfo(store));\n executionInfo.stateVersions.clear();\n notifyWaitingStores(executionID, false);\n }\n }\n function notifyWaitingStores(executionID, clearWaitlist) {\n const stores = waitingStores.get(executionID);\n if (stores != null) {\n for (const waitingStore of stores)markRecoilValueModified$1(waitingStore, Recoil_nullthrows(recoilValue));\n if (clearWaitlist) waitingStores.delete(executionID);\n }\n }\n function markStoreWaitingForResolvedAsync(store, executionID) {\n let stores = waitingStores.get(executionID);\n if (stores == null) waitingStores.set(executionID, stores = new Set());\n stores.add(store);\n }\n /**\n * This function attaches a then() and a catch() to a promise that was\n * returned from a selector's get() (either explicitly or implicitly by\n * running a function that uses the \"async\" keyword). If a selector's get()\n * returns a promise, we have two possibilities:\n *\n * 1. The promise will resolve, in which case it will have completely finished\n * executing without any remaining pending dependencies. No more retries\n * are needed and we can proceed with updating the cache and notifying\n * subscribers (if it is the latest execution, otherwise only the cache\n * will be updated and subscriptions will not be fired). This is the case\n * handled by the attached then() handler.\n *\n * 2. The promise will throw because it either has an error or it came across\n * an async dependency that has not yet resolved, in which case we will\n * call wrapDepdencyPromise(), whose responsibility is to handle dependency\n * promises. This case is handled by the attached catch() handler.\n *\n * Both branches will eventually resolve to the final result of the selector\n * (or an error if a real error occurred).\n *\n * The execution will run to completion even if it is stale, and its value\n * will be cached. But stale executions will not update global state or update\n * executionInfo as that is the responsibility of the 'latest' execution.\n *\n * Note this function should not be passed a promise that was thrown--AKA a\n * dependency promise. Dependency promises should be passed to\n * wrapPendingDependencyPromise()).\n */ function wrapResultPromise(store, promise, state, depValues, executionID, loadingDepsState) {\n return promise.then((value)=>{\n if (!selectorIsLive()) {\n // The selector was released since the request began; ignore the response.\n clearExecutionInfo(store);\n throw CANCELED;\n }\n const loadable = loadableWithValue$2(value);\n resolveAsync(store, state, executionID, loadable, depValues);\n return value;\n }).catch((errorOrPromise)=>{\n if (!selectorIsLive()) {\n // The selector was released since the request began; ignore the response.\n clearExecutionInfo(store);\n throw CANCELED;\n }\n if (Recoil_isPromise(errorOrPromise)) return wrapPendingDependencyPromise(store, errorOrPromise, state, depValues, executionID, loadingDepsState);\n const loadable = loadableWithError$1(errorOrPromise);\n resolveAsync(store, state, executionID, loadable, depValues);\n throw errorOrPromise;\n });\n }\n /**\n * This function attaches a then() and a catch() to a promise that was\n * thrown from a selector's get(). If a selector's get() throws a promise,\n * we have two possibilities:\n *\n * 1. The promise will resolve, meaning one of our selector's dependencies is\n * now available and we should \"retry\" our get() by running it again. This\n * is the case handled by the attached then() handler.\n *\n * 2. The promise will throw because something went wrong with the dependency\n * promise (in other words a real error occurred). This case is handled by\n * the attached catch() handler. If the dependency promise throws, it is\n * _always_ a real error and not another dependency promise (any dependency\n * promises would have been handled upstream).\n *\n * The then() branch will eventually resolve to the final result of the\n * selector (or an error if a real error occurs), and the catch() will always\n * resolve to an error because the dependency promise is a promise that was\n * wrapped upstream, meaning it will only resolve to its real value or to a\n * real error.\n *\n * The execution will run to completion even if it is stale, and its value\n * will be cached. But stale executions will not update global state or update\n * executionInfo as that is the responsibility of the 'latest' execution.\n *\n * Note this function should not be passed a promise that was returned from\n * get(). The intention is that this function is only passed promises that\n * were thrown due to a pending dependency. Promises returned by get() should\n * be passed to wrapResultPromise() instead.\n */ function wrapPendingDependencyPromise(store, promise, state, existingDeps, executionID, loadingDepsState) {\n return promise.then((resolvedDep)=>{\n if (!selectorIsLive()) {\n // The selector was released since the request began; ignore the response.\n clearExecutionInfo(store);\n throw CANCELED;\n } // Check if we are handling a pending Recoil dependency or if the user\n // threw their own Promise to \"suspend\" a selector evaluation. We need\n // to check that the loadingDepPromise actually matches the promise that\n // we caught in case the selector happened to catch the promise we threw\n // for a pending Recoil dependency from `getRecoilValue()` and threw\n // their own promise instead.\n if (loadingDepsState.loadingDepKey != null && loadingDepsState.loadingDepPromise === promise) /**\n * Note for async atoms, this means we are changing the atom's value\n * in the store for the given version. This should be alright because\n * the version of state is now stale and a new version will have\n * already been triggered by the atom being resolved (see this logic\n * in Recoil_atom.js)\n */ state.atomValues.set(loadingDepsState.loadingDepKey, loadableWithValue$2(resolvedDep));\n else /**\n * If resolvedDepKey is not defined, the promise was a user-thrown\n * promise. User-thrown promises are an advanced feature and they\n * should be avoided in almost all cases. Using `loadable.map()` inside\n * of selectors for loading loadables and then throwing that mapped\n * loadable's promise is an example of a user-thrown promise.\n *\n * When we hit a user-thrown promise, we have to bail out of an optimization\n * where we bypass calculating selector cache keys for selectors that\n * have been previously seen for a given state (these selectors are saved in\n * state.atomValues) to avoid stale state as we have no way of knowing\n * what state changes happened (if any) in result to the promise resolving.\n *\n * Ideally we would only bail out selectors that are in the chain of\n * dependencies for this selector, but there's currently no way to get\n * a full list of a selector's downstream nodes because the state that\n * is executing may be a discarded tree (so store.getGraph(state.version)\n * will be empty), and the full dep tree may not be in the selector\n * caches in the case where the selector's cache was cleared. To solve\n * for this we would have to keep track of all running selector\n * executions and their downstream deps. Because this only covers edge\n * cases, that complexity might not be justifyable.\n */ store.getState().knownSelectors.forEach((nodeKey)=>{\n state.atomValues.delete(nodeKey);\n });\n /**\n * Optimization: Now that the dependency has resolved, let's try hitting\n * the cache in case the dep resolved to a value we have previously seen.\n *\n * TODO:\n * Note this optimization is not perfect because it only prevents re-executions\n * _after_ the point where an async dependency is found. Any code leading\n * up to the async dependency may have run unnecessarily. The ideal case\n * would be to wait for the async dependency to resolve first, check the\n * cache, and prevent _any_ execution of the selector if the resulting\n * value of the dependency leads to a path that is found in the cache.\n * The ideal case is more difficult to implement as it would require that\n * we capture and wait for the the async dependency right after checking\n * the cache. The current approach takes advantage of the fact that running\n * the selector already has a code path that lets us exit early when\n * an async dep resolves.\n */ const cachedLoadable = getLoadableFromCacheAndUpdateDeps(store, state);\n if (cachedLoadable && cachedLoadable.state !== \"loading\") {\n /**\n * This has to notify stores of a resolved async, even if there is no\n * current pending execution for the following case:\n * 1) A component renders with this pending loadable.\n * 2) The upstream dependency resolves.\n * 3) While processing some other selector it reads this one, such as\n * while traversing its dependencies. At this point it gets the\n * new resolved value synchronously and clears the current\n * execution ID. The component wasn't getting the value itself,\n * though, so it still has the pending loadable.\n * 4) When this code executes the current execution id was cleared\n * and it wouldn't notify the component of the new value.\n *\n * I think this is only an issue with \"early\" rendering since the\n * components got their value using the in-progress execution.\n * We don't have a unit test for this case yet. I'm not sure it is\n * necessary with recoil_transition_support mode.\n */ if (isLatestExecution(store, executionID) || getExecutionInfo(store) == null) notifyStoresOfResolvedAsync(store, executionID);\n if (cachedLoadable.state === \"hasValue\") return cachedLoadable.contents;\n else throw cachedLoadable.contents;\n }\n /**\n * If this execution is stale, let's check to see if there is some in\n * progress execution with a matching state. If we find a match, then\n * we can take the value from that in-progress execution. Note this may\n * sound like an edge case, but may be very common in cases where a\n * loading dependency resolves from loading to having a value (thus\n * possibly triggering a re-render), and React re-renders before the\n * chained .then() functions run, thus starting a new execution as the\n * dep has changed value. Without this check we will run the selector\n * twice (once in the new execution and once again in this .then(), so\n * this check is necessary to keep unnecessary re-executions to a\n * minimum).\n *\n * Also note this code does not check across all executions that may be\n * running. It only optimizes for the _latest_ execution per store as\n * we currently do not maintain a list of all currently running executions.\n * This means in some cases we may run selectors more than strictly\n * necessary when there are multiple executions running for the same\n * selector. This may be a valid tradeoff as checking for dep changes\n * across all in-progress executions may take longer than just\n * re-running the selector. This will be app-dependent, and maybe in the\n * future we can make the behavior configurable. An ideal fix may be\n * to extend the tree cache to support caching loading states.\n */ if (!isLatestExecution(store, executionID)) {\n const executionInfo = getInProgressExecutionInfo(store, state);\n if (executionInfo != null) /**\n * Returning promise here without wrapping as the wrapper logic was\n * already done upstream when this promise was generated.\n */ return executionInfo.loadingLoadable.contents;\n } // Retry the selector evaluation now that the dependency has resolved\n const [loadable, depValues] = evaluateSelectorGetter(store, state, executionID);\n if (loadable.state !== \"loading\") resolveAsync(store, state, executionID, loadable, depValues);\n if (loadable.state === \"hasError\") throw loadable.contents;\n return loadable.contents;\n }).catch((error)=>{\n // The selector was released since the request began; ignore the response.\n if (error instanceof Canceled) throw CANCELED;\n if (!selectorIsLive()) {\n clearExecutionInfo(store);\n throw CANCELED;\n }\n const loadable = loadableWithError$1(error);\n resolveAsync(store, state, executionID, loadable, existingDeps);\n throw error;\n });\n }\n function updateDeps(store, state, deps, executionID) {\n var _store$getState, _store$getState$curre, _store$getState2, _store$getState2$next;\n if (isLatestExecution(store, executionID) || state.version === ((_store$getState = store.getState()) === null || _store$getState === void 0 ? void 0 : (_store$getState$curre = _store$getState.currentTree) === null || _store$getState$curre === void 0 ? void 0 : _store$getState$curre.version) || state.version === ((_store$getState2 = store.getState()) === null || _store$getState2 === void 0 ? void 0 : (_store$getState2$next = _store$getState2.nextTree) === null || _store$getState2$next === void 0 ? void 0 : _store$getState2$next.version)) {\n var _store$getState$nextT, _store$getState3, _store$getState3$next;\n saveDepsToStore$1(key, deps, store, (_store$getState$nextT = (_store$getState3 = store.getState()) === null || _store$getState3 === void 0 ? void 0 : (_store$getState3$next = _store$getState3.nextTree) === null || _store$getState3$next === void 0 ? void 0 : _store$getState3$next.version) !== null && _store$getState$nextT !== void 0 ? _store$getState$nextT : store.getState().currentTree.version);\n }\n for (const nodeKey of deps)discoveredDependencyNodeKeys.add(nodeKey);\n }\n function evaluateSelectorGetter(store, state, executionID) {\n const endPerfBlock = startPerfBlock$1(key); // TODO T63965866: use execution ID here\n let duringSynchronousExecution = true;\n let duringAsynchronousExecution = true;\n const finishEvaluation = ()=>{\n endPerfBlock();\n duringAsynchronousExecution = false;\n };\n let result;\n let resultIsError = false;\n let loadable;\n const loadingDepsState = {\n loadingDepKey: null,\n loadingDepPromise: null\n };\n /**\n * Starting a fresh set of deps that we'll be using to update state. We're\n * starting a new set versus adding it in existing state deps because\n * the version of state that we update deps for may be a more recent version\n * than the version the selector was called with. This is because the latest\n * execution will update the deps of the current/latest version of state\n * (This is safe to do because the fact that the selector is the latest\n * execution means the deps we discover below are our best guess at the\n * deps for the current/latest state in the store)\n */ const depValues = new Map();\n function getRecoilValue({ key: depKey }) {\n const depLoadable = getNodeLoadable$2(store, state, depKey);\n depValues.set(depKey, depLoadable); // We need to update asynchronous dependencies as we go so the selector\n // knows if it has to restart evaluation if one of them is updated before\n // the asynchronous selector completely resolves.\n if (!duringSynchronousExecution) {\n updateDeps(store, state, new Set(depValues.keys()), executionID);\n notifyStoresOfNewAsyncDep(store, executionID);\n }\n switch(depLoadable.state){\n case \"hasValue\":\n return depLoadable.contents;\n case \"hasError\":\n throw depLoadable.contents;\n case \"loading\":\n loadingDepsState.loadingDepKey = depKey;\n loadingDepsState.loadingDepPromise = depLoadable.contents;\n throw depLoadable.contents;\n }\n throw Recoil_err(\"Invalid Loadable state\");\n }\n const getCallback = (fn)=>{\n return (...args)=>{\n if (duringAsynchronousExecution) throw Recoil_err(\"Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.\");\n !(recoilValue != null) && Recoil_invariant(false);\n return recoilCallback$1(store, fn, args, {\n node: recoilValue\n } // flowlint-line unclear-type:off\n );\n };\n };\n try {\n result = get({\n get: getRecoilValue,\n getCallback\n });\n result = isRecoilValue$3(result) ? getRecoilValue(result) : result;\n if (isLoadable$1(result)) {\n if (result.state === \"hasError\") resultIsError = true;\n result = result.contents;\n }\n if (Recoil_isPromise(result)) result = wrapResultPromise(store, result, state, depValues, executionID, loadingDepsState).finally(finishEvaluation);\n else finishEvaluation();\n result = result instanceof WrappedValue$1 ? result.value : result;\n } catch (errorOrDepPromise) {\n result = errorOrDepPromise;\n if (Recoil_isPromise(result)) result = wrapPendingDependencyPromise(store, result, state, depValues, executionID, loadingDepsState).finally(finishEvaluation);\n else {\n resultIsError = true;\n finishEvaluation();\n }\n }\n if (resultIsError) loadable = loadableWithError$1(result);\n else if (Recoil_isPromise(result)) loadable = loadableWithPromise$1(result);\n else loadable = loadableWithValue$2(result);\n duringSynchronousExecution = false;\n updateExecutionInfoDepValues(store, executionID, depValues);\n updateDeps(store, state, new Set(depValues.keys()), executionID);\n return [\n loadable,\n depValues\n ];\n }\n function getLoadableFromCacheAndUpdateDeps(store, state) {\n // First, look up in the state cache\n // If it's here, then the deps in the store should already be valid.\n let cachedLoadable = state.atomValues.get(key);\n if (cachedLoadable != null) return cachedLoadable;\n // Second, look up in the selector cache and update the deps in the store\n const depsAfterCacheLookup = new Set();\n try {\n cachedLoadable = cache.get((nodeKey)=>{\n !(typeof nodeKey === \"string\") && Recoil_invariant(false);\n return getNodeLoadable$2(store, state, nodeKey).contents;\n }, {\n onNodeVisit: (node)=>{\n if (node.type === \"branch\" && node.nodeKey !== key) depsAfterCacheLookup.add(node.nodeKey);\n }\n });\n } catch (error) {\n throw Recoil_err(`Problem with cache lookup for selector \"${key}\": ${error.message}`);\n }\n if (cachedLoadable) {\n var _getExecutionInfo;\n // Cache the results in the state to allow for cheaper lookup than\n // iterating the tree cache of dependencies.\n state.atomValues.set(key, cachedLoadable);\n /**\n * Ensure store contains correct dependencies if we hit the cache so that\n * the store deps and cache are in sync for a given state. This is important\n * because store deps are normally updated when new executions are created,\n * but cache hits don't trigger new executions but they still _may_ signify\n * a change in deps in the store if the store deps for this state are empty\n * or stale.\n */ updateDeps(store, state, depsAfterCacheLookup, (_getExecutionInfo = getExecutionInfo(store)) === null || _getExecutionInfo === void 0 ? void 0 : _getExecutionInfo.executionID);\n }\n return cachedLoadable;\n }\n /**\n * Given a tree state, this function returns a Loadable of the current state.\n *\n * The selector's get() function will only be re-evaluated if _both_ of the\n * following statements are true:\n *\n * 1. The current dep values from the given state produced a cache key that\n * was not found in the cache.\n * 2. There is no currently running async execution OR there is an\n * async execution that is running, but after comparing the dep values in\n * the given state with the dep values that the execution has discovered so\n * far we find that at least one dep value has changed, in which case we\n * start a new execution (the previously running execution will continue to\n * run to completion, but only the new execution will be deemed the\n * 'latest' execution, meaning it will be the only execution that will\n * update global state when it is finished. Any non-latest executions will\n * run to completion and update the selector cache but not global state).\n */ function getSelectorLoadableAndUpdateDeps(store, state) {\n // First, see if our current state is cached\n const cachedVal = getLoadableFromCacheAndUpdateDeps(store, state);\n if (cachedVal != null) {\n clearExecutionInfo(store);\n return cachedVal;\n } // Second, check if there is already an ongoing execution based on the current state\n const inProgressExecutionInfo = getInProgressExecutionInfo(store, state);\n if (inProgressExecutionInfo != null) {\n var _inProgressExecutionI;\n if (((_inProgressExecutionI = inProgressExecutionInfo.loadingLoadable) === null || _inProgressExecutionI === void 0 ? void 0 : _inProgressExecutionI.state) === \"loading\") markStoreWaitingForResolvedAsync(store, inProgressExecutionInfo.executionID);\n // FIXME: check after the fact to see if we made the right choice by waiting\n return inProgressExecutionInfo.loadingLoadable;\n } // Third, start a new evaluation of the selector\n const newExecutionID = getNewExecutionID();\n const [loadable, newDepValues] = evaluateSelectorGetter(store, state, newExecutionID);\n /**\n * Conditionally updates the cache with a given loadable.\n *\n * We only cache loadables that are not loading because our cache keys are\n * based on dep values, which are in an unfinished state for loadables that\n * have a 'loading' state (new deps may be discovered while the selector\n * runs its async code). We never want to cache partial dependencies b/c it\n * could lead to errors, such as prematurely returning the result based on a\n * partial list of deps-- we need the full list of deps to ensure that we\n * are returning the correct result from cache.\n */ if (loadable.state === \"loading\") {\n setExecutionInfo(store, newExecutionID, loadable, newDepValues, state);\n markStoreWaitingForResolvedAsync(store, newExecutionID);\n } else {\n clearExecutionInfo(store);\n setCache(state, loadable, newDepValues);\n }\n return loadable;\n }\n /**\n * Searches execution info across all stores to see if there is an in-progress\n * execution whose dependency values match the values of the requesting store.\n */ function getInProgressExecutionInfo(store, state) {\n // Sort the pending executions so that our current store is checked first.\n const pendingExecutions = Recoil_concatIterables([\n executionInfoMap.has(store) ? [\n Recoil_nullthrows(executionInfoMap.get(store))\n ] : [],\n Recoil_mapIterable(Recoil_filterIterable(executionInfoMap, ([s])=>s !== store), ([, execInfo])=>execInfo)\n ]);\n function anyDepChanged(execDepValues) {\n for (const [depKey, execLoadable] of execDepValues){\n if (!getNodeLoadable$2(store, state, depKey).is(execLoadable)) return true;\n }\n return false;\n }\n for (const execInfo of pendingExecutions)if (// of state, then let's use it!\n execInfo.stateVersions.get(state.version) || // If the deps for the execution match our current state, then it's valid\n !anyDepChanged(execInfo.depValuesDiscoveredSoFarDuringAsyncWork)) {\n execInfo.stateVersions.set(state.version, true);\n return execInfo;\n } else execInfo.stateVersions.set(state.version, false);\n return undefined;\n }\n function getExecutionInfo(store) {\n return executionInfoMap.get(store);\n }\n /**\n * This function will update the selector's execution info when the selector\n * has either finished running an execution or has started a new execution. If\n * the given loadable is in a 'loading' state, the intention is that a new\n * execution has started. Otherwise, the intention is that an execution has\n * just finished.\n */ function setExecutionInfo(store, newExecutionID, loadable, depValues, state) {\n executionInfoMap.set(store, {\n depValuesDiscoveredSoFarDuringAsyncWork: depValues,\n executionID: newExecutionID,\n loadingLoadable: loadable,\n stateVersions: new Map([\n [\n state.version,\n true\n ]\n ])\n });\n }\n function updateExecutionInfoDepValues(store, executionID, depValues) {\n // We only need to bother updating the deps for the latest execution because\n // that's all getInProgressExecutionInfo() will be looking for.\n if (isLatestExecution(store, executionID)) {\n const executionInfo = getExecutionInfo(store);\n if (executionInfo != null) executionInfo.depValuesDiscoveredSoFarDuringAsyncWork = depValues;\n }\n }\n function clearExecutionInfo(store) {\n executionInfoMap.delete(store);\n }\n function isLatestExecution(store, executionID) {\n var _getExecutionInfo2;\n return executionID === ((_getExecutionInfo2 = getExecutionInfo(store)) === null || _getExecutionInfo2 === void 0 ? void 0 : _getExecutionInfo2.executionID);\n }\n /**\n * FIXME: dep keys should take into account the state of the loadable to\n * prevent the edge case where a loadable with an error and a loadable with\n * an error as a value are treated as the same thing incorrectly. For example\n * these two should be treated differently:\n *\n * selector({key: '', get: () => new Error('hi')});\n * selector({key: '', get () => {throw new Error('hi')}});\n *\n * With current implementation they are treated the same\n */ function depValuesToDepRoute(depValues) {\n return Array.from(depValues.entries()).map(([depKey, valLoadable])=>[\n depKey,\n valLoadable.contents\n ]);\n }\n function setCache(state, loadable, depValues) {\n state.atomValues.set(key, loadable);\n try {\n cache.set(depValuesToDepRoute(depValues), loadable);\n } catch (error) {\n throw Recoil_err(`Problem with setting cache for selector \"${key}\": ${error.message}`);\n }\n }\n function detectCircularDependencies(fn) {\n if (dependencyStack.includes(key)) {\n const message = `Recoil selector has circular dependencies: ${dependencyStack.slice(dependencyStack.indexOf(key)).join(\" → \")}`;\n return loadableWithError$1(Recoil_err(message));\n }\n dependencyStack.push(key);\n try {\n return fn();\n } finally{\n dependencyStack.pop();\n }\n }\n function selectorPeek(store, state) {\n const cachedLoadable = state.atomValues.get(key);\n if (cachedLoadable != null) return cachedLoadable;\n return cache.get((nodeKey)=>{\n var _peekNodeLoadable;\n !(typeof nodeKey === \"string\") && Recoil_invariant(false);\n return (_peekNodeLoadable = peekNodeLoadable$1(store, state, nodeKey)) === null || _peekNodeLoadable === void 0 ? void 0 : _peekNodeLoadable.contents;\n });\n }\n function selectorGet(store, state) {\n return detectCircularDependencies(()=>getSelectorLoadableAndUpdateDeps(store, state));\n }\n function invalidateSelector(state) {\n state.atomValues.delete(key);\n }\n function clearSelectorCache(store, treeState) {\n !(recoilValue != null) && Recoil_invariant(false);\n for (const nodeKey of discoveredDependencyNodeKeys){\n var _node$clearCache;\n const node = getNode$6(nodeKey);\n (_node$clearCache = node.clearCache) === null || _node$clearCache === void 0 || _node$clearCache.call(node, store, treeState);\n }\n discoveredDependencyNodeKeys.clear();\n invalidateSelector(treeState);\n cache.clear();\n markRecoilValueModified$1(store, recoilValue);\n }\n if (set != null) {\n /**\n * ES5 strict mode prohibits defining non-top-level function declarations,\n * so don't use function declaration syntax here\n */ const selectorSet = (store, state, newValue)=>{\n let syncSelectorSetFinished = false;\n const writes = new Map();\n function getRecoilValue({ key: depKey }) {\n if (syncSelectorSetFinished) throw Recoil_err(\"Recoil: Async selector sets are not currently supported.\");\n const loadable = getNodeLoadable$2(store, state, depKey);\n if (loadable.state === \"hasValue\") return loadable.contents;\n else if (loadable.state === \"loading\") {\n const msg = `Getting value of asynchronous atom or selector \"${depKey}\" in a pending state while setting selector \"${key}\" is not yet supported.`;\n Recoil_recoverableViolation(msg);\n throw Recoil_err(msg);\n } else throw loadable.contents;\n }\n function setRecoilState(recoilState, valueOrUpdater // $FlowFixMe[missing-local-annot]\n ) {\n if (syncSelectorSetFinished) {\n const msg = \"Recoil: Async selector sets are not currently supported.\";\n Recoil_recoverableViolation(msg);\n throw Recoil_err(msg);\n }\n const setValue = typeof valueOrUpdater === \"function\" ? // flowlint-next-line unclear-type:off\n valueOrUpdater(getRecoilValue(recoilState)) : valueOrUpdater;\n const upstreamWrites = setNodeValue$3(store, state, recoilState.key, setValue);\n upstreamWrites.forEach((v, k)=>writes.set(k, v));\n }\n function resetRecoilState(recoilState) {\n setRecoilState(recoilState, DEFAULT_VALUE$6);\n }\n const ret = set({\n set: setRecoilState,\n get: getRecoilValue,\n reset: resetRecoilState\n }, newValue); // set should be a void method, but if the user makes it `async`, then it\n // will return a Promise, which we don't currently support.\n if (ret !== undefined) throw Recoil_isPromise(ret) ? Recoil_err(\"Recoil: Async selector sets are not currently supported.\") : Recoil_err(\"Recoil: selector set should be a void function.\");\n syncSelectorSetFinished = true;\n return writes;\n };\n return recoilValue = registerNode$1({\n key,\n nodeType: \"selector\",\n peek: selectorPeek,\n get: selectorGet,\n set: selectorSet,\n init: selectorInit,\n invalidate: invalidateSelector,\n clearCache: clearSelectorCache,\n shouldDeleteConfigOnRelease: selectorShouldDeleteConfigOnRelease,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n shouldRestoreFromSnapshots: false,\n retainedBy\n });\n } else return recoilValue = registerNode$1({\n key,\n nodeType: \"selector\",\n peek: selectorPeek,\n get: selectorGet,\n init: selectorInit,\n invalidate: invalidateSelector,\n clearCache: clearSelectorCache,\n shouldDeleteConfigOnRelease: selectorShouldDeleteConfigOnRelease,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n shouldRestoreFromSnapshots: false,\n retainedBy\n });\n}\n/* eslint-enable no-redeclare */ // $FlowIssue[incompatible-use]\n// $FlowFixMe[missing-local-annot]\nselector.value = (value)=>new WrappedValue$1(value);\nvar Recoil_selector = selector;\n// @fb-only: import type {ScopeRules} from 'Recoil_ScopedAtom';\n// @fb-only: const {scopedAtom} = require('Recoil_ScopedAtom');\nconst { isLoadable: isLoadable$2 , loadableWithError: loadableWithError$2 , loadableWithPromise: loadableWithPromise$2 , loadableWithValue: loadableWithValue$3 } = Recoil_Loadable$1;\nconst { WrappedValue: WrappedValue$2 } = Recoil_Wrapper$1;\nconst { peekNodeInfo: peekNodeInfo$3 } = Recoil_FunctionalCore;\nconst { DEFAULT_VALUE: DEFAULT_VALUE$7 , DefaultValue: DefaultValue$2 , getConfigDeletionHandler: getConfigDeletionHandler$2 , registerNode: registerNode$2 , setConfigDeletionHandler: setConfigDeletionHandler$1 } = Recoil_Node;\nconst { isRecoilValue: isRecoilValue$4 } = Recoil_RecoilValue$1;\nconst { getRecoilValueAsLoadable: getRecoilValueAsLoadable$4 , markRecoilValueModified: markRecoilValueModified$2 , setRecoilValue: setRecoilValue$4 , setRecoilValueLoadable: setRecoilValueLoadable$2 } = Recoil_RecoilValueInterface;\nconst { retainedByOptionWithDefault: retainedByOptionWithDefault$2 } = Recoil_Retention;\nconst unwrap = (x)=>x instanceof WrappedValue$2 ? x.value : x;\nfunction baseAtom(options) {\n const { key , persistence_UNSTABLE: persistence } = options;\n const retainedBy = retainedByOptionWithDefault$2(options.retainedBy_UNSTABLE);\n let liveStoresCount = 0;\n function unwrapPromise(promise) {\n return loadableWithPromise$2(promise.then((value)=>{\n defaultLoadable = loadableWithValue$3(value);\n return value;\n }).catch((error)=>{\n defaultLoadable = loadableWithError$2(error);\n throw error;\n }));\n }\n let defaultLoadable = Recoil_isPromise(options.default) ? unwrapPromise(options.default) : isLoadable$2(options.default) ? options.default.state === \"loading\" ? unwrapPromise(options.default.contents) : options.default : loadableWithValue$3(unwrap(options.default));\n maybeFreezeValueOrPromise(defaultLoadable.contents);\n let cachedAnswerForUnvalidatedValue = undefined; // Cleanup handlers for this atom\n // Rely on stable reference equality of the store to use it as a key per \n const cleanupEffectsByStore = new Map();\n function maybeFreezeValueOrPromise(valueOrPromise) {\n var value;\n return valueOrPromise;\n }\n function wrapPendingPromise(store, promise) {\n const wrappedPromise = promise.then((value)=>{\n var _store$getState$nextT, _state$atomValues$get;\n const state = (_store$getState$nextT = store.getState().nextTree) !== null && _store$getState$nextT !== void 0 ? _store$getState$nextT : store.getState().currentTree;\n if (((_state$atomValues$get = state.atomValues.get(key)) === null || _state$atomValues$get === void 0 ? void 0 : _state$atomValues$get.contents) === wrappedPromise) setRecoilValue$4(store, node, value);\n return value;\n }).catch((error)=>{\n var _store$getState$nextT2, _state$atomValues$get2;\n const state = (_store$getState$nextT2 = store.getState().nextTree) !== null && _store$getState$nextT2 !== void 0 ? _store$getState$nextT2 : store.getState().currentTree;\n if (((_state$atomValues$get2 = state.atomValues.get(key)) === null || _state$atomValues$get2 === void 0 ? void 0 : _state$atomValues$get2.contents) === wrappedPromise) setRecoilValueLoadable$2(store, node, loadableWithError$2(error));\n throw error;\n });\n return wrappedPromise;\n }\n function initAtom(store, initState, trigger) {\n var _options$effects;\n liveStoresCount++;\n const cleanupAtom = ()=>{\n var _cleanupEffectsByStor;\n liveStoresCount--;\n (_cleanupEffectsByStor = cleanupEffectsByStore.get(store)) === null || _cleanupEffectsByStor === void 0 || _cleanupEffectsByStor.forEach((cleanup)=>cleanup());\n cleanupEffectsByStore.delete(store);\n };\n store.getState().knownAtoms.add(key); // Setup async defaults to notify subscribers when they resolve\n if (defaultLoadable.state === \"loading\") {\n const notifyDefaultSubscribers = ()=>{\n var _store$getState$nextT3;\n const state = (_store$getState$nextT3 = store.getState().nextTree) !== null && _store$getState$nextT3 !== void 0 ? _store$getState$nextT3 : store.getState().currentTree;\n if (!state.atomValues.has(key)) markRecoilValueModified$2(store, node);\n };\n defaultLoadable.contents.finally(notifyDefaultSubscribers);\n } ///////////////////\n // Run Atom Effects\n ///////////////////\n const effects = (_options$effects = options.effects) !== null && _options$effects !== void 0 ? _options$effects : options.effects_UNSTABLE;\n if (effects != null) {\n // This state is scoped by Store, since this is in the initAtom() closure\n let initValue = DEFAULT_VALUE$7;\n let isDuringInit = true;\n let isInitError = false;\n let pendingSetSelf = null;\n function getLoadable(recoilValue) {\n // Normally we can just get the current value of another atom.\n // But for our own value we need to check if there is a pending\n // initialized value or get the fallback default value.\n if (isDuringInit && recoilValue.key === key) {\n // Cast T to S\n const retValue = initValue; // flowlint-line unclear-type:off\n return retValue instanceof DefaultValue$2 ? peekAtom(store, initState) // flowlint-line unclear-type:off\n : Recoil_isPromise(retValue) ? loadableWithPromise$2(retValue.then((v)=>v instanceof DefaultValue$2 ? defaultLoadable.toPromise() // flowlint-line unclear-type:off\n : v)) : loadableWithValue$3(retValue);\n }\n return getRecoilValueAsLoadable$4(store, recoilValue);\n }\n function getPromise(recoilValue) {\n return getLoadable(recoilValue).toPromise();\n }\n function getInfo_UNSTABLE(recoilValue) {\n var _store$getState$nextT4;\n const info = peekNodeInfo$3(store, (_store$getState$nextT4 = store.getState().nextTree) !== null && _store$getState$nextT4 !== void 0 ? _store$getState$nextT4 : store.getState().currentTree, recoilValue.key);\n return isDuringInit && recoilValue.key === key && !(initValue instanceof DefaultValue$2) ? {\n ...info,\n isSet: true,\n loadable: getLoadable(recoilValue)\n } : info;\n }\n const setSelf = (effect)=>(valueOrUpdater)=>{\n if (isDuringInit) {\n const currentLoadable = getLoadable(node);\n const currentValue = currentLoadable.state === \"hasValue\" ? currentLoadable.contents : DEFAULT_VALUE$7;\n initValue = typeof valueOrUpdater === \"function\" ? valueOrUpdater(currentValue) // flowlint-line unclear-type:off\n : valueOrUpdater;\n if (Recoil_isPromise(initValue)) initValue = initValue.then((value)=>{\n // Avoid calling onSet() when setSelf() initializes with a Promise\n pendingSetSelf = {\n effect,\n value\n };\n return value;\n });\n } else {\n if (Recoil_isPromise(valueOrUpdater)) throw Recoil_err(\"Setting atoms to async values is not implemented.\");\n if (typeof valueOrUpdater !== \"function\") pendingSetSelf = {\n effect,\n value: unwrap(valueOrUpdater)\n };\n setRecoilValue$4(store, node, typeof valueOrUpdater === \"function\" ? (currentValue)=>{\n const newValue = unwrap(valueOrUpdater(currentValue) // flowlint-line unclear-type:off\n ); // $FlowFixMe[incompatible-type]\n pendingSetSelf = {\n effect,\n value: newValue\n };\n return newValue;\n } : unwrap(valueOrUpdater));\n }\n };\n const resetSelf = (effect)=>()=>setSelf(effect)(DEFAULT_VALUE$7);\n const onSet = (effect)=>(handler)=>{\n var _cleanupEffectsByStor2;\n const { release } = store.subscribeToTransactions((currentStore)=>{\n var _currentTree$atomValu;\n // eslint-disable-next-line prefer-const\n let { currentTree , previousTree } = currentStore.getState();\n if (!previousTree) {\n Recoil_recoverableViolation(\"Transaction subscribers notified without a next tree being present -- this is a bug in Recoil\");\n previousTree = currentTree; // attempt to trundle on\n }\n const newLoadable = (_currentTree$atomValu = currentTree.atomValues.get(key)) !== null && _currentTree$atomValu !== void 0 ? _currentTree$atomValu : defaultLoadable;\n if (newLoadable.state === \"hasValue\") {\n var _previousTree$atomVal, _pendingSetSelf, _pendingSetSelf2, _pendingSetSelf3;\n const newValue = newLoadable.contents;\n const oldLoadable = (_previousTree$atomVal = previousTree.atomValues.get(key)) !== null && _previousTree$atomVal !== void 0 ? _previousTree$atomVal : defaultLoadable;\n const oldValue = oldLoadable.state === \"hasValue\" ? oldLoadable.contents : DEFAULT_VALUE$7; // TODO This isn't actually valid, use as a placeholder for now.\n // Ignore atom value changes that were set via setSelf() in the same effect.\n // We will still properly call the handler if there was a subsequent\n // set from something other than an atom effect which was batched\n // with the `setSelf()` call. However, we may incorrectly ignore\n // the handler if the subsequent batched call happens to set the\n // atom to the exact same value as the `setSelf()`. But, in that\n // case, it was kind of a noop, so the semantics are debatable..\n if (((_pendingSetSelf = pendingSetSelf) === null || _pendingSetSelf === void 0 ? void 0 : _pendingSetSelf.effect) !== effect || ((_pendingSetSelf2 = pendingSetSelf) === null || _pendingSetSelf2 === void 0 ? void 0 : _pendingSetSelf2.value) !== newValue) handler(newValue, oldValue, !currentTree.atomValues.has(key));\n else if (((_pendingSetSelf3 = pendingSetSelf) === null || _pendingSetSelf3 === void 0 ? void 0 : _pendingSetSelf3.effect) === effect) pendingSetSelf = null;\n }\n }, key);\n cleanupEffectsByStore.set(store, [\n ...(_cleanupEffectsByStor2 = cleanupEffectsByStore.get(store)) !== null && _cleanupEffectsByStor2 !== void 0 ? _cleanupEffectsByStor2 : [],\n release\n ]);\n };\n for (const effect of effects)try {\n const cleanup = effect({\n node,\n storeID: store.storeID,\n parentStoreID_UNSTABLE: store.parentStoreID,\n trigger,\n setSelf: setSelf(effect),\n resetSelf: resetSelf(effect),\n onSet: onSet(effect),\n getPromise,\n getLoadable,\n getInfo_UNSTABLE\n });\n if (cleanup != null) {\n var _cleanupEffectsByStor3;\n cleanupEffectsByStore.set(store, [\n ...(_cleanupEffectsByStor3 = cleanupEffectsByStore.get(store)) !== null && _cleanupEffectsByStor3 !== void 0 ? _cleanupEffectsByStor3 : [],\n cleanup\n ]);\n }\n } catch (error) {\n initValue = error;\n isInitError = true;\n }\n isDuringInit = false; // Mutate initial state in place since we know there are no other subscribers\n // since we are the ones initializing on first use.\n if (!(initValue instanceof DefaultValue$2)) {\n var _store$getState$nextT5;\n const initLoadable = isInitError ? loadableWithError$2(initValue) : Recoil_isPromise(initValue) ? loadableWithPromise$2(wrapPendingPromise(store, initValue)) : loadableWithValue$3(unwrap(initValue));\n maybeFreezeValueOrPromise(initLoadable.contents);\n initState.atomValues.set(key, initLoadable); // If there is a pending transaction, then also mutate the next state tree.\n // This could happen if the atom was first initialized in an action that\n // also updated some other atom's state.\n (_store$getState$nextT5 = store.getState().nextTree) === null || _store$getState$nextT5 === void 0 || _store$getState$nextT5.atomValues.set(key, initLoadable);\n }\n }\n return cleanupAtom;\n }\n function peekAtom(_store, state) {\n var _ref, _state$atomValues$get3;\n return (_ref = (_state$atomValues$get3 = state.atomValues.get(key)) !== null && _state$atomValues$get3 !== void 0 ? _state$atomValues$get3 : cachedAnswerForUnvalidatedValue) !== null && _ref !== void 0 ? _ref : defaultLoadable;\n }\n function getAtom(_store, state) {\n if (state.atomValues.has(key)) // Atom value is stored in state:\n return Recoil_nullthrows(state.atomValues.get(key));\n else if (state.nonvalidatedAtoms.has(key)) {\n // Atom value is stored but needs validation before use.\n // We might have already validated it and have a cached validated value:\n if (cachedAnswerForUnvalidatedValue != null) return cachedAnswerForUnvalidatedValue;\n if (persistence == null) {\n Recoil_expectationViolation(`Tried to restore a persisted value for atom ${key} but it has no persistence settings.`);\n return defaultLoadable;\n }\n const nonvalidatedValue = state.nonvalidatedAtoms.get(key);\n const validatorResult = persistence.validator(nonvalidatedValue, DEFAULT_VALUE$7);\n const validatedValueLoadable = validatorResult instanceof DefaultValue$2 ? defaultLoadable : loadableWithValue$3(validatorResult);\n cachedAnswerForUnvalidatedValue = validatedValueLoadable;\n return cachedAnswerForUnvalidatedValue;\n } else return defaultLoadable;\n }\n function invalidateAtom() {\n cachedAnswerForUnvalidatedValue = undefined;\n }\n function setAtom(_store, state, newValue) {\n // Bail out if we're being set to the existing value, or if we're being\n // reset but have no stored value (validated or unvalidated) to reset from:\n if (state.atomValues.has(key)) {\n const existing = Recoil_nullthrows(state.atomValues.get(key));\n if (existing.state === \"hasValue\" && newValue === existing.contents) return new Map();\n } else if (!state.nonvalidatedAtoms.has(key) && newValue instanceof DefaultValue$2) return new Map();\n maybeFreezeValueOrPromise(newValue);\n cachedAnswerForUnvalidatedValue = undefined; // can be released now if it was previously in use\n return new Map().set(key, loadableWithValue$3(newValue));\n }\n function shouldDeleteConfigOnReleaseAtom() {\n return getConfigDeletionHandler$2(key) !== undefined && liveStoresCount <= 0;\n }\n const node = registerNode$2({\n key,\n nodeType: \"atom\",\n peek: peekAtom,\n get: getAtom,\n set: setAtom,\n init: initAtom,\n invalidate: invalidateAtom,\n shouldDeleteConfigOnRelease: shouldDeleteConfigOnReleaseAtom,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n persistence_UNSTABLE: options.persistence_UNSTABLE ? {\n type: options.persistence_UNSTABLE.type,\n backButton: options.persistence_UNSTABLE.backButton\n } : undefined,\n shouldRestoreFromSnapshots: true,\n retainedBy\n });\n return node;\n} // prettier-ignore\nfunction atom(options) {\n const { ...restOptions } = options;\n const optionsDefault = \"default\" in options ? options.default : new Promise(()=>{});\n if (isRecoilValue$4(optionsDefault) // Continue to use atomWithFallback for promise defaults for scoped atoms\n ) return atomWithFallback({\n ...restOptions,\n default: optionsDefault // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,\n }); // @fb-only: } else if (scopeRules_APPEND_ONLY_READ_THE_DOCS\n else return baseAtom({\n ...restOptions,\n default: optionsDefault\n });\n}\nfunction atomWithFallback(options) {\n const base = atom({\n ...options,\n default: DEFAULT_VALUE$7,\n persistence_UNSTABLE: options.persistence_UNSTABLE === undefined ? undefined : {\n ...options.persistence_UNSTABLE,\n validator: (storedValue)=>storedValue instanceof DefaultValue$2 ? storedValue : Recoil_nullthrows(options.persistence_UNSTABLE).validator(storedValue, DEFAULT_VALUE$7)\n },\n // TODO Hack for now.\n effects: options.effects,\n // flowlint-line unclear-type: off\n effects_UNSTABLE: options.effects_UNSTABLE // flowlint-line unclear-type: off\n }); // $FlowFixMe[incompatible-call]\n const sel = Recoil_selector({\n key: `${options.key}__withFallback`,\n get: ({ get })=>{\n const baseValue = get(base);\n return baseValue instanceof DefaultValue$2 ? options.default : baseValue;\n },\n // $FlowFixMe[incompatible-call]\n set: ({ set }, newValue)=>set(base, newValue),\n // This selector does not need to cache as it is a wrapper selector\n // and the selector within the wrapper selector will have a cache\n // option by default\n cachePolicy_UNSTABLE: {\n eviction: \"most-recent\"\n },\n dangerouslyAllowMutability: options.dangerouslyAllowMutability\n });\n setConfigDeletionHandler$1(sel.key, getConfigDeletionHandler$2(options.key));\n return sel;\n} // $FlowFixMe[missing-local-annot]\natom.value = (value)=>new WrappedValue$2(value);\nvar Recoil_atom = atom;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */ class MapCache {\n constructor(options){\n var _options$mapKey;\n _defineProperty(this, \"_map\", void 0);\n _defineProperty(this, \"_keyMapper\", void 0);\n this._map = new Map();\n this._keyMapper = (_options$mapKey = options === null || options === void 0 ? void 0 : options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : (v)=>v;\n }\n size() {\n return this._map.size;\n }\n has(key) {\n return this._map.has(this._keyMapper(key));\n }\n get(key) {\n return this._map.get(this._keyMapper(key));\n }\n set(key, val) {\n this._map.set(this._keyMapper(key), val);\n }\n delete(key) {\n this._map.delete(this._keyMapper(key));\n }\n clear() {\n this._map.clear();\n }\n}\nvar Recoil_MapCache = {\n MapCache\n};\nvar Recoil_MapCache_1 = Recoil_MapCache.MapCache;\nvar Recoil_MapCache$1 = /*#__PURE__*/ Object.freeze({\n __proto__: null,\n MapCache: Recoil_MapCache_1\n});\nconst { LRUCache: LRUCache$2 } = Recoil_LRUCache$1;\nconst { MapCache: MapCache$1 } = Recoil_MapCache$1;\nconst defaultPolicy$1 = {\n equality: \"reference\",\n eviction: \"none\",\n maxSize: Infinity\n};\nfunction cacheFromPolicy({ equality =defaultPolicy$1.equality , eviction =defaultPolicy$1.eviction , maxSize =defaultPolicy$1.maxSize } = defaultPolicy$1) {\n const valueMapper = getValueMapper$1(equality);\n const cache = getCache(eviction, maxSize, valueMapper);\n return cache;\n}\nfunction getValueMapper$1(equality) {\n switch(equality){\n case \"reference\":\n return (val)=>val;\n case \"value\":\n return (val)=>Recoil_stableStringify(val);\n }\n throw Recoil_err(`Unrecognized equality policy ${equality}`);\n}\nfunction getCache(eviction, maxSize, mapKey) {\n switch(eviction){\n case \"keep-all\":\n return new MapCache$1({\n mapKey\n });\n case \"lru\":\n return new LRUCache$2({\n mapKey,\n maxSize: Recoil_nullthrows(maxSize)\n });\n case \"most-recent\":\n return new LRUCache$2({\n mapKey,\n maxSize: 1\n });\n }\n throw Recoil_err(`Unrecognized eviction policy ${eviction}`);\n}\nvar Recoil_cacheFromPolicy = cacheFromPolicy;\n// @fb-only: import type {ScopeRules} from 'Recoil_ScopedAtom';\nconst { setConfigDeletionHandler: setConfigDeletionHandler$2 } = Recoil_Node;\n// Process scopeRules to handle any entries which are functions taking parameters\n// prettier-ignore\n// @fb-only: function mapScopeRules

(\n// @fb-only: scopeRules?: ParameterizedScopeRules

,\n// @fb-only: param: P,\n// @fb-only: ): ScopeRules | void {\n// @fb-only: return scopeRules?.map(rule =>\n// @fb-only: Array.isArray(rule)\n// @fb-only: ? rule.map(entry => (typeof entry === 'function' ? entry(param) : entry))\n// @fb-only: : rule,\n// @fb-only: );\n// @fb-only: }\n/*\nA function which returns an atom based on the input parameter.\n\nEach unique parameter returns a unique atom. E.g.,\n\n const f = atomFamily(...);\n f({a: 1}) => an atom\n f({a: 2}) => a different atom\n\nThis allows components to persist local, private state using atoms. Each\ninstance of the component may have a different key, which it uses as the\nparameter for a family of atoms; in this way, each component will have\nits own atom not shared by other instances. These state keys may be composed\ninto children's state keys as well.\n*/ function atomFamily(options) {\n var _options$cachePolicyF, _options$cachePolicyF2;\n const atomCache = Recoil_cacheFromPolicy({\n equality: (_options$cachePolicyF = (_options$cachePolicyF2 = options.cachePolicyForParams_UNSTABLE) === null || _options$cachePolicyF2 === void 0 ? void 0 : _options$cachePolicyF2.equality) !== null && _options$cachePolicyF !== void 0 ? _options$cachePolicyF : \"value\",\n eviction: \"keep-all\"\n }); // Simple atomFamily implementation to cache individual atoms based\n // on the parameter value equality.\n return (params)=>{\n var _stableStringify, _options$effects;\n const cachedAtom = atomCache.get(params);\n if (cachedAtom != null) return cachedAtom;\n const { cachePolicyForParams_UNSTABLE , ...atomOptions } = options;\n const optionsDefault = \"default\" in options ? options.default : new Promise(()=>{});\n const newAtom = Recoil_atom({\n ...atomOptions,\n key: `${options.key}__${(_stableStringify = Recoil_stableStringify(params)) !== null && _stableStringify !== void 0 ? _stableStringify : \"void\"}`,\n default: typeof optionsDefault === \"function\" ? // Flow doesn't know that T isn't a function, so we need to case to any\n // $FlowIssue[incompatible-use]\n optionsDefault(params) : optionsDefault,\n retainedBy_UNSTABLE: typeof options.retainedBy_UNSTABLE === \"function\" ? options.retainedBy_UNSTABLE(params) : options.retainedBy_UNSTABLE,\n effects: typeof options.effects === \"function\" ? options.effects(params) : typeof options.effects_UNSTABLE === \"function\" ? options.effects_UNSTABLE(params) : (_options$effects = options.effects) !== null && _options$effects !== void 0 ? _options$effects : options.effects_UNSTABLE // prettier-ignore\n });\n atomCache.set(params, newAtom);\n setConfigDeletionHandler$2(newAtom.key, ()=>{\n atomCache.delete(params);\n });\n return newAtom;\n };\n}\nvar Recoil_atomFamily = atomFamily;\nconst { setConfigDeletionHandler: setConfigDeletionHandler$3 } = Recoil_Node;\n// Keep in mind the parameter needs to be serializable as a cahche key\n// using Recoil_stableStringify\n// Add a unique index to each selector in case the cache implementation allows\n// duplicate keys based on equivalent stringified parameters\nlet nextIndex = 0;\n/* eslint-disable no-redeclare */ // Return a function that returns members of a family of selectors of the same type\n// E.g.,\n//\n// const s = selectorFamily(...);\n// s({a: 1}) => a selector\n// s({a: 2}) => a different selector\n//\n// By default, the selectors are distinguished by distinct values of the\n// parameter based on value equality, not reference equality. This allows using\n// object literals or other equivalent objects at callsites to not create\n// duplicate cache entries. This behavior may be overridden with the\n// cacheImplementationForParams option.\nfunction selectorFamily(options) {\n var _options$cachePolicyF, _options$cachePolicyF2;\n const selectorCache = Recoil_cacheFromPolicy({\n equality: (_options$cachePolicyF = (_options$cachePolicyF2 = options.cachePolicyForParams_UNSTABLE) === null || _options$cachePolicyF2 === void 0 ? void 0 : _options$cachePolicyF2.equality) !== null && _options$cachePolicyF !== void 0 ? _options$cachePolicyF : \"value\",\n eviction: \"keep-all\"\n });\n return (params)=>{\n var _stableStringify;\n // Throw an error with selector key so that it is clear which\n // selector is causing an error\n let cachedSelector;\n try {\n cachedSelector = selectorCache.get(params);\n } catch (error) {\n throw Recoil_err(`Problem with cache lookup for selector ${options.key}: ${error.message}`);\n }\n if (cachedSelector != null) return cachedSelector;\n const myKey = `${options.key}__selectorFamily/${(_stableStringify = Recoil_stableStringify(params, {\n // It is possible to use functions in parameters if the user uses\n // a cache with reference equality thanks to the incrementing index.\n allowFunctions: true\n })) !== null && _stableStringify !== void 0 ? _stableStringify : \"void\"}/${nextIndex++}`; // Append index in case values serialize to the same key string\n const myGet = (callbacks)=>options.get(params)(callbacks);\n const myCachePolicy = options.cachePolicy_UNSTABLE;\n const retainedBy = typeof options.retainedBy_UNSTABLE === \"function\" ? options.retainedBy_UNSTABLE(params) : options.retainedBy_UNSTABLE;\n let newSelector;\n if (options.set != null) {\n const set = options.set;\n const mySet = (callbacks, newValue)=>set(params)(callbacks, newValue);\n newSelector = Recoil_selector({\n key: myKey,\n get: myGet,\n set: mySet,\n cachePolicy_UNSTABLE: myCachePolicy,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n retainedBy_UNSTABLE: retainedBy\n });\n } else newSelector = Recoil_selector({\n key: myKey,\n get: myGet,\n cachePolicy_UNSTABLE: myCachePolicy,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n retainedBy_UNSTABLE: retainedBy\n });\n selectorCache.set(params, newSelector);\n setConfigDeletionHandler$3(newSelector.key, ()=>{\n selectorCache.delete(params);\n });\n return newSelector;\n };\n}\n/* eslint-enable no-redeclare */ var Recoil_selectorFamily = selectorFamily;\n// flowlint-next-line unclear-type:off\nconst constantSelector = Recoil_selectorFamily({\n key: \"__constant\",\n get: (constant)=>()=>constant,\n cachePolicyForParams_UNSTABLE: {\n equality: \"reference\"\n }\n}); // Function that returns a selector which always produces the\n// same constant value. It may be called multiple times with the\n// same value, based on reference equality, and will provide the\n// same selector.\nfunction constSelector(constant) {\n return constantSelector(constant);\n}\nvar Recoil_constSelector = constSelector;\n// flowlint-next-line unclear-type:off\nconst throwingSelector = Recoil_selectorFamily({\n key: \"__error\",\n get: (message)=>()=>{\n throw Recoil_err(message);\n },\n // TODO Why?\n cachePolicyForParams_UNSTABLE: {\n equality: \"reference\"\n }\n}); // Function that returns a selector which always throws an error\n// with the provided message.\nfunction errorSelector(message) {\n return throwingSelector(message);\n}\nvar Recoil_errorSelector = errorSelector;\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Wraps another recoil value and prevents writing to it.\n *\n * \n * @format\n * @oncall recoil\n */ function readOnlySelector(atom) {\n // flowlint-next-line unclear-type: off\n return atom;\n}\nvar Recoil_readOnlySelector = readOnlySelector;\nconst { loadableWithError: loadableWithError$3 , loadableWithPromise: loadableWithPromise$3 , loadableWithValue: loadableWithValue$4 } = Recoil_Loadable$1;\n/////////////////\n// TRUTH TABLE\n/////////////////\n// Dependencies waitForNone waitForAny waitForAll waitForAllSettled\n// [loading, loading] [Promise, Promise] Promise Promise Promise\n// [value, loading] [value, Promise] [value, Promise] Promise Promise\n// [value, value] [value, value] [value, value] [value, value] [value, value]\n//\n// [error, loading] [Error, Promise] [Error, Promise] Error Promise\n// [error, error] [Error, Error] [Error, Error] Error [error, error]\n// [value, error] [value, Error] [value, Error] Error [value, error]\n// Issue parallel requests for all dependencies and return the current\n// status if they have results, have some error, or are still pending.\nfunction concurrentRequests(getRecoilValue, deps) {\n const results = Array(deps.length).fill(undefined);\n const exceptions = Array(deps.length).fill(undefined);\n for (const [i, dep] of deps.entries())try {\n results[i] = getRecoilValue(dep);\n } catch (e) {\n // exceptions can either be Promises of pending results or real errors\n exceptions[i] = e;\n }\n return [\n results,\n exceptions\n ];\n}\nfunction isError(exp) {\n return exp != null && !Recoil_isPromise(exp);\n}\nfunction unwrapDependencies(dependencies) {\n return Array.isArray(dependencies) ? dependencies : Object.getOwnPropertyNames(dependencies).map((key)=>dependencies[key]);\n}\nfunction wrapResults(dependencies, /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */ results) {\n return Array.isArray(dependencies) ? results : Object.getOwnPropertyNames(dependencies).reduce((out, key, idx)=>({\n ...out,\n [key]: results[idx]\n }), {});\n}\nfunction wrapLoadables(dependencies, results, exceptions) {\n const output = exceptions.map((exception, idx)=>exception == null ? loadableWithValue$4(results[idx]) : Recoil_isPromise(exception) ? loadableWithPromise$3(exception) : loadableWithError$3(exception));\n return wrapResults(dependencies, output);\n}\nfunction combineAsyncResultsWithSyncResults(syncResults, asyncResults) {\n return asyncResults.map((result, idx)=>/**\n * it's important we use === undefined as opposed to == null, because the\n * resolved value of the async promise could be `null`, in which case we\n * don't want to use syncResults[idx], which would be undefined. If async\n * promise resolves to `undefined`, that's ok because `syncResults[idx]`\n * will also be `undefined`. That's a little hacky, but it works.\n */ result === undefined ? syncResults[idx] : result);\n} // Selector that requests all dependencies in parallel and immediately returns\n// current results without waiting.\nconst waitForNone = Recoil_selectorFamily({\n key: \"__waitForNone\",\n get: (dependencies)=>({ get })=>{\n // Issue requests for all dependencies in parallel.\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // Always return the current status of the results; never block.\n return wrapLoadables(dependencies, results, exceptions);\n },\n dangerouslyAllowMutability: true\n}); // Selector that requests all dependencies in parallel and waits for at least\n// one to be available before returning results. It will only error if all\n// dependencies have errors.\nconst waitForAny = Recoil_selectorFamily({\n key: \"__waitForAny\",\n get: (dependencies)=>({ get })=>{\n // Issue requests for all dependencies in parallel.\n // Exceptions can either be Promises of pending results or real errors\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // If any results are available, value or error, return the current status\n if (exceptions.some((exp)=>!Recoil_isPromise(exp))) return wrapLoadables(dependencies, results, exceptions);\n // Otherwise, return a promise that will resolve when the next result is\n // available, whichever one happens to be next. But, if all pending\n // dependencies end up with errors, then reject the promise.\n return new Promise((resolve)=>{\n for (const [i, exp] of exceptions.entries())if (Recoil_isPromise(exp)) exp.then((result)=>{\n results[i] = result;\n exceptions[i] = undefined;\n resolve(wrapLoadables(dependencies, results, exceptions));\n }).catch((error)=>{\n exceptions[i] = error;\n resolve(wrapLoadables(dependencies, results, exceptions));\n });\n });\n },\n dangerouslyAllowMutability: true\n}); // Selector that requests all dependencies in parallel and waits for all to be\n// available before returning a value. It will error if any dependencies error.\nconst waitForAll = Recoil_selectorFamily({\n key: \"__waitForAll\",\n get: (dependencies)=>({ get })=>{\n // Issue requests for all dependencies in parallel.\n // Exceptions can either be Promises of pending results or real errors\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // If all results are available, return the results\n if (exceptions.every((exp)=>exp == null)) return wrapResults(dependencies, results);\n // If we have any errors, throw the first error\n const error = exceptions.find(isError);\n if (error != null) throw error;\n // Otherwise, return a promise that will resolve when all results are available\n return Promise.all(exceptions).then((exceptionResults)=>wrapResults(dependencies, combineAsyncResultsWithSyncResults(results, exceptionResults)));\n },\n dangerouslyAllowMutability: true\n});\nconst waitForAllSettled = Recoil_selectorFamily({\n key: \"__waitForAllSettled\",\n get: (dependencies)=>({ get })=>{\n // Issue requests for all dependencies in parallel.\n // Exceptions can either be Promises of pending results or real errors\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // If all results are available, return the results\n if (exceptions.every((exp)=>!Recoil_isPromise(exp))) return wrapLoadables(dependencies, results, exceptions);\n // Wait for all results to settle\n return Promise.all(exceptions.map((exp, i)=>Recoil_isPromise(exp) ? exp.then((result)=>{\n results[i] = result;\n exceptions[i] = undefined;\n }).catch((error)=>{\n results[i] = undefined;\n exceptions[i] = error;\n }) : null)) // Then wrap them as loadables\n .then(()=>wrapLoadables(dependencies, results, exceptions));\n },\n dangerouslyAllowMutability: true\n});\nconst noWait = Recoil_selectorFamily({\n key: \"__noWait\",\n get: (dependency)=>({ get })=>{\n try {\n return Recoil_selector.value(loadableWithValue$4(get(dependency)));\n } catch (exception) {\n return Recoil_selector.value(Recoil_isPromise(exception) ? loadableWithPromise$3(exception) : loadableWithError$3(exception));\n }\n },\n dangerouslyAllowMutability: true\n});\nvar Recoil_WaitFor = {\n waitForNone,\n waitForAny,\n waitForAll,\n waitForAllSettled,\n noWait\n};\nconst { RecoilLoadable } = Recoil_Loadable$1;\nconst { DefaultValue: DefaultValue$3 } = Recoil_Node;\nconst { RecoilRoot: RecoilRoot$2 , useRecoilStoreID: useRecoilStoreID$1 } = Recoil_RecoilRoot;\nconst { isRecoilValue: isRecoilValue$5 } = Recoil_RecoilValue$1;\nconst { retentionZone: retentionZone$1 } = Recoil_RetentionZone;\nconst { freshSnapshot: freshSnapshot$2 } = Recoil_Snapshot$1;\nconst { useRecoilState: useRecoilState$1 , useRecoilState_TRANSITION_SUPPORT_UNSTABLE: useRecoilState_TRANSITION_SUPPORT_UNSTABLE$1 , useRecoilStateLoadable: useRecoilStateLoadable$1 , useRecoilValue: useRecoilValue$1 , useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: useRecoilValue_TRANSITION_SUPPORT_UNSTABLE$1 , useRecoilValueLoadable: useRecoilValueLoadable$1 , useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE$1 , useResetRecoilState: useResetRecoilState$1 , useSetRecoilState: useSetRecoilState$1 } = Recoil_Hooks;\nconst { useGotoRecoilSnapshot: useGotoRecoilSnapshot$1 , useRecoilSnapshot: useRecoilSnapshot$1 , useRecoilTransactionObserver: useRecoilTransactionObserver$1 } = Recoil_SnapshotHooks;\nconst { useRecoilCallback: useRecoilCallback$1 } = Recoil_useRecoilCallback;\nconst { noWait: noWait$1 , waitForAll: waitForAll$1 , waitForAllSettled: waitForAllSettled$1 , waitForAny: waitForAny$1 , waitForNone: waitForNone$1 } = Recoil_WaitFor;\nvar Recoil_index = {\n // Types\n DefaultValue: DefaultValue$3,\n isRecoilValue: isRecoilValue$5,\n RecoilLoadable,\n // Global Recoil environment settiongs\n RecoilEnv: Recoil_RecoilEnv,\n // Recoil Root\n RecoilRoot: RecoilRoot$2,\n useRecoilStoreID: useRecoilStoreID$1,\n useRecoilBridgeAcrossReactRoots_UNSTABLE: Recoil_useRecoilBridgeAcrossReactRoots,\n // Atoms/Selectors\n atom: Recoil_atom,\n selector: Recoil_selector,\n // Convenience Atoms/Selectors\n atomFamily: Recoil_atomFamily,\n selectorFamily: Recoil_selectorFamily,\n constSelector: Recoil_constSelector,\n errorSelector: Recoil_errorSelector,\n readOnlySelector: Recoil_readOnlySelector,\n // Concurrency Helpers for Atoms/Selectors\n noWait: noWait$1,\n waitForNone: waitForNone$1,\n waitForAny: waitForAny$1,\n waitForAll: waitForAll$1,\n waitForAllSettled: waitForAllSettled$1,\n // Hooks for Atoms/Selectors\n useRecoilValue: useRecoilValue$1,\n useRecoilValueLoadable: useRecoilValueLoadable$1,\n useRecoilState: useRecoilState$1,\n useRecoilStateLoadable: useRecoilStateLoadable$1,\n useSetRecoilState: useSetRecoilState$1,\n useResetRecoilState: useResetRecoilState$1,\n useGetRecoilValueInfo_UNSTABLE: Recoil_useGetRecoilValueInfo,\n useRecoilRefresher_UNSTABLE: Recoil_useRecoilRefresher,\n useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE$1,\n useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: useRecoilValue_TRANSITION_SUPPORT_UNSTABLE$1,\n useRecoilState_TRANSITION_SUPPORT_UNSTABLE: useRecoilState_TRANSITION_SUPPORT_UNSTABLE$1,\n // Hooks for complex operations\n useRecoilCallback: useRecoilCallback$1,\n useRecoilTransaction_UNSTABLE: Recoil_useRecoilTransaction,\n // Snapshots\n useGotoRecoilSnapshot: useGotoRecoilSnapshot$1,\n useRecoilSnapshot: useRecoilSnapshot$1,\n useRecoilTransactionObserver_UNSTABLE: useRecoilTransactionObserver$1,\n snapshot_UNSTABLE: freshSnapshot$2,\n // Memory Management\n useRetain: Recoil_useRetain,\n retentionZone: retentionZone$1\n};\nvar Recoil_index_1 = Recoil_index.DefaultValue;\nvar Recoil_index_2 = Recoil_index.isRecoilValue;\nvar Recoil_index_3 = Recoil_index.RecoilLoadable;\nvar Recoil_index_4 = Recoil_index.RecoilEnv;\nvar Recoil_index_5 = Recoil_index.RecoilRoot;\nvar Recoil_index_6 = Recoil_index.useRecoilStoreID;\nvar Recoil_index_7 = Recoil_index.useRecoilBridgeAcrossReactRoots_UNSTABLE;\nvar Recoil_index_8 = Recoil_index.atom;\nvar Recoil_index_9 = Recoil_index.selector;\nvar Recoil_index_10 = Recoil_index.atomFamily;\nvar Recoil_index_11 = Recoil_index.selectorFamily;\nvar Recoil_index_12 = Recoil_index.constSelector;\nvar Recoil_index_13 = Recoil_index.errorSelector;\nvar Recoil_index_14 = Recoil_index.readOnlySelector;\nvar Recoil_index_15 = Recoil_index.noWait;\nvar Recoil_index_16 = Recoil_index.waitForNone;\nvar Recoil_index_17 = Recoil_index.waitForAny;\nvar Recoil_index_18 = Recoil_index.waitForAll;\nvar Recoil_index_19 = Recoil_index.waitForAllSettled;\nvar Recoil_index_20 = Recoil_index.useRecoilValue;\nvar Recoil_index_21 = Recoil_index.useRecoilValueLoadable;\nvar Recoil_index_22 = Recoil_index.useRecoilState;\nvar Recoil_index_23 = Recoil_index.useRecoilStateLoadable;\nvar Recoil_index_24 = Recoil_index.useSetRecoilState;\nvar Recoil_index_25 = Recoil_index.useResetRecoilState;\nvar Recoil_index_26 = Recoil_index.useGetRecoilValueInfo_UNSTABLE;\nvar Recoil_index_27 = Recoil_index.useRecoilRefresher_UNSTABLE;\nvar Recoil_index_28 = Recoil_index.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE;\nvar Recoil_index_29 = Recoil_index.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE;\nvar Recoil_index_30 = Recoil_index.useRecoilState_TRANSITION_SUPPORT_UNSTABLE;\nvar Recoil_index_31 = Recoil_index.useRecoilCallback;\nvar Recoil_index_32 = Recoil_index.useRecoilTransaction_UNSTABLE;\nvar Recoil_index_33 = Recoil_index.useGotoRecoilSnapshot;\nvar Recoil_index_34 = Recoil_index.useRecoilSnapshot;\nvar Recoil_index_35 = Recoil_index.useRecoilTransactionObserver_UNSTABLE;\nvar Recoil_index_36 = Recoil_index.snapshot_UNSTABLE;\nvar Recoil_index_37 = Recoil_index.useRetain;\nvar Recoil_index_38 = Recoil_index.retentionZone;\nexports.default = Recoil_index;\n\n},{\"86da38ec19b50b77\":\"5QIF0\",\"react\":\"6uln9\",\"react-dom\":\"b8T3j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9cP7j\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"AssetSourceDescription\", ()=>(0, _assetSourceDescriptionDefault.default));\nparcelHelpers.export(exports, \"AssetSourceList\", ()=>(0, _assetSourceListDefault.default));\nparcelHelpers.export(exports, \"ASSET_SOURCE_FRAGMENT\", ()=>(0, _assetSource.ASSET_SOURCE_FRAGMENT));\nparcelHelpers.export(exports, \"useAssetSourcesQuery\", ()=>(0, _useAssetSourcesQuery.useAssetSourcesQuery));\nparcelHelpers.export(exports, \"useSelectedAssetSource\", ()=>(0, _useSelectedAssetSource.useSelectedAssetSource));\nparcelHelpers.export(exports, \"selectedAssetSourceState\", ()=>(0, _selectedAssetSourceState.selectedAssetSourceState));\nparcelHelpers.export(exports, \"NEOS_ASSET_SOURCE\", ()=>(0, _selectedAssetSourceState.NEOS_ASSET_SOURCE));\nvar _assetSourceDescription = require(\"./components/AssetSourceDescription\");\nvar _assetSourceDescriptionDefault = parcelHelpers.interopDefault(_assetSourceDescription);\nvar _assetSourceList = require(\"./components/AssetSourceList\");\nvar _assetSourceListDefault = parcelHelpers.interopDefault(_assetSourceList);\nvar _assetSource = require(\"./fragments/assetSource\");\nvar _useAssetSourcesQuery = require(\"./hooks/useAssetSourcesQuery\");\nvar _useSelectedAssetSource = require(\"./hooks/useSelectedAssetSource\");\nvar _selectedAssetSourceState = require(\"./state/selectedAssetSourceState\");\n\n},{\"./components/AssetSourceDescription\":\"4kddK\",\"./components/AssetSourceList\":\"2hz1Y\",\"./fragments/assetSource\":\"f1gCj\",\"./hooks/useAssetSourcesQuery\":\"ckgxn\",\"./hooks/useSelectedAssetSource\":\"45jHK\",\"./state/selectedAssetSourceState\":\"g5Jy1\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4kddK\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _useSelectedAssetSource = require(\"../hooks/useSelectedAssetSource\");\nvar _assetSourceDescriptionModuleCss = require(\"./AssetSourceDescription.module.css\");\nvar _assetSourceDescriptionModuleCssDefault = parcelHelpers.interopDefault(_assetSourceDescriptionModuleCss);\nconst AssetSourceDescription = ()=>{\n const { translate } = (0, _core.useIntl)();\n const selectedAssetSource = (0, _useSelectedAssetSource.useSelectedAssetSource)();\n if (!selectedAssetSource?.description) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.ToggablePanel), {\n closesToBottom: true,\n className: (0, _assetSourceDescriptionModuleCssDefault.default).assetSourceDescription\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.ToggablePanel).Header, {\n className: (0, _assetSourceDescriptionModuleCssDefault.default).panelHeader\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.IconLabel), {\n icon: \"info-circle\",\n label: translate(\"assetSourceDescription.header\", \"Media source description\")\n })), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.ToggablePanel).Contents, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"p\", null, selectedAssetSource.description)));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetSourceDescription);\n\n},{\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"../hooks/useSelectedAssetSource\":\"45jHK\",\"./AssetSourceDescription.module.css\":\"hIOyZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hWxzt\":[function(require,module,exports) {\n// src/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Badge\", ()=>(0, _badgeDefault.default));\nparcelHelpers.export(exports, \"Bar\", ()=>(0, _barDefault.default));\nparcelHelpers.export(exports, \"Button\", ()=>(0, _buttonDefault.default));\nparcelHelpers.export(exports, \"ButtonGroup\", ()=>(0, _buttonGroupDefault.default));\nparcelHelpers.export(exports, \"CheckBox\", ()=>(0, _checkBoxDefault.default));\nparcelHelpers.export(exports, \"DateInput\", ()=>(0, _dateInputDefault.default));\nparcelHelpers.export(exports, \"Dialog\", ()=>(0, _dialogDefault.default));\nparcelHelpers.export(exports, \"DropDown\", ()=>(0, _dropDownDefault.default));\nparcelHelpers.export(exports, \"Frame\", ()=>(0, _frameDefault.default));\nparcelHelpers.export(exports, \"Headline\", ()=>(0, _headlineDefault.default));\nparcelHelpers.export(exports, \"Icon\", ()=>(0, _iconDefault.default));\nparcelHelpers.export(exports, \"IconButton\", ()=>(0, _iconButtonDefault.default));\nparcelHelpers.export(exports, \"IconButtonDropDown\", ()=>(0, _iconButtonDropDownDefault.default));\nparcelHelpers.export(exports, \"Label\", ()=>(0, _labelDefault.default));\nparcelHelpers.export(exports, \"Logo\", ()=>(0, _logoDefault.default));\nparcelHelpers.export(exports, \"MultiSelectBox\", ()=>(0, _multiSelectBoxDefault.default));\nparcelHelpers.export(exports, \"MultiSelectBox_ListPreviewSortable\", ()=>(0, _multiSelectBoxListPreviewSortableDefault.default));\nparcelHelpers.export(exports, \"SelectBox\", ()=>(0, _selectBoxDefault.default));\nparcelHelpers.export(exports, \"SelectBox_Option_MultiLineWithThumbnail\", ()=>(0, _selectBoxOptionMultiLineWithThumbnailDefault.default));\nparcelHelpers.export(exports, \"SelectBox_Option_SingleLine\", ()=>(0, _selectBoxOptionSingleLineDefault.default));\nparcelHelpers.export(exports, \"SideBar\", ()=>(0, _sideBarDefault.default));\nparcelHelpers.export(exports, \"Tabs\", ()=>(0, _tabsDefault.default));\nparcelHelpers.export(exports, \"TextArea\", ()=>(0, _textAreaDefault.default));\nparcelHelpers.export(exports, \"TextInput\", ()=>(0, _textInputDefault.default));\nparcelHelpers.export(exports, \"ToggablePanel\", ()=>(0, _toggablePanelDefault.default));\nparcelHelpers.export(exports, \"Tooltip\", ()=>(0, _tooltipDefault.default));\nparcelHelpers.export(exports, \"Tree\", ()=>(0, _treeDefault.default));\nparcelHelpers.export(exports, \"enhanceWithClickOutside\", ()=>(0, _enhanceWithClickOutsideDefault.default));\nvar _enhanceWithClickOutside = require(\"./enhanceWithClickOutside\");\nvar _enhanceWithClickOutsideDefault = parcelHelpers.interopDefault(_enhanceWithClickOutside);\nvar _badge = require(\"./Badge\");\nvar _badgeDefault = parcelHelpers.interopDefault(_badge);\nvar _bar = require(\"./Bar\");\nvar _barDefault = parcelHelpers.interopDefault(_bar);\nvar _button = require(\"./Button\");\nvar _buttonDefault = parcelHelpers.interopDefault(_button);\nvar _buttonGroup = require(\"./ButtonGroup\");\nvar _buttonGroupDefault = parcelHelpers.interopDefault(_buttonGroup);\nvar _checkBox = require(\"./CheckBox\");\nvar _checkBoxDefault = parcelHelpers.interopDefault(_checkBox);\nvar _dateInput = require(\"./DateInput\");\nvar _dateInputDefault = parcelHelpers.interopDefault(_dateInput);\nvar _dialog = require(\"./Dialog\");\nvar _dialogDefault = parcelHelpers.interopDefault(_dialog);\nvar _dropDown = require(\"./DropDown\");\nvar _dropDownDefault = parcelHelpers.interopDefault(_dropDown);\nvar _frame = require(\"./Frame\");\nvar _frameDefault = parcelHelpers.interopDefault(_frame);\nvar _headline = require(\"./Headline\");\nvar _headlineDefault = parcelHelpers.interopDefault(_headline);\nvar _icon = require(\"./Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar _iconButton = require(\"./IconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\nvar _iconButtonDropDown = require(\"./IconButtonDropDown\");\nvar _iconButtonDropDownDefault = parcelHelpers.interopDefault(_iconButtonDropDown);\nvar _label = require(\"./Label\");\nvar _labelDefault = parcelHelpers.interopDefault(_label);\nvar _logo = require(\"./Logo\");\nvar _logoDefault = parcelHelpers.interopDefault(_logo);\nvar _selectBox = require(\"./SelectBox\");\nvar _selectBoxDefault = parcelHelpers.interopDefault(_selectBox);\nvar _sideBar = require(\"./SideBar\");\nvar _sideBarDefault = parcelHelpers.interopDefault(_sideBar);\nvar _tabs = require(\"./Tabs\");\nvar _tabsDefault = parcelHelpers.interopDefault(_tabs);\nvar _textArea = require(\"./TextArea\");\nvar _textAreaDefault = parcelHelpers.interopDefault(_textArea);\nvar _textInput = require(\"./TextInput\");\nvar _textInputDefault = parcelHelpers.interopDefault(_textInput);\nvar _toggablePanel = require(\"./ToggablePanel\");\nvar _toggablePanelDefault = parcelHelpers.interopDefault(_toggablePanel);\nvar _tooltip = require(\"./Tooltip\");\nvar _tooltipDefault = parcelHelpers.interopDefault(_tooltip);\nvar _tree = require(\"./Tree\");\nvar _treeDefault = parcelHelpers.interopDefault(_tree);\nvar _multiSelectBox = require(\"./MultiSelectBox\");\nvar _multiSelectBoxDefault = parcelHelpers.interopDefault(_multiSelectBox);\nvar _multiSelectBoxListPreviewSortable = require(\"./MultiSelectBox_ListPreviewSortable\");\nvar _multiSelectBoxListPreviewSortableDefault = parcelHelpers.interopDefault(_multiSelectBoxListPreviewSortable);\nvar _selectBoxOptionSingleLine = require(\"./SelectBox_Option_SingleLine\");\nvar _selectBoxOptionSingleLineDefault = parcelHelpers.interopDefault(_selectBoxOptionSingleLine);\nvar _selectBoxOptionMultiLineWithThumbnail = require(\"./SelectBox_Option_MultiLineWithThumbnail\");\nvar _selectBoxOptionMultiLineWithThumbnailDefault = parcelHelpers.interopDefault(_selectBoxOptionMultiLineWithThumbnail);\n\n},{\"./enhanceWithClickOutside\":false,\"./Badge\":false,\"./Bar\":false,\"./Button\":\"3O9ca\",\"./ButtonGroup\":false,\"./CheckBox\":\"byzTN\",\"./DateInput\":false,\"./Dialog\":\"pUQs9\",\"./DropDown\":false,\"./Frame\":false,\"./Headline\":\"5iw6V\",\"./Icon\":\"d3a5Q\",\"./IconButton\":\"f6lYW\",\"./IconButtonDropDown\":false,\"./Label\":\"1WD74\",\"./Logo\":false,\"./SelectBox\":\"5M1am\",\"./SideBar\":false,\"./Tabs\":\"jYurn\",\"./TextArea\":\"hJO8M\",\"./TextInput\":\"apyBr\",\"./ToggablePanel\":\"e3kL4\",\"./Tooltip\":false,\"./Tree\":\"iHdBj\",\"./MultiSelectBox\":\"cr2Yv\",\"./MultiSelectBox_ListPreviewSortable\":false,\"./SelectBox_Option_SingleLine\":false,\"./SelectBox_Option_MultiLineWithThumbnail\":\"g480Y\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kjtTU\":[function(require,module,exports) {\n// src/enhanceWithClickOutside/index.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>enhanceWithClickOutside_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar isTargetExcludedForClickOutside = (el)=>{\n if (!el) return false;\n return el.dataset && el.dataset.ignore_click_outside ? true : isTargetExcludedForClickOutside(el.parentNode);\n};\nvar enhanceWithClickOutside = (Component)=>{\n class EnhancedComponent extends (0, _reactDefault.default).Component {\n constructor(){\n super(...arguments);\n this.wrappedInstanceRef = (0, _reactDefault.default).createRef();\n this.handleClickOutside = (e)=>{\n if (this.wrappedInstanceRef.current && (e.target instanceof HTMLElement || e.target instanceof HTMLDocument)) {\n const domNode = (0, _reactDomDefault.default).findDOMNode(this.wrappedInstanceRef.current);\n const target = e.iframeTarget || e.target;\n if (isTargetExcludedForClickOutside(target)) return;\n if ((!domNode || !domNode.contains(target)) && this.wrappedInstanceRef && this.wrappedInstanceRef.current && typeof this.wrappedInstanceRef.current.handleClickOutside === \"function\") this.wrappedInstanceRef.current.handleClickOutside(e);\n }\n };\n }\n componentDidMount() {\n document.addEventListener(\"click\", this.handleClickOutside, true);\n }\n componentWillUnmount() {\n document.removeEventListener(\"click\", this.handleClickOutside, true);\n }\n render() {\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(Component, {\n ...this.props,\n ref: this.wrappedInstanceRef\n });\n }\n }\n EnhancedComponent.displayName = `clickOutside(${Component.displayName || Component.name})`;\n return EnhancedComponent;\n};\nvar enhanceWithClickOutside_default = enhanceWithClickOutside;\n\n},{\"react\":\"6uln9\",\"react-dom\":\"b8T3j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3O9ca\":[function(require,module,exports) {\n// src/Button/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Button_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _button = require(\"./button\");\nvar _buttonDefault = parcelHelpers.interopDefault(_button);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Button/style.module.css\nvar _6Kvbml2ICss = require(\"../_css/6KVBML2I.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"btn--darkenHover\": \"neos-6Mnuzq_btn--darkenHover\",\n \"btn--isPressed\": \"neos-6Mnuzq_btn--isPressed\",\n \"btn--size-small\": \"neos-6Mnuzq_btn--size-small\",\n \"btn--lighter\": \"neos-6Mnuzq_btn--lighter\",\n \"btn--success\": \"neos-6Mnuzq_btn--success\",\n \"btn--warn\": \"neos-6Mnuzq_btn--warn\",\n \"btn--cleanHover\": \"neos-6Mnuzq_btn--cleanHover\",\n \"btn--successHover\": \"neos-6Mnuzq_btn--successHover\",\n \"btn--brandHover\": \"neos-6Mnuzq_btn--brandHover\",\n \"btn--errorHover\": \"neos-6Mnuzq_btn--errorHover\",\n \"btn--warnHover\": \"neos-6Mnuzq_btn--warnHover\",\n \"btn\": \"neos-6Mnuzq_btn \" + reset_module_default[\"reset\"],\n \"btn--clean\": \"neos-6Mnuzq_btn--clean\",\n \"btn--brandActive\": \"neos-6Mnuzq_btn--brandActive\",\n \"btn--transparent\": \"neos-6Mnuzq_btn--transparent\",\n \"btn--brand\": \"neos-6Mnuzq_btn--brand\",\n \"btn--neutral\": \"neos-6Mnuzq_btn--neutral\",\n \"btn--error\": \"neos-6Mnuzq_btn--error\"\n};\n// src/Button/index.ts\nvar Button_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).button, style_module_default)((0, _buttonDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./button\":\"dhay0\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/6KVBML2I.css\":\"WkLNP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"e7HmU\":[function(require,module,exports) {\n\"use strict\";\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"ThemeProvider\", {\n enumerable: true,\n get: function get() {\n return _ThemeProvider[\"default\"];\n }\n});\nObject.defineProperty(exports, \"themr\", {\n enumerable: true,\n get: function get() {\n return _themr[\"default\"];\n }\n});\nObject.defineProperty(exports, \"themeable\", {\n enumerable: true,\n get: function get() {\n return _themr.themeable;\n }\n});\nvar _ThemeProvider = _interopRequireDefault(require(\"e4418bab1b3a96d4\"));\nvar _themr = _interopRequireWildcard(require(\"882db1b114250174\"));\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n return cache;\n}\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) return obj;\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") return {\n \"default\": obj\n };\n var cache = _getRequireWildcardCache();\n if (cache && cache.has(obj)) return cache.get(obj);\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n newObj[\"default\"] = obj;\n if (cache) cache.set(obj, newObj);\n return newObj;\n}\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\n},{\"e4418bab1b3a96d4\":\"2qte2\",\"882db1b114250174\":\"bYZV4\"}],\"2qte2\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _react = require(\"6fb9dc74f7e2a811\");\nvar _propTypes = _interopRequireDefault(require(\"d1c430e31819581\"));\nvar _themrShape = _interopRequireDefault(require(\"e3bca21b6f7afd19\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) return call;\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nvar ThemeProvider = /*#__PURE__*/ function(_Component) {\n _inherits(ThemeProvider, _Component);\n var _super = _createSuper(ThemeProvider);\n function ThemeProvider() {\n _classCallCheck(this, ThemeProvider);\n return _super.apply(this, arguments);\n }\n _createClass(ThemeProvider, [\n {\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n themr: {\n theme: this.props.theme\n }\n };\n }\n },\n {\n key: \"render\",\n value: function render() {\n return _react.Children.only(this.props.children);\n }\n }\n ]);\n return ThemeProvider;\n}(_react.Component);\nexports[\"default\"] = ThemeProvider;\n_defineProperty(ThemeProvider, \"propTypes\", {\n children: _propTypes[\"default\"].element.isRequired,\n theme: _propTypes[\"default\"].object.isRequired\n});\n_defineProperty(ThemeProvider, \"defaultProps\", {\n theme: {}\n});\n_defineProperty(ThemeProvider, \"childContextTypes\", {\n themr: _themrShape[\"default\"].isRequired\n});\n\n},{\"6fb9dc74f7e2a811\":\"6uln9\",\"d1c430e31819581\":\"6FKs7\",\"e3bca21b6f7afd19\":\"EskA3\"}],\"EskA3\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _propTypes = _interopRequireDefault(require(\"9148637bf3bdc140\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nvar _default = _propTypes[\"default\"].shape({\n theme: _propTypes[\"default\"].object.isRequired\n});\nexports[\"default\"] = _default;\n\n},{\"9148637bf3bdc140\":\"6FKs7\"}],\"bYZV4\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.themeable = themeable;\nexports[\"default\"] = void 0;\nvar _react = _interopRequireWildcard(require(\"2a162239c4d7a23a\"));\nvar _propTypes = _interopRequireDefault(require(\"f8756e2814dadde9\"));\nvar _hoistNonReactStatics = _interopRequireDefault(require(\"6fe86c79b8f7309e\"));\nvar _invariant = _interopRequireDefault(require(\"1106668a324d50d2\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nfunction _getRequireWildcardCache() {\n if (typeof WeakMap !== \"function\") return null;\n var cache = new WeakMap();\n _getRequireWildcardCache = function _getRequireWildcardCache() {\n return cache;\n };\n return cache;\n}\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) return obj;\n if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") return {\n \"default\": obj\n };\n var cache = _getRequireWildcardCache();\n if (cache && cache.has(obj)) return cache.get(obj);\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n newObj[\"default\"] = obj;\n if (cache) cache.set(obj, newObj);\n return newObj;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) return call;\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\n/**\n * @typedef {Object.} TReactCSSThemrTheme\n */ /**\n * @typedef {{}} TReactCSSThemrOptions\n * @property {String|Boolean} [composeTheme=COMPOSE_DEEPLY]\n */ var COMPOSE_DEEPLY = \"deeply\";\nvar COMPOSE_SOFTLY = \"softly\";\nvar DONT_COMPOSE = false;\nvar DEFAULT_OPTIONS = {\n composeTheme: COMPOSE_DEEPLY,\n mapThemrProps: defaultMapThemrProps\n};\nvar THEMR_CONFIG = typeof Symbol !== \"undefined\" ? Symbol(\"THEMR_CONFIG\") : \"__REACT_CSS_THEMR_CONFIG__\";\n/**\n * Themr decorator\n * @param {String|Number|Symbol} componentName - Component name\n * @param {TReactCSSThemrTheme} [localTheme] - Base theme\n * @param {{}} [options] - Themr options\n * @returns {function(ThemedComponent:Function):Function} - ThemedComponent\n */ var themr = function themr(componentName, localTheme) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return function(ThemedComponent) {\n var _DEFAULT_OPTIONS$opti = _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options), optionComposeTheme = _DEFAULT_OPTIONS$opti.composeTheme, optionMapThemrProps = _DEFAULT_OPTIONS$opti.mapThemrProps;\n validateComposeOption(optionComposeTheme);\n var config = ThemedComponent[THEMR_CONFIG];\n if (config && config.componentName === componentName) {\n config.localTheme = themeable(config.localTheme, localTheme);\n return ThemedComponent;\n }\n config = {\n componentName: componentName,\n localTheme: localTheme\n };\n /**\n * @property {{wrappedInstance: *}} refs\n */ var Themed = /*#__PURE__*/ function(_Component) {\n _inherits(Themed, _Component);\n var _super = _createSuper(Themed);\n function Themed() {\n var _this;\n _classCallCheck(this, Themed);\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n _this = _super.call.apply(_super, [\n this\n ].concat(args));\n _this.theme_ = _this.calcTheme(_this.props);\n return _this;\n }\n _createClass(Themed, [\n {\n key: \"getWrappedInstance\",\n value: function getWrappedInstance() {\n (0, _invariant[\"default\"])(true, \"DEPRECATED: To access the wrapped instance, you have to pass { innerRef: fn } and retrieve with a callback ref style.\");\n return this.refs.wrappedInstance;\n }\n },\n {\n key: \"getNamespacedTheme\",\n value: function getNamespacedTheme(props) {\n var themeNamespace = props.themeNamespace, theme = props.theme;\n if (!themeNamespace) return theme;\n if (themeNamespace && !theme) throw new Error(\"Invalid themeNamespace use in friendsofreactjs/react-css-themr. themeNamespace prop should be used only with theme prop.\");\n return Object.keys(theme).filter(function(key) {\n return key.startsWith(themeNamespace);\n }).reduce(function(result, key) {\n return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, removeNamespace(key, themeNamespace), theme[key]));\n }, {});\n }\n },\n {\n key: \"getThemeNotComposed\",\n value: function getThemeNotComposed(props) {\n var theme = props.theme;\n if (theme) return this.getNamespacedTheme(props);\n if (config.localTheme) return config.localTheme;\n return this.getContextTheme();\n }\n },\n {\n key: \"getContextTheme\",\n value: function getContextTheme() {\n return this.context.themr ? this.context.themr.theme[config.componentName] : {};\n }\n },\n {\n key: \"getTheme\",\n value: function getTheme(props) {\n var composeTheme = props.composeTheme;\n return composeTheme === COMPOSE_SOFTLY ? _objectSpread(_objectSpread(_objectSpread({}, this.getContextTheme()), config.localTheme), this.getNamespacedTheme(props)) : themeable(themeable(this.getContextTheme(), config.localTheme), this.getNamespacedTheme(props));\n }\n },\n {\n key: \"calcTheme\",\n value: function calcTheme(props) {\n var composeTheme = props.composeTheme;\n return composeTheme ? this.getTheme(props) : this.getThemeNotComposed(props);\n }\n },\n {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this$props = this.props, composeTheme = _this$props.composeTheme, theme = _this$props.theme, themeNamespace = _this$props.themeNamespace;\n if (composeTheme !== nextProps.composeTheme || theme !== nextProps.theme || themeNamespace !== nextProps.themeNamespace) this.theme_ = this.calcTheme(nextProps);\n return true;\n }\n },\n {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/ _react[\"default\"].createElement(ThemedComponent, this.props.mapThemrProps(this.props, this.theme_));\n }\n }\n ]);\n return Themed;\n }(_react.Component);\n _defineProperty(Themed, \"displayName\", \"Themed\".concat(ThemedComponent.displayName || ThemedComponent.name || \"Component\"));\n _defineProperty(Themed, \"contextTypes\", {\n themr: _propTypes[\"default\"].object\n });\n _defineProperty(Themed, \"propTypes\", _objectSpread(_objectSpread({}, ThemedComponent.propTypes), {}, {\n composeTheme: _propTypes[\"default\"].oneOf([\n COMPOSE_DEEPLY,\n COMPOSE_SOFTLY,\n DONT_COMPOSE\n ]),\n innerRef: _propTypes[\"default\"].oneOfType([\n _propTypes[\"default\"].func,\n _propTypes[\"default\"].object\n ]),\n theme: _propTypes[\"default\"].object,\n themeNamespace: _propTypes[\"default\"].string,\n mapThemrProps: _propTypes[\"default\"].func\n }));\n _defineProperty(Themed, \"defaultProps\", _objectSpread(_objectSpread({}, ThemedComponent.defaultProps), {}, {\n composeTheme: optionComposeTheme,\n mapThemrProps: optionMapThemrProps\n }));\n Themed[THEMR_CONFIG] = config;\n return (0, _hoistNonReactStatics[\"default\"])(Themed, ThemedComponent);\n };\n};\nvar _default = themr;\n/**\n * Merges passed themes by concatenating string keys and processing nested themes\n *\n * @param {...TReactCSSThemrTheme} themes - Themes\n * @returns {TReactCSSThemrTheme} - Resulting theme\n */ exports[\"default\"] = _default;\nfunction themeable() {\n for(var _len2 = arguments.length, themes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++)themes[_key2] = arguments[_key2];\n return themes.reduce(function(acc, theme) {\n return merge(acc, theme);\n }, {});\n}\n/**\n * @param {TReactCSSThemrTheme} [original] - Original theme\n * @param {TReactCSSThemrTheme} [mixin] - Mixin theme\n * @returns {TReactCSSThemrTheme} - resulting theme\n */ function merge() {\n var original = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var mixin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n //make a copy to avoid mutations of nested objects\n //also strip all functions injected by isomorphic-style-loader\n var result = Object.keys(original).reduce(function(acc, key) {\n var value = original[key];\n if (typeof value !== \"function\") acc[key] = value;\n return acc;\n }, {}); //traverse mixin keys and merge them to resulting theme\n Object.keys(mixin).forEach(function(key) {\n //there's no need to set any defaults here\n var originalValue = result[key];\n var mixinValue = mixin[key];\n switch(_typeof(mixinValue)){\n case \"object\":\n //possibly nested theme object\n switch(_typeof(originalValue)){\n case \"object\":\n //exactly nested theme object - go recursive\n result[key] = merge(originalValue, mixinValue);\n break;\n case \"undefined\":\n //original does not contain this nested key - just take it as is\n result[key] = mixinValue;\n break;\n default:\n //can't merge an object with a non-object\n throw new Error(\"You are merging object \".concat(key, \" with a non-object \").concat(originalValue));\n }\n break;\n case \"undefined\":\n case \"function\":\n break; //just skip\n default:\n //plain values\n switch(_typeof(originalValue)){\n case \"object\":\n //can't merge a non-object with an object\n throw new Error(\"You are merging non-object \".concat(mixinValue, \" with an object \").concat(key, \", (can occur when using empty or :global only base theme stylesheet)\"));\n case \"undefined\":\n //mixin key is new to original theme - take it as is\n result[key] = mixinValue;\n break;\n case \"function\":\n break; //just skip\n default:\n //finally we can merge\n result[key] = originalValue.split(\" \").concat(mixinValue.split(\" \")).filter(function(item, pos, self) {\n return self.indexOf(item) === pos && item !== \"\";\n }).join(\" \");\n break;\n }\n break;\n }\n });\n return result;\n}\n/**\n * Validates compose option\n *\n * @param {String|Boolean} composeTheme - Compose them option\n * @throws\n * @returns {undefined}\n */ function validateComposeOption(composeTheme) {\n if ([\n COMPOSE_DEEPLY,\n COMPOSE_SOFTLY,\n DONT_COMPOSE\n ].indexOf(composeTheme) === -1) throw new Error(\"Invalid composeTheme option for friendsofreactjs/react-css-themr. Valid composition options are \".concat(COMPOSE_DEEPLY, \", \").concat(COMPOSE_SOFTLY, \" and \").concat(DONT_COMPOSE, \". The given option was \").concat(composeTheme));\n}\n/**\n * Removes namespace from key\n *\n * @param {String} key - Key\n * @param {String} themeNamespace - Theme namespace\n * @returns {String} - Key\n */ function removeNamespace(key, themeNamespace) {\n var capitalized = key.substr(themeNamespace.length);\n return capitalized.slice(0, 1).toLowerCase() + capitalized.slice(1);\n}\n/**\n * Maps props and theme to an object that will be used to pass down props to the\n * decorated component.\n *\n * @param {Object} ownProps - All props given to the decorated component\n * @param {Object} theme - Calculated then that should be passed down\n * @returns {Object} - Props that will be passed down to the decorated component\n */ function defaultMapThemrProps(ownProps, theme) {\n var composeTheme = ownProps.composeTheme, innerRef = ownProps.innerRef, themeNamespace = ownProps.themeNamespace, mapThemrProps = ownProps.mapThemrProps, rest = _objectWithoutProperties(ownProps, [\n \"composeTheme\",\n \"innerRef\",\n \"themeNamespace\",\n \"mapThemrProps\"\n ]);\n return _objectSpread(_objectSpread({}, rest), {}, {\n ref: innerRef,\n theme: theme\n });\n}\n\n},{\"2a162239c4d7a23a\":\"6uln9\",\"f8756e2814dadde9\":\"6FKs7\",\"6fe86c79b8f7309e\":\"3bvdc\",\"1106668a324d50d2\":\"9pmgK\"}],\"9pmgK\":[function(require,module,exports) {\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */ var invariant = function(condition, format, a, b, c, d, e, f) {\n if (!condition) {\n var error;\n if (format === undefined) error = new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");\n else {\n var args = [\n a,\n b,\n c,\n d,\n e,\n f\n ];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function() {\n return args[argIndex++];\n }));\n error.name = \"Invariant Violation\";\n }\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\nmodule.exports = invariant;\n\n},{}],\"h8ZAm\":[function(require,module,exports) {\n// src/identifiers.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>identifiers_default);\nvar identifiers_default = {\n badge: \"@neos-project/react-ui-components/badge\",\n bar: \"@neos-project/react-ui-components/bar\",\n button: \"@neos-project/react-ui-components/button\",\n buttonGroup: \"@neos-project/react-ui-components/buttonGroup\",\n checkBox: \"@neos-project/react-ui-components/checkBox\",\n dateInput: \"@neos-project/react-ui-components/dateInput\",\n dialog: \"@neos-project/react-ui-components/dialog\",\n dropDown: \"@neos-project/react-ui-components/dropDown\",\n dropDownContents: \"@neos-project/react-ui-components/dropDownContents\",\n dropDownHeader: \"@neos-project/react-ui-components/dropDownHeader\",\n frame: \"@neos-project/react-ui-components/frame\",\n grid: \"@neos-project/react-ui-components/grid\",\n gridItem: \"@neos-project/react-ui-components/gridItem\",\n headline: \"@neos-project/react-ui-components/headline\",\n icon: \"@neos-project/react-ui-components/icon\",\n iconButton: \"@neos-project/react-ui-components/iconButton\",\n iconButtonDropDown: \"@neos-project/react-ui-components/iconButtonDropDown\",\n label: \"@neos-project/react-ui-components/label\",\n listPreviewElement: \"@neos-project/react-ui-components/listPreviewElement\",\n multiSelectBox: \"@neos-project/react-ui-components/multiSelectBox\",\n multiSelectBox_ListPreviewSortable: \"@neos-project/react-ui-components/multiSelectBox_ListPreviewSortable\",\n multiSelectBox_ListPreviewSortable_DraggableListPreviewElement: \"@neos-project/react-ui-components/multiSelectBox_ListPreviewSortable_DraggableListPreviewElement\",\n selectBox: \"@neos-project/react-ui-components/selectBox\",\n selectBox_Header: \"@neos-project/react-ui-components/selectBox_Header\",\n selectBox_HeaderWithSearchInput: \"@neos-project/react-ui-components/selectBox_HeaderWithSearchInput\",\n selectBox_Option_MultiLineWithThumbnail: \"@neos-project/react-ui-components/selectBox_Option_MultiLineWithThumbnail\",\n sideBar: \"@neos-project/react-ui-components/sideBar\",\n tabs: \"@neos-project/react-ui-components/tabs\",\n tabsPanel: \"@neos-project/react-ui-components/tabsPanel\",\n textArea: \"@neos-project/react-ui-components/textArea\",\n textInput: \"@neos-project/react-ui-components/textInput\",\n toggablePanel: \"@neos-project/react-ui-components/toggablePanel\",\n toggablePanelContents: \"@neos-project/react-ui-components/toggablePanelContents\",\n toggablePanelHeader: \"@neos-project/react-ui-components/toggablePanelHeader\",\n tooltip: \"@neos-project/react-ui-components/tooltip\",\n tree: \"@neos-project/react-ui-components/tree\",\n treeNode: \"@neos-project/react-ui-components/treeNode\",\n treeNodeContents: \"@neos-project/react-ui-components/treeNodeContents\",\n treeNodeHeader: \"@neos-project/react-ui-components/treeNodeHeader\",\n treeDragLayer: \"@neos-project/react-ui-components/treeDragLayer\"\n};\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dhay0\":[function(require,module,exports) {\n// src/Button/button.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>button_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _focusNode = require(\"../_lib/focusNode\");\nvar defaultProps = {\n _refHandler: (0, _focusNode.makeFocusNode),\n hoverStyle: \"brand\",\n isActive: false,\n disabled: false,\n isFocused: false,\n size: \"regular\",\n style: \"lighter\",\n type: \"button\"\n};\nvar Button = class extends (0, _reactDefault.default).PureComponent {\n getDisabled() {\n return Boolean(this.props.disabled);\n }\n render() {\n const { children , className , isPressed , isFocused , isActive , style , hoverStyle , size , theme , type , _refHandler , ...rest } = this.props;\n const disabled = this.getDisabled();\n const effectiveStyle = isActive ? \"brand\" : style;\n const effectiveHoverStyle = isActive ? \"brand\" : hoverStyle;\n const finalClassName = (0, _classnamesDefault.default)(theme.btn, // @ts-ignore implizit any because ButtonTheme has no index signature\n theme[`btn--size-${size}`], // @ts-ignore implizit any because ButtonTheme has no index signature\n theme[`btn--${effectiveStyle}`], // @ts-ignore implizit any because ButtonTheme has no index signature\n theme[`btn--${effectiveHoverStyle}Hover`], {\n [theme[\"btn--brandActive\"]]: isActive,\n [theme[\"btn--isPressed\"]]: isPressed\n }, className);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"button\", {\n ...rest,\n disabled,\n type,\n className: finalClassName,\n role: \"button\",\n ref: _refHandler && _refHandler(isFocused)\n }, children);\n }\n};\nButton.defaultProps = defaultProps;\nvar button_default = Button;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"../_lib/focusNode\":\"cohPG\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hVGzI\":[function(require,module,exports) {\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/ /* global define */ (function() {\n \"use strict\";\n var hasOwn = {}.hasOwnProperty;\n var nativeCodeString = \"[native code]\";\n function classNames() {\n var classes = [];\n for(var i = 0; i < arguments.length; i++){\n var arg = arguments[i];\n if (!arg) continue;\n var argType = typeof arg;\n if (argType === \"string\" || argType === \"number\") classes.push(arg);\n else if (Array.isArray(arg)) {\n if (arg.length) {\n var inner = classNames.apply(null, arg);\n if (inner) classes.push(inner);\n }\n } else if (argType === \"object\") {\n if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes(\"[native code]\")) {\n classes.push(arg.toString());\n continue;\n }\n for(var key in arg)if (hasOwn.call(arg, key) && arg[key]) classes.push(key);\n }\n }\n return classes.join(\" \");\n }\n if (0, module.exports) {\n classNames.default = classNames;\n module.exports = classNames;\n } else if (typeof define === \"function\" && typeof define.amd === \"object\" && define.amd) // register as 'classnames', consistent with npm package name\n define(\"classnames\", [], function() {\n return classNames;\n });\n else window.classNames = classNames;\n})();\n\n},{}],\"cohPG\":[function(require,module,exports) {\n// src/_lib/focusNode.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"makeFocusNode\", ()=>makeFocusNode);\nvar makeFocusNode = (isFocused)=>(node)=>{\n if (node) {\n const method = isFocused ? \"focus\" : \"blur\";\n node[method]();\n }\n };\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"WkLNP\":[function() {},{}],\"byzTN\":[function(require,module,exports) {\n// src/CheckBox/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>CheckBox_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _checkBox = require(\"./checkBox\");\nvar _checkBoxDefault = parcelHelpers.interopDefault(_checkBox);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/CheckBox/style.module.css\nvar _bnxeuac5Css = require(\"../_css/BNXEUAC5.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"checkbox__checked\": \"neos-am4CoW_checkbox__checked\",\n \"checkbox__input\": \"neos-am4CoW_checkbox__input \" + reset_module_default[\"reset\"],\n \"checkbox__icon\": \"neos-am4CoW_checkbox__icon\",\n \"checkbox__inputMirror--active\": \"neos-am4CoW_checkbox__inputMirror--active\",\n \"checkbox__disabled\": \"neos-am4CoW_checkbox__disabled\",\n \"checkbox\": \"neos-am4CoW_checkbox \" + reset_module_default[\"reset\"],\n \"checkbox__inputMirror\": \"neos-am4CoW_checkbox__inputMirror \" + reset_module_default[\"reset\"]\n};\n// src/CheckBox/index.ts\nvar CheckBox_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).checkBox, style_module_default)((0, _checkBoxDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./checkBox\":\"flFDw\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/BNXEUAC5.css\":\"7fcgF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"flFDw\":[function(require,module,exports) {\n// src/CheckBox/checkBox.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>checkBox_default);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar CheckBox = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleChange = ()=>{\n const { onChange , isChecked } = this.props;\n if (onChange) onChange(!isChecked);\n };\n }\n render() {\n const { isChecked , disabled , className , theme , ...rest } = this.props;\n const finalClassName = (0, _classnamesDefault.default)(className, theme.checkbox, {\n [theme.checkbox__checked]: isChecked,\n [theme.checkbox__disabled]: disabled\n });\n const mirrorClassNames = (0, _classnamesDefault.default)(theme.checkbox__inputMirror, {\n [theme[\"checkbox__inputMirror--active\"]]: isChecked\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: finalClassName\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"input\", {\n ...rest,\n className: theme.checkbox__input,\n type: \"checkbox\",\n checked: isChecked,\n \"aria-checked\": isChecked,\n onChange: this.handleChange,\n disabled\n }), isChecked ? /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _iconDefault.default), {\n className: theme.checkbox__icon,\n icon: \"check\"\n }) : null, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: mirrorClassNames\n }));\n }\n};\nvar checkBox_default = CheckBox;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"./../Icon\":\"d3a5Q\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"d3a5Q\":[function(require,module,exports) {\n// src/Icon/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Icon_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _icon = require(\"./icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Icon/style.module.css\nvar _pa6G4Qj6Css = require(\"../_css/PA6G4QJ6.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"icon\": \"neos-RjvLTG_icon \" + reset_module_default[\"reset\"],\n \"icon--color-warn\": \"neos-RjvLTG_icon--color-warn\",\n \"icon--paddedRight\": \"neos-RjvLTG_icon--paddedRight\",\n \"icon--big\": \"neos-RjvLTG_icon--big\",\n \"icon--tiny\": \"neos-RjvLTG_icon--tiny\",\n \"icon--large\": \"neos-RjvLTG_icon--large\",\n \"icon--resource\": \"neos-RjvLTG_icon--resource\",\n \"icon--color-error\": \"neos-RjvLTG_icon--color-error\",\n \"icon--huge\": \"neos-RjvLTG_icon--huge\",\n \"icon--small\": \"neos-RjvLTG_icon--small\",\n \"icon--color-primaryBlue\": \"neos-RjvLTG_icon--color-primaryBlue\",\n \"icon--paddedLeft\": \"neos-RjvLTG_icon--paddedLeft\"\n};\n// src/Icon/index.ts\nvar Icon_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).icon, style_module_default)((0, _iconDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./icon\":\"k8URY\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/PA6G4QJ6.css\":\"dApJq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"k8URY\":[function(require,module,exports) {\n// src/Icon/icon.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>icon_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>(0, _iconDefaultProps.defaultProps));\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _fontAwesomeIcon = require(\"./fontAwesomeIcon\");\nvar _fontAwesomeIconDefault = parcelHelpers.interopDefault(_fontAwesomeIcon);\nvar _resourceIcon = require(\"./resourceIcon\");\nvar _resourceIconDefault = parcelHelpers.interopDefault(_resourceIcon);\nvar _iconDefaultProps = require(\"./iconDefaultProps\");\nvar Icon = class extends (0, _react.PureComponent) {\n render() {\n const { icon } = this.props;\n if (icon && icon.substr(0, 11) === \"resource://\") return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _resourceIconDefault.default), {\n ...this.props\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _fontAwesomeIconDefault.default), {\n ...this.props\n });\n }\n};\nIcon.defaultProps = (0, _iconDefaultProps.defaultProps);\nvar icon_default = Icon;\n\n},{\"react\":\"6uln9\",\"./fontAwesomeIcon\":\"8xUpA\",\"./resourceIcon\":\"iajEY\",\"./iconDefaultProps\":\"a03TF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8xUpA\":[function(require,module,exports) {\n// src/Icon/fontAwesomeIcon.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>fontAwesomeIcon_default);\nvar _reactFontawesome = require(\"@fortawesome/react-fontawesome\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _iconDefaultProps = require(\"./iconDefaultProps\");\nvar _mapper = require(\"./mapper\");\nvar _mapperDefault = parcelHelpers.interopDefault(_mapper);\nvar FontAwesomeIcon = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.getIconProp = (icon)=>{\n const mappedIcon = (0, _mapperDefault.default)(icon);\n const iconArray = mappedIcon.split(\" \");\n if (iconArray.length > 1) {\n const prefix2 = iconArray[0];\n const processedIcon = iconArray[1].startsWith(\"fa-\") ? iconArray[1].substr(3) : iconArray[1];\n return [\n prefix2,\n processedIcon\n ];\n }\n const prefix = \"fas\";\n return [\n prefix,\n mappedIcon\n ];\n };\n }\n render() {\n const { padded , theme , label , icon , className , color , ...rest } = this.props;\n const iconClassName = icon;\n const classNames = (0, _classnamesDefault.default)(theme.icon, iconClassName, className, {\n [theme[\"icon--paddedLeft\"]]: padded === \"left\",\n [theme[\"icon--paddedRight\"]]: padded === \"right\",\n [theme[\"icon--color-warn\"]]: color === \"warn\",\n [theme[\"icon--color-error\"]]: color === \"error\",\n [theme[\"icon--color-primaryBlue\"]]: color === \"primaryBlue\"\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _reactFontawesome.FontAwesomeIcon), {\n icon: icon ? this.getIconProp(icon) : \"question\",\n \"aria-label\": label,\n className: classNames,\n ...rest\n });\n }\n};\nFontAwesomeIcon.defaultProps = (0, _iconDefaultProps.defaultProps);\nvar fontAwesomeIcon_default = FontAwesomeIcon;\n\n},{\"@fortawesome/react-fontawesome\":\"9JWA5\",\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"./iconDefaultProps\":\"a03TF\",\"./mapper\":\"f5hp5\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9JWA5\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"FontAwesomeIcon\", ()=>FontAwesomeIcon);\nvar _fontawesomeSvgCore = require(\"@fortawesome/fontawesome-svg-core\");\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function(obj) {\n return typeof obj;\n } : function(obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n// Get CSS class list from a props object\nfunction classList(props) {\n var _classes;\n var beat = props.beat, fade = props.fade, beatFade = props.beatFade, bounce = props.bounce, shake = props.shake, flash = props.flash, spin = props.spin, spinPulse = props.spinPulse, spinReverse = props.spinReverse, pulse = props.pulse, fixedWidth = props.fixedWidth, inverse = props.inverse, border = props.border, listItem = props.listItem, flip = props.flip, size = props.size, rotation = props.rotation, pull = props.pull; // map of CSS class names to properties\n var classes = (_classes = {\n \"fa-beat\": beat,\n \"fa-fade\": fade,\n \"fa-beat-fade\": beatFade,\n \"fa-bounce\": bounce,\n \"fa-shake\": shake,\n \"fa-flash\": flash,\n \"fa-spin\": spin,\n \"fa-spin-reverse\": spinReverse,\n \"fa-spin-pulse\": spinPulse,\n \"fa-pulse\": pulse,\n \"fa-fw\": fixedWidth,\n \"fa-inverse\": inverse,\n \"fa-border\": border,\n \"fa-li\": listItem,\n \"fa-flip\": flip === true,\n \"fa-flip-horizontal\": flip === \"horizontal\" || flip === \"both\",\n \"fa-flip-vertical\": flip === \"vertical\" || flip === \"both\"\n }, _defineProperty(_classes, \"fa-\".concat(size), typeof size !== \"undefined\" && size !== null), _defineProperty(_classes, \"fa-rotate-\".concat(rotation), typeof rotation !== \"undefined\" && rotation !== null && rotation !== 0), _defineProperty(_classes, \"fa-pull-\".concat(pull), typeof pull !== \"undefined\" && pull !== null), _defineProperty(_classes, \"fa-swap-opacity\", props.swapOpacity), _classes); // map over all the keys in the classes object\n // return an array of the keys where the value for the key is not null\n return Object.keys(classes).map(function(key) {\n return classes[key] ? key : null;\n }).filter(function(key) {\n return key;\n });\n}\n// Camelize taken from humps\n// humps is copyright © 2012+ Dom Christie\n// Released under the MIT license.\n// Performant way to determine if object coerces to a number\nfunction _isNumerical(obj) {\n obj = obj - 0; // eslint-disable-next-line no-self-compare\n return obj === obj;\n}\nfunction camelize(string) {\n if (_isNumerical(string)) return string;\n // eslint-disable-next-line no-useless-escape\n string = string.replace(/[\\-_\\s]+(.)?/g, function(match, chr) {\n return chr ? chr.toUpperCase() : \"\";\n }); // Ensure 1st char is always lowercase\n return string.substr(0, 1).toLowerCase() + string.substr(1);\n}\nvar _excluded$1 = [\n \"style\"\n];\nfunction capitalize(val) {\n return val.charAt(0).toUpperCase() + val.slice(1);\n}\nfunction styleToObject(style) {\n return style.split(\";\").map(function(s) {\n return s.trim();\n }).filter(function(s) {\n return s;\n }).reduce(function(acc, pair) {\n var i = pair.indexOf(\":\");\n var prop = camelize(pair.slice(0, i));\n var value = pair.slice(i + 1).trim();\n prop.startsWith(\"webkit\") ? acc[capitalize(prop)] = value : acc[prop] = value;\n return acc;\n }, {});\n}\nfunction convert(createElement, element) {\n var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n if (typeof element === \"string\") return element;\n var children = (element.children || []).map(function(child) {\n return convert(createElement, child);\n });\n /* eslint-disable dot-notation */ var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {\n var val = element.attributes[key];\n switch(key){\n case \"class\":\n acc.attrs[\"className\"] = val;\n delete element.attributes[\"class\"];\n break;\n case \"style\":\n acc.attrs[\"style\"] = styleToObject(val);\n break;\n default:\n if (key.indexOf(\"aria-\") === 0 || key.indexOf(\"data-\") === 0) acc.attrs[key.toLowerCase()] = val;\n else acc.attrs[camelize(key)] = val;\n }\n return acc;\n }, {\n attrs: {}\n });\n var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties(extraProps, _excluded$1);\n mixins.attrs[\"style\"] = _objectSpread2(_objectSpread2({}, mixins.attrs[\"style\"]), existingStyle);\n /* eslint-enable */ return createElement.apply(void 0, [\n element.tag,\n _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)\n ].concat(_toConsumableArray(children)));\n}\nvar PRODUCTION = false;\ntry {\n PRODUCTION = true;\n} catch (e) {}\nfunction log() {\n if (!PRODUCTION && console && typeof console.error === \"function\") {\n var _console;\n (_console = console).error.apply(_console, arguments);\n }\n}\nfunction normalizeIconArgs(icon) {\n // this has everything that it needs to be rendered which means it was probably imported\n // directly from an icon svg package\n if (icon && _typeof(icon) === \"object\" && icon.prefix && icon.iconName && icon.icon) return icon;\n if ((0, _fontawesomeSvgCore.parse).icon) return (0, _fontawesomeSvgCore.parse).icon(icon);\n // if the icon is null, there's nothing to do\n if (icon === null) return null;\n // if the icon is an object and has a prefix and an icon name, return it\n if (icon && _typeof(icon) === \"object\" && icon.prefix && icon.iconName) return icon;\n // if it's an array with length of two\n if (Array.isArray(icon) && icon.length === 2) // use the first item as prefix, second as icon name\n return {\n prefix: icon[0],\n iconName: icon[1]\n };\n // if it's a string, use it as the icon name\n if (typeof icon === \"string\") return {\n prefix: \"fas\",\n iconName: icon\n };\n}\n// creates an object with a key of key\n// and a value of value\n// if certain conditions are met\nfunction objectWithKey(key, value) {\n // if the value is a non-empty array\n // or it's not an array but it is truthy\n // then create the object with the key and the value\n // if not, return an empty array\n return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};\n}\nvar _excluded = [\n \"forwardedRef\"\n];\nfunction FontAwesomeIcon(_ref) {\n var forwardedRef = _ref.forwardedRef, props = _objectWithoutProperties(_ref, _excluded);\n var iconArgs = props.icon, maskArgs = props.mask, symbol = props.symbol, className = props.className, title = props.title, titleId = props.titleId, maskId = props.maskId;\n var iconLookup = normalizeIconArgs(iconArgs);\n var classes = objectWithKey(\"classes\", [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(\" \"))));\n var transform = objectWithKey(\"transform\", typeof props.transform === \"string\" ? (0, _fontawesomeSvgCore.parse).transform(props.transform) : props.transform);\n var mask = objectWithKey(\"mask\", normalizeIconArgs(maskArgs));\n var renderedIcon = (0, _fontawesomeSvgCore.icon)(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {\n symbol: symbol,\n title: title,\n titleId: titleId,\n maskId: maskId\n }));\n if (!renderedIcon) {\n log(\"Could not find icon\", iconLookup);\n return null;\n }\n var abstract = renderedIcon.abstract;\n var extraProps = {\n ref: forwardedRef\n };\n Object.keys(props).forEach(function(key) {\n // eslint-disable-next-line no-prototype-builtins\n if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) extraProps[key] = props[key];\n });\n return convertCurry(abstract[0], extraProps);\n}\nFontAwesomeIcon.displayName = \"FontAwesomeIcon\";\nFontAwesomeIcon.propTypes = {\n beat: (0, _propTypesDefault.default).bool,\n border: (0, _propTypesDefault.default).bool,\n beatFade: (0, _propTypesDefault.default).bool,\n bounce: (0, _propTypesDefault.default).bool,\n className: (0, _propTypesDefault.default).string,\n fade: (0, _propTypesDefault.default).bool,\n flash: (0, _propTypesDefault.default).bool,\n mask: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).object,\n (0, _propTypesDefault.default).array,\n (0, _propTypesDefault.default).string\n ]),\n maskId: (0, _propTypesDefault.default).string,\n fixedWidth: (0, _propTypesDefault.default).bool,\n inverse: (0, _propTypesDefault.default).bool,\n flip: (0, _propTypesDefault.default).oneOf([\n true,\n false,\n \"horizontal\",\n \"vertical\",\n \"both\"\n ]),\n icon: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).object,\n (0, _propTypesDefault.default).array,\n (0, _propTypesDefault.default).string\n ]),\n listItem: (0, _propTypesDefault.default).bool,\n pull: (0, _propTypesDefault.default).oneOf([\n \"right\",\n \"left\"\n ]),\n pulse: (0, _propTypesDefault.default).bool,\n rotation: (0, _propTypesDefault.default).oneOf([\n 0,\n 90,\n 180,\n 270\n ]),\n shake: (0, _propTypesDefault.default).bool,\n size: (0, _propTypesDefault.default).oneOf([\n \"2xs\",\n \"xs\",\n \"sm\",\n \"lg\",\n \"xl\",\n \"2xl\",\n \"1x\",\n \"2x\",\n \"3x\",\n \"4x\",\n \"5x\",\n \"6x\",\n \"7x\",\n \"8x\",\n \"9x\",\n \"10x\"\n ]),\n spin: (0, _propTypesDefault.default).bool,\n spinPulse: (0, _propTypesDefault.default).bool,\n spinReverse: (0, _propTypesDefault.default).bool,\n symbol: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).bool,\n (0, _propTypesDefault.default).string\n ]),\n title: (0, _propTypesDefault.default).string,\n titleId: (0, _propTypesDefault.default).string,\n transform: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).string,\n (0, _propTypesDefault.default).object\n ]),\n swapOpacity: (0, _propTypesDefault.default).bool\n};\nFontAwesomeIcon.defaultProps = {\n border: false,\n className: \"\",\n mask: null,\n maskId: null,\n fixedWidth: false,\n inverse: false,\n flip: false,\n icon: null,\n listItem: false,\n pull: null,\n pulse: false,\n rotation: null,\n size: null,\n spin: false,\n spinPulse: false,\n spinReverse: false,\n beat: false,\n fade: false,\n beatFade: false,\n bounce: false,\n shake: false,\n symbol: false,\n title: \"\",\n titleId: null,\n transform: null,\n swapOpacity: false\n};\nvar convertCurry = convert.bind(null, (0, _reactDefault.default).createElement);\n\n},{\"@fortawesome/fontawesome-svg-core\":\"hWDUB\",\"prop-types\":\"6FKs7\",\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hWDUB\":[function(require,module,exports) {\n/*!\n * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"icon\", ()=>icon);\nparcelHelpers.export(exports, \"noAuto\", ()=>noAuto);\nparcelHelpers.export(exports, \"config\", ()=>config);\nparcelHelpers.export(exports, \"toHtml\", ()=>toHtml);\nparcelHelpers.export(exports, \"layer\", ()=>layer);\nparcelHelpers.export(exports, \"text\", ()=>text);\nparcelHelpers.export(exports, \"counter\", ()=>counter);\nparcelHelpers.export(exports, \"library\", ()=>library);\nparcelHelpers.export(exports, \"dom\", ()=>dom);\nparcelHelpers.export(exports, \"parse\", ()=>parse);\nparcelHelpers.export(exports, \"findIconDefinition\", ()=>findIconDefinition);\nvar global = arguments[3];\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function(obj) {\n return typeof obj;\n };\n else _typeof = function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n ownKeys.forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n }\n return target;\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for(var i = 0, arr2 = new Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];\n return arr2;\n }\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\nvar noop = function noop() {};\nvar _WINDOW = {};\nvar _DOCUMENT = {};\nvar _MUTATION_OBSERVER = null;\nvar _PERFORMANCE = {\n mark: noop,\n measure: noop\n};\ntry {\n if (typeof window !== \"undefined\") _WINDOW = window;\n if (typeof document !== \"undefined\") _DOCUMENT = document;\n if (typeof MutationObserver !== \"undefined\") _MUTATION_OBSERVER = MutationObserver;\n if (typeof performance !== \"undefined\") _PERFORMANCE = performance;\n} catch (e) {}\nvar _ref = _WINDOW.navigator || {}, _ref$userAgent = _ref.userAgent, userAgent = _ref$userAgent === void 0 ? \"\" : _ref$userAgent;\nvar WINDOW = _WINDOW;\nvar DOCUMENT = _DOCUMENT;\nvar MUTATION_OBSERVER = _MUTATION_OBSERVER;\nvar PERFORMANCE = _PERFORMANCE;\nvar IS_BROWSER = !!WINDOW.document;\nvar IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === \"function\" && typeof DOCUMENT.createElement === \"function\";\nvar IS_IE = ~userAgent.indexOf(\"MSIE\") || ~userAgent.indexOf(\"Trident/\");\nvar NAMESPACE_IDENTIFIER = \"___FONT_AWESOME___\";\nvar UNITS_IN_GRID = 16;\nvar DEFAULT_FAMILY_PREFIX = \"fa\";\nvar DEFAULT_REPLACEMENT_CLASS = \"svg-inline--fa\";\nvar DATA_FA_I2SVG = \"data-fa-i2svg\";\nvar DATA_FA_PSEUDO_ELEMENT = \"data-fa-pseudo-element\";\nvar DATA_FA_PSEUDO_ELEMENT_PENDING = \"data-fa-pseudo-element-pending\";\nvar DATA_PREFIX = \"data-prefix\";\nvar DATA_ICON = \"data-icon\";\nvar HTML_CLASS_I2SVG_BASE_CLASS = \"fontawesome-i2svg\";\nvar MUTATION_APPROACH_ASYNC = \"async\";\nvar TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = [\n \"HTML\",\n \"HEAD\",\n \"STYLE\",\n \"SCRIPT\"\n];\nvar PRODUCTION = function() {\n try {\n return true;\n } catch (e) {\n return false;\n }\n}();\nvar PREFIX_TO_STYLE = {\n \"fas\": \"solid\",\n \"far\": \"regular\",\n \"fal\": \"light\",\n \"fad\": \"duotone\",\n \"fab\": \"brands\",\n \"fak\": \"kit\",\n \"fa\": \"solid\"\n};\nvar STYLE_TO_PREFIX = {\n \"solid\": \"fas\",\n \"regular\": \"far\",\n \"light\": \"fal\",\n \"duotone\": \"fad\",\n \"brands\": \"fab\",\n \"kit\": \"fak\"\n};\nvar LAYERS_TEXT_CLASSNAME = \"fa-layers-text\";\nvar FONT_FAMILY_PATTERN = /Font Awesome ([5 ]*)(Solid|Regular|Light|Duotone|Brands|Free|Pro|Kit).*/i; // TODO: do we need to handle font-weight for kit SVG pseudo-elements?\nvar FONT_WEIGHT_TO_PREFIX = {\n \"900\": \"fas\",\n \"400\": \"far\",\n \"normal\": \"far\",\n \"300\": \"fal\"\n};\nvar oneToTen = [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10\n];\nvar oneToTwenty = oneToTen.concat([\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20\n]);\nvar ATTRIBUTES_WATCHED_FOR_MUTATION = [\n \"class\",\n \"data-prefix\",\n \"data-icon\",\n \"data-fa-transform\",\n \"data-fa-mask\"\n];\nvar DUOTONE_CLASSES = {\n GROUP: \"group\",\n SWAP_OPACITY: \"swap-opacity\",\n PRIMARY: \"primary\",\n SECONDARY: \"secondary\"\n};\nvar RESERVED_CLASSES = [\n \"xs\",\n \"sm\",\n \"lg\",\n \"fw\",\n \"ul\",\n \"li\",\n \"border\",\n \"pull-left\",\n \"pull-right\",\n \"spin\",\n \"pulse\",\n \"rotate-90\",\n \"rotate-180\",\n \"rotate-270\",\n \"flip-horizontal\",\n \"flip-vertical\",\n \"flip-both\",\n \"stack\",\n \"stack-1x\",\n \"stack-2x\",\n \"inverse\",\n \"layers\",\n \"layers-text\",\n \"layers-counter\",\n DUOTONE_CLASSES.GROUP,\n DUOTONE_CLASSES.SWAP_OPACITY,\n DUOTONE_CLASSES.PRIMARY,\n DUOTONE_CLASSES.SECONDARY\n].concat(oneToTen.map(function(n) {\n return \"\".concat(n, \"x\");\n})).concat(oneToTwenty.map(function(n) {\n return \"w-\".concat(n);\n}));\nvar initial = WINDOW.FontAwesomeConfig || {};\nfunction getAttrConfig(attr) {\n var element = DOCUMENT.querySelector(\"script[\" + attr + \"]\");\n if (element) return element.getAttribute(attr);\n}\nfunction coerce(val) {\n // Getting an empty string will occur if the attribute is set on the HTML tag but without a value\n // We'll assume that this is an indication that it should be toggled to true\n // For example \n if (val === \"\") return true;\n if (val === \"false\") return false;\n if (val === \"true\") return true;\n return val;\n}\nif (DOCUMENT && typeof DOCUMENT.querySelector === \"function\") {\n var attrs = [\n [\n \"data-family-prefix\",\n \"familyPrefix\"\n ],\n [\n \"data-replacement-class\",\n \"replacementClass\"\n ],\n [\n \"data-auto-replace-svg\",\n \"autoReplaceSvg\"\n ],\n [\n \"data-auto-add-css\",\n \"autoAddCss\"\n ],\n [\n \"data-auto-a11y\",\n \"autoA11y\"\n ],\n [\n \"data-search-pseudo-elements\",\n \"searchPseudoElements\"\n ],\n [\n \"data-observe-mutations\",\n \"observeMutations\"\n ],\n [\n \"data-mutate-approach\",\n \"mutateApproach\"\n ],\n [\n \"data-keep-original-source\",\n \"keepOriginalSource\"\n ],\n [\n \"data-measure-performance\",\n \"measurePerformance\"\n ],\n [\n \"data-show-missing-icons\",\n \"showMissingIcons\"\n ]\n ];\n attrs.forEach(function(_ref) {\n var _ref2 = _slicedToArray(_ref, 2), attr = _ref2[0], key = _ref2[1];\n var val = coerce(getAttrConfig(attr));\n if (val !== undefined && val !== null) initial[key] = val;\n });\n}\nvar _default = {\n familyPrefix: DEFAULT_FAMILY_PREFIX,\n replacementClass: DEFAULT_REPLACEMENT_CLASS,\n autoReplaceSvg: true,\n autoAddCss: true,\n autoA11y: true,\n searchPseudoElements: false,\n observeMutations: true,\n mutateApproach: \"async\",\n keepOriginalSource: true,\n measurePerformance: false,\n showMissingIcons: true\n};\nvar _config = _objectSpread({}, _default, initial);\nif (!_config.autoReplaceSvg) _config.observeMutations = false;\nvar config = _objectSpread({}, _config);\nWINDOW.FontAwesomeConfig = config;\nvar w = WINDOW || {};\nif (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};\nif (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};\nif (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};\nif (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];\nvar namespace = w[NAMESPACE_IDENTIFIER];\nvar functions = [];\nvar listener = function listener() {\n DOCUMENT.removeEventListener(\"DOMContentLoaded\", listener);\n loaded = 1;\n functions.map(function(fn) {\n return fn();\n });\n};\nvar loaded = false;\nif (IS_DOM) {\n loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);\n if (!loaded) DOCUMENT.addEventListener(\"DOMContentLoaded\", listener);\n}\nfunction domready(fn) {\n if (!IS_DOM) return;\n loaded ? setTimeout(fn, 0) : functions.push(fn);\n}\nvar PENDING = \"pending\";\nvar SETTLED = \"settled\";\nvar FULFILLED = \"fulfilled\";\nvar REJECTED = \"rejected\";\nvar NOOP = function NOOP() {};\nvar isNode = typeof global !== \"undefined\" && typeof global.process !== \"undefined\" && typeof global.process.emit === \"function\";\nvar asyncSetTimer = typeof setImmediate === \"undefined\" ? setTimeout : setImmediate;\nvar asyncQueue = [];\nvar asyncTimer;\nfunction asyncFlush() {\n // run promise callbacks\n for(var i = 0; i < asyncQueue.length; i++)asyncQueue[i][0](asyncQueue[i][1]);\n // reset async asyncQueue\n asyncQueue = [];\n asyncTimer = false;\n}\nfunction asyncCall(callback, arg) {\n asyncQueue.push([\n callback,\n arg\n ]);\n if (!asyncTimer) {\n asyncTimer = true;\n asyncSetTimer(asyncFlush, 0);\n }\n}\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n try {\n resolver(resolvePromise, rejectPromise);\n } catch (e) {\n rejectPromise(e);\n }\n}\nfunction invokeCallback(subscriber) {\n var owner = subscriber.owner;\n var settled = owner._state;\n var value = owner._data;\n var callback = subscriber[settled];\n var promise = subscriber.then;\n if (typeof callback === \"function\") {\n settled = FULFILLED;\n try {\n value = callback(value);\n } catch (e) {\n reject(promise, e);\n }\n }\n if (!handleThenable(promise, value)) {\n if (settled === FULFILLED) resolve(promise, value);\n if (settled === REJECTED) reject(promise, value);\n }\n}\nfunction handleThenable(promise, value) {\n var resolved;\n try {\n if (promise === value) throw new TypeError(\"A promises callback cannot return that same promise.\");\n if (value && (typeof value === \"function\" || _typeof(value) === \"object\")) {\n // then should be retrieved only once\n var then = value.then;\n if (typeof then === \"function\") {\n then.call(value, function(val) {\n if (!resolved) {\n resolved = true;\n if (value === val) fulfill(promise, val);\n else resolve(promise, val);\n }\n }, function(reason) {\n if (!resolved) {\n resolved = true;\n reject(promise, reason);\n }\n });\n return true;\n }\n }\n } catch (e) {\n if (!resolved) reject(promise, e);\n return true;\n }\n return false;\n}\nfunction resolve(promise, value) {\n if (promise === value || !handleThenable(promise, value)) fulfill(promise, value);\n}\nfunction fulfill(promise, value) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = value;\n asyncCall(publishFulfillment, promise);\n }\n}\nfunction reject(promise, reason) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = reason;\n asyncCall(publishRejection, promise);\n }\n}\nfunction publish(promise) {\n promise._then = promise._then.forEach(invokeCallback);\n}\nfunction publishFulfillment(promise) {\n promise._state = FULFILLED;\n publish(promise);\n}\nfunction publishRejection(promise) {\n promise._state = REJECTED;\n publish(promise);\n if (!promise._handled && isNode) global.process.emit(\"unhandledRejection\", promise._data, promise);\n}\nfunction notifyRejectionHandled(promise) {\n global.process.emit(\"rejectionHandled\", promise);\n}\n/**\n * @class\n */ function P(resolver) {\n if (typeof resolver !== \"function\") throw new TypeError(\"Promise resolver \" + resolver + \" is not a function\");\n if (this instanceof P === false) throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n this._then = [];\n invokeResolver(resolver, this);\n}\nP.prototype = {\n constructor: P,\n _state: PENDING,\n _then: null,\n _data: undefined,\n _handled: false,\n then: function then(onFulfillment, onRejection) {\n var subscriber = {\n owner: this,\n then: new this.constructor(NOOP),\n fulfilled: onFulfillment,\n rejected: onRejection\n };\n if ((onRejection || onFulfillment) && !this._handled) {\n this._handled = true;\n if (this._state === REJECTED && isNode) asyncCall(notifyRejectionHandled, this);\n }\n if (this._state === FULFILLED || this._state === REJECTED) // already resolved, call callback async\n asyncCall(invokeCallback, subscriber);\n else // subscribe\n this._then.push(subscriber);\n return subscriber.then;\n },\n catch: function _catch(onRejection) {\n return this.then(null, onRejection);\n }\n};\nP.all = function(promises) {\n if (!Array.isArray(promises)) throw new TypeError(\"You must pass an array to Promise.all().\");\n return new P(function(resolve, reject) {\n var results = [];\n var remaining = 0;\n function resolver(index) {\n remaining++;\n return function(value) {\n results[index] = value;\n if (!--remaining) resolve(results);\n };\n }\n for(var i = 0, promise; i < promises.length; i++){\n promise = promises[i];\n if (promise && typeof promise.then === \"function\") promise.then(resolver(i), reject);\n else results[i] = promise;\n }\n if (!remaining) resolve(results);\n });\n};\nP.race = function(promises) {\n if (!Array.isArray(promises)) throw new TypeError(\"You must pass an array to Promise.race().\");\n return new P(function(resolve, reject) {\n for(var i = 0, promise; i < promises.length; i++){\n promise = promises[i];\n if (promise && typeof promise.then === \"function\") promise.then(resolve, reject);\n else resolve(promise);\n }\n });\n};\nP.resolve = function(value) {\n if (value && _typeof(value) === \"object\" && value.constructor === P) return value;\n return new P(function(resolve) {\n resolve(value);\n });\n};\nP.reject = function(reason) {\n return new P(function(resolve, reject) {\n reject(reason);\n });\n};\nvar picked = typeof Promise === \"function\" ? Promise : P;\nvar d = UNITS_IN_GRID;\nvar meaninglessTransform = {\n size: 16,\n x: 0,\n y: 0,\n rotate: 0,\n flipX: false,\n flipY: false\n};\nfunction isReserved(name) {\n return ~RESERVED_CLASSES.indexOf(name);\n}\nfunction insertCss(css) {\n if (!css || !IS_DOM) return;\n var style = DOCUMENT.createElement(\"style\");\n style.setAttribute(\"type\", \"text/css\");\n style.innerHTML = css;\n var headChildren = DOCUMENT.head.childNodes;\n var beforeChild = null;\n for(var i = headChildren.length - 1; i > -1; i--){\n var child = headChildren[i];\n var tagName = (child.tagName || \"\").toUpperCase();\n if ([\n \"STYLE\",\n \"LINK\"\n ].indexOf(tagName) > -1) beforeChild = child;\n }\n DOCUMENT.head.insertBefore(style, beforeChild);\n return css;\n}\nvar idPool = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\nfunction nextUniqueId() {\n var size = 12;\n var id = \"\";\n while(size-- > 0)id += idPool[Math.random() * 62 | 0];\n return id;\n}\nfunction toArray(obj) {\n var array = [];\n for(var i = (obj || []).length >>> 0; i--;)array[i] = obj[i];\n return array;\n}\nfunction classArray(node) {\n if (node.classList) return toArray(node.classList);\n else return (node.getAttribute(\"class\") || \"\").split(\" \").filter(function(i) {\n return i;\n });\n}\nfunction getIconName(familyPrefix, cls) {\n var parts = cls.split(\"-\");\n var prefix = parts[0];\n var iconName = parts.slice(1).join(\"-\");\n if (prefix === familyPrefix && iconName !== \"\" && !isReserved(iconName)) return iconName;\n else return null;\n}\nfunction htmlEscape(str) {\n return \"\".concat(str).replace(/&/g, \"&\").replace(/\"/g, \""\").replace(/'/g, \"'\").replace(//g, \">\");\n}\nfunction joinAttributes(attributes) {\n return Object.keys(attributes || {}).reduce(function(acc, attributeName) {\n return acc + \"\".concat(attributeName, '=\"').concat(htmlEscape(attributes[attributeName]), '\" ');\n }, \"\").trim();\n}\nfunction joinStyles(styles) {\n return Object.keys(styles || {}).reduce(function(acc, styleName) {\n return acc + \"\".concat(styleName, \": \").concat(styles[styleName], \";\");\n }, \"\");\n}\nfunction transformIsMeaningful(transform) {\n return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;\n}\nfunction transformForSvg(_ref) {\n var transform = _ref.transform, containerWidth = _ref.containerWidth, iconWidth = _ref.iconWidth;\n var outer = {\n transform: \"translate(\".concat(containerWidth / 2, \" 256)\")\n };\n var innerTranslate = \"translate(\".concat(transform.x * 32, \", \").concat(transform.y * 32, \") \");\n var innerScale = \"scale(\".concat(transform.size / 16 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / 16 * (transform.flipY ? -1 : 1), \") \");\n var innerRotate = \"rotate(\".concat(transform.rotate, \" 0 0)\");\n var inner = {\n transform: \"\".concat(innerTranslate, \" \").concat(innerScale, \" \").concat(innerRotate)\n };\n var path = {\n transform: \"translate(\".concat(iconWidth / 2 * -1, \" -256)\")\n };\n return {\n outer: outer,\n inner: inner,\n path: path\n };\n}\nfunction transformForCss(_ref2) {\n var transform = _ref2.transform, _ref2$width = _ref2.width, width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width, _ref2$height = _ref2.height, height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height, _ref2$startCentered = _ref2.startCentered, startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;\n var val = \"\";\n if (startCentered && IS_IE) val += \"translate(\".concat(transform.x / d - width / 2, \"em, \").concat(transform.y / d - height / 2, \"em) \");\n else if (startCentered) val += \"translate(calc(-50% + \".concat(transform.x / d, \"em), calc(-50% + \").concat(transform.y / d, \"em)) \");\n else val += \"translate(\".concat(transform.x / d, \"em, \").concat(transform.y / d, \"em) \");\n val += \"scale(\".concat(transform.size / d * (transform.flipX ? -1 : 1), \", \").concat(transform.size / d * (transform.flipY ? -1 : 1), \") \");\n val += \"rotate(\".concat(transform.rotate, \"deg) \");\n return val;\n}\nvar ALL_SPACE = {\n x: 0,\n y: 0,\n width: \"100%\",\n height: \"100%\"\n};\nfunction fillBlack(abstract) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (abstract.attributes && (abstract.attributes.fill || force)) abstract.attributes.fill = \"black\";\n return abstract;\n}\nfunction deGroup(abstract) {\n if (abstract.tag === \"g\") return abstract.children;\n else return [\n abstract\n ];\n}\nfunction makeIconMasking(_ref) {\n var children = _ref.children, attributes = _ref.attributes, main = _ref.main, mask = _ref.mask, explicitMaskId = _ref.maskId, transform = _ref.transform;\n var mainWidth = main.width, mainPath = main.icon;\n var maskWidth = mask.width, maskPath = mask.icon;\n var trans = transformForSvg({\n transform: transform,\n containerWidth: maskWidth,\n iconWidth: mainWidth\n });\n var maskRect = {\n tag: \"rect\",\n attributes: _objectSpread({}, ALL_SPACE, {\n fill: \"white\"\n })\n };\n var maskInnerGroupChildrenMixin = mainPath.children ? {\n children: mainPath.children.map(fillBlack)\n } : {};\n var maskInnerGroup = {\n tag: \"g\",\n attributes: _objectSpread({}, trans.inner),\n children: [\n fillBlack(_objectSpread({\n tag: mainPath.tag,\n attributes: _objectSpread({}, mainPath.attributes, trans.path)\n }, maskInnerGroupChildrenMixin))\n ]\n };\n var maskOuterGroup = {\n tag: \"g\",\n attributes: _objectSpread({}, trans.outer),\n children: [\n maskInnerGroup\n ]\n };\n var maskId = \"mask-\".concat(explicitMaskId || nextUniqueId());\n var clipId = \"clip-\".concat(explicitMaskId || nextUniqueId());\n var maskTag = {\n tag: \"mask\",\n attributes: _objectSpread({}, ALL_SPACE, {\n id: maskId,\n maskUnits: \"userSpaceOnUse\",\n maskContentUnits: \"userSpaceOnUse\"\n }),\n children: [\n maskRect,\n maskOuterGroup\n ]\n };\n var defs = {\n tag: \"defs\",\n children: [\n {\n tag: \"clipPath\",\n attributes: {\n id: clipId\n },\n children: deGroup(maskPath)\n },\n maskTag\n ]\n };\n children.push(defs, {\n tag: \"rect\",\n attributes: _objectSpread({\n fill: \"currentColor\",\n \"clip-path\": \"url(#\".concat(clipId, \")\"),\n mask: \"url(#\".concat(maskId, \")\")\n }, ALL_SPACE)\n });\n return {\n children: children,\n attributes: attributes\n };\n}\nfunction makeIconStandard(_ref) {\n var children = _ref.children, attributes = _ref.attributes, main = _ref.main, transform = _ref.transform, styles = _ref.styles;\n var styleString = joinStyles(styles);\n if (styleString.length > 0) attributes[\"style\"] = styleString;\n if (transformIsMeaningful(transform)) {\n var trans = transformForSvg({\n transform: transform,\n containerWidth: main.width,\n iconWidth: main.width\n });\n children.push({\n tag: \"g\",\n attributes: _objectSpread({}, trans.outer),\n children: [\n {\n tag: \"g\",\n attributes: _objectSpread({}, trans.inner),\n children: [\n {\n tag: main.icon.tag,\n children: main.icon.children,\n attributes: _objectSpread({}, main.icon.attributes, trans.path)\n }\n ]\n }\n ]\n });\n } else children.push(main.icon);\n return {\n children: children,\n attributes: attributes\n };\n}\nfunction asIcon(_ref) {\n var children = _ref.children, main = _ref.main, mask = _ref.mask, attributes = _ref.attributes, styles = _ref.styles, transform = _ref.transform;\n if (transformIsMeaningful(transform) && main.found && !mask.found) {\n var width = main.width, height = main.height;\n var offset = {\n x: width / height / 2,\n y: 0.5\n };\n attributes[\"style\"] = joinStyles(_objectSpread({}, styles, {\n \"transform-origin\": \"\".concat(offset.x + transform.x / 16, \"em \").concat(offset.y + transform.y / 16, \"em\")\n }));\n }\n return [\n {\n tag: \"svg\",\n attributes: attributes,\n children: children\n }\n ];\n}\nfunction asSymbol(_ref) {\n var prefix = _ref.prefix, iconName = _ref.iconName, children = _ref.children, attributes = _ref.attributes, symbol = _ref.symbol;\n var id = symbol === true ? \"\".concat(prefix, \"-\").concat(config.familyPrefix, \"-\").concat(iconName) : symbol;\n return [\n {\n tag: \"svg\",\n attributes: {\n style: \"display: none;\"\n },\n children: [\n {\n tag: \"symbol\",\n attributes: _objectSpread({}, attributes, {\n id: id\n }),\n children: children\n }\n ]\n }\n ];\n}\nfunction makeInlineSvgAbstract(params) {\n var _params$icons = params.icons, main = _params$icons.main, mask = _params$icons.mask, prefix = params.prefix, iconName = params.iconName, transform = params.transform, symbol = params.symbol, title = params.title, maskId = params.maskId, titleId = params.titleId, extra = params.extra, _params$watchable = params.watchable, watchable = _params$watchable === void 0 ? false : _params$watchable;\n var _ref = mask.found ? mask : main, width = _ref.width, height = _ref.height;\n var isUploadedIcon = prefix === \"fak\";\n var widthClass = isUploadedIcon ? \"\" : \"fa-w-\".concat(Math.ceil(width / height * 16));\n var attrClass = [\n config.replacementClass,\n iconName ? \"\".concat(config.familyPrefix, \"-\").concat(iconName) : \"\",\n widthClass\n ].filter(function(c) {\n return extra.classes.indexOf(c) === -1;\n }).filter(function(c) {\n return c !== \"\" || !!c;\n }).concat(extra.classes).join(\" \");\n var content = {\n children: [],\n attributes: _objectSpread({}, extra.attributes, {\n \"data-prefix\": prefix,\n \"data-icon\": iconName,\n \"class\": attrClass,\n \"role\": extra.attributes.role || \"img\",\n \"xmlns\": \"http://www.w3.org/2000/svg\",\n \"viewBox\": \"0 0 \".concat(width, \" \").concat(height)\n })\n };\n var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf(\"fa-fw\") ? {\n width: \"\".concat(width / height * 1, \"em\")\n } : {};\n if (watchable) content.attributes[DATA_FA_I2SVG] = \"\";\n if (title) content.children.push({\n tag: \"title\",\n attributes: {\n id: content.attributes[\"aria-labelledby\"] || \"title-\".concat(titleId || nextUniqueId())\n },\n children: [\n title\n ]\n });\n var args = _objectSpread({}, content, {\n prefix: prefix,\n iconName: iconName,\n main: main,\n mask: mask,\n maskId: maskId,\n transform: transform,\n symbol: symbol,\n styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)\n });\n var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args), children = _ref2.children, attributes = _ref2.attributes;\n args.children = children;\n args.attributes = attributes;\n if (symbol) return asSymbol(args);\n else return asIcon(args);\n}\nfunction makeLayersTextAbstract(params) {\n var content = params.content, width = params.width, height = params.height, transform = params.transform, title = params.title, extra = params.extra, _params$watchable2 = params.watchable, watchable = _params$watchable2 === void 0 ? false : _params$watchable2;\n var attributes = _objectSpread({}, extra.attributes, title ? {\n \"title\": title\n } : {}, {\n \"class\": extra.classes.join(\" \")\n });\n if (watchable) attributes[DATA_FA_I2SVG] = \"\";\n var styles = _objectSpread({}, extra.styles);\n if (transformIsMeaningful(transform)) {\n styles[\"transform\"] = transformForCss({\n transform: transform,\n startCentered: true,\n width: width,\n height: height\n });\n styles[\"-webkit-transform\"] = styles[\"transform\"];\n }\n var styleString = joinStyles(styles);\n if (styleString.length > 0) attributes[\"style\"] = styleString;\n var val = [];\n val.push({\n tag: \"span\",\n attributes: attributes,\n children: [\n content\n ]\n });\n if (title) val.push({\n tag: \"span\",\n attributes: {\n class: \"sr-only\"\n },\n children: [\n title\n ]\n });\n return val;\n}\nfunction makeLayersCounterAbstract(params) {\n var content = params.content, title = params.title, extra = params.extra;\n var attributes = _objectSpread({}, extra.attributes, title ? {\n \"title\": title\n } : {}, {\n \"class\": extra.classes.join(\" \")\n });\n var styleString = joinStyles(extra.styles);\n if (styleString.length > 0) attributes[\"style\"] = styleString;\n var val = [];\n val.push({\n tag: \"span\",\n attributes: attributes,\n children: [\n content\n ]\n });\n if (title) val.push({\n tag: \"span\",\n attributes: {\n class: \"sr-only\"\n },\n children: [\n title\n ]\n });\n return val;\n}\nvar noop$1 = function noop() {};\nvar p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {\n mark: noop$1,\n measure: noop$1\n};\nvar preamble = 'FA \"5.15.4\"';\nvar begin = function begin(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" begins\"));\n return function() {\n return end(name);\n };\n};\nvar end = function end(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" ends\"));\n p.measure(\"\".concat(preamble, \" \").concat(name), \"\".concat(preamble, \" \").concat(name, \" begins\"), \"\".concat(preamble, \" \").concat(name, \" ends\"));\n};\nvar perf = {\n begin: begin,\n end: end\n};\n/**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */ var bindInternal4 = function bindInternal4(func, thisContext) {\n return function(a, b, c, d) {\n return func.call(thisContext, a, b, c, d);\n };\n};\n/**\n * # Reduce\n *\n * A fast object `.reduce()` implementation.\n *\n * @param {Object} subject The object to reduce over.\n * @param {Function} fn The reducer function.\n * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].\n * @param {Object} thisContext The context for the reducer.\n * @return {mixed} The final result.\n */ var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {\n var keys = Object.keys(subject), length = keys.length, iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn, i, key, result;\n if (initialValue === undefined) {\n i = 1;\n result = subject[keys[0]];\n } else {\n i = 0;\n result = initialValue;\n }\n for(; i < length; i++){\n key = keys[i];\n result = iterator(result, subject[key], key, subject);\n }\n return result;\n};\nfunction toHex(unicode) {\n var result = \"\";\n for(var i = 0; i < unicode.length; i++){\n var hex = unicode.charCodeAt(i).toString(16);\n result += (\"000\" + hex).slice(-4);\n }\n return result;\n}\nfunction defineIcons(prefix, icons) {\n var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _params$skipHooks = params.skipHooks, skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;\n var normalized = Object.keys(icons).reduce(function(acc, iconName) {\n var icon = icons[iconName];\n var expanded = !!icon.icon;\n if (expanded) acc[icon.iconName] = icon.icon;\n else acc[iconName] = icon;\n return acc;\n }, {});\n if (typeof namespace.hooks.addPack === \"function\" && !skipHooks) namespace.hooks.addPack(prefix, normalized);\n else namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);\n /**\n * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction\n * of new styles we needed to differentiate between them. Prefix `fa` is now an alias\n * for `fas` so we'll easy the upgrade process for our users by automatically defining\n * this as well.\n */ if (prefix === \"fas\") defineIcons(\"fa\", icons);\n}\nvar styles = namespace.styles, shims = namespace.shims;\nvar _byUnicode = {};\nvar _byLigature = {};\nvar _byOldName = {};\nvar build = function build() {\n var lookup = function lookup(reducer) {\n return reduce(styles, function(o, style, prefix) {\n o[prefix] = reduce(style, reducer, {});\n return o;\n }, {});\n };\n _byUnicode = lookup(function(acc, icon, iconName) {\n if (icon[3]) acc[icon[3]] = iconName;\n return acc;\n });\n _byLigature = lookup(function(acc, icon, iconName) {\n var ligatures = icon[2];\n acc[iconName] = iconName;\n ligatures.forEach(function(ligature) {\n acc[ligature] = iconName;\n });\n return acc;\n });\n var hasRegular = \"far\" in styles;\n _byOldName = reduce(shims, function(acc, shim) {\n var oldName = shim[0];\n var prefix = shim[1];\n var iconName = shim[2];\n if (prefix === \"far\" && !hasRegular) prefix = \"fas\";\n acc[oldName] = {\n prefix: prefix,\n iconName: iconName\n };\n return acc;\n }, {});\n};\nbuild();\nfunction byUnicode(prefix, unicode) {\n return (_byUnicode[prefix] || {})[unicode];\n}\nfunction byLigature(prefix, ligature) {\n return (_byLigature[prefix] || {})[ligature];\n}\nfunction byOldName(name) {\n return _byOldName[name] || {\n prefix: null,\n iconName: null\n };\n}\nvar styles$1 = namespace.styles;\nvar emptyCanonicalIcon = function emptyCanonicalIcon() {\n return {\n prefix: null,\n iconName: null,\n rest: []\n };\n};\nfunction getCanonicalIcon(values) {\n return values.reduce(function(acc, cls) {\n var iconName = getIconName(config.familyPrefix, cls);\n if (styles$1[cls]) acc.prefix = cls;\n else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) acc.prefix = cls;\n else if (iconName) {\n var shim = acc.prefix === \"fa\" ? byOldName(iconName) : {};\n acc.iconName = shim.iconName || iconName;\n acc.prefix = shim.prefix || acc.prefix;\n } else if (cls !== config.replacementClass && cls.indexOf(\"fa-w-\") !== 0) acc.rest.push(cls);\n return acc;\n }, emptyCanonicalIcon());\n}\nfunction iconFromMapping(mapping, prefix, iconName) {\n if (mapping && mapping[prefix] && mapping[prefix][iconName]) return {\n prefix: prefix,\n iconName: iconName,\n icon: mapping[prefix][iconName]\n };\n}\nfunction toHtml(abstractNodes) {\n var tag = abstractNodes.tag, _abstractNodes$attrib = abstractNodes.attributes, attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib, _abstractNodes$childr = abstractNodes.children, children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;\n if (typeof abstractNodes === \"string\") return htmlEscape(abstractNodes);\n else return \"<\".concat(tag, \" \").concat(joinAttributes(attributes), \">\").concat(children.map(toHtml).join(\"\"), \"\");\n}\nvar noop$2 = function noop() {};\nfunction isWatched(node) {\n var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;\n return typeof i2svg === \"string\";\n}\nfunction getMutator() {\n if (config.autoReplaceSvg === true) return mutators.replace;\n var mutator = mutators[config.autoReplaceSvg];\n return mutator || mutators.replace;\n}\nvar mutators = {\n replace: function replace(mutation) {\n var node = mutation[0];\n var abstract = mutation[1];\n var newOuterHTML = abstract.map(function(a) {\n return toHtml(a);\n }).join(\"\\n\");\n if (node.parentNode && node.outerHTML) node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== \"svg\" ? \"\") : \"\");\n else if (node.parentNode) {\n var newNode = document.createElement(\"span\");\n node.parentNode.replaceChild(newNode, node);\n newNode.outerHTML = newOuterHTML;\n }\n },\n nest: function nest(mutation) {\n var node = mutation[0];\n var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.\n // Short-circuit to the standard replacement\n if (~classArray(node).indexOf(config.replacementClass)) return mutators.replace(mutation);\n var forSvg = new RegExp(\"\".concat(config.familyPrefix, \"-.*\"));\n delete abstract[0].attributes.style;\n delete abstract[0].attributes.id;\n var splitClasses = abstract[0].attributes.class.split(\" \").reduce(function(acc, cls) {\n if (cls === config.replacementClass || cls.match(forSvg)) acc.toSvg.push(cls);\n else acc.toNode.push(cls);\n return acc;\n }, {\n toNode: [],\n toSvg: []\n });\n abstract[0].attributes.class = splitClasses.toSvg.join(\" \");\n var newInnerHTML = abstract.map(function(a) {\n return toHtml(a);\n }).join(\"\\n\");\n node.setAttribute(\"class\", splitClasses.toNode.join(\" \"));\n node.setAttribute(DATA_FA_I2SVG, \"\");\n node.innerHTML = newInnerHTML;\n }\n};\nfunction performOperationSync(op) {\n op();\n}\nfunction perform(mutations, callback) {\n var callbackFunction = typeof callback === \"function\" ? callback : noop$2;\n if (mutations.length === 0) callbackFunction();\n else {\n var frame = performOperationSync;\n if (config.mutateApproach === MUTATION_APPROACH_ASYNC) frame = WINDOW.requestAnimationFrame || performOperationSync;\n frame(function() {\n var mutator = getMutator();\n var mark = perf.begin(\"mutate\");\n mutations.map(mutator);\n mark();\n callbackFunction();\n });\n }\n}\nvar disabled = false;\nfunction disableObservation() {\n disabled = true;\n}\nfunction enableObservation() {\n disabled = false;\n}\nvar mo = null;\nfunction observe(options) {\n if (!MUTATION_OBSERVER) return;\n if (!config.observeMutations) return;\n var treeCallback = options.treeCallback, nodeCallback = options.nodeCallback, pseudoElementsCallback = options.pseudoElementsCallback, _options$observeMutat = options.observeMutationsRoot, observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;\n mo = new MUTATION_OBSERVER(function(objects) {\n if (disabled) return;\n toArray(objects).forEach(function(mutationRecord) {\n if (mutationRecord.type === \"childList\" && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {\n if (config.searchPseudoElements) pseudoElementsCallback(mutationRecord.target);\n treeCallback(mutationRecord.target);\n }\n if (mutationRecord.type === \"attributes\" && mutationRecord.target.parentNode && config.searchPseudoElements) pseudoElementsCallback(mutationRecord.target.parentNode);\n if (mutationRecord.type === \"attributes\" && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {\n if (mutationRecord.attributeName === \"class\") {\n var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)), prefix = _getCanonicalIcon.prefix, iconName = _getCanonicalIcon.iconName;\n if (prefix) mutationRecord.target.setAttribute(\"data-prefix\", prefix);\n if (iconName) mutationRecord.target.setAttribute(\"data-icon\", iconName);\n } else nodeCallback(mutationRecord.target);\n }\n });\n });\n if (!IS_DOM) return;\n mo.observe(observeMutationsRoot, {\n childList: true,\n attributes: true,\n characterData: true,\n subtree: true\n });\n}\nfunction disconnect() {\n if (!mo) return;\n mo.disconnect();\n}\nfunction styleParser(node) {\n var style = node.getAttribute(\"style\");\n var val = [];\n if (style) val = style.split(\";\").reduce(function(acc, style) {\n var styles = style.split(\":\");\n var prop = styles[0];\n var value = styles.slice(1);\n if (prop && value.length > 0) acc[prop] = value.join(\":\").trim();\n return acc;\n }, {});\n return val;\n}\nfunction classParser(node) {\n var existingPrefix = node.getAttribute(\"data-prefix\");\n var existingIconName = node.getAttribute(\"data-icon\");\n var innerText = node.innerText !== undefined ? node.innerText.trim() : \"\";\n var val = getCanonicalIcon(classArray(node));\n if (existingPrefix && existingIconName) {\n val.prefix = existingPrefix;\n val.iconName = existingIconName;\n }\n if (val.prefix && innerText.length > 1) val.iconName = byLigature(val.prefix, node.innerText);\n else if (val.prefix && innerText.length === 1) val.iconName = byUnicode(val.prefix, toHex(node.innerText));\n return val;\n}\nvar parseTransformString = function parseTransformString(transformString) {\n var transform = {\n size: 16,\n x: 0,\n y: 0,\n flipX: false,\n flipY: false,\n rotate: 0\n };\n if (!transformString) return transform;\n else return transformString.toLowerCase().split(\" \").reduce(function(acc, n) {\n var parts = n.toLowerCase().split(\"-\");\n var first = parts[0];\n var rest = parts.slice(1).join(\"-\");\n if (first && rest === \"h\") {\n acc.flipX = true;\n return acc;\n }\n if (first && rest === \"v\") {\n acc.flipY = true;\n return acc;\n }\n rest = parseFloat(rest);\n if (isNaN(rest)) return acc;\n switch(first){\n case \"grow\":\n acc.size = acc.size + rest;\n break;\n case \"shrink\":\n acc.size = acc.size - rest;\n break;\n case \"left\":\n acc.x = acc.x - rest;\n break;\n case \"right\":\n acc.x = acc.x + rest;\n break;\n case \"up\":\n acc.y = acc.y - rest;\n break;\n case \"down\":\n acc.y = acc.y + rest;\n break;\n case \"rotate\":\n acc.rotate = acc.rotate + rest;\n break;\n }\n return acc;\n }, transform);\n};\nfunction transformParser(node) {\n return parseTransformString(node.getAttribute(\"data-fa-transform\"));\n}\nfunction symbolParser(node) {\n var symbol = node.getAttribute(\"data-fa-symbol\");\n return symbol === null ? false : symbol === \"\" ? true : symbol;\n}\nfunction attributesParser(node) {\n var extraAttributes = toArray(node.attributes).reduce(function(acc, attr) {\n if (acc.name !== \"class\" && acc.name !== \"style\") acc[attr.name] = attr.value;\n return acc;\n }, {});\n var title = node.getAttribute(\"title\");\n var titleId = node.getAttribute(\"data-fa-title-id\");\n if (config.autoA11y) {\n if (title) extraAttributes[\"aria-labelledby\"] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n else {\n extraAttributes[\"aria-hidden\"] = \"true\";\n extraAttributes[\"focusable\"] = \"false\";\n }\n }\n return extraAttributes;\n}\nfunction maskParser(node) {\n var mask = node.getAttribute(\"data-fa-mask\");\n if (!mask) return emptyCanonicalIcon();\n else return getCanonicalIcon(mask.split(\" \").map(function(i) {\n return i.trim();\n }));\n}\nfunction blankMeta() {\n return {\n iconName: null,\n title: null,\n titleId: null,\n prefix: null,\n transform: meaninglessTransform,\n symbol: false,\n mask: null,\n maskId: null,\n extra: {\n classes: [],\n styles: {},\n attributes: {}\n }\n };\n}\nfunction parseMeta(node) {\n var _classParser = classParser(node), iconName = _classParser.iconName, prefix = _classParser.prefix, extraClasses = _classParser.rest;\n var extraStyles = styleParser(node);\n var transform = transformParser(node);\n var symbol = symbolParser(node);\n var extraAttributes = attributesParser(node);\n var mask = maskParser(node);\n return {\n iconName: iconName,\n title: node.getAttribute(\"title\"),\n titleId: node.getAttribute(\"data-fa-title-id\"),\n prefix: prefix,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: node.getAttribute(\"data-fa-mask-id\"),\n extra: {\n classes: extraClasses,\n styles: extraStyles,\n attributes: extraAttributes\n }\n };\n}\nfunction MissingIcon(error) {\n this.name = \"MissingIcon\";\n this.message = error || \"Icon unavailable\";\n this.stack = new Error().stack;\n}\nMissingIcon.prototype = Object.create(Error.prototype);\nMissingIcon.prototype.constructor = MissingIcon;\nvar FILL = {\n fill: \"currentColor\"\n};\nvar ANIMATION_BASE = {\n attributeType: \"XML\",\n repeatCount: \"indefinite\",\n dur: \"2s\"\n};\nvar RING = {\n tag: \"path\",\n attributes: _objectSpread({}, FILL, {\n d: \"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z\"\n })\n};\nvar OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {\n attributeName: \"opacity\"\n});\nvar DOT = {\n tag: \"circle\",\n attributes: _objectSpread({}, FILL, {\n cx: \"256\",\n cy: \"364\",\n r: \"28\"\n }),\n children: [\n {\n tag: \"animate\",\n attributes: _objectSpread({}, ANIMATION_BASE, {\n attributeName: \"r\",\n values: \"28;14;28;28;14;28;\"\n })\n },\n {\n tag: \"animate\",\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: \"1;0;1;1;0;1;\"\n })\n }\n ]\n};\nvar QUESTION = {\n tag: \"path\",\n attributes: _objectSpread({}, FILL, {\n opacity: \"1\",\n d: \"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z\"\n }),\n children: [\n {\n tag: \"animate\",\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: \"1;0;0;0;0;1;\"\n })\n }\n ]\n};\nvar EXCLAMATION = {\n tag: \"path\",\n attributes: _objectSpread({}, FILL, {\n opacity: \"0\",\n d: \"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z\"\n }),\n children: [\n {\n tag: \"animate\",\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: \"0;0;1;1;0;0;\"\n })\n }\n ]\n};\nvar missing = {\n tag: \"g\",\n children: [\n RING,\n DOT,\n QUESTION,\n EXCLAMATION\n ]\n};\nvar styles$2 = namespace.styles;\nfunction asFoundIcon(icon) {\n var width = icon[0];\n var height = icon[1];\n var _icon$slice = icon.slice(4), _icon$slice2 = _slicedToArray(_icon$slice, 1), vectorData = _icon$slice2[0];\n var element = null;\n if (Array.isArray(vectorData)) element = {\n tag: \"g\",\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.GROUP)\n },\n children: [\n {\n tag: \"path\",\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.SECONDARY),\n fill: \"currentColor\",\n d: vectorData[0]\n }\n },\n {\n tag: \"path\",\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.PRIMARY),\n fill: \"currentColor\",\n d: vectorData[1]\n }\n }\n ]\n };\n else element = {\n tag: \"path\",\n attributes: {\n fill: \"currentColor\",\n d: vectorData\n }\n };\n return {\n found: true,\n width: width,\n height: height,\n icon: element\n };\n}\nfunction findIcon(iconName, prefix) {\n return new picked(function(resolve, reject) {\n var val = {\n found: false,\n width: 512,\n height: 512,\n icon: missing\n };\n if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {\n var icon = styles$2[prefix][iconName];\n return resolve(asFoundIcon(icon));\n }\n if (iconName && prefix && !config.showMissingIcons) reject(new MissingIcon(\"Icon is missing for prefix \".concat(prefix, \" with icon name \").concat(iconName)));\n else resolve(val);\n });\n}\nvar styles$3 = namespace.styles;\nfunction generateSvgReplacementMutation(node, nodeMeta) {\n var iconName = nodeMeta.iconName, title = nodeMeta.title, titleId = nodeMeta.titleId, prefix = nodeMeta.prefix, transform = nodeMeta.transform, symbol = nodeMeta.symbol, mask = nodeMeta.mask, maskId = nodeMeta.maskId, extra = nodeMeta.extra;\n return new picked(function(resolve, reject) {\n picked.all([\n findIcon(iconName, prefix),\n findIcon(mask.iconName, mask.prefix)\n ]).then(function(_ref) {\n var _ref2 = _slicedToArray(_ref, 2), main = _ref2[0], mask = _ref2[1];\n resolve([\n node,\n makeInlineSvgAbstract({\n icons: {\n main: main,\n mask: mask\n },\n prefix: prefix,\n iconName: iconName,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: maskId,\n title: title,\n titleId: titleId,\n extra: extra,\n watchable: true\n })\n ]);\n });\n });\n}\nfunction generateLayersText(node, nodeMeta) {\n var title = nodeMeta.title, transform = nodeMeta.transform, extra = nodeMeta.extra;\n var width = null;\n var height = null;\n if (IS_IE) {\n var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);\n var boundingClientRect = node.getBoundingClientRect();\n width = boundingClientRect.width / computedFontSize;\n height = boundingClientRect.height / computedFontSize;\n }\n if (config.autoA11y && !title) extra.attributes[\"aria-hidden\"] = \"true\";\n return picked.resolve([\n node,\n makeLayersTextAbstract({\n content: node.innerHTML,\n width: width,\n height: height,\n transform: transform,\n title: title,\n extra: extra,\n watchable: true\n })\n ]);\n}\nfunction generateMutation(node) {\n var nodeMeta = parseMeta(node);\n if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) return generateLayersText(node, nodeMeta);\n else return generateSvgReplacementMutation(node, nodeMeta);\n}\nfunction onTree(root) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n if (!IS_DOM) return;\n var htmlClassList = DOCUMENT.documentElement.classList;\n var hclAdd = function hclAdd(suffix) {\n return htmlClassList.add(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n var hclRemove = function hclRemove(suffix) {\n return htmlClassList.remove(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);\n var prefixesDomQuery = [\n \".\".concat(LAYERS_TEXT_CLASSNAME, \":not([\").concat(DATA_FA_I2SVG, \"])\")\n ].concat(prefixes.map(function(p) {\n return \".\".concat(p, \":not([\").concat(DATA_FA_I2SVG, \"])\");\n })).join(\", \");\n if (prefixesDomQuery.length === 0) return;\n var candidates = [];\n try {\n candidates = toArray(root.querySelectorAll(prefixesDomQuery));\n } catch (e) {}\n if (candidates.length > 0) {\n hclAdd(\"pending\");\n hclRemove(\"complete\");\n } else return;\n var mark = perf.begin(\"onTree\");\n var mutations = candidates.reduce(function(acc, node) {\n try {\n var mutation = generateMutation(node);\n if (mutation) acc.push(mutation);\n } catch (e) {\n if (!PRODUCTION) {\n if (e instanceof MissingIcon) console.error(e);\n }\n }\n return acc;\n }, []);\n return new picked(function(resolve, reject) {\n picked.all(mutations).then(function(resolvedMutations) {\n perform(resolvedMutations, function() {\n hclAdd(\"active\");\n hclAdd(\"complete\");\n hclRemove(\"pending\");\n if (typeof callback === \"function\") callback();\n mark();\n resolve();\n });\n }).catch(function() {\n mark();\n reject();\n });\n });\n}\nfunction onNode(node) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n generateMutation(node).then(function(mutation) {\n if (mutation) perform([\n mutation\n ], callback);\n });\n}\nfunction replaceForPosition(node, position) {\n var pendingAttribute = \"\".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(\":\", \"-\"));\n return new picked(function(resolve, reject) {\n if (node.getAttribute(pendingAttribute) !== null) // This node is already being processed\n return resolve();\n var children = toArray(node.children);\n var alreadyProcessedPseudoElement = children.filter(function(c) {\n return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;\n })[0];\n var styles = WINDOW.getComputedStyle(node, position);\n var fontFamily = styles.getPropertyValue(\"font-family\").match(FONT_FAMILY_PATTERN);\n var fontWeight = styles.getPropertyValue(\"font-weight\");\n var content = styles.getPropertyValue(\"content\");\n if (alreadyProcessedPseudoElement && !fontFamily) {\n // If we've already processed it but the current computed style does not result in a font-family,\n // that probably means that a class name that was previously present to make the icon has been\n // removed. So we now should delete the icon.\n node.removeChild(alreadyProcessedPseudoElement);\n return resolve();\n } else if (fontFamily && content !== \"none\" && content !== \"\") {\n var _content = styles.getPropertyValue(\"content\");\n var prefix = ~[\n \"Solid\",\n \"Regular\",\n \"Light\",\n \"Duotone\",\n \"Brands\",\n \"Kit\"\n ].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];\n var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);\n var iconName = byUnicode(prefix, hexValue);\n var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't\n // already done so with the same prefix and iconName\n if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {\n node.setAttribute(pendingAttribute, iconIdentifier);\n if (alreadyProcessedPseudoElement) // Delete the old one, since we're replacing it with a new one\n node.removeChild(alreadyProcessedPseudoElement);\n var meta = blankMeta();\n var extra = meta.extra;\n extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;\n findIcon(iconName, prefix).then(function(main) {\n var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {\n icons: {\n main: main,\n mask: emptyCanonicalIcon()\n },\n prefix: prefix,\n iconName: iconIdentifier,\n extra: extra,\n watchable: true\n }));\n var element = DOCUMENT.createElement(\"svg\");\n if (position === \":before\") node.insertBefore(element, node.firstChild);\n else node.appendChild(element);\n element.outerHTML = abstract.map(function(a) {\n return toHtml(a);\n }).join(\"\\n\");\n node.removeAttribute(pendingAttribute);\n resolve();\n }).catch(reject);\n } else resolve();\n } else resolve();\n });\n}\nfunction replace(node) {\n return picked.all([\n replaceForPosition(node, \":before\"),\n replaceForPosition(node, \":after\")\n ]);\n}\nfunction processable(node) {\n return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== \"svg\");\n}\nfunction searchPseudoElements(root) {\n if (!IS_DOM) return;\n return new picked(function(resolve, reject) {\n var operations = toArray(root.querySelectorAll(\"*\")).filter(processable).map(replace);\n var end = perf.begin(\"searchPseudoElements\");\n disableObservation();\n picked.all(operations).then(function() {\n end();\n enableObservation();\n resolve();\n }).catch(function() {\n end();\n enableObservation();\n reject();\n });\n });\n}\nvar baseStyles = 'svg:not(:root).svg-inline--fa {\\n overflow: visible;\\n}\\n\\n.svg-inline--fa {\\n display: inline-block;\\n font-size: inherit;\\n height: 1em;\\n overflow: visible;\\n vertical-align: -0.125em;\\n}\\n.svg-inline--fa.fa-lg {\\n vertical-align: -0.225em;\\n}\\n.svg-inline--fa.fa-w-1 {\\n width: 0.0625em;\\n}\\n.svg-inline--fa.fa-w-2 {\\n width: 0.125em;\\n}\\n.svg-inline--fa.fa-w-3 {\\n width: 0.1875em;\\n}\\n.svg-inline--fa.fa-w-4 {\\n width: 0.25em;\\n}\\n.svg-inline--fa.fa-w-5 {\\n width: 0.3125em;\\n}\\n.svg-inline--fa.fa-w-6 {\\n width: 0.375em;\\n}\\n.svg-inline--fa.fa-w-7 {\\n width: 0.4375em;\\n}\\n.svg-inline--fa.fa-w-8 {\\n width: 0.5em;\\n}\\n.svg-inline--fa.fa-w-9 {\\n width: 0.5625em;\\n}\\n.svg-inline--fa.fa-w-10 {\\n width: 0.625em;\\n}\\n.svg-inline--fa.fa-w-11 {\\n width: 0.6875em;\\n}\\n.svg-inline--fa.fa-w-12 {\\n width: 0.75em;\\n}\\n.svg-inline--fa.fa-w-13 {\\n width: 0.8125em;\\n}\\n.svg-inline--fa.fa-w-14 {\\n width: 0.875em;\\n}\\n.svg-inline--fa.fa-w-15 {\\n width: 0.9375em;\\n}\\n.svg-inline--fa.fa-w-16 {\\n width: 1em;\\n}\\n.svg-inline--fa.fa-w-17 {\\n width: 1.0625em;\\n}\\n.svg-inline--fa.fa-w-18 {\\n width: 1.125em;\\n}\\n.svg-inline--fa.fa-w-19 {\\n width: 1.1875em;\\n}\\n.svg-inline--fa.fa-w-20 {\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-pull-left {\\n margin-right: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-pull-right {\\n margin-left: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-border {\\n height: 1.5em;\\n}\\n.svg-inline--fa.fa-li {\\n width: 2em;\\n}\\n.svg-inline--fa.fa-fw {\\n width: 1.25em;\\n}\\n\\n.fa-layers svg.svg-inline--fa {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.fa-layers {\\n display: inline-block;\\n height: 1em;\\n position: relative;\\n text-align: center;\\n vertical-align: -0.125em;\\n width: 1em;\\n}\\n.fa-layers svg.svg-inline--fa {\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter, .fa-layers-text {\\n display: inline-block;\\n position: absolute;\\n text-align: center;\\n}\\n\\n.fa-layers-text {\\n left: 50%;\\n top: 50%;\\n -webkit-transform: translate(-50%, -50%);\\n transform: translate(-50%, -50%);\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter {\\n background-color: #ff253a;\\n border-radius: 1em;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n color: #fff;\\n height: 1.5em;\\n line-height: 1;\\n max-width: 5em;\\n min-width: 1.5em;\\n overflow: hidden;\\n padding: 0.25em;\\n right: 0;\\n text-overflow: ellipsis;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-bottom-right {\\n bottom: 0;\\n right: 0;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom right;\\n transform-origin: bottom right;\\n}\\n\\n.fa-layers-bottom-left {\\n bottom: 0;\\n left: 0;\\n right: auto;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom left;\\n transform-origin: bottom left;\\n}\\n\\n.fa-layers-top-right {\\n right: 0;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-top-left {\\n left: 0;\\n right: auto;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top left;\\n transform-origin: top left;\\n}\\n\\n.fa-lg {\\n font-size: 1.3333333333em;\\n line-height: 0.75em;\\n vertical-align: -0.0667em;\\n}\\n\\n.fa-xs {\\n font-size: 0.75em;\\n}\\n\\n.fa-sm {\\n font-size: 0.875em;\\n}\\n\\n.fa-1x {\\n font-size: 1em;\\n}\\n\\n.fa-2x {\\n font-size: 2em;\\n}\\n\\n.fa-3x {\\n font-size: 3em;\\n}\\n\\n.fa-4x {\\n font-size: 4em;\\n}\\n\\n.fa-5x {\\n font-size: 5em;\\n}\\n\\n.fa-6x {\\n font-size: 6em;\\n}\\n\\n.fa-7x {\\n font-size: 7em;\\n}\\n\\n.fa-8x {\\n font-size: 8em;\\n}\\n\\n.fa-9x {\\n font-size: 9em;\\n}\\n\\n.fa-10x {\\n font-size: 10em;\\n}\\n\\n.fa-fw {\\n text-align: center;\\n width: 1.25em;\\n}\\n\\n.fa-ul {\\n list-style-type: none;\\n margin-left: 2.5em;\\n padding-left: 0;\\n}\\n.fa-ul > li {\\n position: relative;\\n}\\n\\n.fa-li {\\n left: -2em;\\n position: absolute;\\n text-align: center;\\n width: 2em;\\n line-height: inherit;\\n}\\n\\n.fa-border {\\n border: solid 0.08em #eee;\\n border-radius: 0.1em;\\n padding: 0.2em 0.25em 0.15em;\\n}\\n\\n.fa-pull-left {\\n float: left;\\n}\\n\\n.fa-pull-right {\\n float: right;\\n}\\n\\n.fa.fa-pull-left,\\n.fas.fa-pull-left,\\n.far.fa-pull-left,\\n.fal.fa-pull-left,\\n.fab.fa-pull-left {\\n margin-right: 0.3em;\\n}\\n.fa.fa-pull-right,\\n.fas.fa-pull-right,\\n.far.fa-pull-right,\\n.fal.fa-pull-right,\\n.fab.fa-pull-right {\\n margin-left: 0.3em;\\n}\\n\\n.fa-spin {\\n -webkit-animation: fa-spin 2s infinite linear;\\n animation: fa-spin 2s infinite linear;\\n}\\n\\n.fa-pulse {\\n -webkit-animation: fa-spin 1s infinite steps(8);\\n animation: fa-spin 1s infinite steps(8);\\n}\\n\\n@-webkit-keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n.fa-rotate-90 {\\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\\n -webkit-transform: rotate(90deg);\\n transform: rotate(90deg);\\n}\\n\\n.fa-rotate-180 {\\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\\n -webkit-transform: rotate(180deg);\\n transform: rotate(180deg);\\n}\\n\\n.fa-rotate-270 {\\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\\n -webkit-transform: rotate(270deg);\\n transform: rotate(270deg);\\n}\\n\\n.fa-flip-horizontal {\\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\\n -webkit-transform: scale(-1, 1);\\n transform: scale(-1, 1);\\n}\\n\\n.fa-flip-vertical {\\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\\n -webkit-transform: scale(1, -1);\\n transform: scale(1, -1);\\n}\\n\\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\\n -webkit-transform: scale(-1, -1);\\n transform: scale(-1, -1);\\n}\\n\\n:root .fa-rotate-90,\\n:root .fa-rotate-180,\\n:root .fa-rotate-270,\\n:root .fa-flip-horizontal,\\n:root .fa-flip-vertical,\\n:root .fa-flip-both {\\n -webkit-filter: none;\\n filter: none;\\n}\\n\\n.fa-stack {\\n display: inline-block;\\n height: 2em;\\n position: relative;\\n width: 2.5em;\\n}\\n\\n.fa-stack-1x,\\n.fa-stack-2x {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.svg-inline--fa.fa-stack-1x {\\n height: 1em;\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-stack-2x {\\n height: 2em;\\n width: 2.5em;\\n}\\n\\n.fa-inverse {\\n color: #fff;\\n}\\n\\n.sr-only {\\n border: 0;\\n clip: rect(0, 0, 0, 0);\\n height: 1px;\\n margin: -1px;\\n overflow: hidden;\\n padding: 0;\\n position: absolute;\\n width: 1px;\\n}\\n\\n.sr-only-focusable:active, .sr-only-focusable:focus {\\n clip: auto;\\n height: auto;\\n margin: 0;\\n overflow: visible;\\n position: static;\\n width: auto;\\n}\\n\\n.svg-inline--fa .fa-primary {\\n fill: var(--fa-primary-color, currentColor);\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa .fa-secondary {\\n fill: var(--fa-secondary-color, currentColor);\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-primary {\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa mask .fa-primary,\\n.svg-inline--fa mask .fa-secondary {\\n fill: black;\\n}\\n\\n.fad.fa-inverse {\\n color: #fff;\\n}';\nfunction css() {\n var dfp = DEFAULT_FAMILY_PREFIX;\n var drc = DEFAULT_REPLACEMENT_CLASS;\n var fp = config.familyPrefix;\n var rc = config.replacementClass;\n var s = baseStyles;\n if (fp !== dfp || rc !== drc) {\n var dPatt = new RegExp(\"\\\\.\".concat(dfp, \"\\\\-\"), \"g\");\n var customPropPatt = new RegExp(\"\\\\--\".concat(dfp, \"\\\\-\"), \"g\");\n var rPatt = new RegExp(\"\\\\.\".concat(drc), \"g\");\n s = s.replace(dPatt, \".\".concat(fp, \"-\")).replace(customPropPatt, \"--\".concat(fp, \"-\")).replace(rPatt, \".\".concat(rc));\n }\n return s;\n}\nvar Library = /*#__PURE__*/ function() {\n function Library() {\n _classCallCheck(this, Library);\n this.definitions = {};\n }\n _createClass(Library, [\n {\n key: \"add\",\n value: function add() {\n var _this = this;\n for(var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++)definitions[_key] = arguments[_key];\n var additions = definitions.reduce(this._pullDefinitions, {});\n Object.keys(additions).forEach(function(key) {\n _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);\n defineIcons(key, additions[key]);\n build();\n });\n }\n },\n {\n key: \"reset\",\n value: function reset() {\n this.definitions = {};\n }\n },\n {\n key: \"_pullDefinitions\",\n value: function _pullDefinitions(additions, definition) {\n var normalized = definition.prefix && definition.iconName && definition.icon ? {\n 0: definition\n } : definition;\n Object.keys(normalized).map(function(key) {\n var _normalized$key = normalized[key], prefix = _normalized$key.prefix, iconName = _normalized$key.iconName, icon = _normalized$key.icon;\n if (!additions[prefix]) additions[prefix] = {};\n additions[prefix][iconName] = icon;\n });\n return additions;\n }\n }\n ]);\n return Library;\n}();\nfunction ensureCss() {\n if (config.autoAddCss && !_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n}\nfunction apiObject(val, abstractCreator) {\n Object.defineProperty(val, \"abstract\", {\n get: abstractCreator\n });\n Object.defineProperty(val, \"html\", {\n get: function get() {\n return val.abstract.map(function(a) {\n return toHtml(a);\n });\n }\n });\n Object.defineProperty(val, \"node\", {\n get: function get() {\n if (!IS_DOM) return;\n var container = DOCUMENT.createElement(\"div\");\n container.innerHTML = val.html;\n return container.children;\n }\n });\n return val;\n}\nfunction findIconDefinition(iconLookup) {\n var _iconLookup$prefix = iconLookup.prefix, prefix = _iconLookup$prefix === void 0 ? \"fa\" : _iconLookup$prefix, iconName = iconLookup.iconName;\n if (!iconName) return;\n return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);\n}\nfunction resolveIcons(next) {\n return function(maybeIconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});\n var mask = params.mask;\n if (mask) mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});\n return next(iconDefinition, _objectSpread({}, params, {\n mask: mask\n }));\n };\n}\nvar library = new Library();\nvar noAuto = function noAuto() {\n config.autoReplaceSvg = false;\n config.observeMutations = false;\n disconnect();\n};\nvar _cssInserted = false;\nvar dom = {\n i2svg: function i2svg() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (IS_DOM) {\n ensureCss();\n var _params$node = params.node, node = _params$node === void 0 ? DOCUMENT : _params$node, _params$callback = params.callback, callback = _params$callback === void 0 ? function() {} : _params$callback;\n if (config.searchPseudoElements) searchPseudoElements(node);\n return onTree(node, callback);\n } else return picked.reject(\"Operation requires a DOM of some kind.\");\n },\n css: css,\n insertCss: function insertCss$$1() {\n if (!_cssInserted) {\n insertCss(css());\n _cssInserted = true;\n }\n },\n watch: function watch() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var autoReplaceSvgRoot = params.autoReplaceSvgRoot, observeMutationsRoot = params.observeMutationsRoot;\n if (config.autoReplaceSvg === false) config.autoReplaceSvg = true;\n config.observeMutations = true;\n domready(function() {\n autoReplace({\n autoReplaceSvgRoot: autoReplaceSvgRoot\n });\n observe({\n treeCallback: onTree,\n nodeCallback: onNode,\n pseudoElementsCallback: searchPseudoElements,\n observeMutationsRoot: observeMutationsRoot\n });\n });\n }\n};\nvar parse = {\n transform: function transform(transformString) {\n return parseTransformString(transformString);\n }\n};\nvar icon = resolveIcons(function(iconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform = params.transform, transform = _params$transform === void 0 ? meaninglessTransform : _params$transform, _params$symbol = params.symbol, symbol = _params$symbol === void 0 ? false : _params$symbol, _params$mask = params.mask, mask = _params$mask === void 0 ? null : _params$mask, _params$maskId = params.maskId, maskId = _params$maskId === void 0 ? null : _params$maskId, _params$title = params.title, title = _params$title === void 0 ? null : _params$title, _params$titleId = params.titleId, titleId = _params$titleId === void 0 ? null : _params$titleId, _params$classes = params.classes, classes = _params$classes === void 0 ? [] : _params$classes, _params$attributes = params.attributes, attributes = _params$attributes === void 0 ? {} : _params$attributes, _params$styles = params.styles, styles = _params$styles === void 0 ? {} : _params$styles;\n if (!iconDefinition) return;\n var prefix = iconDefinition.prefix, iconName = iconDefinition.iconName, icon = iconDefinition.icon;\n return apiObject(_objectSpread({\n type: \"icon\"\n }, iconDefinition), function() {\n ensureCss();\n if (config.autoA11y) {\n if (title) attributes[\"aria-labelledby\"] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n else {\n attributes[\"aria-hidden\"] = \"true\";\n attributes[\"focusable\"] = \"false\";\n }\n }\n return makeInlineSvgAbstract({\n icons: {\n main: asFoundIcon(icon),\n mask: mask ? asFoundIcon(mask.icon) : {\n found: false,\n width: null,\n height: null,\n icon: {}\n }\n },\n prefix: prefix,\n iconName: iconName,\n transform: _objectSpread({}, meaninglessTransform, transform),\n symbol: symbol,\n title: title,\n maskId: maskId,\n titleId: titleId,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: classes\n }\n });\n });\n});\nvar text = function text(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform2 = params.transform, transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2, _params$title2 = params.title, title = _params$title2 === void 0 ? null : _params$title2, _params$classes2 = params.classes, classes = _params$classes2 === void 0 ? [] : _params$classes2, _params$attributes2 = params.attributes, attributes = _params$attributes2 === void 0 ? {} : _params$attributes2, _params$styles2 = params.styles, styles = _params$styles2 === void 0 ? {} : _params$styles2;\n return apiObject({\n type: \"text\",\n content: content\n }, function() {\n ensureCss();\n return makeLayersTextAbstract({\n content: content,\n transform: _objectSpread({}, meaninglessTransform, transform),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\n \"\".concat(config.familyPrefix, \"-layers-text\")\n ].concat(_toConsumableArray(classes))\n }\n });\n });\n};\nvar counter = function counter(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$title3 = params.title, title = _params$title3 === void 0 ? null : _params$title3, _params$classes3 = params.classes, classes = _params$classes3 === void 0 ? [] : _params$classes3, _params$attributes3 = params.attributes, attributes = _params$attributes3 === void 0 ? {} : _params$attributes3, _params$styles3 = params.styles, styles = _params$styles3 === void 0 ? {} : _params$styles3;\n return apiObject({\n type: \"counter\",\n content: content\n }, function() {\n ensureCss();\n return makeLayersCounterAbstract({\n content: content.toString(),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\n \"\".concat(config.familyPrefix, \"-layers-counter\")\n ].concat(_toConsumableArray(classes))\n }\n });\n });\n};\nvar layer = function layer(assembler) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$classes4 = params.classes, classes = _params$classes4 === void 0 ? [] : _params$classes4;\n return apiObject({\n type: \"layer\"\n }, function() {\n ensureCss();\n var children = [];\n assembler(function(args) {\n Array.isArray(args) ? args.map(function(a) {\n children = children.concat(a.abstract);\n }) : children = children.concat(args.abstract);\n });\n return [\n {\n tag: \"span\",\n attributes: {\n class: [\n \"\".concat(config.familyPrefix, \"-layers\")\n ].concat(_toConsumableArray(classes)).join(\" \")\n },\n children: children\n }\n ];\n });\n};\nvar api = {\n noAuto: noAuto,\n config: config,\n dom: dom,\n library: library,\n parse: parse,\n findIconDefinition: findIconDefinition,\n icon: icon,\n text: text,\n counter: counter,\n layer: layer,\n toHtml: toHtml\n};\nvar autoReplace = function autoReplace() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _params$autoReplaceSv = params.autoReplaceSvgRoot, autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;\n if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({\n node: autoReplaceSvgRoot\n });\n};\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"a03TF\":[function(require,module,exports) {\n// src/Icon/iconDefaultProps.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar defaultProps = {\n color: \"default\",\n padded: \"none\",\n size: \"sm\"\n};\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"f5hp5\":[function(require,module,exports) {\n// src/Icon/mapper.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>mapper_default);\nvar map = {\n \"address-book-o\": \"far fa-address-book\",\n \"address-card-o\": \"far fa-address-card\",\n \"area-chart\": \"fas fa-chart-area\",\n \"arrow-circle-o-down\": \"far fa-arrow-alt-circle-down\",\n \"arrow-circle-o-left\": \"far fa-arrow-alt-circle-left\",\n \"arrow-circle-o-right\": \"far fa-arrow-alt-circle-right\",\n \"arrow-circle-o-up\": \"far fa-arrow-alt-circle-up\",\n \"arrows\": \"fas fa-arrows-alt\",\n \"arrows-alt\": \"fas fa-expand-arrows-alt\",\n \"arrows-h\": \"fas fa-arrows-alt-h\",\n \"arrows-v\": \"fas fa-arrows-alt-v\",\n \"asl-interpreting\": \"fas fa-american-sign-language-interpreting\",\n \"automobile\": \"fas fa-car\",\n \"bank\": \"fas fa-university\",\n \"bar-chart\": \"far fa-chart-bar\",\n \"bar-chart-o\": \"far fa-chart-bar\",\n \"bathtub\": \"fas fa-bath\",\n \"battery\": \"fas fa-battery-full\",\n \"battery-0\": \"fas fa-battery-empty\",\n \"battery-1\": \"fas fa-battery-quarter\",\n \"battery-2\": \"fas fa-battery-half\",\n \"battery-3\": \"fas fa-battery-three-quarters\",\n \"battery-4\": \"fas fa-battery-full\",\n \"bell-o\": \"far fa-bell\",\n \"bell-slash-o\": \"far fa-bell-slash\",\n \"bitbucket-square\": \"fab fa-bitbucket\",\n \"bitcoin\": \"fab fa-btc\",\n \"bookmark-o\": \"far fa-bookmark\",\n \"building-o\": \"far fa-building\",\n \"cab\": \"fas fa-taxi\",\n \"calendar\": \"fas fa-calendar-alt\",\n \"calendar-check-o\": \"far fa-calendar-check\",\n \"calendar-empty\": \"far fa-calendar\",\n \"calendar-minus-o\": \"far fa-calendar-minus\",\n \"calendar-o\": \"far fa-calendar\",\n \"calendar-plus-o\": \"far fa-calendar-plus\",\n \"calendar-times-o\": \"far fa-calendar-times\",\n \"caret-square-o-down\": \"far fa-caret-square-down\",\n \"caret-square-o-left\": \"far fa-caret-square-left\",\n \"caret-square-o-right\": \"far fa-caret-square-right\",\n \"caret-square-o-up\": \"far fa-caret-square-up\",\n \"cc\": \"far fa-closed-captioning\",\n \"chain\": \"fas fa-link\",\n \"chain-broken\": \"fas fa-unlink\",\n \"check-circle-o\": \"far fa-check-circle\",\n \"check-square-o\": \"far fa-check-square\",\n \"circle-o\": \"far fa-circle\",\n \"circle-o-notch\": \"fas fa-circle-notch\",\n \"circle-thin\": \"far fa-circle\",\n \"clock-o\": \"far fa-clock\",\n \"close\": \"fas fa-times\",\n \"cloud-download\": \"fas fa-cloud-download-alt\",\n \"cloud-upload\": \"fas fa-cloud-upload-alt\",\n \"cny\": \"fas fa-yen-sign\",\n \"code-fork\": \"fas fa-code-branch\",\n \"comment-o\": \"far fa-comment\",\n \"commenting\": \"fas fa-comment-alt\",\n \"commenting-o\": \"far fa-comment-alt\",\n \"comments-o\": \"far fa-comments\",\n \"copy\": \"far fa-copy\",\n \"credit-card-alt\": \"fas fa-credit-card\",\n \"cutlery\": \"fas fa-utensils\",\n \"dashboard\": \"fas fa-tachometer-alt\",\n \"deafness\": \"fas fa-deaf\",\n \"dedent\": \"fas fa-outdent\",\n \"diamond\": \"far fa-gem\",\n \"dollar\": \"fas fa-dollar-sign\",\n \"dot-circle-o\": \"far fa-dot-circle\",\n \"drivers-license\": \"fas fa-id-card\",\n \"drivers-license-o\": \"far fa-id-card\",\n \"eercast\": \"fab fa-sellcast\",\n \"envelope-alt\": \"far fa-envelope\",\n \"envelope-o\": \"far fa-envelope\",\n \"envelope-open-o\": \"far fa-envelope-open\",\n \"eur\": \"fas fa-euro-sign\",\n \"euro\": \"fas fa-euro-sign\",\n \"exchange\": \"fas fa-exchange-alt\",\n \"external-link\": \"fas fa-external-link-alt\",\n \"external-link-square\": \"fas fa-external-link-square-alt\",\n \"eyedropper\": \"fas fa-eye-dropper\",\n \"fa\": \"fab fa-font-awesome\",\n \"facebook\": \"fab fa-facebook-f\",\n \"facebook-f\": \"fab fa-facebook-f\",\n \"facebook-official\": \"fab fa-facebook\",\n \"feed\": \"fas fa-rss\",\n \"file-archive-o\": \"far fa-file-archive\",\n \"file-audio-o\": \"far fa-file-audio\",\n \"file-code-o\": \"far fa-file-code\",\n \"file-excel-o\": \"far fa-file-excel\",\n \"file-image-o\": \"far fa-file-image\",\n \"file-movie-o\": \"far fa-file-video\",\n \"file-o\": \"far fa-file\",\n \"file-pdf-o\": \"far fa-file-pdf\",\n \"file-photo-o\": \"far fa-file-image\",\n \"file-picture-o\": \"far fa-file-image\",\n \"file-powerpoint-o\": \"far fa-file-powerpoint\",\n \"file-sound-o\": \"far fa-file-audio\",\n \"file-text\": \"fas fa-file-alt\",\n \"file-text-o\": \"far fa-file-alt\",\n \"file-video-o\": \"far fa-file-video\",\n \"file-word-o\": \"far fa-file-word\",\n \"file-zip-o\": \"far fa-file-archive\",\n \"files-o\": \"far fa-copy\",\n \"flag-alt\": \"far fa-flag\",\n \"flag-o\": \"far fa-flag\",\n \"flash\": \"fas fa-bolt\",\n \"floppy-o\": \"far fa-save\",\n \"folder-o\": \"far fa-folder\",\n \"folder-open-alt\": \"far fa-folder-open\",\n \"folder-open-o\": \"far fa-folder-open\",\n \"frown-o\": \"far fa-frown\",\n \"futbol-o\": \"far fa-futbol\",\n \"gbp\": \"fas fa-pound-sign\",\n \"ge\": \"fab fa-empire\",\n \"gear\": \"fas fa-cog\",\n \"gears\": \"fas fa-cogs\",\n \"gittip\": \"fab fa-gratipay\",\n \"glass\": \"fas fa-glass-martini\",\n \"google-plus\": \"fab fa-google-plus-g\",\n \"google-plus-circle\": \"fab fa-google-plus\",\n \"google-plus-official\": \"fab fa-google-plus\",\n \"group\": \"fas fa-users\",\n \"hand-grab-o\": \"far fa-hand-rock\",\n \"hand-lizard-o\": \"far fa-hand-lizard\",\n \"hand-o-down\": \"far fa-hand-point-down\",\n \"hand-o-left\": \"far fa-hand-point-left\",\n \"hand-o-right\": \"far fa-hand-point-right\",\n \"hand-o-up\": \"far fa-hand-point-up\",\n \"hand-paper-o\": \"far fa-hand-paper\",\n \"hand-peace-o\": \"far fa-hand-peace\",\n \"hand-pointer-o\": \"far fa-hand-pointer\",\n \"hand-rock-o\": \"far fa-hand-rock\",\n \"hand-scissors-o\": \"far fa-hand-scissors\",\n \"hand-spock-o\": \"far fa-hand-spock\",\n \"hand-stop-o\": \"far fa-hand-paper\",\n \"handshake-o\": \"far fa-handshake\",\n \"hard-of-hearing\": \"fas fa-deaf\",\n \"hdd-o\": \"far fa-hdd\",\n \"header\": \"fas fa-heading\",\n \"heart-o\": \"far fa-heart\",\n \"hospital-o\": \"far fa-hospital\",\n \"hotel\": \"fas fa-hotel\",\n \"hourglass-1\": \"fas fa-hourglass-start\",\n \"hourglass-2\": \"fas fa-hourglass-half\",\n \"hourglass-3\": \"fas fa-hourglass-end\",\n \"hourglass-o\": \"far fa-hourglass\",\n \"id-card-o\": \"far fa-id-card\",\n \"ils\": \"fas fa-shekel-sign\",\n \"image\": \"far fa-image\",\n \"inr\": \"fas fa-rupee-sign\",\n \"institution\": \"fas fa-university\",\n \"intersex\": \"fas fa-transgender\",\n \"jpy\": \"fas fa-yen-sign\",\n \"keyboard-o\": \"far fa-keyboard\",\n \"krw\": \"fas fa-won-sign\",\n \"legal\": \"fas fa-gavel\",\n \"lemon-o\": \"far fa-lemon\",\n \"level-down\": \"fas fa-level-down-alt\",\n \"level-up\": \"fas fa-level-up-alt\",\n \"life-bouy\": \"far fa-life-ring\",\n \"life-buoy\": \"far fa-life-ring\",\n \"life-saver\": \"far fa-life-ring\",\n \"lightbulb-o\": \"far fa-lightbulb\",\n \"line-chart\": \"fas fa-chart-line\",\n \"linkedin\": \"fab fa-linkedin-in\",\n \"linkedin-square\": \"fab fa-linkedin\",\n \"long-arrow-down\": \"fas fa-long-arrow-alt-down\",\n \"long-arrow-left\": \"fas fa-long-arrow-alt-left\",\n \"long-arrow-right\": \"fas fa-long-arrow-alt-right\",\n \"long-arrow-up\": \"fas fa-long-arrow-alt-up\",\n \"mail-forward\": \"fas fa-share\",\n \"mail-reply\": \"fas fa-reply\",\n \"mail-reply-all\": \"fas fa-reply-all\",\n \"map-marker\": \"fas fa-map-marker-alt\",\n \"map-o\": \"far fa-map\",\n \"meanpath\": \"fab fa-font-awesome\",\n \"meh-o\": \"far fa-meh\",\n \"minus-square-o\": \"far fa-minus-square\",\n \"mobile\": \"fas fa-mobile-alt\",\n \"mobile-phone\": \"fas fa-mobile-alt\",\n \"money\": \"far fa-money-bill-alt\",\n \"moon-o\": \"far fa-moon\",\n \"mortar-board\": \"fas fa-graduation-cap\",\n \"navicon\": \"fas fa-bars\",\n \"newspaper-o\": \"far fa-newspaper\",\n \"paper-plane-o\": \"far fa-paper-plane\",\n \"paste\": \"far fa-clipboard\",\n \"pause-circle-o\": \"far fa-pause-circle\",\n \"pencil\": \"fas fa-pencil-alt\",\n \"pencil-square\": \"fas fa-pen-square\",\n \"pencil-square-o\": \"far fa-edit\",\n \"photo\": \"far fa-image\",\n \"picture\": \"far fa-image\",\n \"picture-o\": \"far fa-image\",\n \"pie-chart\": \"fas fa-chart-pie\",\n \"play-circle-o\": \"far fa-play-circle\",\n \"plus-square-o\": \"far fa-plus-square\",\n \"question-circle-o\": \"far fa-question-circle\",\n \"ra\": \"fab fa-rebel\",\n \"refresh\": \"fas fa-sync\",\n \"remove\": \"fas fa-times\",\n \"remove-sign\": \"fas fa-ban\",\n \"reorder\": \"fas fa-bars\",\n \"repeat\": \"fas fa-redo\",\n \"resistance\": \"fab fa-rebel\",\n \"rmb\": \"fas fa-yen-sign\",\n \"rotate-left\": \"fas fa-undo\",\n \"rotate-right\": \"fas fa-redo\",\n \"rouble\": \"fas fa-ruble-sign\",\n \"rub\": \"fas fa-ruble-sign\",\n \"ruble\": \"fas fa-ruble-sign\",\n \"rupee\": \"fas fa-rupee-sign\",\n \"s15\": \"fas fa-bath\",\n \"scissors\": \"fas fa-cut\",\n \"send\": \"fas fa-paper-plane\",\n \"send-o\": \"far fa-paper-plane\",\n \"share-square-o\": \"far fa-share-square\",\n \"shekel\": \"fas fa-shekel-sign\",\n \"sheqel\": \"fas fa-shekel-sign\",\n \"shield\": \"fas fa-shield-alt\",\n \"sign-in\": \"fas fa-sign-in-alt\",\n \"sign-out\": \"fas fa-sign-out-alt\",\n \"signing\": \"fas fa-sign-language\",\n \"sliders\": \"fas fa-sliders-h\",\n \"smile-o\": \"far fa-smile\",\n \"snowflake-o\": \"far fa-snowflake\",\n \"soccer-ball-o\": \"far fa-futbol\",\n \"sort-alpha-asc\": \"fas fa-sort-alpha-down\",\n \"sort-alpha-desc\": \"fas fa-sort-alpha-up\",\n \"sort-amount-asc\": \"fas fa-sort-amount-down\",\n \"sort-amount-desc\": \"fas fa-sort-amount-up\",\n \"sort-asc\": \"fas fa-sort-up\",\n \"sort-desc\": \"fas fa-sort-down\",\n \"sort-numeric-asc\": \"fas fa-sort-numeric-down\",\n \"sort-numeric-desc\": \"fas fa-sort-numeric-up\",\n \"spoon\": \"fas fa-utensil-spoon\",\n \"square-o\": \"far fa-square\",\n \"star-half-empty\": \"far fa-star-half\",\n \"star-half-full\": \"far fa-star-half\",\n \"star-half-o\": \"far fa-star-half\",\n \"star-o\": \"far fa-star\",\n \"sticky-note-o\": \"far fa-sticky-note\",\n \"stop-circle-o\": \"far fa-stop-circle\",\n \"sun-o\": \"far fa-sun\",\n \"support\": \"far fa-life-ring\",\n \"tablet\": \"fas fa-tablet-alt\",\n \"tachometer\": \"fas fa-tachometer-alt\",\n \"television\": \"fas fa-tv\",\n \"thermometer\": \"fas fa-thermometer-full\",\n \"thermometer-0\": \"fas fa-thermometer-empty\",\n \"thermometer-1\": \"fas fa-thermometer-quarter\",\n \"thermometer-2\": \"fas fa-thermometer-half\",\n \"thermometer-3\": \"fas fa-thermometer-three-quarters\",\n \"thermometer-4\": \"fas fa-thermometer-full\",\n \"thumb-tack\": \"fas fa-thumbtack\",\n \"thumbs-o-down\": \"far fa-thumbs-down\",\n \"thumbs-o-up\": \"far fa-thumbs-up\",\n \"ticket\": \"fas fa-ticket-alt\",\n \"times-circle-o\": \"far fa-times-circle\",\n \"times-rectangle\": \"fas fa-window-close\",\n \"times-rectangle-o\": \"far fa-window-close\",\n \"toggle-down\": \"far fa-caret-square-down\",\n \"toggle-left\": \"far fa-caret-square-left\",\n \"toggle-right\": \"far fa-caret-square-right\",\n \"toggle-up\": \"far fa-caret-square-up\",\n \"trash\": \"fas fa-trash-alt\",\n \"trash-o\": \"far fa-trash-alt\",\n \"try\": \"fas fa-lira-sign\",\n \"turkish-lira\": \"fas fa-lira-sign\",\n \"unsorted\": \"fas fa-sort\",\n \"upload-alt\": \"fas fa-upload\",\n \"usd\": \"fas fa-dollar-sign\",\n \"user-circle-o\": \"far fa-user-circle\",\n \"user-o\": \"far fa-user\",\n \"vcard\": \"fas fa-address-card\",\n \"vcard-o\": \"far fa-address-card\",\n \"video-camera\": \"fas fa-video\",\n \"vimeo\": \"fab fa-vimeo-v\",\n \"volume-control-phone\": \"fas fa-phone-volume\",\n \"warning\": \"fas fa-exclamation-triangle\",\n \"wechat\": \"fab fa-weixin\",\n \"wheelchair-alt\": \"fab fa-accessible-icon\",\n \"window-close-o\": \"far fa-window-close\",\n \"won\": \"fas fa-won-sign\",\n \"y-combinator-square\": \"fab fa-hacker-news\",\n \"yc\": \"fab fa-y-combinator\",\n \"yc-square\": \"fab fa-hacker-news\",\n \"yen\": \"fas fa-yen-sign\",\n \"youtube-play\": \"fab fa-youtube\",\n \"youtube-square\": \"fab fa-youtube\"\n};\nvar brands = [\n \"500px\",\n \"accessible-icon\",\n \"accusoft\",\n \"adn\",\n \"adversal\",\n \"affiliatetheme\",\n \"algolia\",\n \"amazon\",\n \"amazon-pay\",\n \"amilia\",\n \"android\",\n \"angellist\",\n \"angrycreative\",\n \"angular\",\n \"app-store\",\n \"app-store-ios\",\n \"apper\",\n \"apple\",\n \"apple-pay\",\n \"asymmetrik\",\n \"audible\",\n \"autoprefixer\",\n \"avianex\",\n \"aviato\",\n \"aws\",\n \"bandcamp\",\n \"behance\",\n \"behance-square\",\n \"bimobject\",\n \"bitbucket\",\n \"bitcoin\",\n \"bity\",\n \"black-tie\",\n \"blackberry\",\n \"blogger\",\n \"blogger-b\",\n \"bluetooth\",\n \"bluetooth-b\",\n \"btc\",\n \"buromobelexperte\",\n \"buysellads\",\n \"cc-amazon-pay\",\n \"cc-amex\",\n \"cc-apple-pay\",\n \"cc-diners-club\",\n \"cc-discover\",\n \"cc-jcb\",\n \"cc-mastercard\",\n \"cc-paypal\",\n \"cc-stripe\",\n \"cc-visa\",\n \"centercode\",\n \"chrome\",\n \"cloudscale\",\n \"cloudsmith\",\n \"cloudversify\",\n \"codepen\",\n \"codiepie\",\n \"connectdevelop\",\n \"contao\",\n \"cpanel\",\n \"creative-commons\",\n \"creative-commons-by\",\n \"creative-commons-nc\",\n \"creative-commons-nc-eu\",\n \"creative-commons-nc-jp\",\n \"creative-commons-nd\",\n \"creative-commons-pd\",\n \"creative-commons-pd-alt\",\n \"creative-commons-remix\",\n \"creative-commons-sa\",\n \"creative-commons-sampling\",\n \"creative-commons-sampling-plus\",\n \"creative-commons-share\",\n \"css3\",\n \"css3-alt\",\n \"cuttlefish\",\n \"d-and-d\",\n \"dashcube\",\n \"delicious\",\n \"deploydog\",\n \"deskpro\",\n \"deviantart\",\n \"digg\",\n \"digital-ocean\",\n \"discord\",\n \"discourse\",\n \"dochub\",\n \"docker\",\n \"draft2digital\",\n \"dribbble\",\n \"dribbble-square\",\n \"dropbox\",\n \"drupal\",\n \"dyalog\",\n \"earlybirds\",\n \"ebay\",\n \"edge\",\n \"elementor\",\n \"ello\",\n \"ember\",\n \"empire\",\n \"envira\",\n \"erlang\",\n \"ethereum\",\n \"etsy\",\n \"expeditedssl\",\n \"facebook\",\n \"facebook-f\",\n \"facebook-messenger\",\n \"facebook-square\",\n \"firefox\",\n \"first-order\",\n \"first-order-alt\",\n \"firstdraft\",\n \"flickr\",\n \"flipboard\",\n \"fly\",\n \"font-awesome\",\n \"font-awesome-alt\",\n \"font-awesome-flag\",\n \"font-awesome-logo-full\",\n \"fonticons\",\n \"fonticons-fi\",\n \"fort-awesome\",\n \"fort-awesome-alt\",\n \"forumbee\",\n \"foursquare\",\n \"free-code-camp\",\n \"freebsd\",\n \"fulcrum\",\n \"galactic-republic\",\n \"galactic-senate\",\n \"get-pocket\",\n \"gg\",\n \"gg-circle\",\n \"git\",\n \"git-square\",\n \"github\",\n \"github-alt\",\n \"github-square\",\n \"gitkraken\",\n \"gitlab\",\n \"gitter\",\n \"glide\",\n \"glide-g\",\n \"gofore\",\n \"goodreads\",\n \"goodreads-g\",\n \"google\",\n \"google-drive\",\n \"google-play\",\n \"google-plus\",\n \"google-plus-g\",\n \"google-plus-square\",\n \"google-wallet\",\n \"gratipay\",\n \"grav\",\n \"gripfire\",\n \"grunt\",\n \"gulp\",\n \"hacker-news\",\n \"hacker-news-square\",\n \"hackerrank\",\n \"hips\",\n \"hire-a-helper\",\n \"hooli\",\n \"hornbill\",\n \"hotjar\",\n \"houzz\",\n \"html5\",\n \"hubspot\",\n \"imdb\",\n \"instagram\",\n \"internet-explorer\",\n \"ioxhost\",\n \"itunes\",\n \"itunes-note\",\n \"java\",\n \"jedi-order\",\n \"jenkins\",\n \"joget\",\n \"joomla\",\n \"js\",\n \"js-square\",\n \"jsfiddle\",\n \"kaggle\",\n \"keybase\",\n \"keycdn\",\n \"kickstarter\",\n \"kickstarter-k\",\n \"korvue\",\n \"laravel\",\n \"lastfm\",\n \"lastfm-square\",\n \"leanpub\",\n \"less\",\n \"line\",\n \"linkedin\",\n \"linkedin-in\",\n \"linode\",\n \"linux\",\n \"lyft\",\n \"magento\",\n \"mailchimp\",\n \"mandalorian\",\n \"markdown\",\n \"mastodon\",\n \"maxcdn\",\n \"medapps\",\n \"medium\",\n \"medium-m\",\n \"medrt\",\n \"meetup\",\n \"megaport\",\n \"microsoft\",\n \"mix\",\n \"mixcloud\",\n \"mizuni\",\n \"modx\",\n \"monero\",\n \"napster\",\n \"neos\",\n \"nimblr\",\n \"nintendo-switch\",\n \"node\",\n \"node-js\",\n \"npm\",\n \"ns8\",\n \"nutritionix\",\n \"odnoklassniki\",\n \"odnoklassniki-square\",\n \"old-republic\",\n \"opencart\",\n \"openid\",\n \"opera\",\n \"optin-monster\",\n \"osi\",\n \"page4\",\n \"pagelines\",\n \"palfed\",\n \"patreon\",\n \"paypal\",\n \"periscope\",\n \"phabricator\",\n \"phoenix-framework\",\n \"phoenix-squadron\",\n \"php\",\n \"pied-piper\",\n \"pied-piper-alt\",\n \"pied-piper-hat\",\n \"pied-piper-pp\",\n \"pinterest\",\n \"pinterest-p\",\n \"pinterest-square\",\n \"playstation\",\n \"product-hunt\",\n \"pushed\",\n \"python\",\n \"qq\",\n \"quinscape\",\n \"quora\",\n \"r-project\",\n \"ravelry\",\n \"react\",\n \"readme\",\n \"rebel\",\n \"red-river\",\n \"reddit\",\n \"reddit-alien\",\n \"reddit-square\",\n \"rendact\",\n \"renren\",\n \"replyd\",\n \"researchgate\",\n \"resolving\",\n \"rev\",\n \"rocketchat\",\n \"rockrms\",\n \"safari\",\n \"sass\",\n \"schlix\",\n \"scribd\",\n \"searchengin\",\n \"sellcast\",\n \"sellsy\",\n \"servicestack\",\n \"shirtsinbulk\",\n \"shopware\",\n \"simplybuilt\",\n \"sistrix\",\n \"sith\",\n \"skyatlas\",\n \"skype\",\n \"slack\",\n \"slack-hash\",\n \"slideshare\",\n \"snapchat\",\n \"snapchat-ghost\",\n \"snapchat-square\",\n \"soundcloud\",\n \"speakap\",\n \"spotify\",\n \"squarespace\",\n \"stack-exchange\",\n \"stack-overflow\",\n \"staylinked\",\n \"steam\",\n \"steam-square\",\n \"steam-symbol\",\n \"sticker-mule\",\n \"strava\",\n \"stripe\",\n \"stripe-s\",\n \"studiovinari\",\n \"stumbleupon\",\n \"stumbleupon-circle\",\n \"superpowers\",\n \"supple\",\n \"teamspeak\",\n \"telegram\",\n \"telegram-plane\",\n \"tencent-weibo\",\n \"themeco\",\n \"themeisle\",\n \"trade-federation\",\n \"trello\",\n \"tripadvisor\",\n \"tumblr\",\n \"tumblr-square\",\n \"twitch\",\n \"twitter\",\n \"twitter-square\",\n \"typo3\",\n \"uber\",\n \"uikit\",\n \"uniregistry\",\n \"untappd\",\n \"usb\",\n \"ussunnah\",\n \"vaadin\",\n \"viacoin\",\n \"viadeo\",\n \"viadeo-square\",\n \"viber\",\n \"vimeo\",\n \"vimeo-square\",\n \"vimeo-v\",\n \"vine\",\n \"vk\",\n \"vnv\",\n \"vuejs\",\n \"weebly\",\n \"weibo\",\n \"weixin\",\n \"whatsapp\",\n \"whatsapp-square\",\n \"whmcs\",\n \"wikipedia-w\",\n \"windows\",\n \"wix\",\n \"wolf-pack-battalion\",\n \"wordpress\",\n \"wordpress-simple\",\n \"wpbeginner\",\n \"wpexplorer\",\n \"wpforms\",\n \"xbox\",\n \"xing\",\n \"xing-square\",\n \"y-combinator\",\n \"yahoo\",\n \"yandex\",\n \"yandex-international\",\n \"yelp\",\n \"yoast\",\n \"youtube\",\n \"youtube-square\",\n \"zhihu\"\n];\nvar mapper = (icon)=>{\n const iconName = trimPrefixes(icon).trim();\n if (map[iconName]) return map[iconName];\n if (brands.includes(iconName)) return \"fab fa-\" + iconName;\n if (!iconName.includes(\" \")) return \"fas fa-\" + iconName;\n return iconName;\n};\nfunction trimPrefixes(icon) {\n if (icon.startsWith(\"fas fa-\")) return icon.substr(7).split(\" \")[0];\n if (icon.startsWith(\"icon-\")) return icon.substr(5).split(\" \")[0];\n return icon;\n}\nvar mapper_default = mapper;\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iajEY\":[function(require,module,exports) {\n// src/Icon/resourceIcon.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>resourceIcon_default);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactSvg = require(\"react-svg\");\nvar _iconDefaultProps = require(\"./iconDefaultProps\");\nvar ResourceIcon = class extends (0, _react.PureComponent) {\n render() {\n const { padded , theme , label , icon , className , color , size } = this.props;\n if (!icon || icon.substr(0, 11) !== \"resource://\") return null;\n const iconResourcePath = \"/_Resources/Static/Packages/\" + icon.substr(11);\n const classNames = (0, _classnamesDefault.default)(theme.icon, className, {\n [theme[\"icon--resource\"]]: icon,\n [theme[\"icon--paddedLeft\"]]: padded === \"left\",\n [theme[\"icon--paddedRight\"]]: padded === \"right\",\n [theme[\"icon--color-warn\"]]: color === \"warn\",\n [theme[\"icon--color-error\"]]: color === \"error\",\n [theme[\"icon--color-primaryBlue\"]]: color === \"primaryBlue\",\n [theme[\"icon--huge\"]]: size === \"3x\",\n [theme[\"icon--large\"]]: size === \"2x\",\n [theme[\"icon--big\"]]: size === \"lg\",\n [theme[\"icon--small\"]]: size === \"sm\",\n [theme[\"icon--tiny\"]]: size === \"xs\"\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _reactSvg.ReactSVG), {\n src: iconResourcePath,\n \"aria-label\": label,\n className: classNames,\n wrapper: \"span\"\n });\n }\n};\nResourceIcon.defaultProps = (0, _iconDefaultProps.defaultProps);\nvar resourceIcon_default = ResourceIcon;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"react-svg\":\"gHXBt\",\"./iconDefaultProps\":\"a03TF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gHXBt\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ReactSVG\", ()=>ReactSVG);\nvar _objectWithoutPropertiesLoose = require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\");\nvar _objectWithoutPropertiesLooseDefault = parcelHelpers.interopDefault(_objectWithoutPropertiesLoose);\nvar _inheritsLoose = require(\"@babel/runtime/helpers/inheritsLoose\");\nvar _inheritsLooseDefault = parcelHelpers.interopDefault(_inheritsLoose);\nvar _svgInjector = require(\"@tanem/svg-injector\");\nvar _propTypes = require(\"prop-types\");\nvar _react = require(\"react\");\nvar _server = require(\"react-dom/server\");\nvar _serverDefault = parcelHelpers.interopDefault(_server);\n// Hat-tip: https://github.com/developit/preact-compat/blob/master/src/index.js#L402.\nvar shallowDiffers = function shallowDiffers(a, b) {\n for(var i in a){\n if (!(i in b)) return true;\n }\n for(var _i in b){\n if (a[_i] !== b[_i]) return true;\n }\n return false;\n};\nvar ReactSVG = /*#__PURE__*/ function(_React$Component) {\n (0, _inheritsLooseDefault.default)(ReactSVG, _React$Component);\n function ReactSVG() {\n var _this;\n _this = _React$Component.apply(this, arguments) || this;\n _this.initialState = {\n hasError: false,\n isLoading: true\n };\n _this.state = _this.initialState;\n _this._isMounted = false;\n _this.refCallback = function(container) {\n _this.container = container;\n };\n return _this;\n }\n var _proto = ReactSVG.prototype;\n _proto.renderSVG = function renderSVG() {\n var _this2 = this;\n /* istanbul ignore else */ if (this.container instanceof Node) {\n var _this$props = this.props, beforeInjection = _this$props.beforeInjection, evalScripts = _this$props.evalScripts, renumerateIRIElements = _this$props.renumerateIRIElements, src = _this$props.src, useRequestCache = _this$props.useRequestCache;\n /* eslint-disable @typescript-eslint/no-non-null-assertion */ var afterInjection = this.props.afterInjection;\n var Wrapper = this.props.wrapper;\n /* eslint-enable @typescript-eslint/no-non-null-assertion */ var wrapper = document.createElement(Wrapper);\n wrapper.innerHTML = (0, _serverDefault.default).renderToStaticMarkup(/*#__PURE__*/ (0, _react.createElement)(Wrapper, null, /*#__PURE__*/ (0, _react.createElement)(Wrapper, {\n \"data-src\": src\n })));\n this.svgWrapper = this.container.appendChild(wrapper.firstChild);\n var afterEach = function afterEach(error, svg) {\n if (error) _this2.removeSVG();\n // TODO: It'd be better to cleanly unsubscribe from SVGInjector\n // callbacks instead of tracking a property like this.\n if (_this2._isMounted) _this2.setState(function() {\n return {\n hasError: !!error,\n isLoading: false\n };\n }, function() {\n afterInjection(error, svg);\n });\n };\n (0, _svgInjector.SVGInjector)(this.svgWrapper.firstChild, {\n afterEach: afterEach,\n beforeEach: beforeInjection,\n cacheRequests: useRequestCache,\n evalScripts: evalScripts,\n renumerateIRIElements: renumerateIRIElements\n });\n }\n };\n _proto.removeSVG = function removeSVG() {\n if (this.container instanceof Node && this.svgWrapper instanceof Node) {\n this.container.removeChild(this.svgWrapper);\n this.svgWrapper = null;\n }\n };\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n this.renderSVG();\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this3 = this;\n if (shallowDiffers(prevProps, this.props)) this.setState(function() {\n return _this3.initialState;\n }, function() {\n _this3.removeSVG();\n _this3.renderSVG();\n });\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isMounted = false;\n this.removeSVG();\n };\n _proto.render = function render() {\n /* eslint-disable @typescript-eslint/no-unused-vars */ var _this$props2 = this.props;\n _this$props2.afterInjection;\n _this$props2.beforeInjection;\n _this$props2.evalScripts;\n var Fallback = _this$props2.fallback, Loading = _this$props2.loading;\n _this$props2.renumerateIRIElements;\n _this$props2.src;\n _this$props2.useRequestCache;\n var wrapper = _this$props2.wrapper, rest = (0, _objectWithoutPropertiesLooseDefault.default)(_this$props2, [\n \"afterInjection\",\n \"beforeInjection\",\n \"evalScripts\",\n \"fallback\",\n \"loading\",\n \"renumerateIRIElements\",\n \"src\",\n \"useRequestCache\",\n \"wrapper\"\n ]);\n /* eslint-enable @typescript-eslint/no-unused-vars */ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n var Wrapper = wrapper;\n return /*#__PURE__*/ (0, _react.createElement)(Wrapper, Object.assign({}, rest, {\n ref: this.refCallback\n }), this.state.isLoading && Loading && /*#__PURE__*/ (0, _react.createElement)(Loading, null), this.state.hasError && Fallback && /*#__PURE__*/ (0, _react.createElement)(Fallback, null));\n };\n return ReactSVG;\n}((0, _react.Component));\nReactSVG.defaultProps = {\n afterInjection: function afterInjection() {\n return undefined;\n },\n beforeInjection: function beforeInjection() {\n return undefined;\n },\n evalScripts: \"never\",\n fallback: null,\n loading: null,\n renumerateIRIElements: true,\n useRequestCache: true,\n wrapper: \"div\"\n};\nReactSVG.propTypes = {\n afterInjection: (0, _propTypes.func),\n beforeInjection: (0, _propTypes.func),\n evalScripts: (0, _propTypes.oneOf)([\n \"always\",\n \"once\",\n \"never\"\n ]),\n fallback: (0, _propTypes.oneOfType)([\n (0, _propTypes.func),\n (0, _propTypes.object),\n (0, _propTypes.string)\n ]),\n loading: (0, _propTypes.oneOfType)([\n (0, _propTypes.func),\n (0, _propTypes.object),\n (0, _propTypes.string)\n ]),\n renumerateIRIElements: (0, _propTypes.bool),\n src: (0, _propTypes.string).isRequired,\n useRequestCache: (0, _propTypes.bool),\n wrapper: (0, _propTypes.oneOf)([\n \"div\",\n \"span\"\n ])\n};\n\n},{\"@babel/runtime/helpers/objectWithoutPropertiesLoose\":\"6Cqwx\",\"@babel/runtime/helpers/inheritsLoose\":\"j53wo\",\"@tanem/svg-injector\":\"ffWBM\",\"prop-types\":\"6FKs7\",\"react\":\"6uln9\",\"react-dom/server\":\"acq5Z\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6Cqwx\":[function(require,module,exports) {\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n},{}],\"j53wo\":[function(require,module,exports) {\nvar setPrototypeOf = require(\"56507d829b6b7d3d\");\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n},{\"56507d829b6b7d3d\":\"lL0sw\"}],\"lL0sw\":[function(require,module,exports) {\nfunction _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\n},{}],\"ffWBM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SVGInjector\", ()=>SVGInjector);\nvar _tslib = require(\"tslib\");\nvar _contentType = require(\"content-type\");\nvar cloneSvg = function cloneSvg(sourceSvg) {\n return sourceSvg.cloneNode(true);\n};\nvar isLocal = function isLocal() {\n return window.location.protocol === \"file:\";\n};\nvar makeAjaxRequest = function makeAjaxRequest(url, callback) {\n var httpRequest = new XMLHttpRequest();\n httpRequest.onreadystatechange = function() {\n try {\n if (!/\\.svg/i.test(url) && httpRequest.readyState === 2) {\n var contentType = httpRequest.getResponseHeader(\"Content-Type\");\n if (!contentType) throw new Error(\"Content type not found\");\n var type = (0, _contentType.parse)(contentType).type;\n if (!(type === \"image/svg+xml\" || type === \"text/plain\")) throw new Error(\"Invalid content type: \" + type);\n }\n if (httpRequest.readyState === 4) {\n if (httpRequest.status === 404 || httpRequest.responseXML === null) throw new Error(isLocal() ? \"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.\" : \"Unable to load SVG file: \" + url);\n if (httpRequest.status === 200 || isLocal() && httpRequest.status === 0) callback(null, httpRequest);\n else throw new Error(\"There was a problem injecting the SVG: \" + httpRequest.status + \" \" + httpRequest.statusText);\n }\n } catch (error) {\n httpRequest.abort();\n callback(error, httpRequest);\n }\n };\n httpRequest.open(\"GET\", url);\n if (httpRequest.overrideMimeType) httpRequest.overrideMimeType(\"text/xml\");\n httpRequest.send();\n};\nvar svgCache = new Map();\nvar requestQueue = {};\nvar queueRequest = function queueRequest(url, callback) {\n requestQueue[url] = requestQueue[url] || [];\n requestQueue[url].push(callback);\n};\nvar processRequestQueue = function processRequestQueue(url) {\n var _loop_1 = function _loop_1(i, len) {\n setTimeout(function() {\n if (Array.isArray(requestQueue[url])) {\n var cacheValue = svgCache.get(url);\n var callback = requestQueue[url][i];\n if (cacheValue instanceof SVGElement) callback(null, cloneSvg(cacheValue));\n if (cacheValue instanceof Error) callback(cacheValue);\n if (i === requestQueue[url].length - 1) delete requestQueue[url];\n }\n }, 0);\n };\n for(var i = 0, len = requestQueue[url].length; i < len; i++)_loop_1(i);\n};\nvar loadSvgCached = function loadSvgCached(url, callback) {\n if (svgCache.has(url)) {\n var cacheValue = svgCache.get(url);\n if (cacheValue instanceof SVGElement) {\n callback(null, cloneSvg(cacheValue));\n return;\n }\n if (cacheValue instanceof Error) {\n callback(cacheValue);\n return;\n }\n queueRequest(url, callback);\n return;\n }\n svgCache.set(url, undefined);\n queueRequest(url, callback);\n makeAjaxRequest(url, function(error, httpRequest) {\n if (error) svgCache.set(url, error);\n else if (httpRequest.responseXML instanceof Document && httpRequest.responseXML.documentElement && httpRequest.responseXML.documentElement instanceof SVGElement) svgCache.set(url, httpRequest.responseXML.documentElement);\n processRequestQueue(url);\n });\n};\nvar loadSvgUncached = function loadSvgUncached(url, callback) {\n makeAjaxRequest(url, function(error, httpRequest) {\n if (error) callback(error);\n else if (httpRequest.responseXML instanceof Document && httpRequest.responseXML.documentElement && httpRequest.responseXML.documentElement instanceof SVGElement) callback(null, httpRequest.responseXML.documentElement);\n });\n};\nvar idCounter = 0;\nvar uniqueId = function uniqueId() {\n return ++idCounter;\n};\nvar injectedElements = [];\nvar ranScripts = {};\nvar svgNamespace = \"http://www.w3.org/2000/svg\";\nvar xlinkNamespace = \"http://www.w3.org/1999/xlink\";\nvar injectElement = function injectElement(el, evalScripts, renumerateIRIElements, cacheRequests, beforeEach, callback) {\n var imgUrl = el.getAttribute(\"data-src\") || el.getAttribute(\"src\");\n if (!imgUrl) {\n callback(new Error(\"Invalid data-src or src attribute\"));\n return;\n }\n if (injectedElements.indexOf(el) !== -1) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n return;\n }\n injectedElements.push(el);\n el.setAttribute(\"src\", \"\");\n var loadSvg = cacheRequests ? loadSvgCached : loadSvgUncached;\n loadSvg(imgUrl, function(error, svg) {\n if (!svg) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(error);\n return;\n }\n var imgId = el.getAttribute(\"id\");\n if (imgId) svg.setAttribute(\"id\", imgId);\n var imgTitle = el.getAttribute(\"title\");\n if (imgTitle) svg.setAttribute(\"title\", imgTitle);\n var imgWidth = el.getAttribute(\"width\");\n if (imgWidth) svg.setAttribute(\"width\", imgWidth);\n var imgHeight = el.getAttribute(\"height\");\n if (imgHeight) svg.setAttribute(\"height\", imgHeight);\n var mergedClasses = Array.from(new Set((0, _tslib.__spreadArrays)((svg.getAttribute(\"class\") || \"\").split(\" \"), [\n \"injected-svg\"\n ], (el.getAttribute(\"class\") || \"\").split(\" \")))).join(\" \").trim();\n svg.setAttribute(\"class\", mergedClasses);\n var imgStyle = el.getAttribute(\"style\");\n if (imgStyle) svg.setAttribute(\"style\", imgStyle);\n svg.setAttribute(\"data-src\", imgUrl);\n var imgData = [].filter.call(el.attributes, function(at) {\n return /^data-\\w[\\w-]*$/.test(at.name);\n });\n Array.prototype.forEach.call(imgData, function(dataAttr) {\n if (dataAttr.name && dataAttr.value) svg.setAttribute(dataAttr.name, dataAttr.value);\n });\n if (renumerateIRIElements) {\n var iriElementsAndProperties_1 = {\n clipPath: [\n \"clip-path\"\n ],\n \"color-profile\": [\n \"color-profile\"\n ],\n cursor: [\n \"cursor\"\n ],\n filter: [\n \"filter\"\n ],\n linearGradient: [\n \"fill\",\n \"stroke\"\n ],\n marker: [\n \"marker\",\n \"marker-start\",\n \"marker-mid\",\n \"marker-end\"\n ],\n mask: [\n \"mask\"\n ],\n path: [],\n pattern: [\n \"fill\",\n \"stroke\"\n ],\n radialGradient: [\n \"fill\",\n \"stroke\"\n ]\n };\n var element_1;\n var elements_1;\n var properties_1;\n var currentId_1;\n var newId_1;\n Object.keys(iriElementsAndProperties_1).forEach(function(key) {\n element_1 = key;\n properties_1 = iriElementsAndProperties_1[key];\n elements_1 = svg.querySelectorAll(element_1 + \"[id]\");\n var _loop_1 = function _loop_1(a, elementsLen) {\n currentId_1 = elements_1[a].id;\n newId_1 = currentId_1 + \"-\" + uniqueId();\n var referencingElements;\n Array.prototype.forEach.call(properties_1, function(property) {\n referencingElements = svg.querySelectorAll(\"[\" + property + '*=\"' + currentId_1 + '\"]');\n for(var b = 0, referencingElementLen = referencingElements.length; b < referencingElementLen; b++){\n var attrValue = referencingElements[b].getAttribute(property);\n if (attrValue && !attrValue.match(new RegExp('url\\\\(\"?#' + currentId_1 + '\"?\\\\)'))) continue;\n referencingElements[b].setAttribute(property, \"url(#\" + newId_1 + \")\");\n }\n });\n var allLinks = svg.querySelectorAll(\"[*|href]\");\n var links = [];\n for(var c = 0, allLinksLen = allLinks.length; c < allLinksLen; c++){\n var href = allLinks[c].getAttributeNS(xlinkNamespace, \"href\");\n if (href && href.toString() === \"#\" + elements_1[a].id) links.push(allLinks[c]);\n }\n for(var d = 0, linksLen = links.length; d < linksLen; d++)links[d].setAttributeNS(xlinkNamespace, \"href\", \"#\" + newId_1);\n elements_1[a].id = newId_1;\n };\n for(var a = 0, elementsLen = elements_1.length; a < elementsLen; a++)_loop_1(a);\n });\n }\n svg.removeAttribute(\"xmlns:a\");\n var scripts = svg.querySelectorAll(\"script\");\n var scriptsToEval = [];\n var script;\n var scriptType;\n for(var i = 0, scriptsLen = scripts.length; i < scriptsLen; i++){\n scriptType = scripts[i].getAttribute(\"type\");\n if (!scriptType || scriptType === \"application/ecmascript\" || scriptType === \"application/javascript\" || scriptType === \"text/javascript\") {\n script = scripts[i].innerText || scripts[i].textContent;\n if (script) scriptsToEval.push(script);\n svg.removeChild(scripts[i]);\n }\n }\n if (scriptsToEval.length > 0 && (evalScripts === \"always\" || evalScripts === \"once\" && !ranScripts[imgUrl])) {\n for(var l = 0, scriptsToEvalLen = scriptsToEval.length; l < scriptsToEvalLen; l++)new Function(scriptsToEval[l])(window);\n ranScripts[imgUrl] = true;\n }\n var styleTags = svg.querySelectorAll(\"style\");\n Array.prototype.forEach.call(styleTags, function(styleTag) {\n styleTag.textContent += \"\";\n });\n svg.setAttribute(\"xmlns\", svgNamespace);\n svg.setAttribute(\"xmlns:xlink\", xlinkNamespace);\n beforeEach(svg);\n if (el.parentNode) el.parentNode.replaceChild(svg, el);\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(null, svg);\n });\n};\nvar SVGInjector = function SVGInjector(elements, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.afterAll, afterAll = _c === void 0 ? function() {\n return undefined;\n } : _c, _d = _b.afterEach, afterEach = _d === void 0 ? function() {\n return undefined;\n } : _d, _e = _b.beforeEach, beforeEach = _e === void 0 ? function() {\n return undefined;\n } : _e, _f = _b.cacheRequests, cacheRequests = _f === void 0 ? true : _f, _g = _b.evalScripts, evalScripts = _g === void 0 ? \"never\" : _g, _h = _b.renumerateIRIElements, renumerateIRIElements = _h === void 0 ? true : _h;\n if (elements && \"length\" in elements) {\n var elementsLoaded_1 = 0;\n for(var i = 0, j = elements.length; i < j; i++)injectElement(elements[i], evalScripts, renumerateIRIElements, cacheRequests, beforeEach, function(error, svg) {\n afterEach(error, svg);\n if (elements && \"length\" in elements && elements.length === ++elementsLoaded_1) afterAll(elementsLoaded_1);\n });\n } else if (elements) injectElement(elements, evalScripts, renumerateIRIElements, cacheRequests, beforeEach, function(error, svg) {\n afterEach(error, svg);\n afterAll(1);\n elements = null;\n });\n else afterAll(0);\n};\n\n},{\"tslib\":\"gBS4y\",\"content-type\":\"hh7m9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hh7m9\":[function(require,module,exports) {\n/*!\n * content-type\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */ \"use strict\";\n/**\n * RegExp to match *( \";\" parameter ) in RFC 7231 sec 3.1.1.1\n *\n * parameter = token \"=\" ( token / quoted-string )\n * token = 1*tchar\n * tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\"\n * / \"+\" / \"-\" / \".\" / \"^\" / \"_\" / \"`\" / \"|\" / \"~\"\n * / DIGIT / ALPHA\n * ; any VCHAR, except delimiters\n * quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE\n * qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text\n * obs-text = %x80-FF\n * quoted-pair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\n */ var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *(\"(?:[\\u000b\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e\\u0080-\\u00ff]|\\\\[\\u000b\\u0020-\\u00ff])*\"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g // eslint-disable-line no-control-regex\n;\nvar TEXT_REGEXP = /^[\\u000b\\u0020-\\u007e\\u0080-\\u00ff]+$/ // eslint-disable-line no-control-regex\n;\nvar TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;\n/**\n * RegExp to match quoted-pair in RFC 7230 sec 3.2.6\n *\n * quoted-pair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\n * obs-text = %x80-FF\n */ var QESC_REGEXP = /\\\\([\\u000b\\u0020-\\u00ff])/g // eslint-disable-line no-control-regex\n;\n/**\n * RegExp to match chars that must be quoted-pair in RFC 7230 sec 3.2.6\n */ var QUOTE_REGEXP = /([\\\\\"])/g;\n/**\n * RegExp to match type in RFC 7231 sec 3.1.1.1\n *\n * media-type = type \"/\" subtype\n * type = token\n * subtype = token\n */ var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;\n/**\n * Module exports.\n * @public\n */ exports.format = format;\nexports.parse = parse;\n/**\n * Format object to media type.\n *\n * @param {object} obj\n * @return {string}\n * @public\n */ function format(obj) {\n if (!obj || typeof obj !== \"object\") throw new TypeError(\"argument obj is required\");\n var parameters = obj.parameters;\n var type = obj.type;\n if (!type || !TYPE_REGEXP.test(type)) throw new TypeError(\"invalid type\");\n var string = type;\n // append parameters\n if (parameters && typeof parameters === \"object\") {\n var param;\n var params = Object.keys(parameters).sort();\n for(var i = 0; i < params.length; i++){\n param = params[i];\n if (!TOKEN_REGEXP.test(param)) throw new TypeError(\"invalid parameter name\");\n string += \"; \" + param + \"=\" + qstring(parameters[param]);\n }\n }\n return string;\n}\n/**\n * Parse media type to object.\n *\n * @param {string|object} string\n * @return {Object}\n * @public\n */ function parse(string) {\n if (!string) throw new TypeError(\"argument string is required\");\n // support req/res-like objects as argument\n var header = typeof string === \"object\" ? getcontenttype(string) : string;\n if (typeof header !== \"string\") throw new TypeError(\"argument string is required to be a string\");\n var index = header.indexOf(\";\");\n var type = index !== -1 ? header.slice(0, index).trim() : header.trim();\n if (!TYPE_REGEXP.test(type)) throw new TypeError(\"invalid media type\");\n var obj = new ContentType(type.toLowerCase());\n // parse parameters\n if (index !== -1) {\n var key;\n var match;\n var value;\n PARAM_REGEXP.lastIndex = index;\n while(match = PARAM_REGEXP.exec(header)){\n if (match.index !== index) throw new TypeError(\"invalid parameter format\");\n index += match[0].length;\n key = match[1].toLowerCase();\n value = match[2];\n if (value.charCodeAt(0) === 0x22 /* \" */ ) {\n // remove quotes\n value = value.slice(1, -1);\n // remove escapes\n if (value.indexOf(\"\\\\\") !== -1) value = value.replace(QESC_REGEXP, \"$1\");\n }\n obj.parameters[key] = value;\n }\n if (index !== header.length) throw new TypeError(\"invalid parameter format\");\n }\n return obj;\n}\n/**\n * Get content-type from req/res objects.\n *\n * @param {object}\n * @return {Object}\n * @private\n */ function getcontenttype(obj) {\n var header;\n if (typeof obj.getHeader === \"function\") // res-like\n header = obj.getHeader(\"content-type\");\n else if (typeof obj.headers === \"object\") // req-like\n header = obj.headers && obj.headers[\"content-type\"];\n if (typeof header !== \"string\") throw new TypeError(\"content-type header is missing from object\");\n return header;\n}\n/**\n * Quote a string if necessary.\n *\n * @param {string} val\n * @return {string}\n * @private\n */ function qstring(val) {\n var str = String(val);\n // no need to quote tokens\n if (TOKEN_REGEXP.test(str)) return str;\n if (str.length > 0 && !TEXT_REGEXP.test(str)) throw new TypeError(\"invalid parameter value\");\n return '\"' + str.replace(QUOTE_REGEXP, \"\\\\$1\") + '\"';\n}\n/**\n * Class to represent a content type.\n * @private\n */ function ContentType(type) {\n this.parameters = Object.create(null);\n this.type = type;\n}\n\n},{}],\"acq5Z\":[function(require,module,exports) {\n\"use strict\";\nmodule.exports = require(\"d38e18015ef6662b\");\n\n},{\"d38e18015ef6662b\":\"4zgGz\"}],\"4zgGz\":[function(require,module,exports) {\n/** @license React v16.14.0\n * react-dom-server.browser.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */ \"use strict\";\nvar k = require(\"2a760a3bc04cb618\"), l = require(\"25c06765b630fbbf\");\nfunction q(a) {\n for(var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++)b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\nvar t = \"function\" === typeof Symbol && Symbol.for, aa = t ? Symbol.for(\"react.portal\") : 60106, u = t ? Symbol.for(\"react.fragment\") : 60107, ba = t ? Symbol.for(\"react.strict_mode\") : 60108, ca = t ? Symbol.for(\"react.profiler\") : 60114, v = t ? Symbol.for(\"react.provider\") : 60109, da = t ? Symbol.for(\"react.context\") : 60110, ea = t ? Symbol.for(\"react.concurrent_mode\") : 60111, fa = t ? Symbol.for(\"react.forward_ref\") : 60112, B = t ? Symbol.for(\"react.suspense\") : 60113, ha = t ? Symbol.for(\"react.suspense_list\") : 60120, ia = t ? Symbol.for(\"react.memo\") : 60115, ja = t ? Symbol.for(\"react.lazy\") : 60116, ka = t ? Symbol.for(\"react.block\") : 60121, la = t ? Symbol.for(\"react.fundamental\") : 60117, ma = t ? Symbol.for(\"react.scope\") : 60119;\nfunction na(a) {\n if (-1 === a._status) {\n a._status = 0;\n var b = a._ctor;\n b = b();\n a._result = b;\n b.then(function(c) {\n 0 === a._status && (c = c.default, a._status = 1, a._result = c);\n }, function(c) {\n 0 === a._status && (a._status = 2, a._result = c);\n });\n }\n}\nfunction C(a) {\n if (null == a) return null;\n if (\"function\" === typeof a) return a.displayName || a.name || null;\n if (\"string\" === typeof a) return a;\n switch(a){\n case u:\n return \"Fragment\";\n case aa:\n return \"Portal\";\n case ca:\n return \"Profiler\";\n case ba:\n return \"StrictMode\";\n case B:\n return \"Suspense\";\n case ha:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof a) switch(a.$$typeof){\n case da:\n return \"Context.Consumer\";\n case v:\n return \"Context.Provider\";\n case fa:\n var b = a.render;\n b = b.displayName || b.name || \"\";\n return a.displayName || (\"\" !== b ? \"ForwardRef(\" + b + \")\" : \"ForwardRef\");\n case ia:\n return C(a.type);\n case ka:\n return C(a.render);\n case ja:\n if (a = 1 === a._status ? a._result : null) return C(a);\n }\n return null;\n}\nvar D = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\nD.hasOwnProperty(\"ReactCurrentDispatcher\") || (D.ReactCurrentDispatcher = {\n current: null\n});\nD.hasOwnProperty(\"ReactCurrentBatchConfig\") || (D.ReactCurrentBatchConfig = {\n suspense: null\n});\nvar oa = {};\nfunction E(a, b) {\n for(var c = a._threadCount | 0; c <= b; c++)a[c] = a._currentValue2, a._threadCount = c + 1;\n}\nfunction pa(a, b, c, d) {\n if (d && (d = a.contextType, \"object\" === typeof d && null !== d)) return E(d, c), d[c];\n if (a = a.contextTypes) {\n c = {};\n for(var f in a)c[f] = b[f];\n b = c;\n } else b = oa;\n return b;\n}\nfor(var F = new Uint16Array(16), H = 0; 15 > H; H++)F[H] = H + 1;\nF[15] = 0;\nvar qa = /^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/, ra = Object.prototype.hasOwnProperty, sa = {}, ta = {};\nfunction ua(a) {\n if (ra.call(ta, a)) return !0;\n if (ra.call(sa, a)) return !1;\n if (qa.test(a)) return ta[a] = !0;\n sa[a] = !0;\n return !1;\n}\nfunction va(a, b, c, d) {\n if (null !== c && 0 === c.type) return !1;\n switch(typeof b){\n case \"function\":\n case \"symbol\":\n return !0;\n case \"boolean\":\n if (d) return !1;\n if (null !== c) return !c.acceptsBooleans;\n a = a.toLowerCase().slice(0, 5);\n return \"data-\" !== a && \"aria-\" !== a;\n default:\n return !1;\n }\n}\nfunction wa(a, b, c, d) {\n if (null === b || \"undefined\" === typeof b || va(a, b, c, d)) return !0;\n if (d) return !1;\n if (null !== c) switch(c.type){\n case 3:\n return !b;\n case 4:\n return !1 === b;\n case 5:\n return isNaN(b);\n case 6:\n return isNaN(b) || 1 > b;\n }\n return !1;\n}\nfunction J(a, b, c, d, f, g) {\n this.acceptsBooleans = 2 === b || 3 === b || 4 === b;\n this.attributeName = d;\n this.attributeNamespace = f;\n this.mustUseProperty = c;\n this.propertyName = a;\n this.type = b;\n this.sanitizeURL = g;\n}\nvar K = {};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a) {\n K[a] = new J(a, 0, !1, a, null, !1);\n});\n[\n [\n \"acceptCharset\",\n \"accept-charset\"\n ],\n [\n \"className\",\n \"class\"\n ],\n [\n \"htmlFor\",\n \"for\"\n ],\n [\n \"httpEquiv\",\n \"http-equiv\"\n ]\n].forEach(function(a) {\n var b = a[0];\n K[b] = new J(b, 1, !1, a[1], null, !1);\n});\n[\n \"contentEditable\",\n \"draggable\",\n \"spellCheck\",\n \"value\"\n].forEach(function(a) {\n K[a] = new J(a, 2, !1, a.toLowerCase(), null, !1);\n});\n[\n \"autoReverse\",\n \"externalResourcesRequired\",\n \"focusable\",\n \"preserveAlpha\"\n].forEach(function(a) {\n K[a] = new J(a, 2, !1, a, null, !1);\n});\n\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a) {\n K[a] = new J(a, 3, !1, a.toLowerCase(), null, !1);\n});\n[\n \"checked\",\n \"multiple\",\n \"muted\",\n \"selected\"\n].forEach(function(a) {\n K[a] = new J(a, 3, !0, a, null, !1);\n});\n[\n \"capture\",\n \"download\"\n].forEach(function(a) {\n K[a] = new J(a, 4, !1, a, null, !1);\n});\n[\n \"cols\",\n \"rows\",\n \"size\",\n \"span\"\n].forEach(function(a) {\n K[a] = new J(a, 6, !1, a, null, !1);\n});\n[\n \"rowSpan\",\n \"start\"\n].forEach(function(a) {\n K[a] = new J(a, 5, !1, a.toLowerCase(), null, !1);\n});\nvar L = /[\\-:]([a-z])/g;\nfunction M(a) {\n return a[1].toUpperCase();\n}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a) {\n var b = a.replace(L, M);\n K[b] = new J(b, 1, !1, a, null, !1);\n});\n\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a) {\n var b = a.replace(L, M);\n K[b] = new J(b, 1, !1, a, \"http://www.w3.org/1999/xlink\", !1);\n});\n[\n \"xml:base\",\n \"xml:lang\",\n \"xml:space\"\n].forEach(function(a) {\n var b = a.replace(L, M);\n K[b] = new J(b, 1, !1, a, \"http://www.w3.org/XML/1998/namespace\", !1);\n});\n[\n \"tabIndex\",\n \"crossOrigin\"\n].forEach(function(a) {\n K[a] = new J(a, 1, !1, a.toLowerCase(), null, !1);\n});\nK.xlinkHref = new J(\"xlinkHref\", 1, !1, \"xlink:href\", \"http://www.w3.org/1999/xlink\", !0);\n[\n \"src\",\n \"href\",\n \"action\",\n \"formAction\"\n].forEach(function(a) {\n K[a] = new J(a, 1, !1, a.toLowerCase(), null, !0);\n});\nvar xa = /[\"'&<>]/;\nfunction N(a) {\n if (\"boolean\" === typeof a || \"number\" === typeof a) return \"\" + a;\n a = \"\" + a;\n var b = xa.exec(a);\n if (b) {\n var c = \"\", d, f = 0;\n for(d = b.index; d < a.length; d++){\n switch(a.charCodeAt(d)){\n case 34:\n b = \""\";\n break;\n case 38:\n b = \"&\";\n break;\n case 39:\n b = \"'\";\n break;\n case 60:\n b = \"<\";\n break;\n case 62:\n b = \">\";\n break;\n default:\n continue;\n }\n f !== d && (c += a.substring(f, d));\n f = d + 1;\n c += b;\n }\n a = f !== d ? c + a.substring(f, d) : c;\n }\n return a;\n}\nfunction ya(a, b) {\n var c = K.hasOwnProperty(a) ? K[a] : null;\n var d;\n if (d = \"style\" !== a) d = null !== c ? 0 === c.type : !(2 < a.length) || \"o\" !== a[0] && \"O\" !== a[0] || \"n\" !== a[1] && \"N\" !== a[1] ? !1 : !0;\n if (d || wa(a, b, c, !1)) return \"\";\n if (null !== c) {\n a = c.attributeName;\n d = c.type;\n if (3 === d || 4 === d && !0 === b) return a + '=\"\"';\n c.sanitizeURL && (b = \"\" + b);\n return a + '=\"' + (N(b) + '\"');\n }\n return ua(a) ? a + '=\"' + (N(b) + '\"') : \"\";\n}\nfunction za(a, b) {\n return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;\n}\nvar Aa = \"function\" === typeof Object.is ? Object.is : za, O = null, P = null, Q = null, R = !1, S = !1, U = null, V = 0;\nfunction W() {\n if (null === O) throw Error(q(321));\n return O;\n}\nfunction Ba() {\n if (0 < V) throw Error(q(312));\n return {\n memoizedState: null,\n queue: null,\n next: null\n };\n}\nfunction Ca() {\n null === Q ? null === P ? (R = !1, P = Q = Ba()) : (R = !0, Q = P) : null === Q.next ? (R = !1, Q = Q.next = Ba()) : (R = !0, Q = Q.next);\n return Q;\n}\nfunction Da(a, b, c, d) {\n for(; S;)S = !1, V += 1, Q = null, c = a(b, d);\n P = O = null;\n V = 0;\n Q = U = null;\n return c;\n}\nfunction Ea(a, b) {\n return \"function\" === typeof b ? b(a) : b;\n}\nfunction Fa(a, b, c) {\n O = W();\n Q = Ca();\n if (R) {\n var d = Q.queue;\n b = d.dispatch;\n if (null !== U && (c = U.get(d), void 0 !== c)) {\n U.delete(d);\n d = Q.memoizedState;\n do d = a(d, c.action), c = c.next;\n while (null !== c);\n Q.memoizedState = d;\n return [\n d,\n b\n ];\n }\n return [\n Q.memoizedState,\n b\n ];\n }\n a = a === Ea ? \"function\" === typeof b ? b() : b : void 0 !== c ? c(b) : b;\n Q.memoizedState = a;\n a = Q.queue = {\n last: null,\n dispatch: null\n };\n a = a.dispatch = Ga.bind(null, O, a);\n return [\n Q.memoizedState,\n a\n ];\n}\nfunction Ga(a, b, c) {\n if (!(25 > V)) throw Error(q(301));\n if (a === O) {\n if (S = !0, a = {\n action: c,\n next: null\n }, null === U && (U = new Map), c = U.get(b), void 0 === c) U.set(b, a);\n else {\n for(b = c; null !== b.next;)b = b.next;\n b.next = a;\n }\n }\n}\nfunction Ha() {}\nvar X = 0, Ia = {\n readContext: function(a) {\n var b = X;\n E(a, b);\n return a[b];\n },\n useContext: function(a) {\n W();\n var b = X;\n E(a, b);\n return a[b];\n },\n useMemo: function(a, b) {\n O = W();\n Q = Ca();\n b = void 0 === b ? null : b;\n if (null !== Q) {\n var c = Q.memoizedState;\n if (null !== c && null !== b) {\n a: {\n var d = c[1];\n if (null === d) d = !1;\n else {\n for(var f = 0; f < d.length && f < b.length; f++)if (!Aa(b[f], d[f])) {\n d = !1;\n break a;\n }\n d = !0;\n }\n }\n if (d) return c[0];\n }\n }\n a = a();\n Q.memoizedState = [\n a,\n b\n ];\n return a;\n },\n useReducer: Fa,\n useRef: function(a) {\n O = W();\n Q = Ca();\n var b = Q.memoizedState;\n return null === b ? (a = {\n current: a\n }, Q.memoizedState = a) : b;\n },\n useState: function(a) {\n return Fa(Ea, a);\n },\n useLayoutEffect: function() {},\n useCallback: function(a) {\n return a;\n },\n useImperativeHandle: Ha,\n useEffect: Ha,\n useDebugValue: Ha,\n useResponder: function(a, b) {\n return {\n props: b,\n responder: a\n };\n },\n useDeferredValue: function(a) {\n W();\n return a;\n },\n useTransition: function() {\n W();\n return [\n function(a) {\n a();\n },\n !1\n ];\n }\n}, Ja = {\n html: \"http://www.w3.org/1999/xhtml\",\n mathml: \"http://www.w3.org/1998/Math/MathML\",\n svg: \"http://www.w3.org/2000/svg\"\n};\nfunction Ka(a) {\n switch(a){\n case \"svg\":\n return \"http://www.w3.org/2000/svg\";\n case \"math\":\n return \"http://www.w3.org/1998/Math/MathML\";\n default:\n return \"http://www.w3.org/1999/xhtml\";\n }\n}\nvar La = {\n area: !0,\n base: !0,\n br: !0,\n col: !0,\n embed: !0,\n hr: !0,\n img: !0,\n input: !0,\n keygen: !0,\n link: !0,\n meta: !0,\n param: !0,\n source: !0,\n track: !0,\n wbr: !0\n}, Ma = k({\n menuitem: !0\n}, La), Y = {\n animationIterationCount: !0,\n borderImageOutset: !0,\n borderImageSlice: !0,\n borderImageWidth: !0,\n boxFlex: !0,\n boxFlexGroup: !0,\n boxOrdinalGroup: !0,\n columnCount: !0,\n columns: !0,\n flex: !0,\n flexGrow: !0,\n flexPositive: !0,\n flexShrink: !0,\n flexNegative: !0,\n flexOrder: !0,\n gridArea: !0,\n gridRow: !0,\n gridRowEnd: !0,\n gridRowSpan: !0,\n gridRowStart: !0,\n gridColumn: !0,\n gridColumnEnd: !0,\n gridColumnSpan: !0,\n gridColumnStart: !0,\n fontWeight: !0,\n lineClamp: !0,\n lineHeight: !0,\n opacity: !0,\n order: !0,\n orphans: !0,\n tabSize: !0,\n widows: !0,\n zIndex: !0,\n zoom: !0,\n fillOpacity: !0,\n floodOpacity: !0,\n stopOpacity: !0,\n strokeDasharray: !0,\n strokeDashoffset: !0,\n strokeMiterlimit: !0,\n strokeOpacity: !0,\n strokeWidth: !0\n}, Na = [\n \"Webkit\",\n \"ms\",\n \"Moz\",\n \"O\"\n];\nObject.keys(Y).forEach(function(a) {\n Na.forEach(function(b) {\n b = b + a.charAt(0).toUpperCase() + a.substring(1);\n Y[b] = Y[a];\n });\n});\nvar Oa = /([A-Z])/g, Pa = /^ms-/, Z = l.Children.toArray, Qa = D.ReactCurrentDispatcher, Ra = {\n listing: !0,\n pre: !0,\n textarea: !0\n}, Sa = /^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/, Ta = {}, Ua = {};\nfunction Va(a) {\n if (void 0 === a || null === a) return a;\n var b = \"\";\n l.Children.forEach(a, function(a) {\n null != a && (b += a);\n });\n return b;\n}\nvar Wa = Object.prototype.hasOwnProperty, Xa = {\n children: null,\n dangerouslySetInnerHTML: null,\n suppressContentEditableWarning: null,\n suppressHydrationWarning: null\n};\nfunction Ya(a, b) {\n if (void 0 === a) throw Error(q(152, C(b) || \"Component\"));\n}\nfunction Za(a, b, c) {\n function d(d, g) {\n var e = g.prototype && g.prototype.isReactComponent, f = pa(g, b, c, e), x = [], h = !1, m = {\n isMounted: function() {\n return !1;\n },\n enqueueForceUpdate: function() {\n if (null === x) return null;\n },\n enqueueReplaceState: function(a, c) {\n h = !0;\n x = [\n c\n ];\n },\n enqueueSetState: function(a, c) {\n if (null === x) return null;\n x.push(c);\n }\n };\n if (e) {\n if (e = new g(d.props, f, m), \"function\" === typeof g.getDerivedStateFromProps) {\n var w = g.getDerivedStateFromProps.call(null, d.props, e.state);\n null != w && (e.state = k({}, e.state, w));\n }\n } else if (O = {}, e = g(d.props, f, m), e = Da(g, d.props, e, f), null == e || null == e.render) {\n a = e;\n Ya(a, g);\n return;\n }\n e.props = d.props;\n e.context = f;\n e.updater = m;\n m = e.state;\n void 0 === m && (e.state = m = null);\n if (\"function\" === typeof e.UNSAFE_componentWillMount || \"function\" === typeof e.componentWillMount) {\n if (\"function\" === typeof e.componentWillMount && \"function\" !== typeof g.getDerivedStateFromProps && e.componentWillMount(), \"function\" === typeof e.UNSAFE_componentWillMount && \"function\" !== typeof g.getDerivedStateFromProps && e.UNSAFE_componentWillMount(), x.length) {\n m = x;\n var r = h;\n x = null;\n h = !1;\n if (r && 1 === m.length) e.state = m[0];\n else {\n w = r ? m[0] : e.state;\n var y = !0;\n for(r = r ? 1 : 0; r < m.length; r++){\n var p = m[r];\n p = \"function\" === typeof p ? p.call(e, w, d.props, f) : p;\n null != p && (y ? (y = !1, w = k({}, w, p)) : k(w, p));\n }\n e.state = w;\n }\n } else x = null;\n }\n a = e.render();\n Ya(a, g);\n if (\"function\" === typeof e.getChildContext && (d = g.childContextTypes, \"object\" === typeof d)) {\n var A = e.getChildContext();\n for(var T in A)if (!(T in d)) throw Error(q(108, C(g) || \"Unknown\", T));\n }\n A && (b = k({}, b, A));\n }\n for(; l.isValidElement(a);){\n var f = a, g = f.type;\n if (\"function\" !== typeof g) break;\n d(f, g);\n }\n return {\n child: a,\n context: b\n };\n}\nvar $a = function() {\n function a(a, b) {\n l.isValidElement(a) ? a.type !== u ? a = [\n a\n ] : (a = a.props.children, a = l.isValidElement(a) ? [\n a\n ] : Z(a)) : a = Z(a);\n a = {\n type: null,\n domNamespace: Ja.html,\n children: a,\n childIndex: 0,\n context: oa,\n footer: \"\"\n };\n var c = F[0];\n if (0 === c) {\n var g = F;\n c = g.length;\n var d = 2 * c;\n if (!(65536 >= d)) throw Error(q(304));\n var h = new Uint16Array(d);\n h.set(g);\n F = h;\n F[0] = c + 1;\n for(g = c; g < d - 1; g++)F[g] = g + 1;\n F[d - 1] = 0;\n } else F[0] = F[c];\n this.threadID = c;\n this.stack = [\n a\n ];\n this.exhausted = !1;\n this.currentSelectValue = null;\n this.previousWasTextNode = !1;\n this.makeStaticMarkup = b;\n this.suspenseDepth = 0;\n this.contextIndex = -1;\n this.contextStack = [];\n this.contextValueStack = [];\n }\n var b = a.prototype;\n b.destroy = function() {\n if (!this.exhausted) {\n this.exhausted = !0;\n this.clearProviders();\n var a = this.threadID;\n F[a] = F[0];\n F[0] = a;\n }\n };\n b.pushProvider = function(a) {\n var c = ++this.contextIndex, b = a.type._context, g = this.threadID;\n E(b, g);\n var x = b[g];\n this.contextStack[c] = b;\n this.contextValueStack[c] = x;\n b[g] = a.props.value;\n };\n b.popProvider = function() {\n var a = this.contextIndex, b = this.contextStack[a], f = this.contextValueStack[a];\n this.contextStack[a] = null;\n this.contextValueStack[a] = null;\n this.contextIndex--;\n b[this.threadID] = f;\n };\n b.clearProviders = function() {\n for(var a = this.contextIndex; 0 <= a; a--)this.contextStack[a][this.threadID] = this.contextValueStack[a];\n };\n b.read = function(a) {\n if (this.exhausted) return null;\n var b = X;\n X = this.threadID;\n var c = Qa.current;\n Qa.current = Ia;\n try {\n for(var g = [\n \"\"\n ], x = !1; g[0].length < a;){\n if (0 === this.stack.length) {\n this.exhausted = !0;\n var h = this.threadID;\n F[h] = F[0];\n F[0] = h;\n break;\n }\n var e = this.stack[this.stack.length - 1];\n if (x || e.childIndex >= e.children.length) {\n var I = e.footer;\n \"\" !== I && (this.previousWasTextNode = !1);\n this.stack.pop();\n if (\"select\" === e.type) this.currentSelectValue = null;\n else if (null != e.type && null != e.type.type && e.type.type.$$typeof === v) this.popProvider(e.type);\n else if (e.type === B) {\n this.suspenseDepth--;\n var G = g.pop();\n if (x) {\n x = !1;\n var n = e.fallbackFrame;\n if (!n) throw Error(q(303));\n this.stack.push(n);\n g[this.suspenseDepth] += \"\";\n continue;\n } else g[this.suspenseDepth] += G;\n }\n g[this.suspenseDepth] += I;\n } else {\n var m = e.children[e.childIndex++], w = \"\";\n try {\n w += this.render(m, e.context, e.domNamespace);\n } catch (r) {\n if (null != r && \"function\" === typeof r.then) throw Error(q(294));\n throw r;\n } finally{}\n g.length <= this.suspenseDepth && g.push(\"\");\n g[this.suspenseDepth] += w;\n }\n }\n return g[0];\n } finally{\n Qa.current = c, X = b;\n }\n };\n b.render = function(a, b, f) {\n if (\"string\" === typeof a || \"number\" === typeof a) {\n f = \"\" + a;\n if (\"\" === f) return \"\";\n if (this.makeStaticMarkup) return N(f);\n if (this.previousWasTextNode) return \"\" + N(f);\n this.previousWasTextNode = !0;\n return N(f);\n }\n b = Za(a, b, this.threadID);\n a = b.child;\n b = b.context;\n if (null === a || !1 === a) return \"\";\n if (!l.isValidElement(a)) {\n if (null != a && null != a.$$typeof) {\n f = a.$$typeof;\n if (f === aa) throw Error(q(257));\n throw Error(q(258, f.toString()));\n }\n a = Z(a);\n this.stack.push({\n type: null,\n domNamespace: f,\n children: a,\n childIndex: 0,\n context: b,\n footer: \"\"\n });\n return \"\";\n }\n var c = a.type;\n if (\"string\" === typeof c) return this.renderDOM(a, b, f);\n switch(c){\n case ba:\n case ea:\n case ca:\n case ha:\n case u:\n return a = Z(a.props.children), this.stack.push({\n type: null,\n domNamespace: f,\n children: a,\n childIndex: 0,\n context: b,\n footer: \"\"\n }), \"\";\n case B:\n throw Error(q(294));\n }\n if (\"object\" === typeof c && null !== c) switch(c.$$typeof){\n case fa:\n O = {};\n var d = c.render(a.props, a.ref);\n d = Da(c.render, a.props, d, a.ref);\n d = Z(d);\n this.stack.push({\n type: null,\n domNamespace: f,\n children: d,\n childIndex: 0,\n context: b,\n footer: \"\"\n });\n return \"\";\n case ia:\n return a = [\n l.createElement(c.type, k({\n ref: a.ref\n }, a.props))\n ], this.stack.push({\n type: null,\n domNamespace: f,\n children: a,\n childIndex: 0,\n context: b,\n footer: \"\"\n }), \"\";\n case v:\n return c = Z(a.props.children), f = {\n type: a,\n domNamespace: f,\n children: c,\n childIndex: 0,\n context: b,\n footer: \"\"\n }, this.pushProvider(a), this.stack.push(f), \"\";\n case da:\n c = a.type;\n d = a.props;\n var h = this.threadID;\n E(c, h);\n c = Z(d.children(c[h]));\n this.stack.push({\n type: a,\n domNamespace: f,\n children: c,\n childIndex: 0,\n context: b,\n footer: \"\"\n });\n return \"\";\n case la:\n throw Error(q(338));\n case ja:\n switch(c = a.type, na(c), c._status){\n case 1:\n return a = [\n l.createElement(c._result, k({\n ref: a.ref\n }, a.props))\n ], this.stack.push({\n type: null,\n domNamespace: f,\n children: a,\n childIndex: 0,\n context: b,\n footer: \"\"\n }), \"\";\n case 2:\n throw c._result;\n default:\n throw Error(q(295));\n }\n case ma:\n throw Error(q(343));\n }\n throw Error(q(130, null == c ? c : typeof c, \"\"));\n };\n b.renderDOM = function(a, b, f) {\n var c = a.type.toLowerCase();\n f === Ja.html && Ka(c);\n if (!Ta.hasOwnProperty(c)) {\n if (!Sa.test(c)) throw Error(q(65, c));\n Ta[c] = !0;\n }\n var d = a.props;\n if (\"input\" === c) d = k({\n type: void 0\n }, d, {\n defaultChecked: void 0,\n defaultValue: void 0,\n value: null != d.value ? d.value : d.defaultValue,\n checked: null != d.checked ? d.checked : d.defaultChecked\n });\n else if (\"textarea\" === c) {\n var h = d.value;\n if (null == h) {\n h = d.defaultValue;\n var e = d.children;\n if (null != e) {\n if (null != h) throw Error(q(92));\n if (Array.isArray(e)) {\n if (!(1 >= e.length)) throw Error(q(93));\n e = e[0];\n }\n h = \"\" + e;\n }\n null == h && (h = \"\");\n }\n d = k({}, d, {\n value: void 0,\n children: \"\" + h\n });\n } else if (\"select\" === c) this.currentSelectValue = null != d.value ? d.value : d.defaultValue, d = k({}, d, {\n value: void 0\n });\n else if (\"option\" === c) {\n e = this.currentSelectValue;\n var I = Va(d.children);\n if (null != e) {\n var G = null != d.value ? d.value + \"\" : I;\n h = !1;\n if (Array.isArray(e)) {\n for(var n = 0; n < e.length; n++)if (\"\" + e[n] === G) {\n h = !0;\n break;\n }\n } else h = \"\" + e === G;\n d = k({\n selected: void 0,\n children: void 0\n }, d, {\n selected: h,\n children: I\n });\n }\n }\n if (h = d) {\n if (Ma[c] && (null != h.children || null != h.dangerouslySetInnerHTML)) throw Error(q(137, c, \"\"));\n if (null != h.dangerouslySetInnerHTML) {\n if (null != h.children) throw Error(q(60));\n if (!(\"object\" === typeof h.dangerouslySetInnerHTML && \"__html\" in h.dangerouslySetInnerHTML)) throw Error(q(61));\n }\n if (null != h.style && \"object\" !== typeof h.style) throw Error(q(62, \"\"));\n }\n h = d;\n e = this.makeStaticMarkup;\n I = 1 === this.stack.length;\n G = \"<\" + a.type;\n for(z in h)if (Wa.call(h, z)) {\n var m = h[z];\n if (null != m) {\n if (\"style\" === z) {\n n = void 0;\n var w = \"\", r = \"\";\n for(n in m)if (m.hasOwnProperty(n)) {\n var y = 0 === n.indexOf(\"--\"), p = m[n];\n if (null != p) {\n if (y) var A = n;\n else if (A = n, Ua.hasOwnProperty(A)) A = Ua[A];\n else {\n var T = A.replace(Oa, \"-$1\").toLowerCase().replace(Pa, \"-ms-\");\n A = Ua[A] = T;\n }\n w += r + A + \":\";\n r = n;\n y = null == p || \"boolean\" === typeof p || \"\" === p ? \"\" : y || \"number\" !== typeof p || 0 === p || Y.hasOwnProperty(r) && Y[r] ? (\"\" + p).trim() : p + \"px\";\n w += y;\n r = \";\";\n }\n }\n m = w || null;\n }\n n = null;\n b: if (y = c, p = h, -1 === y.indexOf(\"-\")) y = \"string\" === typeof p.is;\n else switch(y){\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n y = !1;\n break b;\n default:\n y = !0;\n }\n y ? Xa.hasOwnProperty(z) || (n = z, n = ua(n) && null != m ? n + '=\"' + (N(m) + '\"') : \"\") : n = ya(z, m);\n n && (G += \" \" + n);\n }\n }\n e || I && (G += ' data-reactroot=\"\"');\n var z = G;\n h = \"\";\n La.hasOwnProperty(c) ? z += \"/>\" : (z += \">\", h = \"\");\n a: {\n e = d.dangerouslySetInnerHTML;\n if (null != e) {\n if (null != e.__html) {\n e = e.__html;\n break a;\n }\n } else if (e = d.children, \"string\" === typeof e || \"number\" === typeof e) {\n e = N(e);\n break a;\n }\n e = null;\n }\n null != e ? (d = [], Ra.hasOwnProperty(c) && \"\\n\" === e.charAt(0) && (z += \"\\n\"), z += e) : d = Z(d.children);\n a = a.type;\n f = null == f || \"http://www.w3.org/1999/xhtml\" === f ? Ka(a) : \"http://www.w3.org/2000/svg\" === f && \"foreignObject\" === a ? \"http://www.w3.org/1999/xhtml\" : f;\n this.stack.push({\n domNamespace: f,\n type: c,\n children: d,\n childIndex: 0,\n context: b,\n footer: h\n });\n this.previousWasTextNode = !1;\n return z;\n };\n return a;\n}(), ab = {\n renderToString: function(a) {\n a = new $a(a, !1);\n try {\n return a.read(Infinity);\n } finally{\n a.destroy();\n }\n },\n renderToStaticMarkup: function(a) {\n a = new $a(a, !0);\n try {\n return a.read(Infinity);\n } finally{\n a.destroy();\n }\n },\n renderToNodeStream: function() {\n throw Error(q(207));\n },\n renderToStaticNodeStream: function() {\n throw Error(q(208));\n },\n version: \"16.14.0\"\n};\nmodule.exports = ab.default || ab;\n\n},{\"2a760a3bc04cb618\":\"hdgcG\",\"25c06765b630fbbf\":\"6uln9\"}],\"7BJx6\":[function() {},{}],\"dApJq\":[function() {},{}],\"7BJx6\":[function() {},{}],\"7fcgF\":[function() {},{}],\"pUQs9\":[function(require,module,exports) {\n// src/Dialog/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Dialog_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _dialog = require(\"./dialog\");\nvar _dialogDefault = parcelHelpers.interopDefault(_dialog);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Dialog/style.module.css\nvar _pmuyxbj7Css = require(\"../_css/PMUYXBJ7.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"slideDialogContents\": \"neos-X60ORW_slideDialogContents\",\n \"dialog--warn\": \"neos-X60ORW_dialog--warn\",\n \"dialog--jumbo\": \"neos-X60ORW_dialog--jumbo\",\n \"dialog__contents\": \"neos-X60ORW_dialog__contents \" + reset_module_default[\"reset\"],\n \"dialog--narrow\": \"neos-X60ORW_dialog--narrow\",\n \"dialog__contentsPosition\": \"neos-X60ORW_dialog__contentsPosition \" + reset_module_default[\"reset\"],\n \"dialog__closeBtn\": \"neos-X60ORW_dialog__closeBtn \" + reset_module_default[\"reset\"],\n \"dialog__body\": \"neos-X60ORW_dialog__body\",\n \"dialog--wide\": \"neos-X60ORW_dialog--wide\",\n \"dialog__title\": \"neos-X60ORW_dialog__title \" + reset_module_default[\"reset\"],\n \"dialog__backDrop\": \"neos-X60ORW_dialog__backDrop \" + reset_module_default[\"reset\"],\n \"dialog\": \"neos-X60ORW_dialog \" + reset_module_default[\"reset\"],\n \"dialog--error\": \"neos-X60ORW_dialog--error\",\n \"dialog__actions\": \"neos-X60ORW_dialog__actions \" + reset_module_default[\"reset\"],\n \"dialog--success\": \"neos-X60ORW_dialog--success\"\n};\n// src/Dialog/index.ts\nvar Dialog_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).dialog, style_module_default)((0, _dialogDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./dialog\":\"kSWaY\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/PMUYXBJ7.css\":\"4VjMP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kSWaY\":[function(require,module,exports) {\n// src/Dialog/dialog.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DialogWithoutEscape\", ()=>DialogWithoutEscape);\nparcelHelpers.export(exports, \"default\", ()=>dialog_default);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _index = require(\"../enhanceWithClickOutside/index\");\nvar _indexDefault = parcelHelpers.interopDefault(_index);\nvar _reactCloseOnEscape = require(\"react-close-on-escape\");\nvar _reactCloseOnEscapeDefault = parcelHelpers.interopDefault(_reactCloseOnEscape);\nvar _reactPortal = require(\"react-portal\");\nvar DialogWithoutEscape = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleReference = (ref)=>{\n this.ref = ref;\n };\n this.handleClickOutside = ()=>{\n this.props.onRequestClose();\n };\n this.componentDidMount = ()=>{\n document.addEventListener(\"keydown\", (event)=>this.handleKeyPress(event));\n const { autoFocus } = this.props;\n if (this.ref && autoFocus) this.ref.focus();\n };\n this.componentWillUnmount = ()=>{\n document.removeEventListener(\"keydown\", (event)=>this.handleKeyPress(event));\n };\n /**\n * Closes the dialog when the escape key has been pressed.\n *\n * @param {KeyboardEvent} event\n * @returns {void}\n */ this.handleKeyPress = (event)=>{\n if (event.key === \"Escape\") this.props.onRequestClose();\n };\n }\n render() {\n const { title , children , actions , theme , type } = this.props;\n const finalClassNameBody = (0, _classnamesDefault.default)(theme.dialog__body, {\n [theme[\"dialog--success\"]]: type === \"success\",\n [theme[\"dialog--warn\"]]: type === \"warn\",\n [theme[\"dialog--error\"]]: type === \"error\"\n }, \"dialog__body\");\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n ref: this.handleReference,\n className: theme.dialog__contentsPosition,\n tabIndex: 0\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.dialog__contents\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.dialog__title\n }, title), /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: finalClassNameBody\n }, children), actions && actions.length ? /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.dialog__actions\n }, (0, _reactDefault.default).Children.map(actions, (action, index)=>/* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n key: index\n }, action))) : null));\n }\n};\nvar EnhancedDialogWithoutEscapeWithClickOutside = (0, _indexDefault.default)(DialogWithoutEscape);\nvar DialogWithEscape = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.onEscape = ()=>{\n this.props.onRequestClose();\n };\n }\n render() {\n const { className , title , style , children , isOpen , actions , theme , type , onRequestClose , ...rest } = this.props;\n const sectionClassName = (0, _classnamesDefault.default)(theme.dialog, {\n [theme[\"dialog--wide\"]]: style === \"wide\",\n [theme[\"dialog--jumbo\"]]: style === \"jumbo\",\n [theme[\"dialog--narrow\"]]: style === \"narrow\"\n }, {\n [theme[\"dialog--success\"]]: type === \"success\",\n [theme[\"dialog--warn\"]]: type === \"warn\",\n [theme[\"dialog--error\"]]: type === \"error\"\n }, className);\n if (!this.props.isOpen) return null;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _reactCloseOnEscapeDefault.default), {\n onEscape: this.onEscape\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _reactPortal.Portal), null, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"section\", {\n ...rest,\n className: sectionClassName,\n role: \"dialog\",\n tabIndex: 0\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(EnhancedDialogWithoutEscapeWithClickOutside, {\n ...this.props\n }))));\n }\n};\nvar dialog_default = DialogWithEscape;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"../enhanceWithClickOutside/index\":\"kjtTU\",\"react-close-on-escape\":\"8Q58x\",\"react-portal\":\"8gQ5V\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8Q58x\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _react = require(\"8ef31a73c7ddee18\");\nvar _react2 = _interopRequireDefault(_react);\nvar _propTypes = require(\"461ef1e05ed44fe7\");\nvar _propTypes2 = _interopRequireDefault(_propTypes);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\nvar CloseOnEscape = function(_Component) {\n _inherits(CloseOnEscape, _Component);\n function CloseOnEscape() {\n _classCallCheck(this, CloseOnEscape);\n var _this = _possibleConstructorReturn(this, (CloseOnEscape.__proto__ || Object.getPrototypeOf(CloseOnEscape)).call(this));\n _this.onEscape = _this.onEscape.bind(_this);\n return _this;\n }\n _createClass(CloseOnEscape, [\n {\n key: \"onEscape\",\n value: function onEscape(_ref) {\n var keyCode = _ref.keyCode;\n if (keyCode === 27) this.props.onEscape();\n }\n },\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n document.addEventListener(\"keydown\", this.onEscape);\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n document.removeEventListener(\"keydown\", this.onEscape);\n }\n },\n {\n key: \"render\",\n value: function render() {\n return this.props.children;\n }\n }\n ]);\n return CloseOnEscape;\n}(_react.Component);\nexports.default = CloseOnEscape;\nCloseOnEscape.propTypes = {\n onEscape: _propTypes2.default.func.isRequired\n};\n\n},{\"8ef31a73c7ddee18\":\"6uln9\",\"461ef1e05ed44fe7\":\"6FKs7\"}],\"8gQ5V\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Portal\", ()=>(0, _portalCompatDefault.default));\nparcelHelpers.export(exports, \"PortalWithState\", ()=>(0, _portalWithStateDefault.default));\nvar _portalCompat = require(\"./PortalCompat\");\nvar _portalCompatDefault = parcelHelpers.interopDefault(_portalCompat);\nvar _portalWithState = require(\"./PortalWithState\");\nvar _portalWithStateDefault = parcelHelpers.interopDefault(_portalWithState);\n\n},{\"./PortalCompat\":\"6iKOA\",\"./PortalWithState\":false,\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6iKOA\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar _portal = require(\"./Portal\");\nvar _portalDefault = parcelHelpers.interopDefault(_portal);\nvar _legacyPortal = require(\"./LegacyPortal\");\nvar _legacyPortalDefault = parcelHelpers.interopDefault(_legacyPortal);\nvar Portal = void 0;\nif ((0, _reactDomDefault.default).createPortal) Portal = (0, _portalDefault.default);\nelse Portal = (0, _legacyPortalDefault.default);\nexports.default = Portal;\n\n},{\"react-dom\":\"b8T3j\",\"./Portal\":\"2hIWS\",\"./LegacyPortal\":\"dqa7M\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2hIWS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar _utils = require(\"./utils\");\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\nvar Portal = function(_React$Component) {\n _inherits(Portal, _React$Component);\n function Portal() {\n _classCallCheck(this, Portal);\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n _createClass(Portal, [\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.defaultNode) document.body.removeChild(this.defaultNode);\n this.defaultNode = null;\n }\n },\n {\n key: \"render\",\n value: function render() {\n if (!(0, _utils.canUseDOM)) return null;\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement(\"div\");\n document.body.appendChild(this.defaultNode);\n }\n return (0, _reactDomDefault.default).createPortal(this.props.children, this.props.node || this.defaultNode);\n }\n }\n ]);\n return Portal;\n}((0, _reactDefault.default).Component);\nPortal.propTypes = {\n children: (0, _propTypesDefault.default).node.isRequired,\n node: (0, _propTypesDefault.default).any\n};\nexports.default = Portal;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"react-dom\":\"b8T3j\",\"./utils\":\"3oquL\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3oquL\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"canUseDOM\", ()=>canUseDOM);\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dqa7M\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n// This file is a fallback for a consumer who is not yet on React 16\n// as createPortal was introduced in React 16\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\nvar Portal = function(_React$Component) {\n _inherits(Portal, _React$Component);\n function Portal() {\n _classCallCheck(this, Portal);\n return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n _createClass(Portal, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.renderPortal();\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(props) {\n this.renderPortal();\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n (0, _reactDomDefault.default).unmountComponentAtNode(this.defaultNode || this.props.node);\n if (this.defaultNode) document.body.removeChild(this.defaultNode);\n this.defaultNode = null;\n this.portal = null;\n }\n },\n {\n key: \"renderPortal\",\n value: function renderPortal(props) {\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement(\"div\");\n document.body.appendChild(this.defaultNode);\n }\n var children = this.props.children;\n // https://gist.github.com/jimfb/d99e0678e9da715ccf6454961ef04d1b\n if (typeof this.props.children.type === \"function\") children = (0, _reactDefault.default).cloneElement(this.props.children);\n this.portal = (0, _reactDomDefault.default).unstable_renderSubtreeIntoContainer(this, children, this.props.node || this.defaultNode);\n }\n },\n {\n key: \"render\",\n value: function render() {\n return null;\n }\n }\n ]);\n return Portal;\n}((0, _reactDefault.default).Component);\nexports.default = Portal;\nPortal.propTypes = {\n children: (0, _propTypesDefault.default).node.isRequired,\n node: (0, _propTypesDefault.default).any\n};\n\n},{\"react\":\"6uln9\",\"react-dom\":\"b8T3j\",\"prop-types\":\"6FKs7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"4VjMP\":[function() {},{}],\"1PmkQ\":[function(require,module,exports) {\n// src/DropDown/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>DropDown_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _wrapper = require(\"./wrapper\");\nvar _wrapperDefault = parcelHelpers.interopDefault(_wrapper);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/DropDown/style.module.css\nvar _3Vts5UykCss = require(\"../_css/3VTS5UYK.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"dropDown__btn--open\": \"neos-fwJGCW_dropDown__btn--open\",\n \"dropDown__btnLabel\": \"neos-fwJGCW_dropDown__btnLabel \" + reset_module_default[\"reset\"],\n \"dropDown__contents--isOpen\": \"neos-fwJGCW_dropDown__contents--isOpen\",\n \"dropDown--padded\": \"neos-fwJGCW_dropDown--padded\",\n \"dropDown--darkest\": \"neos-fwJGCW_dropDown--darkest\",\n \"dropDown__btn--withChevron\": \"neos-fwJGCW_dropDown__btn--withChevron\",\n \"dropDown__btn\": \"neos-fwJGCW_dropDown__btn \" + reset_module_default[\"reset\"],\n \"dropDown__contents--scrollable\": \"neos-fwJGCW_dropDown__contents--scrollable\",\n \"dropDown__chevron\": \"neos-fwJGCW_dropDown__chevron \" + reset_module_default[\"reset\"],\n \"dropDown__contents\": \"neos-fwJGCW_dropDown__contents \" + reset_module_default[\"reset\"],\n \"dropDown\": \"neos-fwJGCW_dropDown \" + reset_module_default[\"reset\"],\n \"dropDown--darker\": \"neos-fwJGCW_dropDown--darker\"\n};\n// src/DropDown/index.ts\nvar DropDown = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).dropDown, style_module_default)((0, _wrapperDefault.default));\nvar StatelessDropDown = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).dropDown, style_module_default)((0, _wrapper.StatelessDropDownWrapper));\nvar DropDownHeader = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).dropDownHeader, style_module_default)((0, _wrapper.ContextDropDownHeader));\nvar DropDownContents = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).dropDownContents, style_module_default)((0, _wrapper.ContextDropDownContents));\nDropDown.Header = DropDownHeader;\nDropDown.Contents = DropDownContents;\nDropDown.Stateless = StatelessDropDown;\nvar DropDown_default = DropDown;\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./wrapper\":\"4MFCe\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/3VTS5UYK.css\":\"kizaP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4MFCe\":[function(require,module,exports) {\n// src/DropDown/wrapper.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ContextDropDownContents\", ()=>ContextDropDownContents);\nparcelHelpers.export(exports, \"ContextDropDownHeader\", ()=>ContextDropDownHeader);\nparcelHelpers.export(exports, \"DropDownWrapper\", ()=>DropDownWrapper);\nparcelHelpers.export(exports, \"StatelessDropDownWrapper\", ()=>StatelessDropDownWrapper);\nparcelHelpers.export(exports, \"default\", ()=>wrapper_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _lodashOmit = require(\"lodash.omit\");\nvar _lodashOmitDefault = parcelHelpers.interopDefault(_lodashOmit);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _index = require(\"../enhanceWithClickOutside/index\");\nvar _indexDefault = parcelHelpers.interopDefault(_index);\nvar _header = require(\"./header\");\nvar _headerDefault = parcelHelpers.interopDefault(_header);\nvar _contents = require(\"./contents\");\nvar _contentsDefault = parcelHelpers.interopDefault(_contents);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar defaultProps = {\n isOpen: false,\n style: \"default\"\n};\nvar StatelessDropDownWrapperWithoutClickOutsideBehavior = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.ref = (0, _reactDefault.default).createRef();\n this.getChildContext = ()=>({\n toggleDropDown: this.handleToggle,\n closeDropDown: this.handleClose,\n wrapperRef: this.ref\n });\n this.handleClickOutside = ()=>{\n if (this.props.isOpen) this.handleClose();\n };\n this.handleToggle = (event)=>{\n if (event) event.stopPropagation();\n this.props.onToggle(event);\n };\n this.handleClose = (event)=>{\n if (event) event.stopPropagation();\n this.props.onClose(event);\n };\n }\n render() {\n const { children , className , theme , style , padded , ...restProps } = this.props;\n const rest = (0, _lodashOmitDefault.default)(restProps, [\n \"isOpen\",\n \"onToggle\",\n \"onClose\"\n ]);\n const styleClassName = style ? `dropDown--${style}` : \"\";\n const finalClassName = (0, _classnamesDefault.default)({\n // @ts-ignore\n [theme[styleClassName]]: styleClassName,\n [theme[\"dropDown--padded\"]]: padded\n }, theme.dropDown, className);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n ref: this.ref,\n ...rest,\n className: finalClassName\n }, (0, _reactDefault.default).Children.map(children, // @ts-ignore\n (child)=>typeof child.type === \"string\" ? child : /* @__PURE__ */ (0, _reactDefault.default).createElement(child.type, {\n ...child.props,\n isDropdownOpen: this.props.isOpen\n })));\n }\n};\nStatelessDropDownWrapperWithoutClickOutsideBehavior.defaultProps = defaultProps;\nStatelessDropDownWrapperWithoutClickOutsideBehavior.childContextTypes = {\n toggleDropDown: (0, _propTypesDefault.default).func.isRequired,\n closeDropDown: (0, _propTypesDefault.default).func.isRequired,\n wrapperRef: (0, _propTypesDefault.default).object.isRequired\n};\nvar StatelessDropDownWrapper = (0, _indexDefault.default)(StatelessDropDownWrapperWithoutClickOutsideBehavior);\nvar DropDownWrapper = class extends (0, _react.PureComponent) {\n constructor(props){\n super(props);\n this.updateIsOpenHandle = null;\n //\n // Closing the DropDown removes the DropDown.Contents from the DOM. There may be DOM nodes inside the\n // DropDown.Contents that still need to receive events before that happens.\n //\n // This method makes sure that the DropDown closes only after the current call-stack has been\n // processed. This prevents behavior like the one described in: https://github.com/neos/neos-ui/issues/3305\n //\n this.updateIsOpen = (handlerFn)=>{\n if (this.updateIsOpenHandle !== null) clearTimeout(this.updateIsOpenHandle);\n this.updateIsOpenHandle = setTimeout(()=>{\n this.setState((state)=>({\n isOpen: handlerFn(state.isOpen)\n }));\n }, 0);\n };\n this.handleToggle = (event)=>{\n if (this.props.onToggle) this.props.onToggle(event);\n this.updateIsOpen((isOpen)=>!isOpen);\n };\n this.handleClose = ()=>{\n this.updateIsOpen(()=>false);\n };\n this.state = {\n isOpen: props.isOpen !== void 0 ? props.isOpen : defaultProps.isOpen\n };\n }\n componentWillUnmount() {\n if (this.updateIsOpenHandle !== null) clearTimeout(this.updateIsOpenHandle);\n }\n render() {\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(StatelessDropDownWrapper, {\n ...this.props,\n isOpen: this.state.isOpen,\n onToggle: this.handleToggle,\n onClose: this.handleClose\n });\n }\n};\nDropDownWrapper.defaultProps = defaultProps;\nvar wrapper_default = DropDownWrapper;\nvar ContextDropDownHeader = class extends (0, _react.PureComponent) {\n render() {\n const { isDropdownOpen , ...rest } = this.props;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _headerDefault.default), {\n isOpen: isDropdownOpen,\n ...rest,\n ...this.context\n });\n }\n};\nContextDropDownHeader.contextTypes = {\n toggleDropDown: (0, _propTypesDefault.default).func.isRequired\n};\nvar ContextDropDownContents = class extends (0, _react.PureComponent) {\n render() {\n const { isDropdownOpen , wrapperRef , ...rest } = this.props;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _contentsDefault.default), {\n isOpen: isDropdownOpen,\n ...rest,\n ...this.context,\n wrapperRef: wrapperRef || this.context.wrapperRef\n });\n }\n};\nContextDropDownContents.contextTypes = {\n closeDropDown: (0, _propTypesDefault.default).func.isRequired,\n wrapperRef: (0, _propTypesDefault.default).object.isRequired\n};\n\n},{\"react\":\"6uln9\",\"lodash.omit\":\"airq1\",\"classnames\":\"hVGzI\",\"../enhanceWithClickOutside/index\":\"kjtTU\",\"./header\":\"asZIr\",\"./contents\":\"cQpdG\",\"prop-types\":\"6FKs7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"airq1\":[function(require,module,exports) {\n/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */ /** Used as the size to enable large array optimizations. */ var global = arguments[3];\nvar LARGE_ARRAY_SIZE = 200;\n/** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = \"__lodash_hash_undefined__\";\n/** Used as references for various `Number` constants. */ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */ var argsTag = \"[object Arguments]\", funcTag = \"[object Function]\", genTag = \"[object GeneratorFunction]\", symbolTag = \"[object Symbol]\";\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */ var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\\d*)$/;\n/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == \"object\" && global && global.Object === Object && global;\n/** Detect free variable `self`. */ var freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\n/** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function(\"return this\")();\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */ function apply(func, thisArg, args) {\n switch(args.length){\n case 0:\n return func.call(thisArg);\n case 1:\n return func.call(thisArg, args[0]);\n case 2:\n return func.call(thisArg, args[0], args[1]);\n case 3:\n return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */ function arrayIncludes(array, value) {\n var length = array ? array.length : 0;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */ function arrayIncludesWith(array, value, comparator) {\n var index = -1, length = array ? array.length : 0;\n while(++index < length){\n if (comparator(value, array[index])) return true;\n }\n return false;\n}\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */ function arrayMap(array, iteratee) {\n var index = -1, length = array ? array.length : 0, result = Array(length);\n while(++index < length)result[index] = iteratee(array[index], index, array);\n return result;\n}\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */ function arrayPush(array, values) {\n var index = -1, length = values.length, offset = array.length;\n while(++index < length)array[offset + index] = values[index];\n return array;\n}\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */ function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length, index = fromIndex + (fromRight ? 1 : -1);\n while(fromRight ? index-- : ++index < length){\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n}\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */ function baseIndexOf(array, value, fromIndex) {\n if (value !== value) return baseFindIndex(array, baseIsNaN, fromIndex);\n var index = fromIndex - 1, length = array.length;\n while(++index < length){\n if (array[index] === value) return index;\n }\n return -1;\n}\n/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */ function baseIsNaN(value) {\n return value !== value;\n}\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */ function baseTimes(n, iteratee) {\n var index = -1, result = Array(n);\n while(++index < n)result[index] = iteratee(index);\n return result;\n}\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */ function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n/**\n * Checks if a cache value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function cacheHas(cache, key) {\n return cache.has(key);\n}\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */ function getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */ function isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != \"function\") try {\n result = !!(value + \"\");\n } catch (e) {}\n return result;\n}\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */ function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n/** Used for built-in method references. */ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;\n/** Used to detect overreaching core-js shims. */ var coreJsData = root[\"__core-js_shared__\"];\n/** Used to detect methods masquerading as native. */ var maskSrcKey = function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || \"\");\n return uid ? \"Symbol(src)_1.\" + uid : \"\";\n}();\n/** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString;\n/** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */ var objectToString = objectProto.toString;\n/** Used to detect if a method is native. */ var reIsNative = RegExp(\"^\" + funcToString.call(hasOwnProperty).replace(reRegExpChar, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\");\n/** Built-in value references. */ var Symbol = root.Symbol, getPrototype = overArg(Object.getPrototypeOf, Object), propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols, nativeMax = Math.max;\n/* Built-in method references that are verified to be native. */ var Map = getNative(root, \"Map\"), nativeCreate = getNative(Object, \"create\");\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function Hash(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while(++index < length){\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */ function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function hashDelete(key) {\n return this.has(key) && delete this.__data__[key];\n}\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */ function hashSet(key, value) {\n var data = this.__data__;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype[\"delete\"] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function ListCache(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while(++index < length){\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */ function listCacheClear() {\n this.__data__ = [];\n}\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function listCacheDelete(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) return false;\n var lastIndex = data.length - 1;\n if (index == lastIndex) data.pop();\n else splice.call(data, index, 1);\n return true;\n}\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function listCacheGet(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */ function listCacheSet(key, value) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) data.push([\n key,\n value\n ]);\n else data[index][1] = value;\n return this;\n}\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype[\"delete\"] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function MapCache(entries) {\n var index = -1, length = entries ? entries.length : 0;\n this.clear();\n while(++index < length){\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */ function mapCacheClear() {\n this.__data__ = {\n \"hash\": new Hash,\n \"map\": new (Map || ListCache),\n \"string\": new Hash\n };\n}\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function mapCacheDelete(key) {\n return getMapData(this, key)[\"delete\"](key);\n}\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */ function mapCacheSet(key, value) {\n getMapData(this, key).set(key, value);\n return this;\n}\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype[\"delete\"] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */ function SetCache(values) {\n var index = -1, length = values ? values.length : 0;\n this.__data__ = new MapCache;\n while(++index < length)this.add(values[index]);\n}\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */ function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */ function setCacheHas(value) {\n return this.__data__.has(value);\n}\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */ function arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];\n var length = result.length, skipIndexes = !!length;\n for(var key in value)if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == \"length\" || isIndex(key, length)))) result.push(key);\n return result;\n}\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */ function assocIndexOf(array, key) {\n var length = array.length;\n while(length--){\n if (eq(array[length][0], key)) return length;\n }\n return -1;\n}\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */ function baseDifference(array, values, iteratee, comparator) {\n var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length;\n if (!length) return result;\n if (iteratee) values = arrayMap(values, baseUnary(iteratee));\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n } else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer: while(++index < length){\n var value = array[index], computed = iteratee ? iteratee(value) : value;\n value = comparator || value !== 0 ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while(valuesIndex--){\n if (values[valuesIndex] === computed) continue outer;\n }\n result.push(value);\n } else if (!includes(values, computed, comparator)) result.push(value);\n }\n return result;\n}\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */ function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1, length = array.length;\n predicate || (predicate = isFlattenable);\n result || (result = []);\n while(++index < length){\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n else arrayPush(result, value);\n } else if (!isStrict) result[result.length] = value;\n }\n return result;\n}\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */ function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */ function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) return false;\n var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */ function baseKeysIn(object) {\n if (!isObject(object)) return nativeKeysIn(object);\n var isProto = isPrototype(object), result = [];\n for(var key in object)if (!(key == \"constructor\" && (isProto || !hasOwnProperty.call(object, key)))) result.push(key);\n return result;\n}\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property identifiers to pick.\n * @returns {Object} Returns the new object.\n */ function basePick(object, props) {\n object = Object(object);\n return basePickBy(object, props, function(value, key) {\n return key in object;\n });\n}\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property identifiers to pick from.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */ function basePickBy(object, props, predicate) {\n var index = -1, length = props.length, result = {};\n while(++index < length){\n var key = props[index], value = object[key];\n if (predicate(value, key)) result[key] = value;\n }\n return result;\n}\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */ function baseRest(func, start) {\n start = nativeMax(start === undefined ? func.length - 1 : start, 0);\n return function() {\n var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);\n while(++index < length)array[index] = args[start + index];\n index = -1;\n var otherArgs = Array(start + 1);\n while(++index < start)otherArgs[index] = args[index];\n otherArgs[start] = array;\n return apply(func, this, otherArgs);\n };\n}\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */ function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */ function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == \"string\" ? \"string\" : \"hash\"] : data.map;\n}\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */ function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n/**\n * Creates an array of the own enumerable symbol properties of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */ var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;\n/**\n * Creates an array of the own and inherited enumerable symbol properties\n * of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while(object){\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */ function isFlattenable(value) {\n return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */ function isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (typeof value == \"number\" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */ function isKeyable(value) {\n var type = typeof value;\n return type == \"string\" || type == \"number\" || type == \"symbol\" || type == \"boolean\" ? value !== \"__proto__\" : value === null;\n}\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */ function isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */ function isPrototype(value) {\n var Ctor = value && value.constructor, proto = typeof Ctor == \"function\" && Ctor.prototype || objectProto;\n return value === proto;\n}\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */ function nativeKeysIn(object) {\n var result = [];\n if (object != null) for(var key in Object(object))result.push(key);\n return result;\n}\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */ function toKey(value) {\n if (typeof value == \"string\" || isSymbol(value)) return value;\n var result = value + \"\";\n return result == \"0\" && 1 / value == -INFINITY ? \"-0\" : result;\n}\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */ function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return func + \"\";\n } catch (e) {}\n }\n return \"\";\n}\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */ function eq(value, other) {\n return value === other || value !== value && other !== other;\n}\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */ function isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, \"callee\") && (!propertyIsEnumerable.call(value, \"callee\") || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */ var isArray = Array.isArray;\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */ function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */ function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */ function isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : \"\";\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */ function isLength(value) {\n return typeof value == \"number\" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */ function isObject(value) {\n var type = typeof value;\n return !!value && (type == \"object\" || type == \"function\");\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */ function isObjectLike(value) {\n return !!value && typeof value == \"object\";\n}\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */ function isSymbol(value) {\n return typeof value == \"symbol\" || isObjectLike(value) && objectToString.call(value) == symbolTag;\n}\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */ function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable string keyed properties of `object` that are\n * not omitted.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [props] The property identifiers to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */ var omit = baseRest(function(object, props) {\n if (object == null) return {};\n props = arrayMap(baseFlatten(props, 1), toKey);\n return basePick(object, baseDifference(getAllKeysIn(object), props));\n});\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */ function stubArray() {\n return [];\n}\nmodule.exports = omit;\n\n},{}],\"asZIr\":[function(require,module,exports) {\n// src/DropDown/header.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>header_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _focusNode = require(\"./../_lib/focusNode\");\nvar _icon = require(\"../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar defaultProps = {\n _refHandler: (0, _focusNode.makeFocusNode),\n showDropDownToggle: true,\n shouldKeepFocusState: true,\n iconIsOpen: \"chevron-up\",\n iconIsClosed: \"chevron-down\"\n};\nvar ShallowDropDownHeader = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleReferenceHandler = ()=>{\n const { _refHandler , shouldKeepFocusState , isOpen } = this.props;\n return shouldKeepFocusState && _refHandler && _refHandler(isOpen);\n };\n }\n render() {\n const { className , children , theme , isOpen , showDropDownToggle , toggleDropDown , iconIsOpen , iconIsClosed , iconRest , disabled } = this.props;\n const iconName = isOpen ? iconIsOpen : iconIsClosed;\n const finalClassName = (0, _classnamesDefault.default)(theme.dropDown__btn, className, {\n [theme[\"dropDown__btn--withChevron\"]]: showDropDownToggle\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n role: \"button\",\n onClick: disabled ? void 0 : toggleDropDown,\n ref: this.handleReferenceHandler,\n className: finalClassName,\n \"aria-haspopup\": \"true\"\n }, children, showDropDownToggle && /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _iconDefault.default), {\n icon: iconName,\n className: theme.dropDown__chevron,\n ...iconRest\n }));\n }\n};\nShallowDropDownHeader.defaultProps = defaultProps;\nvar header_default = ShallowDropDownHeader;\n\n},{\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"./../_lib/focusNode\":\"cohPG\",\"../Icon\":\"d3a5Q\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cQpdG\":[function(require,module,exports) {\n// src/DropDown/contents.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>ShallowDropDownContents);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nfunction getScrollContainer(el) {\n if (el.scrollHeight > el.clientHeight) {\n const { overflowY } = getComputedStyle(el);\n if (overflowY === \"auto\" || overflowY === \"scroll\") return el;\n }\n if (el.parentElement) return getScrollContainer(el.parentElement);\n return document.body;\n}\nfunction isInScrollView(el) {\n const scrollContainer = getScrollContainer(el);\n const elementBoundingBox = el.getBoundingClientRect();\n const scrollContainerBoundingBox = scrollContainer.getBoundingClientRect();\n return elementBoundingBox.top >= scrollContainerBoundingBox.top && elementBoundingBox.bottom <= scrollContainerBoundingBox.bottom;\n}\nvar _ShallowDropDownContents = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.state = _ShallowDropDownContents.getDerivedStateFromProps(this.props);\n this.recalculateStyle = ()=>requestAnimationFrame(()=>{\n this.setState({\n style: _ShallowDropDownContents.getCalculatedStyleFromProps(this.props)\n });\n });\n }\n /**\n * Calculate position and dimensions of ShallowDropDownContents based on\n * its wrapper element.\n *\n * @param ShallowDropDownContentsProps props\n * @returns React.CSSProperties\n */ static getCalculatedStyleFromProps(props) {\n if (props.scrollable && props.wrapperRef.current) {\n if (isInScrollView(props.wrapperRef.current)) {\n const wrapperBoundingBox = props.wrapperRef.current?.getBoundingClientRect();\n if (wrapperBoundingBox) {\n const minHeight = props.getMinHeight(window, props);\n const maxHeight = props.getMaxHeight(window, props);\n if (wrapperBoundingBox.y + wrapperBoundingBox.height + maxHeight <= window.innerHeight) return {\n top: wrapperBoundingBox.y + wrapperBoundingBox.height,\n left: wrapperBoundingBox.x,\n width: wrapperBoundingBox.width,\n maxHeight\n };\n if (wrapperBoundingBox.y + wrapperBoundingBox.height + minHeight <= window.innerHeight) return {\n top: wrapperBoundingBox.y + wrapperBoundingBox.height,\n left: wrapperBoundingBox.x,\n width: wrapperBoundingBox.width,\n maxHeight: window.innerHeight - wrapperBoundingBox.height - wrapperBoundingBox.y\n };\n return {\n bottom: window.innerHeight - wrapperBoundingBox.y,\n left: wrapperBoundingBox.x,\n width: wrapperBoundingBox.width,\n maxHeight: minHeight\n };\n }\n }\n return {\n display: \"none\"\n };\n }\n return {};\n }\n static getDerivedStateFromProps(props) {\n return {\n style: _ShallowDropDownContents.getCalculatedStyleFromProps(props)\n };\n }\n componentDidMount() {\n document.body.addEventListener(\"scroll\", this.recalculateStyle, {\n capture: true\n });\n window.addEventListener(\"resize\", this.recalculateStyle, {\n capture: true\n });\n }\n componentWillUnmount() {\n document.body.removeEventListener(\"scroll\", this.recalculateStyle, {\n capture: true\n });\n window.removeEventListener(\"resize\", this.recalculateStyle, {\n capture: true\n });\n }\n render() {\n const { className , children , theme , isOpen , closeDropDown , scrollable } = this.props;\n const finalClassName = (0, _classnamesDefault.default)(theme.dropDown__contents, className, {\n [theme[\"dropDown__contents--scrollable\"]]: scrollable,\n [theme[\"dropDown__contents--isOpen\"]]: isOpen\n });\n if (isOpen) {\n const contents = /* @__PURE__ */ (0, _reactDefault.default).createElement(\"ul\", {\n className: finalClassName,\n \"aria-hidden\": isOpen ? \"false\" : \"true\",\n \"aria-label\": \"dropdown\",\n role: \"listbox\",\n onClick: closeDropDown,\n style: this.state.style,\n \"data-ignore_click_outside\": true\n }, children);\n return scrollable ? (0, _reactDomDefault.default).createPortal(contents, document.body) : contents;\n }\n return null;\n }\n};\nvar ShallowDropDownContents = _ShallowDropDownContents;\nShallowDropDownContents.defaultProps = {\n getMinHeight: (window2)=>0.25 * window2.innerHeight,\n // 25vh\n getMaxHeight: (window2)=>0.8 * window2.innerHeight\n};\n\n},{\"react\":\"6uln9\",\"react-dom\":\"b8T3j\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"kizaP\":[function() {},{}],\"5iw6V\":[function(require,module,exports) {\n// src/Headline/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Headline_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _headline = require(\"./headline\");\nvar _headlineDefault = parcelHelpers.interopDefault(_headline);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Headline/style.module.css\nvar _5BbgzqfwCss = require(\"../_css/5BBGZQFW.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"heading\": \"neos-RwNJjq_heading \" + reset_module_default[\"reset\"],\n \"heading--h1\": \"neos-RwNJjq_heading--h1\"\n};\n// src/Headline/index.ts\nvar Headline_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).headline, style_module_default)((0, _headlineDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./headline\":\"9FEHx\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/5BBGZQFW.css\":\"k9XtB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9FEHx\":[function(require,module,exports) {\n// src/Headline/headline.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>headline_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar defaultProps = {\n type: \"h1\"\n};\nvar Headline = class extends (0, _react.PureComponent) {\n render() {\n const { type , className , children , theme , ...rest } = this.props;\n const classNames = (0, _classnamesDefault.default)(theme.heading, className);\n switch(type){\n case \"h1\":\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"h1\", {\n ...rest,\n className: classNames\n }, children);\n case \"h2\":\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"h2\", {\n ...rest,\n className: classNames\n }, children);\n case \"h3\":\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"h3\", {\n ...rest,\n className: classNames\n }, children);\n case \"h4\":\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"h4\", {\n ...rest,\n className: classNames\n }, children);\n case \"h5\":\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"h5\", {\n ...rest,\n className: classNames\n }, children);\n default:\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"h6\", {\n ...rest,\n className: classNames\n }, children);\n }\n }\n};\nHeadline.defaultProps = defaultProps;\nvar headline_default = Headline;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"k9XtB\":[function() {},{}],\"f6lYW\":[function(require,module,exports) {\n// src/IconButton/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>IconButton_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _iconButton = require(\"./iconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/IconButton/style.module.css\nvar _rzrwkolxCss = require(\"../_css/RZRWKOLX.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"iconButton--disabled\": \"neos-SMzb_q_iconButton--disabled\",\n \"iconButton\": \"neos-SMzb_q_iconButton \" + reset_module_default[\"reset\"],\n \"size-small\": \"neos-SMzb_q_size-small\"\n};\n// src/IconButton/index.ts\nvar IconButton_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).iconButton, style_module_default)((0, _iconButtonDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./iconButton\":\"2dI5h\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/RZRWKOLX.css\":\"4MU8k\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2dI5h\":[function(require,module,exports) {\n// src/IconButton/iconButton.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>iconButton_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _button = require(\"../Button\");\nvar _buttonDefault = parcelHelpers.interopDefault(_button);\nvar _icon = require(\"../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar defaultProps = {\n hoverStyle: \"brand\",\n size: \"regular\",\n style: \"transparent\"\n};\nvar IconButton = class extends (0, _react.PureComponent) {\n render() {\n const { className , theme , icon , iconProps , size , disabled , ...rest } = this.props;\n const finalClassName = (0, _classnamesDefault.default)(className, theme.iconButton, // @ts-ignore implizit any because IconButtonTheme has no index signature\n theme[`size-${size}`], {\n [theme[\"iconButton--disabled\"]]: disabled\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _buttonDefault.default), {\n ...rest,\n size,\n className: finalClassName,\n disabled\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _iconDefault.default), {\n icon,\n ...iconProps\n }));\n }\n};\nIconButton.defaultProps = defaultProps;\nvar iconButton_default = IconButton;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"../Button\":\"3O9ca\",\"../Icon\":\"d3a5Q\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"4MU8k\":[function() {},{}],\"1WD74\":[function(require,module,exports) {\n// src/Label/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Label_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _label = require(\"./label\");\nvar _labelDefault = parcelHelpers.interopDefault(_label);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Label/style.module.css\nvar _dgkjfrmtCss = require(\"../_css/DGKJFRMT.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"label\": \"neos-7CQSZa_label \" + reset_module_default[\"reset\"]\n};\n// src/Label/index.ts\nvar Label_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).label, style_module_default)((0, _labelDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./label\":\"gpBHc\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/DGKJFRMT.css\":\"hsUek\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gpBHc\":[function(require,module,exports) {\n// src/Label/label.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>label_default);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar Label = ({ children , className , htmlFor , theme , ...rest })=>{\n const classNames = (0, _classnamesDefault.default)(theme.label, className);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"label\", {\n ...rest,\n htmlFor,\n className: classNames\n }, children);\n};\nvar label_default = Label;\n\n},{\"classnames\":\"hVGzI\",\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"hsUek\":[function() {},{}],\"5M1am\":[function(require,module,exports) {\n// src/SelectBox/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _reactKeydown = require(\"react-keydown\");\nvar _reactKeydownDefault = parcelHelpers.interopDefault(_reactKeydown);\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/SelectBox/style.module.css\nvar _74Z7X564Css = require(\"../_css/74Z7X564.css\");\n// src/SelectBox/index.js\nvar _config = require(\"./config\");\nvar _selectBox = require(\"./selectBox\");\nvar _selectBoxDefault = parcelHelpers.interopDefault(_selectBox);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _dropDown = require(\"./../DropDown\");\nvar _dropDownDefault = parcelHelpers.interopDefault(_dropDown);\nvar _selectBoxHeader = require(\"./../SelectBox_Header\");\nvar _selectBoxHeaderDefault = parcelHelpers.interopDefault(_selectBoxHeader);\nvar _selectBoxHeaderWithSearchInput = require(\"./../SelectBox_HeaderWithSearchInput\");\nvar _selectBoxHeaderWithSearchInputDefault = parcelHelpers.interopDefault(_selectBoxHeaderWithSearchInput);\nvar _selectBoxListPreview = require(\"./../SelectBox_ListPreview\");\nvar _selectBoxListPreviewDefault = parcelHelpers.interopDefault(_selectBoxListPreview);\nvar style_module_default = {\n \"selectBox__list\": \"neos-QvCEOa_selectBox__list\",\n \"selectBox__btn--noRightPadding\": \"neos-QvCEOa_selectBox__btn--noRightPadding\",\n \"selectBox__contents\": \"neos-QvCEOa_selectBox__contents\",\n \"selectBox__btn\": \"neos-QvCEOa_selectBox__btn\",\n \"selectBox\": \"neos-QvCEOa_selectBox\",\n \"selectBox__groupHeader\": \"neos-QvCEOa_selectBox__groupHeader\",\n \"selectBox--disabled\": \"neos-QvCEOa_selectBox--disabled\",\n \"selectBox__contents--hasItems\": \"neos-QvCEOa_selectBox__contents--hasItems\",\n \"selectBox__item\": \"neos-QvCEOa_selectBox__item\"\n};\nvar ThemedSelectBox = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).selectBox, style_module_default)((0, _selectBoxDefault.default));\nvar WithKeys = (0, _reactKeydownDefault.default)((0, _config.keys))(ThemedSelectBox);\nvar SelectBox_default = (0, _injectPropsDefault.default)({\n DropDown: (0, _dropDownDefault.default),\n SelectBox_Header: (0, _selectBoxHeaderDefault.default),\n SelectBox_HeaderWithSearchInput: (0, _selectBoxHeaderWithSearchInputDefault.default),\n SelectBox_ListPreview: (0, _selectBoxListPreviewDefault.default)\n})(WithKeys);\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"react-keydown\":\"iDlm0\",\"../identifiers\":\"h8ZAm\",\"../_css/74Z7X564.css\":\"gqK3P\",\"./config\":\"it6Nc\",\"./selectBox\":\"gjofF\",\"./../_lib/injectProps\":\"4zDuU\",\"./../DropDown\":\"1PmkQ\",\"./../SelectBox_Header\":\"3pqHS\",\"./../SelectBox_HeaderWithSearchInput\":\"jzAro\",\"./../SelectBox_ListPreview\":\"3wtUY\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iDlm0\":[function(require,module,exports) {\n// polyfill array.from (mainly for IE)\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n// @keydown and @keydownScoped\nparcelHelpers.export(exports, \"default\", ()=>(0, _decoratorsDefault.default));\nparcelHelpers.export(exports, \"keydownScoped\", ()=>(0, _decorators.keydownScoped));\n// setBinding - only useful if you're not going to use decorators\nparcelHelpers.export(exports, \"setBinding\", ()=>(0, _store.setBinding));\n// Keys - use this to find key codes for strings. for example: Keys.j, Keys.enter\nparcelHelpers.export(exports, \"Keys\", ()=>(0, _keysDefault.default));\nparcelHelpers.export(exports, \"ALL_KEYS\", ()=>(0, _keys.ALL_KEYS));\nparcelHelpers.export(exports, \"ALL_PRINTABLE_KEYS\", ()=>(0, _keys.ALL_PRINTABLE_KEYS));\nvar _arrayFrom = require(\"./lib/array.from\");\nvar _decorators = require(\"./decorators\");\nvar _decoratorsDefault = parcelHelpers.interopDefault(_decorators);\nvar _store = require(\"./store\");\nvar _keys = require(\"./lib/keys\");\nvar _keysDefault = parcelHelpers.interopDefault(_keys);\n\n},{\"./lib/array.from\":\"2kcpF\",\"./decorators\":\"7xEt0\",\"./store\":\"atcm0\",\"./lib/keys\":\"kS7xr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2kcpF\":[function(require,module,exports) {\n// Production steps of ECMA-262, Edition 6, 22.1.2.1\n// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from\nif (!Array.from) Array.from = function() {\n var toStr = Object.prototype.toString;\n var isCallable = function isCallable(fn) {\n return typeof fn === \"function\" || toStr.call(fn) === \"[object Function]\";\n };\n var toInteger = function toInteger(value) {\n var number = Number(value);\n if (isNaN(number)) return 0;\n if (number === 0 || !isFinite(number)) return number;\n return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));\n };\n var maxSafeInteger = Math.pow(2, 53) - 1;\n var toLength = function toLength(value) {\n var len = toInteger(value);\n return Math.min(Math.max(len, 0), maxSafeInteger);\n };\n // The length property of the from method is 1.\n return function from(arrayLike /*, mapFn, thisArg */ ) {\n // 1. Let C be the this value.\n var C = this;\n // 2. Let items be ToObject(arrayLike).\n var items = Object(arrayLike);\n // 3. ReturnIfAbrupt(items).\n if (arrayLike == null) throw new TypeError(\"Array.from requires an array-like object - not null or undefined\");\n // 4. If mapfn is undefined, then let mapping be false.\n var mapFn = arguments.length > 1 ? arguments[1] : void 0;\n var T;\n if (typeof mapFn !== \"undefined\") {\n // 5. else\n // 5. a If IsCallable(mapfn) is false, throw a TypeError exception.\n if (!isCallable(mapFn)) throw new TypeError(\"Array.from: when provided, the second argument must be a function\");\n // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.\n if (arguments.length > 2) T = arguments[2];\n }\n // 10. Let lenValue be Get(items, \"length\").\n // 11. Let len be ToLength(lenValue).\n var len = toLength(items.length);\n // 13. If IsConstructor(C) is true, then\n // 13. a. Let A be the result of calling the [[Construct]] internal method \n // of C with an argument list containing the single item len.\n // 14. a. Else, Let A be ArrayCreate(len).\n var A = isCallable(C) ? Object(new C(len)) : new Array(len);\n // 16. Let k be 0.\n var k = 0;\n // 17. Repeat, while k < len… (also steps a - h)\n var kValue;\n while(k < len){\n kValue = items[k];\n if (mapFn) A[k] = typeof T === \"undefined\" ? mapFn(kValue, k) : mapFn.call(T, kValue, k);\n else A[k] = kValue;\n k += 1;\n }\n // 18. Let putStatus be Put(A, \"length\", len, true).\n A.length = len;\n // 20. Return A.\n return A;\n };\n}();\n\n},{}],\"7xEt0\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"keydownScoped\", ()=>keydownScoped);\n/**\n * @module decorators\n *\n */ var _classDecorator = require(\"./class_decorator\");\nvar _classDecoratorDefault = parcelHelpers.interopDefault(_classDecorator);\nvar _methodDecorator = require(\"./method_decorator\");\nvar _methodDecoratorDefault = parcelHelpers.interopDefault(_methodDecorator);\nvar _methodDecoratorScoped = require(\"./method_decorator_scoped\");\nvar _methodDecoratorScopedDefault = parcelHelpers.interopDefault(_methodDecoratorScoped);\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n/**\n * noopDecorator\n *\n * @access private\n * @return {undefined} Returns `undefined` so that the original undecorated instance/method is used\n */ function noopDecorator() {\n return undefined;\n}\n/**\n * _decorator\n *\n * @access private\n * @param {Function} methodFn The method wrapper to delegate to, based on whether user has specified a scoped decorator or not\n * @param {Array} ...args Remainder of arguments passed in\n * @return {Function} The decorated class or method\n */ function _decorator(methodFn) {\n for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];\n // check the first argument to see if it's a user-supplied keycode or array\n // of keycodes, or if it's the wrapped class or method\n var testArg = args[0];\n var isArray = Array.isArray(testArg);\n // if the test argument is not an object or function, it is user-supplied\n // keycodes. else there are no arguments and it's just the wrapped class\n if (isArray || ~[\n \"string\",\n \"number\",\n \"symbol\"\n ].indexOf(typeof testArg === \"undefined\" ? \"undefined\" : _typeof(testArg))) {\n var keys = isArray ? testArg : args;\n // return the decorator function, which on the next call will look for\n // the presence of a method name to determine if this is a wrapped method\n // or component\n return function(target, methodName, descriptor) {\n return methodName ? methodFn({\n target: target,\n descriptor: descriptor,\n keys: keys\n }) : (0, _classDecoratorDefault.default)(target, keys);\n };\n } else {\n var WrappedComponent = args[0];\n var methodName = args[1];\n // method decorators without keycode (which) arguments are not allowed.\n if (WrappedComponent && !methodName) return (0, _classDecoratorDefault.default).apply(undefined, args);\n else {\n console.warn(methodName + \": Method decorators must have keycode arguments, so the decorator for this method will not do anything\");\n return noopDecorator;\n }\n }\n}\n/**\n * keydownScoped\n *\n * Method decorator that will look for changes to its targeted component's\n * `keydown` props to decide when to trigger, rather than responding directly\n * to keydown events. This lets you specify a @keydown decorated class higher\n * up in the view hierarchy for larger scoping of keydown events, or for\n * programmatically sending keydown events as props into the components in order\n * to trigger decorated methods with matching keys.\n *\n * @access public\n * @param {Array} ...args All (or no) arguments passed in from decoration\n * @return {Function} The decorated class or method\n */ function keydownScoped() {\n for(var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++)args[_key2] = arguments[_key2];\n return _decorator.apply(undefined, [\n (0, _methodDecoratorScopedDefault.default)\n ].concat(args));\n}\n/**\n * keydown\n *\n * The main decorator and default export, handles both classes and methods.\n *\n * @access public\n * @param {Array} ...args All (or no) arguments passed in from decoration\n * @return {Function} The decorated class or method\n */ function keydown() {\n for(var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++)args[_key3] = arguments[_key3];\n return _decorator.apply(undefined, [\n (0, _methodDecoratorDefault.default)\n ].concat(args));\n}\nexports.default = keydown;\n\n},{\"./class_decorator\":\"eJLNV\",\"./method_decorator\":\"kcR5p\",\"./method_decorator_scoped\":\"2OmUG\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eJLNV\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * @module componentWrapper\n *\n */ var _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _store = require(\"../store\");\nvar _eventHandlers = require(\"../event_handlers\");\nvar _keys = require(\"../lib/keys\");\nvar _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n};\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n/**\n * componentWrapper\n *\n * @access public\n * @param {object} WrappedComponent React component class to be wrapped\n * @param {array} [keys] The key(s) bound to the class\n * @return {object} The higher-order function that wraps the decorated class\n */ function componentWrapper(WrappedComponent) {\n var keys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _keys.ALL_KEYS);\n var KeyBoardHelper = function(_React$Component) {\n _inherits(KeyBoardHelper, _React$Component);\n function KeyBoardHelper(props) {\n _classCallCheck(this, KeyBoardHelper);\n var _this = _possibleConstructorReturn(this, (KeyBoardHelper.__proto__ || Object.getPrototypeOf(KeyBoardHelper)).call(this, props));\n _this.state = {\n event: null\n };\n return _this;\n }\n _createClass(KeyBoardHelper, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n (0, _eventHandlers.onMount)(this);\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n (0, _eventHandlers.onUnmount)(this);\n }\n },\n {\n key: \"handleKeyDown\",\n value: function handleKeyDown(event) {\n var _this2 = this;\n // to simulate a keypress, set the event and then clear it in the callback\n this.setState({\n event: event\n }, function() {\n return _this2.setState({\n event: null\n });\n });\n }\n },\n {\n key: \"render\",\n value: function render() {\n return (0, _reactDefault.default).createElement(WrappedComponent, _extends({}, this.props, {\n keydown: this.state\n }));\n }\n }\n ]);\n return KeyBoardHelper;\n }((0, _reactDefault.default).Component);\n _store.setBinding({\n keys: [].concat(keys),\n fn: KeyBoardHelper.prototype.handleKeyDown,\n target: KeyBoardHelper.prototype\n });\n return KeyBoardHelper;\n}\nexports.default = componentWrapper;\n\n},{\"react\":\"6uln9\",\"../store\":\"atcm0\",\"../event_handlers\":\"eBgKg\",\"../lib/keys\":\"kS7xr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"atcm0\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n// for testing\nparcelHelpers.export(exports, \"_resetStore\", ()=>_resetStore);\n/**\n * activate\n *\n * @access public\n * @param {object} instance Instantiated class that extended React.Component, to be focused to receive keydown events\n */ parcelHelpers.export(exports, \"activate\", ()=>activate);\n/**\n * deleteInstance\n *\n * @access public\n * @param {object} target Instantiated class that extended React.Component\n * @return {boolean} The value set.has( target ) would have returned prior to deletion\n */ parcelHelpers.export(exports, \"deleteInstance\", ()=>deleteInstance);\nparcelHelpers.export(exports, \"findBindingForEvent\", ()=>findBindingForEvent);\n/**\n * getBinding\n *\n * @access public\n * @param {object} target Class used as key in dict of key bindings\n * @return {object} The object containing bindings for the given class\n */ parcelHelpers.export(exports, \"getBinding\", ()=>getBinding);\n/**\n * getInstances\n *\n * @access public\n * @return {set} All stored instances (all mounted component instances with keybindings)\n */ parcelHelpers.export(exports, \"getInstances\", ()=>getInstances);\n/**\n * isEmpty\n *\n * @access public\n * @return {number} Size of the set of all stored instances\n */ parcelHelpers.export(exports, \"isEmpty\", ()=>isEmpty);\n/**\n * setBinding\n *\n * @access public\n * @param {object} args All arguments necessary to set the binding\n * @param {array} args.keys Key codes that should trigger the fn\n * @param {function} args.fn The callback to be triggered when given keys are pressed\n * @param {object} args.target The decorated class\n */ parcelHelpers.export(exports, \"setBinding\", ()=>setBinding);\n/**\n * @module store\n *\n */ var _matchKeys = require(\"./lib/match_keys\");\nvar _matchKeysDefault = parcelHelpers.interopDefault(_matchKeys);\nvar _parseKeys = require(\"./lib/parse_keys\");\nvar _parseKeysDefault = parcelHelpers.interopDefault(_parseKeys);\nvar _uuid = require(\"./lib/uuid\");\nvar _uuidDefault = parcelHelpers.interopDefault(_uuid);\nvar _slicedToArray = function() {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n return function(arr, i) {\n if (Array.isArray(arr)) return arr;\n else if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i);\n else throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n };\n}();\nfunction _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for(var i = 0, arr2 = Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];\n return arr2;\n } else return Array.from(arr);\n}\n/**\n * private\n *\n */ // dict for class prototypes => bindings\nvar _handlers = new Map();\n// all mounted instances that have keybindings\nvar _instances = new Set();\nfunction _resetStore() {\n _handlers.clear();\n _instances.clear();\n}\nfunction activate(instances) {\n var instancesArray = [].concat(instances);\n // if no components were found as ancestors of the event target,\n // effectively deactivate keydown handling by capping the set of instances\n // with `null`.\n if (!instancesArray.length) _instances.add(null);\n else {\n _instances.delete(null);\n // deleting and then adding the instance(s) has the effect of sorting the set\n // according to instance activation (ascending)\n instancesArray.forEach(function(instance) {\n _instances.delete(instance);\n _instances.add(instance);\n });\n }\n}\nfunction deleteInstance(target) {\n _instances.delete(target);\n}\nfunction findBindingForEvent(event) {\n if (!_instances.has(null)) {\n var keyMatchesEvent = function keyMatchesEvent(keySet) {\n return (0, _matchKeysDefault.default)({\n keySet: keySet,\n event: event\n });\n };\n // loop through instances in reverse activation order so that most\n // recently activated instance gets first dibs on event\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n try {\n for(var _iterator = [].concat(_toConsumableArray(_instances)).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var instance = _step.value;\n var bindings = getBinding(instance.constructor.prototype);\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n try {\n for(var _iterator2 = bindings[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){\n var _step2$value = _slicedToArray(_step2.value, 2), keySets = _step2$value[0], fn = _step2$value[1];\n if (keySets.some(keyMatchesEvent)) // return when matching keybinding is found - i.e. only one\n // keybound component can respond to a given key code. to get around this,\n // scope a common ancestor component class with @keydown and use\n // @keydownScoped to bind the duplicate keys in your child components\n // (or just inspect nextProps.keydown.event).\n return {\n fn: fn,\n instance: instance\n };\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) _iterator2.return();\n } finally{\n if (_didIteratorError2) throw _iteratorError2;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return) _iterator.return();\n } finally{\n if (_didIteratorError) throw _iteratorError;\n }\n }\n }\n return null;\n}\nfunction getBinding(_ref) {\n var __reactKeydownUUID = _ref.__reactKeydownUUID;\n return _handlers.get(__reactKeydownUUID);\n}\nfunction getInstances() {\n return _instances;\n}\nfunction isEmpty() {\n return !_instances.size;\n}\nfunction setBinding(_ref2) {\n var keys = _ref2.keys, fn = _ref2.fn, target = _ref2.target;\n var keySets = (0, _parseKeysDefault.default)(keys);\n var __reactKeydownUUID = target.__reactKeydownUUID;\n if (!__reactKeydownUUID) {\n target.__reactKeydownUUID = (0, _uuidDefault.default)();\n _handlers.set(target.__reactKeydownUUID, new Map([\n [\n keySets,\n fn\n ]\n ]));\n } else _handlers.get(__reactKeydownUUID).set(keySets, fn);\n}\n\n},{\"./lib/match_keys\":\"dnolF\",\"./lib/parse_keys\":\"cv3bS\",\"./lib/uuid\":\"2G6T6\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dnolF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _keys = require(\"./keys\");\nvar PRINTABLE_CHARACTERS = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^&*()-_+=[]\\\\{}|;':\\\",./<>?\\xa3\";\nvar modKeys = Object.keys((0, _keys.modifiers));\nfunction matchKeys(_ref) {\n var keySet = _ref.keySet, event = _ref.event;\n var key = keySet.key, _keySet$modifiers = keySet.modifiers, modifiers = _keySet$modifiers === undefined ? [] : _keySet$modifiers;\n var keysMatch = void 0;\n keysMatch = key === (0, _keys.ALL_KEYS);\n if (key === (0, _keys.ALL_PRINTABLE_KEYS)) {\n if (event.key) // Modern browsers implement `key`, so if `key` is length 1, we have a match. e.g. 'a' for the\n // a key, or '2' for the 2 key. All other non-printable characters have names, e.g. 'Enter' or 'Backspace'.\n keysMatch = event.key.length === 1;\n else {\n // For browsers that do no support `event.key`, we test against a list of characters\n var pressedChar = String.fromCharCode(event.charCode);\n keysMatch = PRINTABLE_CHARACTERS.indexOf(pressedChar) >= 0;\n }\n }\n if (key === event.which) {\n var evtModKeys = modKeys.filter(function(modKey) {\n return event[modKey + \"Key\"];\n }).sort();\n keysMatch = modifiers.length === evtModKeys.length && modifiers.every(function(modKey, index) {\n return evtModKeys[index] === modKey;\n });\n }\n return keysMatch;\n}\nexports.default = matchKeys;\n\n},{\"./keys\":\"kS7xr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kS7xr\":[function(require,module,exports) {\n// TODO: Need better, more complete, and more methodical key definitions\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"modifiers\", ()=>modifiers);\nparcelHelpers.export(exports, \"ALL_KEYS\", ()=>ALL_KEYS);\nparcelHelpers.export(exports, \"ALL_PRINTABLE_KEYS\", ()=>ALL_PRINTABLE_KEYS);\nvar Keys = {\n backspace: 8,\n del: 46,\n delete: 46,\n tab: 9,\n enter: 13,\n \"return\": 13,\n esc: 27,\n space: 32,\n pageUp: 33,\n pageDown: 34,\n end: 35,\n home: 36,\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n \";\": 186,\n \"=\": 187,\n \",\": 188,\n \"-\": 189,\n \".\": 190,\n \"/\": 191,\n \"`\": 192,\n \"[\": 219,\n \"\\\\\": 220,\n \"]\": 221\n};\n// Add uppercase versions of keys above for backwards compatibility\nObject.keys(Keys).forEach(function(key) {\n return Keys[key.toUpperCase()] = Keys[key];\n});\n\"0123456789\".split(\"\").forEach(function(num, index) {\n return Keys[num] = index + 48;\n});\n\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\").forEach(function(letter, index) {\n Keys[letter] = index + 65;\n Keys[letter.toLowerCase()] = index + 65;\n});\n// fn keys\n[\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12\n].forEach(function(item, index) {\n return Keys[\"f\" + index] = 111 + index;\n});\nvar modifiers = {\n control: \"ctrl\",\n ctrl: \"ctrl\",\n shift: \"shift\",\n meta: \"meta\",\n cmd: \"meta\",\n command: \"meta\",\n option: \"alt\",\n alt: \"alt\"\n};\nvar ALL_KEYS = Symbol(\"ALL_KEYS\");\nvar ALL_PRINTABLE_KEYS = Symbol(\"ALL_PRINTABLE_KEYS\");\nexports.default = Keys;\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cv3bS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _keys = require(\"./keys\");\nvar _keysDefault = parcelHelpers.interopDefault(_keys);\nfunction parseKeys(keysArray) {\n return keysArray.map(function(key) {\n var keySet = {\n key: key\n };\n if (typeof key === \"string\") {\n var keyString = key.toLowerCase().trim();\n var matches = keyString.split(/\\s?\\+\\s?/);\n keySet = matches.length === 1 ? {\n key: (0, _keysDefault.default)[keyString]\n } : {\n key: (0, _keysDefault.default)[matches.pop()],\n modifiers: matches.map(function(modKey) {\n return (0, _keys.modifiers)[modKey];\n }).sort()\n };\n }\n return keySet;\n });\n}\nexports.default = parseKeys;\n\n},{\"./keys\":\"kS7xr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2G6T6\":[function(require,module,exports) {\n// Counter being incremented. JS is single-threaded, so it'll Just Work™.\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>uuid);\nvar __counter = 1;\nfunction uuid() {\n return \"uid-\" + __counter++;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eBgKg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * private\n *\n */ /**\n * _onClick\n *\n * @access private\n * @param {object} event The click event object\n * @param {object} event.target The DOM node from the click event\n */ parcelHelpers.export(exports, \"_onClick\", ()=>_onClick);\n/**\n * _onKeyDown: The keydown event callback\n *\n * @access private\n * @param {object} event The keydown event object\n * @param {number} event.which The key code (which) received from the keydown event\n */ parcelHelpers.export(exports, \"_onKeyDown\", ()=>_onKeyDown);\n/**\n * _shouldConsider: Conditions for proceeding with key event handling\n *\n * @access private\n * @param {object} event The keydown event object\n * @param {object} event.target The node origin of the event\n * @return {boolean} Whether to continue procesing the keydown event\n */ parcelHelpers.export(exports, \"_shouldConsider\", ()=>_shouldConsider);\nparcelHelpers.export(exports, \"onMount\", ()=>onMount);\nparcelHelpers.export(exports, \"onUnmount\", ()=>onUnmount);\n/* eslint-disable no-use-before-define */ /**\n * @module eventHandlers\n *\n */ var _domHelpers = require(\"./lib/dom_helpers\");\nvar _domHelpersDefault = parcelHelpers.interopDefault(_domHelpers);\nvar _listeners = require(\"./lib/listeners\");\nvar _listenersDefault = parcelHelpers.interopDefault(_listeners);\nvar _store = require(\"./store\");\nfunction _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for(var i = 0, arr2 = Array(arr.length); i < arr.length; i++)arr2[i] = arr[i];\n return arr2;\n } else return Array.from(arr);\n}\nfunction _onClick(_ref) {\n var target = _ref.target;\n _store.activate([].concat(_toConsumableArray(_store.getInstances())).reduce((0, _domHelpersDefault.default).findContainerNodes(target), []).sort((0, _domHelpersDefault.default).sortByDOMPosition).map(function(item) {\n return item.instance;\n }));\n}\nfunction _onKeyDown(event) {\n var forceConsider = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (forceConsider || _shouldConsider(event)) {\n var _ref2 = _store.findBindingForEvent(event) || {}, fn = _ref2.fn, instance = _ref2.instance;\n if (fn) {\n fn.call(instance, event);\n return true;\n }\n }\n return false;\n}\nfunction _shouldConsider(_ref3) {\n var ctrlKey = _ref3.ctrlKey, target = _ref3.target;\n return ctrlKey || !~[\n \"INPUT\",\n \"SELECT\",\n \"TEXTAREA\"\n ].indexOf(target.tagName) && (!target.getAttribute || target.getAttribute(\"role\") !== \"textbox\");\n}\n/**\n * public\n *\n */ /**\n * onMount\n *\n * @access public\n */ function onMount(instance) {\n _store.activate(instance);\n (0, _listenersDefault.default).bindKeys(_onKeyDown);\n (0, _listenersDefault.default).bindClicks(_onClick);\n (0, _domHelpersDefault.default).bindFocusables(instance, _store.activate);\n}\n/**\n * onUnmount\n *\n * @access public\n */ function onUnmount(instance) {\n _store.deleteInstance(instance);\n if (_store.isEmpty()) {\n (0, _listenersDefault.default).unbindClicks(_onClick);\n (0, _listenersDefault.default).unbindKeys(_onKeyDown);\n }\n}\n\n},{\"./lib/dom_helpers\":\"dNbB8\",\"./lib/listeners\":\"a61Ds\",\"./store\":\"atcm0\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dNbB8\":[function(require,module,exports) {\n/**\n * @module domHelpers\n *\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar focusableSelector = \"a[href], button, input, object, select, textarea, [tabindex]\";\n/**\n * bindFocusables: Find any focusable child elements of the component instance and\n * add an onFocus handler to focus our keydown handlers on the parent component\n * when user keys applies focus to the element.\n *\n * NOTE: One limitation of this right now is that if you tab out of the\n * component, _focusedInstance will still be set until next click or mount or\n * controlled focus.\n *\n * @access public\n * @param {object} instance The key-bound component instance\n * @param {callback} activateOnFocus The fn to fire when element is focused\n */ function bindFocusables(instance, activateOnFocus) {\n if (document.querySelectorAll) try {\n var node = (0, _reactDomDefault.default).findDOMNode(instance);\n if (node) {\n var focusables = node.querySelectorAll(focusableSelector);\n if (focusables.length) {\n var onFocus = function onFocus(element) {\n var onFocusPrev = element.onfocus;\n return function(event) {\n activateOnFocus(instance);\n if (onFocusPrev) onFocusPrev.call(element, event);\n };\n };\n Array.prototype.slice.call(focusables).forEach(function(element) {\n return element.onfocus = onFocus(element);\n });\n }\n }\n } catch (error) {\n // noop, mostly suppressing error here https://github.com/glortho/react-keydown/issues/76\n }\n}\n/**\n * findContainerNodes: Called by our click handler to find instances with nodes\n * that are equal to or that contain the click target. Any that pass this test\n * will be recipients of the next keydown event.\n *\n * @access public\n * @param {object} target The click event.target DOM element\n * @return {function} Reducer function\n */ function findContainerNodes(target) {\n return function(memo, instance) {\n try {\n var node = (0, _reactDomDefault.default).findDOMNode(instance);\n if (node && (node === target || node.contains(target))) memo.push({\n instance: instance,\n node: node\n });\n } finally{\n return memo;\n }\n };\n}\n/**\n * sortByDOMPosition: Called by our click handler to sort a list of instances\n * according to least -> most nested. This is so that if multiple keybound\n * instances have nodes that are ancestors of the click target, they will be\n * sorted to let the instance closest to the click target get first dibs on the\n * next key down event.\n */ function sortByDOMPosition(a, b) {\n return a.node.compareDocumentPosition(b.node) === 10 ? 1 : -1;\n}\nexports.default = {\n bindFocusables: bindFocusables,\n findContainerNodes: findContainerNodes,\n sortByDOMPosition: sortByDOMPosition\n};\n\n},{\"react-dom\":\"b8T3j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"a61Ds\":[function(require,module,exports) {\n/**\n * @module Listeners\n *\n */ // flag for whether click listener has been bound to document\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _clicksBound = false;\n// flag for whether keydown listener has been bound to document\nvar _keysBound = false;\nvar Listeners = {\n /**\n * _bindKeys\n *\n * @access public\n */ bindKeys: function bindKeys(callback) {\n if (!_keysBound) {\n document.addEventListener(\"keydown\", callback);\n _keysBound = true;\n }\n },\n /**\n * unbindKeys\n *\n * @access public\n */ unbindKeys: function unbindKeys(callback) {\n if (_keysBound) {\n document.removeEventListener(\"keydown\", callback);\n _keysBound = false;\n }\n },\n /**\n * bindClicks\n *\n * @access public\n */ bindClicks: function bindClicks(callback) {\n if (!_clicksBound) {\n document.addEventListener(\"click\", callback, true);\n _clicksBound = true;\n }\n },\n /**\n * unbindClicks\n *\n * @access public\n */ unbindClicks: function unbindClicks(callback) {\n if (_clicksBound) {\n document.removeEventListener(\"click\", callback, true);\n _clicksBound = false;\n }\n }\n};\nexports.default = Listeners;\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kcR5p\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * @module methodWrapper\n *\n */ var _store = require(\"../store\");\nvar _eventHandlers = require(\"../event_handlers\");\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n/**\n * _isReactKeyDown\n *\n * @access private\n * @param {object} event The possibly synthetic event passed as an argument with\n * the method invocation.\n * @return {boolean}\n */ function _isReactKeyDown(event) {\n return event && (typeof event === \"undefined\" ? \"undefined\" : _typeof(event)) === \"object\" && event.nativeEvent instanceof window.KeyboardEvent && event.type === \"keydown\";\n}\n/**\n * methodWrapper\n *\n * @access public\n * @param {object} args All arguments necessary for wrapping method\n * @param {object} args.target The decorated class\n * @param {object} args.descriptor Method descriptor\n * @param {array} args.keys The array of keys bound to the given method\n * @return {object} The method descriptor\n */ function methodWrapper(_ref) {\n var target = _ref.target, descriptor = _ref.descriptor, keys = _ref.keys;\n var fn = descriptor.value;\n // if we haven't already created a binding for this class (via another\n // decorated method), wrap these lifecycle methods.\n if (!_store.getBinding(target)) {\n var componentDidMount = target.componentDidMount, componentWillUnmount = target.componentWillUnmount;\n target.componentDidMount = function() {\n (0, _eventHandlers.onMount)(this);\n if (componentDidMount) return componentDidMount.call(this);\n };\n target.componentWillUnmount = function() {\n (0, _eventHandlers.onUnmount)(this);\n if (componentWillUnmount) return componentWillUnmount.call(this);\n };\n }\n // add this binding of keys and method to the target's bindings\n _store.setBinding({\n keys: keys,\n target: target,\n fn: fn\n });\n descriptor.value = function() {\n for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n var maybeEvent = args[0];\n if (_isReactKeyDown(maybeEvent)) {\n // proxy method in order to use @keydown as filter for keydown events coming\n // from an actual onKeyDown binding (as identified by react's addition of\n // 'nativeEvent' + type === 'keydown')\n if (!maybeEvent.ctrlKey) // we already whitelist shortcuts with ctrl modifiers so if we were to\n // fire it again here the method would trigger twice. see https://github.com/glortho/react-keydown/issues/38\n return (0, _eventHandlers._onKeyDown)(maybeEvent, true);\n } else if (!maybeEvent || !(maybeEvent instanceof window.KeyboardEvent) || maybeEvent.type !== \"keydown\") // if our first argument is a keydown event it is being handled by our\n // binding system. if it's anything else, just pass through.\n return fn.call.apply(fn, [\n this\n ].concat(args));\n };\n return descriptor;\n}\nexports.default = methodWrapper;\n\n},{\"../store\":\"atcm0\",\"../event_handlers\":\"eBgKg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2OmUG\":[function(require,module,exports) {\n/**\n * @module methodWrapperScoped\n *\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _matchKeys = require(\"../lib/match_keys\");\nvar _matchKeysDefault = parcelHelpers.interopDefault(_matchKeys);\nvar _parseKeys = require(\"../lib/parse_keys\");\nvar _parseKeysDefault = parcelHelpers.interopDefault(_parseKeys);\n/**\n * methodWrapperScoped\n *\n * @access public\n * @param {object} args All args necessary for decorating the method\n * @param {object} args.target The decorated method's class object\n * @param {object} args.descriptor The method's descriptor object\n * @param {array} args.keys The key codes bound to the decorated method\n * @return {object} The method's descriptor object\n */ function methodWrapperScoped(_ref) {\n var target = _ref.target, descriptor = _ref.descriptor, keys = _ref.keys;\n var componentWillReceiveProps = target.componentWillReceiveProps;\n var fn = descriptor.value;\n if (!keys) console.warn(fn + \": keydownScoped requires one or more keys\");\n else {\n /**\n * _shouldTrigger\n *\n * @access private\n * @param {object} thisProps Exsting props from the wrapped component\n * @param {object} thisProps.keydown The namespaced state from the higher-order\n * component (class_decorator)\n * @param {object} nextProps The incoming props from the wrapped component\n * @param {object} nextProps.keydown The namescaped state from the higher-order\n * component (class_decorator)\n * @param {array} keys The keys bound to the decorated method\n * @return {boolean} Whether all tests have passed\n */ var _shouldTrigger = function _shouldTrigger(keydownThis, keydownNext) {\n if (!(keydownNext && keydownNext.event && !keydownThis.event)) return false;\n return keySets.some(function(keySet) {\n return (0, _matchKeysDefault.default)({\n keySet: keySet,\n event: keydownNext.event\n });\n });\n };\n // wrap the component's lifecycle method to intercept key codes coming down\n // from the wrapped/scoped component up the view hierarchy. if new keydown\n // event has arrived and the key codes match what was specified in the\n // decorator, call the wrapped method.\n var keySets = (0, _parseKeysDefault.default)(keys);\n target.componentWillReceiveProps = function(nextProps) {\n var keydownNext = nextProps.keydown;\n var keydownThis = this.props.keydown;\n if (_shouldTrigger(keydownThis, keydownNext)) return fn.call(this, keydownNext.event);\n for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key];\n if (componentWillReceiveProps) return componentWillReceiveProps.call.apply(componentWillReceiveProps, [\n this,\n nextProps\n ].concat(args));\n };\n }\n return descriptor;\n}\nexports.default = methodWrapperScoped;\n\n},{\"../lib/match_keys\":\"dnolF\",\"../lib/parse_keys\":\"cv3bS\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gqK3P\":[function() {},{}],\"it6Nc\":[function(require,module,exports) {\n// src/SelectBox/config.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"keys\", ()=>keys);\nvar _reactKeydown = require(\"react-keydown\");\nvar { ENTER , UP , DOWN , ESC } = (0, _reactKeydown.Keys);\nvar keys = [\n ENTER,\n UP,\n DOWN,\n ESC\n];\n\n},{\"react-keydown\":\"iDlm0\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gjofF\":[function(require,module,exports) {\n// src/SelectBox/selectBox.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _plowJs = require(\"plow-js\");\nvar _selectBoxOptionSingleLine = require(\"../SelectBox_Option_SingleLine\");\nvar _selectBoxOptionSingleLineDefault = parcelHelpers.interopDefault(_selectBoxOptionSingleLine);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _lodashIsequal = require(\"lodash.isequal\");\nvar _lodashIsequalDefault = parcelHelpers.interopDefault(_lodashIsequal);\nvar SelectBox = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.state = {\n searchTerm: \"\",\n isExpanded: false,\n focusedValue: \"\"\n };\n this.handleChange = (option)=>{\n const optionValueAccessor = this.getOptionValueAccessor();\n this.props.onValueChange(optionValueAccessor(option));\n this.setState({\n searchTerm: \"\"\n });\n };\n this.handleDeleteClick = (event)=>{\n if (event) event.stopPropagation();\n this.props.onValueChange(\"\");\n };\n this.handleToggleExpanded = ()=>{\n if (this.props.disabled) return;\n let isExpanded;\n if (this.props.displaySearchBox) {\n if (this.props.value) isExpanded = true;\n else isExpanded = this.props.showDropDownToggle ? !this.state.isExpanded : true;\n } else isExpanded = !this.state.isExpanded;\n this.setState({\n isExpanded\n });\n };\n this.handleClose = ()=>{\n this.setState({\n isExpanded: false\n });\n };\n this.handleOptionFocusChange = (option)=>{\n const optionValueAccessor = this.getOptionValueAccessor();\n this.setState({\n focusedValue: optionValueAccessor(option)\n });\n };\n this.handleSearchTermChange = (searchTerm)=>{\n if (searchTerm.length >= this.props.threshold) this.props.onSearchTermChange(searchTerm);\n else this.props.onSearchTermChange(\"\");\n this.setState({\n isExpanded: Boolean(searchTerm),\n searchTerm\n });\n this.props.onSearchTermChange(searchTerm);\n };\n this.handleKeyDown = (e)=>{\n const { options , onSearchTermKeyPress } = this.props;\n if (typeof onSearchTermKeyPress === \"function\") onSearchTermKeyPress(e);\n if (this.state.isExpanded && e && [\n \"ArrowDown\",\n \"ArrowUp\",\n \"Enter\",\n \"Escape\"\n ].includes(e.key)) {\n e.preventDefault();\n const optionValueAccessor = this.getOptionValueAccessor();\n const currentIndex = options.findIndex((option)=>optionValueAccessor(option) === this.state.focusedValue);\n if (e.key === \"ArrowDown\") {\n const newIndex = currentIndex + 1 >= options.length ? currentIndex : currentIndex + 1;\n this.setState({\n focusedValue: optionValueAccessor(options[newIndex])\n });\n } else if (e.key === \"ArrowUp\") {\n const newIndex = currentIndex - 1 < 0 ? 0 : currentIndex - 1;\n this.setState({\n focusedValue: optionValueAccessor(options[newIndex])\n });\n } else if (e.key === \"Enter\") {\n if (currentIndex < options.length && currentIndex >= 0) this.handleChange(options[currentIndex]);\n this.setState({\n isExpanded: false\n });\n } else if (e.key === \"Escape\") this.setState({\n focusedValue: \"\",\n isExpanded: false\n });\n }\n };\n }\n getOptionValueAccessor() {\n return (0, _plowJs.$get)([\n this.props.optionValueField\n ]);\n }\n getSearchTerm() {\n return this.props.searchTerm || this.state.searchTerm;\n }\n render() {\n const { options , theme , showDropDownToggle , threshold , displaySearchBox , displayLoadingIndicator , ListPreviewElement , plainInputMode , disabled , className , DropDown , SelectBox_ListPreview } = this.props;\n const searchTerm = this.getSearchTerm();\n const { focusedValue } = this.state;\n const isExpanded = disabled ? false : this.state.isExpanded;\n const headerClassName = (0, _classnamesDefault.default)({\n [className]: true,\n [theme.selectBox__btn]: true,\n [theme[\"selectBox__btn--noRightPadding\"]]: !showDropDownToggle,\n [theme[\"selectBox--disabled\"]]: disabled\n });\n const optionValueAccessor = this.getOptionValueAccessor();\n const searchTermLeftToType = displaySearchBox ? threshold - searchTerm.length : 0;\n const noMatchesFound = searchTermLeftToType > 0 || displayLoadingIndicator ? false : !options.length;\n const dropDownContentsClassName = (0, _classnamesDefault.default)({\n [theme.selectBox__contents]: true,\n [theme[\"selectBox__contents--hasItems\"]]: !noMatchesFound\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(DropDown.Stateless, {\n className: theme.selectBox,\n isOpen: isExpanded,\n onToggle: this.handleToggleExpanded,\n onClose: this.handleClose\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(DropDown.Header, {\n className: headerClassName,\n shouldKeepFocusState: false,\n showDropDownToggle: showDropDownToggle && Boolean(options.length)\n }, this.renderHeader()), /* @__PURE__ */ (0, _reactDefault.default).createElement(DropDown.Contents, {\n className: dropDownContentsClassName,\n scrollable: true\n }, !plainInputMode && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"ul\", {\n className: theme.selectBox__list\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(SelectBox_ListPreview, {\n ...this.props,\n theme,\n optionValueAccessor,\n ListPreviewElement,\n focusedValue,\n onChange: this.handleChange,\n onOptionFocus: this.handleOptionFocusChange,\n searchTermLeftToType,\n noMatchesFound,\n searchTerm\n }))));\n }\n renderHeader() {\n const { displaySearchBox , displayLoadingIndicator , options , value , allowEmpty , plainInputMode , disabled , SelectBox_HeaderWithSearchInput , SelectBox_Header , onHeaderClick } = this.props;\n const searchTerm = this.getSearchTerm();\n const optionValueAccessor = this.getOptionValueAccessor();\n const selectedOption = options.find((option)=>optionValueAccessor(option) == value || (0, _lodashIsequalDefault.default)(optionValueAccessor(option), value));\n if (displaySearchBox && // check for null or undefined\n /* eslint-disable no-eq-null, eqeqeq */ (value == null || value === \"\" || this.state.isExpanded || plainInputMode)) return /* @__PURE__ */ (0, _reactDefault.default).createElement(SelectBox_HeaderWithSearchInput, {\n ...this.props,\n disabled,\n onSearchTermChange: this.handleSearchTermChange,\n searchTerm,\n onKeyDown: this.handleKeyDown\n });\n const showResetButton = Boolean(allowEmpty && !displayLoadingIndicator && value);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(SelectBox_Header, {\n ...this.props,\n option: selectedOption,\n showResetButton,\n onReset: this.handleDeleteClick,\n onClick: onHeaderClick\n });\n }\n /**\n * Keyboard handling\n */ UNSAFE_componentWillReceiveProps({ keydown }) {\n this.handleKeyDown(keydown.event);\n }\n};\nSelectBox.defaultProps = {\n options: [],\n optionValueField: \"value\",\n withoutGroupLabel: \"Without group\",\n scrollable: true,\n showDropDownToggle: true,\n threshold: 2,\n ListPreviewElement: (0, _selectBoxOptionSingleLineDefault.default)\n};\nSelectBox.propTypes = {\n // ------------------------------\n // Basic Props for core functionality\n // ------------------------------\n /**\n * This prop represents the set of options to be chosen from\n * Each option must have a value and can have a label and an icon.\n */ options: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({\n icon: (0, _propTypesDefault.default).string,\n // \"value\" is not part of PropTypes validation, as the \"value field\" is specified via the \"optionValueField\" property\n label: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).string,\n (0, _propTypesDefault.default).object\n ]).isRequired,\n disabled: (0, _propTypesDefault.default).bool\n })),\n /**\n * Additional className wich will be applied\n */ className: (0, _propTypesDefault.default).string,\n /**\n * Field name specifying which field in a single \"option\" contains the \"value\"\n */ optionValueField: (0, _propTypesDefault.default).string,\n /**\n * This prop represents the currently selected value.\n */ value: (0, _propTypesDefault.default).any,\n /**\n * This prop gets called when an option was selected. It returns the new value.\n */ onValueChange: (0, _propTypesDefault.default).func.isRequired,\n /**\n * This prop gets called when the select box header element gets clicked.\n */ onHeaderClick: (0, _propTypesDefault.default).func,\n // ------------------------------\n // Visual customization of the Select Box\n // ------------------------------\n /**\n * This prop is the placeholder text which is displayed in the selectbox when no option was selected.\n */ placeholder: (0, _propTypesDefault.default).string,\n /**\n * This prop is an icon for the placeholder.\n */ placeholderIcon: (0, _propTypesDefault.default).string,\n /**\n * This prop is an icon for the header.\n */ headerIcon: (0, _propTypesDefault.default).string,\n /**\n * Text for the group label of options without a group\n */ withoutGroupLabel: (0, _propTypesDefault.default).string,\n /**\n * If true, allows to clear the selected element completely (without choosing another one)\n */ allowEmpty: (0, _propTypesDefault.default).bool,\n /**\n * Shows dropdown toggle. Set by default. Useful in components that display search, where you don't want to let the user manually controll the collapsing of selectbox\n */ showDropDownToggle: (0, _propTypesDefault.default).bool,\n /**\n * Limit height and show scrollbars if needed, defaults to true\n */ scrollable: (0, _propTypesDefault.default).bool,\n /**\n * Component used for rendering the individual option elements; Usually this component uses \"ListPreviewElement\" internally for common styling.\n */ ListPreviewElement: (0, _propTypesDefault.default).any,\n // ------------------------------\n // Asynchronous loading of data\n // ------------------------------\n /**\n * This prop is the loading text which is displayed in the selectbox when displayLoadingIndicator ist set to true.\n */ loadingLabel: (0, _propTypesDefault.default).string,\n /**\n * Helper for asynchronous loading; should be set to \"true\" as long as \"options\" is not yet populated.\n */ displayLoadingIndicator: (0, _propTypesDefault.default).bool,\n // ------------------------------\n // Search-As-You-Type related functionality\n // ------------------------------\n displaySearchBox: (0, _propTypesDefault.default).bool,\n onSearchTermChange: (0, _propTypesDefault.default).func,\n onSearchTermKeyPress: (0, _propTypesDefault.default).func,\n threshold: (0, _propTypesDefault.default).number,\n searchTerm: (0, _propTypesDefault.default).string,\n searchBoxLeftToTypeLabel: (0, _propTypesDefault.default).string,\n noMatchesFoundLabel: (0, _propTypesDefault.default).string,\n /**\n * Turn SelectBox into a plain input field: not showing any search results and always showing the search input. Useful in LinkEditor to be able to input links by hand.\n */ plainInputMode: (0, _propTypesDefault.default).bool,\n /**\n * If set to true, the search box is directly focussed once the SelectBox is rendered;\n * such that the user can start typing right away.\n */ setFocus: (0, _propTypesDefault.default).bool,\n // ------------------------------\n // \"Create new if not exists\" functionality\n // ------------------------------\n /**\n * This prop gets called when requested to create a new element\n */ onCreateNew: (0, _propTypesDefault.default).func,\n /**\n * \"Create new\" label\n */ createNewLabel: (0, _propTypesDefault.default).string,\n // ------------------------------\n // Theme & Dependencies\n // ------------------------------\n theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"selectBox__btn--noRightPadding\": (0, _propTypesDefault.default).string\n }).isRequired,\n /* eslint-enable quote-props */ DropDown: (0, _propTypesDefault.default).any.isRequired,\n SelectBox_Header: (0, _propTypesDefault.default).any.isRequired,\n SelectBox_HeaderWithSearchInput: (0, _propTypesDefault.default).any.isRequired,\n SelectBox_ListPreview: (0, _propTypesDefault.default).any.isRequired\n};\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"plow-js\":\"18bsk\",\"../SelectBox_Option_SingleLine\":\"65TF8\",\"classnames\":\"hVGzI\",\"lodash.isequal\":\"eOLCt\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"18bsk\":[function(require,module,exports) {\n(function(global, factory) {\n factory(exports);\n})(this, function(exports1) {\n \"use strict\";\n var reduceOps$2 = function reduceOps(ops) {\n return function(subject) {\n return ops.every(function(op) {\n return op(subject);\n });\n };\n }; //\n // Performs all passed operations until one of them returns false\n //\n var index$j = function() {\n for(var _len = arguments.length, ops = new Array(_len), _key = 0; _key < _len; _key++)ops[_key] = arguments[_key];\n if (typeof ops[ops.length - 1] !== \"function\") return reduceOps$2(ops.slice(0, -1))(ops[ops.length - 1]);\n return reduceOps$2(ops);\n };\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function(obj) {\n return typeof obj;\n } : function(obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n }\n function _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n }\n function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n }\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n }\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n }\n function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n }\n function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n }\n function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n }\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n }\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n //\n // Allows to create function that can be called with\n // argument lists and/or curried\n //\n var createPolymorphFunction = function(func) {\n return function() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n return args.reduce(function(func, arg) {\n return func(arg);\n }, func);\n };\n };\n //\n // Resolves dot-separated string paths to arrays\n //\n var resolveObjectPath = function(path) {\n if (Array.isArray(path)) return path;\n if (typeof path === \"number\") return [\n path\n ];\n return path.split(\".\").map(function(part) {\n var partAsInteger = parseInt(part);\n if (!isNaN(partAsInteger) && String(partAsInteger) === part) return partAsInteger;\n return part;\n });\n };\n // Returns a value from an object structure, addressed by `path`\n //\n var $get$2 = createPolymorphFunction(function(path) {\n //\n // This function returns the path, if it is neither\n // an array nor a string nor a number\n //\n if (typeof path !== \"string\" && typeof path !== \"number\" && !Array.isArray(path)) return path;\n return function(subject) {\n if (subject && typeof subject.getIn === \"function\") {\n var getInResult = subject.getIn(resolveObjectPath(path));\n if (getInResult !== undefined) return getInResult;\n }\n return resolveObjectPath(path).reduce(function(subject, part) {\n if (subject && typeof subject.get === \"function\") return subject.get(part);\n return subject && subject[part];\n }, subject);\n };\n });\n // Checks if a structure contains an item\n //\n var $contains$2 = createPolymorphFunction(function(value) {\n return function(path) {\n return function(subject) {\n var object = $get$2(path, subject);\n if (_typeof(object) !== \"object\" || !object) return false;\n if (typeof object.includes === \"function\") return object.includes(value);\n return Array.isArray(object) ? object.indexOf(value) !== -1 : Object.keys(object).some(function(key) {\n return object[key] === value;\n });\n };\n };\n });\n // Counts values in objects, arrays or strings\n //\n var index$i = createPolymorphFunction(function(path) {\n return function(subject) {\n var object = $get$2(path, subject);\n if (!object) return 0;\n if (typeof object.count === \"function\") return object.count();\n if (Array.isArray(object) || typeof object === \"string\") return object.length;\n if (_typeof(object) === \"object\") return Object.keys(object).length;\n return 0;\n };\n });\n // Returns the head of an array\n //\n var index$h = createPolymorphFunction(function(path) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (target && typeof target.first === \"function\") return target.first();\n if (!target || !Array.isArray(target)) {\n console.warn(\"$head expects the target to be an array, got \".concat(_typeof(target), \" instead\"));\n return null;\n }\n return target[0];\n };\n });\n // Returns the last item of an array\n //\n var index$g = createPolymorphFunction(function(path) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (target && typeof target.last === \"function\") return target.last();\n if (!target || !Array.isArray(target)) {\n console.warn(\"$last expects the target to be an array, got \".concat(_typeof(target), \" instead\"));\n return null;\n }\n return target[target.length - 1];\n };\n });\n // Returns a structure of values in `subject`, addressed by a property path or a mapper function\n //\n var index$f = createPolymorphFunction(function(mapper) {\n return function(path) {\n return function(subject) {\n var object = $get$2(path, subject);\n if (object && _typeof(object) === \"object\") {\n if (typeof object.map === \"function\") return object.map($get$2(mapper));\n var result = {};\n Object.keys(object).forEach(function(key) {\n result[key] = $get$2(mapper, object[key]);\n });\n return result;\n }\n };\n };\n });\n // Returns the boolean opposite of the result of the passed function\n //\n var index$e = createPolymorphFunction(function(op) {\n return function(subject) {\n return !op(subject);\n };\n });\n var reduceOps$1 = function reduceOps(ops) {\n return function(subject) {\n return ops.some(function(op) {\n return op(subject);\n });\n };\n }; //\n // Performs all passed operations until one of them returns false\n //\n var index$d = function() {\n for(var _len = arguments.length, ops = new Array(_len), _key = 0; _key < _len; _key++)ops[_key] = arguments[_key];\n if (typeof ops[ops.length - 1] !== \"function\") return reduceOps$1(ops.slice(0, -1))(ops[ops.length - 1]);\n return reduceOps$1(ops);\n };\n // Returns the head of an array\n //\n var index$c = createPolymorphFunction(function(path) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (target && typeof target.rest === \"function\") return target.rest();\n if (!target || !Array.isArray(target)) {\n console.warn(\"$tail expects the target to be an array, got \".concat(_typeof(target), \" instead\"));\n return null;\n }\n return target.slice(1);\n };\n });\n // Returns a value from an object structure, addressed by a path that is a\n // value within the same object\n //\n var index$b = createPolymorphFunction(function(path) {\n //\n // This function returns the path, if it is neither\n // an array nor a string nor a number\n //\n if (typeof path !== \"string\" && typeof path !== \"number\" && !Array.isArray(path)) return path;\n return function(subject) {\n return $get$2($get$2(path, subject), subject);\n };\n });\n var traverse = function traverse(actor) {\n return function(subject) {\n if (_typeof(subject) === \"object\") return Object.keys(subject).reduce(function(subject, key) {\n return Object.assign({}, subject, _defineProperty({}, key, traverse(actor)(subject[key])));\n }, subject);\n return actor(subject);\n };\n }; //\n // Deeply applies the actor function to each member of the subject\n //\n var $traverse$2 = createPolymorphFunction(traverse);\n // Transforms the subject into a new shape\n //\n var index$a = createPolymorphFunction(function(shape) {\n return function(subject) {\n if (Object.keys(shape).length === 0) return {};\n return $traverse$2(function(val) {\n return typeof val === \"function\" ? val(subject) : val;\n }, shape);\n };\n });\n var $and$1 = index$j;\n var $contains$1 = $contains$2;\n var $count$1 = index$i;\n var $get$1 = $get$2;\n var $head$1 = index$h;\n var $last$1 = index$g;\n var $map$1 = index$f;\n var $not$1 = index$e;\n var $or$1 = index$d;\n var $tail$1 = index$c;\n var $resolve$1 = index$b;\n var $transform$1 = index$a;\n // Helper function to peform the necessary recursion\n //\n var recursivelySetValueInObject = function recursivelySetValueInObject(object, value, path) {\n if (path.length === 0) return value;\n //\n // Create missing path targets\n //\n if (typeof object === \"undefined\") {\n if (typeof path[0] === \"number\") object = [];\n else object = {};\n }\n if (Array.isArray(object)) {\n //\n // Make sure, that array elements are always inserted at the last position, if the path exceeds the length\n // of the array\n //\n if (typeof path[0] === \"number\" && object.length < path[0]) path[0] = object.length;\n var result = _toConsumableArray(object);\n result[path[0]] = recursivelySetValueInObject(object[path[0]], value, path.slice(1));\n return result;\n }\n return Object.assign({}, object, _defineProperty({}, path[0], recursivelySetValueInObject(object[path[0]], value, path.slice(1))));\n }; //\n // Sets a value inside an object and returns the resulting object\n //\n var $set$2 = createPolymorphFunction(function(path) {\n return function(value) {\n return function(subject) {\n if (typeof subject !== \"undefined\") {\n if (typeof subject.setIn === \"function\") return subject.setIn(resolveObjectPath(path), value);\n return recursivelySetValueInObject(subject, value, resolveObjectPath(path));\n }\n return subject;\n };\n };\n });\n var $add$2 = createPolymorphFunction(function(path) {\n return function(value) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (_typeof(target) !== \"object\") {\n console.warn(\"Cannot add an item to a \".concat(_typeof(target), \".\"));\n return subject;\n }\n if (Array.isArray(target)) return $set$2(path, [].concat(_toConsumableArray(target), [\n value\n ]), subject);\n if (typeof target.push === \"function\") return $set$2(path, target.push(value), subject);\n if (typeof target.add === \"function\") return $set$2(path, target.add(value), subject);\n if (_typeof(value) !== \"object\") {\n console.warn(\"Only objects can be added to objects.\");\n return subject;\n }\n var keys = Object.keys(value);\n if (keys.length !== 1) {\n console.warn(\"Only objects with exactly one key can be added to objects.\");\n return subject;\n }\n var _keys = _slicedToArray(keys, 1), key = _keys[0];\n if (typeof target[key] !== \"undefined\") {\n console.warn(\"Cannot add {\".concat(key, \": \").concat(value[key].toString(), \"} to \").concat(resolveObjectPath(path).join(\".\"), \", because it is already set.\"));\n return subject;\n }\n return $set$2([].concat(_toConsumableArray(resolveObjectPath(path)), [\n key\n ]), value[key], subject);\n };\n };\n });\n // Removes an item from an array or object, addressed by its path\n //\n var index$9 = createPolymorphFunction(function(path) {\n return function(subject) {\n if (subject && typeof subject.deleteIn === \"function\") return subject.deleteIn(resolveObjectPath(path));\n var resolvedPath = resolveObjectPath(path);\n var parentPath = resolvedPath.slice(0, -1);\n var key = resolvedPath[resolvedPath.length - 1];\n var parent = $get$2(parentPath, subject);\n if (_typeof(parent) !== \"object\") {\n console.warn(\"Cannot drop an item from a \".concat(_typeof(parent), \".\"));\n return subject;\n }\n if (Array.isArray(parent)) return $set$2(parentPath, parent.filter(function(item, index) {\n return index !== key;\n }), subject);\n return $set$2(parentPath, Object.keys(parent).filter(function(index) {\n return index !== key;\n }).reduce(function(newObject, key) {\n newObject[key] = parent[key];\n return newObject;\n }, {}), subject);\n };\n });\n var index$8 = createPolymorphFunction(function(path) {\n return function(value) {\n return function(subject) {\n if (subject && subject.mergeIn === \"function\") return subject.mergeIn(resolveObjectPath(path), value);\n return Object.keys(value).reduce(function(subject, key) {\n return $set$2([].concat(_toConsumableArray(resolveObjectPath(path)), [\n key\n ]), value[key], subject);\n }, subject);\n };\n };\n });\n var index$7 = createPolymorphFunction(function(path) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (target && !Array.isArray(target) && typeof target.pop === \"function\") return $set$2(path, target.pop(), subject);\n if (!Array.isArray(target)) {\n console.warn(\"Cannot pop an item from a \".concat(_typeof(target), \".\"));\n return subject;\n }\n return $set$2(path, _toConsumableArray(target.slice(0, -1)), subject);\n };\n });\n // Removes all occurences of an item from an array or an object,\n // adressed by its value\n //\n var $remove$2 = createPolymorphFunction(function(path) {\n return function(value) {\n return function(subject) {\n var object = $get$2(path, subject);\n if (_typeof(object) !== \"object\") {\n console.warn(\"Cannot remove an item from a \".concat(_typeof(object), \".\"));\n return subject;\n }\n if (typeof object.filter === \"function\") return $set$2(path, object.filter(function(item) {\n return item !== value;\n }), subject);\n return $set$2(path, Object.keys(object).filter(function(key) {\n return object[key] !== value;\n }).reduce(function(newObject, key) {\n newObject[key] = object[key];\n return newObject;\n }, {}), subject);\n };\n };\n });\n var index$6 = createPolymorphFunction(function(path) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (target && !Array.isArray(target) && typeof target.shift === \"function\") return $set$2(path, target.shift(), subject);\n if (!Array.isArray(target)) {\n console.warn(\"Cannot shift an item from a \".concat(_typeof(target), \".\"));\n return subject;\n }\n return $set$2(path, _toConsumableArray(target.slice(1)), subject);\n };\n });\n var index$5 = createPolymorphFunction(function(path) {\n return function(value) {\n return function(subject) {\n var target = $get$2(path, subject);\n if (target && !Array.isArray(target) && typeof target.unshift === \"function\") return $set$2(path, target.unshift(value), subject);\n if (_typeof(target) !== \"object\") {\n console.warn(\"Cannot unshift an item to a \".concat(_typeof(target), \".\"));\n return subject;\n }\n if (Array.isArray(target)) return $set$2(path, [\n value\n ].concat(_toConsumableArray(target)), subject);\n if (_typeof(value) !== \"object\") {\n console.warn(\"Only objects can be added to objects.\");\n return subject;\n }\n var keys = Object.keys(value);\n if (keys.length !== 1) {\n console.warn(\"Only objects with exactly one key can be added to objects.\");\n return subject;\n }\n var _keys = _slicedToArray(keys, 1), key = _keys[0];\n if (typeof target[key] !== \"undefined\") {\n console.warn(\"Cannot add {\".concat(key, \": \").concat(value[key].toString(), \"} to \").concat(resolveObjectPath(path).join(\".\"), \", because it is already set.\"));\n return subject;\n }\n return $set$2([].concat(_toConsumableArray(resolveObjectPath(path)), [\n key\n ]), value[key], subject);\n };\n };\n });\n var merge = function merge(path, value, subject) {\n return Object.keys(value).reduce(function(subject, key) {\n if (_typeof(value[key]) === \"object\") return merge([].concat(_toConsumableArray(path), [\n key\n ]), value[key], subject);\n return $set$2([].concat(_toConsumableArray(resolveObjectPath(path)), [\n key\n ]), value[key], subject);\n }, subject);\n }; //\n // Deeply merges two objects\n //\n var index$4 = createPolymorphFunction(function(path) {\n return function(value) {\n return function(subject) {\n return subject && typeof subject.mergeDeepIn === \"function\" ? subject.mergeDeepIn(resolveObjectPath(path), value) : merge(resolveObjectPath(path), value, subject);\n };\n };\n });\n // Helper function to create empty values for various types\n //\n var getEmptyValue = function getEmptyValue(value) {\n if (typeof value === \"string\") return \"\";\n return null;\n }; //\n // Performs different toggle mechanisms, depending on what type lies behind\n // path in subject\n //\n // 1. Boolean: Will turn true to false and false to true\n // 2. Array: Will add a value if not present and remove it otherwise\n // 3. Other: Will set the target to value if it doesn't equal value or to fallback otherwise. If fallback is not set,\n // it will be replaced by a type-dependent empty value\n //\n var index$3 = createPolymorphFunction(function(path) {\n return function(value) {\n var $target = $get$2(path); //\n // Check for opportunity of boolean toggle\n //\n if (_typeof(value) === \"object\") {\n var target = $target(value);\n if (typeof target === \"boolean\") return $set$2(path, !target, value);\n } else if (typeof value === \"undefined\") return value;\n return function(fallback) {\n //\n // Check for opportunity of array item toggle\n //\n if (_typeof(fallback) === \"object\") {\n var _target = $target(fallback); //\n // Handle Immutable JS\n //\n if (_target && typeof _target.delete === \"function\") {\n if ($contains$2(value, path, fallback)) {\n // List\n if (typeof _target.push === \"function\") return $remove$2(path, value, fallback);\n // Sets\n return $set$2(path, _target.delete(value), fallback);\n } // List\n if (typeof _target.push === \"function\") return $set$2(path, _target.push(value), fallback);\n // Sets\n if (typeof _target.add === \"function\") return $set$2(path, _target.add(value), fallback);\n }\n if (Array.isArray(_target)) {\n if ($contains$2(value, path, fallback)) return $remove$2(path, value, fallback);\n return $add$2(path, value, fallback);\n } //\n // Perform value toggle with empty fallback\n //\n return $set$2(path, _target === value ? getEmptyValue(value) : value, fallback);\n } else if (typeof fallback === \"undefined\") return fallback;\n return function(subject) {\n //\n // Perform value toggle\n //\n typeof fallback === \"undefined\" && (fallback = getEmptyValue(value));\n return $set$2(path, $target(subject) === value ? fallback : value, subject);\n };\n };\n };\n });\n var $add$1 = $add$2;\n var $drop$1 = index$9;\n var $override$1 = index$8;\n var $pop$1 = index$7;\n var $remove$1 = $remove$2;\n var $set$1 = $set$2;\n var $shift$1 = index$6;\n var $unshift$1 = index$5;\n var $merge$1 = index$4;\n var $toggle$1 = index$3;\n var reduceOps = function reduceOps(ops) {\n return function(subject) {\n return ops.reduce(function(subject, nextOp) {\n return nextOp(subject);\n }, subject);\n };\n }; //\n // Performs all passed operations like a reversed compose\n //\n var index$2 = function() {\n for(var _len = arguments.length, ops = new Array(_len), _key = 0; _key < _len; _key++)ops[_key] = arguments[_key];\n if (typeof ops[ops.length - 1] !== \"function\") return reduceOps(ops.slice(0, -1))(ops[ops.length - 1]);\n return reduceOps(ops);\n };\n // Passes the results of all functions in the first parameter to the finisher function and returns\n // the finishers result\n //\n var index$1 = createPolymorphFunction(function(ops) {\n return function(finisher) {\n return function(subject) {\n return finisher.apply(void 0, _toConsumableArray(ops.map(function(op) {\n return op(subject);\n })).concat([\n subject\n ]));\n };\n };\n });\n var $all$1 = index$2;\n var $summarize$1 = index$1;\n var $traverse$1 = $traverse$2;\n // Logs and returns the subject\n //\n var index = createPolymorphFunction(function(path) {\n if (typeof path !== \"string\") {\n console.log(\"[Plow JS Log]\", \"no path given\");\n console.log(\"[Plow JS Log]\", path);\n return path;\n }\n return function(subject) {\n var target = $get$2(path, subject);\n console.log(\"[Plow JS Log]\", path);\n console.log(\"[Plow JS Log]\", target);\n return subject;\n };\n });\n var $log$1 = index;\n var utils = {\n createPolymorphFunction: createPolymorphFunction,\n resolveObjectPath: resolveObjectPath\n };\n var $and = $and$1;\n var $contains = $contains$1;\n var $count = $count$1;\n var $get = $get$1;\n var $head = $head$1;\n var $last = $last$1;\n var $map = $map$1;\n var $not = $not$1;\n var $or = $or$1;\n var $tail = $tail$1;\n var $resolve = $resolve$1;\n var $transform = $transform$1;\n var $add = $add$1;\n var $drop = $drop$1;\n var $override = $override$1;\n var $pop = $pop$1;\n var $remove = $remove$1;\n var $set = $set$1;\n var $shift = $shift$1;\n var $unshift = $unshift$1;\n var $merge = $merge$1;\n var $toggle = $toggle$1;\n var $all = $all$1;\n var $summarize = $summarize$1;\n var $traverse = $traverse$1;\n var $log = $log$1;\n exports1.$add = $add;\n exports1.$all = $all;\n exports1.$and = $and;\n exports1.$contains = $contains;\n exports1.$count = $count;\n exports1.$drop = $drop;\n exports1.$get = $get;\n exports1.$head = $head;\n exports1.$last = $last;\n exports1.$log = $log;\n exports1.$map = $map;\n exports1.$merge = $merge;\n exports1.$not = $not;\n exports1.$or = $or;\n exports1.$override = $override;\n exports1.$pop = $pop;\n exports1.$remove = $remove;\n exports1.$resolve = $resolve;\n exports1.$set = $set;\n exports1.$shift = $shift;\n exports1.$summarize = $summarize;\n exports1.$tail = $tail;\n exports1.$toggle = $toggle;\n exports1.$transform = $transform;\n exports1.$traverse = $traverse;\n exports1.$unshift = $unshift;\n exports1.utils = utils;\n Object.defineProperty(exports1, \"__esModule\", {\n value: true\n });\n});\n\n},{}],\"65TF8\":[function(require,module,exports) {\n// src/SelectBox_Option_SingleLine/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_Option_SingleLine_default);\nvar _selectBoxOptionSingleLine = require(\"./selectBox_Option_SingleLine\");\nvar _selectBoxOptionSingleLineDefault = parcelHelpers.interopDefault(_selectBoxOptionSingleLine);\nvar SelectBox_Option_SingleLine_default = (0, _selectBoxOptionSingleLineDefault.default);\n\n},{\"./selectBox_Option_SingleLine\":\"7rFdN\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7rFdN\":[function(require,module,exports) {\n// src/SelectBox_Option_SingleLine/selectBox_Option_SingleLine.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>selectBox_Option_SingleLine_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _listPreviewElement = require(\"../ListPreviewElement\");\nvar _listPreviewElementDefault = parcelHelpers.interopDefault(_listPreviewElement);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar SelectBox_Option_SingleLine = class extends (0, _react.PureComponent) {\n render() {\n const { option , className , disabled , icon } = this.props;\n const isDisabled = disabled || option.disabled;\n const finalClassNames = (0, _classnamesDefault.default)({\n [className]: className\n });\n const previewElementIcon = option.icon ? option.icon : icon ? icon : null;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _listPreviewElementDefault.default), {\n ...this.props,\n icon: previewElementIcon,\n disabled: isDisabled,\n className: finalClassNames\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n title: option.label\n }, option.label));\n }\n};\nSelectBox_Option_SingleLine.propTypes = {\n option: (0, _propTypesDefault.default).shape({\n label: (0, _propTypesDefault.default).string.isRequired,\n icon: (0, _propTypesDefault.default).string,\n disabled: (0, _propTypesDefault.default).bool\n }).isRequired,\n disabled: (0, _propTypesDefault.default).bool,\n className: (0, _propTypesDefault.default).string\n};\nvar selectBox_Option_SingleLine_default = SelectBox_Option_SingleLine;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"../ListPreviewElement\":\"3Apwf\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3Apwf\":[function(require,module,exports) {\n// src/ListPreviewElement/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>ListPreviewElement_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/ListPreviewElement/style.module.css\nvar _x56G3OktCss = require(\"../_css/X56G3OKT.css\");\n// src/ListPreviewElement/index.js\nvar _listPreviewElement = require(\"./listPreviewElement\");\nvar _listPreviewElementDefault = parcelHelpers.interopDefault(_listPreviewElement);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"listPreviewElement--isHighlighted\": \"neos-d_677a_listPreviewElement--isHighlighted\",\n \"listPreviewElement__iconWrapper\": \"neos-d_677a_listPreviewElement__iconWrapper\",\n \"listPreviewElement--isDisabled\": \"neos-d_677a_listPreviewElement--isDisabled\",\n \"listPreviewElement__icon\": \"neos-d_677a_listPreviewElement__icon \" + reset_module_default[\"reset\"],\n \"listPreviewElement\": \"neos-d_677a_listPreviewElement \" + reset_module_default[\"reset\"]\n};\nvar ThemedListPreviewElement = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).listPreviewElement, style_module_default)((0, _listPreviewElementDefault.default));\nvar ListPreviewElement_default = (0, _injectPropsDefault.default)({\n Icon: (0, _iconDefault.default)\n})(ThemedListPreviewElement);\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/X56G3OKT.css\":\"hKyvC\",\"./listPreviewElement\":\"bhg84\",\"./../_lib/injectProps\":\"4zDuU\",\"./../Icon\":\"d3a5Q\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"hKyvC\":[function() {},{}],\"bhg84\":[function(require,module,exports) {\n// src/ListPreviewElement/listPreviewElement.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>listPreviewElement_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar ListPreviewElement = class extends (0, _react.PureComponent) {\n render() {\n const { icon , className , disabled , children , onClick , isHighlighted , onMouseEnter , theme , Icon } = this.props;\n const optionClassName = (0, _classnamesDefault.default)({\n [theme.listPreviewElement]: true,\n [theme[\"listPreviewElement--isHighlighted\"]]: isHighlighted,\n [theme[\"listPreviewElement--isDisabled\"]]: disabled,\n [className]: className\n });\n const noop = ()=>{};\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n onMouseEnter: disabled ? noop : onMouseEnter,\n onClick: disabled ? noop : onClick,\n className: optionClassName,\n role: \"button\"\n }, Boolean(icon) && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.listPreviewElement__iconWrapper\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(Icon, {\n className: theme.listPreviewElement__icon,\n icon\n })), children);\n }\n};\nListPreviewElement.propTypes = {\n // ------------------------------\n // API inside custom ListPreviewElements\n // ------------------------------\n icon: (0, _propTypesDefault.default).string,\n className: (0, _propTypesDefault.default).string,\n disabled: (0, _propTypesDefault.default).bool,\n children: (0, _propTypesDefault.default).node.isRequired,\n // ------------------------------\n // API as needed by SelectBox\n // ------------------------------\n onClick: (0, _propTypesDefault.default).func,\n isHighlighted: (0, _propTypesDefault.default).bool,\n onMouseEnter: (0, _propTypesDefault.default).func,\n // ------------------------------\n // Theme & Dependencies\n // ------------------------------\n theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"listPreviewElement\": (0, _propTypesDefault.default).string.isRequired,\n \"listPreviewElement--isHighlighted\": (0, _propTypesDefault.default).string.isRequired,\n \"listPreviewElement--isDisabled\": (0, _propTypesDefault.default).string.isRequired,\n \"listPreviewElement__icon\": (0, _propTypesDefault.default).string.isRequired\n }).isRequired,\n /* eslint-enable quote-props */ Icon: (0, _propTypesDefault.default).any.isRequired\n};\nvar listPreviewElement_default = ListPreviewElement;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4zDuU\":[function(require,module,exports) {\n// src/_lib/injectProps.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>injectProps_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar injectProps_default = (dependencies)=>(WrappedComponent)=>{\n const ComponentWithDependencies = (props)=>{\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(WrappedComponent, {\n ...dependencies,\n ...props\n });\n };\n ComponentWithDependencies.displayName = WrappedComponent.displayName || WrappedComponent.name;\n return ComponentWithDependencies;\n };\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eOLCt\":[function(require,module,exports) {\n/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */ /** Used as the size to enable large array optimizations. */ var global = arguments[3];\nvar LARGE_ARRAY_SIZE = 200;\n/** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = \"__lodash_hash_undefined__\";\n/** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;\n/** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */ var argsTag = \"[object Arguments]\", arrayTag = \"[object Array]\", asyncTag = \"[object AsyncFunction]\", boolTag = \"[object Boolean]\", dateTag = \"[object Date]\", errorTag = \"[object Error]\", funcTag = \"[object Function]\", genTag = \"[object GeneratorFunction]\", mapTag = \"[object Map]\", numberTag = \"[object Number]\", nullTag = \"[object Null]\", objectTag = \"[object Object]\", promiseTag = \"[object Promise]\", proxyTag = \"[object Proxy]\", regexpTag = \"[object RegExp]\", setTag = \"[object Set]\", stringTag = \"[object String]\", symbolTag = \"[object Symbol]\", undefinedTag = \"[object Undefined]\", weakMapTag = \"[object WeakMap]\";\nvar arrayBufferTag = \"[object ArrayBuffer]\", dataViewTag = \"[object DataView]\", float32Tag = \"[object Float32Array]\", float64Tag = \"[object Float64Array]\", int8Tag = \"[object Int8Array]\", int16Tag = \"[object Int16Array]\", int32Tag = \"[object Int32Array]\", uint8Tag = \"[object Uint8Array]\", uint8ClampedTag = \"[object Uint8ClampedArray]\", uint16Tag = \"[object Uint16Array]\", uint32Tag = \"[object Uint32Array]\";\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */ var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\\d*)$/;\n/** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == \"object\" && global && global.Object === Object && global;\n/** Detect free variable `self`. */ var freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\n/** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function(\"return this\")();\n/** Detect free variable `exports`. */ var freeExports = exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */ var freeModule = freeExports && true && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports;\n/** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process;\n/** Used to access faster Node.js helpers. */ var nodeUtil = function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding(\"util\");\n } catch (e) {}\n}();\n/* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */ function arrayFilter(array, predicate) {\n var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];\n while(++index < length){\n var value = array[index];\n if (predicate(value, index, array)) result[resIndex++] = value;\n }\n return result;\n}\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */ function arrayPush(array, values) {\n var index = -1, length = values.length, offset = array.length;\n while(++index < length)array[offset + index] = values[index];\n return array;\n}\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */ function arraySome(array, predicate) {\n var index = -1, length = array == null ? 0 : array.length;\n while(++index < length){\n if (predicate(array[index], index, array)) return true;\n }\n return false;\n}\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */ function baseTimes(n, iteratee) {\n var index = -1, result = Array(n);\n while(++index < n)result[index] = iteratee(index);\n return result;\n}\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */ function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function cacheHas(cache, key) {\n return cache.has(key);\n}\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */ function getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */ function mapToArray(map) {\n var index = -1, result = Array(map.size);\n map.forEach(function(value, key) {\n result[++index] = [\n key,\n value\n ];\n });\n return result;\n}\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */ function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */ function setToArray(set) {\n var index = -1, result = Array(set.size);\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n/** Used for built-in method references. */ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;\n/** Used to detect overreaching core-js shims. */ var coreJsData = root[\"__core-js_shared__\"];\n/** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString;\n/** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty;\n/** Used to detect methods masquerading as native. */ var maskSrcKey = function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || \"\");\n return uid ? \"Symbol(src)_1.\" + uid : \"\";\n}();\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */ var nativeObjectToString = objectProto.toString;\n/** Used to detect if a method is native. */ var reIsNative = RegExp(\"^\" + funcToString.call(hasOwnProperty).replace(reRegExpChar, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\");\n/** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, Symbol = root.Symbol, Uint8Array = root.Uint8Array, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeKeys = overArg(Object.keys, Object);\n/* Built-in method references that are verified to be native. */ var DataView = getNative(root, \"DataView\"), Map = getNative(root, \"Map\"), Promise = getNative(root, \"Promise\"), Set = getNative(root, \"Set\"), WeakMap = getNative(root, \"WeakMap\"), nativeCreate = getNative(Object, \"create\");\n/** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);\n/** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function Hash(entries) {\n var index = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while(++index < length){\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */ function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */ function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype[\"delete\"] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function ListCache(entries) {\n var index = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while(++index < length){\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */ function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function listCacheDelete(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) return false;\n var lastIndex = data.length - 1;\n if (index == lastIndex) data.pop();\n else splice.call(data, index, 1);\n --this.size;\n return true;\n}\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function listCacheGet(key) {\n var data = this.__data__, index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */ function listCacheSet(key, value) {\n var data = this.__data__, index = assocIndexOf(data, key);\n if (index < 0) {\n ++this.size;\n data.push([\n key,\n value\n ]);\n } else data[index][1] = value;\n return this;\n}\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype[\"delete\"] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function MapCache(entries) {\n var index = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while(++index < length){\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */ function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n \"hash\": new Hash,\n \"map\": new (Map || ListCache),\n \"string\": new Hash\n };\n}\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function mapCacheDelete(key) {\n var result = getMapData(this, key)[\"delete\"](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */ function mapCacheSet(key, value) {\n var data = getMapData(this, key), size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype[\"delete\"] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */ function SetCache(values) {\n var index = -1, length = values == null ? 0 : values.length;\n this.__data__ = new MapCache;\n while(++index < length)this.add(values[index]);\n}\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */ function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */ function setCacheHas(value) {\n return this.__data__.has(value);\n}\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */ function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */ function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */ function stackDelete(key) {\n var data = this.__data__, result = data[\"delete\"](key);\n this.size = data.size;\n return result;\n}\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */ function stackGet(key) {\n return this.__data__.get(key);\n}\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */ function stackHas(key) {\n return this.__data__.has(key);\n}\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */ function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([\n key,\n value\n ]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype[\"delete\"] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */ function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;\n for(var key in value)if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.\n (key == \"length\" || // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == \"offset\" || key == \"parent\") || // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == \"buffer\" || key == \"byteLength\" || key == \"byteOffset\") || // Skip index properties.\n isIndex(key, length)))) result.push(key);\n return result;\n}\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */ function assocIndexOf(array, key) {\n var length = array.length;\n while(length--){\n if (eq(array[length][0], key)) return length;\n }\n return -1;\n}\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */ function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */ function baseGetTag(value) {\n if (value == null) return value === undefined ? undefinedTag : nullTag;\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */ function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */ function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) return true;\n if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) return false;\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, \"__wrapped__\"), othIsWrapped = othIsObj && hasOwnProperty.call(other, \"__wrapped__\");\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) return false;\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */ function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) return false;\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */ function baseIsTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */ function baseKeys(object) {\n if (!isPrototype(object)) return nativeKeys(object);\n var result = [];\n for(var key in Object(object))if (hasOwnProperty.call(object, key) && key != \"constructor\") result.push(key);\n return result;\n}\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) return stacked == other;\n var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache : undefined;\n stack.set(array, other);\n stack.set(other, array);\n // Ignore non-index properties.\n while(++index < arrLength){\n var arrValue = array[index], othValue = other[index];\n if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);\n if (compared !== undefined) {\n if (compared) continue;\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);\n })) {\n result = false;\n break;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n result = false;\n break;\n }\n }\n stack[\"delete\"](array);\n stack[\"delete\"](other);\n return result;\n}\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch(tag){\n case dataViewTag:\n if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;\n object = object.buffer;\n other = other.buffer;\n case arrayBufferTag:\n if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) return false;\n return true;\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n case errorTag:\n return object.name == other.name && object.message == other.message;\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == other + \"\";\n case mapTag:\n var convert = mapToArray;\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n if (object.size != other.size && !isPartial) return false;\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) return stacked == other;\n bitmask |= COMPARE_UNORDERED_FLAG;\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack[\"delete\"](object);\n return result;\n case symbolTag:\n if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n return false;\n}\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;\n if (objLength != othLength && !isPartial) return false;\n var index = objLength;\n while(index--){\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) return stacked == other;\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n var skipCtor = isPartial;\n while(++index < objLength){\n key = objProps[index];\n var objValue = object[key], othValue = other[key];\n if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == \"constructor\");\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor, othCtor = other.constructor;\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor && \"constructor\" in object && \"constructor\" in other && !(typeof objCtor == \"function\" && objCtor instanceof objCtor && typeof othCtor == \"function\" && othCtor instanceof othCtor)) result = false;\n }\n stack[\"delete\"](object);\n stack[\"delete\"](other);\n return result;\n}\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */ function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */ function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == \"string\" ? \"string\" : \"hash\"] : data.map;\n}\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */ function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */ function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) value[symToStringTag] = tag;\n else delete value[symToStringTag];\n }\n return result;\n}\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) return [];\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */ var getTag = baseGetTag;\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set) != setTag || WeakMap && getTag(new WeakMap) != weakMapTag) getTag = function(value) {\n var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : \"\";\n if (ctorString) switch(ctorString){\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n return result;\n};\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */ function isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (typeof value == \"number\" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */ function isKeyable(value) {\n var type = typeof value;\n return type == \"string\" || type == \"number\" || type == \"symbol\" || type == \"boolean\" ? value !== \"__proto__\" : value === null;\n}\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */ function isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */ function isPrototype(value) {\n var Ctor = value && value.constructor, proto = typeof Ctor == \"function\" && Ctor.prototype || objectProto;\n return value === proto;\n}\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */ function objectToString(value) {\n return nativeObjectToString.call(value);\n}\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */ function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return func + \"\";\n } catch (e) {}\n }\n return \"\";\n}\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */ function eq(value, other) {\n return value === other || value !== value && other !== other;\n}\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */ var isArguments = baseIsArguments(function() {\n return arguments;\n}()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, \"callee\") && !propertyIsEnumerable.call(value, \"callee\");\n};\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */ var isArray = Array.isArray;\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */ function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */ var isBuffer = nativeIsBuffer || stubFalse;\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */ function isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */ function isFunction(value) {\n if (!isObject(value)) return false;\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */ function isLength(value) {\n return typeof value == \"number\" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */ function isObject(value) {\n var type = typeof value;\n return value != null && (type == \"object\" || type == \"function\");\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */ function isObjectLike(value) {\n return value != null && typeof value == \"object\";\n}\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */ function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */ function stubArray() {\n return [];\n}\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */ function stubFalse() {\n return false;\n}\nmodule.exports = isEqual;\n\n},{}],\"3pqHS\":[function(require,module,exports) {\n// src/SelectBox_Header/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_Header_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/SelectBox_Header/style.module.css\nvar _6Adtc3HgCss = require(\"../_css/6ADTC3HG.css\");\n// src/SelectBox_Header/index.js\nvar _selectBoxHeader = require(\"./selectBox_Header\");\nvar _selectBoxHeaderDefault = parcelHelpers.interopDefault(_selectBoxHeader);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar _iconButton = require(\"./../IconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"selectBoxHeader\": \"neos-Gv_gqG_selectBoxHeader\",\n \"selectBoxHeader__wrapperIconWrapper\": \"neos-Gv_gqG_selectBoxHeader__wrapperIconWrapper\",\n \"selectBoxHeader__wrapperPlaceholderIconWrapper\": \"neos-Gv_gqG_selectBoxHeader__wrapperPlaceholderIconWrapper\",\n \"selectBoxHeader__icon\": \"neos-Gv_gqG_selectBoxHeader__icon \" + reset_module_default[\"reset\"],\n \"selectBoxHeader__innerPreview\": \"neos-Gv_gqG_selectBoxHeader__innerPreview\",\n \"selectBoxHeader__label\": \"neos-Gv_gqG_selectBoxHeader__label\",\n \"selectBoxHeader--disabled\": \"neos-Gv_gqG_selectBoxHeader--disabled\"\n};\nvar ThemedSelectBox_Header = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).selectBox_Header, style_module_default)((0, _selectBoxHeaderDefault.default));\nvar SelectBox_Header_default = (0, _injectPropsDefault.default)({\n Icon: (0, _iconDefault.default),\n IconButton: (0, _iconButtonDefault.default)\n})(ThemedSelectBox_Header);\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/6ADTC3HG.css\":\"6Jbx9\",\"./selectBox_Header\":\"3kBDd\",\"./../_lib/injectProps\":\"4zDuU\",\"./../Icon\":\"d3a5Q\",\"./../IconButton\":\"f6lYW\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"6Jbx9\":[function() {},{}],\"3kBDd\":[function(require,module,exports) {\n// src/SelectBox_Header/selectBox_Header.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>selectBox_Header_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _lodashOmit = require(\"lodash.omit\");\nvar _lodashOmitDefault = parcelHelpers.interopDefault(_lodashOmit);\nvar SelectBox_Header = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleListPreviewElementClick = (e)=>{\n const { onClick } = this.props;\n if (onClick) {\n e.stopPropagation();\n onClick();\n }\n };\n this.resetButton = ()=>{\n const { showResetButton } = this.props;\n if (showResetButton) {\n const { IconButton , theme , disabled , onReset } = this.props;\n const onClick = (event)=>disabled ? null : onReset(event);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", null, /* @__PURE__ */ (0, _reactDefault.default).createElement(IconButton, {\n className: theme.selectBoxHeader__icon,\n disabled,\n icon: \"times\",\n onClick\n }), /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n className: theme.selectBoxHeader__seperator\n }));\n }\n return \"\";\n };\n }\n render() {\n const { option , theme , placeholder , placeholderIcon , headerIcon , displayLoadingIndicator , Icon , ListPreviewElement , disabled } = this.props;\n const label = option ? option.label : placeholder;\n const icon = option && option.icon ? option.icon : headerIcon ? headerIcon : placeholderIcon;\n const restProps = (0, _lodashOmitDefault.default)(this.props, [\n \"showResetButton, IconButton\"\n ]);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBoxHeader\n }, displayLoadingIndicator ? /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n className: theme.selectBoxHeader__wrapperIconWrapper\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(Icon, {\n className: theme.selectBoxHeader__icon,\n spin: true,\n icon: \"spinner\"\n })) : /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBoxHeader__innerPreview\n }, option ? /* @__PURE__ */ (0, _reactDefault.default).createElement(ListPreviewElement, {\n ...restProps,\n label,\n icon,\n disabled,\n onClick: this.handleListPreviewElementClick,\n showIcon: true\n }) : /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBoxHeader__label\n }, icon && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n className: theme.selectBoxHeader__wrapperPlaceholderIconWrapper\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(Icon, {\n className: theme.selectBoxHeader__icon,\n icon\n })), label)), this.resetButton());\n }\n};\nSelectBox_Header.propTypes = {\n // API with SelectBox\n option: (0, _propTypesDefault.default).shape({\n icon: (0, _propTypesDefault.default).string,\n label: (0, _propTypesDefault.default).string.isRequired\n }),\n placeholder: (0, _propTypesDefault.default).string,\n placeholderIcon: (0, _propTypesDefault.default).string,\n headerIcon: (0, _propTypesDefault.default).string,\n showResetButton: (0, _propTypesDefault.default).bool.isRequired,\n onReset: (0, _propTypesDefault.default).func,\n onClick: (0, _propTypesDefault.default).func,\n displayLoadingIndicator: (0, _propTypesDefault.default).bool,\n disabled: (0, _propTypesDefault.default).bool,\n /* ------------------------------\n * Theme & Dependencies\n * ------------------------------ */ theme: (0, _propTypesDefault.default).shape({\n selectBoxHeader: (0, _propTypesDefault.default).string.isRequired,\n selectBoxHeader__icon: (0, _propTypesDefault.default).string.isRequired,\n selectBoxHeader__label: (0, _propTypesDefault.default).string.isRequired\n }).isRequired,\n Icon: (0, _propTypesDefault.default).any.isRequired,\n IconButton: (0, _propTypesDefault.default).any.isRequired,\n ListPreviewElement: (0, _propTypesDefault.default).any.isRequired\n};\nvar selectBox_Header_default = SelectBox_Header;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"lodash.omit\":\"airq1\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jzAro\":[function(require,module,exports) {\n// src/SelectBox_HeaderWithSearchInput/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_HeaderWithSearchInput_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/SelectBox_HeaderWithSearchInput/style.module.css\nvar _qkjip33VCss = require(\"../_css/QKJIP33V.css\");\n// src/SelectBox_HeaderWithSearchInput/index.js\nvar _selectBoxHeaderWithSearchInput = require(\"./selectBox_HeaderWithSearchInput\");\nvar _selectBoxHeaderWithSearchInputDefault = parcelHelpers.interopDefault(_selectBoxHeaderWithSearchInput);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar _textInput = require(\"./../TextInput\");\nvar _textInputDefault = parcelHelpers.interopDefault(_textInput);\nvar _iconButton = require(\"./../IconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"selectBoxHeaderWithSearchInput__inputContainer\": \"neos-x4kw-a_selectBoxHeaderWithSearchInput__inputContainer\",\n \"selectBoxHeaderWithSearchInput__icon\": \"neos-x4kw-a_selectBoxHeaderWithSearchInput__icon \" + reset_module_default[\"reset\"],\n \"selectBoxHeaderWithSearchInput\": \"neos-x4kw-a_selectBoxHeaderWithSearchInput\",\n \"selectBoxHeaderWithSearchInput__input\": \"neos-x4kw-a_selectBoxHeaderWithSearchInput__input\"\n};\nvar ThemedSelectBox_HeaderWithSearchInput = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).selectBox_HeaderWithSearchInput, style_module_default)((0, _selectBoxHeaderWithSearchInputDefault.default));\nvar SelectBox_HeaderWithSearchInput_default = (0, _injectPropsDefault.default)({\n Icon: (0, _iconDefault.default),\n TextInput: (0, _textInputDefault.default),\n IconButton: (0, _iconButtonDefault.default)\n})(ThemedSelectBox_HeaderWithSearchInput);\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/QKJIP33V.css\":\"2wrpp\",\"./selectBox_HeaderWithSearchInput\":\"1DsOn\",\"./../_lib/injectProps\":\"4zDuU\",\"./../Icon\":\"d3a5Q\",\"./../TextInput\":\"apyBr\",\"./../IconButton\":\"f6lYW\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"2wrpp\":[function() {},{}],\"1DsOn\":[function(require,module,exports) {\n// src/SelectBox_HeaderWithSearchInput/selectBox_HeaderWithSearchInput.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>selectBox_HeaderWithSearchInput_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar SelectBox_HeaderWithSearchInput = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.clearSearch = (event)=>{\n event.stopPropagation();\n this.props.onSearchTermChange(\"\");\n };\n }\n render() {\n const { searchTerm , onSearchTermChange , onKeyDown , placeholder , placeholderIcon , displayLoadingIndicator , setFocus , theme , Icon , TextInput , IconButton , disabled } = this.props;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBoxHeaderWithSearchInput\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(Icon, {\n icon: placeholderIcon,\n className: theme.selectBoxHeaderWithSearchInput__icon\n }), /* @__PURE__ */ (0, _reactDefault.default).createElement(TextInput, {\n containerClassName: theme.selectBoxHeaderWithSearchInput__inputContainer,\n className: theme.selectBoxHeaderWithSearchInput__input,\n value: searchTerm,\n onChange: onSearchTermChange,\n onKeyDown,\n placeholder,\n setFocus,\n type: \"search\",\n disabled\n }), displayLoadingIndicator && /* @__PURE__ */ (0, _reactDefault.default).createElement(Icon, {\n className: theme.selectBoxHeaderWithSearchInput__icon,\n spin: true,\n icon: \"spinner\"\n }), searchTerm && /* @__PURE__ */ (0, _reactDefault.default).createElement(IconButton, {\n className: theme.selectBoxHeaderWithSearchInput__icon,\n icon: \"times\",\n onClick: this.clearSearch\n }));\n }\n};\nSelectBox_HeaderWithSearchInput.propTypes = {\n // For explanations of the PropTypes, see SelectBox.js\n placeholder: (0, _propTypesDefault.default).string,\n placeholderIcon: (0, _propTypesDefault.default).string,\n displayLoadingIndicator: (0, _propTypesDefault.default).bool,\n searchTerm: (0, _propTypesDefault.default).string.isRequired,\n onSearchTermChange: (0, _propTypesDefault.default).func.isRequired,\n setFocus: (0, _propTypesDefault.default).bool,\n disabled: (0, _propTypesDefault.default).bool,\n // For keyboard handling\n onKeyDown: (0, _propTypesDefault.default).func,\n /* ------------------------------\n * Theme & Dependencies\n * ------------------------------ */ theme: (0, _propTypesDefault.default).shape({\n selectBoxHeaderWithSearchInput: (0, _propTypesDefault.default).string.isRequired,\n selectBoxHeaderWithSearchInput__inputContainer: (0, _propTypesDefault.default).string.isRequired,\n selectBoxHeaderWithSearchInput__icon: (0, _propTypesDefault.default).string.isRequired,\n selectBoxHeaderWithSearchInput__input: (0, _propTypesDefault.default).string.isRequired\n }).isRequired,\n Icon: (0, _propTypesDefault.default).any.isRequired,\n TextInput: (0, _propTypesDefault.default).any.isRequired,\n IconButton: (0, _propTypesDefault.default).any.isRequired\n};\nSelectBox_HeaderWithSearchInput.defaultProps = {\n placeholder: \"\",\n placeholderIcon: \"search\"\n};\nvar selectBox_HeaderWithSearchInput_default = SelectBox_HeaderWithSearchInput;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"apyBr\":[function(require,module,exports) {\n// src/TextInput/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>TextInput_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\nvar _textInput = require(\"./textInput\");\nvar _textInputDefault = parcelHelpers.interopDefault(_textInput);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/TextInput/style.module.css\nvar _u5HycfrvCss = require(\"../_css/U5HYCFRV.css\");\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"textInput\": \"neos-Y9Uoqa_textInput \" + reset_module_default[\"reset\"],\n \"textInput--disabled\": \"neos-Y9Uoqa_textInput--disabled\"\n};\n// src/TextInput/index.ts\nvar TextInput_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).textInput, style_module_default)((0, _textInputDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"./textInput\":\"fJ4eu\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/U5HYCFRV.css\":\"1n70h\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fJ4eu\":[function(require,module,exports) {\n// src/TextInput/textInput.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>textInput_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _lodashOmit = require(\"lodash.omit\");\nvar _lodashOmitDefault = parcelHelpers.interopDefault(_lodashOmit);\nvar TextInput = class extends (0, _react.PureComponent) {\n constructor(props){\n super(props);\n this.componentDidMount = ()=>{\n if (this.ref && this.ref.current && (this.props.setFocus || this.props.autoFocus)) this.ref.current.focus();\n };\n this.handleKeyPress = (event)=>{\n const enterKeyCode = 13;\n const keyCode = event.keyCode || event.which;\n const { onEnterKey } = this.props;\n if (keyCode === enterKeyCode && typeof onEnterKey === \"function\") onEnterKey();\n };\n this.handleValueChange = (event)=>{\n const { onChange } = this.props;\n if (onChange) onChange(event.target.value);\n };\n this.ref = (0, _reactDefault.default).createRef();\n }\n render() {\n const { placeholder , className , theme , containerClassName , disabled , type , ...restProps } = this.props;\n const rest = (0, _lodashOmitDefault.default)(restProps, [\n \"onEnterKey\",\n \"setFocus\"\n ]);\n const classNames = (0, _classnamesDefault.default)(theme.textInput, className, {\n [theme[\"textInput--disabled\"]]: disabled\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: containerClassName\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"input\", {\n ...rest,\n className: classNames,\n role: \"textbox\",\n \"aria-multiline\": \"false\",\n \"aria-disabled\": disabled ? \"true\" : \"false\",\n type,\n placeholder,\n disabled,\n onChange: this.handleValueChange,\n onKeyPress: this.handleKeyPress,\n ref: this.ref\n }));\n }\n};\nvar textInput_default = TextInput;\n\n},{\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"lodash.omit\":\"airq1\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"1n70h\":[function() {},{}],\"3wtUY\":[function(require,module,exports) {\n// src/SelectBox_ListPreview/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_ListPreview_default);\nvar _selectBoxListPreview = require(\"./selectBox_ListPreview\");\nvar _selectBoxListPreviewDefault = parcelHelpers.interopDefault(_selectBoxListPreview);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _selectBoxCreateNew = require(\"./../SelectBox_CreateNew\");\nvar _selectBoxCreateNewDefault = parcelHelpers.interopDefault(_selectBoxCreateNew);\nvar _selectBoxListPreviewFlat = require(\"./../SelectBox_ListPreviewFlat\");\nvar _selectBoxListPreviewFlatDefault = parcelHelpers.interopDefault(_selectBoxListPreviewFlat);\nvar _selectBoxListPreviewGrouped = require(\"./../SelectBox_ListPreviewGrouped\");\nvar _selectBoxListPreviewGroupedDefault = parcelHelpers.interopDefault(_selectBoxListPreviewGrouped);\nvar SelectBox_ListPreview_default = (0, _injectPropsDefault.default)({\n SelectBox_CreateNew: (0, _selectBoxCreateNewDefault.default),\n SelectBox_ListPreviewFlat: (0, _selectBoxListPreviewFlatDefault.default),\n SelectBox_ListPreviewGrouped: (0, _selectBoxListPreviewGroupedDefault.default)\n})((0, _selectBoxListPreviewDefault.default));\n\n},{\"./selectBox_ListPreview\":\"1sF9H\",\"./../_lib/injectProps\":\"4zDuU\",\"./../SelectBox_CreateNew\":\"gQczA\",\"./../SelectBox_ListPreviewFlat\":\"iORvZ\",\"./../SelectBox_ListPreviewGrouped\":\"dOz8R\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1sF9H\":[function(require,module,exports) {\n// src/SelectBox_ListPreview/selectBox_ListPreview.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>selectBox_ListPreview_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _selectBoxOptionSingleLine = require(\"../SelectBox_Option_SingleLine\");\nvar _selectBoxOptionSingleLineDefault = parcelHelpers.interopDefault(_selectBoxOptionSingleLine);\nvar SelectBox_ListPreview = class extends (0, _react.PureComponent) {\n render() {\n const { options , searchTermLeftToType , noMatchesFound , noMatchesFoundLabel , SelectBox_CreateNew , SelectBox_ListPreviewFlat , SelectBox_ListPreviewGrouped , searchBoxLeftToTypeLabel , onCreateNew , searchTerm , theme } = this.props;\n const ListPreviewComponent = options.some((option)=>option.group) ? SelectBox_ListPreviewGrouped : SelectBox_ListPreviewFlat;\n const isCreateNewEnabled = onCreateNew && searchTerm;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _react.Fragment), null, searchTermLeftToType > 0 ? /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBox__item\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _selectBoxOptionSingleLineDefault.default), {\n option: {\n label: `${searchBoxLeftToTypeLabel && searchBoxLeftToTypeLabel.replace(\"###CHARACTERS###\", searchTermLeftToType)}`\n },\n key: \"___leftToType\"\n })) : /* @__PURE__ */ (0, _reactDefault.default).createElement(ListPreviewComponent, {\n ...this.props\n }), noMatchesFound && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBox__item\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _selectBoxOptionSingleLineDefault.default), {\n option: {\n label: noMatchesFoundLabel,\n icon: \"ban\"\n },\n key: \"___noResults\"\n })), isCreateNewEnabled && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBox__item\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(SelectBox_CreateNew, {\n ...this.props\n })));\n }\n};\nSelectBox_ListPreview.propTypes = {\n // For explanations of the PropTypes, see SelectBox.js\n options: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({})),\n // Number of characters left to type before search\n searchTermLeftToType: (0, _propTypesDefault.default).number,\n noMatchesFound: (0, _propTypesDefault.default).bool,\n searchBoxLeftToTypeLabel: (0, _propTypesDefault.default).string,\n noMatchesFoundLabel: (0, _propTypesDefault.default).string,\n theme: (0, _propTypesDefault.default).object,\n // Dependency injection\n SelectBox_CreateNew: (0, _propTypesDefault.default).any.isRequired,\n SelectBox_ListPreviewFlat: (0, _propTypesDefault.default).any.isRequired,\n SelectBox_ListPreviewGrouped: (0, _propTypesDefault.default).any.isRequired\n};\nvar selectBox_ListPreview_default = SelectBox_ListPreview;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"../SelectBox_Option_SingleLine\":\"65TF8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gQczA\":[function(require,module,exports) {\n// src/SelectBox_CreateNew/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_CreateNew_default);\nvar _selectBoxCreateNew = require(\"./selectBox_CreateNew\");\nvar _selectBoxCreateNewDefault = parcelHelpers.interopDefault(_selectBoxCreateNew);\nvar SelectBox_CreateNew_default = (0, _selectBoxCreateNewDefault.default);\n\n},{\"./selectBox_CreateNew\":\"bAtTB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bAtTB\":[function(require,module,exports) {\n// src/SelectBox_CreateNew/selectBox_CreateNew.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>selectBox_CreateNew_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _selectBoxOptionSingleLine = require(\"../SelectBox_Option_SingleLine\");\nvar _selectBoxOptionSingleLineDefault = parcelHelpers.interopDefault(_selectBoxOptionSingleLine);\nvar CREATE_NEW_IS_FOCUSED = \"NEOS_UI_CREATE_NEW_IS_FOCUSED\";\nvar SelectBox_CreateNew = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleCreateNew = ()=>{\n const { searchTerm , onSearchTermChange , onCreateNew } = this.props;\n onCreateNew(searchTerm);\n onSearchTermChange(\"\");\n };\n this.handleMouseEnter = ()=>{\n const { optionValueField , onOptionFocus } = this.props;\n const selectedOption = {\n [optionValueField]: CREATE_NEW_IS_FOCUSED\n };\n onOptionFocus(selectedOption);\n };\n }\n render() {\n const { searchTerm , onCreateNew , createNewLabel , focusedValue } = this.props;\n const isHighlighted = focusedValue === CREATE_NEW_IS_FOCUSED;\n const isCreateNewEnabled = onCreateNew && searchTerm;\n if (!isCreateNewEnabled) return null;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _selectBoxOptionSingleLineDefault.default), {\n option: {\n label: `${createNewLabel} \"${searchTerm}\"`,\n icon: \"plus-circle\"\n },\n key: \"___createNew\",\n isHighlighted,\n onClick: this.handleCreateNew,\n onMouseEnter: this.handleMouseEnter\n });\n }\n};\nSelectBox_CreateNew.propTypes = {\n // For explanations of the PropTypes, see SelectBox.js\n optionValueField: (0, _propTypesDefault.default).string.isRequired,\n searchTerm: (0, _propTypesDefault.default).string,\n onSearchTermChange: (0, _propTypesDefault.default).func,\n onCreateNew: (0, _propTypesDefault.default).func,\n createNewLabel: (0, _propTypesDefault.default).string,\n // API with SelectBox\n focusedValue: (0, _propTypesDefault.default).string,\n onOptionFocus: (0, _propTypesDefault.default).func.isRequired\n};\nvar selectBox_CreateNew_default = SelectBox_CreateNew;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"../SelectBox_Option_SingleLine\":\"65TF8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iORvZ\":[function(require,module,exports) {\n// src/SelectBox_ListPreviewFlat/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_ListPreviewFlat_default);\nvar _selectBoxListPreviewFlat = require(\"./selectBox_ListPreviewFlat\");\nvar _selectBoxListPreviewFlatDefault = parcelHelpers.interopDefault(_selectBoxListPreviewFlat);\nvar SelectBox_ListPreviewFlat_default = (0, _selectBoxListPreviewFlatDefault.default);\n\n},{\"./selectBox_ListPreviewFlat\":\"2icLz\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2icLz\":[function(require,module,exports) {\n// src/SelectBox_ListPreviewFlat/selectBox_ListPreviewFlat.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_ListPreviewFlat);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar SelectBox_ListPreviewFlat = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.renderOption = (option, index)=>{\n const { ListPreviewElement , optionValueAccessor , focusedValue , theme } = this.props;\n const isHighlighted = optionValueAccessor(option) === focusedValue;\n if (!ListPreviewElement) throw new Error(\"Preview component was undefined in Selector\");\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"li\", {\n key: index,\n ref: (ref)=>{\n if (ref !== null && isHighlighted) this.focusedElement = ref;\n },\n role: \"option\",\n \"aria-selected\": isHighlighted ? \"true\" : \"false\",\n className: theme.selectBox__item\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(ListPreviewElement, {\n isHighlighted,\n option,\n onClick: this.handlePreviewElementClick(option),\n onMouseEnter: this.handlePreviewElementMouseEnter(option)\n }));\n };\n this.handlePreviewElementClick = (option)=>()=>{\n this.props.onChange(option);\n };\n this.handlePreviewElementMouseEnter = (option)=>()=>{\n if (this.props.onOptionFocus) this.props.onOptionFocus(option);\n };\n }\n // Scroll the sidebar if needed\n componentDidUpdate() {\n if (this.focusedElement !== null) {\n const rect = this.focusedElement.getBoundingClientRect();\n if (rect.bottom >= window.innerHeight) this.focusedElement.scrollIntoView();\n }\n }\n render() {\n const { options } = this.props;\n this.focusedElement = null;\n return options.map(this.renderOption);\n }\n};\nSelectBox_ListPreviewFlat.propTypes = {\n // For explanations of the PropTypes, see SelectBox.js\n options: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({})),\n ListPreviewElement: (0, _propTypesDefault.default).any.isRequired,\n // API with SelectBox\n optionValueAccessor: (0, _propTypesDefault.default).func.isRequired,\n onChange: (0, _propTypesDefault.default).func.isRequired,\n focusedValue: (0, _propTypesDefault.default).string,\n onOptionFocus: (0, _propTypesDefault.default).func,\n // ------------------------------\n // Theme & Dependencies\n // ------------------------------\n theme: (0, _propTypesDefault.default).shape({\n selectBox__item: (0, _propTypesDefault.default).string\n }).isRequired\n};\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dOz8R\":[function(require,module,exports) {\n// src/SelectBox_ListPreviewGrouped/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_ListPreviewGrouped_default);\nvar _selectBoxListPreviewGrouped = require(\"./selectBox_ListPreviewGrouped\");\nvar _selectBoxListPreviewGroupedDefault = parcelHelpers.interopDefault(_selectBoxListPreviewGrouped);\nvar SelectBox_ListPreviewGrouped_default = (0, _selectBoxListPreviewGroupedDefault.default);\n\n},{\"./selectBox_ListPreviewGrouped\":\"hIx3y\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hIx3y\":[function(require,module,exports) {\n// src/SelectBox_ListPreviewGrouped/selectBox_ListPreviewGrouped.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_ListPreviewGrouped);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar SelectBox_ListPreviewGrouped = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n /**\n * Groups the options of the selectBox by their group-attribute. Returns a javascript Map with the group names\n * as key and an array of options as values.\n * Options without a group-attribute assigned will receive the key specified in props.withoutGroupLabel.\n */ this.getGroupedOptions = (options)=>{\n return options.reduce((accumulator, currentOpt)=>{\n const groupLabel = currentOpt.group ? currentOpt.group : this.props.withoutGroupLabel;\n accumulator[groupLabel] = accumulator[groupLabel] || [];\n accumulator[groupLabel].push(currentOpt);\n return accumulator;\n }, /* @__PURE__ */ Object.create(null));\n };\n /**\n * Renders the options of the selectBox as

  • and groups them below a \n * that displays their group name.\n * @returns {JSX} option elements grouped by and labeled with their group-attribute.\n */ this.renderGroup = (group)=>{\n const [groupLabel, optionsList] = group;\n const { theme } = this.props;\n const groupClassName = (0, _classnamesDefault.default)({\n [theme.selectBox__item]: true,\n [theme[\"selectBox__item--isGroup\"]]: true\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"li\", {\n key: groupLabel,\n className: groupClassName\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectBox__groupHeader\n }, groupLabel), /* @__PURE__ */ (0, _reactDefault.default).createElement(\"ul\", null, optionsList.map(this.renderOption)));\n };\n this.renderOption = (option, index)=>{\n const { ListPreviewElement , optionValueAccessor , focusedValue , theme } = this.props;\n const isHighlighted = optionValueAccessor(option) === focusedValue;\n if (!ListPreviewElement) throw new Error(\"Preview component was undefined in Selector\");\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"li\", {\n key: index,\n ref: (ref)=>{\n if (ref !== null && isHighlighted) this.focusedElement = ref;\n },\n role: \"option\",\n \"aria-selected\": isHighlighted ? \"true\" : \"false\",\n className: theme.selectBox__item\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(ListPreviewElement, {\n isHighlighted,\n option,\n onClick: this.handlePreviewElementClick(option),\n onMouseEnter: this.handlePreviewElementMouseEnter(option)\n }));\n };\n this.handlePreviewElementClick = (option)=>()=>{\n this.props.onChange(option);\n };\n this.handlePreviewElementMouseEnter = (option)=>()=>{\n if (this.props.onOptionFocus) this.props.onOptionFocus(option);\n };\n }\n // Scroll the sidebar if needed\n componentDidUpdate() {\n if (this.focusedElement !== null) {\n const rect = this.focusedElement.getBoundingClientRect();\n if (rect.bottom >= window.innerHeight) this.focusedElement.scrollIntoView();\n }\n }\n render() {\n const { options } = this.props;\n this.focusedElement = null;\n const groupedOptions = this.getGroupedOptions(options);\n return Object.entries(groupedOptions).map(this.renderGroup);\n }\n};\nSelectBox_ListPreviewGrouped.propTypes = {\n // For explanations of the PropTypes, see SelectBox.js\n options: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({})),\n ListPreviewElement: (0, _propTypesDefault.default).any.isRequired,\n theme: (0, _propTypesDefault.default).shape({\n \"selectBox__item\": (0, _propTypesDefault.default).string,\n \"selectBox__item--isGroup\": (0, _propTypesDefault.default).string,\n \"selectBox__groupHeader\": (0, _propTypesDefault.default).string\n }),\n // API with SelectBox\n optionValueAccessor: (0, _propTypesDefault.default).func.isRequired,\n onChange: (0, _propTypesDefault.default).func.isRequired,\n focusedValue: (0, _propTypesDefault.default).string,\n onOptionFocus: (0, _propTypesDefault.default).func,\n withoutGroupLabel: (0, _propTypesDefault.default).string.isRequired\n};\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jYurn\":[function(require,module,exports) {\n// src/Tabs/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Tabs_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Tabs/style.module.css\nvar _di4RcunoCss = require(\"../_css/DI4RCUNO.css\");\n// src/Tabs/index.ts\nvar _tabs = require(\"./tabs\");\nvar _tabsDefault = parcelHelpers.interopDefault(_tabs);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"tabNavigation__itemBtnIcon\": \"neos-oqNh0W_tabNavigation__itemBtnIcon\",\n \"tabNavigation__itemBtn\": \"neos-oqNh0W_tabNavigation__itemBtn \" + reset_module_default[\"reset\"],\n \"tabs\": \"neos-oqNh0W_tabs \" + reset_module_default[\"reset\"],\n \"tabNavigation\": \"neos-oqNh0W_tabNavigation \" + reset_module_default[\"reset\"],\n \"panel\": \"neos-oqNh0W_panel \" + reset_module_default[\"reset\"],\n \"tabNavigation__item\": \"neos-oqNh0W_tabNavigation__item \" + reset_module_default[\"reset\"],\n \"tabNavigation__itemBtnIcon--hasLabel\": \"neos-oqNh0W_tabNavigation__itemBtnIcon--hasLabel\",\n \"tabNavigation__item--isActive\": \"neos-oqNh0W_tabNavigation__item--isActive\",\n \"tabs__content\": \"neos-oqNh0W_tabs__content \" + reset_module_default[\"reset\"]\n};\nvar Tabs_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).tabs, style_module_default)((0, _tabsDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/DI4RCUNO.css\":\"hDFXZ\",\"./tabs\":\"aSA4Y\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"hDFXZ\":[function() {},{}],\"aSA4Y\":[function(require,module,exports) {\n// src/Tabs/tabs.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"TabMenuItem\", ()=>TabMenuItem);\nparcelHelpers.export(exports, \"default\", ()=>Tabs);\nparcelHelpers.export(exports, \"tabMenuItemDefaultProps\", ()=>tabMenuItemDefaultProps);\nparcelHelpers.export(exports, \"tabsDefaultProps\", ()=>tabsDefaultProps);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _panelIndex = require(\"./panel.index\");\nvar _panelIndexDefault = parcelHelpers.interopDefault(_panelIndex);\nvar _icon = require(\"../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar tabsDefaultProps = {\n activeTab: 0\n};\nvar Tabs = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.state = {\n activeTab: this.props.activeTab ?? 0\n };\n this.handleTabNavItemClick = (id)=>{\n this.updateActiveTab(id);\n };\n }\n updateActiveTab(activeTab) {\n this.setState({\n activeTab\n }, ()=>{\n this.props.onActiveTabChange?.(activeTab);\n });\n }\n UNSAFE_componentWillReceiveProps(newProps) {\n const newactiveTab = newProps.activeTab;\n const { activeTab } = this.state;\n if (newactiveTab && newactiveTab !== activeTab) this.updateActiveTab(newactiveTab);\n }\n getActiveTab() {\n const { activeTab } = this.state;\n if (isNaN(activeTab)) {\n const activeTabs = this.props.children.filter((panel)=>panel.props.id === activeTab);\n return activeTabs.length === 0 ? this.props.children[0].props.id || 0 : activeTab;\n }\n if (activeTab < (0, _reactDefault.default).Children.count(this.props.children)) return activeTab;\n return 0;\n }\n renderMenuItems() {\n const { theme , children } = this.props;\n const activeTab = this.getActiveTab();\n const menuItems = children.map((panel, index)=>/* @__PURE__ */ (0, _reactDefault.default).createElement(TabMenuItem, {\n key: index,\n index,\n id: panel.props.id || index,\n ref: `tab-${index}`,\n onClick: this.handleTabNavItemClick,\n isActive: activeTab === (isNaN(activeTab) ? panel.props.id : index),\n theme,\n title: panel.props.title,\n icon: panel.props.icon,\n tooltip: panel.props.tooltip\n }));\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"ul\", {\n className: theme.tabNavigation\n }, menuItems);\n }\n renderPanels() {\n const { theme , children } = this.props;\n const activeTab = this.getActiveTab();\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.tabs__content\n }, children.map((panel, index)=>{\n const isActive = activeTab === (isNaN(activeTab) ? panel.props.id : index);\n const style = {\n display: isActive ? \"block\" : \"none\"\n };\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.tabs__panel,\n key: index,\n style,\n role: \"tabpanel\",\n \"aria-hidden\": isActive ? \"false\" : \"true\"\n }, isActive && panel);\n }));\n }\n render() {\n const { theme , className } = this.props;\n const finalClassName = (0, _classnamesDefault.default)(theme.tabs, className);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: finalClassName,\n role: \"tablist\"\n }, this.renderMenuItems(), this.renderPanels());\n }\n};\nTabs.Panel = (0, _panelIndexDefault.default);\nTabs.defaultProps = tabsDefaultProps;\nvar tabMenuItemDefaultProps = {\n isActive: false\n};\nvar TabMenuItem = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleClick = ()=>{\n this.props.onClick(this.props.id);\n };\n }\n render() {\n const { theme , isActive , index , icon , title , tooltip } = this.props;\n const finalClassName = (0, _classnamesDefault.default)(theme.tabNavigation__item, {\n [theme[\"tabNavigation__item--isActive\"]]: isActive\n });\n const finalIconClassName = (0, _classnamesDefault.default)(theme.tabNavigation__itemBtnIcon, {\n [theme[\"tabNavigation__itemBtnIcon--hasLabel\"]]: title && title.length\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"li\", {\n className: finalClassName,\n role: \"presentation\"\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"button\", {\n className: theme.tabNavigation__itemBtn,\n onClick: this.handleClick,\n role: \"tab\",\n \"aria-selected\": isActive ? \"true\" : \"false\",\n \"aria-controls\": `section${index}`,\n title: tooltip\n }, icon ? /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _iconDefault.default), {\n icon,\n className: finalIconClassName\n }) : null, title));\n }\n};\nTabMenuItem.defaultProps = tabMenuItemDefaultProps;\n\n},{\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"./panel.index\":\"9KNj7\",\"../Icon\":\"d3a5Q\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9KNj7\":[function(require,module,exports) {\n// src/Tabs/panel.index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>panel_index_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Tabs/style.module.css\nvar _di4RcunoCss = require(\"../_css/DI4RCUNO.css\");\n// src/Tabs/panel.index.ts\nvar _panel = require(\"./panel\");\nvar _panelDefault = parcelHelpers.interopDefault(_panel);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"tabNavigation__itemBtnIcon\": \"neos-oqNh0W_tabNavigation__itemBtnIcon\",\n \"tabNavigation\": \"neos-oqNh0W_tabNavigation \" + reset_module_default[\"reset\"],\n \"tabNavigation__itemBtnIcon--hasLabel\": \"neos-oqNh0W_tabNavigation__itemBtnIcon--hasLabel\",\n \"tabs\": \"neos-oqNh0W_tabs \" + reset_module_default[\"reset\"],\n \"tabs__content\": \"neos-oqNh0W_tabs__content \" + reset_module_default[\"reset\"],\n \"tabNavigation__item\": \"neos-oqNh0W_tabNavigation__item \" + reset_module_default[\"reset\"],\n \"tabNavigation__item--isActive\": \"neos-oqNh0W_tabNavigation__item--isActive\",\n \"panel\": \"neos-oqNh0W_panel \" + reset_module_default[\"reset\"],\n \"tabNavigation__itemBtn\": \"neos-oqNh0W_tabNavigation__itemBtn \" + reset_module_default[\"reset\"]\n};\nvar panel_index_default = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).tabsPanel, style_module_default)((0, _panelDefault.default));\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/DI4RCUNO.css\":\"hDFXZ\",\"./panel\":\"4OHmA\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"hDFXZ\":[function() {},{}],\"4OHmA\":[function(require,module,exports) {\n// src/Tabs/panel.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Panel);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar Panel = class extends (0, _react.PureComponent) {\n render() {\n const { theme , children } = this.props;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.panel\n }, children);\n }\n};\nPanel.displayName = \"Panel\";\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hJO8M\":[function(require,module,exports) {\n// src/TextArea/index.ts\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>TextArea_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/TextArea/style.module.css\nvar _brqd6W3BCss = require(\"../_css/BRQD6W3B.css\");\n// src/TextArea/index.ts\nvar _textArea = require(\"./textArea\");\nvar _textAreaDefault = parcelHelpers.interopDefault(_textArea);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"textArea--invalid\": \"neos-HIOrZq_textArea--invalid\",\n \"textArea--disabled\": \"neos-HIOrZq_textArea--disabled\",\n \"textArea--highlight\": \"neos-HIOrZq_textArea--highlight\",\n \"textArea\": \"neos-HIOrZq_textArea \" + reset_module_default[\"reset\"]\n};\nvar ThemedTextArea = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).textArea, style_module_default)((0, _textAreaDefault.default));\nvar TextArea_default = ThemedTextArea;\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/BRQD6W3B.css\":\"2o8Kg\",\"./textArea\":\"aSXnP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"2o8Kg\":[function() {},{}],\"aSXnP\":[function(require,module,exports) {\n// src/TextArea/textArea.tsx\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"TextArea\", ()=>TextArea);\nparcelHelpers.export(exports, \"default\", ()=>textArea_default);\nparcelHelpers.export(exports, \"defaultProps\", ()=>defaultProps);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactTextareaAutosize = require(\"react-textarea-autosize\");\nvar _reactTextareaAutosizeDefault = parcelHelpers.interopDefault(_reactTextareaAutosize);\nvar _index = require(\"../enhanceWithClickOutside/index\");\nvar _indexDefault = parcelHelpers.interopDefault(_index);\nvar defaultProps = {\n minRows: 2,\n expandedRows: 6\n};\nvar initialState = {\n isFocused: false\n};\nvar TextArea = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.state = initialState;\n this.handleValueChange = (e)=>{\n const { onChange } = this.props;\n if (onChange) onChange(e.target.value);\n };\n this.handleOnClick = ()=>{\n this.setState({\n isFocused: true\n });\n };\n this.handleClickOutside = ()=>{\n this.setState({\n isFocused: false\n });\n };\n }\n render() {\n const { placeholder , className , theme , disabled , minRows , expandedRows , value , style , ...restProps } = this.props;\n const classNames = (0, _classnamesDefault.default)(className, theme.textArea, {\n [theme[\"textArea--disabled\"]]: disabled\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _reactTextareaAutosizeDefault.default), {\n ...restProps,\n className: classNames,\n role: \"textbox\",\n \"aria-multiline\": \"true\",\n \"aria-disabled\": disabled ? \"true\" : \"false\",\n placeholder,\n disabled,\n onChange: this.handleValueChange,\n onClick: this.handleOnClick,\n minRows: this.state.isFocused ? expandedRows : minRows,\n value,\n style\n });\n }\n};\nTextArea.defaultProps = defaultProps;\nvar textArea_default = (0, _indexDefault.default)(TextArea);\n\n},{\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"react-textarea-autosize\":\"jz9dT\",\"../enhanceWithClickOutside/index\":\"kjtTU\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jz9dT\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _extends = require(\"@babel/runtime/helpers/esm/extends\");\nvar _extendsDefault = parcelHelpers.interopDefault(_extends);\nvar _objectWithoutPropertiesLoose = require(\"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\");\nvar _objectWithoutPropertiesLooseDefault = parcelHelpers.interopDefault(_objectWithoutPropertiesLoose);\nvar _react = require(\"react\");\nvar _useLatest = require(\"use-latest\");\nvar _useLatestDefault = parcelHelpers.interopDefault(_useLatest);\nvar _useComposedRef = require(\"use-composed-ref\");\nvar _useComposedRefDefault = parcelHelpers.interopDefault(_useComposedRef);\nvar HIDDEN_TEXTAREA_STYLE = {\n \"min-height\": \"0\",\n \"max-height\": \"none\",\n height: \"0\",\n visibility: \"hidden\",\n overflow: \"hidden\",\n position: \"absolute\",\n \"z-index\": \"-1000\",\n top: \"0\",\n right: \"0\"\n};\nvar forceHiddenStyles = function forceHiddenStyles(node) {\n Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) {\n node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], \"important\");\n });\n};\n// TODO: use labelled tuples once they are avaiable:\n// export type CalculatedNodeHeights = [height: number, rowHeight: number];\n// https://github.com/microsoft/TypeScript/issues/28259\nvar hiddenTextarea = null;\nvar getHeight = function getHeight(node, sizingData) {\n var height = node.scrollHeight;\n if (sizingData.sizingStyle.boxSizing === \"border-box\") // border-box: add border, since height = content + padding + border\n return height + sizingData.borderSize;\n // remove padding, since height = content\n return height - sizingData.paddingSize;\n};\nfunction calculateNodeHeight(sizingData, value, minRows, maxRows) {\n if (minRows === void 0) minRows = 1;\n if (maxRows === void 0) maxRows = Infinity;\n if (!hiddenTextarea) {\n hiddenTextarea = document.createElement(\"textarea\");\n hiddenTextarea.setAttribute(\"tabindex\", \"-1\");\n hiddenTextarea.setAttribute(\"aria-hidden\", \"true\");\n forceHiddenStyles(hiddenTextarea);\n }\n if (hiddenTextarea.parentNode === null) document.body.appendChild(hiddenTextarea);\n var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle;\n var boxSizing = sizingStyle.boxSizing;\n Object.keys(sizingStyle).forEach(function(_key) {\n var key = _key;\n hiddenTextarea.style[key] = sizingStyle[key];\n });\n forceHiddenStyles(hiddenTextarea);\n hiddenTextarea.value = value;\n var height = getHeight(hiddenTextarea, sizingData);\n // Double set and calc due to Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1795904\n hiddenTextarea.value = value;\n height = getHeight(hiddenTextarea, sizingData);\n // measure height of a textarea with a single row\n hiddenTextarea.value = \"x\";\n var rowHeight = hiddenTextarea.scrollHeight - paddingSize;\n var minHeight = rowHeight * minRows;\n if (boxSizing === \"border-box\") minHeight = minHeight + paddingSize + borderSize;\n height = Math.max(minHeight, height);\n var maxHeight = rowHeight * maxRows;\n if (boxSizing === \"border-box\") maxHeight = maxHeight + paddingSize + borderSize;\n height = Math.min(maxHeight, height);\n return [\n height,\n rowHeight\n ];\n}\nvar noop = function noop() {};\nvar pick = function pick(props, obj) {\n return props.reduce(function(acc, prop) {\n acc[prop] = obj[prop];\n return acc;\n }, {});\n};\nvar SIZING_STYLE = [\n \"borderBottomWidth\",\n \"borderLeftWidth\",\n \"borderRightWidth\",\n \"borderTopWidth\",\n \"boxSizing\",\n \"fontFamily\",\n \"fontSize\",\n \"fontStyle\",\n \"fontWeight\",\n \"letterSpacing\",\n \"lineHeight\",\n \"paddingBottom\",\n \"paddingLeft\",\n \"paddingRight\",\n \"paddingTop\",\n // non-standard\n \"tabSize\",\n \"textIndent\",\n // non-standard\n \"textRendering\",\n \"textTransform\",\n \"width\",\n \"wordBreak\"\n];\nvar isIE = !!document.documentElement.currentStyle;\nvar getSizingData = function getSizingData(node) {\n var style = window.getComputedStyle(node);\n if (style === null) return null;\n var sizingStyle = pick(SIZING_STYLE, style);\n var boxSizing = sizingStyle.boxSizing;\n // probably node is detached from DOM, can't read computed dimensions\n if (boxSizing === \"\") return null;\n // IE (Edge has already correct behaviour) returns content width as computed width\n // so we need to add manually padding and border widths\n if (isIE && boxSizing === \"border-box\") sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + \"px\";\n var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);\n var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);\n return {\n sizingStyle: sizingStyle,\n paddingSize: paddingSize,\n borderSize: borderSize\n };\n};\nfunction useListener(target, type, listener) {\n var latestListener = (0, _useLatestDefault.default)(listener);\n (0, _react.useLayoutEffect)(function() {\n var handler = function handler(ev) {\n return latestListener.current(ev);\n };\n target.addEventListener(type, handler);\n return function() {\n return target.removeEventListener(type, handler);\n };\n }, []);\n}\nvar useWindowResizeListener = function useWindowResizeListener(listener) {\n useListener(window, \"resize\", listener);\n};\nvar useFontsLoadedListener = function useFontsLoadedListener(listener) {\n useListener(document.fonts, \"loadingdone\", listener);\n};\nvar _excluded = [\n \"cacheMeasurements\",\n \"maxRows\",\n \"minRows\",\n \"onChange\",\n \"onHeightChange\"\n];\nvar TextareaAutosize = function TextareaAutosize(_ref, userRef) {\n var cacheMeasurements = _ref.cacheMeasurements, maxRows = _ref.maxRows, minRows = _ref.minRows, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop : _ref$onChange, _ref$onHeightChange = _ref.onHeightChange, onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange, props = (0, _objectWithoutPropertiesLooseDefault.default)(_ref, _excluded);\n var isControlled = props.value !== undefined;\n var libRef = (0, _react.useRef)(null);\n var ref = (0, _useComposedRefDefault.default)(libRef, userRef);\n var heightRef = (0, _react.useRef)(0);\n var measurementsCacheRef = (0, _react.useRef)();\n var resizeTextarea = function resizeTextarea() {\n var node = libRef.current;\n var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData(node);\n if (!nodeSizingData) return;\n measurementsCacheRef.current = nodeSizingData;\n var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || \"x\", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1];\n if (heightRef.current !== height) {\n heightRef.current = height;\n node.style.setProperty(\"height\", height + \"px\", \"important\");\n onHeightChange(height, {\n rowHeight: rowHeight\n });\n }\n };\n var handleChange = function handleChange(event) {\n if (!isControlled) resizeTextarea();\n onChange(event);\n };\n (0, _react.useLayoutEffect)(resizeTextarea);\n useWindowResizeListener(resizeTextarea);\n useFontsLoadedListener(resizeTextarea);\n return /*#__PURE__*/ (0, _react.createElement)(\"textarea\", (0, _extendsDefault.default)({}, props, {\n onChange: handleChange,\n ref: ref\n }));\n};\nvar index = /* #__PURE__ */ (0, _react.forwardRef)(TextareaAutosize);\nexports.default = index;\n\n},{\"@babel/runtime/helpers/esm/extends\":\"fW5l8\",\"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\":\"5R6Zx\",\"react\":\"6uln9\",\"use-latest\":\"4DkdI\",\"use-composed-ref\":\"lP3kg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fW5l8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>_extends);\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5R6Zx\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>_objectWithoutPropertiesLoose);\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4DkdI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useLatest);\nvar _react = require(\"react\");\nvar _useIsomorphicLayoutEffect = require(\"use-isomorphic-layout-effect\");\nvar _useIsomorphicLayoutEffectDefault = parcelHelpers.interopDefault(_useIsomorphicLayoutEffect);\nvar useLatest = function useLatest(value) {\n var ref = _react.useRef(value);\n (0, _useIsomorphicLayoutEffectDefault.default)(function() {\n ref.current = value;\n });\n return ref;\n};\n\n},{\"react\":\"6uln9\",\"use-isomorphic-layout-effect\":\"1RxCy\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1RxCy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar index = (0, _react.useLayoutEffect);\nexports.default = index;\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lP3kg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar updateRef = function updateRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n return;\n }\n ref.current = value;\n};\nvar useComposedRef = function useComposedRef(libRef, userRef) {\n var prevUserRef = (0, _react.useRef)();\n return (0, _react.useCallback)(function(instance) {\n libRef.current = instance;\n if (prevUserRef.current) updateRef(prevUserRef.current, null);\n prevUserRef.current = userRef;\n if (!userRef) return;\n updateRef(userRef, instance);\n }, [\n userRef\n ]);\n};\nexports.default = useComposedRef;\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"e3kL4\":[function(require,module,exports) {\n// src/ToggablePanel/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>ToggablePanel_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/ToggablePanel/style.module.css\nvar _d7JnysmtCss = require(\"../_css/D7JNYSMT.css\");\n// src/ToggablePanel/index.js\nvar _toggablePanel = require(\"./toggablePanel\");\nvar _toggablePanelDefault = parcelHelpers.interopDefault(_toggablePanel);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _headline = require(\"./../Headline\");\nvar _headlineDefault = parcelHelpers.interopDefault(_headline);\nvar _iconButton = require(\"./../IconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"panel--condensed\": \"neos-l9MESW_panel--condensed\",\n \"panel--isOpen\": \"neos-l9MESW_panel--isOpen\",\n \"panel__headline\": \"neos-l9MESW_panel__headline \" + reset_module_default[\"reset\"],\n \"panel__headline--noPadding\": \"neos-l9MESW_panel__headline--noPadding\",\n \"panel__toggleBtn\": \"neos-l9MESW_panel__toggleBtn \" + reset_module_default[\"reset\"],\n \"panel__contents\": \"neos-l9MESW_panel__contents \" + reset_module_default[\"reset\"],\n \"panel\": \"neos-l9MESW_panel \" + reset_module_default[\"reset\"],\n \"panel__contents--noPadding\": \"neos-l9MESW_panel__contents--noPadding\"\n};\nvar ThemedToggablePanel = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).toggablePanel, style_module_default)((0, _toggablePanelDefault.default));\nvar ThemedToggablePanelHeader = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).toggablePanelHeader, style_module_default)((0, _toggablePanel.Header));\nvar ThemedToggablePanelContents = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).toggablePanelContents, style_module_default)((0, _toggablePanel.Contents));\nThemedToggablePanel.Header = (0, _injectPropsDefault.default)({\n HeadlineComponent: (0, _headlineDefault.default),\n IconButtonComponent: (0, _iconButtonDefault.default)\n})(ThemedToggablePanelHeader);\nThemedToggablePanel.Contents = ThemedToggablePanelContents;\nvar ToggablePanel_default = ThemedToggablePanel;\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/D7JNYSMT.css\":\"7Gvoj\",\"./toggablePanel\":\"7eR7b\",\"./../_lib/injectProps\":\"4zDuU\",\"./../Headline\":\"5iw6V\",\"./../IconButton\":\"f6lYW\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"7Gvoj\":[function() {},{}],\"7eR7b\":[function(require,module,exports) {\n// src/ToggablePanel/toggablePanel.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Contents\", ()=>Contents);\nparcelHelpers.export(exports, \"Header\", ()=>Header);\nparcelHelpers.export(exports, \"StatelessToggablePanel\", ()=>StatelessToggablePanel);\nparcelHelpers.export(exports, \"default\", ()=>ToggablePanel);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _reactCollapse = require(\"react-collapse\");\nvar _reactCollapseDefault = parcelHelpers.interopDefault(_reactCollapse);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar validStyleKeys = [\n \"condensed\"\n];\nvar ToggablePanel = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.state = {\n isOpen: true\n };\n this.toggle = ()=>{\n this.setState({\n isOpen: !this.state.isOpen\n });\n };\n }\n UNSAFE_componentWillReceiveProps(newProps) {\n const { isOpen } = newProps;\n const isStateLess = Boolean(newProps.onPanelToggle);\n if (isOpen !== this.state.isOpen && !isStateLess) this.setState({\n isOpen\n });\n }\n render() {\n const isStateLess = Boolean(this.props.onPanelToggle);\n const onPanelToggle = isStateLess ? this.props.onPanelToggle : this.toggle;\n const isOpen = isStateLess ? this.props.isOpen : this.state.isOpen;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(StatelessToggablePanel, {\n ...this.props,\n isOpen,\n onPanelToggle\n }, this.props.children);\n }\n};\nToggablePanel.propTypes = {\n /**\n * This prop controls if the contents are visible or not.\n */ isOpen: (0, _propTypesDefault.default).bool,\n /**\n * Switches icon-open and icon-closed if set to true; can be used for\n * panels that close downwards such as the page structure tree.\n */ closesToBottom: (0, _propTypesDefault.default).bool,\n /**\n * The children, ideally one Header and Contents component each.\n */ children: (0, _propTypesDefault.default).any.isRequired,\n /**\n * The handler which will be called once the user toggles the contents.\n */ onPanelToggle: (0, _propTypesDefault.default).func\n};\nToggablePanel.defaultProps = {\n isOpen: true\n};\nvar StatelessToggablePanel = class extends (0, _react.PureComponent) {\n getChildContext() {\n return {\n onPanelToggle: this.props.onPanelToggle\n };\n }\n render() {\n const { children , className , theme , style , isOpen } = this.props;\n const finalClassName = (0, _classnamesDefault.default)({\n [className]: className && className.length,\n [theme.panel]: true,\n [theme[\"panel--isOpen\"]]: isOpen,\n [theme[`panel--${style}`]]: validStyleKeys.includes(style)\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"section\", {\n className: finalClassName\n }, (0, _reactDefault.default).Children.map(children, (child)=>child.type ? /* @__PURE__ */ (0, _reactDefault.default).createElement(child.type, {\n ...child.props,\n isPanelOpen: isOpen\n }) : child));\n }\n};\nStatelessToggablePanel.propTypes = {\n /**\n * This prop controls if the contents are visible or not.\n */ isOpen: (0, _propTypesDefault.default).bool,\n /**\n * Switches icon-open and icon-closed if set to true; can be used for\n * panels that close downwards such as the page structure tree.\n */ closesToBottom: (0, _propTypesDefault.default).bool,\n /**\n * An optional className to render on the wrapper.\n */ className: (0, _propTypesDefault.default).string,\n /**\n * The children, ideally one Header and Contents component each.\n */ children: (0, _propTypesDefault.default).any.isRequired,\n /**\n * The handler which will be called once the user toggles the contents.\n */ onPanelToggle: (0, _propTypesDefault.default).func.isRequired,\n /**\n * An optional css theme to be injected.\n */ theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"panel\": (0, _propTypesDefault.default).string,\n \"panel--isOpen\": (0, _propTypesDefault.default).string,\n \"panel--condensed\": (0, _propTypesDefault.default).string\n }).isRequired,\n /* eslint-enable quote-props */ /**\n * The `style` prop defines the regular visual style of the `Button`.\n */ style: (0, _propTypesDefault.default).oneOf(validStyleKeys)\n};\nStatelessToggablePanel.defaultProps = {\n isOpen: false\n};\nStatelessToggablePanel.childContextTypes = {\n onPanelToggle: (0, _propTypesDefault.default).func.isRequired\n};\nvar Header = class extends (0, _react.PureComponent) {\n render() {\n const { HeadlineComponent , IconButtonComponent , children , isPanelOpen , openedIcon , closedIcon , theme , noPadding , toggleButtonId , ...rest } = this.props;\n const { onPanelToggle } = this.context;\n const finalClassName = (0, _classnamesDefault.default)([\n theme.panel__headline\n ], {\n [theme[\"panel__headline--noPadding\"]]: noPadding\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n role: \"button\",\n \"aria-expanded\": isPanelOpen,\n onClick: onPanelToggle,\n ...rest\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(HeadlineComponent, {\n className: finalClassName,\n type: \"h2\"\n }, children), /* @__PURE__ */ (0, _reactDefault.default).createElement(IconButtonComponent, {\n className: theme.panel__toggleBtn,\n hoverStyle: \"clean\",\n icon: isPanelOpen ? openedIcon : closedIcon,\n id: toggleButtonId\n }));\n }\n};\nHeader.propTypes = {\n /**\n * The children which will be rendered within the header.\n */ children: (0, _propTypesDefault.default).any.isRequired,\n /**\n * The propagated isOpen state from the toggle panel\n */ isPanelOpen: (0, _propTypesDefault.default).bool,\n /**\n * An optional css theme to be injected.\n */ theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"panel__headline\": (0, _propTypesDefault.default).string,\n \"panel__headline--noPadding\": (0, _propTypesDefault.default).string,\n \"panel__toggleBtn\": (0, _propTypesDefault.default).string\n }).isRequired,\n /* eslint-enable quote-props */ /**\n * Can be set to remove padding from the content area\n */ noPadding: (0, _propTypesDefault.default).bool,\n /**\n * Static component dependencies which are injected from the outside (index.js)\n */ HeadlineComponent: (0, _propTypesDefault.default).any.isRequired,\n IconButtonComponent: (0, _propTypesDefault.default).any.isRequired,\n /**\n * Optional icons as closing/opening indicator\n * If not provided defaults are chevron-up and chevron-down\n */ openedIcon: (0, _propTypesDefault.default).string,\n closedIcon: (0, _propTypesDefault.default).string,\n toggleButtonId: (0, _propTypesDefault.default).string\n};\nHeader.defaultProps = {\n isPanelOpen: true,\n openedIcon: \"chevron-circle-up\",\n closedIcon: \"chevron-circle-down\"\n};\nHeader.contextTypes = {\n onPanelToggle: (0, _propTypesDefault.default).func.isRequired\n};\nvar Contents = class extends (0, _react.PureComponent) {\n render() {\n const { className , children , isPanelOpen , theme } = this.props;\n const finalClassName = (0, _classnamesDefault.default)(theme.panel__contents, {\n [theme[\"panel__contents--noPadding\"]]: this.props.noPadding,\n [className]: className && className.length\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _reactCollapseDefault.default), {\n isOpened: isPanelOpen,\n springConfig: {\n stiffness: 300,\n damping: 30\n }\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: finalClassName,\n \"aria-hidden\": isPanelOpen ? \"false\" : \"true\"\n }, children));\n }\n};\nContents.propTypes = {\n /**\n * An optional className to be rendered on the wrapping node.\n */ className: (0, _propTypesDefault.default).string,\n /**\n * Can be set to remove padding from the content area\n */ noPadding: (0, _propTypesDefault.default).bool,\n /**\n * The rendered children which can be toggled.\n */ children: (0, _propTypesDefault.default).any.isRequired,\n /**\n * The propagated isOpen state from the toggle panel\n */ isPanelOpen: (0, _propTypesDefault.default).bool,\n /**\n * An optional css theme to be injected.\n */ theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"panel__contents\": (0, _propTypesDefault.default).string,\n \"panel__contents--noPadding\": (0, _propTypesDefault.default).string\n }).isRequired\n};\nContents.defaultProps = {\n theme: {},\n isPanelOpen: true\n};\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"react-collapse\":\"bsrB0\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bsrB0\":[function(require,module,exports) {\n\"use strict\";\nvar _require = require(\"596d309aed1e6e30\"), Collapse = _require.Collapse;\nvar _require2 = require(\"38a0cc5bee8cfc4f\"), UnmountClosed = _require2.UnmountClosed; // Default export\nmodule.exports = UnmountClosed; // Extra \"named exports\"\nUnmountClosed.Collapse = Collapse;\nUnmountClosed.UnmountClosed = UnmountClosed;\n\n},{\"596d309aed1e6e30\":\"iJIRy\",\"38a0cc5bee8cfc4f\":\"ih50G\"}],\"iJIRy\":[function(require,module,exports) {\n\"use strict\";\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Collapse = void 0;\nvar _react = _interopRequireDefault(require(\"1a360f6a91baf4dc\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) return call;\n else if (call !== void 0) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nvar Collapse = /*#__PURE__*/ function(_React$Component) {\n _inherits(Collapse, _React$Component);\n var _super = _createSuper(Collapse);\n function Collapse(props) {\n var _this;\n _classCallCheck(this, Collapse);\n _this = _super.call(this, props);\n _defineProperty(_assertThisInitialized(_this), \"timeout\", undefined);\n _defineProperty(_assertThisInitialized(_this), \"container\", undefined);\n _defineProperty(_assertThisInitialized(_this), \"content\", undefined);\n _defineProperty(_assertThisInitialized(_this), \"onResize\", function() {\n clearTimeout(_this.timeout);\n if (!_this.container || !_this.content) return;\n var _this$props = _this.props, isOpened = _this$props.isOpened, checkTimeout = _this$props.checkTimeout;\n var containerHeight = Math.floor(_this.container.clientHeight);\n var contentHeight = Math.floor(_this.content.clientHeight);\n var isFullyOpened = isOpened && Math.abs(contentHeight - containerHeight) <= 1;\n var isFullyClosed = !isOpened && Math.abs(containerHeight) <= 1;\n if (isFullyOpened || isFullyClosed) _this.onRest({\n isFullyOpened: isFullyOpened,\n isFullyClosed: isFullyClosed,\n isOpened: isOpened,\n containerHeight: containerHeight,\n contentHeight: contentHeight\n });\n else {\n _this.onWork({\n isFullyOpened: isFullyOpened,\n isFullyClosed: isFullyClosed,\n isOpened: isOpened,\n containerHeight: containerHeight,\n contentHeight: contentHeight\n });\n _this.timeout = setTimeout(function() {\n return _this.onResize();\n }, checkTimeout);\n }\n });\n _defineProperty(_assertThisInitialized(_this), \"onRest\", function(_ref) {\n var isFullyOpened = _ref.isFullyOpened, isFullyClosed = _ref.isFullyClosed, isOpened = _ref.isOpened, containerHeight = _ref.containerHeight, contentHeight = _ref.contentHeight;\n if (!_this.container || !_this.content) return;\n var hasOpened = isOpened && _this.container.style.height === \"\".concat(contentHeight, \"px\");\n var hasClosed = !isOpened && _this.container.style.height === \"0px\";\n if (hasOpened || hasClosed) {\n _this.container.style.overflow = isOpened ? \"initial\" : \"hidden\";\n _this.container.style.height = isOpened ? \"auto\" : \"0px\";\n var onRest = _this.props.onRest;\n if (onRest) onRest({\n isFullyOpened: isFullyOpened,\n isFullyClosed: isFullyClosed,\n isOpened: isOpened,\n containerHeight: containerHeight,\n contentHeight: contentHeight\n });\n }\n });\n _defineProperty(_assertThisInitialized(_this), \"onWork\", function(_ref2) {\n var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;\n if (!_this.container || !_this.content) return;\n var isOpenining = isOpened && _this.container.style.height === \"\".concat(contentHeight, \"px\");\n var isClosing = !isOpened && _this.container.style.height === \"0px\";\n if (isOpenining || isClosing) // No need to do any work\n return;\n _this.container.style.overflow = \"hidden\";\n _this.container.style.height = isOpened ? \"\".concat(contentHeight, \"px\") : \"0px\";\n var onWork = _this.props.onWork;\n if (onWork) onWork({\n isFullyOpened: isFullyOpened,\n isFullyClosed: isFullyClosed,\n isOpened: isOpened,\n containerHeight: containerHeight,\n contentHeight: contentHeight\n });\n });\n _defineProperty(_assertThisInitialized(_this), \"onRefContainer\", function(container) {\n _this.container = container;\n });\n _defineProperty(_assertThisInitialized(_this), \"onRefContent\", function(content) {\n _this.content = content;\n });\n if (props.initialStyle) _this.initialStyle = props.initialStyle;\n else _this.initialStyle = props.isOpened ? {\n height: \"auto\",\n overflow: \"initial\"\n } : {\n height: \"0px\",\n overflow: \"hidden\"\n };\n return _this;\n }\n _createClass(Collapse, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.onResize();\n }\n },\n {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this$props2 = this.props, theme = _this$props2.theme, isOpened = _this$props2.isOpened, children = _this$props2.children;\n return children !== nextProps.children || isOpened !== nextProps.isOpened || Object.keys(theme).some(function(c) {\n return theme[c] !== nextProps.theme[c];\n });\n }\n },\n {\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate() {\n if (!this.container || !this.content) return null;\n if (this.container.style.height === \"auto\") {\n var contentHeight = this.content.clientHeight;\n this.container.style.height = \"\".concat(contentHeight, \"px\");\n }\n return null;\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.onResize();\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n clearTimeout(this.timeout);\n }\n },\n {\n key: \"render\",\n value: function render() {\n var _this$props3 = this.props, theme = _this$props3.theme, children = _this$props3.children, isOpened = _this$props3.isOpened;\n return /*#__PURE__*/ _react[\"default\"].createElement(\"div\", {\n ref: this.onRefContainer,\n className: theme.collapse,\n style: this.initialStyle,\n \"aria-hidden\": !isOpened\n }, /*#__PURE__*/ _react[\"default\"].createElement(\"div\", {\n ref: this.onRefContent,\n className: theme.content\n }, children));\n }\n }\n ]);\n return Collapse;\n}(_react[\"default\"].Component);\nexports.Collapse = Collapse;\n_defineProperty(Collapse, \"defaultProps\", {\n theme: {\n collapse: \"ReactCollapse--collapse\",\n content: \"ReactCollapse--content\"\n },\n initialStyle: undefined,\n onRest: undefined,\n onWork: undefined,\n checkTimeout: 50\n});\n\n},{\"1a360f6a91baf4dc\":\"6uln9\"}],\"ih50G\":[function(require,module,exports) {\n\"use strict\";\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.UnmountClosed = void 0;\nvar _react = _interopRequireDefault(require(\"6a3e4f38342748b0\"));\nvar _Collapse = require(\"9d49a05f67153d2c\");\nvar _excluded = [\n \"isOpened\"\n], _excluded2 = [\n \"isOpened\"\n];\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nfunction _extends() {\n _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) return call;\n else if (call !== void 0) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nvar UnmountClosed = /*#__PURE__*/ function(_React$PureComponent) {\n _inherits(UnmountClosed, _React$PureComponent);\n var _super = _createSuper(UnmountClosed);\n function UnmountClosed(props) {\n var _this;\n _classCallCheck(this, UnmountClosed);\n _this = _super.call(this, props);\n _defineProperty(_assertThisInitialized(_this), \"onWork\", function(_ref) {\n var isOpened = _ref.isOpened, rest = _objectWithoutProperties(_ref, _excluded);\n _this.setState({\n isResting: false,\n isOpened: isOpened\n });\n var onWork = _this.props.onWork;\n if (onWork) onWork(_objectSpread({\n isOpened: isOpened\n }, rest));\n });\n _defineProperty(_assertThisInitialized(_this), \"onRest\", function(_ref2) {\n var isOpened = _ref2.isOpened, rest = _objectWithoutProperties(_ref2, _excluded2);\n _this.setState({\n isResting: true,\n isOpened: isOpened,\n isInitialRender: false\n });\n var onRest = _this.props.onRest;\n if (onRest) onRest(_objectSpread({\n isOpened: isOpened\n }, rest));\n });\n _defineProperty(_assertThisInitialized(_this), \"getInitialStyle\", function() {\n var _this$state = _this.state, isOpened = _this$state.isOpened, isInitialRender = _this$state.isInitialRender;\n if (isInitialRender) return isOpened ? {\n height: \"auto\",\n overflow: \"initial\"\n } : {\n height: \"0px\",\n overflow: \"hidden\"\n };\n return {\n height: \"0px\",\n overflow: \"hidden\"\n };\n });\n _this.state = {\n isResting: true,\n isOpened: props.isOpened,\n isInitialRender: true\n };\n return _this;\n }\n _createClass(UnmountClosed, [\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var isOpened = this.props.isOpened;\n if (prevProps.isOpened !== isOpened) // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n isResting: false,\n isOpened: isOpened,\n isInitialRender: false\n });\n }\n },\n {\n key: \"render\",\n value: function render() {\n var _this$state2 = this.state, isResting = _this$state2.isResting, isOpened = _this$state2.isOpened;\n return isResting && !isOpened ? null : /*#__PURE__*/ _react[\"default\"].createElement(_Collapse.Collapse, _extends({}, this.props, {\n initialStyle: this.getInitialStyle(),\n onWork: this.onWork,\n onRest: this.onRest\n }));\n }\n }\n ]);\n return UnmountClosed;\n}(_react[\"default\"].PureComponent);\nexports.UnmountClosed = UnmountClosed;\n_defineProperty(UnmountClosed, \"defaultProps\", {\n onWork: undefined,\n onRest: undefined\n});\n\n},{\"6a3e4f38342748b0\":\"6uln9\",\"9d49a05f67153d2c\":\"iJIRy\"}],\"iHdBj\":[function(require,module,exports) {\n// src/Tree/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>Tree_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/Tree/tree.module.css\nvar _vwq7R53UCss = require(\"../_css/VWQ7R53U.css\");\n// src/Tree/node.module.css\nvar _sdw6PbmeCss = require(\"../_css/SDW6PBME.css\");\n// src/Tree/dragLayer.module.css\nvar _jdl2Vbr6Css = require(\"../_css/JDL2VBR6.css\");\n// src/Tree/index.js\nvar _tree = require(\"./tree\");\nvar _treeDefault = parcelHelpers.interopDefault(_tree);\nvar _node = require(\"./node\");\nvar _nodeDefault = parcelHelpers.interopDefault(_node);\nvar _dragLayer = require(\"./dragLayer\");\nvar _dragLayerDefault = parcelHelpers.interopDefault(_dragLayer);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar tree_module_default = {\n \"treeWrapper\": \"neos-fU9a9G_treeWrapper \" + reset_module_default[\"reset\"]\n};\nvar node_module_default = {\n \"header__data--isHiddenInIndex\": \"neos-jrPqiW_header__data--isHiddenInIndex\",\n \"contents\": \"neos-jrPqiW_contents \" + reset_module_default[\"reset\"],\n \"dropTarget\": \"neos-jrPqiW_dropTarget\",\n \"dropTarget--before\": \"neos-jrPqiW_dropTarget--before\",\n \"header__chevron--isLoading\": \"neos-jrPqiW_header__chevron--isLoading\",\n \"header__chevron\": \"neos-jrPqiW_header__chevron \" + reset_module_default[\"reset\"],\n \"header__data\": \"neos-jrPqiW_header__data \" + reset_module_default[\"reset\"],\n \"header__data--isFocused\": \"neos-jrPqiW_header__data--isFocused\",\n \"header__labelWrapper\": \"neos-jrPqiW_header__labelWrapper\",\n \"dropTarget__inner--acceptsDrop\": \"neos-jrPqiW_dropTarget__inner--acceptsDrop\",\n \"header__data--acceptsDrop\": \"neos-jrPqiW_header__data--acceptsDrop\",\n \"header__label\": \"neos-jrPqiW_header__label \" + reset_module_default[\"reset\"],\n \"header__chevron--isCollapsed\": \"neos-jrPqiW_header__chevron--isCollapsed\",\n \"header__data--isDirty\": \"neos-jrPqiW_header__data--isDirty\",\n \"dropTarget--after\": \"neos-jrPqiW_dropTarget--after\",\n \"header__chevron--isHiddenInIndex\": \"neos-jrPqiW_header__chevron--isHiddenInIndex\",\n \"header__iconWrapper\": \"neos-jrPqiW_header__iconWrapper\",\n \"dropTarget__inner\": \"neos-jrPqiW_dropTarget__inner\",\n \"header__data--isActive\": \"neos-jrPqiW_header__data--isActive\",\n \"header__data--deniesDrop\": \"neos-jrPqiW_header__data--deniesDrop\",\n \"header\": \"neos-jrPqiW_header \" + reset_module_default[\"reset\"],\n \"header__data--isHidden\": \"neos-jrPqiW_header__data--isHidden\",\n \"header__data--isDragging\": \"neos-jrPqiW_header__data--isDragging\"\n};\nvar dragLayer_module_default = {\n \"count\": \"neos-sxnCBW_count\",\n \"layer\": \"neos-sxnCBW_layer\",\n \"dragWrapper\": \"neos-sxnCBW_dragWrapper\",\n \"node\": \"neos-sxnCBW_node\"\n};\nvar ThemedTree = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).tree, tree_module_default)((0, _treeDefault.default));\nvar ThemedTreeNode = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).treeNode, node_module_default)((0, _nodeDefault.default));\nvar ThemedTreeNodeHeader = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).treeNodeHeader, node_module_default)((0, _node.Header));\nvar ThemedTreeNodeContents = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).treeNodeContents, node_module_default)((0, _node.Contents));\nvar ThemedTreeDragLayer = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).treeDragLayer, dragLayer_module_default)((0, _dragLayerDefault.default));\nvar FinalTreeComponent = (0, _injectPropsDefault.default)({\n NodeComponent: ThemedTreeNode\n})(ThemedTree);\nFinalTreeComponent.Node = ThemedTreeNode;\nFinalTreeComponent.Node.Header = (0, _injectPropsDefault.default)({\n IconComponent: (0, _iconDefault.default)\n})(ThemedTreeNodeHeader);\nFinalTreeComponent.Node.Contents = ThemedTreeNodeContents;\nFinalTreeComponent.DragLayer = ThemedTreeDragLayer;\nvar Tree_default = FinalTreeComponent;\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/VWQ7R53U.css\":\"lWetJ\",\"../_css/SDW6PBME.css\":\"g9VM0\",\"../_css/JDL2VBR6.css\":\"8hE5b\",\"./tree\":\"jr1Ca\",\"./node\":\"6XZxN\",\"./dragLayer\":\"1HdZD\",\"./../_lib/injectProps\":\"4zDuU\",\"./../Icon\":\"d3a5Q\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"lWetJ\":[function() {},{}],\"g9VM0\":[function() {},{}],\"8hE5b\":[function() {},{}],\"jr1Ca\":[function(require,module,exports) {\n// src/Tree/tree.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>tree_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDndScrollzoneFork = require(\"./reactDndScrollzoneFork\");\nvar _reactDndScrollzoneForkDefault = parcelHelpers.interopDefault(_reactDndScrollzoneFork);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar ScrollingComponent = (0, _reactDndScrollzoneForkDefault.default)(\"div\");\nvar verticalStrength = (0, _reactDndScrollzoneFork.createVerticalStrength)(50);\nvar Tree = class extends (0, _react.PureComponent) {\n render() {\n const { NodeComponent , className , theme , ...rest } = this.props;\n const classNames = (0, _classnamesDefault.default)({\n [className]: className && className.length,\n [theme.treeWrapper]: true\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(ScrollingComponent, {\n strengthMultiplier: 20,\n verticalStrength,\n horizontalStrength: (0, _reactDndScrollzoneFork.createHorizontalStrength)(50),\n className: classNames,\n tabIndex: \"0\",\n role: \"tree\"\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(NodeComponent, {\n ...rest\n }, this.props.children));\n }\n};\nTree.propTypes = {\n focused: (0, _propTypesDefault.default).string,\n active: (0, _propTypesDefault.default).string,\n className: (0, _propTypesDefault.default).string,\n onNodeToggle: (0, _propTypesDefault.default).func,\n onNodeClick: (0, _propTypesDefault.default).func,\n onNodeFocus: (0, _propTypesDefault.default).func,\n children: (0, _propTypesDefault.default).any.isRequired,\n theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"treeWrapper\": (0, _propTypesDefault.default).string\n }).isRequired,\n /* eslint-enable quote-props */ //\n // Static component dependencies which are injected from the outside (index.js)\n //\n NodeComponent: (0, _propTypesDefault.default).any.isRequired\n};\nvar tree_default = Tree;\n\n},{\"react\":\"6uln9\",\"./reactDndScrollzoneFork\":\"gKHrv\",\"prop-types\":\"6FKs7\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gKHrv\":[function(require,module,exports) {\n// src/Tree/reactDndScrollzoneFork.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createHorizontalStrength\", ()=>createHorizontalStrength);\nparcelHelpers.export(exports, \"createVerticalStrength\", ()=>createVerticalStrength);\nparcelHelpers.export(exports, \"default\", ()=>createScrollingComponent);\nparcelHelpers.export(exports, \"defaultHorizontalStrength\", ()=>defaultHorizontalStrength);\nparcelHelpers.export(exports, \"defaultVerticalStrength\", ()=>defaultVerticalStrength);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDnd = require(\"react-dnd\");\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _reactDom = require(\"react-dom\");\nvar _lodashThrottle = require(\"lodash.throttle\");\nvar _lodashThrottleDefault = parcelHelpers.interopDefault(_lodashThrottle);\nvar _hoistNonReactStatics = require(\"hoist-non-react-statics\");\nvar _hoistNonReactStaticsDefault = parcelHelpers.interopDefault(_hoistNonReactStatics);\nvar _raf = require(\"raf\");\nvar _rafDefault = parcelHelpers.interopDefault(_raf);\nvar DragDropContextConsumer = (0, _reactDnd.DndContext).Consumer;\nfunction getDisplayName(Component2) {\n return Component2.displayName || Component2.name || (typeof Component2 === \"string\" && Component2.length > 0 ? Component2 : \"Unknown\");\n}\nfunction noop() {}\nfunction intBetween(min, max, val) {\n return Math.floor(Math.min(max, Math.max(min, val)));\n}\nfunction getCoords(evt) {\n if (evt.type === \"touchmove\") return {\n x: evt.changedTouches[0].clientX,\n y: evt.changedTouches[0].clientY\n };\n return {\n x: evt.clientX,\n y: evt.clientY\n };\n}\nvar DEFAULT_BUFFER = 150;\nvar useNewContextApi = (0, _react.createContext) !== void 0 && DragDropContextConsumer !== void 0;\nfunction createDragDropMonitorWrapper(WrappedComponent) {\n return function DragDropMonitorWrapper(props) {\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(DragDropContextConsumer, null, ({ dragDropManager })=>/* @__PURE__ */ (0, _reactDefault.default).createElement(WrappedComponent, {\n ...props,\n dragDropManager\n }));\n };\n}\nfunction createHorizontalStrength(_buffer) {\n return function defaultHorizontalStrength2({ x , w , y , h }, point) {\n const buffer = Math.min(w / 2, _buffer);\n const inRange = point.x >= x && point.x <= x + w;\n const inBox = inRange && point.y >= y && point.y <= y + h;\n if (inBox) {\n if (point.x < x + buffer) return (point.x - x - buffer) / buffer;\n if (point.x > x + w - buffer) return -(x + w - point.x - buffer) / buffer;\n }\n return 0;\n };\n}\nfunction createVerticalStrength(_buffer) {\n return function defaultVerticalStrength2({ y , h , x , w }, point) {\n const buffer = Math.min(h / 2, _buffer);\n const inRange = point.y >= y && point.y <= y + h;\n const inBox = inRange && point.x >= x && point.x <= x + w;\n if (inBox) {\n if (point.y < y + buffer) return (point.y - y - buffer) / buffer;\n if (point.y > y + h - buffer) return -(y + h - point.y - buffer) / buffer;\n }\n return 0;\n };\n}\nvar defaultHorizontalStrength = createHorizontalStrength(DEFAULT_BUFFER);\nvar defaultVerticalStrength = createVerticalStrength(DEFAULT_BUFFER);\nfunction createScrollingComponent(WrappedComponent) {\n class ScrollingComponent extends (0, _react.Component) {\n constructor(props, ctx){\n super(props, ctx);\n this.handleEvent = (evt)=>{\n if (this.dragging && !this.attached) {\n this.attach();\n this.updateScrolling(evt);\n }\n };\n // Update scaleX and scaleY every 100ms or so\n // and start scrolling if necessary\n this.updateScrolling = (0, _lodashThrottleDefault.default)((evt)=>{\n const { left: x , top: y , width: w , height: h } = this.container.getBoundingClientRect();\n const box = {\n x,\n y,\n w,\n h\n };\n const coords = getCoords(evt);\n this.scaleX = this.props.horizontalStrength(box, coords);\n this.scaleY = this.props.verticalStrength(box, coords);\n if (!this.frame && (this.scaleX || this.scaleY)) this.startScrolling();\n }, 100, {\n trailing: false\n });\n this.scaleX = 0;\n this.scaleY = 0;\n this.frame = null;\n this.attached = false;\n this.dragging = false;\n }\n componentDidMount() {\n const { getScrollContainer } = this.props;\n const wrappedNode = (0, _reactDom.findDOMNode)(this.wrappedInstance);\n this.container = getScrollContainer ? getScrollContainer(wrappedNode) : wrappedNode;\n this.container.addEventListener(\"dragover\", this.handleEvent);\n window.document.body.addEventListener(\"touchmove\", this.handleEvent);\n this.clearMonitorSubscription = this.getDragDropManager().getMonitor().subscribeToStateChange(()=>this.handleMonitorChange());\n }\n componentWillUnmount() {\n this.container.removeEventListener(\"dragover\", this.handleEvent);\n window.document.body.removeEventListener(\"touchmove\", this.handleEvent);\n this.clearMonitorSubscription();\n this.stopScrolling();\n }\n getDragDropManager() {\n return useNewContextApi ? this.props.dragDropManager : this.context.dragDropManager;\n }\n handleMonitorChange() {\n const isDragging = this.getDragDropManager().getMonitor().isDragging();\n if (!this.dragging && isDragging) this.dragging = true;\n else if (this.dragging && !isDragging) {\n this.dragging = false;\n this.stopScrolling();\n }\n }\n attach() {\n this.attached = true;\n window.document.body.addEventListener(\"dragover\", this.updateScrolling);\n window.document.body.addEventListener(\"touchmove\", this.updateScrolling);\n }\n detach() {\n this.attached = false;\n window.document.body.removeEventListener(\"dragover\", this.updateScrolling);\n window.document.body.removeEventListener(\"touchmove\", this.updateScrolling);\n }\n startScrolling() {\n let i = 0;\n const tick = ()=>{\n const { scaleX , scaleY , container } = this;\n const { strengthMultiplier , onScrollChange } = this.props;\n if (strengthMultiplier === 0 || scaleX + scaleY === 0) {\n this.stopScrolling();\n return;\n }\n if (i++ % 2) {\n const { scrollLeft , scrollTop , scrollWidth , scrollHeight , clientWidth , clientHeight } = container;\n const newLeft = scaleX ? container.scrollLeft = intBetween(0, scrollWidth - clientWidth, scrollLeft + scaleX * strengthMultiplier) : scrollLeft;\n const newTop = scaleY ? container.scrollTop = intBetween(0, scrollHeight - clientHeight, scrollTop + scaleY * strengthMultiplier) : scrollTop;\n onScrollChange(newLeft, newTop);\n }\n this.frame = (0, _rafDefault.default)(tick);\n };\n tick();\n }\n stopScrolling() {\n this.detach();\n this.scaleX = 0;\n this.scaleY = 0;\n if (this.frame) {\n (0, _rafDefault.default).cancel(this.frame);\n this.frame = null;\n }\n }\n render() {\n const { // not passing down these props\n /* eslint-disable @typescript-eslint/no-unused-vars */ strengthMultiplier , verticalStrength , horizontalStrength , onScrollChange , dragDropManager , /* eslint-enable @typescript-eslint/no-unused-vars */ ...props } = this.props;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(WrappedComponent, {\n ref: (ref)=>{\n this.wrappedInstance = ref;\n },\n ...props\n });\n }\n }\n ScrollingComponent.displayName = `Scrolling(${getDisplayName(WrappedComponent)})`;\n ScrollingComponent.propTypes = {\n onScrollChange: (0, _propTypesDefault.default).func,\n verticalStrength: (0, _propTypesDefault.default).func,\n horizontalStrength: (0, _propTypesDefault.default).func,\n strengthMultiplier: (0, _propTypesDefault.default).number,\n getScrollContainer: (0, _propTypesDefault.default).func\n };\n ScrollingComponent.defaultProps = {\n onScrollChange: noop,\n verticalStrength: defaultVerticalStrength,\n horizontalStrength: defaultHorizontalStrength,\n strengthMultiplier: 30\n };\n ScrollingComponent.contextTypes = useNewContextApi ? void 0 : {\n dragDropManager: (0, _propTypesDefault.default).object\n };\n if (useNewContextApi) {\n const DragDropMonitorWrapper = createDragDropMonitorWrapper(ScrollingComponent);\n return (0, _hoistNonReactStaticsDefault.default)(DragDropMonitorWrapper, WrappedComponent);\n }\n return (0, _hoistNonReactStaticsDefault.default)(ScrollingComponent, WrappedComponent);\n}\n\n},{\"react\":\"6uln9\",\"react-dnd\":\"5Rhgo\",\"prop-types\":\"6FKs7\",\"react-dom\":\"b8T3j\",\"lodash.throttle\":\"11Vy1\",\"hoist-non-react-statics\":\"3bvdc\",\"raf\":\"9ySuv\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"11Vy1\":[function(require,module,exports) {\n/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */ /** Used as the `TypeError` message for \"Functions\" methods. */ var global = arguments[3];\nvar FUNC_ERROR_TEXT = \"Expected a function\";\n/** Used as references for various `Number` constants. */ var NAN = 0 / 0;\n/** `Object#toString` result references. */ var symbolTag = \"[object Symbol]\";\n/** Used to match leading and trailing whitespace. */ var reTrim = /^\\s+|\\s+$/g;\n/** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n/** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i;\n/** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i;\n/** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt;\n/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == \"object\" && global && global.Object === Object && global;\n/** Detect free variable `self`. */ var freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\n/** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function(\"return this\")();\n/** Used for built-in method references. */ var objectProto = Object.prototype;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */ var objectToString = objectProto.toString;\n/* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max, nativeMin = Math.min;\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */ var now = function() {\n return root.Date.now();\n};\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */ function debounce(func, wait, options) {\n var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;\n if (typeof func != \"function\") throw new TypeError(FUNC_ERROR_TEXT);\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = \"maxWait\" in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = \"trailing\" in options ? !!options.trailing : trailing;\n }\n function invokeFunc(time) {\n var args = lastArgs, thisArg = lastThis;\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result = wait - timeSinceLastCall;\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;\n }\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) return trailingEdge(time);\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n function trailingEdge(time) {\n timerId = undefined;\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) return invokeFunc(time);\n lastArgs = lastThis = undefined;\n return result;\n }\n function cancel() {\n if (timerId !== undefined) clearTimeout(timerId);\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n function debounced() {\n var time = now(), isInvoking = shouldInvoke(time);\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n if (isInvoking) {\n if (timerId === undefined) return leadingEdge(lastCallTime);\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) timerId = setTimeout(timerExpired, wait);\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */ function throttle(func, wait, options) {\n var leading = true, trailing = true;\n if (typeof func != \"function\") throw new TypeError(FUNC_ERROR_TEXT);\n if (isObject(options)) {\n leading = \"leading\" in options ? !!options.leading : leading;\n trailing = \"trailing\" in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n \"leading\": leading,\n \"maxWait\": wait,\n \"trailing\": trailing\n });\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */ function isObject(value) {\n var type = typeof value;\n return !!value && (type == \"object\" || type == \"function\");\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */ function isObjectLike(value) {\n return !!value && typeof value == \"object\";\n}\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */ function isSymbol(value) {\n return typeof value == \"symbol\" || isObjectLike(value) && objectToString.call(value) == symbolTag;\n}\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */ function toNumber(value) {\n if (typeof value == \"number\") return value;\n if (isSymbol(value)) return NAN;\n if (isObject(value)) {\n var other = typeof value.valueOf == \"function\" ? value.valueOf() : value;\n value = isObject(other) ? other + \"\" : other;\n }\n if (typeof value != \"string\") return value === 0 ? value : +value;\n value = value.replace(reTrim, \"\");\n var isBinary = reIsBinary.test(value);\n return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;\n}\nmodule.exports = throttle;\n\n},{}],\"9ySuv\":[function(require,module,exports) {\nvar global = arguments[3];\nvar now = require(\"cf76948a525d1513\"), root = typeof window === \"undefined\" ? global : window, vendors = [\n \"moz\",\n \"webkit\"\n], suffix = \"AnimationFrame\", raf = root[\"request\" + suffix], caf = root[\"cancel\" + suffix] || root[\"cancelRequest\" + suffix];\nfor(var i = 0; !raf && i < vendors.length; i++){\n raf = root[vendors[i] + \"Request\" + suffix];\n caf = root[vendors[i] + \"Cancel\" + suffix] || root[vendors[i] + \"CancelRequest\" + suffix];\n}\n// Some versions of FF have rAF but not cAF\nif (!raf || !caf) {\n var last = 0, id = 0, queue = [], frameDuration = 1000 / 60;\n raf = function(callback) {\n if (queue.length === 0) {\n var _now = now(), next = Math.max(0, frameDuration - (_now - last));\n last = next + _now;\n setTimeout(function() {\n var cp = queue.slice(0);\n // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n queue.length = 0;\n for(var i = 0; i < cp.length; i++){\n if (!cp[i].cancelled) try {\n cp[i].callback(last);\n } catch (e) {\n setTimeout(function() {\n throw e;\n }, 0);\n }\n }\n }, Math.round(next));\n }\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n });\n return id;\n };\n caf = function(handle) {\n for(var i = 0; i < queue.length; i++)if (queue[i].handle === handle) queue[i].cancelled = true;\n };\n}\nmodule.exports = function(fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn);\n};\nmodule.exports.cancel = function() {\n caf.apply(root, arguments);\n};\nmodule.exports.polyfill = function(object) {\n if (!object) object = root;\n object.requestAnimationFrame = raf;\n object.cancelAnimationFrame = caf;\n};\n\n},{\"cf76948a525d1513\":\"2MJ1F\"}],\"2MJ1F\":[function(require,module,exports) {\nvar process = require(\"f348cfb52b253442\");\n// Generated by CoffeeScript 1.12.2\n(function() {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n if (typeof performance !== \"undefined\" && performance !== null && performance.now) module.exports = function() {\n return performance.now();\n };\n else if (typeof process !== \"undefined\" && process !== null && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n}).call(this);\n\n},{\"f348cfb52b253442\":\"5QIF0\"}],\"6XZxN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Contents\", ()=>Contents);\nparcelHelpers.export(exports, \"Header\", ()=>Header);\nparcelHelpers.export(exports, \"Node\", ()=>Node);\nparcelHelpers.export(exports, \"default\", ()=>node_default);\n// src/Tree/node.js\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _reactDnd = require(\"react-dnd\");\nvar _reactDndHtml5Backend = require(\"react-dnd-html5-backend\");\nvar _lodashOmit = require(\"lodash.omit\");\nvar _lodashOmitDefault = parcelHelpers.interopDefault(_lodashOmit);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind)=>{\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for(var i = decorators.length - 1, decorator; i >= 0; i--)if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nvar spec = {\n canDrop ({ dragAndDropContext , mode }) {\n return dragAndDropContext.accepts(mode || \"into\");\n },\n drop ({ dragAndDropContext , mode }) {\n dragAndDropContext.onDrop(mode || \"into\");\n }\n};\nvar collect = (connect, monitor)=>({\n connectDropTarget: connect.dropTarget(),\n canDrop: monitor.canDrop(),\n isOver: monitor.isOver()\n });\nvar Node = (props)=>{\n const { children , ...restProps } = props;\n const rest = (0, _lodashOmitDefault.default)(restProps, [\n \"theme\"\n ]);\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n ...rest,\n role: \"treeitem\"\n }, children);\n};\nNode.propTypes = {\n children: (0, _propTypesDefault.default).node\n};\nvar NodeDropTarget = class extends (0, _react.PureComponent) {\n render() {\n const { connectDropTarget , isOver , canDrop , mode , theme , level } = this.props;\n const classNames = (0, _classnamesDefault.default)({\n [theme.dropTarget]: true,\n [theme[\"dropTarget--before\"]]: mode === \"before\",\n [theme[\"dropTarget--after\"]]: mode === \"after\"\n });\n const classNamesInner = (0, _classnamesDefault.default)({\n [theme.dropTarget__inner]: true,\n [theme[\"dropTarget__inner--acceptsDrop\"]]: isOver && canDrop,\n [theme[\"dropTarget__inner--deniesDrop\"]]: isOver && !canDrop\n });\n return connectDropTarget(/* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: classNames\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: classNamesInner,\n style: {\n marginLeft: level * 18 - 4\n }\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n height: \"12\",\n viewBox: \"0 0 868 334.517\"\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"path\", {\n d: \"M840.344 129.526l-704.456.166 73.5-68.086a26.751 26.751 0 000-37.857l-16.1-15.962a27.117 27.117 0 00-38.024-.02L7.844 148.845a26.694 26.694 0 000 37.8l146.412 140.1a27.142 27.142 0 0038.024 0l16.1-15.962a26.278 26.278 0 007.848-18.832 25.493 25.493 0 00-7.848-18.479l-73.664-67.67h705.996c14.828 0 27.288-12.661 27.288-27.344v-22.575c0-14.682-12.828-26.357-27.656-26.357z\"\n })))));\n }\n};\nNodeDropTarget.propTypes = {\n connectDropTarget: (0, _propTypesDefault.default).func.isRequired,\n nodeDndType: (0, _propTypesDefault.default).string.isRequired,\n canDrop: (0, _propTypesDefault.default).bool.isRequired,\n isOver: (0, _propTypesDefault.default).bool,\n theme: (0, _propTypesDefault.default).object,\n mode: (0, _propTypesDefault.default).string.isRequired\n};\nNodeDropTarget = __decorateClass([\n (0, _reactDnd.DropTarget)(({ nodeDndType })=>nodeDndType, spec, collect)\n], NodeDropTarget);\nvar Header = class extends (0, _react.PureComponent) {\n componentDidMount() {\n this.props.connectDragPreview((0, _reactDndHtml5Backend.getEmptyImage)(), {\n captureDraggingState: true\n });\n }\n render() {\n const { id , labelIdentifier , nodeDndType , IconComponent , hasChildren , isLastChild , isActive , isFocused , isHidden , isHiddenInIndex , isDirty , isLoading , label , icon , customIconComponent , iconLabel , directLink , level , onClick , onLabelClick , theme , connectDragSource , connectDropTarget , dragAndDropContext , isOver , isDragging , canDrop , ...restProps } = this.props;\n const rest = (0, _lodashOmitDefault.default)(restProps, [\n \"onToggle\",\n \"isCollapsed\",\n \"hasError\",\n \"isDragging\",\n \"dragForbidden\",\n \"connectDragPreview\"\n ]);\n const dataClassNames = (0, _classnamesDefault.default)({\n [theme.header__data]: true,\n [theme[\"header__data--isActive\"]]: isActive,\n [theme[\"header__data--isFocused\"]]: isFocused,\n [theme[\"header__data--isLastChild\"]]: isLastChild,\n [theme[\"header__data--isHiddenInIndex\"]]: isHiddenInIndex,\n [theme[\"header__data--isHidden\"]]: isHidden,\n [theme[\"header__data--isDirty\"]]: isDirty,\n [theme[\"header__data--isDragging\"]]: isDragging,\n [theme[\"header__data--acceptsDrop\"]]: isOver && canDrop,\n [theme[\"header__data--deniesDrop\"]]: isOver && !canDrop\n });\n let linkHandlingProps = {\n onClick: onLabelClick\n };\n if (directLink) linkHandlingProps = {\n href: directLink,\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n onClick: (event)=>event.preventDefault()\n };\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", null, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.header\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(NodeDropTarget, {\n id,\n theme,\n dragAndDropContext,\n nodeDndType,\n mode: \"before\",\n level\n }), connectDropTarget(connectDragSource(/* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n role: \"button\",\n className: dataClassNames,\n onClick,\n style: {\n paddingLeft: level * 18 + \"px\"\n }\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.header__labelWrapper\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.header__iconWrapper\n }, customIconComponent ? customIconComponent : /* @__PURE__ */ (0, _reactDefault.default).createElement(IconComponent, {\n icon: icon || \"question\",\n label: iconLabel\n })), /* @__PURE__ */ (0, _reactDefault.default).createElement(\"a\", {\n ...rest,\n id: labelIdentifier,\n className: theme.header__label,\n \"data-neos-integrational-test\": \"tree__item__nodeHeader__itemLabel\",\n role: \"treeitem\",\n ...linkHandlingProps\n }, label))))), isLastChild && /* @__PURE__ */ (0, _reactDefault.default).createElement(NodeDropTarget, {\n id,\n theme,\n dragAndDropContext,\n nodeDndType,\n mode: \"after\",\n level\n }), hasChildren || isLoading ? this.renderCollapseControl() : null));\n }\n renderCollapseControl() {\n const { IconComponent , isLoading , isCollapsed , hasError , isHiddenInIndex , isHidden , onToggle , theme , level } = this.props;\n const classnames = (0, _classnamesDefault.default)({\n [theme.header__chevron]: true,\n [theme[\"header__chevron--isCollapsed\"]]: isCollapsed,\n [theme[\"header__chevron--isLoading\"]]: isLoading,\n [theme[\"header__chevron--isHiddenInIndex\"]]: isHiddenInIndex,\n [theme[\"header__chevron--isHidden\"]]: isHidden\n });\n let icon;\n switch(true){\n case hasError:\n icon = /* @__PURE__ */ (0, _reactDefault.default).createElement(IconComponent, {\n icon: \"ban\"\n });\n break;\n case isLoading:\n icon = /* @__PURE__ */ (0, _reactDefault.default).createElement(IconComponent, {\n icon: \"spinner\",\n spin: true\n });\n break;\n default:\n icon = /* @__PURE__ */ (0, _reactDefault.default).createElement(IconComponent, {\n icon: \"sort-down\"\n });\n break;\n }\n const marginLeft = (level - 1) * 18 + 5;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"a\", {\n style: {\n marginLeft: marginLeft + \"px\"\n },\n role: \"button\",\n onClick: onToggle,\n className: classnames,\n \"data-neos-integrational-test\": \"tree__item__nodeHeader__subTreetoggle\"\n }, icon);\n }\n};\nHeader.propTypes = {\n id: (0, _propTypesDefault.default).string,\n labelIdentifier: (0, _propTypesDefault.default).string,\n nodeDndType: (0, _propTypesDefault.default).string.isRequired,\n hasChildren: (0, _propTypesDefault.default).bool.isRequired,\n isLastChild: (0, _propTypesDefault.default).bool,\n isCollapsed: (0, _propTypesDefault.default).bool.isRequired,\n isActive: (0, _propTypesDefault.default).bool.isRequired,\n isFocused: (0, _propTypesDefault.default).bool.isRequired,\n isLoading: (0, _propTypesDefault.default).bool.isRequired,\n isHidden: (0, _propTypesDefault.default).bool,\n isDirty: (0, _propTypesDefault.default).bool,\n isHiddenInIndex: (0, _propTypesDefault.default).bool,\n hasError: (0, _propTypesDefault.default).bool.isRequired,\n label: (0, _propTypesDefault.default).string.isRequired,\n icon: (0, _propTypesDefault.default).string,\n customIconComponent: (0, _propTypesDefault.default).node,\n iconLabel: (0, _propTypesDefault.default).string,\n directLink: (0, _propTypesDefault.default).string,\n level: (0, _propTypesDefault.default).number.isRequired,\n dragAndDropContext: (0, _propTypesDefault.default).shape({\n accepts: (0, _propTypesDefault.default).func.isRequired,\n onDrag: (0, _propTypesDefault.default).func.isRequired,\n onEndDrag: (0, _propTypesDefault.default).func.isRequired,\n onDrop: (0, _propTypesDefault.default).func.isRequired\n }),\n connectDragSource: (0, _propTypesDefault.default).func.isRequired,\n connectDropTarget: (0, _propTypesDefault.default).func.isRequired,\n canDrop: (0, _propTypesDefault.default).bool.isRequired,\n isDragging: (0, _propTypesDefault.default).bool,\n isOver: (0, _propTypesDefault.default).bool,\n dragForbidden: (0, _propTypesDefault.default).bool,\n onToggle: (0, _propTypesDefault.default).func,\n onClick: (0, _propTypesDefault.default).func,\n onLabelClick: (0, _propTypesDefault.default).func,\n theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"header__data\": (0, _propTypesDefault.default).string,\n \"header__data--isActive\": (0, _propTypesDefault.default).string,\n \"header__data--isFocused\": (0, _propTypesDefault.default).string,\n \"header\": (0, _propTypesDefault.default).string,\n \"header__labelWrapper\": (0, _propTypesDefault.default).string,\n \"header__label\": (0, _propTypesDefault.default).string,\n \"header__chevron\": (0, _propTypesDefault.default).string,\n \"header__chevron--isCollapsed\": (0, _propTypesDefault.default).string,\n \"header__chevron--isLoading\": (0, _propTypesDefault.default).string,\n \"header__iconWrapper\": (0, _propTypesDefault.default).string,\n \"dropZone\": (0, _propTypesDefault.default).string,\n \"dropZone--accepts\": (0, _propTypesDefault.default).string,\n \"dropZone--denies\": (0, _propTypesDefault.default).string\n }).isRequired,\n /* eslint-enable quote-props */ //\n // Static component dependencies which are injected from the outside (index.js)\n //\n IconComponent: (0, _propTypesDefault.default).any.isRequired\n};\nHeader = __decorateClass([\n (0, _reactDnd.DragSource)(({ nodeDndType })=>nodeDndType, {\n beginDrag (props) {\n if (props.dragAndDropContext.onDrag) props.dragAndDropContext.onDrag();\n return {\n contextPath: props.id\n };\n },\n endDrag (props) {\n if (props.dragAndDropContext.onEndDrag) props.dragAndDropContext.onEndDrag();\n },\n canDrag ({ dragForbidden }) {\n return !dragForbidden;\n }\n }, (connect)=>({\n connectDragSource: connect.dragSource(),\n connectDragPreview: connect.dragPreview()\n })),\n (0, _reactDnd.DropTarget)(({ nodeDndType })=>nodeDndType, spec, collect)\n], Header);\nvar Contents = class extends (0, _react.PureComponent) {\n render() {\n const { theme , children } = this.props;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.contents\n }, children);\n }\n};\nContents.propTypes = {\n children: (0, _propTypesDefault.default).node,\n theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"contents\": (0, _propTypesDefault.default).string\n }).isRequired\n};\nvar node_default = Node;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"react-dnd\":\"5Rhgo\",\"react-dnd-html5-backend\":\"9G33s\",\"lodash.omit\":\"airq1\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1HdZD\":[function(require,module,exports) {\n// src/Tree/dragLayer.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>dragLayer_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _reactDnd = require(\"react-dnd\");\nvar _NodeDragPreview = ({ nodeDndType , ChildRenderer , currentlyDraggedNodes , theme ={} })=>{\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.dragWrapper\n }, currentlyDraggedNodes.length > 1 && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.count\n }, currentlyDraggedNodes.length), currentlyDraggedNodes.map((node, index)=>/* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n key: node.contextPath,\n className: theme.node,\n style: {\n top: index * 15,\n left: index * 5\n }\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(ChildRenderer, {\n ChildRenderer: ()=>null,\n nodeDndType,\n node,\n level: 1,\n currentlyDraggedNodes: []\n }))));\n};\n_NodeDragPreview.propTypes = {\n nodeDndType: (0, _propTypesDefault.default).string.isRequired,\n ChildRenderer: (0, _propTypesDefault.default).elementType.isRequired,\n currentlyDraggedNodes: (0, _propTypesDefault.default).array.isRequired,\n theme: (0, _propTypesDefault.default).object\n};\nvar NodeDragPreview = (0, _react.memo)(_NodeDragPreview);\nvar getItemStyles = (currentOffset)=>{\n if (!currentOffset) return {\n display: \"none\"\n };\n const { x , y } = currentOffset;\n const transform = `translate(${x}px, ${y}px)`;\n return {\n transform,\n WebkitTransform: transform\n };\n};\nvar DragLayer = (props)=>{\n const { itemType , isDragging , currentOffset } = (0, _reactDnd.useDragLayer)((monitor)=>({\n item: monitor.getItem(),\n itemType: monitor.getItemType(),\n currentOffset: monitor.getClientOffset(),\n isDragging: monitor.isDragging()\n }));\n function renderItem() {\n switch(itemType){\n case props.nodeDndType:\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(NodeDragPreview, {\n ...props\n });\n default:\n return null;\n }\n }\n if (!isDragging) return null;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: props.theme.layer\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n style: getItemStyles(currentOffset)\n }, renderItem()));\n};\nvar dragLayer_default = DragLayer;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"react-dnd\":\"5Rhgo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cr2Yv\":[function(require,module,exports) {\n// src/MultiSelectBox/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>MultiSelectBox_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/reset.module.css\nvar _m2Gx4SzlCss = require(\"../_css/M2GX4SZL.css\");\n// src/MultiSelectBox/style.module.css\nvar _7X2IeqtvCss = require(\"../_css/7X2IEQTV.css\");\n// src/MultiSelectBox/index.js\nvar _multiSelectBox = require(\"./multiSelectBox\");\nvar _multiSelectBoxDefault = parcelHelpers.interopDefault(_multiSelectBox);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _selectBox = require(\"./../SelectBox\");\nvar _selectBoxDefault = parcelHelpers.interopDefault(_selectBox);\nvar _multiSelectBoxListPreviewSortable = require(\"./../MultiSelectBox_ListPreviewSortable\");\nvar _multiSelectBoxListPreviewSortableDefault = parcelHelpers.interopDefault(_multiSelectBoxListPreviewSortable);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar _iconButton = require(\"./../IconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\nvar reset_module_default = {\n \"reset\": \"neos-iiR9VW_reset\"\n};\nvar style_module_default = {\n \"selectedOptions\": \"neos-P4wKfG_selectedOptions \" + reset_module_default[\"reset\"]\n};\nvar ThemedMultiSelectBox = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).multiSelectBox, style_module_default)((0, _multiSelectBoxDefault.default));\nvar MultiSelectBox_default = (0, _injectPropsDefault.default)({\n IconComponent: (0, _iconDefault.default),\n IconButtonComponent: (0, _iconButtonDefault.default),\n SelectBox: (0, _selectBoxDefault.default),\n MultiSelectBox_ListPreviewSortable: (0, _multiSelectBoxListPreviewSortableDefault.default)\n})(ThemedMultiSelectBox);\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/M2GX4SZL.css\":\"7BJx6\",\"../_css/7X2IEQTV.css\":\"39CNe\",\"./multiSelectBox\":\"kh2pM\",\"./../_lib/injectProps\":\"4zDuU\",\"./../SelectBox\":\"5M1am\",\"./../MultiSelectBox_ListPreviewSortable\":\"5gpmf\",\"./../Icon\":\"d3a5Q\",\"./../IconButton\":\"f6lYW\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BJx6\":[function() {},{}],\"39CNe\":[function() {},{}],\"kh2pM\":[function(require,module,exports) {\n// src/MultiSelectBox/multiSelectBox.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>multiSelectBox_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _plowJs = require(\"plow-js\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _lodashOmit = require(\"lodash.omit\");\nvar _lodashOmitDefault = parcelHelpers.interopDefault(_lodashOmit);\nvar _selectBoxOptionSingleLine = require(\"../SelectBox_Option_SingleLine\");\nvar _selectBoxOptionSingleLineDefault = parcelHelpers.interopDefault(_selectBoxOptionSingleLine);\nvar MultiSelectBox = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.getOptionValueAccessor = ()=>{\n const { optionValueField } = this.props;\n return (0, _plowJs.$get)([\n optionValueField\n ]);\n };\n this.handleNewValueSelected = (value)=>{\n const { onValuesChange } = this.props;\n const values = this.props.values || [];\n let updatedValues;\n if (Array.isArray(values)) updatedValues = [\n ...values,\n value\n ];\n else {\n console.error(\"MultiSelectBox received an invalid value, invalid value will be discarded\", values);\n updatedValues = [\n value\n ];\n }\n onValuesChange(updatedValues);\n };\n }\n render() {\n const { searchOptions , values , optionValueField , theme , SelectBox , MultiSelectBox_ListPreviewSortable , disabled , className } = this.props;\n const filteredSearchOptions = (searchOptions || []).filter((option)=>!(values && values.indexOf(option[optionValueField]) !== -1));\n const selectedOptionsClassNames = (0, _classnamesDefault.default)({\n [theme.selectedOptions]: true\n });\n const optionValueAccessor = this.getOptionValueAccessor();\n const classNames = (0, _classnamesDefault.default)({\n [className]: true,\n [theme.wrapper]: true\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: classNames\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"ul\", {\n className: selectedOptionsClassNames\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(MultiSelectBox_ListPreviewSortable, {\n ...(0, _lodashOmitDefault.default)(this.props, [\n \"theme\"\n ]),\n optionValueAccessor,\n disabled\n })), /* @__PURE__ */ (0, _reactDefault.default).createElement(SelectBox, {\n ...(0, _lodashOmitDefault.default)(this.props, [\n \"theme\",\n \"className\"\n ]),\n options: filteredSearchOptions,\n value: \"\",\n onValueChange: this.handleNewValueSelected,\n disabled\n }));\n }\n};\nMultiSelectBox.propTypes = {\n // ------------------------------\n // Basic Props for core functionality\n // ------------------------------\n /**\n * This prop represents a set of options.\n * Each option must have a value and can have a label and an icon.\n */ options: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({\n icon: (0, _propTypesDefault.default).string,\n // \"value\" is not part of PropTypes validation, as the \"value field\" is specified via the \"optionValueField\" property\n label: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).string,\n (0, _propTypesDefault.default).object\n ]).isRequired\n })),\n /**\n * Additional className wich will be applied\n */ className: (0, _propTypesDefault.default).string,\n /**\n * Field name specifying which field in a single \"option\" contains the \"value\"\n */ optionValueField: (0, _propTypesDefault.default).string,\n /**\n * This prop represents the current selected value.\n */ values: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).string),\n /**\n * This prop gets called when an option was selected. It returns the new values as array.\n */ onValuesChange: (0, _propTypesDefault.default).func.isRequired,\n /**\n * This prop gets called when one of the selected items gets clicked.\n */ onItemClick: (0, _propTypesDefault.default).func,\n // ------------------------------\n // Visual customization of the MultiSelect Box\n // ------------------------------\n /**\n * This prop is the placeholder text which is displayed in the selectbox when no option was selected.\n */ placeholder: (0, _propTypesDefault.default).string,\n /**\n * This prop is an icon for the placeholder.\n */ placeholderIcon: (0, _propTypesDefault.default).string,\n /**\n * Text for the group label of options without a group\n */ withoutGroupLabel: (0, _propTypesDefault.default).string,\n /**\n * If false, prevents removing the last element.\n */ allowEmpty: (0, _propTypesDefault.default).bool,\n /**\n * Limit height and show scrollbars if needed, defaults to true\n */ scrollable: (0, _propTypesDefault.default).bool,\n /**\n * Component used for rendering the individual option elements; Usually this component uses \"SelectBoxOption\" internally for common styling.\n */ ListPreviewElement: (0, _propTypesDefault.default).any,\n // ------------------------------\n // Asynchronous loading of data\n // ------------------------------\n /**\n * This prop is the loading text which is displayed in the selectbox when displayLoadingIndicator ist set to true.\n */ loadingLabel: (0, _propTypesDefault.default).string,\n /**\n * Helper for asynchronous loading; should be set to \"true\" as long as \"options\" is not yet populated.\n */ displayLoadingIndicator: (0, _propTypesDefault.default).bool,\n // ------------------------------\n // Search-As-You-Type related functionality\n // ------------------------------\n displaySearchBox: (0, _propTypesDefault.default).bool,\n searchTerm: (0, _propTypesDefault.default).string,\n onSearchTermChange: (0, _propTypesDefault.default).func,\n searchOptions: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({\n icon: (0, _propTypesDefault.default).string,\n // \"value\" is not part of PropTypes validation, as the \"value field\" is specified via the \"optionValueField\" property\n label: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).string,\n (0, _propTypesDefault.default).object\n ]).isRequired\n })),\n /**\n * If set to true, the search box is directly focussed once the SelectBox is rendered;\n * such that the user can start typing right away.\n */ setFocus: (0, _propTypesDefault.default).bool,\n // ------------------------------\n // \"Create new if not exists\" functionality\n // ------------------------------\n /**\n * This prop gets called when requested to create a new element\n */ onCreateNew: (0, _propTypesDefault.default).func,\n /**\n * \"Create new\" label\n */ createNewLabel: (0, _propTypesDefault.default).string,\n // ------------------------------\n // Drag&Drop Reordering of Selected Values\n // ------------------------------\n /**\n * Specifying the dnd type. Defaults to 'multiselect-box-value'\n */ dndType: (0, _propTypesDefault.default).string.isRequired,\n // ------------------------------\n // Theme & Dependencies\n // ------------------------------\n theme: (0, _propTypesDefault.default).shape({\n /* eslint-disable quote-props */ \"selectedOptions\": (0, _propTypesDefault.default).string,\n \"selectedOptions__item\": (0, _propTypesDefault.default).string\n }).isRequired,\n /* eslint-enable quote-props */ SelectBox: (0, _propTypesDefault.default).any.isRequired,\n IconComponent: (0, _propTypesDefault.default).any.isRequired,\n IconButtonComponent: (0, _propTypesDefault.default).any.isRequired,\n MultiSelectBox_ListPreviewSortable: (0, _propTypesDefault.default).any.isRequired\n};\nMultiSelectBox.defaultProps = {\n optionValueField: \"value\",\n dndType: \"multiselect-box-value\",\n allowEmpty: true,\n ListPreviewElement: (0, _selectBoxOptionSingleLineDefault.default)\n};\nvar multiSelectBox_default = MultiSelectBox;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"plow-js\":\"18bsk\",\"classnames\":\"hVGzI\",\"lodash.omit\":\"airq1\",\"../SelectBox_Option_SingleLine\":\"65TF8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5gpmf\":[function(require,module,exports) {\n// src/MultiSelectBox_ListPreviewSortable/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>MultiSelectBox_ListPreviewSortable_default);\nvar _multiSelectBoxListPreviewSortable = require(\"./multiSelectBox_ListPreviewSortable\");\nvar _multiSelectBoxListPreviewSortableDefault = parcelHelpers.interopDefault(_multiSelectBoxListPreviewSortable);\nvar MultiSelectBox_ListPreviewSortable_default = (0, _multiSelectBoxListPreviewSortableDefault.default);\n\n},{\"./multiSelectBox_ListPreviewSortable\":\"5a5JL\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5a5JL\":[function(require,module,exports) {\n// src/MultiSelectBox_ListPreviewSortable/multiSelectBox_ListPreviewSortable.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>MultiSelectBox_ListPreviewSortable);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _multiSelectBoxListPreviewSortableDraggableListPreviewElement = require(\"../MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement\");\nvar _multiSelectBoxListPreviewSortableDraggableListPreviewElementDefault = parcelHelpers.interopDefault(_multiSelectBoxListPreviewSortableDraggableListPreviewElement);\nvar ensureIsArray = (v)=>{\n if (Array.isArray(v)) return v;\n console.warn(' Expected \"values\" to be an Array but found the following value (Falling back to an empty list): ', v);\n return [];\n};\nvar makeDraggableListPreviewElement = (ListPreviewElement)=>(0, _injectPropsDefault.default)({\n InnerListPreviewElement: ListPreviewElement\n })((0, _multiSelectBoxListPreviewSortableDraggableListPreviewElementDefault.default));\nvar MultiSelectBox_ListPreviewSortable = class extends (0, _react.PureComponent) {\n constructor(props){\n super(props);\n this.renderOption = (option, index)=>{\n const { optionValueAccessor } = this.props;\n const { DraggableListPreviewElement } = this;\n return /* @__PURE__ */ (0, _reactDefault.default).createElement(DraggableListPreviewElement, {\n ...this.props,\n key: optionValueAccessor(option),\n index,\n option,\n onMoveSelectedValue: this.handleMoveSelectedValue,\n onSelectedValueWasMoved: this.handleSelectedValueWasMoved,\n onRemoveItem: this.handleRemoveItem\n });\n };\n this.handleMoveSelectedValue = (dragIndex, hoverIndex)=>{\n const { draggableValues } = this.state;\n const movedOption = draggableValues[dragIndex];\n const reorderedValues = draggableValues.slice();\n reorderedValues.splice(dragIndex, 1);\n reorderedValues.splice(hoverIndex, 0, movedOption);\n this.setState({\n draggableValues: reorderedValues\n });\n };\n this.handleSelectedValueWasMoved = ()=>{\n this.props.onValuesChange(this.state.draggableValues);\n };\n this.handleRemoveItem = (removeIndex)=>{\n const newValues = this.state.draggableValues.slice();\n newValues.splice(removeIndex, 1);\n this.setState({\n draggableValues: newValues\n });\n this.props.onValuesChange(newValues);\n };\n this.state = {\n draggableValues: ensureIsArray(this.props.values)\n };\n this.DraggableListPreviewElement = makeDraggableListPreviewElement(props.ListPreviewElement);\n }\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (this.props.values !== nextProps.values) this.setState({\n draggableValues: ensureIsArray(nextProps.values)\n });\n this.DraggableListPreviewElement = makeDraggableListPreviewElement(nextProps.ListPreviewElement);\n }\n render() {\n const { options , optionValueAccessor } = this.props;\n const { draggableValues } = this.state;\n const draggableOptions = draggableValues.map((value)=>options.find((option)=>optionValueAccessor(option) === value)).filter(Boolean);\n return draggableOptions.map(this.renderOption);\n }\n};\nMultiSelectBox_ListPreviewSortable.propTypes = {\n // For explanations of the PropTypes, see MultiSelectBox.js\n options: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).shape({})).isRequired,\n values: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).string),\n onValuesChange: (0, _propTypesDefault.default).func.isRequired,\n ListPreviewElement: (0, _propTypesDefault.default).any.isRequired,\n // API with MultiSelectBox\n optionValueAccessor: (0, _propTypesDefault.default).func.isRequired\n};\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"./../_lib/injectProps\":\"4zDuU\",\"../MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement\":\"XXWBe\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"XXWBe\":[function(require,module,exports) {\n// src/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/style.module.css\nvar _ezjrh4VhCss = require(\"../_css/EZJRH4VH.css\");\n// src/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/index.js\nvar _multiSelectBoxListPreviewSortableDraggableListPreviewElement = require(\"./multiSelectBox_ListPreviewSortable_DraggableListPreviewElement\");\nvar _multiSelectBoxListPreviewSortableDraggableListPreviewElementDefault = parcelHelpers.interopDefault(_multiSelectBoxListPreviewSortableDraggableListPreviewElement);\nvar _injectProps = require(\"./../_lib/injectProps\");\nvar _injectPropsDefault = parcelHelpers.interopDefault(_injectProps);\nvar _icon = require(\"./../Icon\");\nvar _iconDefault = parcelHelpers.interopDefault(_icon);\nvar _iconButton = require(\"./../IconButton\");\nvar _iconButtonDefault = parcelHelpers.interopDefault(_iconButton);\nvar style_module_default = {\n \"selectedOptions__item--draggable\": \"neos-2_NI5a_selectedOptions__item--draggable\",\n \"selectedOption__moveButton\": \"neos-2_NI5a_selectedOption__moveButton\",\n \"selectedOptions__itemIcon--onHover\": \"neos-2_NI5a_selectedOptions__itemIcon--onHover\",\n \"selectedOptions__innerPreview\": \"neos-2_NI5a_selectedOptions__innerPreview\",\n \"selectedOptions__item\": \"neos-2_NI5a_selectedOptions__item\",\n \"selectedOptions__itemIcon\": \"neos-2_NI5a_selectedOptions__itemIcon\",\n \"selectedOption__removeButton\": \"neos-2_NI5a_selectedOption__removeButton\"\n};\nvar ThemedMultiSelectBox_ListPreviewSortable_DraggableListPreviewElement = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).multiSelectBox_ListPreviewSortable_DraggableListPreviewElement, style_module_default)((0, _multiSelectBoxListPreviewSortableDraggableListPreviewElementDefault.default));\nvar MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement_default = (0, _injectPropsDefault.default)({\n Icon: (0, _iconDefault.default),\n IconButton: (0, _iconButtonDefault.default)\n})(ThemedMultiSelectBox_ListPreviewSortable_DraggableListPreviewElement);\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/EZJRH4VH.css\":\"7Aecl\",\"./multiSelectBox_ListPreviewSortable_DraggableListPreviewElement\":\"8xHuC\",\"./../_lib/injectProps\":\"4zDuU\",\"./../Icon\":\"d3a5Q\",\"./../IconButton\":\"f6lYW\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7Aecl\":[function() {},{}],\"8xHuC\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement);\n// src/MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement/multiSelectBox_ListPreviewSortable_DraggableListPreviewElement.js\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactDnd = require(\"react-dnd\");\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind)=>{\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for(var i = decorators.length - 1, decorator; i >= 0; i--)if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result) __defProp(target, key, result);\n return result;\n};\nvar spec = {\n hover (props, monitor, component) {\n const dragIndex = monitor.getItem().index;\n const hoverIndex = props.index;\n if (dragIndex === hoverIndex) return;\n const hoverBoundingRect = component.node.getBoundingClientRect();\n const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;\n const clientOffset = monitor.getClientOffset();\n const hoverClientY = clientOffset.y - hoverBoundingRect.top;\n if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) return;\n if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) return;\n props.onMoveSelectedValue(dragIndex, hoverIndex);\n monitor.getItem().index = hoverIndex;\n },\n drop (props) {\n props.onSelectedValueWasMoved();\n }\n};\nvar MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement = class extends (0, _react.PureComponent) {\n constructor(){\n super(...arguments);\n this.handleClick = ()=>{\n const { onItemClick , option } = this.props;\n if (onItemClick) onItemClick(option);\n };\n }\n render() {\n const { option , connectDragSource , connectDropTarget , isDragging , InnerListPreviewElement , theme , values , onRemoveItem , index , IconButton , onItemClick } = this.props;\n const isDraggable = values && values.length > 1;\n const finalClassNames = (0, _classnamesDefault.default)({\n [theme.selectedOptions__item]: true,\n [theme[\"selectedOptions__item--draggable\"]]: isDraggable\n });\n const opacity = isDragging ? 0 : 1;\n const refName = (node)=>{\n this.node = node;\n };\n const handleRemoveItem = ()=>onRemoveItem(index);\n return connectDragSource(connectDropTarget(/* @__PURE__ */ (0, _reactDefault.default).createElement(\"li\", {\n style: {\n opacity\n },\n ref: refName\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: finalClassNames\n }, isDraggable && /* @__PURE__ */ (0, _reactDefault.default).createElement(IconButton, {\n icon: \"grip-lines-vertical\",\n className: theme.selectedOption__moveButton,\n hoverStyle: \"clean\"\n }), /* @__PURE__ */ (0, _reactDefault.default).createElement(\"div\", {\n className: theme.selectedOptions__innerPreview,\n onClick: onItemClick ? this.handleClick : null,\n role: onItemClick ? \"button\" : null\n }, /* @__PURE__ */ (0, _reactDefault.default).createElement(InnerListPreviewElement, {\n ...this.props,\n isHighlighted: false,\n option\n })), /* @__PURE__ */ (0, _reactDefault.default).createElement(IconButton, {\n icon: \"close\",\n onClick: handleRemoveItem,\n className: theme.selectedOption__removeButton\n })))));\n }\n};\nMultiSelectBox_ListPreviewSortable_DraggableListPreviewElement.propTypes = {\n // For explanations of the PropTypes, see MultiSelectBox.js\n option: (0, _propTypesDefault.default).shape({}),\n values: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).string),\n // Drag&Drop specific propTypes\n dndType: (0, _propTypesDefault.default).string.isRequired,\n connectDragSource: (0, _propTypesDefault.default).func.isRequired,\n connectDropTarget: (0, _propTypesDefault.default).func.isRequired,\n isDragging: (0, _propTypesDefault.default).bool.isRequired,\n // API with MultiSelectBox_ListPreviewSortable\n InnerListPreviewElement: (0, _propTypesDefault.default).any.isRequired,\n onMoveSelectedValue: (0, _propTypesDefault.default).func.isRequired,\n onSelectedValueWasMoved: (0, _propTypesDefault.default).func.isRequired,\n onRemoveItem: (0, _propTypesDefault.default).func.isRequired,\n onItemClick: (0, _propTypesDefault.default).func,\n index: (0, _propTypesDefault.default).number.isRequired,\n // Dependency Injection & Theme\n theme: (0, _propTypesDefault.default).shape({\n \"selectedOptions__item\": (0, _propTypesDefault.default).string,\n \"selectedOptions__item--draggable\": (0, _propTypesDefault.default).string,\n \"selectedOption__removeButton\": (0, _propTypesDefault.default).string,\n \"selectedOption__moveButton\": (0, _propTypesDefault.default).string\n }).isRequired,\n Icon: (0, _propTypesDefault.default).any.isRequired,\n IconButton: (0, _propTypesDefault.default).any.isRequired\n};\nMultiSelectBox_ListPreviewSortable_DraggableListPreviewElement = __decorateClass([\n (0, _reactDnd.DragSource)(({ dndType })=>dndType, {\n beginDrag (props) {\n return {\n index: props.index\n };\n },\n canDrag ({ values }) {\n return values && values.length > 1;\n }\n }, (connect, monitor)=>({\n connectDragSource: connect.dragSource(),\n isDragging: monitor.isDragging()\n })),\n (0, _reactDnd.DropTarget)(({ dndType })=>dndType, spec, (connect)=>({\n connectDropTarget: connect.dropTarget()\n }))\n], MultiSelectBox_ListPreviewSortable_DraggableListPreviewElement);\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"classnames\":\"hVGzI\",\"react-dnd\":\"5Rhgo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"g480Y\":[function(require,module,exports) {\n// src/SelectBox_Option_MultiLineWithThumbnail/index.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>SelectBox_Option_MultiLineWithThumbnail_default);\nvar _reactCssThemr = require(\"@friendsofreactjs/react-css-themr\");\nvar _identifiers = require(\"../identifiers\");\nvar _identifiersDefault = parcelHelpers.interopDefault(_identifiers);\n// src/SelectBox_Option_MultiLineWithThumbnail/style.module.css\nvar _poklknauCss = require(\"../_css/POKLKNAU.css\");\n// src/SelectBox_Option_MultiLineWithThumbnail/index.js\nvar _selectBoxOptionMultiLineWithThumbnail = require(\"./selectBox_Option_MultiLineWithThumbnail\");\nvar _selectBoxOptionMultiLineWithThumbnailDefault = parcelHelpers.interopDefault(_selectBoxOptionMultiLineWithThumbnail);\nvar style_module_default = {\n \"multiLineWithThumbnail__item--multiLine\": \"neos-47-Tdq_multiLineWithThumbnail__item--multiLine\",\n \"multiLineWithThumbnail__secondaryLabel\": \"neos-47-Tdq_multiLineWithThumbnail__secondaryLabel\",\n \"multiLineWithThumbnail__image\": \"neos-47-Tdq_multiLineWithThumbnail__image\",\n \"multiLineWithThumbnail__item\": \"neos-47-Tdq_multiLineWithThumbnail__item\",\n \"multiLineWithThumbnail__tertiaryLabel\": \"neos-47-Tdq_multiLineWithThumbnail__tertiaryLabel\"\n};\nvar ThemedSelectBox_Option_MultiLineWithThumbnail = (0, _reactCssThemr.themr)((0, _identifiersDefault.default).selectBox_Option_MultiLineWithThumbnail, style_module_default)((0, _selectBoxOptionMultiLineWithThumbnailDefault.default));\nvar SelectBox_Option_MultiLineWithThumbnail_default = ThemedSelectBox_Option_MultiLineWithThumbnail;\n\n},{\"@friendsofreactjs/react-css-themr\":\"e7HmU\",\"../identifiers\":\"h8ZAm\",\"../_css/POKLKNAU.css\":\"iVNt5\",\"./selectBox_Option_MultiLineWithThumbnail\":\"607H0\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iVNt5\":[function() {},{}],\"607H0\":[function(require,module,exports) {\n// src/SelectBox_Option_MultiLineWithThumbnail/selectBox_Option_MultiLineWithThumbnail.js\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>selectBox_Option_MultiLineWithThumbnail_default);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _listPreviewElement = require(\"../ListPreviewElement\");\nvar _listPreviewElementDefault = parcelHelpers.interopDefault(_listPreviewElement);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar SelectBox_Option_MultiLineWithThumbnail = class extends (0, _react.PureComponent) {\n render() {\n const { label , secondaryLabel , tertiaryLabel , imageUri , icon , className , theme , ...rest } = this.props;\n const finalClassNames = (0, _classnamesDefault.default)({\n [theme.multiLineWithThumbnail__item]: true,\n [theme[\"multiLineWithThumbnail__item--multiLine\"]]: secondaryLabel || tertiaryLabel,\n [className]: className\n });\n return /* @__PURE__ */ (0, _reactDefault.default).createElement((0, _listPreviewElementDefault.default), {\n ...rest,\n icon,\n className: finalClassNames\n }, Boolean(imageUri) && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"img\", {\n src: imageUri,\n alt: label,\n className: theme.multiLineWithThumbnail__image\n }), /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n title: label\n }, label), Boolean(secondaryLabel) && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n className: theme.multiLineWithThumbnail__secondaryLabel,\n title: secondaryLabel\n }, secondaryLabel), Boolean(tertiaryLabel) && /* @__PURE__ */ (0, _reactDefault.default).createElement(\"span\", {\n className: theme.multiLineWithThumbnail__tertiaryLabel,\n title: tertiaryLabel\n }, tertiaryLabel));\n }\n};\nSelectBox_Option_MultiLineWithThumbnail.propTypes = {\n label: (0, _propTypesDefault.default).string.isRequired,\n secondaryLabel: (0, _propTypesDefault.default).string,\n tertiaryLabel: (0, _propTypesDefault.default).string,\n imageUri: (0, _propTypesDefault.default).string,\n icon: (0, _propTypesDefault.default).string,\n className: (0, _propTypesDefault.default).string,\n theme: (0, _propTypesDefault.default).shape({\n multiLineWithThumbnail__item: (0, _propTypesDefault.default).string.isRequired,\n \"multiLineWithThumbnail__item--multiLine\": (0, _propTypesDefault.default).string.isRequired,\n multiLineWithThumbnail__secondaryLabel: (0, _propTypesDefault.default).string.isRequired,\n multiLineWithThumbnail__tertiaryLabel: (0, _propTypesDefault.default).string.isRequired,\n multiLineWithThumbnail__image: (0, _propTypesDefault.default).string.isRequired\n }).isRequired\n};\nvar selectBox_Option_MultiLineWithThumbnail_default = SelectBox_Option_MultiLineWithThumbnail;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"../ListPreviewElement\":\"3Apwf\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5LFSk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Dialog\", ()=>(0, _dialog.Dialog));\nparcelHelpers.export(exports, \"AssetLabel\", ()=>(0, _assetLabelDefault.default));\nparcelHelpers.export(exports, \"Column\", ()=>(0, _columnDefault.default));\nparcelHelpers.export(exports, \"IconLabel\", ()=>(0, _iconLabelDefault.default));\nparcelHelpers.export(exports, \"PropertyList\", ()=>(0, _propertyListDefault.default));\nparcelHelpers.export(exports, \"PropertyListItem\", ()=>(0, _propertyListItemDefault.default));\nparcelHelpers.export(exports, \"IconStack\", ()=>(0, _iconStack.IconStack));\nvar _dialog = require(\"./Dialog\");\nvar _assetLabel = require(\"./AssetLabel\");\nvar _assetLabelDefault = parcelHelpers.interopDefault(_assetLabel);\nvar _column = require(\"./Column\");\nvar _columnDefault = parcelHelpers.interopDefault(_column);\nvar _iconLabel = require(\"./IconLabel\");\nvar _iconLabelDefault = parcelHelpers.interopDefault(_iconLabel);\nvar _propertyList = require(\"./PropertyList\");\nvar _propertyListDefault = parcelHelpers.interopDefault(_propertyList);\nvar _propertyListItem = require(\"./PropertyListItem\");\nvar _propertyListItemDefault = parcelHelpers.interopDefault(_propertyListItem);\nvar _iconStack = require(\"./IconStack\");\n\n},{\"./Dialog\":\"eFE0F\",\"./AssetLabel\":\"kMOyj\",\"./Column\":\"5YsXc\",\"./IconLabel\":\"gHnkC\",\"./PropertyList\":\"e61JD\",\"./PropertyListItem\":\"2EOWc\",\"./IconStack\":\"flDqM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eFE0F\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Dialog\", ()=>Dialog);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDom = require(\"react-dom\");\nvar _reactDomDefault = parcelHelpers.interopDefault(_reactDom);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _themeModuleCss = require(\"../Theme.module.css\");\nvar _themeModuleCssDefault = parcelHelpers.interopDefault(_themeModuleCss);\nconst Dialog = (props)=>{\n const dialogRef = (0, _reactDefault.default).useRef();\n (0, _reactDefault.default).useEffect(()=>{\n if (dialogRef.current) {\n const section = (0, _reactDomDefault.default).findDOMNode(dialogRef.current); // eslint-disable-line react/no-find-dom-node\n section?.firstElementChild?.setAttribute(\"data-ignore_click_outside\", \"true\");\n }\n }, [\n dialogRef\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Dialog), {\n ...props,\n autoFocus: true,\n ref: dialogRef,\n className: (0, _themeModuleCssDefault.default).mediaModuleTheme\n });\n};\n\n},{\"react\":\"6uln9\",\"react-dom\":\"b8T3j\",\"@neos-project/react-ui-components\":\"hWxzt\",\"../Theme.module.css\":\"4FNJ7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4FNJ7\":[function(require,module,exports) {\nmodule.exports[\"mediaModuleTheme\"] = `_5ormcG_mediaModuleTheme`;\n\n},{}],\"kMOyj\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _assetLabelModuleCss = require(\"./AssetLabel.module.css\");\nvar _assetLabelModuleCssDefault = parcelHelpers.interopDefault(_assetLabelModuleCss);\nconst AssetLabel = ({ label })=>{\n return /*#__PURE__*/ _react.createElement(\"span\", {\n className: (0, _assetLabelModuleCssDefault.default).assetLabel\n }, label);\n};\nexports.default = /*#__PURE__*/ _react.memo(AssetLabel);\n\n},{\"react\":\"6uln9\",\"./AssetLabel.module.css\":\"dPSdL\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dPSdL\":[function(require,module,exports) {\nmodule.exports[\"assetLabel\"] = `MSmIxq_assetLabel`;\n\n},{}],\"5YsXc\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _columnModuleCss = require(\"./Column.module.css\");\nvar _columnModuleCssDefault = parcelHelpers.interopDefault(_columnModuleCss);\nconst Column = ({ children })=>{\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _columnModuleCssDefault.default).column\n }, children);\n};\nexports.default = Column;\n\n},{\"react\":\"6uln9\",\"./Column.module.css\":\"kkswc\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kkswc\":[function(require,module,exports) {\nmodule.exports[\"column\"] = `kvTLDq_column`;\n\n},{}],\"gHnkC\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _iconLabelModuleCss = require(\"./IconLabel.module.css\");\nvar _iconLabelModuleCssDefault = parcelHelpers.interopDefault(_iconLabelModuleCss);\nconst IconLabel = ({ icon =\"question\" , iconUri =\"\" , label =\"\" , className =\"\" , children =null })=>{\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _classnamesDefault.default)((0, _iconLabelModuleCssDefault.default).wrapper, className)\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _iconLabelModuleCssDefault.default).iconWrap\n }, iconUri ? /*#__PURE__*/ (0, _reactDefault.default).createElement(\"img\", {\n src: iconUri,\n alt: label,\n className: (0, _iconLabelModuleCssDefault.default).imgIcon\n }) : /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: icon\n })), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _iconLabelModuleCssDefault.default).label\n }, children || label || \"\"));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(IconLabel);\n\n},{\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"@neos-project/react-ui-components\":\"hWxzt\",\"./IconLabel.module.css\":\"iU37Z\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iU37Z\":[function(require,module,exports) {\nmodule.exports[\"iconWrap\"] = `AhglKq_iconWrap`;\nmodule.exports[\"imgIcon\"] = `AhglKq_imgIcon`;\nmodule.exports[\"label\"] = `AhglKq_label`;\nmodule.exports[\"wrapper\"] = `AhglKq_wrapper`;\n\n},{}],\"e61JD\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propertyListModuleCss = require(\"./PropertyList.module.css\");\nvar _propertyListModuleCssDefault = parcelHelpers.interopDefault(_propertyListModuleCss);\nconst PropertyList = ({ children })=>{\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"dl\", {\n className: (0, _propertyListModuleCssDefault.default).propertyList\n }, children);\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(PropertyList);\n\n},{\"react\":\"6uln9\",\"./PropertyList.module.css\":\"15Puz\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"15Puz\":[function(require,module,exports) {\nmodule.exports[\"propertyList\"] = `QnHc5G_propertyList`;\n\n},{}],\"2EOWc\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nconst PropertyListItem = ({ label , value })=>{\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"dt\", null, label), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"dd\", {\n title: value\n }, value));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(PropertyListItem);\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"flDqM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"IconStack\", ()=>IconStack);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _iconStackModuleCss = require(\"./IconStack.module.css\");\nvar _iconStackModuleCssDefault = parcelHelpers.interopDefault(_iconStackModuleCss);\nconst IconStack = ({ primaryIcon , secondaryIcon })=>{\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _iconStackModuleCssDefault.default).iconStack\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: primaryIcon\n }), secondaryIcon && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: secondaryIcon\n }));\n};\n\n},{\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"./IconStack.module.css\":\"4CF46\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4CF46\":[function(require,module,exports) {\nmodule.exports[\"iconStack\"] = `UWhRka_iconStack`;\n\n},{}],\"45jHK\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useSelectedAssetSource\", ()=>useSelectedAssetSource);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _useAssetSourcesQuery = require(\"./useAssetSourcesQuery\");\nvar _selectedAssetSourceState = require(\"../state/selectedAssetSourceState\");\nconst useSelectedAssetSource = ()=>{\n const selectedAssetSourceId = (0, _recoil.useRecoilValue)((0, _selectedAssetSourceState.selectedAssetSourceState));\n const { assetSources } = (0, _useAssetSourcesQuery.useAssetSourcesQuery)();\n return (0, _react.useMemo)(()=>assetSources.find((assetSource)=>assetSource.id === selectedAssetSourceId), [\n assetSources,\n selectedAssetSourceId\n ]);\n};\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"./useAssetSourcesQuery\":\"ckgxn\",\"../state/selectedAssetSourceState\":\"g5Jy1\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ckgxn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useAssetSourcesQuery\", ()=>useAssetSourcesQuery);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _client = require(\"@apollo/client\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _assetSources = require(\"../queries/assetSources\");\nfunction useAssetSourcesQuery() {\n const { data , loading } = (0, _client.useQuery)((0, _assetSources.ASSET_SOURCES));\n const constraints = (0, _recoil.useRecoilValue)((0, _state.constraintsState));\n // Filter out sources that don't match the constraints\n const assetSources = (0, _react.useMemo)(()=>{\n const assetSources = data?.assetSources || [];\n return constraints.assetSources?.length > 0 ? assetSources.filter((source)=>{\n return constraints.assetSources.includes(source.id);\n }) : assetSources;\n }, [\n data?.assetSources,\n constraints.assetSources\n ]);\n // TODO: Handle error if no asset sources are available\n return {\n assetSources,\n loading\n };\n}\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@apollo/client\":\"bWmmR\",\"@media-ui/core/src/state\":\"jV1GH\",\"../queries/assetSources\":\"hY9Zj\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jV1GH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"availableAssetsState\", ()=>(0, _availableAssetsState.availableAssetsState));\nparcelHelpers.export(exports, \"availableAssetIdentitiesState\", ()=>(0, _availableAssetsState.availableAssetIdentitiesState));\nparcelHelpers.export(exports, \"constraintsState\", ()=>(0, _constraintsState.constraintsState));\nparcelHelpers.export(exports, \"currentPageState\", ()=>(0, _currentPageState.currentPageState));\nparcelHelpers.export(exports, \"featureFlagsState\", ()=>(0, _featureFlagsState.featureFlagsState));\nparcelHelpers.export(exports, \"initialLoadCompleteState\", ()=>(0, _initialLoadCompleteState.initialLoadCompleteState));\nparcelHelpers.export(exports, \"loadingState\", ()=>(0, _loadingState.loadingState));\nparcelHelpers.export(exports, \"localStorageEffect\", ()=>(0, _localStorageEffect.localStorageEffect));\nparcelHelpers.export(exports, \"searchTermState\", ()=>(0, _searchTermState.searchTermState));\nparcelHelpers.export(exports, \"selectedAssetCollectionAndTagState\", ()=>(0, _selectedAssetCollectionAndTagState.selectedAssetCollectionAndTagState));\nparcelHelpers.export(exports, \"selectedAssetIdState\", ()=>(0, _selectedAssetIdState.selectedAssetIdState));\nparcelHelpers.export(exports, \"selectedInspectorViewState\", ()=>(0, _selectedInspectorViewState.selectedInspectorViewState));\nparcelHelpers.export(exports, \"selectedMediaTypeState\", ()=>(0, _selectedMediaTypeState.selectedMediaTypeState));\nparcelHelpers.export(exports, \"selectedAssetTypeState\", ()=>(0, _selectedAssetTypeState.selectedAssetTypeState));\nparcelHelpers.export(exports, \"selectedSortOrderState\", ()=>(0, _selectedSortOrderState.selectedSortOrderState));\nparcelHelpers.export(exports, \"applicationContextState\", ()=>(0, _applicationContextState.applicationContextState));\nvar _availableAssetsState = require(\"./availableAssetsState\");\nvar _constraintsState = require(\"./constraintsState\");\nvar _currentPageState = require(\"./currentPageState\");\nvar _featureFlagsState = require(\"./featureFlagsState\");\nvar _initialLoadCompleteState = require(\"./initialLoadCompleteState\");\nvar _loadingState = require(\"./loadingState\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nvar _searchTermState = require(\"./searchTermState\");\nvar _selectedAssetCollectionAndTagState = require(\"./selectedAssetCollectionAndTagState\");\nvar _selectedAssetIdState = require(\"./selectedAssetIdState\");\nvar _selectedInspectorViewState = require(\"./selectedInspectorViewState\");\nvar _selectedMediaTypeState = require(\"./selectedMediaTypeState\");\nvar _selectedAssetTypeState = require(\"./selectedAssetTypeState\");\nvar _selectedSortOrderState = require(\"./selectedSortOrderState\");\nvar _applicationContextState = require(\"./applicationContextState\");\n\n},{\"./availableAssetsState\":\"dqGTq\",\"./constraintsState\":\"dkgey\",\"./currentPageState\":\"4ur8L\",\"./featureFlagsState\":\"8m65D\",\"./initialLoadCompleteState\":\"ggbd8\",\"./loadingState\":\"gSxp2\",\"./localStorageEffect\":\"gXKi8\",\"./searchTermState\":\"8YoJq\",\"./selectedAssetCollectionAndTagState\":\"uU2wb\",\"./selectedAssetIdState\":\"kCQ08\",\"./selectedInspectorViewState\":\"hbmqT\",\"./selectedMediaTypeState\":\"iEAqJ\",\"./selectedAssetTypeState\":\"ePw7X\",\"./selectedSortOrderState\":\"8xo0U\",\"./applicationContextState\":\"63yeZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dqGTq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"availableAssetsState\", ()=>availableAssetsState);\nparcelHelpers.export(exports, \"availableAssetIdentitiesState\", ()=>availableAssetIdentitiesState);\nvar _recoil = require(\"recoil\");\nconst availableAssetsState = (0, _recoil.atom)({\n key: \"AvailableAssetsState\",\n default: []\n});\nconst availableAssetIdentitiesState = (0, _recoil.selector)({\n key: \"AvailableAssetIdentitiesState\",\n get: ({ get })=>{\n return get(availableAssetsState).map((asset)=>({\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n }));\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dkgey\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"constraintsState\", ()=>constraintsState);\nvar _recoil = require(\"recoil\");\nconst constraintsState = (0, _recoil.atom)({\n key: \"ConstraintsState\",\n default: {\n assetSources: [],\n mediaTypes: []\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4ur8L\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"currentPageState\", ()=>currentPageState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nconst currentPageState = (0, _recoil.atom)({\n key: \"currentPageState\",\n default: 1,\n effects: [\n (0, _localStorageEffect.localStorageEffect)(\"currentPageState\", (v)=>isNaN(v) ? 1 : v)\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"./localStorageEffect\":\"gXKi8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gXKi8\":[function(require,module,exports) {\n/**\n * This is a custom recoil storage effect that allows us to persist state in local storage.\n * It can be added to any atom as effect.\n *\n * If the context parameter is supplied custom behaviour is used to prevent reading and/or writing the state\n * as only the 'browser' context should have complete control over state.\n *\n * TODO: Refactor the context to be more explicit about what is allowed and what is not\n */ var parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n// TODO: Listen to storage events to allow syncing two tabs\nparcelHelpers.export(exports, \"localStorageEffect\", ()=>localStorageEffect);\nconst STORAGE_PREFIX = \"flowpack.mediaui\";\nfunction localStorageEffect(key, validate, context) {\n return ({ setSelf , onSet })=>{\n // Don't read or write the state in details screen\n if (context == \"details\") return;\n const fullKey = `${STORAGE_PREFIX}.${key}`;\n const savedValueJSON = localStorage.getItem(fullKey);\n if (savedValueJSON != null) try {\n let savedValue = JSON.parse(savedValueJSON);\n if (validate) savedValue = validate(savedValue);\n if (savedValue !== null && savedValue !== undefined) setSelf(savedValue);\n } catch (e) {\n console.warn(`[MEDIA UI]: Could not parse saved value for stored setting ${fullKey}`);\n localStorage.removeItem(fullKey);\n }\n onSet((newValue, previousValue, isReset)=>{\n // Don't write the state in selection screen\n if (context == \"selection\") return;\n isReset || newValue == \"\" || newValue == null ? localStorage.removeItem(fullKey) : localStorage.setItem(fullKey, JSON.stringify(newValue));\n });\n };\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8m65D\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"featureFlagsState\", ()=>featureFlagsState);\nvar _recoil = require(\"recoil\");\nconst featureFlagsState = (0, _recoil.atom)({\n key: \"FeatureFlagsState\",\n default: {\n useNewMediaSelection: true,\n queryAssetUsage: false,\n pollForChanges: true,\n showSimilarAssets: false,\n showVariantsEditor: false,\n createAssetRedirectsOption: true,\n pagination: {\n assetsPerPage: 20,\n maximumLinks: 5\n },\n propertyEditor: {\n collapsed: false\n },\n limitToSingleAssetCollectionPerAsset: true,\n mediaTypeFilterOptions: {\n all: {},\n image: {},\n video: {},\n document: {},\n audio: {}\n }\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ggbd8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"initialLoadCompleteState\", ()=>initialLoadCompleteState);\nvar _recoil = require(\"recoil\");\nconst initialLoadCompleteState = (0, _recoil.atom)({\n key: \"InitialLoadCompleteState\",\n default: false\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gSxp2\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"loadingState\", ()=>loadingState);\nvar _recoil = require(\"recoil\");\nconst loadingState = (0, _recoil.atom)({\n key: \"loadingState\",\n default: false\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8YoJq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"searchTermState\", ()=>searchTermState);\nvar _recoil = require(\"recoil\");\nvar _searchTerm = require(\"../domain/SearchTerm\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nconst searchTermState = (0, _recoil.atom)({\n key: \"searchTermState\",\n default: (0, _searchTerm.SearchTerm).fromString(\"\"),\n effects: [\n (0, _localStorageEffect.localStorageEffect)(\"searchTermState\", ({ value })=>{\n const searchTerm = (0, _searchTerm.SearchTerm).fromString(value);\n return searchTerm.empty() ? undefined : searchTerm;\n })\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"../domain/SearchTerm\":\"bnHXU\",\"./localStorageEffect\":\"gXKi8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bnHXU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SearchTerm\", ()=>SearchTerm);\nconst ASSET_IDENTIFIER_PATTERN = /id:([0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12})/;\nclass SearchTerm {\n constructor(value){\n this.value = value;\n this.assetIdentifier = undefined;\n this.getAssetIdentifierIfPresent = ()=>{\n return this.assetIdentifier ? {\n assetId: this.assetIdentifier,\n assetSourceId: \"\"\n } : null;\n };\n this.toString = ()=>{\n return this.value;\n };\n this.empty = ()=>{\n return this.value === \"\";\n };\n const matches = ASSET_IDENTIFIER_PATTERN.exec(this.value);\n if (matches && matches[1]) this.assetIdentifier = matches[1];\n else this.assetIdentifier = null;\n }\n static fromString(string) {\n return new SearchTerm(string);\n }\n static fromUrl(url) {\n const string = url.searchParams.get(\"searchTerm\") ?? \"\";\n return SearchTerm.fromString(string);\n }\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"uU2wb\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedAssetCollectionAndTagState\", ()=>selectedAssetCollectionAndTagState);\nvar _recoil = require(\"recoil\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nvar _currentPageState = require(\"./currentPageState\");\nvar _selectedInspectorViewState = require(\"./selectedInspectorViewState\");\nvar _selectedAssetIdState = require(\"./selectedAssetIdState\");\nconst selectedAssetCollectionAndTagState = (0, _recoil.selector)({\n key: \"SelectedTagIdProxySelector\",\n get: ({ get })=>({\n tagId: get((0, _featureAssetTags.selectedTagIdState)),\n assetCollectionId: get((0, _featureAssetCollections.selectedAssetCollectionIdState))\n }),\n set: ({ set }, props)=>{\n set((0, _selectedInspectorViewState.selectedInspectorViewState), props.tagId ? \"tag\" : \"assetCollection\");\n set((0, _featureAssetTags.selectedTagIdState), props.tagId);\n set((0, _selectedAssetIdState.selectedAssetIdState), null);\n set((0, _currentPageState.currentPageState), 1);\n set((0, _featureAssetCollections.selectedAssetCollectionIdState), props.assetCollectionId);\n set((0, _featureClipboard.clipboardVisibleState), false);\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"./currentPageState\":\"4ur8L\",\"./selectedInspectorViewState\":\"hbmqT\",\"./selectedAssetIdState\":\"kCQ08\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aqhtm\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useCreateTag\", ()=>(0, _useCreateTagDefault.default));\nparcelHelpers.export(exports, \"useDeleteTag\", ()=>(0, _useDeleteTagDefault.default));\nparcelHelpers.export(exports, \"useSelectedTag\", ()=>(0, _useSelectedTagDefault.default));\nparcelHelpers.export(exports, \"useTagsQuery\", ()=>(0, _useTagsQueryDefault.default));\nparcelHelpers.export(exports, \"useUpdateTag\", ()=>(0, _useUpdateTagDefault.default));\nparcelHelpers.export(exports, \"CreateTagDialog\", ()=>(0, _createTagDialogDefault.default));\nparcelHelpers.export(exports, \"selectedTagIdState\", ()=>(0, _selectedTagIdStateDefault.default));\nparcelHelpers.export(exports, \"createTagDialogState\", ()=>(0, _createTagDialogStateDefault.default));\nvar _useCreateTag = require(\"./hooks/useCreateTag\");\nvar _useCreateTagDefault = parcelHelpers.interopDefault(_useCreateTag);\nvar _useDeleteTag = require(\"./hooks/useDeleteTag\");\nvar _useDeleteTagDefault = parcelHelpers.interopDefault(_useDeleteTag);\nvar _useSelectedTag = require(\"./hooks/useSelectedTag\");\nvar _useSelectedTagDefault = parcelHelpers.interopDefault(_useSelectedTag);\nvar _useTagsQuery = require(\"./hooks/useTagsQuery\");\nvar _useTagsQueryDefault = parcelHelpers.interopDefault(_useTagsQuery);\nvar _useUpdateTag = require(\"./hooks/useUpdateTag\");\nvar _useUpdateTagDefault = parcelHelpers.interopDefault(_useUpdateTag);\nvar _createTagDialog = require(\"./components/CreateTagDialog\");\nvar _createTagDialogDefault = parcelHelpers.interopDefault(_createTagDialog);\nvar _selectedTagIdState = require(\"./state/selectedTagIdState\");\nvar _selectedTagIdStateDefault = parcelHelpers.interopDefault(_selectedTagIdState);\nvar _createTagDialogState = require(\"./state/createTagDialogState\");\nvar _createTagDialogStateDefault = parcelHelpers.interopDefault(_createTagDialogState);\n\n},{\"./hooks/useCreateTag\":\"MZ3Ez\",\"./hooks/useDeleteTag\":\"aHwn1\",\"./hooks/useSelectedTag\":\"lHPwJ\",\"./hooks/useTagsQuery\":\"slPqE\",\"./hooks/useUpdateTag\":\"fhZdO\",\"./components/CreateTagDialog\":\"imken\",\"./state/selectedTagIdState\":\"g9YVf\",\"./state/createTagDialogState\":\"hOCbE\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"MZ3Ez\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useCreateTag);\nvar _client = require(\"@apollo/client\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _tags = require(\"../queries/tags\");\nvar _tagsDefault = parcelHelpers.interopDefault(_tags);\nvar _createTag = require(\"../mutations/createTag\");\nvar _createTagDefault = parcelHelpers.interopDefault(_createTag);\nfunction useCreateTag() {\n const [action, { error , data }] = (0, _client.useMutation)((0, _createTagDefault.default));\n const createTag = (label, assetCollectionId)=>action({\n variables: {\n label,\n assetCollectionId\n },\n // FIXME: Optimistic response has to be adjusted as we don't know the id of the created tag\n // optimisticResponse: {\n // __typename: 'Mutation',\n // createTag: {\n // __typename: 'Tag',\n // label: label,\n // }\n // },\n update: (proxy, { data: { createTag: newTag } })=>{\n const { assetCollections } = proxy.readQuery({\n query: (0, _featureAssetCollections.ASSET_COLLECTIONS)\n });\n const updatedAssetCollections = assetCollections.map((assetCollection)=>{\n if (assetCollection.id === assetCollectionId) return {\n ...assetCollection,\n tags: [\n ...assetCollection.tags,\n newTag\n ]\n };\n return assetCollection;\n });\n proxy.writeQuery({\n query: (0, _featureAssetCollections.ASSET_COLLECTIONS),\n data: {\n assetCollections: updatedAssetCollections\n }\n });\n const { tags } = proxy.readQuery({\n query: (0, _tagsDefault.default)\n });\n if (!tags.find((tag)=>tag?.label === newTag?.label)) proxy.writeQuery({\n query: (0, _tagsDefault.default),\n data: {\n tags: [\n ...tags,\n newTag\n ]\n }\n });\n }\n });\n return {\n createTag,\n data,\n error\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"../queries/tags\":\"1A4U6\",\"../mutations/createTag\":\"cfIQU\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ACGoF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useAssetCollectionQuery\", ()=>(0, _useAssetCollectionQuery.useAssetCollectionQuery));\nparcelHelpers.export(exports, \"useAssetCollectionsQuery\", ()=>(0, _useAssetCollectionsQueryDefault.default));\nparcelHelpers.export(exports, \"useSelectedAssetCollection\", ()=>(0, _useSelectedAssetCollectionDefault.default));\nparcelHelpers.export(exports, \"useDeleteAssetCollection\", ()=>(0, _useDeleteAssetCollectionDefault.default));\nparcelHelpers.export(exports, \"useUpdateAssetCollection\", ()=>(0, _useUpdateAssetCollectionDefault.default));\nparcelHelpers.export(exports, \"useCreateAssetCollection\", ()=>(0, _useCreateAssetCollectionDefault.default));\nparcelHelpers.export(exports, \"useSetAssetCollectionParent\", ()=>(0, _useSetAssetCollectionParent.useSetAssetCollectionParent));\nparcelHelpers.export(exports, \"AssetCollectionTree\", ()=>(0, _assetCollectionTreeDefault.default));\nparcelHelpers.export(exports, \"CreateAssetCollectionDialog\", ()=>(0, _createAssetCollectionDialogDefault.default));\nparcelHelpers.export(exports, \"ASSET_COLLECTION_FRAGMENT\", ()=>(0, _assetCollection.ASSET_COLLECTION_FRAGMENT));\nparcelHelpers.export(exports, \"ASSET_COLLECTION\", ()=>(0, _assetCollection1.ASSET_COLLECTION));\nparcelHelpers.export(exports, \"ASSET_COLLECTIONS\", ()=>(0, _assetCollections.ASSET_COLLECTIONS));\nparcelHelpers.export(exports, \"CREATE_ASSET_COLLECTION\", ()=>(0, _createAssetCollection.CREATE_ASSET_COLLECTION));\nparcelHelpers.export(exports, \"DELETE_ASSET_COLLECTION\", ()=>(0, _deleteAssetCollection.DELETE_ASSET_COLLECTION));\nparcelHelpers.export(exports, \"UPDATE_ASSET_COLLECTION\", ()=>(0, _updateAssetCollection.UPDATE_ASSET_COLLECTION));\nparcelHelpers.export(exports, \"SET_ASSET_COLLECTION_PARENT\", ()=>(0, _setAssetCollectionParent.SET_ASSET_COLLECTION_PARENT));\nparcelHelpers.export(exports, \"selectedAssetCollectionIdState\", ()=>(0, _selectedAssetCollectionIdState.selectedAssetCollectionIdState));\nparcelHelpers.export(exports, \"createAssetCollectionDialogVisibleState\", ()=>(0, _createAssetCollectionDialogVisibleState.createAssetCollectionDialogVisibleState));\nparcelHelpers.export(exports, \"assetCollectionFavouritesState\", ()=>(0, _assetCollectionFavouritesState.assetCollectionFavouritesState));\nparcelHelpers.export(exports, \"assetCollectionTreeViewState\", ()=>(0, _assetCollectionTreeViewState.assetCollectionTreeViewState));\nparcelHelpers.export(exports, \"assetCollectionFocusedState\", ()=>(0, _assetCollectionFocusedState.assetCollectionFocusedState));\nparcelHelpers.export(exports, \"assetCollectionActiveState\", ()=>(0, _assetCollectionActiveState.assetCollectionActiveState));\nparcelHelpers.export(exports, \"assetCollectionTreeCollapsedState\", ()=>(0, _assetCollectionTreeCollapsedState.assetCollectionTreeCollapsedState));\nparcelHelpers.export(exports, \"assetCollectionTreeCollapsedItemState\", ()=>(0, _assetCollectionTreeCollapsedState.assetCollectionTreeCollapsedItemState));\nparcelHelpers.export(exports, \"collectionPath\", ()=>(0, _collectionPath.collectionPath));\nvar _useAssetCollectionQuery = require(\"./hooks/useAssetCollectionQuery\");\nvar _useAssetCollectionsQuery = require(\"./hooks/useAssetCollectionsQuery\");\nvar _useAssetCollectionsQueryDefault = parcelHelpers.interopDefault(_useAssetCollectionsQuery);\nvar _useSelectedAssetCollection = require(\"./hooks/useSelectedAssetCollection\");\nvar _useSelectedAssetCollectionDefault = parcelHelpers.interopDefault(_useSelectedAssetCollection);\nvar _useDeleteAssetCollection = require(\"./hooks/useDeleteAssetCollection\");\nvar _useDeleteAssetCollectionDefault = parcelHelpers.interopDefault(_useDeleteAssetCollection);\nvar _useUpdateAssetCollection = require(\"./hooks/useUpdateAssetCollection\");\nvar _useUpdateAssetCollectionDefault = parcelHelpers.interopDefault(_useUpdateAssetCollection);\nvar _useCreateAssetCollection = require(\"./hooks/useCreateAssetCollection\");\nvar _useCreateAssetCollectionDefault = parcelHelpers.interopDefault(_useCreateAssetCollection);\nvar _useSetAssetCollectionParent = require(\"./hooks/useSetAssetCollectionParent\");\nvar _assetCollectionTree = require(\"./components/AssetCollectionTree\");\nvar _assetCollectionTreeDefault = parcelHelpers.interopDefault(_assetCollectionTree);\nvar _createAssetCollectionDialog = require(\"./components/CreateAssetCollectionDialog\");\nvar _createAssetCollectionDialogDefault = parcelHelpers.interopDefault(_createAssetCollectionDialog);\nvar _assetCollection = require(\"./fragments/assetCollection\");\nvar _assetCollection1 = require(\"./queries/assetCollection\");\nvar _assetCollections = require(\"./queries/assetCollections\");\nvar _createAssetCollection = require(\"./mutations/createAssetCollection\");\nvar _deleteAssetCollection = require(\"./mutations/deleteAssetCollection\");\nvar _updateAssetCollection = require(\"./mutations/updateAssetCollection\");\nvar _setAssetCollectionParent = require(\"./mutations/setAssetCollectionParent\");\nvar _selectedAssetCollectionIdState = require(\"./state/selectedAssetCollectionIdState\");\nvar _createAssetCollectionDialogVisibleState = require(\"./state/createAssetCollectionDialogVisibleState\");\nvar _assetCollectionFavouritesState = require(\"./state/assetCollectionFavouritesState\");\nvar _assetCollectionTreeViewState = require(\"./state/assetCollectionTreeViewState\");\nvar _assetCollectionFocusedState = require(\"./state/assetCollectionFocusedState\");\nvar _assetCollectionActiveState = require(\"./state/assetCollectionActiveState\");\nvar _assetCollectionTreeCollapsedState = require(\"./state/assetCollectionTreeCollapsedState\");\nvar _collectionPath = require(\"./helpers/collectionPath\");\n\n},{\"./hooks/useAssetCollectionQuery\":\"gdOmn\",\"./hooks/useAssetCollectionsQuery\":\"8dsp0\",\"./hooks/useSelectedAssetCollection\":\"vXOxM\",\"./hooks/useDeleteAssetCollection\":\"ib5N8\",\"./hooks/useUpdateAssetCollection\":\"kEYlo\",\"./hooks/useCreateAssetCollection\":\"2BBix\",\"./hooks/useSetAssetCollectionParent\":\"fzU3E\",\"./components/AssetCollectionTree\":\"7BonN\",\"./components/CreateAssetCollectionDialog\":\"jJhaJ\",\"./fragments/assetCollection\":\"kvWbo\",\"./queries/assetCollection\":\"23VPu\",\"./queries/assetCollections\":\"8hYDN\",\"./mutations/createAssetCollection\":\"5o791\",\"./mutations/deleteAssetCollection\":\"63adY\",\"./mutations/updateAssetCollection\":\"9NVgz\",\"./mutations/setAssetCollectionParent\":\"k7Lde\",\"./state/selectedAssetCollectionIdState\":\"aNjIF\",\"./state/createAssetCollectionDialogVisibleState\":\"lgH3M\",\"./state/assetCollectionFavouritesState\":\"ca8E9\",\"./state/assetCollectionTreeViewState\":\"dVryh\",\"./state/assetCollectionFocusedState\":\"1oyHw\",\"./state/assetCollectionActiveState\":\"4gDUf\",\"./state/assetCollectionTreeCollapsedState\":\"gAo6H\",\"./helpers/collectionPath\":\"cIMP8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gdOmn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"UNASSIGNED_COLLECTION_ID\", ()=>UNASSIGNED_COLLECTION_ID);\nparcelHelpers.export(exports, \"useAssetCollectionQuery\", ()=>useAssetCollectionQuery);\nvar _client = require(\"@apollo/client\");\nvar _assetCollection = require(\"../queries/assetCollection\");\nconst UNASSIGNED_COLLECTION_ID = \"UNASSIGNED\";\nfunction useAssetCollectionQuery(assetCollectionId) {\n const { data , loading , refetch } = (0, _client.useQuery)((0, _assetCollection.ASSET_COLLECTION), {\n variables: {\n id: assetCollectionId\n },\n skip: !assetCollectionId || assetCollectionId === UNASSIGNED_COLLECTION_ID\n });\n return {\n assetCollection: data?.assetCollection || null,\n loading,\n refetch\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/assetCollection\":\"23VPu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"23VPu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET_COLLECTION\", ()=>ASSET_COLLECTION);\nvar _client = require(\"@apollo/client\");\nvar _assetCollection = require(\"../fragments/assetCollection\");\nconst ASSET_COLLECTION = (0, _client.gql)`\n query ASSET_COLLECTION($id: AssetCollectionId!) {\n assetCollection(id: $id) {\n ...AssetCollectionProps\n }\n }\n ${(0, _assetCollection.ASSET_COLLECTION_FRAGMENT)}\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/assetCollection\":\"kvWbo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kvWbo\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET_COLLECTION_FRAGMENT\", ()=>ASSET_COLLECTION_FRAGMENT);\nvar _client = require(\"@apollo/client\");\nvar _tag = require(\"@media-ui/feature-asset-tags/src/fragments/tag\");\nconst ASSET_COLLECTION_FRAGMENT = (0, _client.gql)`\n fragment AssetCollectionProps on AssetCollection {\n id\n title\n parent {\n id\n title\n }\n tags {\n ...TagProps\n }\n assetCount\n }\n ${(0, _tag.TAG_FRAGMENT)}\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@media-ui/feature-asset-tags/src/fragments/tag\":\"kPOIg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kPOIg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"TAG_FRAGMENT\", ()=>TAG_FRAGMENT);\nvar _client = require(\"@apollo/client\");\nconst TAG_FRAGMENT = (0, _client.gql)`\n fragment TagProps on Tag {\n id\n label\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8dsp0\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useAssetCollectionsQuery);\nvar _client = require(\"@apollo/client\");\nvar _assetCollections = require(\"../queries/assetCollections\");\nfunction useAssetCollectionsQuery() {\n const { data , loading } = (0, _client.useQuery)((0, _assetCollections.ASSET_COLLECTIONS));\n return {\n assetCollections: data?.assetCollections || [],\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/assetCollections\":\"8hYDN\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8hYDN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET_COLLECTIONS\", ()=>ASSET_COLLECTIONS);\nvar _client = require(\"@apollo/client\");\nvar _assetCollection = require(\"../fragments/assetCollection\");\nconst ASSET_COLLECTIONS = (0, _client.gql)`\n query ASSET_COLLECTIONS {\n assetCollections {\n ...AssetCollectionProps\n }\n }\n ${(0, _assetCollection.ASSET_COLLECTION_FRAGMENT)}\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/assetCollection\":\"kvWbo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"vXOxM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nvar _client = require(\"@apollo/client\");\nvar _selectedAssetCollectionIdState = require(\"../state/selectedAssetCollectionIdState\");\nvar _assetCollection = require(\"../queries/assetCollection\");\nconst useSelectedAssetCollection = ()=>{\n const selectedAssetCollectionId = (0, _recoil.useRecoilValue)((0, _selectedAssetCollectionIdState.selectedAssetCollectionIdState));\n const { data } = (0, _client.useQuery)((0, _assetCollection.ASSET_COLLECTION), {\n variables: {\n id: selectedAssetCollectionId\n },\n skip: !selectedAssetCollectionId\n });\n return data?.assetCollection || null;\n};\nexports.default = useSelectedAssetCollection;\n\n},{\"recoil\":\"2QijJ\",\"@apollo/client\":\"bWmmR\",\"../state/selectedAssetCollectionIdState\":\"aNjIF\",\"../queries/assetCollection\":\"23VPu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aNjIF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedAssetCollectionIdState\", ()=>selectedAssetCollectionIdState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst selectedAssetCollectionIdState = (0, _recoil.atom)({\n key: \"SelectedAssetCollectionIdState\",\n default: null,\n effects: [\n (0, _state.localStorageEffect)(\"SelectedAssetCollectionIdState\")\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ib5N8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useDeleteAssetCollection);\nvar _client = require(\"@apollo/client\");\nvar _assetCollections = require(\"../queries/assetCollections\");\nvar _deleteAssetCollection = require(\"../mutations/deleteAssetCollection\");\nfunction useDeleteAssetCollection() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _deleteAssetCollection.DELETE_ASSET_COLLECTION));\n const deleteAssetCollection = (id)=>action({\n variables: {\n id\n },\n optimisticResponse: true,\n update (cache) {\n const { assetCollections } = cache.readQuery({\n query: (0, _assetCollections.ASSET_COLLECTIONS)\n });\n cache.writeQuery({\n query: (0, _assetCollections.ASSET_COLLECTIONS),\n data: {\n assetCollections: assetCollections.filter((c)=>c.id !== id)\n }\n });\n }\n });\n return {\n deleteAssetCollection,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/assetCollections\":\"8hYDN\",\"../mutations/deleteAssetCollection\":\"63adY\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"63adY\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DELETE_ASSET_COLLECTION\", ()=>DELETE_ASSET_COLLECTION);\nvar _client = require(\"@apollo/client\");\nconst DELETE_ASSET_COLLECTION = (0, _client.gql)`\n mutation DeleteAssetCollection($id: AssetCollectionId!) {\n deleteAssetCollection(id: $id)\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kEYlo\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUpdateAssetCollection);\nvar _react = require(\"react\");\nvar _client = require(\"@apollo/client\");\nvar _updateAssetCollection = require(\"../mutations/updateAssetCollection\");\nfunction useUpdateAssetCollection() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _updateAssetCollection.UPDATE_ASSET_COLLECTION));\n const updateAssetCollection = (0, _react.useCallback)(({ assetCollection , title , tags , parent })=>action({\n variables: {\n id: assetCollection.id,\n title,\n tagIds: tags?.map((tag)=>tag.id),\n parent: parent === null ? null : parent?.id\n },\n refetchQueries: [\n \"ASSET_COLLECTIONS\"\n ],\n optimisticResponse: {\n updateAssetCollection: {\n ...assetCollection,\n title,\n ...title ? {\n title\n } : {},\n ...parent ? {\n ...parent\n } : {},\n ...tags ? {\n tags\n } : {}\n }\n }\n }), [\n action\n ]);\n return {\n updateAssetCollection,\n data,\n error,\n loading\n };\n}\n\n},{\"react\":\"6uln9\",\"@apollo/client\":\"bWmmR\",\"../mutations/updateAssetCollection\":\"9NVgz\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9NVgz\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"UPDATE_ASSET_COLLECTION\", ()=>UPDATE_ASSET_COLLECTION);\nvar _client = require(\"@apollo/client\");\nconst UPDATE_ASSET_COLLECTION = (0, _client.gql)`\n mutation UpdateAssetCollection($id: AssetCollectionId!, $title: String, $tagIds: [TagId]) {\n updateAssetCollection(id: $id, title: $title, tagIds: $tagIds)\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2BBix\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useCreateAssetCollection);\nvar _client = require(\"@apollo/client\");\nvar _createAssetCollection = require(\"../mutations/createAssetCollection\");\nvar _assetCollections = require(\"../queries/assetCollections\");\nfunction useCreateAssetCollection() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _createAssetCollection.CREATE_ASSET_COLLECTION));\n const createAssetCollection = (title, parentCollectionId = null)=>action({\n variables: {\n title,\n parent: parentCollectionId\n },\n update (cache, { data }) {\n const { assetCollections } = cache.readQuery({\n query: (0, _assetCollections.ASSET_COLLECTIONS)\n });\n cache.writeQuery({\n query: (0, _assetCollections.ASSET_COLLECTIONS),\n data: {\n assetCollections: assetCollections.concat([\n data?.createAssetCollection\n ])\n }\n });\n }\n });\n return {\n createAssetCollection,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations/createAssetCollection\":\"5o791\",\"../queries/assetCollections\":\"8hYDN\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5o791\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"CREATE_ASSET_COLLECTION\", ()=>CREATE_ASSET_COLLECTION);\nvar _client = require(\"@apollo/client\");\nvar _assetCollection = require(\"../fragments/assetCollection\");\nconst CREATE_ASSET_COLLECTION = (0, _client.gql)`\n mutation CreateAssetCollection($title: String!, $parent: AssetCollectionId) {\n createAssetCollection(title: $title, parent: $parent) {\n ...AssetCollectionProps\n }\n }\n ${(0, _assetCollection.ASSET_COLLECTION_FRAGMENT)}\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/assetCollection\":\"kvWbo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fzU3E\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useSetAssetCollectionParent\", ()=>useSetAssetCollectionParent);\nvar _react = require(\"react\");\nvar _client = require(\"@apollo/client\");\nvar _setAssetCollectionParent = require(\"../mutations/setAssetCollectionParent\");\nfunction useSetAssetCollectionParent() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _setAssetCollectionParent.SET_ASSET_COLLECTION_PARENT));\n const setAssetCollectionParent = (0, _react.useCallback)(({ assetCollection , parent })=>action({\n variables: {\n id: assetCollection.id,\n parent: parent?.id\n },\n optimisticResponse: true,\n update: (cache, { data })=>{\n if (!data) return;\n cache.modify({\n id: cache.identify({\n __typename: \"AssetCollection\",\n id: assetCollection.id\n }),\n broadcast: false,\n fields: {\n parent: ()=>parent ? {\n __ref: cache.identify({\n __typename: \"AssetCollection\",\n id: parent.id\n })\n } : null\n }\n });\n }\n }), [\n action\n ]);\n return {\n setAssetCollectionParent,\n data,\n error,\n loading\n };\n}\n\n},{\"react\":\"6uln9\",\"@apollo/client\":\"bWmmR\",\"../mutations/setAssetCollectionParent\":\"k7Lde\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"k7Lde\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SET_ASSET_COLLECTION_PARENT\", ()=>SET_ASSET_COLLECTION_PARENT);\nvar _client = require(\"@apollo/client\");\nconst SET_ASSET_COLLECTION_PARENT = (0, _client.gql)`\n mutation SetAssetCollectionParent($id: AssetCollectionId!, $parent: AssetCollectionId) {\n setAssetCollectionParent(id: $id, parent: $parent)\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7BonN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _useAssetCountQuery = require(\"@media-ui/core/src/hooks/useAssetCountQuery\");\nvar _useAssetCountQueryDefault = parcelHelpers.interopDefault(_useAssetCountQuery);\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nvar _assetCollectionTreeNode = require(\"./AssetCollectionTreeNode\");\nvar _assetCollectionTreeNodeDefault = parcelHelpers.interopDefault(_assetCollectionTreeNode);\nvar _addAssetCollectionButton = require(\"./AddAssetCollectionButton\");\nvar _addAssetCollectionButtonDefault = parcelHelpers.interopDefault(_addAssetCollectionButton);\nvar _tagTreeNode = require(\"./TagTreeNode\");\nvar _tagTreeNodeDefault = parcelHelpers.interopDefault(_tagTreeNode);\nvar _deleteButton = require(\"./DeleteButton\");\nvar _deleteButtonDefault = parcelHelpers.interopDefault(_deleteButton);\nvar _addTagButton = require(\"./AddTagButton\");\nvar _addTagButtonDefault = parcelHelpers.interopDefault(_addTagButton);\nvar _favouriteButton = require(\"./FavouriteButton\");\nvar _favouriteButtonDefault = parcelHelpers.interopDefault(_favouriteButton);\nvar _assetCollectionTreeViewState = require(\"../state/assetCollectionTreeViewState\");\nvar _assetCollectionFavouritesState = require(\"../state/assetCollectionFavouritesState\");\nvar _useAssetCollectionsQuery = require(\"../hooks/useAssetCollectionsQuery\");\nvar _useAssetCollectionsQueryDefault = parcelHelpers.interopDefault(_useAssetCollectionsQuery);\nvar _useAssetCollectionQuery = require(\"../hooks/useAssetCollectionQuery\");\nvar _assetCollectionTreeModuleCss = require(\"./AssetCollectionTree.module.css\");\nvar _assetCollectionTreeModuleCssDefault = parcelHelpers.interopDefault(_assetCollectionTreeModuleCss);\nconst AssetCollectionTree = ()=>{\n const { translate } = (0, _core.useIntl)();\n const { assetCollections } = (0, _useAssetCollectionsQueryDefault.default)();\n const selectedAssetSource = (0, _featureAssetSources.useSelectedAssetSource)();\n const { tags } = (0, _featureAssetTags.useTagsQuery)();\n const { assetCount: totalAssetCount } = (0, _useAssetCountQueryDefault.default)(true);\n const [assetCollectionTreeView, setAssetCollectionTreeViewState] = (0, _recoil.useRecoilState)((0, _assetCollectionTreeViewState.assetCollectionTreeViewState));\n const favourites = (0, _recoil.useRecoilValue)((0, _assetCollectionFavouritesState.assetCollectionFavouritesState));\n const assetCollectionsIdWithoutParent = (0, _react.useMemo)(()=>{\n return assetCollections.filter((assetCollection)=>!assetCollection.parent).map(({ id })=>id);\n }, [\n assetCollections\n ]);\n const favouriteAssetCollections = (0, _react.useMemo)(()=>{\n const favouriteIds = Object.keys(favourites);\n return assetCollections.filter(({ id })=>favouriteIds.includes(id));\n }, [\n assetCollections,\n favourites\n ]);\n const viewOptions = (0, _react.useMemo)(()=>[\n {\n value: \"collections\",\n label: translate(\"assetCollectionList.viewMode.collections\", \"Collections\"),\n icon: \"folder\"\n },\n {\n value: \"favourites\",\n label: translate(\"assetCollectionList.viewMode.favourites\", \"Favourites\"),\n icon: \"star\"\n }\n ], [\n translate\n ]);\n if (!selectedAssetSource?.supportsCollections) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"nav\", {\n className: (0, _assetCollectionTreeModuleCssDefault.default).assetCollectionTree\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.SelectBox), {\n className: (0, _assetCollectionTreeModuleCssDefault.default).viewSelection,\n options: viewOptions,\n value: assetCollectionTreeView,\n optionValueField: \"value\",\n onValueChange: setAssetCollectionTreeViewState\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _assetCollectionTreeModuleCssDefault.default).toolbar\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _addAssetCollectionButtonDefault.default), null), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _addTagButtonDefault.default), null), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _deleteButtonDefault.default), null), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _favouriteButtonDefault.default), null)), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Tree), {\n className: (0, _assetCollectionTreeModuleCssDefault.default).tree\n }, assetCollectionTreeView === \"favourites\" ? favouriteAssetCollections.map((assetCollection)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _assetCollectionTreeNodeDefault.default), {\n key: assetCollection.id,\n assetCollectionId: assetCollection.id,\n level: 1,\n renderChildCollections: false\n })) : /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _assetCollectionTreeNodeDefault.default), {\n label: translate(\"assetCollectionList.showAll\", \"All\") + ` (${totalAssetCount})`,\n title: translate(\"assetCollectionList.showAll.title\", \"Show assets for all collections\"),\n level: 1,\n assetCollectionId: null\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _assetCollectionTreeNodeDefault.default), {\n label: translate(\"assetCollectionList.unassigned\", \"Unassigned\"),\n title: translate(\"assetCollectionList.unassigned.title\", \"Show assets which are not assigned to any collection\"),\n level: 2,\n assetCollectionId: (0, _useAssetCollectionQuery.UNASSIGNED_COLLECTION_ID)\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _tagTreeNodeDefault.default), {\n tagId: \"UNTAGGED\",\n label: translate(\"assetCollectionList.untagged\", \"Untagged\"),\n assetCollectionId: null,\n level: 2,\n customIconComponent: /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.IconStack), {\n primaryIcon: \"tag\",\n secondaryIcon: \"times\"\n })\n }), tags?.map((tag)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _tagTreeNodeDefault.default), {\n key: tag.id,\n tagId: tag.id,\n label: tag.label,\n assetCollectionId: null,\n level: 2\n }))), assetCollectionsIdWithoutParent.map((assetCollectionId)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _assetCollectionTreeNodeDefault.default), {\n key: assetCollectionId,\n assetCollectionId: assetCollectionId,\n level: 1\n })))));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetCollectionTree);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/core/src/hooks/useAssetCountQuery\":\"iBCGl\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"./AssetCollectionTreeNode\":\"8Mr2E\",\"./AddAssetCollectionButton\":\"gqblk\",\"./TagTreeNode\":\"5lbSx\",\"./DeleteButton\":\"fWsud\",\"./AddTagButton\":\"3H6D1\",\"./FavouriteButton\":\"iGQEL\",\"../state/assetCollectionTreeViewState\":\"dVryh\",\"../state/assetCollectionFavouritesState\":\"ca8E9\",\"../hooks/useAssetCollectionsQuery\":\"8dsp0\",\"../hooks/useAssetCollectionQuery\":\"gdOmn\",\"./AssetCollectionTree.module.css\":\"gsjQK\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8Mr2E\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _dndTypes = require(\"@media-ui/core/src/constants/dndTypes\");\nvar _dndTypesDefault = parcelHelpers.interopDefault(_dndTypes);\nvar _state = require(\"@media-ui/core/src/state\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _tagTreeNode = require(\"./TagTreeNode\");\nvar _tagTreeNodeDefault = parcelHelpers.interopDefault(_tagTreeNode);\nvar _useAssetCollectionQuery = require(\"../hooks/useAssetCollectionQuery\");\nvar _useAssetCollectionsQuery = require(\"../hooks/useAssetCollectionsQuery\");\nvar _useAssetCollectionsQueryDefault = parcelHelpers.interopDefault(_useAssetCollectionsQuery);\nvar _assetCollectionFavouritesState = require(\"../state/assetCollectionFavouritesState\");\nvar _assetCollectionTreeCollapsedState = require(\"../state/assetCollectionTreeCollapsedState\");\nvar _assetCollectionFocusedState = require(\"../state/assetCollectionFocusedState\");\nvar _assetCollectionActiveState = require(\"../state/assetCollectionActiveState\");\nconst AssetCollectionTreeNode = ({ assetCollectionId , label =\"n/a\" , title =\"n/a\" , level , children =null , renderChildCollections =true })=>{\n const { assetCollection } = (0, _useAssetCollectionQuery.useAssetCollectionQuery)(assetCollectionId);\n const { assetCollections } = (0, _useAssetCollectionsQueryDefault.default)();\n const [collapsed, setCollapsed] = (0, _recoil.useRecoilState)((0, _assetCollectionTreeCollapsedState.assetCollectionTreeCollapsedItemState)(assetCollectionId));\n const selectAssetCollectionAndTag = (0, _recoil.useSetRecoilState)((0, _state.selectedAssetCollectionAndTagState));\n const isFocused = (0, _recoil.useRecoilValue)((0, _assetCollectionFocusedState.assetCollectionFocusedState)(assetCollectionId));\n const isFavourite = (0, _recoil.useRecoilValue)((0, _assetCollectionFavouritesState.assetCollectionFavouriteState)(assetCollectionId));\n const isActive = (0, _recoil.useRecoilValue)((0, _assetCollectionActiveState.assetCollectionActiveState)(assetCollectionId));\n const handleClick = (0, _react.useCallback)(()=>{\n selectAssetCollectionAndTag({\n assetCollectionId,\n tagId: null\n });\n setCollapsed(false);\n }, [\n assetCollectionId,\n selectAssetCollectionAndTag,\n setCollapsed\n ]);\n const childCollectionIds = (0, _react.useMemo)(()=>{\n return assetCollections?.filter((assetCollection)=>(assetCollection.parent?.id || null) == assetCollectionId).map(({ id })=>id) || [];\n }, [\n assetCollectionId,\n assetCollections\n ]);\n const CollectionIcon = assetCollectionId === (0, _useAssetCollectionQuery.UNASSIGNED_COLLECTION_ID) ? /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.IconStack), {\n primaryIcon: \"folder\",\n secondaryIcon: \"times\"\n }) : /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.IconStack), {\n primaryIcon: !assetCollectionId ? \"globe\" : !collapsed && (assetCollection?.tags.length > 0 || childCollectionIds.length > 0) ? \"folder-open\" : \"folder\",\n secondaryIcon: isFavourite ? \"star\" : undefined\n });\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Tree).Node, null, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Tree).Node.Header, {\n isActive: isActive || isFocused,\n isFocused: isFocused && !isActive,\n isLoading: false,\n hasError: false,\n label: (assetCollection?.title || label) + (assetCollection?.assetCount >= 0 ? ` (${assetCollection?.assetCount})` : \"\"),\n title: assetCollection?.title || title,\n isHiddenInIndex: assetCollection?.assetCount === 0,\n customIconComponent: CollectionIcon,\n nodeDndType: (0, _dndTypesDefault.default).COLLECTION,\n level: level,\n onToggle: ()=>setCollapsed(!collapsed),\n onClick: handleClick,\n isCollapsed: assetCollection?.tags.length === 0 && childCollectionIds.length === 0 || collapsed,\n hasChildren: children !== null || assetCollection?.tags.length > 0 || renderChildCollections && childCollectionIds.length > 0\n }), !collapsed && assetCollection && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, renderChildCollections && childCollectionIds.map((childCollectionId)=>/*#__PURE__*/ (0, _reactDefault.default).createElement(AssetCollectionTreeNode, {\n key: childCollectionId,\n assetCollectionId: childCollectionId,\n level: level + 1\n })), assetCollection.tags?.map((tag)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _tagTreeNodeDefault.default), {\n key: tag.id,\n tagId: tag.id,\n label: tag.label,\n assetCollectionId: assetCollectionId,\n level: level + 1\n }))), !collapsed && children);\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetCollectionTreeNode);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core/src/constants/dndTypes\":\"4bAiT\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/core/src/components\":\"5LFSk\",\"./TagTreeNode\":\"5lbSx\",\"../hooks/useAssetCollectionQuery\":\"gdOmn\",\"../hooks/useAssetCollectionsQuery\":\"8dsp0\",\"../state/assetCollectionFavouritesState\":\"ca8E9\",\"../state/assetCollectionTreeCollapsedState\":\"gAo6H\",\"../state/assetCollectionFocusedState\":\"1oyHw\",\"../state/assetCollectionActiveState\":\"4gDUf\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4bAiT\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nconst dndTypes = {\n TAG: \"neos-tree-tag\",\n COLLECTION: \"neos-tree-collection\"\n};\nexports.default = dndTypes;\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5lbSx\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _dndTypes = require(\"@media-ui/core/src/constants/dndTypes\");\nvar _dndTypesDefault = parcelHelpers.interopDefault(_dndTypes);\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\n// This state selector provides the focused state for each individual asset collection\nconst tagFocusedState = (0, _recoil.selectorFamily)({\n key: \"TagFocusedState\",\n get: ({ assetCollectionId , tagId })=>({ get })=>get((0, _featureAssetCollections.selectedAssetCollectionIdState)) === assetCollectionId && get((0, _featureAssetTags.selectedTagIdState)) === tagId\n});\nconst TagTreeNode = ({ tagId , assetCollectionId , label , level , icon =\"tag\" , customIconComponent })=>{\n const selectAssetCollectionAndTag = (0, _recoil.useSetRecoilState)((0, _state.selectedAssetCollectionAndTagState));\n const isFocused = (0, _recoil.useRecoilValue)(tagFocusedState({\n assetCollectionId,\n tagId\n }));\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Tree).Node, null, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Tree).Node.Header, {\n isActive: isFocused,\n isCollapsed: true,\n isFocused: isFocused,\n isLoading: false,\n hasError: false,\n label: label,\n title: label,\n icon: icon,\n customIconComponent: customIconComponent,\n nodeDndType: (0, _dndTypesDefault.default).TAG,\n level: level,\n onClick: ()=>selectAssetCollectionAndTag({\n tagId,\n assetCollectionId\n }),\n hasChildren: false\n }));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(TagTreeNode);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core/src/constants/dndTypes\":\"4bAiT\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ca8E9\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"assetCollectionFavouritesState\", ()=>assetCollectionFavouritesState);\nparcelHelpers.export(exports, \"assetCollectionFavouriteState\", ()=>assetCollectionFavouriteState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst assetCollectionFavouritesState = (0, _recoil.atom)({\n key: \"AssetCollectionFavouritesState\",\n default: {},\n effects: [\n (0, _state.localStorageEffect)(\"AssetCollectionFavouritesState\")\n ]\n});\nconst assetCollectionFavouriteState = (0, _recoil.selectorFamily)({\n key: \"AssetCollectionFavouriteState\",\n get: (assetCollectionId)=>({ get })=>!!get(assetCollectionFavouritesState)[assetCollectionId],\n set: (assetCollectionId)=>({ set }, newValue)=>set(assetCollectionFavouritesState, (prevState)=>{\n const newState = {\n ...prevState,\n [assetCollectionId]: newValue\n };\n if (newState[assetCollectionId] === false) delete newState[assetCollectionId];\n return newState;\n })\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gAo6H\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"assetCollectionTreeCollapsedState\", ()=>assetCollectionTreeCollapsedState);\nparcelHelpers.export(exports, \"assetCollectionTreeCollapsedItemState\", ()=>assetCollectionTreeCollapsedItemState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst assetCollectionTreeCollapsedState = (0, _recoil.atom)({\n key: \"AssetCollectionTreeState\",\n default: {},\n effects: [\n (0, _state.localStorageEffect)(\"AssetCollectionTreeState\")\n ]\n});\nconst assetCollectionTreeCollapsedItemState = (0, _recoil.selectorFamily)({\n key: \"AssetCollectionTreeCollapsedProxyState\",\n get: (assetCollectionId)=>({ get })=>get(assetCollectionTreeCollapsedState)[assetCollectionId] ?? true,\n set: (assetCollectionId)=>({ set }, newValue)=>set(assetCollectionTreeCollapsedState, (prevState)=>{\n const newState = {\n ...prevState,\n [assetCollectionId]: newValue\n };\n if (newState[assetCollectionId] === true) delete newState[assetCollectionId];\n return newState;\n })\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1oyHw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"assetCollectionFocusedState\", ()=>assetCollectionFocusedState);\nvar _recoil = require(\"recoil\");\nvar _selectedAssetCollectionIdState = require(\"./selectedAssetCollectionIdState\");\nconst assetCollectionFocusedState = (0, _recoil.selectorFamily)({\n key: \"AssetCollectionFocusedState\",\n get: (assetCollectionId)=>({ get })=>get((0, _selectedAssetCollectionIdState.selectedAssetCollectionIdState)) === assetCollectionId\n});\n\n},{\"recoil\":\"2QijJ\",\"./selectedAssetCollectionIdState\":\"aNjIF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4gDUf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"assetCollectionActiveState\", ()=>assetCollectionActiveState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst assetCollectionActiveState = (0, _recoil.selectorFamily)({\n key: \"AssetCollectionActiveState\",\n get: (assetCollectionId)=>({ get })=>{\n const { assetCollectionId: selectedAssetCollectionId , tagId: selectedTagId } = get((0, _state.selectedAssetCollectionAndTagState));\n return assetCollectionId === selectedAssetCollectionId && !!selectedTagId;\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gqblk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _createAssetCollectionDialogVisibleState = require(\"../state/createAssetCollectionDialogVisibleState\");\nvar _assetCollectionTreeViewState = require(\"../state/assetCollectionTreeViewState\");\nvar _addAssetCollectionButtonModuleCss = require(\"./AddAssetCollectionButton.module.css\");\nvar _addAssetCollectionButtonModuleCssDefault = parcelHelpers.interopDefault(_addAssetCollectionButtonModuleCss);\nconst AddAssetCollectionButton = ()=>{\n const { translate } = (0, _core.useIntl)();\n const setCreateAssetCollectionDialogState = (0, _recoil.useSetRecoilState)((0, _createAssetCollectionDialogVisibleState.createAssetCollectionDialogVisibleState));\n const assetCollectionTreeView = (0, _recoil.useRecoilValue)((0, _assetCollectionTreeViewState.assetCollectionTreeViewState));\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"brand\",\n title: translate(\"assetCollectionTree.toolbar.createAssetCollection\", \"Create new asset collection\"),\n onClick: ()=>setCreateAssetCollectionDialogState(true),\n disabled: assetCollectionTreeView !== \"collections\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: \"fa-layers fa-fw\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"folder\"\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"plus\",\n color: \"primaryBlue\",\n className: (0, _addAssetCollectionButtonModuleCssDefault.default).plusIcon\n })));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AddAssetCollectionButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../state/createAssetCollectionDialogVisibleState\":\"lgH3M\",\"../state/assetCollectionTreeViewState\":\"dVryh\",\"./AddAssetCollectionButton.module.css\":\"25Dt0\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lgH3M\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createAssetCollectionDialogVisibleState\", ()=>createAssetCollectionDialogVisibleState);\nvar _recoil = require(\"recoil\");\nconst createAssetCollectionDialogVisibleState = (0, _recoil.atom)({\n key: \"createAssetCollectionDialogState\",\n default: false\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dVryh\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"assetCollectionTreeViewState\", ()=>assetCollectionTreeViewState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst assetCollectionTreeViewState = (0, _recoil.atom)({\n key: \"AssetCollectionTreeViewState\",\n default: \"collections\",\n effects: [\n (0, _state.localStorageEffect)(\"AssetCollectionTreeViewState\")\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"25Dt0\":[function(require,module,exports) {\nmodule.exports[\"plusIcon\"] = `i_NNWq_plusIcon`;\n\n},{}],\"fWsud\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _useDeleteAssetCollection = require(\"../hooks/useDeleteAssetCollection\");\nvar _useDeleteAssetCollectionDefault = parcelHelpers.interopDefault(_useDeleteAssetCollection);\nvar _useSelectedAssetCollection = require(\"../hooks/useSelectedAssetCollection\");\nvar _useSelectedAssetCollectionDefault = parcelHelpers.interopDefault(_useSelectedAssetCollection);\nconst DeleteButton = ()=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const { approvalAttainmentStrategy } = (0, _core.useMediaUi)();\n const selectedAssetCollection = (0, _useSelectedAssetCollectionDefault.default)();\n const selectedTag = (0, _featureAssetTags.useSelectedTag)();\n const { deleteTag } = (0, _featureAssetTags.useDeleteTag)();\n const { deleteAssetCollection } = (0, _useDeleteAssetCollectionDefault.default)();\n const setSelectedAssetCollectionAndTag = (0, _recoil.useSetRecoilState)((0, _state.selectedAssetCollectionAndTagState));\n const onClickDelete = (0, _react.useCallback)(async ()=>{\n if (selectedTag) {\n const canDeleteTag = await approvalAttainmentStrategy.obtainApprovalToDeleteTag({\n tag: selectedTag\n });\n if (!canDeleteTag) return;\n // TODO: Implement `obtainApprovalToDeleteCollection` for deleting\n const confirm = window.confirm(translate(\"action.deleteTag.confirm\", \"Do you really want to delete the tag \" + selectedTag.label, [\n selectedTag.label\n ]));\n if (!confirm) return;\n deleteTag(selectedTag.id).then(()=>{\n Notify.ok(translate(\"action.deleteTag.success\", \"The tag has been deleted\"));\n setSelectedAssetCollectionAndTag(({ assetCollectionId })=>({\n tagId: null,\n assetCollectionId\n }));\n }).catch(({ message })=>{\n Notify.error(translate(\"action.deleteTag.error\", \"Error while trying to delete the tag\"), message);\n });\n } else if (selectedAssetCollection) {\n const canDeleteAssetCollection = await approvalAttainmentStrategy.obtainApprovalToDeleteAssetCollection({\n assetCollection: selectedAssetCollection\n });\n if (!canDeleteAssetCollection) return;\n deleteAssetCollection(selectedAssetCollection.id).then(()=>{\n Notify.ok(translate(\"assetCollectionActions.delete.success\", \"Asset collection was successfully deleted\"));\n setSelectedAssetCollectionAndTag({\n tagId: null,\n assetCollectionId: null\n });\n }).catch((error)=>{\n Notify.error(translate(\"assetCollectionActions.delete.error\", \"Failed to delete asset collection\"), error.message);\n });\n }\n }, [\n selectedTag,\n selectedAssetCollection,\n translate,\n deleteTag,\n Notify,\n setSelectedAssetCollectionAndTag,\n approvalAttainmentStrategy,\n deleteAssetCollection\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.IconButton), {\n icon: \"trash-alt\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"error\",\n disabled: !selectedAssetCollection && !selectedTag,\n title: translate(\"assetCollectionTree.toolbar.delete\", \"Delete\"),\n onClick: onClickDelete\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(DeleteButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"../hooks/useDeleteAssetCollection\":\"ib5N8\",\"../hooks/useSelectedAssetCollection\":\"vXOxM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3H6D1\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _addTagButtonModuleCss = require(\"./AddTagButton.module.css\");\nvar _addTagButtonModuleCssDefault = parcelHelpers.interopDefault(_addTagButtonModuleCss);\nconst AddTagButton = ()=>{\n const { translate } = (0, _core.useIntl)();\n const setCreateTagDialogState = (0, _recoil.useSetRecoilState)((0, _featureAssetTags.createTagDialogState));\n const selectedTagId = (0, _recoil.useRecoilValue)((0, _featureAssetTags.selectedTagIdState));\n const onClickCreate = (0, _react.useCallback)(()=>{\n setCreateTagDialogState({\n label: \"\",\n visible: true\n });\n }, [\n setCreateTagDialogState\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"brand\",\n title: translate(\"assetCollectionTree.toolbar.createTag\", \"Create new tag\"),\n onClick: onClickCreate,\n disabled: selectedTagId !== null\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: \"fa-layers fa-fw\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"tag\"\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"plus\",\n color: \"primaryBlue\",\n className: (0, _addTagButtonModuleCssDefault.default).plusIcon\n })));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AddTagButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"./AddTagButton.module.css\":\"e71wM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"e71wM\":[function(require,module,exports) {\nmodule.exports[\"plusIcon\"] = `w3jxYa_plusIcon`;\n\n},{}],\"iGQEL\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _selectedAssetCollectionIdState = require(\"../state/selectedAssetCollectionIdState\");\nvar _assetCollectionFavouritesState = require(\"../state/assetCollectionFavouritesState\");\nconst FavouriteButton = ()=>{\n const { translate } = (0, _core.useIntl)();\n const selectedAssetCollectionId = (0, _recoil.useRecoilValue)((0, _selectedAssetCollectionIdState.selectedAssetCollectionIdState));\n const [isFavourite, setIsFavourite] = (0, _recoil.useRecoilState)((0, _assetCollectionFavouritesState.assetCollectionFavouriteState)(selectedAssetCollectionId));\n const toggleFavourite = (0, _react.useCallback)(()=>{\n setIsFavourite((prev)=>!prev);\n }, [\n setIsFavourite\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.IconButton), {\n icon: \"star\",\n size: \"regular\",\n style: isFavourite ? \"brand\" : \"transparent\",\n hoverStyle: \"brand\",\n disabled: !selectedAssetCollectionId,\n title: translate(\"assetCollectionTree.toolbar.favourite\", \"Toggle favourite\"),\n onClick: toggleFavourite\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(FavouriteButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../state/selectedAssetCollectionIdState\":\"aNjIF\",\"../state/assetCollectionFavouritesState\":\"ca8E9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gsjQK\":[function(require,module,exports) {\nmodule.exports[\"assetCollectionTree\"] = `YYR6BW_assetCollectionTree`;\nmodule.exports[\"toolbar\"] = `YYR6BW_toolbar`;\nmodule.exports[\"tree\"] = `YYR6BW_tree`;\nmodule.exports[\"viewSelection\"] = `YYR6BW_viewSelection`;\n\n},{}],\"jJhaJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _useCreateAssetCollection = require(\"../hooks/useCreateAssetCollection\");\nvar _useCreateAssetCollectionDefault = parcelHelpers.interopDefault(_useCreateAssetCollection);\nvar _useSelectedAssetCollection = require(\"../hooks/useSelectedAssetCollection\");\nvar _useSelectedAssetCollectionDefault = parcelHelpers.interopDefault(_useSelectedAssetCollection);\nvar _createAssetCollectionDialogVisibleState = require(\"../state/createAssetCollectionDialogVisibleState\");\nvar _createAssetCollectionDialogModuleCss = require(\"./CreateAssetCollectionDialog.module.css\");\nvar _createAssetCollectionDialogModuleCssDefault = parcelHelpers.interopDefault(_createAssetCollectionDialogModuleCss);\nconst CreateAssetCollectionDialog = ()=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const [dialogVisible, setDialogVisible] = (0, _recoil.useRecoilState)((0, _createAssetCollectionDialogVisibleState.createAssetCollectionDialogVisibleState));\n const [title, setTitle] = (0, _react.useState)(\"\");\n const { createAssetCollection } = (0, _useCreateAssetCollectionDefault.default)();\n const selectedAssetCollection = (0, _useSelectedAssetCollectionDefault.default)();\n const handleChange = (0, _react.useCallback)((value)=>{\n setTitle(value.trim());\n }, []);\n const handleRequestClose = (0, _react.useCallback)(()=>setDialogVisible(false), [\n setDialogVisible\n ]);\n const handleCreate = (0, _react.useCallback)(()=>{\n setDialogVisible(false);\n createAssetCollection(title, selectedAssetCollection?.id).then(()=>{\n Notify.ok(translate(\"assetCollectionActions.create.success\", \"Asset collection was created\"));\n }).catch((error)=>{\n Notify.error(translate(\"assetCollectionActions.create.error\", \"Failed to create asset collection\"), error.message);\n });\n }, [\n setDialogVisible,\n createAssetCollection,\n title,\n selectedAssetCollection?.id,\n Notify,\n translate\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.Dialog), {\n isOpen: dialogVisible,\n title: translate(\"createAssetCollectionDialog.title\", 'Create Asset Collection in \"{location}\"', {\n location: selectedAssetCollection?.title || \"Root\"\n }),\n onRequestClose: handleRequestClose,\n actions: [\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: handleRequestClose\n }, translate(\"general.cancel\", \"Cancel\")),\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"upload\",\n style: \"success\",\n hoverStyle: \"success\",\n disabled: !title,\n onClick: handleCreate\n }, translate(\"general.create\", \"Create\"))\n ]\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _createAssetCollectionDialogModuleCssDefault.default).formBody\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Label), null, translate(\"general.title\", \"Title\")), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.TextInput), {\n setFocus: true,\n type: \"text\",\n onChange: handleChange,\n onEnterKey: title ? handleCreate : null\n })));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(CreateAssetCollectionDialog);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"../hooks/useCreateAssetCollection\":\"2BBix\",\"../hooks/useSelectedAssetCollection\":\"vXOxM\",\"../state/createAssetCollectionDialogVisibleState\":\"lgH3M\",\"./CreateAssetCollectionDialog.module.css\":\"E0t4T\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"E0t4T\":[function(require,module,exports) {\nmodule.exports[\"formBody\"] = `YYDVBq_formBody`;\n\n},{}],\"cIMP8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"collectionPath\", ()=>collectionPath);\nfunction collectionPath(collection, collections) {\n const path = [];\n // Build the absolute path from the given collection to the root\n let parentCollection = collection;\n while(parentCollection){\n path.push({\n title: parentCollection.title,\n id: parentCollection.id\n });\n parentCollection = parentCollection.parent ? collections.find(({ id })=>id === parentCollection.parent.id) : null;\n }\n return path.reverse();\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1A4U6\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _tag = require(\"../fragments/tag\");\nconst TAGS = (0, _client.gql)`\n query TAGS {\n tags {\n ...TagProps\n }\n }\n ${(0, _tag.TAG_FRAGMENT)}\n`;\nexports.default = TAGS;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/tag\":\"kPOIg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cfIQU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _tag = require(\"../fragments/tag\");\nconst CREATE_TAG = (0, _client.gql)`\n mutation CreateTag($label: TagLabel!, $assetCollectionId: AssetCollectionId) {\n createTag(label: $label, assetCollectionId: $assetCollectionId) {\n ...TagProps\n }\n }\n ${(0, _tag.TAG_FRAGMENT)}\n`;\nexports.default = CREATE_TAG;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/tag\":\"kPOIg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aHwn1\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useDeleteTag);\nvar _client = require(\"@apollo/client\");\nvar _recoil = require(\"recoil\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _selectedTagIdState = require(\"../state/selectedTagIdState\");\nvar _selectedTagIdStateDefault = parcelHelpers.interopDefault(_selectedTagIdState);\nvar _tags = require(\"../queries/tags\");\nvar _tagsDefault = parcelHelpers.interopDefault(_tags);\nvar _deleteTag = require(\"../mutations/deleteTag\");\nvar _deleteTagDefault = parcelHelpers.interopDefault(_deleteTag);\nfunction useDeleteTag() {\n const [action, { error , data }] = (0, _client.useMutation)((0, _deleteTagDefault.default));\n const [selectedTagId, setSelectedTagId] = (0, _recoil.useRecoilState)((0, _selectedTagIdStateDefault.default));\n const deleteTag = (id)=>action({\n variables: {\n id\n },\n optimisticResponse: {\n __typename: \"Mutation\",\n deleteTag: true\n },\n update: (proxy, { data: { deleteTag: success } })=>{\n if (!success) return;\n const { assetCollections } = proxy.readQuery({\n query: (0, _featureAssetCollections.ASSET_COLLECTIONS)\n });\n const updatedAssetCollections = assetCollections.map((assetCollection)=>{\n return {\n ...assetCollection,\n tags: assetCollection.tags.filter((tag)=>tag?.id !== id)\n };\n });\n proxy.writeQuery({\n query: (0, _featureAssetCollections.ASSET_COLLECTIONS),\n data: {\n assetCollections: updatedAssetCollections\n }\n });\n const { tags } = proxy.readQuery({\n query: (0, _tagsDefault.default)\n });\n proxy.writeQuery({\n query: (0, _tagsDefault.default),\n data: {\n tags: tags.filter((tag)=>tag.id !== id)\n }\n });\n }\n }).then((success)=>{\n // Unselect currently selected tag if it was just deleted\n if (success && id === selectedTagId) setSelectedTagId(null);\n });\n return {\n deleteTag,\n data,\n error\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"recoil\":\"2QijJ\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"../state/selectedTagIdState\":\"g9YVf\",\"../queries/tags\":\"1A4U6\",\"../mutations/deleteTag\":\"e886C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"g9YVf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst selectedTagIdState = (0, _recoil.atom)({\n key: \"SelectedTagIdState\",\n default: null,\n effects: [\n (0, _state.localStorageEffect)(\"SelectedTagIdState\")\n ]\n});\nexports.default = selectedTagIdState;\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"e886C\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst DELETE_TAG = (0, _client.gql)`\n mutation DeleteTag($id: TagId!) {\n deleteTag(id: $id)\n }\n`;\nexports.default = DELETE_TAG;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lHPwJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nvar _client = require(\"@apollo/client\");\nvar _selectedTagIdState = require(\"../state/selectedTagIdState\");\nvar _selectedTagIdStateDefault = parcelHelpers.interopDefault(_selectedTagIdState);\nvar _tag = require(\"../queries/tag\");\nvar _tagDefault = parcelHelpers.interopDefault(_tag);\nconst useSelectedTag = ()=>{\n const selectedTagId = (0, _recoil.useRecoilValue)((0, _selectedTagIdStateDefault.default));\n const { data } = (0, _client.useQuery)((0, _tagDefault.default), {\n variables: {\n id: selectedTagId\n },\n skip: !selectedTagId\n });\n return data?.tag || null;\n};\nexports.default = useSelectedTag;\n\n},{\"recoil\":\"2QijJ\",\"@apollo/client\":\"bWmmR\",\"../state/selectedTagIdState\":\"g9YVf\",\"../queries/tag\":\"dJAPg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dJAPg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _tag = require(\"../fragments/tag\");\nconst TAG = (0, _client.gql)`\n query TAG($id: TagId!) {\n tag(id: $id) {\n ...TagProps\n }\n }\n ${(0, _tag.TAG_FRAGMENT)}\n`;\nexports.default = TAG;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/tag\":\"kPOIg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"slPqE\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useAssetTagsQuery);\nvar _client = require(\"@apollo/client\");\nvar _tags = require(\"../queries/tags\");\nvar _tagsDefault = parcelHelpers.interopDefault(_tags);\nfunction useAssetTagsQuery() {\n const { data , loading } = (0, _client.useQuery)((0, _tagsDefault.default));\n return {\n tags: data?.tags || [],\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/tags\":\"1A4U6\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fhZdO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUpdateTag);\nvar _client = require(\"@apollo/client\");\nvar _updateTag = require(\"../mutations/updateTag\");\nvar _updateTagDefault = parcelHelpers.interopDefault(_updateTag);\nfunction useUpdateTag() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _updateTagDefault.default));\n const updateTag = ({ tag , label })=>action({\n variables: {\n id: tag.id,\n label\n },\n optimisticResponse: {\n updateTag: {\n ...tag,\n label,\n ...label ? {\n label\n } : {}\n }\n }\n });\n return {\n updateTag,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations/updateTag\":\"gzxHr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gzxHr\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _tag = require(\"../fragments/tag\");\nconst UPDATE_TAG = (0, _client.gql)`\n mutation UpdateTag($id: TagId!, $label: String) {\n updateTag(id: $id, label: $label) {\n ...TagProps\n }\n }\n ${(0, _tag.TAG_FRAGMENT)}\n`;\nexports.default = UPDATE_TAG;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/tag\":\"kPOIg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"imken\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _createTagDialogState = require(\"../state/createTagDialogState\");\nvar _createTagDialogStateDefault = parcelHelpers.interopDefault(_createTagDialogState);\nvar _createTagDialogModuleCss = require(\"./CreateTagDialog.module.css\");\nvar _createTagDialogModuleCssDefault = parcelHelpers.interopDefault(_createTagDialogModuleCss);\nconst CreateTagDialog = ()=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const selectedAssetCollection = (0, _featureAssetCollections.useSelectedAssetCollection)();\n const [dialogState, setDialogState] = (0, _recoil.useRecoilState)((0, _createTagDialogStateDefault.default));\n const createPossible = !!(dialogState.label && dialogState.label.trim());\n const { createTag } = (0, _featureAssetTags.useCreateTag)();\n const handleRequestClose = (0, _react.useCallback)(()=>setDialogState({\n visible: false,\n label: \"\"\n }), [\n setDialogState\n ]);\n const handleCreate = (0, _react.useCallback)(()=>{\n setDialogState((state)=>({\n ...state,\n visible: false\n }));\n createTag(dialogState.label, selectedAssetCollection?.id).then(()=>{\n Notify.ok(translate(\"assetCollectionActions.create.success\", \"Tag was created\"));\n }).catch((error)=>{\n Notify.error(translate(\"assetCollectionActions.create.error\", \"Failed to create tag\"), error.message);\n });\n }, [\n Notify,\n setDialogState,\n createTag,\n dialogState,\n translate,\n selectedAssetCollection\n ]);\n const setLabel = (0, _react.useCallback)((label)=>setDialogState((state)=>({\n ...state,\n label\n })), [\n setDialogState\n ]);\n return /*#__PURE__*/ _react.createElement((0, _components.Dialog), {\n isOpen: dialogState.visible,\n title: translate(\"createTagDialog.title\", \"Create tag\"),\n onRequestClose: handleRequestClose,\n actions: [\n /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: handleRequestClose\n }, translate(\"general.cancel\", \"Cancel\")),\n /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n key: \"upload\",\n style: \"success\",\n hoverStyle: \"success\",\n disabled: !createPossible,\n onClick: handleCreate\n }, translate(\"general.create\", \"Create\"))\n ]\n }, /*#__PURE__*/ _react.createElement(\"div\", {\n className: (0, _createTagDialogModuleCssDefault.default).formBody\n }, /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Label), null, translate(\"general.label\", \"Label\")), /*#__PURE__*/ _react.createElement((0, _reactUiComponents.TextInput), {\n setFocus: true,\n type: \"text\",\n value: dialogState.label,\n onChange: setLabel,\n onEnterKey: createPossible ? handleCreate : null\n })));\n};\nexports.default = /*#__PURE__*/ _react.memo(CreateTagDialog);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/core/src/components\":\"5LFSk\",\"../state/createTagDialogState\":\"hOCbE\",\"./CreateTagDialog.module.css\":\"bYVqP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hOCbE\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nconst createTagDialogState = (0, _recoil.atom)({\n key: \"createTagDialogState\",\n default: {\n visible: false,\n label: \"\"\n }\n});\nexports.default = createTagDialogState;\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bYVqP\":[function(require,module,exports) {\nmodule.exports[\"formBody\"] = `CkrZ6q_formBody`;\n\n},{}],\"hHDiM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"clipboardVisibleState\", ()=>(0, _clipboardVisibleState.clipboardVisibleState));\nparcelHelpers.export(exports, \"clipboardItemState\", ()=>(0, _clipboardState.clipboardItemState));\nparcelHelpers.export(exports, \"clipboardState\", ()=>(0, _clipboardState.clipboardState));\nparcelHelpers.export(exports, \"ClipboardToggle\", ()=>(0, _clipboardToggleDefault.default));\nparcelHelpers.export(exports, \"ClipboardActions\", ()=>(0, _clipboardActionsDefault.default));\nparcelHelpers.export(exports, \"ClipboardWatcher\", ()=>(0, _clipboardWatcherDefault.default));\nvar _clipboardVisibleState = require(\"./state/clipboardVisibleState\");\nvar _clipboardState = require(\"./state/clipboardState\");\nvar _clipboardToggle = require(\"./components/ClipboardToggle\");\nvar _clipboardToggleDefault = parcelHelpers.interopDefault(_clipboardToggle);\nvar _clipboardActions = require(\"./components/ClipboardActions\");\nvar _clipboardActionsDefault = parcelHelpers.interopDefault(_clipboardActions);\nvar _clipboardWatcher = require(\"./components/ClipboardWatcher\");\nvar _clipboardWatcherDefault = parcelHelpers.interopDefault(_clipboardWatcher);\n\n},{\"./state/clipboardVisibleState\":\"6P6f8\",\"./state/clipboardState\":\"3McRW\",\"./components/ClipboardToggle\":\"ieDSG\",\"./components/ClipboardActions\":\"5a5DO\",\"./components/ClipboardWatcher\":\"aSzpc\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6P6f8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"clipboardVisibleState\", ()=>clipboardVisibleState);\nvar _recoil = require(\"recoil\");\nconst clipboardVisibleState = (0, _recoil.atom)({\n key: \"clipboardState\",\n default: false\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3McRW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"clipboardState\", ()=>clipboardState);\nparcelHelpers.export(exports, \"clipboardItemState\", ()=>clipboardItemState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"@media-ui/core/src/state/localStorageEffect\");\nconst clipboardState = (0, _recoil.atom)({\n key: \"ClipboardState\",\n default: [],\n effects: [\n (0, _localStorageEffect.localStorageEffect)(\"ClipboardState\")\n ]\n});\nconst clipboardItemState = (0, _recoil.selectorFamily)({\n key: \"ClipboardItemState\",\n get: (assetIdentity)=>({ get })=>get(clipboardState).find(({ assetId , assetSourceId })=>assetId === assetIdentity.assetId && assetSourceId === assetIdentity.assetSourceId) !== undefined,\n set: (assetIdentity)=>({ set })=>{\n set(clipboardState, (prevState)=>{\n const assetInClipboardIndex = prevState.findIndex(({ assetId , assetSourceId })=>assetId === assetIdentity.assetId && assetSourceId === assetIdentity.assetSourceId);\n if (assetInClipboardIndex === -1) return [\n ...prevState,\n assetIdentity\n ];\n return prevState.splice(assetInClipboardIndex, 1);\n });\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state/localStorageEffect\":\"gXKi8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ieDSG\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _clipboardItem = require(\"./ClipboardItem\");\nvar _clipboardItemDefault = parcelHelpers.interopDefault(_clipboardItem);\nvar _clipboardState = require(\"../state/clipboardState\");\nvar _clipboardVisibleState = require(\"../state/clipboardVisibleState\");\nvar _clipboardToggleModuleCss = require(\"./ClipboardToggle.module.css\");\nvar _clipboardToggleModuleCssDefault = parcelHelpers.interopDefault(_clipboardToggleModuleCss);\nconst ClipboardToggle = ()=>{\n const { translate } = (0, _core.useIntl)();\n const clipboard = (0, _recoil.useRecoilValue)((0, _clipboardState.clipboardState));\n const [clipboardVisible, setClipboardVisible] = (0, _recoil.useRecoilState)((0, _clipboardVisibleState.clipboardVisibleState));\n const initialLoadComplete = (0, _recoil.useRecoilValue)((0, _state.initialLoadCompleteState));\n const toggleClipboard = (0, _react.useCallback)(()=>setClipboardVisible((prev)=>!prev), [\n setClipboardVisible\n ]);\n const size = Object.keys(clipboard).length;\n if (!initialLoadComplete) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _clipboardToggleModuleCssDefault.default).clipboardToggle\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n disabled: size === 0,\n size: \"regular\",\n style: clipboardVisible ? \"brand\" : \"lighter\",\n hoverStyle: \"brand\",\n onClick: toggleClipboard\n }, translate(\"clipboard.toggle\", \"Clipboard\"), \" (\", size, \")\"), Object.values(clipboard).slice().reverse().slice(0, 3).map((assetIdentity)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _clipboardItemDefault.default), {\n key: assetIdentity.assetId,\n assetIdentity: assetIdentity\n })));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ClipboardToggle);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"./ClipboardItem\":\"e118t\",\"../state/clipboardState\":\"3McRW\",\"../state/clipboardVisibleState\":\"6P6f8\",\"./ClipboardToggle.module.css\":\"gcYHu\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"e118t\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _clipboardItemModuleCss = require(\"./ClipboardItem.module.css\");\nvar _clipboardItemModuleCssDefault = parcelHelpers.interopDefault(_clipboardItemModuleCss);\nconst ClipboardItem = ({ assetIdentity })=>{\n const { asset } = (0, _hooks.useAssetQuery)(assetIdentity);\n const { dummyImage } = (0, _core.useMediaUi)();\n const Notify = (0, _core.useNotify)();\n const selectAsset = (0, _hooks.useSelectAsset)();\n const { translate } = (0, _core.useIntl)();\n const onClick = (0, _react.useCallback)(()=>{\n if (assetIdentity) selectAsset(assetIdentity);\n else Notify.warning(translate(\"clipboard.assetNotLoaded\", \"Cannot select asset as it couldn't be loaded\"));\n }, [\n assetIdentity,\n selectAsset,\n Notify,\n translate\n ]);\n return /*#__PURE__*/ _react.createElement(\"button\", {\n type: \"button\",\n onClick: onClick,\n className: (0, _clipboardItemModuleCssDefault.default).clipboardItem,\n title: asset?.label\n }, /*#__PURE__*/ _react.createElement(\"img\", {\n src: asset?.thumbnailUrl || dummyImage,\n alt: asset?.label || assetIdentity.assetId,\n width: 40,\n height: 36\n }));\n};\nexports.default = /*#__PURE__*/ _react.memo(ClipboardItem);\n\n},{\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"./ClipboardItem.module.css\":\"ilwoh\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ilwoh\":[function(require,module,exports) {\nmodule.exports[\"clipboardItem\"] = `rgxNBa_clipboardItem`;\n\n},{}],\"gcYHu\":[function(require,module,exports) {\nmodule.exports[\"clipboardToggle\"] = `vygmma_clipboardToggle`;\n\n},{}],\"5a5DO\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _clipboardState = require(\"../state/clipboardState\");\nvar _clipboardVisibleState = require(\"../state/clipboardVisibleState\");\nvar _clipboardActionsModuleCss = require(\"./ClipboardActions.module.css\");\nvar _clipboardActionsModuleCssDefault = parcelHelpers.interopDefault(_clipboardActionsModuleCss);\nconst ClipboardActions = ()=>{\n const { translate } = (0, _core.useIntl)();\n const { approvalAttainmentStrategy } = (0, _core.useMediaUi)();\n const clipboardVisible = (0, _recoil.useRecoilValue)((0, _clipboardVisibleState.clipboardVisibleState));\n const [clipboard, setClipboard] = (0, _recoil.useRecoilState)((0, _clipboardState.clipboardState));\n const { deleteAsset } = (0, _hooks.useDeleteAsset)();\n const Notify = (0, _core.useNotify)();\n // TODO: If any of the selected assets in the clipboard are in use the operation should be blocked, ideally with a message explaining why\n const onDeleteClipboard = (0, _react.useCallback)(async ()=>{\n const canDeleteAssets = await approvalAttainmentStrategy.obtainApprovalToDeleteAssets({\n assets: clipboard\n });\n if (!canDeleteAssets) return;\n Promise.all(clipboard.map(async (assetIdentity)=>await deleteAsset(assetIdentity))).then(()=>{\n Notify.ok(translate(\"clipboard.deleteAssets.success\", \"The assets have been deleted\"));\n }).catch(({ message })=>{\n Notify.error(translate(\"clipboard.deleteAssets.error\", \"Error while trying to delete the assets\"), message);\n });\n }, [\n approvalAttainmentStrategy,\n clipboard,\n deleteAsset,\n Notify,\n translate\n ]);\n const onFlushClipboard = (0, _react.useCallback)(()=>{\n const canFlushClipboard = approvalAttainmentStrategy.obtainApprovalToFlushClipboard();\n if (!canFlushClipboard) return;\n setClipboard([]);\n }, [\n approvalAttainmentStrategy,\n setClipboard\n ]);\n if (!clipboardVisible) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _clipboardActionsModuleCssDefault.default).clipboardActions\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.IconButton), {\n title: translate(\"clipboard.deleteAsset\", \"Delete all assets in clipboard\"),\n icon: \"trash\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"error\",\n onClick: onDeleteClipboard\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.IconButton), {\n title: translate(\"clipboard.flush\", \"Flush clipboard\"),\n icon: \"clipboard\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"warn\",\n onClick: onFlushClipboard\n }));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ClipboardActions);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"../state/clipboardState\":\"3McRW\",\"../state/clipboardVisibleState\":\"6P6f8\",\"./ClipboardActions.module.css\":\"eHCnP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eHCnP\":[function(require,module,exports) {\nmodule.exports[\"clipboardActions\"] = `zrw9kW_clipboardActions`;\n\n},{}],\"aSzpc\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _events = require(\"@media-ui/core/src/events\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\n/**\n * Renderless component to keep the clipboard updated when certain events occur\n */ const ClipboardWatcher = ()=>{\n const setClipboardState = (0, _recoil.useSetRecoilState)((0, _featureClipboard.clipboardState));\n const assetRemoved = (0, _hooks.useEvent)((0, _events.assetRemovedEvent));\n (0, _react.useEffect)(()=>{\n const onAssetDelete = (topic, assetIdentity)=>{\n setClipboardState((prev)=>prev.filter(({ assetId , assetSourceId })=>!(assetId === assetIdentity.assetId && assetSourceId === assetIdentity.assetSourceId)));\n };\n const token = assetRemoved.subscribe(onAssetDelete);\n return ()=>{\n assetRemoved.unsubscribe(token);\n };\n }, [\n setClipboardState,\n assetRemoved\n ]);\n return null;\n};\nexports.default = ClipboardWatcher;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/events\":\"59Xr2\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"59Xr2\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"createEvent\", ()=>(0, _createEvent.createEvent));\nparcelHelpers.export(exports, \"assetCreatedEvent\", ()=>(0, _asset.assetCreatedEvent));\nparcelHelpers.export(exports, \"assetRemovedEvent\", ()=>(0, _asset.assetRemovedEvent));\nparcelHelpers.export(exports, \"assetUpdatedEvent\", ()=>(0, _asset.assetUpdatedEvent));\nvar _asset = require(\"./asset\");\nvar _createEvent = require(\"./createEvent\");\n\n},{\"./asset\":\"aoZaR\",\"./createEvent\":\"cllh9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aoZaR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"assetCreatedEvent\", ()=>assetCreatedEvent);\nparcelHelpers.export(exports, \"assetRemovedEvent\", ()=>assetRemovedEvent);\nparcelHelpers.export(exports, \"assetUpdatedEvent\", ()=>assetUpdatedEvent);\nvar _createEvent = require(\"./createEvent\");\nconst assetCreatedEvent = (0, _createEvent.createEvent)(\"ASSET_CREATED\");\nconst assetRemovedEvent = (0, _createEvent.createEvent)(\"ASSET_REMOVED\");\nconst assetUpdatedEvent = (0, _createEvent.createEvent)(\"ASSET_UPDATED\");\n\n},{\"./createEvent\":\"cllh9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cllh9\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Wraps the used pubsub library and exposes the methods we need\n */ parcelHelpers.export(exports, \"createEvent\", ()=>createEvent);\nvar _pubsubJs = require(\"pubsub-js\");\nvar _pubsubJsDefault = parcelHelpers.interopDefault(_pubsubJs);\nfunction createEvent(topic) {\n const event = (payload)=>{\n event.publish(payload);\n };\n /**\n * Subscribe to the event\n * @returns a token which can be used to unsubscribe\n */ event.subscribe = (subscriber)=>{\n return (0, _pubsubJsDefault.default).subscribe(topic, subscriber);\n };\n /**\n * Unsubscribe from the event\n * @param subscriber a function which was previously subscribed or a token which was returned by `subscribe`\n */ event.unsubscribe = (subscriber)=>{\n (0, _pubsubJsDefault.default).unsubscribe(subscriber);\n };\n /**\n * Publish event and call all subscribers with payload\n * @returns true if the event has been published to at least one subscriber\n */ event.publish = (payload)=>{\n return (0, _pubsubJsDefault.default).publish(topic, payload);\n };\n return event;\n}\n\n},{\"pubsub-js\":\"cX6Wt\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cX6Wt\":[function(require,module,exports) {\n/**\n * Copyright (c) 2010,2011,2012,2013,2014 Morgan Roderick http://roderick.dk\n * License: MIT - http://mrgnrdrck.mit-license.org\n *\n * https://github.com/mroderick/PubSubJS\n */ (function(root, factory) {\n \"use strict\";\n var PubSub = {};\n if (root.PubSub) {\n PubSub = root.PubSub;\n console.warn(\"PubSub already loaded, using existing version\");\n } else {\n root.PubSub = PubSub;\n factory(PubSub);\n }\n if (module !== undefined && module.exports) exports = module.exports = PubSub; // Node.js specific `module.exports`\n exports.PubSub = PubSub; // CommonJS module 1.1.1 spec\n module.exports = exports = PubSub; // CommonJS\n})(typeof window === \"object\" && window || this, function(PubSub) {\n \"use strict\";\n var messages = {}, lastUid = -1, ALL_SUBSCRIBING_MSG = \"*\";\n function hasKeys(obj) {\n var key;\n for(key in obj){\n if (Object.prototype.hasOwnProperty.call(obj, key)) return true;\n }\n return false;\n }\n /**\n * Returns a function that throws the passed exception, for use as argument for setTimeout\n * @alias throwException\n * @function\n * @param { Object } ex An Error object\n */ function throwException(ex) {\n return function reThrowException() {\n throw ex;\n };\n }\n function callSubscriberWithDelayedExceptions(subscriber, message, data) {\n try {\n subscriber(message, data);\n } catch (ex) {\n setTimeout(throwException(ex), 0);\n }\n }\n function callSubscriberWithImmediateExceptions(subscriber, message, data) {\n subscriber(message, data);\n }\n function deliverMessage(originalMessage, matchedMessage, data, immediateExceptions) {\n var subscribers = messages[matchedMessage], callSubscriber = immediateExceptions ? callSubscriberWithImmediateExceptions : callSubscriberWithDelayedExceptions, s;\n if (!Object.prototype.hasOwnProperty.call(messages, matchedMessage)) return;\n for(s in subscribers)if (Object.prototype.hasOwnProperty.call(subscribers, s)) callSubscriber(subscribers[s], originalMessage, data);\n }\n function createDeliveryFunction(message, data, immediateExceptions) {\n return function deliverNamespaced() {\n var topic = String(message), position = topic.lastIndexOf(\".\");\n // deliver the message as it is now\n deliverMessage(message, message, data, immediateExceptions);\n // trim the hierarchy and deliver message to each level\n while(position !== -1){\n topic = topic.substr(0, position);\n position = topic.lastIndexOf(\".\");\n deliverMessage(message, topic, data, immediateExceptions);\n }\n deliverMessage(message, ALL_SUBSCRIBING_MSG, data, immediateExceptions);\n };\n }\n function hasDirectSubscribersFor(message) {\n var topic = String(message), found = Boolean(Object.prototype.hasOwnProperty.call(messages, topic) && hasKeys(messages[topic]));\n return found;\n }\n function messageHasSubscribers(message) {\n var topic = String(message), found = hasDirectSubscribersFor(topic) || hasDirectSubscribersFor(ALL_SUBSCRIBING_MSG), position = topic.lastIndexOf(\".\");\n while(!found && position !== -1){\n topic = topic.substr(0, position);\n position = topic.lastIndexOf(\".\");\n found = hasDirectSubscribersFor(topic);\n }\n return found;\n }\n function publish(message, data, sync, immediateExceptions) {\n message = typeof message === \"symbol\" ? message.toString() : message;\n var deliver = createDeliveryFunction(message, data, immediateExceptions), hasSubscribers = messageHasSubscribers(message);\n if (!hasSubscribers) return false;\n if (sync === true) deliver();\n else setTimeout(deliver, 0);\n return true;\n }\n /**\n * Publishes the message, passing the data to it's subscribers\n * @function\n * @alias publish\n * @param { String } message The message to publish\n * @param {} data The data to pass to subscribers\n * @return { Boolean }\n */ PubSub.publish = function(message, data) {\n return publish(message, data, false, PubSub.immediateExceptions);\n };\n /**\n * Publishes the message synchronously, passing the data to it's subscribers\n * @function\n * @alias publishSync\n * @param { String } message The message to publish\n * @param {} data The data to pass to subscribers\n * @return { Boolean }\n */ PubSub.publishSync = function(message, data) {\n return publish(message, data, true, PubSub.immediateExceptions);\n };\n /**\n * Subscribes the passed function to the passed message. Every returned token is unique and should be stored if you need to unsubscribe\n * @function\n * @alias subscribe\n * @param { String } message The message to subscribe to\n * @param { Function } func The function to call when a new message is published\n * @return { String }\n */ PubSub.subscribe = function(message, func) {\n if (typeof func !== \"function\") return false;\n message = typeof message === \"symbol\" ? message.toString() : message;\n // message is not registered yet\n if (!Object.prototype.hasOwnProperty.call(messages, message)) messages[message] = {};\n // forcing token as String, to allow for future expansions without breaking usage\n // and allow for easy use as key names for the 'messages' object\n var token = \"uid_\" + String(++lastUid);\n messages[message][token] = func;\n // return token for unsubscribing\n return token;\n };\n PubSub.subscribeAll = function(func) {\n return PubSub.subscribe(ALL_SUBSCRIBING_MSG, func);\n };\n /**\n * Subscribes the passed function to the passed message once\n * @function\n * @alias subscribeOnce\n * @param { String } message The message to subscribe to\n * @param { Function } func The function to call when a new message is published\n * @return { PubSub }\n */ PubSub.subscribeOnce = function(message, func) {\n var token = PubSub.subscribe(message, function() {\n // before func apply, unsubscribe message\n PubSub.unsubscribe(token);\n func.apply(this, arguments);\n });\n return PubSub;\n };\n /**\n * Clears all subscriptions\n * @function\n * @public\n * @alias clearAllSubscriptions\n */ PubSub.clearAllSubscriptions = function clearAllSubscriptions() {\n messages = {};\n };\n /**\n * Clear subscriptions by the topic\n * @function\n * @public\n * @alias clearAllSubscriptions\n * @return { int }\n */ PubSub.clearSubscriptions = function clearSubscriptions(topic) {\n var m;\n for(m in messages)if (Object.prototype.hasOwnProperty.call(messages, m) && m.indexOf(topic) === 0) delete messages[m];\n };\n /**\n Count subscriptions by the topic\n * @function\n * @public\n * @alias countSubscriptions\n * @return { Array }\n */ PubSub.countSubscriptions = function countSubscriptions(topic) {\n var m;\n // eslint-disable-next-line no-unused-vars\n var token;\n var count = 0;\n for(m in messages)if (Object.prototype.hasOwnProperty.call(messages, m) && m.indexOf(topic) === 0) {\n for(token in messages[m])count++;\n break;\n }\n return count;\n };\n /**\n Gets subscriptions by the topic\n * @function\n * @public\n * @alias getSubscriptions\n */ PubSub.getSubscriptions = function getSubscriptions(topic) {\n var m;\n var list = [];\n for(m in messages)if (Object.prototype.hasOwnProperty.call(messages, m) && m.indexOf(topic) === 0) list.push(m);\n return list;\n };\n /**\n * Removes subscriptions\n *\n * - When passed a token, removes a specific subscription.\n *\n\t * - When passed a function, removes all subscriptions for that function\n *\n\t * - When passed a topic, removes all subscriptions for that topic (hierarchy)\n * @function\n * @public\n * @alias subscribeOnce\n * @param { String | Function } value A token, function or topic to unsubscribe from\n * @example // Unsubscribing with a token\n * var token = PubSub.subscribe('mytopic', myFunc);\n * PubSub.unsubscribe(token);\n * @example // Unsubscribing with a function\n * PubSub.unsubscribe(myFunc);\n * @example // Unsubscribing from a topic\n * PubSub.unsubscribe('mytopic');\n */ PubSub.unsubscribe = function(value) {\n var descendantTopicExists = function(topic) {\n var m;\n for(m in messages){\n if (Object.prototype.hasOwnProperty.call(messages, m) && m.indexOf(topic) === 0) // a descendant of the topic exists:\n return true;\n }\n return false;\n }, isTopic = typeof value === \"string\" && (Object.prototype.hasOwnProperty.call(messages, value) || descendantTopicExists(value)), isToken = !isTopic && typeof value === \"string\", isFunction = typeof value === \"function\", result = false, m, message, t;\n if (isTopic) {\n PubSub.clearSubscriptions(value);\n return;\n }\n for(m in messages)if (Object.prototype.hasOwnProperty.call(messages, m)) {\n message = messages[m];\n if (isToken && message[value]) {\n delete message[value];\n result = value;\n break;\n }\n if (isFunction) {\n for(t in message)if (Object.prototype.hasOwnProperty.call(message, t) && message[t] === value) {\n delete message[t];\n result = true;\n }\n }\n }\n return result;\n };\n});\n\n},{}],\"hbmqT\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedInspectorViewState\", ()=>selectedInspectorViewState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nvar _applicationContextState = require(\"./applicationContextState\");\nconst selectedInspectorViewForContextState = (0, _recoil.atomFamily)({\n key: \"selectedInspectorViewForContextState\",\n default: null,\n // TODO: Add validator to make sure we can display the selected inspector view\n effects: (applicationContext)=>[\n (0, _localStorageEffect.localStorageEffect)(\"selectedInspectorViewState\", undefined, applicationContext)\n ]\n});\nconst selectedInspectorViewState = (0, _recoil.selector)({\n key: \"selectedInspectorViewState\",\n get: ({ get })=>get(selectedInspectorViewForContextState(get((0, _applicationContextState.applicationContextState)))),\n set: ({ get , set }, mode)=>set(selectedInspectorViewForContextState(get((0, _applicationContextState.applicationContextState))), mode)\n});\n\n},{\"recoil\":\"2QijJ\",\"./localStorageEffect\":\"gXKi8\",\"./applicationContextState\":\"63yeZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"63yeZ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"applicationContextState\", ()=>applicationContextState);\nvar _recoil = require(\"recoil\");\nconst applicationContextState = (0, _recoil.atom)({\n key: \"applicationContext\",\n default: \"browser\"\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kCQ08\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedAssetIdState\", ()=>selectedAssetIdState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nvar _applicationContextState = require(\"./applicationContextState\");\nconst selectedAssetIdForContextState = (0, _recoil.atomFamily)({\n key: \"selectedAssetIdForContextState\",\n default: null,\n effects: (applicationContext)=>[\n (0, _localStorageEffect.localStorageEffect)(\"selectedAssetIdForContextState\", undefined, applicationContext)\n ]\n});\nconst selectedAssetIdState = (0, _recoil.selector)({\n key: \"selectedAssetIdState\",\n get: ({ get })=>get(selectedAssetIdForContextState(get((0, _applicationContextState.applicationContextState)))),\n set: ({ get , set }, assetIdentity)=>set(selectedAssetIdForContextState(get((0, _applicationContextState.applicationContextState))), assetIdentity)\n});\n\n},{\"recoil\":\"2QijJ\",\"./localStorageEffect\":\"gXKi8\",\"./applicationContextState\":\"63yeZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iEAqJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedMediaTypeState\", ()=>selectedMediaTypeState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nconst selectedMediaTypeState = (0, _recoil.atom)({\n key: \"selectedMediaTypeState\",\n default: \"\",\n effects: [\n (0, _localStorageEffect.localStorageEffect)(\"selectedMediaTypeState\")\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"./localStorageEffect\":\"gXKi8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ePw7X\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedAssetTypeState\", ()=>selectedAssetTypeState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nvar _constraintsState = require(\"./constraintsState\");\nconst selectedAssetTypeInternalState = (0, _recoil.atom)({\n key: \"selectedAssetTypeInternalState\",\n default: \"\",\n effects: [\n (0, _localStorageEffect.localStorageEffect)(\"selectedAssetTypeState\")\n ]\n});\nconst selectedAssetTypeState = (0, _recoil.selector)({\n key: \"selectedAssetTypeState\",\n get: ({ get })=>{\n const assetType = get(selectedAssetTypeInternalState);\n const constraints = get((0, _constraintsState.constraintsState));\n return constraints?.assetType ? constraints.assetType : assetType;\n },\n set: ({ get , set }, assetType)=>{\n const constraints = get((0, _constraintsState.constraintsState));\n if (constraints?.assetType && constraints.assetType !== assetType) assetType = constraints.assetType;\n set(selectedAssetTypeInternalState, assetType);\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"./localStorageEffect\":\"gXKi8\",\"./constraintsState\":\"dkgey\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8xo0U\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SORT_BY\", ()=>SORT_BY);\nparcelHelpers.export(exports, \"SORT_DIRECTION\", ()=>SORT_DIRECTION);\nparcelHelpers.export(exports, \"selectedSortOrderState\", ()=>selectedSortOrderState);\nvar _recoil = require(\"recoil\");\nvar _localStorageEffect = require(\"./localStorageEffect\");\nvar SORT_BY;\n(function(SORT_BY) {\n SORT_BY[\"Name\"] = \"name\";\n SORT_BY[\"LastModified\"] = \"lastModified\";\n SORT_BY[\"Size\"] = \"size\";\n})(SORT_BY || (SORT_BY = {}));\nvar SORT_DIRECTION;\n(function(SORT_DIRECTION) {\n SORT_DIRECTION[\"Asc\"] = \"ASC\";\n SORT_DIRECTION[\"Desc\"] = \"DESC\";\n})(SORT_DIRECTION || (SORT_DIRECTION = {}));\nconst selectedSortOrderState = (0, _recoil.atom)({\n key: \"selectedSortOrderState\",\n default: {\n sortBy: SORT_BY.LastModified,\n sortDirection: SORT_DIRECTION.Desc\n },\n effects: [\n (0, _localStorageEffect.localStorageEffect)(\"selectedSortOrderState\")\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"./localStorageEffect\":\"gXKi8\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hY9Zj\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET_SOURCES\", ()=>ASSET_SOURCES);\nvar _client = require(\"@apollo/client\");\nvar _assetSource = require(\"../fragments/assetSource\");\nconst ASSET_SOURCES = (0, _client.gql)`\n query ASSET_SOURCES {\n assetSources {\n ...AssetSourceProps\n }\n }\n ${(0, _assetSource.ASSET_SOURCE_FRAGMENT)}\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/assetSource\":\"f1gCj\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"f1gCj\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET_SOURCE_FRAGMENT\", ()=>ASSET_SOURCE_FRAGMENT);\nvar _client = require(\"@apollo/client\");\nconst ASSET_SOURCE_FRAGMENT = (0, _client.gql)`\n fragment AssetSourceProps on AssetSource {\n label\n id\n description\n iconUri\n readOnly\n supportsTagging\n supportsCollections\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"g5Jy1\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"NEOS_ASSET_SOURCE\", ()=>NEOS_ASSET_SOURCE);\nparcelHelpers.export(exports, \"selectedAssetSourceState\", ()=>selectedAssetSourceState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nconst NEOS_ASSET_SOURCE = \"neos\";\nconst selectedAssetSourceIdState = (0, _recoil.atom)({\n key: \"SelectedAssetSourceIdState\",\n default: NEOS_ASSET_SOURCE,\n effects: [\n (0, _state.localStorageEffect)(\"SelectedAssetSourceIdState\")\n ]\n});\nconst selectedAssetSourceState = (0, _recoil.selector)({\n key: \"SelectedAssetSourceState\",\n get: ({ get })=>{\n const selectedAssetSourceId = get(selectedAssetSourceIdState);\n const constraints = get((0, _state.constraintsState));\n if (constraints.assetSources?.length > 0 && !constraints.assetSources.includes(selectedAssetSourceId)) return constraints.assetSources[0];\n return selectedAssetSourceId;\n },\n set: ({ set }, newValue)=>{\n set(selectedAssetSourceIdState, newValue);\n // Reset the current page to 1 when switching asset sources\n set((0, _state.currentPageState), 1);\n // Hide the clipboard when switching asset sources\n set((0, _featureClipboard.clipboardVisibleState), false);\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hIOyZ\":[function(require,module,exports) {\nmodule.exports[\"ReactCollapse--collapse\"] = `DdyBta_ReactCollapse--collapse`;\nmodule.exports[\"assetSourceDescription\"] = `DdyBta_assetSourceDescription`;\nmodule.exports[\"panelHeader\"] = `DdyBta_panelHeader`;\n\n},{}],\"2hz1Y\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _selectedAssetSourceState = require(\"../state/selectedAssetSourceState\");\nvar _useAssetSourcesQuery = require(\"../hooks/useAssetSourcesQuery\");\nvar _assetSourceListModuleCss = require(\"./AssetSourceList.module.css\");\nvar _assetSourceListModuleCssDefault = parcelHelpers.interopDefault(_assetSourceListModuleCss);\nconst AssetSourceList = ()=>{\n const { assetSources } = (0, _useAssetSourcesQuery.useAssetSourcesQuery)();\n const { translate } = (0, _core.useIntl)();\n const [selectedAssetSourceId, setSelectedAssetSourceId] = (0, _recoil.useRecoilState)((0, _selectedAssetSourceState.selectedAssetSourceState));\n // We don't show the source selection if there is only one\n if (!assetSources || assetSources.length < 2) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"nav\", {\n className: (0, _assetSourceListModuleCssDefault.default).assetSourceList\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Headline), {\n type: \"h2\",\n className: (0, _assetSourceListModuleCssDefault.default).header\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.IconLabel), {\n icon: \"box\",\n label: translate(\"assetSourceList.header\", \"Media sources\")\n })), assetSources?.map((assetSource)=>/*#__PURE__*/ (0, _reactDefault.default).createElement(\"button\", {\n key: assetSource.id,\n type: \"button\",\n className: (0, _classnamesDefault.default)((0, _assetSourceListModuleCssDefault.default).item, selectedAssetSourceId === assetSource.id && (0, _assetSourceListModuleCssDefault.default).itemSelected),\n onClick: ()=>setSelectedAssetSourceId(assetSource.id)\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.IconLabel), {\n label: assetSource.id === \"neos\" ? translate(\"assetSource.local\", \"Local\") : assetSource.label,\n iconUri: assetSource.iconUri,\n className: (0, _assetSourceListModuleCssDefault.default).itemLabel\n }))));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetSourceList);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"classnames\":\"hVGzI\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"../state/selectedAssetSourceState\":\"g5Jy1\",\"../hooks/useAssetSourcesQuery\":\"ckgxn\",\"./AssetSourceList.module.css\":\"kbSwF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kbSwF\":[function(require,module,exports) {\nmodule.exports[\"assetSourceList\"] = `y0bjba_assetSourceList`;\nmodule.exports[\"header\"] = `y0bjba_header`;\nmodule.exports[\"item\"] = `y0bjba_item`;\nmodule.exports[\"itemLabel\"] = `y0bjba_itemLabel`;\nmodule.exports[\"itemSelected\"] = `y0bjba_itemSelected`;\n\n},{}],\"euEE7\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET\", ()=>(0, _assetDefault.default));\nparcelHelpers.export(exports, \"ASSETS\", ()=>(0, _assetsDefault.default));\nparcelHelpers.export(exports, \"ASSET_COUNT\", ()=>(0, _assetCountDefault.default));\nparcelHelpers.export(exports, \"CONFIG\", ()=>(0, _configDefault.default));\nvar _asset = require(\"./asset\");\nvar _assetDefault = parcelHelpers.interopDefault(_asset);\nvar _assets = require(\"./assets\");\nvar _assetsDefault = parcelHelpers.interopDefault(_assets);\nvar _assetCount = require(\"./assetCount\");\nvar _assetCountDefault = parcelHelpers.interopDefault(_assetCount);\nvar _config = require(\"./config\");\nvar _configDefault = parcelHelpers.interopDefault(_config);\n\n},{\"./asset\":\"91Vlz\",\"./assets\":\"5x15F\",\"./assetCount\":\"PwrZI\",\"./config\":\"6ci06\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"91Vlz\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst ASSET = (0, _client.gql)`\n query ASSET($id: AssetId!, $assetSourceId: AssetSourceId!, $includeUsage: Boolean = false) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n asset(id: $id, assetSourceId: $assetSourceId) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cP1Zi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ASSET_FRAGMENT\", ()=>ASSET_FRAGMENT);\nvar _client = require(\"@apollo/client\");\nvar _tag = require(\"@media-ui/feature-asset-tags/src/fragments/tag\");\nvar _iptcProperty = require(\"./iptcProperty\");\nvar _file = require(\"./file\");\nconst ASSET_FRAGMENT = (0, _client.gql)`\n fragment AssetProps on Asset {\n id\n localId\n assetSource {\n id\n readOnly\n }\n imported\n label\n caption\n filename\n tags {\n ...TagProps\n }\n collections {\n id\n title\n }\n copyrightNotice\n lastModified\n iptcProperties {\n ...IptcPropertyProps\n }\n width\n height\n file {\n ...FileProps\n }\n thumbnailUrl\n previewUrl\n isInUse @include(if: $includeUsage)\n }\n ${(0, _iptcProperty.IPTC_PROPERTY_FRAGMENT)}\n ${(0, _file.FILE_FRAGMENT)}\n ${(0, _tag.TAG_FRAGMENT)}\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@media-ui/feature-asset-tags/src/fragments/tag\":\"kPOIg\",\"./iptcProperty\":\"29MNQ\",\"./file\":\"ikjbw\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"29MNQ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"IPTC_PROPERTY_FRAGMENT\", ()=>IPTC_PROPERTY_FRAGMENT);\nvar _client = require(\"@apollo/client\");\nconst IPTC_PROPERTY_FRAGMENT = (0, _client.gql)`\n fragment IptcPropertyProps on IptcProperty {\n propertyName\n value\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ikjbw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"FILE_FRAGMENT\", ()=>FILE_FRAGMENT);\nvar _client = require(\"@apollo/client\");\nconst FILE_FRAGMENT = (0, _client.gql)`\n fragment FileProps on File {\n extension\n mediaType\n typeIcon {\n url\n alt\n }\n size\n url\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5x15F\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst ASSETS = (0, _client.gql)`\n query ASSETS(\n $searchTerm: String\n $assetSourceId: AssetSourceId\n $assetCollectionId: AssetCollectionId\n $mediaType: MediaType\n $assetType: AssetType\n $tagId: TagId\n $limit: Int\n $offset: Int\n $sortBy: SortBy\n $sortDirection: SortDirection\n $includeUsage: Boolean = false\n ) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n assets(\n searchTerm: $searchTerm\n assetSourceId: $assetSourceId\n assetCollectionId: $assetCollectionId\n mediaType: $mediaType\n assetType: $assetType\n tagId: $tagId\n limit: $limit\n offset: $offset\n sortBy: $sortBy\n sortDirection: $sortDirection\n ) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = ASSETS;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"PwrZI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst ASSET_COUNT = (0, _client.gql)`\n query ASSET_COUNT(\n $searchTerm: String\n $assetSourceId: AssetSourceId\n $assetCollectionId: AssetCollectionId\n $mediaType: MediaType\n $assetType: AssetType\n $tagId: TagId\n ) {\n assetCount(\n searchTerm: $searchTerm\n assetSourceId: $assetSourceId\n assetCollectionId: $assetCollectionId\n mediaType: $mediaType\n assetType: $assetType\n tagId: $tagId\n )\n }\n`;\nexports.default = ASSET_COUNT;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6ci06\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst CONFIG = (0, _client.gql)`\n query CONFIG {\n config {\n uploadMaxFileSize\n uploadMaxFileUploadLimit\n currentServerTime\n }\n }\n`;\nexports.default = CONFIG;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hFrZn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useAssetQuery);\nvar _client = require(\"@apollo/client\");\nvar _queries = require(\"../queries\");\nfunction useAssetQuery(assetIdentity) {\n const { data , loading , refetch } = (0, _client.useQuery)((0, _queries.ASSET), {\n variables: {\n id: assetIdentity?.assetId,\n assetSourceId: assetIdentity?.assetSourceId\n },\n skip: !assetIdentity\n });\n return {\n asset: data?.asset || null,\n loading,\n refetch\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries\":\"euEE7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3UNSz\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _client = require(\"@apollo/client\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nvar _state = require(\"../state\");\nvar _queries = require(\"../queries\");\nconst useAssetsQuery = ()=>{\n const { pagination: { assetsPerPage } } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const searchTerm = (0, _recoil.useRecoilValue)((0, _state.searchTermState));\n const assetCollectionId = (0, _recoil.useRecoilValue)((0, _featureAssetCollections.selectedAssetCollectionIdState));\n const assetSourceId = (0, _recoil.useRecoilValue)((0, _featureAssetSources.selectedAssetSourceState));\n const selectedTagId = (0, _recoil.useRecoilValue)((0, _featureAssetTags.selectedTagIdState));\n const mediaType = (0, _recoil.useRecoilValue)((0, _state.selectedMediaTypeState));\n const assetType = (0, _recoil.useRecoilValue)((0, _state.selectedAssetTypeState));\n const sortOrderState = (0, _recoil.useRecoilValue)((0, _state.selectedSortOrderState));\n const currentPage = (0, _recoil.useRecoilValue)((0, _state.currentPageState));\n const setIsLoading = (0, _recoil.useSetRecoilState)((0, _state.loadingState));\n const setInitialLoadComplete = (0, _recoil.useSetRecoilState)((0, _state.initialLoadCompleteState));\n const [assets, setAssets] = (0, _recoil.useRecoilState)((0, _state.availableAssetsState));\n const offset = (currentPage - 1) * assetsPerPage;\n const [query, { loading , error , data , refetch }] = (0, _client.useLazyQuery)((0, _queries.ASSETS), {\n notifyOnNetworkStatusChange: false,\n variables: {\n searchTerm: searchTerm.toString(),\n assetSourceId,\n assetCollectionId,\n assetType,\n mediaType,\n tagId: selectedTagId,\n limit: assetsPerPage,\n offset,\n sortBy: sortOrderState.sortBy,\n sortDirection: sortOrderState.sortDirection\n }\n });\n (0, _react.useEffect)(()=>{\n if (!loading) {\n query({\n variables: {\n searchTerm: searchTerm.toString(),\n assetSourceId,\n assetCollectionId,\n assetType,\n mediaType,\n tagId: selectedTagId,\n limit: assetsPerPage,\n offset,\n sortBy: sortOrderState.sortBy,\n sortDirection: sortOrderState.sortDirection\n }\n });\n setIsLoading(true);\n }\n }, [\n query,\n loading,\n offset,\n searchTerm,\n assetSourceId,\n assetCollectionId,\n mediaType,\n selectedTagId,\n sortOrderState,\n assetType,\n assetsPerPage,\n setIsLoading\n ]);\n (0, _react.useEffect)(()=>{\n if (!loading && data) {\n setAssets((prev)=>{\n const sameSame = data && JSON.stringify(prev) == JSON.stringify(data.assets);\n return sameSame ? prev : data.assets || [];\n });\n setIsLoading(false);\n setInitialLoadComplete(true);\n }\n }, [\n loading,\n data,\n setAssets,\n setInitialLoadComplete,\n setIsLoading\n ]);\n return {\n error,\n assets,\n refetch\n };\n};\nexports.default = useAssetsQuery;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@apollo/client\":\"bWmmR\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"../state\":\"jV1GH\",\"../queries\":\"euEE7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"c2M0S\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _queries = require(\"../queries\");\nconst useConfigQuery = ()=>{\n const { data , loading } = (0, _client.useQuery)((0, _queries.CONFIG));\n return {\n config: data?.config,\n loading\n };\n};\nexports.default = useConfigQuery;\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries\":\"euEE7\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2YBVY\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useDeleteAsset);\nvar _client = require(\"@apollo/client\");\nvar _recoil = require(\"recoil\");\nvar _mutations = require(\"../mutations\");\nvar _state = require(\"../state\");\nvar _queries = require(\"../queries\");\nvar _index = require(\"./index\");\nvar _events = require(\"../events\");\nfunction useDeleteAsset() {\n const [action, { error , data }] = (0, _client.useMutation)((0, _mutations.DELETE_ASSET));\n const setSelectedAsset = (0, _recoil.useSetRecoilState)((0, _state.selectedAssetIdState));\n const assetRemoved = (0, _index.useEvent)((0, _events.assetRemovedEvent));\n // TODO: Check whether an optimisticResponse can be used here\n // Without a fast asset usage count retrieval a lot of negative responses are possible\n const deleteAsset = ({ assetId , assetSourceId })=>action({\n variables: {\n id: assetId,\n assetSourceId: assetSourceId\n },\n refetchQueries: [\n {\n query: (0, _queries.ASSET),\n variables: {\n id: assetId,\n assetSourceId: assetSourceId\n }\n }\n ],\n update: (cache, { data: { deleteAsset: success } })=>{\n if (!success) return;\n // Remove deleted asset from cache\n cache.evict({\n id: cache.identify({\n __typename: \"Asset\",\n id: assetId\n })\n });\n cache.gc();\n }\n }).then(({ data: { deleteAsset: success } })=>{\n if (!success) throw new Error(\"Could not delete asset\");\n assetRemoved({\n assetId,\n assetSourceId\n });\n // Unselect currently selected asset if it was just deleted\n setSelectedAsset((prev)=>prev.assetId === assetId ? null : prev);\n });\n return {\n deleteAsset,\n data,\n error\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"recoil\":\"2QijJ\",\"../mutations\":\"2jX8C\",\"../state\":\"jV1GH\",\"../queries\":\"euEE7\",\"./index\":\"b2lzd\",\"../events\":\"59Xr2\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2jX8C\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"DELETE_ASSET\", ()=>(0, _deleteAssetDefault.default));\nparcelHelpers.export(exports, \"IMPORT_ASSET\", ()=>(0, _importAssetDefault.default));\nparcelHelpers.export(exports, \"SET_ASSET_COLLECTIONS\", ()=>(0, _setAssetCollectionsDefault.default));\nparcelHelpers.export(exports, \"SET_ASSET_TAGS\", ()=>(0, _setAssetTagsDefault.default));\nparcelHelpers.export(exports, \"TAG_ASSET\", ()=>(0, _tagAssetDefault.default));\nparcelHelpers.export(exports, \"UNTAG_ASSET\", ()=>(0, _untagAssetDefault.default));\nparcelHelpers.export(exports, \"UPDATE_ASSET\", ()=>(0, _updateAssetDefault.default));\nvar _deleteAsset = require(\"./deleteAsset\");\nvar _deleteAssetDefault = parcelHelpers.interopDefault(_deleteAsset);\nvar _importAsset = require(\"./importAsset\");\nvar _importAssetDefault = parcelHelpers.interopDefault(_importAsset);\nvar _setAssetCollections = require(\"./setAssetCollections\");\nvar _setAssetCollectionsDefault = parcelHelpers.interopDefault(_setAssetCollections);\nvar _setAssetTags = require(\"./setAssetTags\");\nvar _setAssetTagsDefault = parcelHelpers.interopDefault(_setAssetTags);\nvar _tagAsset = require(\"./tagAsset\");\nvar _tagAssetDefault = parcelHelpers.interopDefault(_tagAsset);\nvar _untagAsset = require(\"./untagAsset\");\nvar _untagAssetDefault = parcelHelpers.interopDefault(_untagAsset);\nvar _updateAsset = require(\"./updateAsset\");\nvar _updateAssetDefault = parcelHelpers.interopDefault(_updateAsset);\n\n},{\"./deleteAsset\":\"27PAv\",\"./importAsset\":\"KOw2i\",\"./setAssetCollections\":\"duRMs\",\"./setAssetTags\":\"aZ27z\",\"./tagAsset\":\"i0lTa\",\"./untagAsset\":\"iqIOB\",\"./updateAsset\":\"ev3Jo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"27PAv\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst DELETE_ASSET = (0, _client.gql)`\n mutation DeleteAsset($id: AssetId!, $assetSourceId: AssetSourceId!) {\n deleteAsset(id: $id, assetSourceId: $assetSourceId)\n }\n`;\nexports.default = DELETE_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"KOw2i\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst IMPORT_ASSET = (0, _client.gql)`\n mutation ImportAsset($id: AssetId!, $assetSourceId: AssetSourceId!, $includeUsage: Boolean = false) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n importAsset(id: $id, assetSourceId: $assetSourceId) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = IMPORT_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"duRMs\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst SET_ASSET_COLLECTIONS = (0, _client.gql)`\n mutation SetAssetCollections(\n $id: AssetId!\n $assetSourceId: AssetSourceId!\n $assetCollectionIds: [AssetCollectionId!]!\n ) {\n setAssetCollections(id: $id, assetSourceId: $assetSourceId, assetCollectionIds: $assetCollectionIds)\n }\n`;\nexports.default = SET_ASSET_COLLECTIONS;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aZ27z\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst SET_ASSET_TAGS = (0, _client.gql)`\n mutation SetAssetTags(\n $id: AssetId!\n $assetSourceId: AssetSourceId!\n $tagIds: [TagId!]!\n $includeUsage: Boolean = false\n ) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n setAssetTags(id: $id, assetSourceId: $assetSourceId, tagIds: $tagIds) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = SET_ASSET_TAGS;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i0lTa\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst TAG_ASSET = (0, _client.gql)`\n mutation TagAsset($id: AssetId!, $assetSourceId: AssetSourceId!, $tagId: TagId!, $includeUsage: Boolean = false) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n tagAsset(id: $id, assetSourceId: $assetSourceId, tagId: $tagId) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = TAG_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iqIOB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst UNTAG_ASSET = (0, _client.gql)`\n mutation UntagAsset($id: AssetId!, $assetSourceId: AssetSourceId!, $tagId: TagId!, $includeUsage: Boolean = false) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n untagAsset(id: $id, assetSourceId: $assetSourceId, tagId: $tagId) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = UNTAG_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ev3Jo\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"../fragments/asset\");\nconst UPDATE_ASSET = (0, _client.gql)`\n mutation UpdateAsset(\n $id: AssetId!\n $assetSourceId: AssetSourceId!\n $label: String\n $caption: String\n $copyrightNotice: String\n $includeUsage: Boolean = false\n ) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n updateAsset(\n id: $id\n assetSourceId: $assetSourceId\n label: $label\n caption: $caption\n copyrightNotice: $copyrightNotice\n ) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = UPDATE_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aH9Zl\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useEvent);\nfunction useEvent(event) {\n return event;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6dCH9\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useImportAsset);\nvar _client = require(\"@apollo/client\");\nvar _mutations = require(\"../mutations\");\nfunction useImportAsset() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.IMPORT_ASSET));\n const importAsset = (assetIdentity)=>action({\n variables: {\n id: assetIdentity.assetId,\n assetSourceId: assetIdentity.assetSourceId\n }\n });\n return {\n importAsset,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations\":\"2jX8C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6rOsM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _provider = require(\"../provider\");\nvar _state = require(\"../state\");\nconst useSelectAsset = ()=>{\n const setSelectedAssetId = (0, _recoil.useSetRecoilState)((0, _state.selectedAssetIdState));\n const setSelectedInspectorView = (0, _recoil.useSetRecoilState)((0, _state.selectedInspectorViewState));\n const { handleSelectAsset , selectionMode } = (0, _provider.useMediaUi)();\n return (0, _react.useCallback)((assetIdentity)=>{\n if (!assetIdentity) return;\n handleSelectAsset(assetIdentity);\n if (!selectionMode) {\n // Don't store the last selected asset during selection mode\n setSelectedAssetId(assetIdentity);\n setSelectedInspectorView(\"asset\");\n }\n }, [\n selectionMode,\n setSelectedAssetId,\n handleSelectAsset,\n setSelectedInspectorView\n ]);\n};\nexports.default = useSelectAsset;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"../provider\":\"jhdjb\",\"../state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lbZkV\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"../state\");\nvar _useAssetQuery = require(\"./useAssetQuery\");\nvar _useAssetQueryDefault = parcelHelpers.interopDefault(_useAssetQuery);\nconst useSelectedAsset = ()=>{\n const selectedAssetId = (0, _recoil.useRecoilValue)((0, _state.selectedAssetIdState));\n const { asset } = (0, _useAssetQueryDefault.default)(selectedAssetId);\n return asset;\n};\nexports.default = useSelectedAsset;\n\n},{\"recoil\":\"2QijJ\",\"../state\":\"jV1GH\",\"./useAssetQuery\":\"hFrZn\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"86uFF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useSetAssetCollections);\nvar _client = require(\"@apollo/client\");\nvar _mutations = require(\"../mutations\");\nfunction useSetAssetCollections() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.SET_ASSET_COLLECTIONS));\n const setAssetCollections = ({ asset , assetCollections })=>action({\n variables: {\n id: asset.id,\n assetSourceId: asset.assetSource.id,\n assetCollectionIds: assetCollections.map((c)=>c.id)\n },\n optimisticResponse: true,\n // The ASSETS query should be triggered to again show the full amount of assets in the current collection\n // FIXME: The ASSET_COLLECTIONS query is triggered to update the asset count in the asset collection list, which could be modified directly in the cache update method below\n refetchQueries: [\n \"ASSETS\",\n \"ASSET_COLLECTIONS\"\n ],\n update: (cache, { data })=>{\n if (!data) return;\n cache.modify({\n id: cache.identify({\n __typename: \"Asset\",\n id: asset.id\n }),\n fields: {\n assetCollections: ()=>assetCollections?.map((collection)=>({\n __ref: cache.identify({\n __typename: \"AssetCollection\",\n id: collection.id\n })\n }))\n }\n });\n }\n });\n return {\n setAssetCollections: setAssetCollections,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations\":\"2jX8C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cnDOn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useSetAssetTags);\nvar _client = require(\"@apollo/client\");\nvar _mutations = require(\"../mutations\");\nfunction useSetAssetTags() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.SET_ASSET_TAGS));\n const setAssetTags = ({ asset , tags })=>action({\n variables: {\n id: asset.id,\n assetSourceId: asset.assetSource.id,\n tagIds: tags.map((tag)=>tag.id)\n },\n optimisticResponse: {\n __typename: \"Mutation\",\n setAssetTags: {\n ...asset,\n tags\n }\n },\n // The ASSETS query should be triggered to again show the full amount of assets in the current collection\n // FIXME: The TAGS query is triggered to update the asset count in the asset collection list, which could be modified directly in the cache update method below\n refetchQueries: [\n \"ASSETS\",\n \"TAGS\"\n ]\n });\n return {\n setAssetTags,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations\":\"2jX8C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eZQ4W\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUntagAsset);\nvar _client = require(\"@apollo/client\");\nvar _mutations = require(\"../mutations\");\nfunction useUntagAsset() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.UNTAG_ASSET));\n const untagAsset = ({ asset , tagName })=>action({\n variables: {\n id: asset.id,\n assetSourceId: asset.assetSource.id,\n tag: tagName\n },\n optimisticResponse: {\n __typename: \"Mutation\",\n untagAsset: {\n ...asset,\n tags: [\n ...asset.tags.filter((tag)=>tag.label !== tagName)\n ]\n }\n },\n // The ASSETS query should be triggered to again show the full amount of assets in the current collection\n // FIXME: The TAGS query is triggered to update the asset count in the asset collection list, which could be modified directly in the cache update method below\n refetchQueries: [\n \"ASSETS\",\n \"TAGS\"\n ]\n });\n return {\n untagAsset,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations\":\"2jX8C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kpp4n\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUpdateAsset);\nvar _client = require(\"@apollo/client\");\nvar _mutations = require(\"../mutations\");\nfunction useUpdateAsset() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.UPDATE_ASSET));\n const updateAsset = ({ asset , label , caption , copyrightNotice })=>action({\n variables: {\n id: asset.id,\n assetSourceId: asset.assetSource.id,\n label,\n caption,\n copyrightNotice\n },\n optimisticResponse: {\n __typename: \"Mutation\",\n updateAsset: {\n ...asset,\n label,\n caption,\n copyrightNotice\n }\n }\n });\n return {\n updateAsset,\n data,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations\":\"2jX8C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2tVzu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"IntlContext\", ()=>IntlContext);\nparcelHelpers.export(exports, \"useIntl\", ()=>useIntl);\nparcelHelpers.export(exports, \"IntlProvider\", ()=>IntlProvider);\nvar _react = require(\"react\");\nconst IntlContext = /*#__PURE__*/ (0, _react.createContext)(null);\nconst useIntl = ()=>(0, _react.useContext)(IntlContext);\nfunction IntlProvider({ children , translate }) {\n return /*#__PURE__*/ _react.createElement(IntlContext.Provider, {\n value: {\n translate\n }\n }, children);\n}\n\n},{\"react\":\"6uln9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"33NuS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Interaction\", ()=>(0, _interaction.Interaction));\nparcelHelpers.export(exports, \"InteractionProvider\", ()=>(0, _interaction.InteractionProvider));\nparcelHelpers.export(exports, \"InteractionDialogRenderer\", ()=>(0, _interaction.InteractionDialogRenderer));\nparcelHelpers.export(exports, \"useInteraction\", ()=>(0, _interaction.useInteraction));\nvar _interaction = require(\"./Interaction\");\n\n},{\"./Interaction\":\"jwqhM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jwqhM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"InteractionProvider\", ()=>InteractionProvider);\nparcelHelpers.export(exports, \"InteractionDialogRenderer\", ()=>InteractionDialogRenderer);\nparcelHelpers.export(exports, \"useInteraction\", ()=>useInteraction);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _dialogs = require(\"./dialogs\");\nconst InteractionContext = /*#__PURE__*/ (0, _react.createContext)({});\nconst InteractionProvider = ({ children })=>{\n const [element, setElementWithoutCheck] = (0, _react.useState)(null);\n const setElement = (0, _react.useCallback)((newElement)=>{\n if (element === null) setElementWithoutCheck(newElement);\n else throw new Error(\"[InteractionProvider]: Element cannot be overwritten if it is already set.\");\n }, [\n element\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(InteractionContext.Provider, {\n value: {\n element,\n setElement\n }\n }, children);\n};\nconst InteractionDialogRenderer = ()=>{\n const { element } = (0, _react.useContext)(InteractionContext);\n return element;\n};\nconst useInteraction = ()=>{\n const { setElement } = (0, _react.useContext)(InteractionContext);\n const confirm = (0, _react.useCallback)(async (options)=>{\n try {\n return await new Promise((resolve)=>{\n setElement(/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _dialogs.Confirm), {\n title: options.title,\n message: options.message,\n buttonLabel: options.buttonLabel,\n onConfirm: ()=>resolve(true),\n onDeny: ()=>resolve(false)\n }));\n });\n } finally{\n setElement(null);\n }\n }, [\n setElement\n ]);\n return (0, _react.useMemo)(()=>({\n confirm\n }), [\n confirm\n ]);\n};\n\n},{\"react\":\"6uln9\",\"./dialogs\":\"wzXDJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"wzXDJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"Confirm\", ()=>(0, _confirmDefault.default));\nvar _confirm = require(\"./Confirm\");\nvar _confirmDefault = parcelHelpers.interopDefault(_confirm);\n\n},{\"./Confirm\":\"19QAF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"19QAF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _intl = require(\"../../Intl\");\nvar _components = require(\"../../../components\");\nvar _confirmModuleCss = require(\"./Confirm.module.css\");\nvar _confirmModuleCssDefault = parcelHelpers.interopDefault(_confirmModuleCss);\nconst Confirm = ({ title , message , buttonLabel , onConfirm , onDeny })=>{\n const { translate } = (0, _intl.useIntl)();\n const handleRequestClose = (0, _reactDefault.default).useCallback(()=>onDeny(), [\n onDeny\n ]);\n const handleConfirm = (0, _reactDefault.default).useCallback(()=>onConfirm(), [\n onConfirm\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.Dialog), {\n type: \"error\",\n isOpen: true,\n title: /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"exclamation-triangle\"\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _confirmModuleCssDefault.default).modalTitle\n }, title)),\n onRequestClose: handleRequestClose,\n actions: [\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: handleRequestClose\n }, translate(\"general.cancel\", \"Cancel\")),\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"confirm\",\n style: \"error\",\n hoverStyle: \"error\",\n onClick: handleConfirm\n }, buttonLabel)\n ]\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _confirmModuleCssDefault.default).dialogBody\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Label), null, message)));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(Confirm);\n\n},{\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"../../Intl\":\"2tVzu\",\"../../../components\":\"5LFSk\",\"./Confirm.module.css\":\"fOkfb\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fOkfb\":[function(require,module,exports) {\nmodule.exports[\"dialogBody\"] = `I2Dv7q_dialogBody`;\nmodule.exports[\"modalTitle\"] = `I2Dv7q_modalTitle`;\n\n},{}],\"cfZ69\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _approvalAttainmentStrategy = require(\"./ApprovalAttainmentStrategy\");\nparcelHelpers.exportAll(_approvalAttainmentStrategy, exports);\n\n},{\"./ApprovalAttainmentStrategy\":\"kj4G9\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kj4G9\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"AssumeApprovalForEveryAction\", ()=>AssumeApprovalForEveryAction);\nparcelHelpers.export(exports, \"DefaultApprovalAttainmentStrategyFactory\", ()=>DefaultApprovalAttainmentStrategyFactory);\nconst assumeApproval = ()=>Promise.resolve(true);\nconst AssumeApprovalForEveryAction = {\n obtainApprovalToUpdateAsset: assumeApproval,\n obtainApprovalToSetAssetTags: assumeApproval,\n obtainApprovalToSetAssetCollections: assumeApproval,\n obtainApprovalToDeleteAsset: assumeApproval,\n obtainApprovalToDeleteAssets: assumeApproval,\n obtainApprovalToDeleteAssetCollection: assumeApproval,\n obtainApprovalToDeleteTag: assumeApproval,\n obtainApprovalToReplaceAsset: assumeApproval,\n obtainApprovalToEditAsset: assumeApproval,\n obtainApprovalToFlushClipboard: assumeApproval\n};\nconst DefaultApprovalAttainmentStrategyFactory = (deps)=>({\n ...AssumeApprovalForEveryAction,\n obtainApprovalToDeleteAsset: ({ asset })=>deps.interaction.confirm({\n title: deps.intl.translate(\"actions.deleteAsset.confirm.title\", \"Delete Asset\", [\n asset.label\n ]),\n message: deps.intl.translate(\"action.deleteAsset.confirm.message\", `Do you really want to delete the asset \"${asset.label}\"`, [\n asset.label\n ]),\n buttonLabel: deps.intl.translate(\"actions.deleteAsset.confirm.buttonLabel\", \"Yes, proceed with deleting the asset\", [\n asset.label\n ])\n }),\n obtainApprovalToDeleteAssets: ({ assets })=>deps.interaction.confirm({\n title: deps.intl.translate(\"actions.deleteAssets.confirm.title\", \"Delete Assets\", [\n assets.length\n ]),\n message: deps.intl.translate(\"action.deleteAssets.confirm.message\", `Do you really want to delete ${assets.length} assets`, [\n assets.length\n ]),\n buttonLabel: deps.intl.translate(\"actions.deleteAssets.confirm.buttonLabel\", \"Yes, proceed with deleting the assets\", [\n assets.length\n ])\n }),\n obtainApprovalToDeleteAssetCollection: ({ assetCollection })=>deps.interaction.confirm({\n title: deps.intl.translate(\"actions.deleteAssetCollection.confirm.title\", \"Delete collection\", [\n assetCollection.title\n ]),\n message: deps.intl.translate(\"action.deleteAssetCollection.confirm.message\", `Do you really want to delete the collection \"${assetCollection.title}\"`, [\n assetCollection.title\n ]),\n buttonLabel: deps.intl.translate(\"actions.deleteAssetCollection.confirm.buttonLabel\", \"Yes, proceed with deleting the collection\", [\n assetCollection.title\n ])\n }),\n obtainApprovalToDeleteTag: ({ tag })=>deps.interaction.confirm({\n title: deps.intl.translate(\"actions.deleteTag.confirm.title\", \"Delete tag\", [\n tag.label\n ]),\n message: deps.intl.translate(\"action.deleteTag.confirm.message\", `Do you really want to delete the tag \"${tag.label}\"`, [\n tag.label\n ]),\n buttonLabel: deps.intl.translate(\"actions.deleteTag.confirm.buttonLabel\", \"Yes, proceed with deleting the tag\", [\n tag.label\n ])\n }),\n obtainApprovalToFlushClipboard: ()=>deps.interaction.confirm({\n title: deps.intl.translate(\"actions.flushClipboard.confirm.title\", \"Flush clipboard\"),\n message: deps.intl.translate(\"action.flushClipboard.confirm.message\", `Do you really want to remove all assets from the clipboard?`),\n buttonLabel: deps.intl.translate(\"actions.flushClipboard.confirm.buttonLabel\", \"Yes, proceed with flushing the clipboard\")\n })\n });\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5FV15\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"typeDefs\", ()=>typeDefs);\nvar _client = require(\"@apollo/client\");\nconst typeDefs = (0, _client.gql)`\n # Define the apollo specific directives here to prevent schema warnings in the IDE\n directive @client(always: Boolean!) on FIELD\n directive @export(as: String!) on FIELD\n\n # TODO: Can this type be removed or moved to the root schema?\n type AssetIdentity {\n id: AssetId!\n assetSourceId: AssetSourceId!\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"80jPI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"humanFileSize\", ()=>(0, _humanFileSizeDefault.default));\nvar _humanFileSize = require(\"./humanFileSize\");\nvar _humanFileSizeDefault = parcelHelpers.interopDefault(_humanFileSize);\n\n},{\"./humanFileSize\":\"i1FiL\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i1FiL\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>humanFileSize);\nfunction humanFileSize(bytes, si = false) {\n const thresh = si ? 1000 : 1024;\n if (Math.abs(bytes) < thresh) return bytes + \" B\";\n const units = si ? [\n \"kB\",\n \"MB\",\n \"GB\",\n \"TB\",\n \"PB\",\n \"EB\",\n \"ZB\",\n \"YB\"\n ] : [\n \"KiB\",\n \"MiB\",\n \"GiB\",\n \"TiB\",\n \"PiB\",\n \"EiB\",\n \"ZiB\",\n \"YiB\"\n ];\n let u = -1;\n do {\n bytes /= thresh;\n ++u;\n }while (Math.abs(bytes) >= thresh && u < units.length - 1);\n return bytes.toFixed(1) + \" \" + units[u];\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"HGtGw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _client = require(\"@apollo/client\");\nvar _provider = require(\"../provider\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _searchTerm = require(\"../domain/SearchTerm\");\n/**\n * This component adds the necessary providers and state initialization for the Media UI.\n */ const MediaApplicationWrapper = ({ children , client , translate , notificationApi , initialState })=>{\n const initializeState = ({ set })=>{\n const { applicationContext , featureFlags , constraints , selectedInspectorView , selectedAsset } = initialState;\n set((0, _state.applicationContextState), applicationContext);\n set((0, _state.featureFlagsState), featureFlags);\n if (selectedAsset) set((0, _state.selectedAssetIdState), selectedAsset);\n if (selectedInspectorView) set((0, _state.selectedInspectorViewState), selectedInspectorView);\n set((0, _state.constraintsState), constraints);\n if (constraints.mediaTypes?.length > 0) // Reset mediatype selection to prevent an empty screen with no matching assets or an invalid state\n // FIXME: The previous state could be valid, but this would require a more complex check with the given constraints\n set((0, _state.selectedMediaTypeState), null);\n if (constraints.assetType) set((0, _state.selectedAssetTypeState), constraints.assetType);\n const searchTermFromUrl = (0, _searchTerm.SearchTerm).fromUrl(new URL(window.location.href));\n if (!searchTermFromUrl.empty()) set((0, _state.searchTermState), searchTermFromUrl);\n };\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _provider.IntlProvider), {\n translate: translate\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _provider.NotifyProvider), {\n notificationApi: notificationApi\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _provider.InteractionProvider), null, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _client.ApolloProvider), {\n client: client\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _recoil.RecoilRoot), {\n initializeState: initializeState\n }, children)))));\n};\nexports.default = MediaApplicationWrapper;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@apollo/client\":\"bWmmR\",\"../provider\":\"jhdjb\",\"@media-ui/core/src/state\":\"jV1GH\",\"../domain/SearchTerm\":\"bnHXU\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lWHpb\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"typeDefs\", ()=>(0, _typeDefs.typeDefs));\nparcelHelpers.export(exports, \"ASSET_USAGE_DETAILS\", ()=>(0, _assetUsagesDefault.default));\nparcelHelpers.export(exports, \"AssetUsagesModal\", ()=>(0, _assetUsagesModalDefault.default));\nparcelHelpers.export(exports, \"AssetUsagesToggleButton\", ()=>(0, _assetUsagesToggleButtonDefault.default));\nparcelHelpers.export(exports, \"UNUSED_ASSETS\", ()=>(0, _unusedAssetsDefault.default));\nparcelHelpers.export(exports, \"USAGE_DETAILS_GROUP_FRAGMENT\", ()=>(0, _usageDetailsGroupFragmentDefault.default));\nparcelHelpers.export(exports, \"assetUsageDetailsModalState\", ()=>(0, _assetUsageDetailsModalStateDefault.default));\nparcelHelpers.export(exports, \"showUnusedAssetsState\", ()=>(0, _showUnusedAssetsStateDefault.default));\nparcelHelpers.export(exports, \"useAssetUsagesQuery\", ()=>(0, _useAssetUsagesDefault.default));\nparcelHelpers.export(exports, \"useUnusedAssetsQuery\", ()=>(0, _useUnusedAssetsQueryDefault.default));\nparcelHelpers.export(exports, \"useUnusedAssetCountQuery\", ()=>(0, _useUnusedAssetCountQueryDefault.default));\nvar _assetUsages = require(\"./queries/assetUsages\");\nvar _assetUsagesDefault = parcelHelpers.interopDefault(_assetUsages);\nvar _unusedAssets = require(\"./queries/unusedAssets\");\nvar _unusedAssetsDefault = parcelHelpers.interopDefault(_unusedAssets);\nvar _usageDetailsGroupFragment = require(\"./fragments/usageDetailsGroupFragment\");\nvar _usageDetailsGroupFragmentDefault = parcelHelpers.interopDefault(_usageDetailsGroupFragment);\nvar _assetUsagesModal = require(\"./components/AssetUsagesModal\");\nvar _assetUsagesModalDefault = parcelHelpers.interopDefault(_assetUsagesModal);\nvar _assetUsagesToggleButton = require(\"./components/AssetUsagesToggleButton\");\nvar _assetUsagesToggleButtonDefault = parcelHelpers.interopDefault(_assetUsagesToggleButton);\nvar _assetUsageDetailsModalState = require(\"./state/assetUsageDetailsModalState\");\nvar _assetUsageDetailsModalStateDefault = parcelHelpers.interopDefault(_assetUsageDetailsModalState);\nvar _showUnusedAssetsState = require(\"./state/showUnusedAssetsState\");\nvar _showUnusedAssetsStateDefault = parcelHelpers.interopDefault(_showUnusedAssetsState);\nvar _useAssetUsages = require(\"./hooks/useAssetUsages\");\nvar _useAssetUsagesDefault = parcelHelpers.interopDefault(_useAssetUsages);\nvar _useUnusedAssetsQuery = require(\"./hooks/useUnusedAssetsQuery\");\nvar _useUnusedAssetsQueryDefault = parcelHelpers.interopDefault(_useUnusedAssetsQuery);\nvar _useUnusedAssetCountQuery = require(\"./queries/useUnusedAssetCountQuery\");\nvar _useUnusedAssetCountQueryDefault = parcelHelpers.interopDefault(_useUnusedAssetCountQuery);\nvar _typeDefs = require(\"./typeDefs\");\n\n},{\"./queries/assetUsages\":\"aRCIR\",\"./queries/unusedAssets\":\"jnqAx\",\"./fragments/usageDetailsGroupFragment\":\"jN9il\",\"./components/AssetUsagesModal\":\"kuLhm\",\"./components/AssetUsagesToggleButton\":\"1ycJ1\",\"./state/assetUsageDetailsModalState\":\"iO8J3\",\"./state/showUnusedAssetsState\":\"VOAdR\",\"./hooks/useAssetUsages\":\"9tyRJ\",\"./hooks/useUnusedAssetsQuery\":\"6jRdf\",\"./queries/useUnusedAssetCountQuery\":\"dGnBp\",\"./typeDefs\":\"d0UHQ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aRCIR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _usageDetailsGroupFragment = require(\"../fragments/usageDetailsGroupFragment\");\nvar _usageDetailsGroupFragmentDefault = parcelHelpers.interopDefault(_usageDetailsGroupFragment);\nconst ASSET_USAGE_DETAILS = (0, _client.gql)`\n query ASSET_USAGE_DETAILS($id: AssetId!, $assetSourceId: AssetSourceId!) {\n assetUsageDetails(id: $id, assetSourceId: $assetSourceId) {\n ...UsageDetailsGroupProps\n }\n }\n ${(0, _usageDetailsGroupFragmentDefault.default)}\n`;\nexports.default = ASSET_USAGE_DETAILS;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/usageDetailsGroupFragment\":\"jN9il\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jN9il\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst USAGE_DETAILS_GROUP_FRAGMENT = (0, _client.gql)`\n fragment UsageDetailsGroupProps on UsageDetailsGroup {\n serviceId\n label\n metadataSchema {\n name\n label\n type\n }\n usages {\n label\n url\n metadata {\n name\n value\n }\n }\n }\n`;\nexports.default = USAGE_DETAILS_GROUP_FRAGMENT;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jnqAx\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"@media-ui/core/src/fragments/asset\");\nconst UNUSED_ASSETS = (0, _client.gql)`\n query UNUSED_ASSETS($limit: Int, $offset: Int, $includeUsage: Boolean = false) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n unusedAssets(limit: $limit, offset: $offset) {\n ...AssetProps\n isInUse @include(if: $includeUsage)\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = UNUSED_ASSETS;\n\n},{\"@apollo/client\":\"bWmmR\",\"@media-ui/core/src/fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kuLhm\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _assetUsageDetailsModalState = require(\"../state/assetUsageDetailsModalState\");\nvar _assetUsageDetailsModalStateDefault = parcelHelpers.interopDefault(_assetUsageDetailsModalState);\nvar _useAssetUsages = require(\"../hooks/useAssetUsages\");\nvar _useAssetUsagesDefault = parcelHelpers.interopDefault(_useAssetUsages);\nvar _assetUsageSection = require(\"./AssetUsageSection\");\nvar _assetUsageSectionDefault = parcelHelpers.interopDefault(_assetUsageSection);\nvar _assetUsagesModalModuleCss = require(\"./AssetUsagesModal.module.css\");\nvar _assetUsagesModalModuleCssDefault = parcelHelpers.interopDefault(_assetUsagesModalModuleCss);\nconst AssetUsagesModal = ()=>{\n const { translate } = (0, _core.useIntl)();\n const [isOpen, setIsOpen] = (0, _recoil.useRecoilState)((0, _assetUsageDetailsModalStateDefault.default));\n const asset = (0, _hooks.useSelectedAsset)();\n const { assetUsageDetails , loading } = (0, _useAssetUsagesDefault.default)(asset ? {\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n } : null);\n const handleRequestClose = (0, _react.useCallback)(()=>setIsOpen(false), [\n setIsOpen\n ]);\n return /*#__PURE__*/ _react.createElement((0, _components.Dialog), {\n isOpen: isOpen,\n title: translate(\"assetUsage.header\", `Usage details for ${asset.label}`, {\n asset: asset.label\n }),\n onRequestClose: handleRequestClose,\n style: \"wide\",\n actions: [\n /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: handleRequestClose\n }, translate(\"assetUsage.close\", \"Close\"))\n ]\n }, /*#__PURE__*/ _react.createElement(\"div\", {\n className: (0, _assetUsagesModalModuleCssDefault.default).assetUsage\n }, assetUsageDetails?.length > 0 ? assetUsageDetails.map((usageDetailsGroup, index)=>/*#__PURE__*/ _react.createElement((0, _assetUsageSectionDefault.default), {\n key: index,\n usageDetailsGroup: usageDetailsGroup\n })) : /*#__PURE__*/ _react.createElement(\"span\", null, loading ? translate(\"assetUsagesModal.loading\", \"Loading…\") : translate(\"assetUsagesModal.noResults\", \"No results\"))));\n};\nexports.default = /*#__PURE__*/ _react.memo(AssetUsagesModal);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/components\":\"5LFSk\",\"../state/assetUsageDetailsModalState\":\"iO8J3\",\"../hooks/useAssetUsages\":\"9tyRJ\",\"./AssetUsageSection\":\"2wyW0\",\"./AssetUsagesModal.module.css\":\"a2KRF\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iO8J3\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nconst assetUsageDetailsModalState = (0, _recoil.atom)({\n key: \"assetUsageDetailsModalState\",\n default: false\n});\nexports.default = assetUsageDetailsModalState;\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9tyRJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useAssetUsagesQuery);\nvar _client = require(\"@apollo/client\");\nvar _assetUsages = require(\"../queries/assetUsages\");\nvar _assetUsagesDefault = parcelHelpers.interopDefault(_assetUsages);\nfunction useAssetUsagesQuery(assetIdentity) {\n const { data , loading } = (0, _client.useQuery)((0, _assetUsagesDefault.default), {\n variables: {\n id: assetIdentity?.assetId,\n assetSourceId: assetIdentity?.assetSourceId\n },\n skip: !assetIdentity\n });\n return {\n assetUsageDetails: data?.assetUsageDetails || null,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/assetUsages\":\"aRCIR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2wyW0\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _core = require(\"@media-ui/core\");\nvar _assetUsageSectionModuleCss = require(\"./AssetUsageSection.module.css\");\nvar _assetUsageSectionModuleCssDefault = parcelHelpers.interopDefault(_assetUsageSectionModuleCss);\n// Recursive function to render an object as a nested list\nfunction renderObject(data) {\n return Array.isArray(data) ? /*#__PURE__*/ _react.createElement(\"ul\", null, data.map((item, index)=>/*#__PURE__*/ _react.createElement(\"li\", {\n key: index\n }, renderObject(item)))) : typeof data === \"object\" ? /*#__PURE__*/ _react.createElement(\"ul\", null, Object.keys(data).map((key)=>/*#__PURE__*/ _react.createElement(\"li\", {\n key: key\n }, /*#__PURE__*/ _react.createElement(\"strong\", null, key, \":\"), \" \", renderObject(data[key])))) : typeof data === \"string\" ? data : JSON.stringify(data);\n}\nconst AssetUsageSection = ({ usageDetailsGroup })=>{\n const { translate } = (0, _core.useIntl)();\n const { label , usages , metadataSchema } = usageDetailsGroup;\n return /*#__PURE__*/ _react.createElement(\"section\", {\n className: (0, _assetUsageSectionModuleCssDefault.default).usageSection\n }, /*#__PURE__*/ _react.createElement(\"h2\", null, label, \" (\", usages.length, \")\"), usages.length > 0 && /*#__PURE__*/ _react.createElement(\"table\", {\n className: (0, _assetUsageSectionModuleCssDefault.default).usageTable\n }, /*#__PURE__*/ _react.createElement(\"thead\", null, /*#__PURE__*/ _react.createElement(\"tr\", null, /*#__PURE__*/ _react.createElement(\"th\", null, translate(\"assetUsage.header.label\", \"Label\")), metadataSchema.map((schema, index)=>/*#__PURE__*/ _react.createElement(\"th\", {\n key: index\n }, schema.label)))), /*#__PURE__*/ _react.createElement(\"tbody\", null, usages.map((assetUsage, index)=>/*#__PURE__*/ _react.createElement(\"tr\", {\n key: index\n }, /*#__PURE__*/ _react.createElement(\"td\", null, assetUsage.url ? /*#__PURE__*/ _react.createElement(\"a\", {\n href: assetUsage.url,\n target: \"_blank\",\n rel: \"noreferrer\"\n }, assetUsage.label) : assetUsage.label), metadataSchema.map(({ name , type }, index)=>{\n const usage = assetUsage.metadata.find((usage)=>usage.name == name);\n return usage ? /*#__PURE__*/ _react.createElement(\"td\", {\n key: index\n }, type == \"DATETIME\" || type == \"DATE\" ? new Date(usage.value).toLocaleString() : type == \"URL\" ? /*#__PURE__*/ _react.createElement(\"a\", {\n href: usage.value,\n target: \"_blank\",\n rel: \"noreferrer\"\n }, name) : type == \"JSON\" ? renderObject(JSON.parse(usage.value)) : usage.value) : null;\n }))))));\n};\nexports.default = /*#__PURE__*/ _react.memo(AssetUsageSection);\n\n},{\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"./AssetUsageSection.module.css\":\"kGhDd\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kGhDd\":[function(require,module,exports) {\nmodule.exports[\"usageSection\"] = `_9TZJrW_usageSection`;\nmodule.exports[\"usageTable\"] = `_9TZJrW_usageTable`;\n\n},{}],\"a2KRF\":[function(require,module,exports) {\nmodule.exports[\"assetUsage\"] = `_HqK-W_assetUsage`;\nmodule.exports[\"neos\"] = `_HqK-W_neos`;\nmodule.exports[\"usageTable\"] = `_HqK-W_usageTable`;\n\n},{}],\"1ycJ1\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _assetUsageDetailsModalState = require(\"../state/assetUsageDetailsModalState\");\nvar _assetUsageDetailsModalStateDefault = parcelHelpers.interopDefault(_assetUsageDetailsModalState);\nconst AssetUsagesToggleButton = ()=>{\n const { isInUse } = (0, _hooks.useSelectedAsset)();\n const [assetUsagesModalOpen, setAssetUsagesModalOpen] = (0, _recoil.useRecoilState)((0, _assetUsageDetailsModalStateDefault.default));\n const { translate } = (0, _core.useIntl)();\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n disabled: isInUse === false,\n size: \"regular\",\n style: assetUsagesModalOpen ? \"brand\" : \"lighter\",\n hoverStyle: \"brand\",\n onClick: ()=>setAssetUsagesModalOpen(true)\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"link\"\n }), translate(\"assetUsageList.toggle\", \"Show usages\"));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetUsagesToggleButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"../state/assetUsageDetailsModalState\":\"iO8J3\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"VOAdR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nconst showUnusedAssetsState = (0, _recoil.atom)({\n key: \"showUnusedAssets\",\n default: false\n});\nexports.default = showUnusedAssetsState;\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6jRdf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _client = require(\"@apollo/client\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _unusedAssets = require(\"../queries/unusedAssets\");\nvar _unusedAssetsDefault = parcelHelpers.interopDefault(_unusedAssets);\nvar _showUnusedAssetsState = require(\"../state/showUnusedAssetsState\");\nvar _showUnusedAssetsStateDefault = parcelHelpers.interopDefault(_showUnusedAssetsState);\nconst useUnusedAssetsQuery = ()=>{\n const { pagination: { assetsPerPage } } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const currentPage = (0, _recoil.useRecoilValue)((0, _state.currentPageState));\n const [isLoading, setIsLoading] = (0, _recoil.useRecoilState)((0, _state.loadingState));\n const showUnusedAssets = (0, _recoil.useRecoilValue)((0, _showUnusedAssetsStateDefault.default));\n const [assets, setAssets] = (0, _react.useState)([]);\n const offset = (currentPage - 1) * assetsPerPage;\n const [query, { loading , error , data , refetch }] = (0, _client.useLazyQuery)((0, _unusedAssetsDefault.default), {\n notifyOnNetworkStatusChange: false,\n variables: {\n limit: assetsPerPage,\n offset\n }\n });\n (0, _react.useEffect)(()=>{\n if (showUnusedAssets && !loading && !isLoading) {\n query({\n variables: {\n limit: assetsPerPage,\n offset\n }\n });\n setIsLoading(true);\n } else if (data && !loading && isLoading) {\n setIsLoading(false);\n setAssets(data.unusedAssets);\n // TODO: Update currentPage if asset count changes and current page exceeds limit\n }\n // Don't include `isLoading` to prevent constant reloads\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n query,\n data,\n loading,\n offset,\n showUnusedAssets\n ]);\n return {\n error,\n assets,\n refetch\n };\n};\nexports.default = useUnusedAssetsQuery;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@apollo/client\":\"bWmmR\",\"@media-ui/core/src/state\":\"jV1GH\",\"../queries/unusedAssets\":\"jnqAx\",\"../state/showUnusedAssetsState\":\"VOAdR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dGnBp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUnusedAssetCountQuery);\nvar _client = require(\"@apollo/client\");\nvar _unusedAssetCount = require(\"./unusedAssetCount\");\nvar _unusedAssetCountDefault = parcelHelpers.interopDefault(_unusedAssetCount);\nfunction useUnusedAssetCountQuery() {\n const [load, { called , loading , data }] = (0, _client.useLazyQuery)((0, _unusedAssetCountDefault.default));\n return {\n called,\n load,\n unusedAssetCount: data?.unusedAssetCount || 0,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"./unusedAssetCount\":\"an3Nj\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"an3Nj\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst UNUSED_ASSET_COUNT = (0, _client.gql)`\n query UNUSED_ASSET_COUNT {\n unusedAssetCount\n }\n`;\nexports.default = UNUSED_ASSET_COUNT;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"d0UHQ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"typeDefs\", ()=>typeDefs);\nvar _client = require(\"@apollo/client\");\nconst typeDefs = (0, _client.gql)`\n extend type Query {\n includeUsage: Boolean!\n }\n\n extend type Mutation {\n includeUsage: Boolean!\n }\n`;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1xlGQ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"IdFromObjectResolver\", ()=>(0, _idFromObjectResolverDefault.default));\nparcelHelpers.export(exports, \"createErrorHandler\", ()=>(0, _createErrorHandlerDefault.default));\nparcelHelpers.export(exports, \"CacheFactory\", ()=>(0, _cacheDefault.default));\nvar _idFromObjectResolver = require(\"./IdFromObjectResolver\");\nvar _idFromObjectResolverDefault = parcelHelpers.interopDefault(_idFromObjectResolver);\nvar _createErrorHandler = require(\"./CreateErrorHandler\");\nvar _createErrorHandlerDefault = parcelHelpers.interopDefault(_createErrorHandler);\nvar _cache = require(\"./Cache\");\nvar _cacheDefault = parcelHelpers.interopDefault(_cache);\n\n},{\"./IdFromObjectResolver\":\"j9Wg3\",\"./CreateErrorHandler\":\"ghIYi\",\"./Cache\":\"djlWU\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"j9Wg3\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>IdFromObjectResolver);\nvar _client = require(\"@apollo/client\");\nfunction IdFromObjectResolver(object) {\n const id = `${object.__typename}_`;\n switch(object.__typename){\n case \"Image\":\n return id + object.url;\n case \"AssetFile\":\n return id + object.url;\n default:\n return (0, _client.defaultDataIdFromObject)(object);\n }\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ghIYi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _error = require(\"@apollo/client/link/error\");\nconst createErrorHandler = (notify)=>{\n return (0, _error.onError)(({ graphQLErrors , networkError })=>{\n if (graphQLErrors) graphQLErrors.map((data)=>{\n const isInternalError = data.extensions.code === \"INTERNAL_SERVER_ERROR\";\n console.error(data.extensions.code === isInternalError ? \"[Internal server error]\" : \"[GraphQL error]\", data.path, data);\n notify.error(data.extensions.code === isInternalError ? \"Internal server error\" : \"Communication error\", data.message);\n });\n if (networkError) {\n console.error(`[Network error]: ${networkError}`);\n notify.warning(\"Network error\", \"Please check your connection.\");\n }\n });\n};\nexports.default = createErrorHandler;\n\n},{\"@apollo/client/link/error\":\"1G2Qn\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1G2Qn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"onError\", ()=>onError);\nparcelHelpers.export(exports, \"ErrorLink\", ()=>ErrorLink);\nvar _tslib = require(\"tslib\");\nvar _indexJs = require(\"../core/index.js\");\nvar _indexJs1 = require(\"../../utilities/index.js\");\nfunction onError(errorHandler) {\n return new (0, _indexJs.ApolloLink)(function(operation, forward) {\n return new (0, _indexJs1.Observable)(function(observer) {\n var sub;\n var retriedSub;\n var retriedResult;\n try {\n sub = forward(operation).subscribe({\n next: function(result) {\n if (result.errors) {\n retriedResult = errorHandler({\n graphQLErrors: result.errors,\n response: result,\n operation: operation,\n forward: forward\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer)\n });\n return;\n }\n }\n observer.next(result);\n },\n error: function(networkError) {\n retriedResult = errorHandler({\n operation: operation,\n networkError: networkError,\n graphQLErrors: networkError && networkError.result && networkError.result.errors,\n forward: forward\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer)\n });\n return;\n }\n observer.error(networkError);\n },\n complete: function() {\n if (!retriedResult) observer.complete.bind(observer)();\n }\n });\n } catch (e) {\n errorHandler({\n networkError: e,\n operation: operation,\n forward: forward\n });\n observer.error(e);\n }\n return function() {\n if (sub) sub.unsubscribe();\n if (retriedSub) sub.unsubscribe();\n };\n });\n });\n}\nvar ErrorLink = function(_super) {\n (0, _tslib.__extends)(ErrorLink, _super);\n function ErrorLink(errorHandler) {\n var _this = _super.call(this) || this;\n _this.link = onError(errorHandler);\n return _this;\n }\n ErrorLink.prototype.request = function(operation, forward) {\n return this.link.request(operation, forward);\n };\n return ErrorLink;\n}((0, _indexJs.ApolloLink));\n\n},{\"tslib\":\"5RODp\",\"../core/index.js\":\"gXJ1R\",\"../../utilities/index.js\":\"k55vB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"djlWU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _index = require(\"./index\");\nclass CacheFactory {\n static createCache(featureFlags) {\n return new (0, _client.InMemoryCache)({\n dataIdFromObject: (0, _index.IdFromObjectResolver),\n typePolicies: {\n Query: {\n fields: {\n // These resolvers allow fetching single entities from the cache that were already retrieved from any previous query\n asset (_, { args , toReference }) {\n return args.id ? toReference({\n __typename: \"Asset\",\n id: args.id\n }) : null;\n },\n tag (_, { args , toReference }) {\n return args.id ? toReference({\n __typename: \"Tag\",\n id: args.id\n }) : null;\n },\n assetCollection (_, { args , toReference }) {\n return args.id ? toReference({\n __typename: \"AssetCollection\",\n id: args.id\n }) : null;\n },\n assetSource (_, { args , toReference }) {\n return args.id ? toReference({\n __typename: \"AssetSource\",\n id: args.id\n }) : null;\n },\n includeUsage () {\n return featureFlags.queryAssetUsage;\n }\n }\n },\n Mutation: {\n fields: {\n includeUsage () {\n return featureFlags.queryAssetUsage;\n }\n }\n },\n Asset: {\n keyFields: [\n \"id\"\n ]\n },\n Tag: {\n keyFields: [\n \"id\"\n ]\n },\n AssetCollection: {\n keyFields: [\n \"id\"\n ]\n },\n AssetSource: {\n keyFields: [\n \"id\"\n ]\n }\n }\n });\n }\n}\nexports.default = CacheFactory;\n\n},{\"@apollo/client\":\"bWmmR\",\"./index\":\"1xlGQ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2lMwS\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetUsage = require(\"@media-ui/feature-asset-usage\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nvar _featureConcurrentEditing = require(\"@media-ui/feature-concurrent-editing\");\nvar _featureSimilarAssets = require(\"@media-ui/feature-similar-assets\");\nvar _state1 = require(\"@media-ui/feature-asset-upload/src/state\");\nvar _components = require(\"@media-ui/feature-asset-upload/src/components\");\nvar _featureAssetPreview = require(\"@media-ui/feature-asset-preview\");\nvar _featureAssetEditing = require(\"@media-ui/feature-asset-editing\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nvar _sideBarLeft = require(\"./SideBarLeft/SideBarLeft\");\nvar _sideBarLeftDefault = parcelHelpers.interopDefault(_sideBarLeft);\nvar _sideBarRight = require(\"./SideBarRight\");\nvar _loadingIndicator = require(\"./LoadingIndicator\");\nvar _loadingIndicatorDefault = parcelHelpers.interopDefault(_loadingIndicator);\nvar _bottomBar = require(\"./BottomBar\");\nvar _topBar = require(\"./TopBar\");\nvar _main = require(\"./Main\");\nvar _errorBoundary = require(\"./ErrorBoundary\");\nvar _errorBoundaryDefault = parcelHelpers.interopDefault(_errorBoundary);\nvar _themeModuleCss = require(\"@media-ui/core/src/Theme.module.css\");\nvar _themeModuleCssDefault = parcelHelpers.interopDefault(_themeModuleCss);\nvar _appModuleCss = require(\"./App.module.css\");\nvar _appModuleCssDefault = parcelHelpers.interopDefault(_appModuleCss);\nvar _globalModuleCss = require(\"./Global.module.css\");\nconst App = ()=>{\n const { selectionMode , isInNodeCreationDialog , containerRef } = (0, _core.useMediaUi)();\n const uploadDialog = (0, _recoil.useRecoilValue)((0, _state1.uploadDialogState));\n const createTagDialog = (0, _recoil.useRecoilValue)((0, _featureAssetTags.createTagDialogState));\n const showCreateAssetCollectionDialog = (0, _recoil.useRecoilValue)((0, _featureAssetCollections.createAssetCollectionDialogVisibleState));\n const showEditAssetDialog = (0, _recoil.useRecoilValue)((0, _featureAssetEditing.editAssetDialogState));\n const showAssetUsagesModal = (0, _recoil.useRecoilValue)((0, _featureAssetUsage.assetUsageDetailsModalState));\n const showSimilarAssetsModal = (0, _recoil.useRecoilValue)((0, _featureSimilarAssets.similarAssetsModalState));\n const searchTerm = (0, _recoil.useRecoilValue)((0, _state.searchTermState));\n const selectAsset = (0, _hooks.useSelectAsset)();\n const selectAssetSource = (0, _recoil.useSetRecoilState)((0, _featureAssetSources.selectedAssetSourceState));\n // TODO: Implement asset source selection via recoil an atom effect in `searchTermState` to avoid this dangerous effect\n (0, _reactDefault.default).useEffect(()=>{\n const assetId = searchTerm.getAssetIdentifierIfPresent();\n if (assetId) {\n selectAsset(assetId);\n selectAssetSource(\"neos\");\n }\n // Don't include `selectAsset` and `selectAssetSource` to prevent constant reloads\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n searchTerm\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _classnamesDefault.default)((0, _appModuleCssDefault.default).container, (0, _appModuleCssDefault.default).mediaModuleApp, (0, _themeModuleCssDefault.default).mediaModuleTheme, {\n [(0, _appModuleCssDefault.default).selectionMode]: selectionMode,\n [(0, _appModuleCssDefault.default).fullHeight]: isInNodeCreationDialog\n }),\n ref: containerRef,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _loadingIndicatorDefault.default), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _appModuleCssDefault.default).gridLeft,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _errorBoundaryDefault.default), {\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _sideBarLeftDefault.default), {})\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _appModuleCssDefault.default).gridTop,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _topBar.TopBar), {})\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _appModuleCssDefault.default).gridMain,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _errorBoundaryDefault.default), {\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _main.Main), {})\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _bottomBar.BottomBar), {}),\n !selectionMode && /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _appModuleCssDefault.default).gridRight,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _errorBoundaryDefault.default), {\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _sideBarRight.SideBarRight), {})\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureAssetPreview.AssetPreview), {}),\n showAssetUsagesModal && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureAssetUsage.AssetUsagesModal), {}),\n uploadDialog.visible && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.UploadDialog), {}),\n showEditAssetDialog && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureAssetEditing.EditAssetDialog), {}),\n createTagDialog.visible && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureAssetTags.CreateTagDialog), {}),\n showCreateAssetCollectionDialog && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureAssetCollections.CreateAssetCollectionDialog), {}),\n showSimilarAssetsModal && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureSimilarAssets.SimilarAssetsModal), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _core.InteractionDialogRenderer), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureClipboard.ClipboardWatcher), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureConcurrentEditing.ConcurrentChangeMonitor), {})\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(App);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"classnames\":\"hVGzI\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-usage\":\"lWHpb\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@media-ui/feature-concurrent-editing\":\"7wuID\",\"@media-ui/feature-similar-assets\":\"fcGtf\",\"@media-ui/feature-asset-upload/src/state\":\"kJgrX\",\"@media-ui/feature-asset-upload/src/components\":\"aZ3Bv\",\"@media-ui/feature-asset-preview\":\"gaY0P\",\"@media-ui/feature-asset-editing\":\"hp2Yk\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"./SideBarLeft/SideBarLeft\":\"dnORg\",\"./SideBarRight\":\"l2sSM\",\"./LoadingIndicator\":\"1t2UB\",\"./BottomBar\":\"gzfIV\",\"./TopBar\":\"92ap4\",\"./Main\":\"j5uvE\",\"./ErrorBoundary\":\"cumtn\",\"@media-ui/core/src/Theme.module.css\":\"4FNJ7\",\"./App.module.css\":\"dNd2w\",\"./Global.module.css\":\"aUsND\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7wuID\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ConcurrentChangeMonitor\", ()=>(0, _concurrentChangeMonitorDefault.default));\nparcelHelpers.export(exports, \"useChangedAssetsQuery\", ()=>(0, _useChangedAssetsQueryDefault.default));\nparcelHelpers.export(exports, \"changedAssets\", ()=>(0, _changedAssetsDefault.default));\nvar _concurrentChangeMonitor = require(\"./components/ConcurrentChangeMonitor\");\nvar _concurrentChangeMonitorDefault = parcelHelpers.interopDefault(_concurrentChangeMonitor);\nvar _useChangedAssetsQuery = require(\"./hooks/useChangedAssetsQuery\");\nvar _useChangedAssetsQueryDefault = parcelHelpers.interopDefault(_useChangedAssetsQuery);\nvar _changedAssets = require(\"./queries/changedAssets\");\nvar _changedAssetsDefault = parcelHelpers.interopDefault(_changedAssets);\n\n},{\"./components/ConcurrentChangeMonitor\":\"el2Wa\",\"./hooks/useChangedAssetsQuery\":\"hnDrJ\",\"./queries/changedAssets\":\"l8DFk\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"el2Wa\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _events = require(\"@media-ui/core/src/events\");\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nvar _useChangedAssetsQuery = require(\"../hooks/useChangedAssetsQuery\");\nvar _useChangedAssetsQueryDefault = parcelHelpers.interopDefault(_useChangedAssetsQuery);\n/**\n * Renderless component to watch for remote changes, update cached assets and inform the user if necessary\n */ const ConcurrentChangeMonitor = ()=>{\n const changedAssets = (0, _useChangedAssetsQueryDefault.default)();\n const { refetch: refetchAsset } = (0, _hooks.useAssetQuery)();\n const { refetch: refetchAssets } = (0, _hooks.useAssetsQuery)();\n (0, _react.useEffect)(()=>{\n changedAssets?.forEach((change)=>{\n switch(change.type){\n case \"ASSET_REPLACED\":\n case \"ASSET_UPDATED\":\n refetchAsset({\n id: change.assetId,\n assetSourceId: (0, _featureAssetSources.NEOS_ASSET_SOURCE)\n }).then(()=>{\n // TODO: Show some notification in the ui\n console.info(change.assetId, change.type, \"An asset was updated due to a remote change\");\n });\n (0, _events.assetUpdatedEvent)({\n assetId: change.assetId,\n assetSourceId: (0, _featureAssetSources.NEOS_ASSET_SOURCE)\n });\n break;\n case \"ASSET_CREATED\":\n refetchAssets().then(()=>{\n // TODO: Show some notification in the ui\n console.info(change.assetId, change.type, \"An asset was created remotely\");\n });\n (0, _events.assetCreatedEvent)({\n assetId: change.assetId,\n assetSourceId: (0, _featureAssetSources.NEOS_ASSET_SOURCE)\n });\n break;\n case \"ASSET_REMOVED\":\n refetchAssets().then(()=>{\n // TODO: Show some notification in the ui\n console.info(change.assetId, change.type, \"An asset was removed remotely\");\n });\n (0, _events.assetRemovedEvent)({\n assetId: change.assetId,\n assetSourceId: (0, _featureAssetSources.NEOS_ASSET_SOURCE)\n });\n break;\n default:\n console.debug(change, \"unhandled remote change\");\n }\n });\n }, [\n changedAssets,\n refetchAsset,\n refetchAssets\n ]);\n return null;\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ConcurrentChangeMonitor);\n\n},{\"react\":\"6uln9\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/events\":\"59Xr2\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"../hooks/useChangedAssetsQuery\":\"hnDrJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hnDrJ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useChangedAssetsQuery);\nvar _react = require(\"react\");\nvar _client = require(\"@apollo/client\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _changedAssets = require(\"../queries/changedAssets\");\nvar _changedAssetsDefault = parcelHelpers.interopDefault(_changedAssets);\n// Check for updates every 5 seconds\nconst pollInterval = 5000;\nconst AssetLastModifiedFragment = (0, _client.gql)`\n fragment AssetLastModified on Asset {\n lastModified\n }\n`;\nfunction useChangedAssetsQuery() {\n const { config } = (0, _hooks.useConfigQuery)();\n const [lastUpdate, setLastUpdate] = (0, _react.useState)(null);\n const [changes, setChanges] = (0, _react.useState)([]);\n // Query will continue to run on its own and poll the api\n const { data , client } = (0, _client.useQuery)((0, _changedAssetsDefault.default), {\n variables: {\n since: lastUpdate ?? config?.currentServerTime\n },\n // TODO: slow down or skip requests when errors occur\n pollInterval,\n skip: !config?.currentServerTime\n });\n // \"onComplete\" in the query options cannot be used, as it's only called once, due to the bug described in https://github.com/apollographql/apollo-client/issues/5531\n (0, _react.useEffect)(()=>{\n if (!data?.changedAssets) return;\n const { lastModified , changes } = data.changedAssets;\n // FIXME: Updating lastModified will immediately trigger another query for changes. Maybe we can't prevent this and rather wait for the next interval.\n if (lastModified) setLastUpdate(lastModified);\n const relevantChanges = changes.filter((change)=>{\n // New assets are always relevant, and we surely have no previous version in the cache\n if (change.type === \"ASSET_CREATED\") return true;\n // Check if we have a cached version of the changed asset\n const data = client.cache.readFragment({\n fragment: AssetLastModifiedFragment,\n id: client.cache.identify({\n __typename: \"Asset\",\n id: change.assetId\n })\n });\n // Ignore changes to assets we never queried\n if (!data) return false;\n // Ignore changes that are older than our own version\n return data.lastModified < change.lastModified;\n });\n // Prevent triggering an update of the hook if we have zero changes since last time\n setChanges((prev)=>relevantChanges.length === 0 ? prev : relevantChanges);\n }, [\n data?.changedAssets,\n client\n ]);\n return changes;\n}\n\n},{\"react\":\"6uln9\",\"@apollo/client\":\"bWmmR\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"../queries/changedAssets\":\"l8DFk\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"l8DFk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst CHANGED_ASSETS = (0, _client.gql)`\n query CHANGED_ASSETS($since: DateTime = null) {\n changedAssets(since: $since) {\n lastModified\n changes {\n assetId\n lastModified\n type\n }\n }\n }\n`;\nexports.default = CHANGED_ASSETS;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fcGtf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SimilarAssetsToggleButton\", ()=>(0, _similarAssetsToggleButtonDefault.default));\nparcelHelpers.export(exports, \"similarAssetsModalState\", ()=>(0, _similarAssetsModalStateDefault.default));\nparcelHelpers.export(exports, \"SimilarAssetsModal\", ()=>(0, _similarAssetsModalDefault.default));\nparcelHelpers.export(exports, \"useSimilarAssetsQuery\", ()=>(0, _useSimilarAssetsDefault.default));\nparcelHelpers.export(exports, \"SIMILAR_ASSETS\", ()=>(0, _similarAssetsDefault.default));\nvar _similarAssetsToggleButton = require(\"./components/SimilarAssetsToggleButton\");\nvar _similarAssetsToggleButtonDefault = parcelHelpers.interopDefault(_similarAssetsToggleButton);\nvar _similarAssetsModal = require(\"./components/SimilarAssetsModal\");\nvar _similarAssetsModalDefault = parcelHelpers.interopDefault(_similarAssetsModal);\nvar _similarAssetsModalState = require(\"./state/similarAssetsModalState\");\nvar _similarAssetsModalStateDefault = parcelHelpers.interopDefault(_similarAssetsModalState);\nvar _useSimilarAssets = require(\"./hooks/useSimilarAssets\");\nvar _useSimilarAssetsDefault = parcelHelpers.interopDefault(_useSimilarAssets);\nvar _similarAssets = require(\"./queries/similarAssets\");\nvar _similarAssetsDefault = parcelHelpers.interopDefault(_similarAssets);\n\n},{\"./components/SimilarAssetsToggleButton\":\"jn0qE\",\"./components/SimilarAssetsModal\":\"bAVNs\",\"./state/similarAssetsModalState\":\"j1X0m\",\"./hooks/useSimilarAssets\":\"6zELH\",\"./queries/similarAssets\":\"T1Bn4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jn0qE\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _similarAssetsModalState = require(\"../state/similarAssetsModalState\");\nvar _similarAssetsModalStateDefault = parcelHelpers.interopDefault(_similarAssetsModalState);\nconst SimilarAssetsToggleButton = ()=>{\n const [similarAssetsModalOpen, setSimilarAssetsModalOpen] = (0, _recoil.useRecoilState)((0, _similarAssetsModalStateDefault.default));\n const { translate } = (0, _core.useIntl)();\n return /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: similarAssetsModalOpen ? \"brand\" : \"lighter\",\n hoverStyle: \"brand\",\n onClick: ()=>setSimilarAssetsModalOpen(true)\n }, /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Icon), {\n icon: \"equals\"\n }), translate(\"similarAssetsModal.show\", \"Show similar assets\"));\n};\nexports.default = /*#__PURE__*/ _react.memo(SimilarAssetsToggleButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../state/similarAssetsModalState\":\"j1X0m\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"j1X0m\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nconst similarAssetsModalState = (0, _recoil.atom)({\n key: \"similarAssetsModalState\",\n default: false\n});\nexports.default = similarAssetsModalState;\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bAVNs\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _similarAssetsModalState = require(\"../state/similarAssetsModalState\");\nvar _similarAssetsModalStateDefault = parcelHelpers.interopDefault(_similarAssetsModalState);\nvar _useSimilarAssets = require(\"../hooks/useSimilarAssets\");\nvar _useSimilarAssetsDefault = parcelHelpers.interopDefault(_useSimilarAssets);\nvar _similarAsset = require(\"./SimilarAsset\");\nvar _similarAssetDefault = parcelHelpers.interopDefault(_similarAsset);\nvar _similarAssetsModalModuleCss = require(\"./SimilarAssetsModal.module.css\");\nvar _similarAssetsModalModuleCssDefault = parcelHelpers.interopDefault(_similarAssetsModalModuleCss);\nconst SimilarAssetsModal = ()=>{\n const { translate } = (0, _core.useIntl)();\n const [isOpen, setIsOpen] = (0, _recoil.useRecoilState)((0, _similarAssetsModalStateDefault.default));\n const asset = (0, _hooks.useSelectedAsset)();\n const { similarAssets , loading } = (0, _useSimilarAssetsDefault.default)(asset ? {\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n } : null);\n const handleRequestClose = (0, _react.useCallback)(()=>setIsOpen(false), [\n setIsOpen\n ]);\n return /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Dialog), {\n isOpen: isOpen,\n title: translate(\"similarAssetsModal.title\", `Similar assets to ${asset.label}`, {\n asset: asset.label\n }),\n onRequestClose: handleRequestClose,\n style: \"wide\",\n actions: [\n /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: handleRequestClose\n }, translate(\"similarAssetsModal.cancel\", \"Cancel\"))\n ]\n }, /*#__PURE__*/ _react.createElement(\"div\", {\n className: (0, _similarAssetsModalModuleCssDefault.default).assetUsage\n }, similarAssets?.length > 0 ? similarAssets.map((asset, index)=>/*#__PURE__*/ _react.createElement((0, _similarAssetDefault.default), {\n key: index,\n asset: asset\n })) : /*#__PURE__*/ _react.createElement(\"span\", null, loading ? translate(\"similarAssetsModal.loading\", \"Loading...\") : translate(\"similarAssetsModal.noResults\", \"No results\"))));\n};\nexports.default = /*#__PURE__*/ _react.memo(SimilarAssetsModal);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"../state/similarAssetsModalState\":\"j1X0m\",\"../hooks/useSimilarAssets\":\"6zELH\",\"./SimilarAsset\":\"9TrQp\",\"./SimilarAssetsModal.module.css\":\"lLlPK\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6zELH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useSimilarAssetsQuery);\nvar _client = require(\"@apollo/client\");\nvar _similarAssets = require(\"../queries/similarAssets\");\nvar _similarAssetsDefault = parcelHelpers.interopDefault(_similarAssets);\nfunction useSimilarAssetsQuery(assetIdentity) {\n const { data , loading } = (0, _client.useQuery)((0, _similarAssetsDefault.default), {\n variables: {\n id: assetIdentity?.assetId,\n assetSourceId: assetIdentity?.assetSourceId\n },\n skip: !assetIdentity\n });\n return {\n similarAssets: data?.similarAssets || null,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/similarAssets\":\"T1Bn4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"T1Bn4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _asset = require(\"@media-ui/core/src/fragments/asset\");\nconst SIMILAR_ASSETS = (0, _client.gql)`\n query SIMILAR_ASSETS($id: AssetId!, $assetSourceId: AssetSourceId!, $includeUsage: Boolean = false) {\n includeUsage @client(always: true) @export(as: \"includeUsage\")\n similarAssets(id: $id, assetSourceId: $assetSourceId) {\n ...AssetProps\n }\n }\n ${(0, _asset.ASSET_FRAGMENT)}\n`;\nexports.default = SIMILAR_ASSETS;\n\n},{\"@apollo/client\":\"bWmmR\",\"@media-ui/core/src/fragments/asset\":\"cP1Zi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9TrQp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _similarAssetModuleCss = require(\"./SimilarAsset.module.css\");\nvar _similarAssetModuleCssDefault = parcelHelpers.interopDefault(_similarAssetModuleCss);\nconst SimilarAsset = ({ asset })=>{\n const { dummyImage } = (0, _core.useMediaUi)();\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"figure\", {\n className: (0, _similarAssetModuleCssDefault.default).similarAsset\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"picture\", {\n className: (0, _similarAssetModuleCssDefault.default).picture\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"img\", {\n src: !asset ? dummyImage : asset.thumbnailUrl,\n alt: asset?.label\n })), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"figcaption\", {\n className: (0, _similarAssetModuleCssDefault.default).caption\n }, asset && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"img\", {\n src: asset.file.typeIcon.url,\n alt: asset.file.typeIcon.alt\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", null, asset.label))));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(SimilarAsset);\n\n},{\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"./SimilarAsset.module.css\":\"hL4ZQ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hL4ZQ\":[function(require,module,exports) {\nmodule.exports[\"caption\"] = `mL8aSq_caption`;\nmodule.exports[\"picture\"] = `mL8aSq_picture`;\nmodule.exports[\"similarAsset\"] = `mL8aSq_similarAsset`;\n\n},{}],\"lLlPK\":[function(require,module,exports) {\nmodule.exports[\"assetUsage\"] = `-zEGyG_assetUsage`;\n\n},{}],\"kJgrX\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"uploadDialogState\", ()=>(0, _uploadDialogState.uploadDialogState));\nvar _uploadDialogState = require(\"./uploadDialogState\");\n\n},{\"./uploadDialogState\":\"1bQep\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1bQep\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"UPLOAD_TYPE\", ()=>UPLOAD_TYPE);\nparcelHelpers.export(exports, \"uploadDialogState\", ()=>uploadDialogState);\nvar _recoil = require(\"recoil\");\nvar UPLOAD_TYPE;\n(function(UPLOAD_TYPE) {\n UPLOAD_TYPE[\"new\"] = \"new\";\n UPLOAD_TYPE[\"update\"] = \"update\";\n})(UPLOAD_TYPE || (UPLOAD_TYPE = {}));\nconst uploadDialogState = (0, _recoil.atom)({\n key: \"uploadDialogState\",\n default: {\n visible: false,\n uploadType: UPLOAD_TYPE.new\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aZ3Bv\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"AssetReplacementButton\", ()=>(0, _assetReplacementButtonDefault.default));\nparcelHelpers.export(exports, \"FilePreview\", ()=>(0, _filePreviewDefault.default));\nparcelHelpers.export(exports, \"NewAssetDialog\", ()=>(0, _newAssetDialogDefault.default));\nparcelHelpers.export(exports, \"PreviewSection\", ()=>(0, _previewSectionDefault.default));\nparcelHelpers.export(exports, \"ReplaceAssetDialog\", ()=>(0, _replaceAssetDialogDefault.default));\nparcelHelpers.export(exports, \"UploadButton\", ()=>(0, _uploadButtonDefault.default));\nparcelHelpers.export(exports, \"UploadDialog\", ()=>(0, _uploadDialogDefault.default));\nparcelHelpers.export(exports, \"UploadSection\", ()=>(0, _uploadSectionDefault.default));\nvar _newAssetDialog = require(\"./Dialogs/NewAssetDialog\");\nvar _newAssetDialogDefault = parcelHelpers.interopDefault(_newAssetDialog);\nvar _replaceAssetDialog = require(\"./Dialogs/ReplaceAssetDialog\");\nvar _replaceAssetDialogDefault = parcelHelpers.interopDefault(_replaceAssetDialog);\nvar _uploadDialog = require(\"./Dialogs/UploadDialog\");\nvar _uploadDialogDefault = parcelHelpers.interopDefault(_uploadDialog);\nvar _filePreview = require(\"./FilePreview\");\nvar _filePreviewDefault = parcelHelpers.interopDefault(_filePreview);\nvar _previewSection = require(\"./PreviewSection\");\nvar _previewSectionDefault = parcelHelpers.interopDefault(_previewSection);\nvar _uploadSection = require(\"./UploadSection\");\nvar _uploadSectionDefault = parcelHelpers.interopDefault(_uploadSection);\nvar _assetReplacementButton = require(\"./AssetReplacementButton\");\nvar _assetReplacementButtonDefault = parcelHelpers.interopDefault(_assetReplacementButton);\nvar _uploadButton = require(\"./UploadButton\");\nvar _uploadButtonDefault = parcelHelpers.interopDefault(_uploadButton);\n\n},{\"./Dialogs/NewAssetDialog\":\"fwZlu\",\"./Dialogs/ReplaceAssetDialog\":\"75MDD\",\"./Dialogs/UploadDialog\":\"4JmWi\",\"./FilePreview\":\"6tKrf\",\"./PreviewSection\":\"cBrj6\",\"./UploadSection\":\"i9dFh\",\"./AssetReplacementButton\":\"1YqlF\",\"./UploadButton\":\"bhq7y\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fwZlu\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _uploadSection = require(\"../UploadSection\");\nvar _uploadSectionDefault = parcelHelpers.interopDefault(_uploadSection);\nvar _previewSection = require(\"../PreviewSection\");\nvar _previewSectionDefault = parcelHelpers.interopDefault(_previewSection);\nvar _hooks = require(\"../../hooks\");\nvar _hooks1 = require(\"@media-ui/core/src/hooks\");\nvar _newAssetDialogModuleCss = require(\"./NewAssetDialog.module.css\");\nvar _newAssetDialogModuleCssDefault = parcelHelpers.interopDefault(_newAssetDialogModuleCss);\nconst NewAssetDialog = ()=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const { uploadFiles , uploadState , loading } = (0, _hooks.useUploadFiles)();\n const { state: dialogState , closeDialog , setFiles } = (0, _hooks.useUploadDialogState)();\n const { refetch } = (0, _hooks1.useAssetsQuery)();\n const uploadPossible = !loading && dialogState.files.selected.length > 0;\n const handleUpload = (0, _react.useCallback)(()=>{\n uploadFiles(dialogState.files.selected).then(({ data: { uploadFiles } })=>{\n // FIXME: Mapping the uploadState to the files name is not the best solution as the same filename might be used multiple times\n // Move uploaded or failed files into separate lists\n setFiles((prev)=>{\n return {\n selected: [],\n finished: [\n ...prev.finished,\n ...prev.selected.filter((file)=>uploadFiles.find((result)=>result.success && result.filename === file.name))\n ],\n rejected: [\n ...prev.rejected,\n ...prev.selected.filter((file)=>uploadFiles.find((result)=>!result.success && result.filename === file.name))\n ]\n };\n });\n if (uploadFiles.some((result)=>!result.success)) Notify.warning(translate(\"uploadDialog.uploadFinishedWithErrors\", \"Some files could not be uploaded\"));\n else Notify.ok(translate(\"uploadDialog.uploadFinished\", \"Upload finished\"));\n // Refresh list of files if any file was uploaded\n if (uploadFiles.some((result)=>result.success)) refetch();\n }).catch((error)=>{\n Notify.error(translate(\"fileUpload.error\", \"Upload failed\"), error);\n });\n }, [\n uploadFiles,\n dialogState.files.selected,\n setFiles,\n Notify,\n translate,\n refetch\n ]);\n const handleSetFiles = (0, _react.useCallback)((files)=>{\n setFiles((prev)=>{\n return {\n ...prev,\n selected: files\n };\n });\n }, [\n setFiles\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.Dialog), {\n isOpen: dialogState.visible,\n title: translate(\"uploadDialog.title\", \"Upload assets\"),\n onRequestClose: closeDialog,\n actions: [\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: closeDialog\n }, uploadState ? translate(\"uploadDialog.close\", \"Close\") : translate(\"uploadDialog.cancel\", \"Cancel\")),\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"upload\",\n style: \"success\",\n hoverStyle: \"success\",\n disabled: !uploadPossible,\n onClick: handleUpload\n }, translate(\"uploadDialog.upload\", \"Upload\"))\n ],\n style: \"wide\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"section\", {\n className: (0, _newAssetDialogModuleCssDefault.default).uploadArea\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _uploadSectionDefault.default), {\n files: dialogState.files.selected,\n loading: loading,\n onSetFiles: handleSetFiles\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _previewSectionDefault.default), {\n files: dialogState.files,\n loading: loading,\n uploadState: uploadState\n })));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(NewAssetDialog);\n\n},{\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"../UploadSection\":\"i9dFh\",\"../PreviewSection\":\"cBrj6\",\"../../hooks\":\"cWFPh\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"./NewAssetDialog.module.css\":\"lBk4j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i9dFh\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactDropzone = require(\"react-dropzone\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _helper = require(\"@media-ui/core/src/helper\");\nvar _uploadSectionModuleCss = require(\"./UploadSection.module.css\");\nvar _uploadSectionModuleCssDefault = parcelHelpers.interopDefault(_uploadSectionModuleCss);\nconst UploadSection = ({ acceptedFileTypes , files , loading , maxFiles , onSetFiles })=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const { dummyImage } = (0, _core.useMediaUi)();\n const { config } = (0, _hooks.useConfigQuery)();\n const maxFilesToUpload = maxFiles ? Math.min(maxFiles, config?.uploadMaxFileUploadLimit) : config?.uploadMaxFileUploadLimit || 1;\n const { getRootProps , getInputProps , isDragAccept , isDragActive , isDragReject } = (0, _reactDropzone.useDropzone)({\n onDrop: (acceptedFiles)=>{\n if (acceptedFiles.length === 0) return;\n const spotsLeft = maxFilesToUpload - files.length;\n if (acceptedFiles.length > spotsLeft) Notify.error(translate(\"uploadDialog.warning.maxFiles\", `You can only upload a maximum of {limit} files. {rejected} File(s) rejected`, {\n limit: maxFilesToUpload,\n rejected: acceptedFiles.length - spotsLeft\n }));\n if (spotsLeft === 0) return;\n const newAcceptedFiles = acceptedFiles.length < spotsLeft ? acceptedFiles : acceptedFiles.slice(0, spotsLeft);\n const newFiles = newAcceptedFiles.map((file)=>{\n // Generate a unique id for the file to prevent errors with duplicate file names\n file.id = `${file.name}-${file.size}-${file.lastModified}`;\n if (file.type.indexOf(\"image\") === 0) file.preview = URL.createObjectURL(file);\n else // TODO: Find better preview visualisation\n file.preview = dummyImage;\n return file;\n });\n onSetFiles(files.concat(newFiles));\n },\n disabled: loading,\n onDropRejected: (rejections)=>{\n rejections.forEach((rejection)=>{\n Notify.warning(translate(\"uploadDialog.warning.fileRejected\", `The given file cannot be uploaded.`), rejection.errors.reduce((acc, error)=>`${acc} ${error.message}`, \"\"));\n });\n },\n maxSize: config?.uploadMaxFileSize || 0,\n maxFiles: maxFilesToUpload,\n multiple: maxFilesToUpload > 1,\n preventDropOnDocument: true,\n accept: acceptedFileTypes\n });\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"section\", null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", getRootProps({\n className: (0, _classnamesDefault.default)((0, _uploadSectionModuleCssDefault.default).dropzone, isDragAccept && (0, _uploadSectionModuleCssDefault.default).dropzoneAccept, isDragActive && (0, _uploadSectionModuleCssDefault.default).dropzoneActive, isDragReject && (0, _uploadSectionModuleCssDefault.default).dropzoneReject)\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"input\", getInputProps()), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"p\", null, translate(\"uploadDialog.dropzone.caption\", \"Drag 'n' drop some files here, or click to select files\")), config?.uploadMaxFileSize > 0 && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"p\", null, translate(\"uploadDialog.maxFileSize\", \"Maximum file size is {size} and file limit is {limit}\", {\n size: (0, _helper.humanFileSize)(config.uploadMaxFileSize),\n limit: maxFilesToUpload\n }))), loading && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"p\", null, translate(\"uploadDialog.label.uploading\", \"Uploading…\")));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(UploadSection);\n\n},{\"react\":\"6uln9\",\"react-dropzone\":\"46RRi\",\"classnames\":\"hVGzI\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/helper\":\"80jPI\",\"./UploadSection.module.css\":\"2RExP\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"46RRi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * A React hook that creates a drag 'n' drop area.\n *\n * ```jsx\n * function MyDropzone(props) {\n * const {getRootProps, getInputProps} = useDropzone({\n * onDrop: acceptedFiles => {\n * // do something with the File objects, e.g. upload to some server\n * }\n * });\n * return (\n *
    \n * \n *

    Drag and drop some files here, or click to select files

    \n *
    \n * )\n * }\n * ```\n *\n * @function useDropzone\n *\n * @param {object} props\n * @param {string|string[]} [props.accept] Set accepted file types.\n * See https://github.com/okonet/attr-accept for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all.\n * See: https://github.com/react-dropzone/react-dropzone/issues/276\n * @param {boolean} [props.multiple=true] Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @param {boolean} [props.preventDropOnDocument=true] If false, allow dropped items to take over the current browser window\n * @param {boolean} [props.noClick=false] If true, disables click to open the native file selection dialog\n * @param {boolean} [props.noKeyboard=false] If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n * @param {boolean} [props.noDrag=false] If true, disables drag 'n' drop\n * @param {boolean} [props.noDragEventsBubbling=false] If true, stops drag event propagation to parents\n * @param {number} [props.minSize=0] Minimum file size (in bytes)\n * @param {number} [props.maxSize=Infinity] Maximum file size (in bytes)\n * @param {boolean} [props.disabled=false] Enable/disable the dropzone\n * @param {getFilesFromEvent} [props.getFilesFromEvent] Use this to provide a custom file aggregator\n * @param {Function} [props.onFileDialogCancel] Cb for when closing the file dialog with no selection\n * @param {dragCb} [props.onDragEnter] Cb for when the `dragenter` event occurs.\n * @param {dragCb} [props.onDragLeave] Cb for when the `dragleave` event occurs\n * @param {dragCb} [props.onDragOver] Cb for when the `dragover` event occurs\n * @param {dropCb} [props.onDrop] Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are dropped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n * @param {dropAcceptedCb} [props.onDropAccepted]\n * @param {dropRejectedCb} [props.onDropRejected]\n *\n * @returns {DropzoneState}\n */ parcelHelpers.export(exports, \"useDropzone\", ()=>useDropzone);\n/* eslint prefer-template: 0 */ var _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _fileSelector = require(\"file-selector\");\nvar _index = require(\"./utils/index\");\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n/**\n * Convenience wrapper component for the `useDropzone` hook\n *\n * ```jsx\n * \n * {({getRootProps, getInputProps}) => (\n *
    \n * \n *

    Drag 'n' drop some files here, or click to select files

    \n *
    \n * )}\n *
    \n * ```\n */ var Dropzone = /*#__PURE__*/ (0, _react.forwardRef)(function(_ref, ref) {\n var children = _ref.children, params = _objectWithoutProperties(_ref, [\n \"children\"\n ]);\n var _useDropzone = useDropzone(params), open = _useDropzone.open, props = _objectWithoutProperties(_useDropzone, [\n \"open\"\n ]);\n (0, _react.useImperativeHandle)(ref, function() {\n return {\n open: open\n };\n }, [\n open\n ]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _react.Fragment), null, children(_objectSpread(_objectSpread({}, props), {}, {\n open: open\n })));\n});\nDropzone.displayName = \"Dropzone\"; // Add default props for react-docgen\nvar defaultProps = {\n disabled: false,\n getFilesFromEvent: (0, _fileSelector.fromEvent),\n maxSize: Infinity,\n minSize: 0,\n multiple: true,\n maxFiles: 0,\n preventDropOnDocument: true,\n noClick: false,\n noKeyboard: false,\n noDrag: false,\n noDragEventsBubbling: false,\n validator: null\n};\nDropzone.defaultProps = defaultProps;\nDropzone.propTypes = {\n /**\n * Render function that exposes the dropzone state and prop getter fns\n *\n * @param {object} params\n * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render\n * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render\n * @param {Function} params.open Open the native file selection dialog\n * @param {boolean} params.isFocused Dropzone area is in focus\n * @param {boolean} params.isFileDialogActive File dialog is opened\n * @param {boolean} params.isDragActive Active drag is in progress\n * @param {boolean} params.isDragAccept Dragged files are accepted\n * @param {boolean} params.isDragReject Some dragged files are rejected\n * @param {File[]} params.draggedFiles Files in active drag\n * @param {File[]} params.acceptedFiles Accepted files\n * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected\n */ children: (0, _propTypesDefault.default).func,\n /**\n * Set accepted file types.\n * See https://github.com/okonet/attr-accept for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all.\n * See: https://github.com/react-dropzone/react-dropzone/issues/276\n */ accept: (0, _propTypesDefault.default).oneOfType([\n (0, _propTypesDefault.default).string,\n (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).string)\n ]),\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n */ multiple: (0, _propTypesDefault.default).bool,\n /**\n * If false, allow dropped items to take over the current browser window\n */ preventDropOnDocument: (0, _propTypesDefault.default).bool,\n /**\n * If true, disables click to open the native file selection dialog\n */ noClick: (0, _propTypesDefault.default).bool,\n /**\n * If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n */ noKeyboard: (0, _propTypesDefault.default).bool,\n /**\n * If true, disables drag 'n' drop\n */ noDrag: (0, _propTypesDefault.default).bool,\n /**\n * If true, stops drag event propagation to parents\n */ noDragEventsBubbling: (0, _propTypesDefault.default).bool,\n /**\n * Minimum file size (in bytes)\n */ minSize: (0, _propTypesDefault.default).number,\n /**\n * Maximum file size (in bytes)\n */ maxSize: (0, _propTypesDefault.default).number,\n /**\n * Maximum accepted number of files\n * The default value is 0 which means there is no limitation to how many files are accepted.\n */ maxFiles: (0, _propTypesDefault.default).number,\n /**\n * Enable/disable the dropzone\n */ disabled: (0, _propTypesDefault.default).bool,\n /**\n * Use this to provide a custom file aggregator\n *\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */ getFilesFromEvent: (0, _propTypesDefault.default).func,\n /**\n * Cb for when closing the file dialog with no selection\n */ onFileDialogCancel: (0, _propTypesDefault.default).func,\n /**\n * Cb for when the `dragenter` event occurs.\n *\n * @param {DragEvent} event\n */ onDragEnter: (0, _propTypesDefault.default).func,\n /**\n * Cb for when the `dragleave` event occurs\n *\n * @param {DragEvent} event\n */ onDragLeave: (0, _propTypesDefault.default).func,\n /**\n * Cb for when the `dragover` event occurs\n *\n * @param {DragEvent} event\n */ onDragOver: (0, _propTypesDefault.default).func,\n /**\n * Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are dropped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n *\n * @param {File[]} acceptedFiles\n * @param {FileRejection[]} fileRejections\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */ onDrop: (0, _propTypesDefault.default).func,\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are accepted, this callback is not invoked.\n *\n * @param {File[]} files\n * @param {(DragEvent|Event)} event\n */ onDropAccepted: (0, _propTypesDefault.default).func,\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are rejected, this callback is not invoked.\n *\n * @param {FileRejection[]} fileRejections\n * @param {(DragEvent|Event)} event\n */ onDropRejected: (0, _propTypesDefault.default).func,\n /**\n * Custom validation function \n * @param {File} file\n * @returns {FileError|FileError[]}\n */ validator: (0, _propTypesDefault.default).func\n};\nexports.default = Dropzone;\n/**\n * A function that is invoked for the `dragenter`,\n * `dragover` and `dragleave` events.\n * It is not invoked if the items are not files (such as link, text, etc.).\n *\n * @callback dragCb\n * @param {DragEvent} event\n */ /**\n * A function that is invoked for the `drop` or input change event.\n * It is not invoked if the items are not files (such as link, text, etc.).\n *\n * @callback dropCb\n * @param {File[]} acceptedFiles List of accepted files\n * @param {FileRejection[]} fileRejections List of rejected files and why they were rejected\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */ /**\n * A function that is invoked for the `drop` or input change event.\n * It is not invoked if the items are files (such as link, text, etc.).\n *\n * @callback dropAcceptedCb\n * @param {File[]} files List of accepted files that meet the given criteria\n * (`accept`, `multiple`, `minSize`, `maxSize`)\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */ /**\n * A function that is invoked for the `drop` or input change event.\n *\n * @callback dropRejectedCb\n * @param {File[]} files List of rejected files that do not meet the given criteria\n * (`accept`, `multiple`, `minSize`, `maxSize`)\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */ /**\n * A function that is used aggregate files,\n * in a asynchronous fashion, from drag or input change events.\n *\n * @callback getFilesFromEvent\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n * @returns {(File[]|Promise)}\n */ /**\n * An object with the current dropzone state and some helper functions.\n *\n * @typedef {object} DropzoneState\n * @property {Function} getRootProps Returns the props you should apply to the root drop container you render\n * @property {Function} getInputProps Returns the props you should apply to hidden file input you render\n * @property {Function} open Open the native file selection dialog\n * @property {boolean} isFocused Dropzone area is in focus\n * @property {boolean} isFileDialogActive File dialog is opened\n * @property {boolean} isDragActive Active drag is in progress\n * @property {boolean} isDragAccept Dragged files are accepted\n * @property {boolean} isDragReject Some dragged files are rejected\n * @property {File[]} draggedFiles Files in active drag\n * @property {File[]} acceptedFiles Accepted files\n * @property {FileRejection[]} fileRejections Rejected files and why they were rejected\n */ var initialState = {\n isFocused: false,\n isFileDialogActive: false,\n isDragActive: false,\n isDragAccept: false,\n isDragReject: false,\n draggedFiles: [],\n acceptedFiles: [],\n fileRejections: []\n};\nfunction useDropzone() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _defaultProps$options = _objectSpread(_objectSpread({}, defaultProps), options), accept = _defaultProps$options.accept, disabled = _defaultProps$options.disabled, getFilesFromEvent = _defaultProps$options.getFilesFromEvent, maxSize = _defaultProps$options.maxSize, minSize = _defaultProps$options.minSize, multiple = _defaultProps$options.multiple, maxFiles = _defaultProps$options.maxFiles, onDragEnter = _defaultProps$options.onDragEnter, onDragLeave = _defaultProps$options.onDragLeave, onDragOver = _defaultProps$options.onDragOver, onDrop = _defaultProps$options.onDrop, onDropAccepted = _defaultProps$options.onDropAccepted, onDropRejected = _defaultProps$options.onDropRejected, onFileDialogCancel = _defaultProps$options.onFileDialogCancel, preventDropOnDocument = _defaultProps$options.preventDropOnDocument, noClick = _defaultProps$options.noClick, noKeyboard = _defaultProps$options.noKeyboard, noDrag = _defaultProps$options.noDrag, noDragEventsBubbling = _defaultProps$options.noDragEventsBubbling, validator = _defaultProps$options.validator;\n var rootRef = (0, _react.useRef)(null);\n var inputRef = (0, _react.useRef)(null);\n var _useReducer = (0, _react.useReducer)(reducer, initialState), _useReducer2 = _slicedToArray(_useReducer, 2), state = _useReducer2[0], dispatch = _useReducer2[1];\n var isFocused = state.isFocused, isFileDialogActive = state.isFileDialogActive, draggedFiles = state.draggedFiles; // Fn for opening the file dialog programmatically\n var openFileDialog = (0, _react.useCallback)(function() {\n if (inputRef.current) {\n dispatch({\n type: \"openDialog\"\n });\n inputRef.current.value = null;\n inputRef.current.click();\n }\n }, [\n dispatch\n ]); // Update file dialog active state when the window is focused on\n var onWindowFocus = function onWindowFocus() {\n // Execute the timeout only if the file dialog is opened in the browser\n if (isFileDialogActive) setTimeout(function() {\n if (inputRef.current) {\n var files = inputRef.current.files;\n if (!files.length) {\n dispatch({\n type: \"closeDialog\"\n });\n if (typeof onFileDialogCancel === \"function\") onFileDialogCancel();\n }\n }\n }, 300);\n };\n (0, _react.useEffect)(function() {\n window.addEventListener(\"focus\", onWindowFocus, false);\n return function() {\n window.removeEventListener(\"focus\", onWindowFocus, false);\n };\n }, [\n inputRef,\n isFileDialogActive,\n onFileDialogCancel\n ]); // Cb to open the file dialog when SPACE/ENTER occurs on the dropzone\n var onKeyDownCb = (0, _react.useCallback)(function(event) {\n // Ignore keyboard events bubbling up the DOM tree\n if (!rootRef.current || !rootRef.current.isEqualNode(event.target)) return;\n if (event.keyCode === 32 || event.keyCode === 13) {\n event.preventDefault();\n openFileDialog();\n }\n }, [\n rootRef,\n inputRef\n ]); // Update focus state for the dropzone\n var onFocusCb = (0, _react.useCallback)(function() {\n dispatch({\n type: \"focus\"\n });\n }, []);\n var onBlurCb = (0, _react.useCallback)(function() {\n dispatch({\n type: \"blur\"\n });\n }, []); // Cb to open the file dialog when click occurs on the dropzone\n var onClickCb = (0, _react.useCallback)(function() {\n if (noClick) return;\n // In IE11/Edge the file-browser dialog is blocking, therefore, use setTimeout()\n // to ensure React can handle state changes\n // See: https://github.com/react-dropzone/react-dropzone/issues/450\n if ((0, _index.isIeOrEdge)()) setTimeout(openFileDialog, 0);\n else openFileDialog();\n }, [\n inputRef,\n noClick\n ]);\n var dragTargetsRef = (0, _react.useRef)([]);\n var onDocumentDrop = function onDocumentDrop(event) {\n if (rootRef.current && rootRef.current.contains(event.target)) // If we intercepted an event for our instance, let it propagate down to the instance's onDrop handler\n return;\n event.preventDefault();\n dragTargetsRef.current = [];\n };\n (0, _react.useEffect)(function() {\n if (preventDropOnDocument) {\n document.addEventListener(\"dragover\", (0, _index.onDocumentDragOver), false);\n document.addEventListener(\"drop\", onDocumentDrop, false);\n }\n return function() {\n if (preventDropOnDocument) {\n document.removeEventListener(\"dragover\", (0, _index.onDocumentDragOver));\n document.removeEventListener(\"drop\", onDocumentDrop);\n }\n };\n }, [\n rootRef,\n preventDropOnDocument\n ]);\n var onDragEnterCb = (0, _react.useCallback)(function(event) {\n event.preventDefault(); // Persist here because we need the event later after getFilesFromEvent() is done\n event.persist();\n stopPropagation(event);\n dragTargetsRef.current = [].concat(_toConsumableArray(dragTargetsRef.current), [\n event.target\n ]);\n if ((0, _index.isEvtWithFiles)(event)) Promise.resolve(getFilesFromEvent(event)).then(function(draggedFiles) {\n if ((0, _index.isPropagationStopped)(event) && !noDragEventsBubbling) return;\n dispatch({\n draggedFiles: draggedFiles,\n isDragActive: true,\n type: \"setDraggedFiles\"\n });\n if (onDragEnter) onDragEnter(event);\n });\n }, [\n getFilesFromEvent,\n onDragEnter,\n noDragEventsBubbling\n ]);\n var onDragOverCb = (0, _react.useCallback)(function(event) {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n var hasFiles = (0, _index.isEvtWithFiles)(event);\n if (hasFiles && event.dataTransfer) try {\n event.dataTransfer.dropEffect = \"copy\";\n } catch (_unused) {}\n if (hasFiles && onDragOver) onDragOver(event);\n return false;\n }, [\n onDragOver,\n noDragEventsBubbling\n ]);\n var onDragLeaveCb = (0, _react.useCallback)(function(event) {\n event.preventDefault();\n event.persist();\n stopPropagation(event); // Only deactivate once the dropzone and all children have been left\n var targets = dragTargetsRef.current.filter(function(target) {\n return rootRef.current && rootRef.current.contains(target);\n }); // Make sure to remove a target present multiple times only once\n // (Firefox may fire dragenter/dragleave multiple times on the same element)\n var targetIdx = targets.indexOf(event.target);\n if (targetIdx !== -1) targets.splice(targetIdx, 1);\n dragTargetsRef.current = targets;\n if (targets.length > 0) return;\n dispatch({\n isDragActive: false,\n type: \"setDraggedFiles\",\n draggedFiles: []\n });\n if ((0, _index.isEvtWithFiles)(event) && onDragLeave) onDragLeave(event);\n }, [\n rootRef,\n onDragLeave,\n noDragEventsBubbling\n ]);\n var onDropCb = (0, _react.useCallback)(function(event) {\n event.preventDefault(); // Persist here because we need the event later after getFilesFromEvent() is done\n event.persist();\n stopPropagation(event);\n dragTargetsRef.current = [];\n if ((0, _index.isEvtWithFiles)(event)) Promise.resolve(getFilesFromEvent(event)).then(function(files) {\n if ((0, _index.isPropagationStopped)(event) && !noDragEventsBubbling) return;\n var acceptedFiles = [];\n var fileRejections = [];\n files.forEach(function(file) {\n var _fileAccepted = (0, _index.fileAccepted)(file, accept), _fileAccepted2 = _slicedToArray(_fileAccepted, 2), accepted = _fileAccepted2[0], acceptError = _fileAccepted2[1];\n var _fileMatchSize = (0, _index.fileMatchSize)(file, minSize, maxSize), _fileMatchSize2 = _slicedToArray(_fileMatchSize, 2), sizeMatch = _fileMatchSize2[0], sizeError = _fileMatchSize2[1];\n var customErrors = validator ? validator(file) : null;\n if (accepted && sizeMatch && !customErrors) acceptedFiles.push(file);\n else {\n var errors = [\n acceptError,\n sizeError\n ];\n if (customErrors) errors = errors.concat(customErrors);\n fileRejections.push({\n file: file,\n errors: errors.filter(function(e) {\n return e;\n })\n });\n }\n });\n if (!multiple && acceptedFiles.length > 1 || multiple && maxFiles >= 1 && acceptedFiles.length > maxFiles) {\n // Reject everything and empty accepted files\n acceptedFiles.forEach(function(file) {\n fileRejections.push({\n file: file,\n errors: [\n (0, _index.TOO_MANY_FILES_REJECTION)\n ]\n });\n });\n acceptedFiles.splice(0);\n }\n dispatch({\n acceptedFiles: acceptedFiles,\n fileRejections: fileRejections,\n type: \"setFiles\"\n });\n if (onDrop) onDrop(acceptedFiles, fileRejections, event);\n if (fileRejections.length > 0 && onDropRejected) onDropRejected(fileRejections, event);\n if (acceptedFiles.length > 0 && onDropAccepted) onDropAccepted(acceptedFiles, event);\n });\n dispatch({\n type: \"reset\"\n });\n }, [\n multiple,\n accept,\n minSize,\n maxSize,\n maxFiles,\n getFilesFromEvent,\n onDrop,\n onDropAccepted,\n onDropRejected,\n noDragEventsBubbling\n ]);\n var composeHandler = function composeHandler(fn) {\n return disabled ? null : fn;\n };\n var composeKeyboardHandler = function composeKeyboardHandler(fn) {\n return noKeyboard ? null : composeHandler(fn);\n };\n var composeDragHandler = function composeDragHandler(fn) {\n return noDrag ? null : composeHandler(fn);\n };\n var stopPropagation = function stopPropagation(event) {\n if (noDragEventsBubbling) event.stopPropagation();\n };\n var getRootProps = (0, _react.useMemo)(function() {\n return function() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref2$refKey = _ref2.refKey, refKey = _ref2$refKey === void 0 ? \"ref\" : _ref2$refKey, onKeyDown = _ref2.onKeyDown, onFocus = _ref2.onFocus, onBlur = _ref2.onBlur, onClick = _ref2.onClick, onDragEnter = _ref2.onDragEnter, onDragOver = _ref2.onDragOver, onDragLeave = _ref2.onDragLeave, onDrop = _ref2.onDrop, rest = _objectWithoutProperties(_ref2, [\n \"refKey\",\n \"onKeyDown\",\n \"onFocus\",\n \"onBlur\",\n \"onClick\",\n \"onDragEnter\",\n \"onDragOver\",\n \"onDragLeave\",\n \"onDrop\"\n ]);\n return _objectSpread(_objectSpread(_defineProperty({\n onKeyDown: composeKeyboardHandler((0, _index.composeEventHandlers)(onKeyDown, onKeyDownCb)),\n onFocus: composeKeyboardHandler((0, _index.composeEventHandlers)(onFocus, onFocusCb)),\n onBlur: composeKeyboardHandler((0, _index.composeEventHandlers)(onBlur, onBlurCb)),\n onClick: composeHandler((0, _index.composeEventHandlers)(onClick, onClickCb)),\n onDragEnter: composeDragHandler((0, _index.composeEventHandlers)(onDragEnter, onDragEnterCb)),\n onDragOver: composeDragHandler((0, _index.composeEventHandlers)(onDragOver, onDragOverCb)),\n onDragLeave: composeDragHandler((0, _index.composeEventHandlers)(onDragLeave, onDragLeaveCb)),\n onDrop: composeDragHandler((0, _index.composeEventHandlers)(onDrop, onDropCb))\n }, refKey, rootRef), !disabled && !noKeyboard ? {\n tabIndex: 0\n } : {}), rest);\n };\n }, [\n rootRef,\n onKeyDownCb,\n onFocusCb,\n onBlurCb,\n onClickCb,\n onDragEnterCb,\n onDragOverCb,\n onDragLeaveCb,\n onDropCb,\n noKeyboard,\n noDrag,\n disabled\n ]);\n var onInputElementClick = (0, _react.useCallback)(function(event) {\n event.stopPropagation();\n }, []);\n var getInputProps = (0, _react.useMemo)(function() {\n return function() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? \"ref\" : _ref3$refKey, onChange = _ref3.onChange, onClick = _ref3.onClick, rest = _objectWithoutProperties(_ref3, [\n \"refKey\",\n \"onChange\",\n \"onClick\"\n ]);\n var inputProps = _defineProperty({\n accept: accept,\n multiple: multiple,\n type: \"file\",\n style: {\n display: \"none\"\n },\n onChange: composeHandler((0, _index.composeEventHandlers)(onChange, onDropCb)),\n onClick: composeHandler((0, _index.composeEventHandlers)(onClick, onInputElementClick)),\n autoComplete: \"off\",\n tabIndex: -1\n }, refKey, inputRef);\n return _objectSpread(_objectSpread({}, inputProps), rest);\n };\n }, [\n inputRef,\n accept,\n multiple,\n onDropCb,\n disabled\n ]);\n var fileCount = draggedFiles.length;\n var isDragAccept = fileCount > 0 && (0, _index.allFilesAccepted)({\n files: draggedFiles,\n accept: accept,\n minSize: minSize,\n maxSize: maxSize,\n multiple: multiple,\n maxFiles: maxFiles\n });\n var isDragReject = fileCount > 0 && !isDragAccept;\n return _objectSpread(_objectSpread({}, state), {}, {\n isDragAccept: isDragAccept,\n isDragReject: isDragReject,\n isFocused: isFocused && !disabled,\n getRootProps: getRootProps,\n getInputProps: getInputProps,\n rootRef: rootRef,\n inputRef: inputRef,\n open: composeHandler(openFileDialog)\n });\n}\nfunction reducer(state, action) {\n /* istanbul ignore next */ switch(action.type){\n case \"focus\":\n return _objectSpread(_objectSpread({}, state), {}, {\n isFocused: true\n });\n case \"blur\":\n return _objectSpread(_objectSpread({}, state), {}, {\n isFocused: false\n });\n case \"openDialog\":\n return _objectSpread(_objectSpread({}, state), {}, {\n isFileDialogActive: true\n });\n case \"closeDialog\":\n return _objectSpread(_objectSpread({}, state), {}, {\n isFileDialogActive: false\n });\n case \"setDraggedFiles\":\n /* eslint no-case-declarations: 0 */ var isDragActive = action.isDragActive, draggedFiles = action.draggedFiles;\n return _objectSpread(_objectSpread({}, state), {}, {\n draggedFiles: draggedFiles,\n isDragActive: isDragActive\n });\n case \"setFiles\":\n return _objectSpread(_objectSpread({}, state), {}, {\n acceptedFiles: action.acceptedFiles,\n fileRejections: action.fileRejections\n });\n case \"reset\":\n return _objectSpread(_objectSpread({}, state), {}, {\n isFileDialogActive: false,\n isDragActive: false,\n draggedFiles: [],\n acceptedFiles: [],\n fileRejections: []\n });\n default:\n return state;\n }\n}\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"file-selector\":\"hptHR\",\"./utils/index\":\"5A3CU\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hptHR\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"fromEvent\", ()=>(0, _fileSelector.fromEvent));\nvar _fileSelector = require(\"./file-selector\");\n\n},{\"./file-selector\":\"iTh16\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"iTh16\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\n/**\n * Convert a DragEvent's DataTrasfer object to a list of File objects\n * NOTE: If some of the items are folders,\n * everything will be flattened and placed in the same list but the paths will be kept as a {path} property.\n * @param evt\n */ parcelHelpers.export(exports, \"fromEvent\", ()=>fromEvent);\nvar _tslib = require(\"tslib\");\nvar _file = require(\"./file\");\nvar FILES_TO_IGNORE = [\n // Thumbnail cache files for macOS and Windows\n \".DS_Store\",\n \"Thumbs.db\" // Windows\n];\nfunction fromEvent(evt) {\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n return (0, _tslib.__generator)(this, function(_a) {\n return [\n 2 /*return*/ ,\n isDragEvt(evt) && evt.dataTransfer ? getDataTransferFiles(evt.dataTransfer, evt.type) : getInputFiles(evt)\n ];\n });\n });\n}\nfunction isDragEvt(value) {\n return !!value.dataTransfer;\n}\nfunction getInputFiles(evt) {\n var files = isInput(evt.target) ? evt.target.files ? fromList(evt.target.files) : [] : [];\n return files.map(function(file) {\n return (0, _file.toFileWithPath)(file);\n });\n}\nfunction isInput(value) {\n return value !== null;\n}\nfunction getDataTransferFiles(dt, type) {\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n var items, files;\n return (0, _tslib.__generator)(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!dt.items) return [\n 3 /*break*/ ,\n 2\n ];\n items = fromList(dt.items).filter(function(item) {\n return item.kind === \"file\";\n });\n // According to https://html.spec.whatwg.org/multipage/dnd.html#dndevents,\n // only 'dragstart' and 'drop' has access to the data (source node)\n if (type !== \"drop\") return [\n 2 /*return*/ ,\n items\n ];\n return [\n 4 /*yield*/ ,\n Promise.all(items.map(toFilePromises))\n ];\n case 1:\n files = _a.sent();\n return [\n 2 /*return*/ ,\n noIgnoredFiles(flatten(files))\n ];\n case 2:\n return [\n 2 /*return*/ ,\n noIgnoredFiles(fromList(dt.files).map(function(file) {\n return (0, _file.toFileWithPath)(file);\n }))\n ];\n }\n });\n });\n}\nfunction noIgnoredFiles(files) {\n return files.filter(function(file) {\n return FILES_TO_IGNORE.indexOf(file.name) === -1;\n });\n}\n// IE11 does not support Array.from()\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Browser_compatibility\n// https://developer.mozilla.org/en-US/docs/Web/API/FileList\n// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList\nfunction fromList(items) {\n var files = [];\n // tslint:disable: prefer-for-of\n for(var i = 0; i < items.length; i++){\n var file = items[i];\n files.push(file);\n }\n return files;\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem\nfunction toFilePromises(item) {\n if (typeof item.webkitGetAsEntry !== \"function\") return fromDataTransferItem(item);\n var entry = item.webkitGetAsEntry();\n // Safari supports dropping an image node from a different window and can be retrieved using\n // the DataTransferItem.getAsFile() API\n // NOTE: FileSystemEntry.file() throws if trying to get the file\n if (entry && entry.isDirectory) return fromDirEntry(entry);\n return fromDataTransferItem(item);\n}\nfunction flatten(items) {\n return items.reduce(function(acc, files) {\n return (0, _tslib.__spread)(acc, Array.isArray(files) ? flatten(files) : [\n files\n ]);\n }, []);\n}\nfunction fromDataTransferItem(item) {\n var file = item.getAsFile();\n if (!file) return Promise.reject(item + \" is not a File\");\n var fwp = (0, _file.toFileWithPath)(file);\n return Promise.resolve(fwp);\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry\nfunction fromEntry(entry) {\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n return (0, _tslib.__generator)(this, function(_a) {\n return [\n 2 /*return*/ ,\n entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry)\n ];\n });\n });\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry\nfunction fromDirEntry(entry) {\n var reader = entry.createReader();\n return new Promise(function(resolve, reject) {\n var entries = [];\n function readEntries() {\n var _this = this;\n // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader\n // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries\n reader.readEntries(function(batch) {\n return (0, _tslib.__awaiter)(_this, void 0, void 0, function() {\n var files, err_1, items;\n return (0, _tslib.__generator)(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!!batch.length) return [\n 3 /*break*/ ,\n 5\n ];\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n Promise.all(entries)\n ];\n case 2:\n files = _a.sent();\n resolve(files);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n reject(err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 3 /*break*/ ,\n 6\n ];\n case 5:\n items = Promise.all(batch.map(fromEntry));\n entries.push(items);\n // Continue reading\n readEntries();\n _a.label = 6;\n case 6:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n }, function(err) {\n reject(err);\n });\n }\n readEntries();\n });\n}\n// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry\nfunction fromFileEntry(entry) {\n return (0, _tslib.__awaiter)(this, void 0, void 0, function() {\n return (0, _tslib.__generator)(this, function(_a) {\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n entry.file(function(file) {\n var fwp = (0, _file.toFileWithPath)(file, entry.fullPath);\n resolve(fwp);\n }, function(err) {\n reject(err);\n });\n })\n ];\n });\n });\n}\n\n},{\"tslib\":\"gBS4y\",\"./file\":\"fL2OK\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"fL2OK\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"COMMON_MIME_TYPES\", ()=>COMMON_MIME_TYPES);\nparcelHelpers.export(exports, \"toFileWithPath\", ()=>toFileWithPath);\nvar COMMON_MIME_TYPES = new Map([\n [\n \"avi\",\n \"video/avi\"\n ],\n [\n \"gif\",\n \"image/gif\"\n ],\n [\n \"ico\",\n \"image/x-icon\"\n ],\n [\n \"jpeg\",\n \"image/jpeg\"\n ],\n [\n \"jpg\",\n \"image/jpeg\"\n ],\n [\n \"mkv\",\n \"video/x-matroska\"\n ],\n [\n \"mov\",\n \"video/quicktime\"\n ],\n [\n \"mp4\",\n \"video/mp4\"\n ],\n [\n \"pdf\",\n \"application/pdf\"\n ],\n [\n \"png\",\n \"image/png\"\n ],\n [\n \"zip\",\n \"application/zip\"\n ],\n [\n \"doc\",\n \"application/msword\"\n ],\n [\n \"docx\",\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n ]\n]);\nfunction toFileWithPath(file, path) {\n var f = withMimeType(file);\n if (typeof f.path !== \"string\") {\n var webkitRelativePath = file.webkitRelativePath;\n Object.defineProperty(f, \"path\", {\n value: typeof path === \"string\" ? path : typeof webkitRelativePath === \"string\" && webkitRelativePath.length > 0 ? webkitRelativePath : file.name,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n return f;\n}\nfunction withMimeType(file) {\n var name = file.name;\n var hasExtension = name && name.lastIndexOf(\".\") !== -1;\n if (hasExtension && !file.type) {\n var ext = name.split(\".\").pop().toLowerCase();\n var type = COMMON_MIME_TYPES.get(ext);\n if (type) Object.defineProperty(file, \"type\", {\n value: type,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n return file;\n}\n\n},{\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5A3CU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"FILE_INVALID_TYPE\", ()=>FILE_INVALID_TYPE);\nparcelHelpers.export(exports, \"FILE_TOO_LARGE\", ()=>FILE_TOO_LARGE);\nparcelHelpers.export(exports, \"FILE_TOO_SMALL\", ()=>FILE_TOO_SMALL);\nparcelHelpers.export(exports, \"TOO_MANY_FILES\", ()=>TOO_MANY_FILES);\nparcelHelpers.export(exports, \"getInvalidTypeRejectionErr\", ()=>getInvalidTypeRejectionErr);\nparcelHelpers.export(exports, \"getTooLargeRejectionErr\", ()=>getTooLargeRejectionErr);\nparcelHelpers.export(exports, \"getTooSmallRejectionErr\", ()=>getTooSmallRejectionErr);\nparcelHelpers.export(exports, \"TOO_MANY_FILES_REJECTION\", ()=>TOO_MANY_FILES_REJECTION);\n// that MIME type will always be accepted\nparcelHelpers.export(exports, \"fileAccepted\", ()=>fileAccepted);\nparcelHelpers.export(exports, \"fileMatchSize\", ()=>fileMatchSize);\nparcelHelpers.export(exports, \"allFilesAccepted\", ()=>allFilesAccepted) // React's synthetic events has event.isPropagationStopped,\n;\n// but to remain compatibility with other libs (Preact) fall back\n// to check event.cancelBubble\nparcelHelpers.export(exports, \"isPropagationStopped\", ()=>isPropagationStopped);\nparcelHelpers.export(exports, \"isEvtWithFiles\", ()=>isEvtWithFiles);\nparcelHelpers.export(exports, \"isKindFile\", ()=>isKindFile) // allow the entire document to be a drag target\n;\nparcelHelpers.export(exports, \"onDocumentDragOver\", ()=>onDocumentDragOver);\nparcelHelpers.export(exports, \"isIeOrEdge\", ()=>isIeOrEdge);\n/**\n * This is intended to be used to compose event handlers\n * They are executed in order until one of them calls `event.isPropagationStopped()`.\n * Note that the check is done on the first invoke too,\n * meaning that if propagation was stopped before invoking the fns,\n * no handlers will be executed.\n *\n * @param {Function} fns the event hanlder functions\n * @return {Function} the event handler to add to an element\n */ parcelHelpers.export(exports, \"composeEventHandlers\", ()=>composeEventHandlers);\nvar _attrAccept = require(\"attr-accept\"); // Error codes\nvar _attrAcceptDefault = parcelHelpers.interopDefault(_attrAccept);\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") _typeof = function _typeof(obj) {\n return typeof obj;\n };\n else _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n return _typeof(obj);\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nvar FILE_INVALID_TYPE = \"file-invalid-type\";\nvar FILE_TOO_LARGE = \"file-too-large\";\nvar FILE_TOO_SMALL = \"file-too-small\";\nvar TOO_MANY_FILES = \"too-many-files\"; // File Errors\nvar getInvalidTypeRejectionErr = function getInvalidTypeRejectionErr(accept) {\n accept = Array.isArray(accept) && accept.length === 1 ? accept[0] : accept;\n var messageSuffix = Array.isArray(accept) ? \"one of \".concat(accept.join(\", \")) : accept;\n return {\n code: FILE_INVALID_TYPE,\n message: \"File type must be \".concat(messageSuffix)\n };\n};\nvar getTooLargeRejectionErr = function getTooLargeRejectionErr(maxSize) {\n return {\n code: FILE_TOO_LARGE,\n message: \"File is larger than \".concat(maxSize, \" bytes\")\n };\n};\nvar getTooSmallRejectionErr = function getTooSmallRejectionErr(minSize) {\n return {\n code: FILE_TOO_SMALL,\n message: \"File is smaller than \".concat(minSize, \" bytes\")\n };\n};\nvar TOO_MANY_FILES_REJECTION = {\n code: TOO_MANY_FILES,\n message: \"Too many files\"\n}; // Firefox versions prior to 53 return a bogus MIME type for every file drag, so dragovers with\nfunction fileAccepted(file, accept) {\n var isAcceptable = file.type === \"application/x-moz-file\" || (0, _attrAcceptDefault.default)(file, accept);\n return [\n isAcceptable,\n isAcceptable ? null : getInvalidTypeRejectionErr(accept)\n ];\n}\nfunction fileMatchSize(file, minSize, maxSize) {\n if (isDefined(file.size)) {\n if (isDefined(minSize) && isDefined(maxSize)) {\n if (file.size > maxSize) return [\n false,\n getTooLargeRejectionErr(maxSize)\n ];\n if (file.size < minSize) return [\n false,\n getTooSmallRejectionErr(minSize)\n ];\n } else if (isDefined(minSize) && file.size < minSize) return [\n false,\n getTooSmallRejectionErr(minSize)\n ];\n else if (isDefined(maxSize) && file.size > maxSize) return [\n false,\n getTooLargeRejectionErr(maxSize)\n ];\n }\n return [\n true,\n null\n ];\n}\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\nfunction allFilesAccepted(_ref) {\n var files = _ref.files, accept = _ref.accept, minSize = _ref.minSize, maxSize = _ref.maxSize, multiple = _ref.multiple, maxFiles = _ref.maxFiles;\n if (!multiple && files.length > 1 || multiple && maxFiles >= 1 && files.length > maxFiles) return false;\n return files.every(function(file) {\n var _fileAccepted = fileAccepted(file, accept), _fileAccepted2 = _slicedToArray(_fileAccepted, 1), accepted = _fileAccepted2[0];\n var _fileMatchSize = fileMatchSize(file, minSize, maxSize), _fileMatchSize2 = _slicedToArray(_fileMatchSize, 1), sizeMatch = _fileMatchSize2[0];\n return accepted && sizeMatch;\n });\n}\nfunction isPropagationStopped(event) {\n if (typeof event.isPropagationStopped === \"function\") return event.isPropagationStopped();\n else if (typeof event.cancelBubble !== \"undefined\") return event.cancelBubble;\n return false;\n}\nfunction isEvtWithFiles(event) {\n if (!event.dataTransfer) return !!event.target && !!event.target.files;\n // https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types\n // https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#file\n return Array.prototype.some.call(event.dataTransfer.types, function(type) {\n return type === \"Files\" || type === \"application/x-moz-file\";\n });\n}\nfunction isKindFile(item) {\n return _typeof(item) === \"object\" && item !== null && item.kind === \"file\";\n}\nfunction onDocumentDragOver(event) {\n event.preventDefault();\n}\nfunction isIe(userAgent) {\n return userAgent.indexOf(\"MSIE\") !== -1 || userAgent.indexOf(\"Trident/\") !== -1;\n}\nfunction isEdge(userAgent) {\n return userAgent.indexOf(\"Edge/\") !== -1;\n}\nfunction isIeOrEdge() {\n var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;\n return isIe(userAgent) || isEdge(userAgent);\n}\nfunction composeEventHandlers() {\n for(var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++)fns[_key] = arguments[_key];\n return function(event) {\n for(var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)args[_key2 - 1] = arguments[_key2];\n return fns.some(function(fn) {\n if (!isPropagationStopped(event) && fn) fn.apply(void 0, [\n event\n ].concat(args));\n return isPropagationStopped(event);\n });\n };\n}\n\n},{\"attr-accept\":\"jPDtq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jPDtq\":[function(require,module,exports) {\n\"use strict\";\nexports.__esModule = true;\nexports.default = function(file, acceptedFiles) {\n if (file && acceptedFiles) {\n var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(\",\");\n var fileName = file.name || \"\";\n var mimeType = (file.type || \"\").toLowerCase();\n var baseMimeType = mimeType.replace(/\\/.*$/, \"\");\n return acceptedFilesArray.some(function(type) {\n var validType = type.trim().toLowerCase();\n if (validType.charAt(0) === \".\") return fileName.toLowerCase().endsWith(validType);\n else if (validType.endsWith(\"/*\")) // This is something like a image/* mime type\n return baseMimeType === validType.replace(/\\/.*$/, \"\");\n return mimeType === validType;\n });\n }\n return true;\n};\n\n},{}],\"2RExP\":[function(require,module,exports) {\nmodule.exports[\"dropzone\"] = `GRZadW_dropzone`;\nmodule.exports[\"dropzone--accept\"] = `GRZadW_dropzone--accept`;\nmodule.exports[\"dropzone--active\"] = `GRZadW_dropzone--active`;\nmodule.exports[\"dropzone--reject\"] = `GRZadW_dropzone--reject`;\n\n},{}],\"cBrj6\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _filePreview = require(\"./FilePreview\");\nvar _filePreviewDefault = parcelHelpers.interopDefault(_filePreview);\nvar _previewSectionModuleCss = require(\"./PreviewSection.module.css\");\nvar _previewSectionModuleCssDefault = parcelHelpers.interopDefault(_previewSectionModuleCss);\nconst PreviewSection = ({ files , loading , uploadState })=>{\n const { translate } = (0, _core.useIntl)();\n // FIXME: Mapping the uploadState to the files name is not the best solution as the same filename might be used multiple times\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"aside\", {\n className: (0, _previewSectionModuleCssDefault.default).fileList\n }, files.selected.length > 0 && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"h4\", {\n className: (0, _previewSectionModuleCssDefault.default).fileListHeader\n }, translate(\"uploadDialog.fileList.header\", \"Selected files\")), files.selected.map((file)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _filePreviewDefault.default), {\n file: file,\n loading: loading,\n fileState: uploadState.find((result)=>result.filename === file.name),\n key: file.id\n }))), files.rejected.length > 0 && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"h4\", {\n className: (0, _previewSectionModuleCssDefault.default).fileListHeader\n }, translate(\"uploadDialog.fileList.uploadedHeader\", \"Failed uploads\")), files.rejected.map((file)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _filePreviewDefault.default), {\n file: file,\n fileState: uploadState.find((result)=>result.filename === file.name),\n key: file.id\n }))), files.finished.length > 0 && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"h4\", {\n className: (0, _previewSectionModuleCssDefault.default).fileListHeader\n }, translate(\"uploadDialog.fileList.uploadedHeader\", \"Successful uploads\")), files.finished.map((file)=>/*#__PURE__*/ (0, _reactDefault.default).createElement((0, _filePreviewDefault.default), {\n file: file,\n fileState: uploadState.find((result)=>result.filename === file.name),\n key: file.id\n }))));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(PreviewSection);\n\n},{\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"./FilePreview\":\"6tKrf\",\"./PreviewSection.module.css\":\"8kRuH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6tKrf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _filePreviewModuleCss = require(\"./FilePreview.module.css\");\nvar _filePreviewModuleCssDefault = parcelHelpers.interopDefault(_filePreviewModuleCss);\nconst FilePreview = ({ file , loading =false , fileState })=>{\n const success = fileState?.success;\n const error = fileState && !success;\n // TODO: Output helpful localised messages for results 'EXISTS', 'ADDED', 'ERROR'\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _classnamesDefault.default)((0, _filePreviewModuleCssDefault.default).thumb, error ? (0, _filePreviewModuleCssDefault.default).error : success ? (0, _filePreviewModuleCssDefault.default).success : loading && (0, _filePreviewModuleCssDefault.default).loading),\n title: file.name\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _filePreviewModuleCssDefault.default).thumbInner\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"img\", {\n src: file.preview,\n alt: file.name,\n className: (0, _filePreviewModuleCssDefault.default).img\n }), loading && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"spinner\",\n spin: true\n }), success && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"check\"\n }), error && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Icon), {\n icon: \"exclamation-circle\"\n }), fileState?.result && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", null, fileState.result)));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(FilePreview);\n\n},{\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"@neos-project/react-ui-components\":\"hWxzt\",\"./FilePreview.module.css\":\"lblH4\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lblH4\":[function(require,module,exports) {\nmodule.exports[\"error\"] = `_3DPMWa_error`;\nmodule.exports[\"fileList\"] = `_3DPMWa_fileList`;\nmodule.exports[\"fileListHeader\"] = `_3DPMWa_fileListHeader`;\nmodule.exports[\"img\"] = `_3DPMWa_img`;\nmodule.exports[\"loading\"] = `_3DPMWa_loading`;\nmodule.exports[\"success\"] = `_3DPMWa_success`;\nmodule.exports[\"thumb\"] = `_3DPMWa_thumb`;\nmodule.exports[\"thumbInner\"] = `_3DPMWa_thumbInner`;\nmodule.exports[\"warning\"] = `_3DPMWa_warning`;\n\n},{}],\"8kRuH\":[function(require,module,exports) {\nmodule.exports[\"fileList\"] = `YW0qpa_fileList`;\nmodule.exports[\"fileListHeader\"] = `YW0qpa_fileListHeader`;\n\n},{}],\"cWFPh\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useUploadDialogState\", ()=>(0, _useUploadDialogStateDefault.default));\nparcelHelpers.export(exports, \"useUploadFiles\", ()=>(0, _useUploadFilesDefault.default));\nparcelHelpers.export(exports, \"useUploadFile\", ()=>(0, _useUploadFileDefault.default));\nvar _useUploadDialogState = require(\"./useUploadDialogState\");\nvar _useUploadDialogStateDefault = parcelHelpers.interopDefault(_useUploadDialogState);\nvar _useUploadFile = require(\"./useUploadFile\");\nvar _useUploadFileDefault = parcelHelpers.interopDefault(_useUploadFile);\nvar _useUploadFiles = require(\"./useUploadFiles\");\nvar _useUploadFilesDefault = parcelHelpers.interopDefault(_useUploadFiles);\n\n},{\"./useUploadDialogState\":\"ljxT5\",\"./useUploadFile\":\"bMUbe\",\"./useUploadFiles\":\"6Ubaq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ljxT5\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _state = require(\"../state\");\nvar _uploadDialogState = require(\"../state/uploadDialogState\");\nconst useUploadDialogState = ()=>{\n // TODO: Use reducer instead to manage the state of files in their various states -> simplifies code in dialogs\n const [files, setFiles] = (0, _react.useState)({\n selected: [],\n finished: [],\n rejected: []\n });\n const [dialogState, setDialogState] = (0, _recoil.useRecoilState)((0, _state.uploadDialogState));\n const handleClose = (0, _react.useCallback)(()=>{\n // Make sure to revoke the data uris to avoid memory leaks\n files.selected.forEach((file)=>URL.revokeObjectURL(file.preview));\n files.finished.forEach((file)=>URL.revokeObjectURL(file.preview));\n files.rejected.forEach((file)=>URL.revokeObjectURL(file.preview));\n setFiles({\n selected: [],\n finished: [],\n rejected: []\n });\n setDialogState({\n uploadType: (0, _uploadDialogState.UPLOAD_TYPE).new,\n visible: false\n });\n }, [\n files,\n setFiles,\n setDialogState\n ]);\n return {\n state: {\n ...dialogState,\n files\n },\n closeDialog: handleClose,\n setFiles\n };\n};\nexports.default = useUploadDialogState;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"../state\":\"kJgrX\",\"../state/uploadDialogState\":\"1bQep\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bMUbe\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUploadFile);\nvar _client = require(\"@apollo/client\");\nvar _recoil = require(\"recoil\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _mutations = require(\"../mutations\");\nfunction useUploadFile() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.UPLOAD_FILE));\n const tagId = (0, _recoil.useRecoilValue)((0, _featureAssetTags.selectedTagIdState));\n const assetCollectionId = (0, _recoil.useRecoilValue)((0, _featureAssetCollections.selectedAssetCollectionIdState));\n const uploadFile = (file)=>action({\n variables: {\n file,\n tagId,\n assetCollectionId\n }\n });\n return {\n uploadFile,\n uploadState: data?.uploadFile || {},\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"recoil\":\"2QijJ\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"../mutations\":\"9WBt6\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9WBt6\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"UPLOAD_FILES\", ()=>(0, _uploadFilesDefault.default));\nparcelHelpers.export(exports, \"UPLOAD_FILE\", ()=>(0, _uploadFileDefault.default));\nparcelHelpers.export(exports, \"REPLACE_ASSET\", ()=>(0, _replaceAssetDefault.default));\nvar _replaceAsset = require(\"./replaceAsset\");\nvar _replaceAssetDefault = parcelHelpers.interopDefault(_replaceAsset);\nvar _uploadFiles = require(\"./uploadFiles\");\nvar _uploadFilesDefault = parcelHelpers.interopDefault(_uploadFiles);\nvar _uploadFile = require(\"./uploadFile\");\nvar _uploadFileDefault = parcelHelpers.interopDefault(_uploadFile);\n\n},{\"./replaceAsset\":\"g41Jc\",\"./uploadFiles\":\"02I0p\",\"./uploadFile\":\"joCLc\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"g41Jc\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst REPLACE_ASSET = (0, _client.gql)`\n mutation ReplaceAsset(\n $id: AssetId!\n $assetSourceId: AssetSourceId!\n $file: Upload!\n $options: AssetReplacementOptionsInput!\n ) {\n replaceAsset(id: $id, assetSourceId: $assetSourceId, file: $file, options: $options) {\n filename\n success\n result\n }\n }\n`;\nexports.default = REPLACE_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"02I0p\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst UPLOAD_FILES = (0, _client.gql)`\n mutation UploadFiles($files: [Upload!]!, $tagId: TagId, $assetCollectionId: AssetCollectionId) {\n uploadFiles(files: $files, tagId: $tagId, assetCollectionId: $assetCollectionId) {\n filename\n success\n result\n }\n }\n`;\nexports.default = UPLOAD_FILES;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"joCLc\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst UPLOAD_FILE = (0, _client.gql)`\n mutation UploadFile($file: Upload!, $tagId: TagId, $assetCollectionId: AssetCollectionId) {\n uploadFile(file: $file, tagId: $tagId, assetCollectionId: $assetCollectionId) {\n filename\n success\n result\n }\n }\n`;\nexports.default = UPLOAD_FILE;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"6Ubaq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useUploadFiles);\nvar _client = require(\"@apollo/client\");\nvar _recoil = require(\"recoil\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _mutations = require(\"../mutations\");\nfunction useUploadFiles() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.UPLOAD_FILES));\n const tagId = (0, _recoil.useRecoilValue)((0, _featureAssetTags.selectedTagIdState));\n const assetCollectionId = (0, _recoil.useRecoilValue)((0, _featureAssetCollections.selectedAssetCollectionIdState));\n const uploadFiles = (files)=>action({\n variables: {\n files,\n tagId,\n assetCollectionId\n }\n });\n return {\n uploadFiles,\n uploadState: data?.uploadFiles || [],\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"recoil\":\"2QijJ\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"../mutations\":\"9WBt6\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lBk4j\":[function(require,module,exports) {\nmodule.exports[\"uploadArea\"] = `j3Ge9q_uploadArea`;\n\n},{}],\"75MDD\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _uploadSection = require(\"../UploadSection\");\nvar _uploadSectionDefault = parcelHelpers.interopDefault(_uploadSection);\nvar _previewSection = require(\"../PreviewSection\");\nvar _previewSectionDefault = parcelHelpers.interopDefault(_previewSection);\nvar _hooks1 = require(\"../../hooks\");\nvar _useReplaceAsset = require(\"../../hooks/useReplaceAsset\");\nvar _useReplaceAssetDefault = parcelHelpers.interopDefault(_useReplaceAsset);\nvar _replaceAssetDialogModuleCss = require(\"./ReplaceAssetDialog.module.css\");\nvar _replaceAssetDialogModuleCssDefault = parcelHelpers.interopDefault(_replaceAssetDialogModuleCss);\nconst ReplaceAssetDialog = ()=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const { replaceAsset , uploadState , loading } = (0, _useReplaceAssetDefault.default)();\n const { refetch } = (0, _hooks.useAssetsQuery)();\n const { approvalAttainmentStrategy: { obtainApprovalToReplaceAsset } } = (0, _core.useMediaUi)();\n const featureFlags = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const { state: dialogState , closeDialog , setFiles } = (0, _hooks1.useUploadDialogState)();\n const [replacementOptions, setReplacementOptions] = (0, _reactDefault.default).useState({\n keepOriginalFilename: false,\n generateRedirects: false\n });\n const uploadPossible = !loading && dialogState.files.selected.length > 0;\n const acceptedFileTypes = (0, _react.useMemo)(()=>{\n // TODO: Extract this into a helper function\n const completeMediaType = selectedAsset?.file.mediaType;\n const regex = /^(?(?:[.!#%&'`^~$*+\\-|\\w]+))\\//;\n const mainType = completeMediaType.match(regex)?.groups?.type;\n return mainType ? `${mainType}/*` : \"\";\n }, [\n selectedAsset\n ]);\n const handleUpload = (0, _react.useCallback)(async ()=>{\n if (dialogState.files.selected.length === 0) return;\n const file = dialogState.files.selected[0];\n const hasApprovalToReplaceAsset = await obtainApprovalToReplaceAsset({\n asset: selectedAsset\n });\n if (hasApprovalToReplaceAsset) try {\n await replaceAsset({\n asset: selectedAsset,\n file,\n options: replacementOptions\n });\n Notify.ok(translate(\"uploadDialog.replacementFinished\", \"Replacement finished\"));\n closeDialog();\n refetch();\n } catch (error) {\n Notify.error(translate(\"assetReplacement.error\", \"Replacement failed\"), error);\n }\n }, [\n replaceAsset,\n Notify,\n translate,\n dialogState,\n replacementOptions,\n refetch,\n selectedAsset,\n closeDialog,\n obtainApprovalToReplaceAsset\n ]);\n const handleSetFiles = (0, _react.useCallback)((files)=>{\n setFiles((prev)=>{\n return {\n ...prev,\n selected: files\n };\n });\n }, [\n setFiles\n ]);\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.Dialog), {\n isOpen: dialogState.visible,\n title: translate(\"uploadDialog.replaceAsset\", \"Replace Asset\"),\n onRequestClose: closeDialog,\n actions: [\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: closeDialog\n }, uploadState ? translate(\"uploadDialog.close\", \"Close\") : translate(\"uploadDialog.cancel\", \"Cancel\")),\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"upload\",\n style: \"success\",\n hoverStyle: \"success\",\n disabled: !uploadPossible,\n onClick: handleUpload\n }, translate(\"uploadDialog.replace\", \"Replace\"))\n ],\n style: \"wide\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"section\", {\n className: (0, _replaceAssetDialogModuleCssDefault.default).uploadArea\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _uploadSectionDefault.default), {\n files: dialogState.files.selected,\n loading: loading,\n onSetFiles: handleSetFiles,\n maxFiles: 1,\n acceptedFileTypes: acceptedFileTypes\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"section\", {\n className: (0, _replaceAssetDialogModuleCssDefault.default).optionSection\n }, featureFlags.createAssetRedirectsOption && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _replaceAssetDialogModuleCssDefault.default).option\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Label), {\n className: (0, _replaceAssetDialogModuleCssDefault.default).label\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.CheckBox), {\n isChecked: replacementOptions.generateRedirects,\n onChange: (generateRedirects)=>setReplacementOptions({\n ...replacementOptions,\n generateRedirects\n })\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", null, translate(\"uploadDialog.generateRedirects\", \"Generate redirects\")))), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _replaceAssetDialogModuleCssDefault.default).option\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Label), {\n className: (0, _replaceAssetDialogModuleCssDefault.default).label\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.CheckBox), {\n isChecked: replacementOptions.keepOriginalFilename,\n onChange: (keepOriginalFilename)=>setReplacementOptions({\n ...replacementOptions,\n keepOriginalFilename\n })\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", null, translate(\"uploadDialog.keepOriginalFilename\", \"Keep original filename\"))))), /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _previewSectionDefault.default), {\n files: dialogState.files,\n loading: loading,\n uploadState: uploadState ? [\n uploadState\n ] : []\n })));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ReplaceAssetDialog);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/core/src/state\":\"jV1GH\",\"../UploadSection\":\"i9dFh\",\"../PreviewSection\":\"cBrj6\",\"../../hooks\":\"cWFPh\",\"../../hooks/useReplaceAsset\":\"8pQeq\",\"./ReplaceAssetDialog.module.css\":\"3ViDE\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8pQeq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useReplaceAsset);\nvar _client = require(\"@apollo/client\");\nvar _mutations = require(\"../mutations\");\nfunction useReplaceAsset() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _mutations.REPLACE_ASSET));\n const replaceAsset = ({ asset , file , options })=>{\n return action({\n variables: {\n id: asset.id,\n assetSourceId: asset.assetSource.id,\n file,\n options\n }\n });\n };\n return {\n replaceAsset,\n uploadState: data?.replaceAsset || null,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations\":\"9WBt6\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"3ViDE\":[function(require,module,exports) {\nmodule.exports[\"label\"] = `TdFhBW_label`;\nmodule.exports[\"option\"] = `TdFhBW_option`;\nmodule.exports[\"optionSection\"] = `TdFhBW_optionSection`;\nmodule.exports[\"uploadArea\"] = `TdFhBW_uploadArea`;\n\n},{}],\"4JmWi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _newAssetDialog = require(\"./NewAssetDialog\");\nvar _newAssetDialogDefault = parcelHelpers.interopDefault(_newAssetDialog);\nvar _replaceAssetDialog = require(\"./ReplaceAssetDialog\");\nvar _replaceAssetDialogDefault = parcelHelpers.interopDefault(_replaceAssetDialog);\nvar _uploadDialogState = require(\"../../state/uploadDialogState\");\nconst UploadDialog = ()=>{\n const { visible , uploadType } = (0, _recoil.useRecoilValue)((0, _uploadDialogState.uploadDialogState));\n return visible && (uploadType === (0, _uploadDialogState.UPLOAD_TYPE).update ? /*#__PURE__*/ _react.createElement((0, _replaceAssetDialogDefault.default), null) : /*#__PURE__*/ _react.createElement((0, _newAssetDialogDefault.default), null)) || null;\n};\nexports.default = /*#__PURE__*/ _react.memo(UploadDialog);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"./NewAssetDialog\":\"fwZlu\",\"./ReplaceAssetDialog\":\"75MDD\",\"../../state/uploadDialogState\":\"1bQep\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1YqlF\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _uploadDialogState = require(\"../state/uploadDialogState\");\nconst AssetReplacementButton = ()=>{\n const [dialogState, setDialogState] = (0, _recoil.useRecoilState)((0, _uploadDialogState.uploadDialogState));\n const { translate } = (0, _core.useIntl)();\n return /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: dialogState.visible && dialogState.uploadType === (0, _uploadDialogState.UPLOAD_TYPE).update ? \"brand\" : \"lighter\",\n hoverStyle: \"brand\",\n onClick: ()=>setDialogState({\n visible: true,\n uploadType: (0, _uploadDialogState.UPLOAD_TYPE).update\n })\n }, /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Icon), {\n icon: \"exchange-alt\"\n }), translate(\"assetReplacement.toggle\", \"Replace asset\"));\n};\nexports.default = /*#__PURE__*/ _react.memo(AssetReplacementButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../state/uploadDialogState\":\"1bQep\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bhq7y\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>UploadButton);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _uploadDialogState = require(\"../state/uploadDialogState\");\nfunction UploadButton() {\n const { translate } = (0, _core.useIntl)();\n const setUploadDialogState = (0, _recoil.useSetRecoilState)((0, _uploadDialogState.uploadDialogState));\n return /*#__PURE__*/ _react.createElement(\"div\", null, /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: \"lighter\",\n hoverStyle: \"brand\",\n onClick: ()=>setUploadDialogState({\n visible: true,\n uploadType: (0, _uploadDialogState.UPLOAD_TYPE).new\n })\n }, /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Icon), {\n icon: \"upload\"\n }), \" \", translate(\"uploadButton.label\", \"Upload\")));\n}\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../state/uploadDialogState\":\"1bQep\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gaY0P\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"selectedAssetForPreviewState\", ()=>(0, _selectedAssetForPreviewStateDefault.default));\nparcelHelpers.export(exports, \"AssetPreview\", ()=>(0, _assetPreviewDefault.default));\nvar _assetPreview = require(\"./components/AssetPreview\");\nvar _assetPreviewDefault = parcelHelpers.interopDefault(_assetPreview);\nvar _selectedAssetForPreviewState = require(\"./state/selectedAssetForPreviewState\");\nvar _selectedAssetForPreviewStateDefault = parcelHelpers.interopDefault(_selectedAssetForPreviewState);\n\n},{\"./components/AssetPreview\":\"9EIdC\",\"./state/selectedAssetForPreviewState\":\"f0JOr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9EIdC\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>AssetPreview);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactImageLightbox = require(\"react-image-lightbox\");\nvar _reactImageLightboxDefault = parcelHelpers.interopDefault(_reactImageLightbox);\nvar _recoil = require(\"recoil\");\nvar _styleCss = require(\"react-image-lightbox/style.css\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _selectedAssetForPreviewState = require(\"../state/selectedAssetForPreviewState\");\nvar _selectedAssetForPreviewStateDefault = parcelHelpers.interopDefault(_selectedAssetForPreviewState);\nvar _assetPreviewModuleCss = require(\"./AssetPreview.module.css\");\nvar _assetPreviewModuleCssDefault = parcelHelpers.interopDefault(_assetPreviewModuleCss);\nconst useLightBoxContainer = (defaultContainer = null)=>{\n const lightBoxContainerRef = (0, _reactDefault.default).useRef(defaultContainer);\n (0, _reactDefault.default).useEffect(()=>{\n if (defaultContainer === null) {\n const newLightBoxContainer = document.createElement(\"div\");\n newLightBoxContainer.setAttribute(\"data-ignore_click_outside\", \"true\");\n document.body.appendChild(newLightBoxContainer);\n lightBoxContainerRef.current = newLightBoxContainer;\n return ()=>newLightBoxContainer.remove();\n }\n lightBoxContainerRef.current = defaultContainer;\n }, [\n defaultContainer\n ]);\n return lightBoxContainerRef;\n};\nfunction AssetPreview() {\n const { containerRef , isInNodeCreationDialog } = (0, _core.useMediaUi)();\n const assets = (0, _recoil.useRecoilValue)((0, _state.availableAssetsState));\n const [selectedAssetForPreview, setSelectedAssetForPreview] = (0, _recoil.useRecoilState)((0, _selectedAssetForPreviewStateDefault.default));\n const { asset } = (0, _hooks.useAssetQuery)(selectedAssetForPreview);\n const lightBoxContainer = useLightBoxContainer(isInNodeCreationDialog ? null : containerRef.current);\n const [prevAsset, nextAsset] = (0, _react.useMemo)(()=>{\n if (!asset) return [\n null,\n null\n ];\n const currentAssetIndex = assets.findIndex(({ id })=>id === asset.id);\n return [\n currentAssetIndex > 0 ? assets[currentAssetIndex - 1] : null,\n currentAssetIndex < assets.length - 1 ? assets[currentAssetIndex + 1] : null\n ];\n }, [\n assets,\n asset\n ]);\n // TODO: Handle pdf fields with pdf viewer https://github.com/Flowpack/media-ui/issues/29\n if (!asset) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactImageLightboxDefault.default), {\n reactModalStyle: {\n overlay: {\n zIndex: \"var(--theme-zIndex-lightbox)\"\n }\n },\n reactModalProps: {\n parentSelector: ()=>lightBoxContainer.current\n },\n wrapperClassName: (0, _assetPreviewModuleCssDefault.default).lightbox,\n mainSrc: asset.previewUrl,\n mainSrcThumbnail: asset.thumbnailUrl,\n imageTitle: asset.label,\n imageCaption: asset.caption,\n onCloseRequest: ()=>setSelectedAssetForPreview(null),\n prevSrc: prevAsset?.previewUrl,\n prevSrcThumbnail: prevAsset?.thumbnailUrl,\n prevLabel: prevAsset?.label,\n onMovePrevRequest: ()=>setSelectedAssetForPreview(prevAsset ? {\n assetId: prevAsset.id,\n assetSourceId: prevAsset.assetSource.id\n } : null),\n nextSrc: nextAsset?.previewUrl,\n nextSrcThumbnail: nextAsset?.thumbnailUrl,\n nextLabel: nextAsset?.label,\n onMoveNextRequest: ()=>setSelectedAssetForPreview(nextAsset ? {\n assetId: nextAsset.id,\n assetSourceId: nextAsset.assetSource.id\n } : null)\n });\n}\n\n},{\"react\":\"6uln9\",\"react-image-lightbox\":\"gZi0S\",\"recoil\":\"2QijJ\",\"react-image-lightbox/style.css\":\"59GbX\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"../state/selectedAssetForPreviewState\":\"f0JOr\",\"./AssetPreview.module.css\":\"igeYA\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gZi0S\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _propTypes = require(\"prop-types\");\nvar _propTypesDefault = parcelHelpers.interopDefault(_propTypes);\nvar _reactModal = require(\"react-modal\");\nvar _reactModalDefault = parcelHelpers.interopDefault(_reactModal);\nvar global = arguments[3];\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) ownKeys(Object(source), true).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n });\n else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\nfunction _extends() {\n _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) return call;\n return _assertThisInitialized(self);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n/**\n * Placeholder for future translate functionality\n */ function translate(str) {\n var replaceStrings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n if (!str) return \"\";\n var translated = str;\n if (replaceStrings) Object.keys(replaceStrings).forEach(function(placeholder) {\n translated = translated.replace(placeholder, replaceStrings[placeholder]);\n });\n return translated;\n}\nfunction getWindowWidth() {\n return typeof global.window !== \"undefined\" ? global.window.innerWidth : 0;\n}\nfunction getWindowHeight() {\n return typeof global.window !== \"undefined\" ? global.window.innerHeight : 0;\n}\nvar isCrossOriginFrame = function isCrossOriginFrame() {\n try {\n return global.window.location.hostname !== global.window.parent.location.hostname;\n } catch (e) {\n return true;\n }\n}; // Get the highest window context that isn't cross-origin\n// (When in an iframe)\nfunction getHighestSafeWindowContext() {\n var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window.self;\n // If we reached the top level, return self\n if (self === global.window.top) return self;\n // If parent is the same origin, we can move up one context\n // Reference: https://stackoverflow.com/a/21965342/1601953\n if (!isCrossOriginFrame()) return getHighestSafeWindowContext(self.parent);\n // If a different origin, we consider the current level\n // as the top reachable one\n return self;\n}\n// Min image zoom level\nvar MIN_ZOOM_LEVEL = 0; // Max image zoom level\nvar MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels\nvar ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked\nvar ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move\nvar WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action\nvar WHEEL_MOVE_Y_THRESHOLD = 1;\nvar KEYS = {\n ESC: 27,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}; // Actions\nvar ACTION_NONE = 0;\nvar ACTION_MOVE = 1;\nvar ACTION_SWIPE = 2;\nvar ACTION_PINCH = 3;\nvar SOURCE_ANY = 0;\nvar SOURCE_MOUSE = 1;\nvar SOURCE_TOUCH = 2;\nvar SOURCE_POINTER = 3; // Minimal swipe distance\nvar MIN_SWIPE_DISTANCE = 200;\nvar ReactImageLightbox = /*#__PURE__*/ function(_Component) {\n _inherits(ReactImageLightbox, _Component);\n var _super = _createSuper(ReactImageLightbox);\n function ReactImageLightbox(props) {\n var _this;\n _classCallCheck(this, ReactImageLightbox);\n _this = _super.call(this, props);\n _this.state = {\n //-----------------------------\n // Animation\n //-----------------------------\n // Lightbox is closing\n // When Lightbox is mounted, if animation is enabled it will open with the reverse of the closing animation\n isClosing: !props.animationDisabled,\n // Component parts should animate (e.g., when images are moving, or image is being zoomed)\n shouldAnimate: false,\n //-----------------------------\n // Zoom settings\n //-----------------------------\n // Zoom level of image\n zoomLevel: MIN_ZOOM_LEVEL,\n //-----------------------------\n // Image position settings\n //-----------------------------\n // Horizontal offset from center\n offsetX: 0,\n // Vertical offset from center\n offsetY: 0,\n // image load error for srcType\n loadErrorStatus: {}\n }; // Refs\n _this.outerEl = /*#__PURE__*/ (0, _reactDefault.default).createRef();\n _this.zoomInBtn = /*#__PURE__*/ (0, _reactDefault.default).createRef();\n _this.zoomOutBtn = /*#__PURE__*/ (0, _reactDefault.default).createRef();\n _this.caption = /*#__PURE__*/ (0, _reactDefault.default).createRef();\n _this.closeIfClickInner = _this.closeIfClickInner.bind(_assertThisInitialized(_this));\n _this.handleImageDoubleClick = _this.handleImageDoubleClick.bind(_assertThisInitialized(_this));\n _this.handleImageMouseWheel = _this.handleImageMouseWheel.bind(_assertThisInitialized(_this));\n _this.handleKeyInput = _this.handleKeyInput.bind(_assertThisInitialized(_this));\n _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));\n _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));\n _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));\n _this.handleOuterMousewheel = _this.handleOuterMousewheel.bind(_assertThisInitialized(_this));\n _this.handleTouchStart = _this.handleTouchStart.bind(_assertThisInitialized(_this));\n _this.handleTouchMove = _this.handleTouchMove.bind(_assertThisInitialized(_this));\n _this.handleTouchEnd = _this.handleTouchEnd.bind(_assertThisInitialized(_this));\n _this.handlePointerEvent = _this.handlePointerEvent.bind(_assertThisInitialized(_this));\n _this.handleCaptionMousewheel = _this.handleCaptionMousewheel.bind(_assertThisInitialized(_this));\n _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_this));\n _this.handleZoomInButtonClick = _this.handleZoomInButtonClick.bind(_assertThisInitialized(_this));\n _this.handleZoomOutButtonClick = _this.handleZoomOutButtonClick.bind(_assertThisInitialized(_this));\n _this.requestClose = _this.requestClose.bind(_assertThisInitialized(_this));\n _this.requestMoveNext = _this.requestMoveNext.bind(_assertThisInitialized(_this));\n _this.requestMovePrev = _this.requestMovePrev.bind(_assertThisInitialized(_this)); // Timeouts - always clear it before umount\n _this.timeouts = []; // Current action\n _this.currentAction = ACTION_NONE; // Events source\n _this.eventsSource = SOURCE_ANY; // Empty pointers list\n _this.pointerList = []; // Prevent inner close\n _this.preventInnerClose = false;\n _this.preventInnerCloseTimeout = null; // Used to disable animation when changing props.mainSrc|nextSrc|prevSrc\n _this.keyPressed = false; // Used to store load state / dimensions of images\n _this.imageCache = {}; // Time the last keydown event was called (used in keyboard action rate limiting)\n _this.lastKeyDownTime = 0; // Used for debouncing window resize event\n _this.resizeTimeout = null; // Used to determine when actions are triggered by the scroll wheel\n _this.wheelActionTimeout = null;\n _this.resetScrollTimeout = null;\n _this.scrollX = 0;\n _this.scrollY = 0; // Used in panning zoomed images\n _this.moveStartX = 0;\n _this.moveStartY = 0;\n _this.moveStartOffsetX = 0;\n _this.moveStartOffsetY = 0; // Used to swipe\n _this.swipeStartX = 0;\n _this.swipeStartY = 0;\n _this.swipeEndX = 0;\n _this.swipeEndY = 0; // Used to pinch\n _this.pinchTouchList = null;\n _this.pinchDistance = 0; // Used to differentiate between images with identical src\n _this.keyCounter = 0; // Used to detect a move when all src's remain unchanged (four or more of the same image in a row)\n _this.moveRequested = false;\n return _this;\n }\n _createClass(ReactImageLightbox, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n if (!this.props.animationDisabled) // Make opening animation play\n this.setState({\n isClosing: false\n });\n // Prevents cross-origin errors when using a cross-origin iframe\n this.windowContext = getHighestSafeWindowContext();\n this.listeners = {\n resize: this.handleWindowResize,\n mouseup: this.handleMouseUp,\n touchend: this.handleTouchEnd,\n touchcancel: this.handleTouchEnd,\n pointerdown: this.handlePointerEvent,\n pointermove: this.handlePointerEvent,\n pointerup: this.handlePointerEvent,\n pointercancel: this.handlePointerEvent\n };\n Object.keys(this.listeners).forEach(function(type) {\n _this2.windowContext.addEventListener(type, _this2.listeners[type]);\n });\n this.loadAllImages();\n }\n },\n {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this3 = this;\n this.getSrcTypes().forEach(function(srcType) {\n if (_this3.props[srcType.name] !== nextProps[srcType.name]) _this3.moveRequested = false;\n }); // Wait for move...\n return !this.moveRequested;\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this4 = this;\n var sourcesChanged = false;\n var prevSrcDict = {};\n var nextSrcDict = {};\n this.getSrcTypes().forEach(function(srcType) {\n if (prevProps[srcType.name] !== _this4.props[srcType.name]) {\n sourcesChanged = true;\n prevSrcDict[prevProps[srcType.name]] = true;\n nextSrcDict[_this4.props[srcType.name]] = true;\n }\n });\n if (sourcesChanged || this.moveRequested) {\n // Reset the loaded state for images not rendered next\n Object.keys(prevSrcDict).forEach(function(prevSrc) {\n if (!(prevSrc in nextSrcDict) && prevSrc in _this4.imageCache) _this4.imageCache[prevSrc].loaded = false;\n });\n this.moveRequested = false; // Load any new images\n this.loadAllImages(this.props);\n }\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this5 = this;\n this.didUnmount = true;\n Object.keys(this.listeners).forEach(function(type) {\n _this5.windowContext.removeEventListener(type, _this5.listeners[type]);\n });\n this.timeouts.forEach(function(tid) {\n return clearTimeout(tid);\n });\n }\n },\n {\n key: \"setTimeout\",\n value: function(_setTimeout) {\n function setTimeout1(_x, _x2) {\n return _setTimeout.apply(this, arguments);\n }\n setTimeout1.toString = function() {\n return _setTimeout.toString();\n };\n return setTimeout1;\n }(function(func, time) {\n var _this6 = this;\n var id = setTimeout(function() {\n _this6.timeouts = _this6.timeouts.filter(function(tid) {\n return tid !== id;\n });\n func();\n }, time);\n this.timeouts.push(id);\n return id;\n })\n },\n {\n key: \"setPreventInnerClose\",\n value: function setPreventInnerClose() {\n var _this7 = this;\n if (this.preventInnerCloseTimeout) this.clearTimeout(this.preventInnerCloseTimeout);\n this.preventInnerClose = true;\n this.preventInnerCloseTimeout = this.setTimeout(function() {\n _this7.preventInnerClose = false;\n _this7.preventInnerCloseTimeout = null;\n }, 100);\n } // Get info for the best suited image to display with the given srcType\n },\n {\n key: \"getBestImageForType\",\n value: function getBestImageForType(srcType) {\n var imageSrc = this.props[srcType];\n var fitSizes = {};\n if (this.isImageLoaded(imageSrc)) // Use full-size image if available\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height);\n else if (this.isImageLoaded(this.props[\"\".concat(srcType, \"Thumbnail\")])) {\n // Fall back to using thumbnail if the image has not been loaded\n imageSrc = this.props[\"\".concat(srcType, \"Thumbnail\")];\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height, true);\n } else return null;\n return {\n src: imageSrc,\n height: this.imageCache[imageSrc].height,\n width: this.imageCache[imageSrc].width,\n targetHeight: fitSizes.height,\n targetWidth: fitSizes.width\n };\n } // Get sizing for when an image is larger than the window\n },\n {\n key: \"getFitSizes\",\n value: function getFitSizes(width, height, stretch) {\n var boxSize = this.getLightboxRect();\n var maxHeight = boxSize.height - this.props.imagePadding * 2;\n var maxWidth = boxSize.width - this.props.imagePadding * 2;\n if (!stretch) {\n maxHeight = Math.min(maxHeight, height);\n maxWidth = Math.min(maxWidth, width);\n }\n var maxRatio = maxWidth / maxHeight;\n var srcRatio = width / height;\n if (maxRatio > srcRatio) // height is the constraining dimension of the photo\n return {\n width: width * maxHeight / height,\n height: maxHeight\n };\n return {\n width: maxWidth,\n height: height * maxWidth / width\n };\n }\n },\n {\n key: \"getMaxOffsets\",\n value: function getMaxOffsets() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n var currentImageInfo = this.getBestImageForType(\"mainSrc\");\n if (currentImageInfo === null) return {\n maxX: 0,\n minX: 0,\n maxY: 0,\n minY: 0\n };\n var boxSize = this.getLightboxRect();\n var zoomMultiplier = this.getZoomMultiplier(zoomLevel);\n var maxX = 0;\n if (zoomMultiplier * currentImageInfo.width - boxSize.width < 0) // if there is still blank space in the X dimension, don't limit except to the opposite edge\n maxX = (boxSize.width - zoomMultiplier * currentImageInfo.width) / 2;\n else maxX = (zoomMultiplier * currentImageInfo.width - boxSize.width) / 2;\n var maxY = 0;\n if (zoomMultiplier * currentImageInfo.height - boxSize.height < 0) // if there is still blank space in the Y dimension, don't limit except to the opposite edge\n maxY = (boxSize.height - zoomMultiplier * currentImageInfo.height) / 2;\n else maxY = (zoomMultiplier * currentImageInfo.height - boxSize.height) / 2;\n return {\n maxX: maxX,\n maxY: maxY,\n minX: -1 * maxX,\n minY: -1 * maxY\n };\n } // Get image src types\n },\n {\n key: \"getSrcTypes\",\n value: function getSrcTypes() {\n return [\n {\n name: \"mainSrc\",\n keyEnding: \"i\".concat(this.keyCounter)\n },\n {\n name: \"mainSrcThumbnail\",\n keyEnding: \"t\".concat(this.keyCounter)\n },\n {\n name: \"nextSrc\",\n keyEnding: \"i\".concat(this.keyCounter + 1)\n },\n {\n name: \"nextSrcThumbnail\",\n keyEnding: \"t\".concat(this.keyCounter + 1)\n },\n {\n name: \"prevSrc\",\n keyEnding: \"i\".concat(this.keyCounter - 1)\n },\n {\n name: \"prevSrcThumbnail\",\n keyEnding: \"t\".concat(this.keyCounter - 1)\n }\n ];\n }\n },\n {\n key: \"getZoomMultiplier\",\n value: function getZoomMultiplier() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n return Math.pow(ZOOM_RATIO, zoomLevel);\n }\n },\n {\n key: \"getLightboxRect\",\n value: function getLightboxRect() {\n if (this.outerEl.current) return this.outerEl.current.getBoundingClientRect();\n return {\n width: getWindowWidth(),\n height: getWindowHeight(),\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n }\n },\n {\n key: \"clearTimeout\",\n value: function(_clearTimeout) {\n function clearTimeout1(_x3) {\n return _clearTimeout.apply(this, arguments);\n }\n clearTimeout1.toString = function() {\n return _clearTimeout.toString();\n };\n return clearTimeout1;\n }(function(id) {\n this.timeouts = this.timeouts.filter(function(tid) {\n return tid !== id;\n });\n clearTimeout(id);\n } // Change zoom level\n )\n },\n {\n key: \"changeZoom\",\n value: function changeZoom(zoomLevel, clientX, clientY) {\n // Ignore if zoom disabled\n if (!this.props.enableZoom) return;\n // Constrain zoom level to the set bounds\n var nextZoomLevel = Math.max(MIN_ZOOM_LEVEL, Math.min(MAX_ZOOM_LEVEL, zoomLevel)); // Ignore requests that don't change the zoom level\n if (nextZoomLevel === this.state.zoomLevel) return;\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n // Snap back to center if zoomed all the way out\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: 0,\n offsetY: 0\n });\n return;\n }\n var imageBaseSize = this.getBestImageForType(\"mainSrc\");\n if (imageBaseSize === null) return;\n var currentZoomMultiplier = this.getZoomMultiplier();\n var nextZoomMultiplier = this.getZoomMultiplier(nextZoomLevel); // Default to the center of the image to zoom when no mouse position specified\n var boxRect = this.getLightboxRect();\n var pointerX = typeof clientX !== \"undefined\" ? clientX - boxRect.left : boxRect.width / 2;\n var pointerY = typeof clientY !== \"undefined\" ? clientY - boxRect.top : boxRect.height / 2;\n var currentImageOffsetX = (boxRect.width - imageBaseSize.width * currentZoomMultiplier) / 2;\n var currentImageOffsetY = (boxRect.height - imageBaseSize.height * currentZoomMultiplier) / 2;\n var currentImageRealOffsetX = currentImageOffsetX - this.state.offsetX;\n var currentImageRealOffsetY = currentImageOffsetY - this.state.offsetY;\n var currentPointerXRelativeToImage = (pointerX - currentImageRealOffsetX) / currentZoomMultiplier;\n var currentPointerYRelativeToImage = (pointerY - currentImageRealOffsetY) / currentZoomMultiplier;\n var nextImageRealOffsetX = pointerX - currentPointerXRelativeToImage * nextZoomMultiplier;\n var nextImageRealOffsetY = pointerY - currentPointerYRelativeToImage * nextZoomMultiplier;\n var nextImageOffsetX = (boxRect.width - imageBaseSize.width * nextZoomMultiplier) / 2;\n var nextImageOffsetY = (boxRect.height - imageBaseSize.height * nextZoomMultiplier) / 2;\n var nextOffsetX = nextImageOffsetX - nextImageRealOffsetX;\n var nextOffsetY = nextImageOffsetY - nextImageRealOffsetY; // When zooming out, limit the offset so things don't get left askew\n if (this.currentAction !== ACTION_PINCH) {\n var maxOffsets = this.getMaxOffsets();\n if (this.state.zoomLevel > nextZoomLevel) {\n nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, nextOffsetX));\n nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, nextOffsetY));\n }\n }\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: nextOffsetX,\n offsetY: nextOffsetY\n });\n }\n },\n {\n key: \"closeIfClickInner\",\n value: function closeIfClickInner(event) {\n if (!this.preventInnerClose && event.target.className.search(/\\bril-inner\\b/) > -1) this.requestClose(event);\n }\n },\n {\n key: \"handleKeyInput\",\n value: function handleKeyInput(event) {\n event.stopPropagation(); // Ignore key input during animations\n if (this.isAnimating()) return;\n // Allow slightly faster navigation through the images when user presses keys repeatedly\n if (event.type === \"keyup\") {\n this.lastKeyDownTime -= this.props.keyRepeatKeyupBonus;\n return;\n }\n var keyCode = event.which || event.keyCode; // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n var currentTime = new Date();\n if (currentTime.getTime() - this.lastKeyDownTime < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) return;\n this.lastKeyDownTime = currentTime.getTime();\n switch(keyCode){\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault();\n this.requestClose(event);\n break;\n // Left arrow key moves to previous image\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) return;\n event.preventDefault();\n this.keyPressed = true;\n this.requestMovePrev(event);\n break;\n // Right arrow key moves to next image\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) return;\n event.preventDefault();\n this.keyPressed = true;\n this.requestMoveNext(event);\n break;\n }\n }\n },\n {\n key: \"handleOuterMousewheel\",\n value: function handleOuterMousewheel(event) {\n var _this8 = this;\n // Prevent scrolling of the background\n event.stopPropagation();\n var xThreshold = WHEEL_MOVE_X_THRESHOLD;\n var actionDelay = 0;\n var imageMoveDelay = 500;\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(function() {\n _this8.scrollX = 0;\n _this8.scrollY = 0;\n }, 300); // Prevent rapid-fire zoom behavior\n if (this.wheelActionTimeout !== null || this.isAnimating()) return;\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n var bigLeapX = xThreshold / 2; // If the scroll amount has accumulated sufficiently, or a large leap was taken\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n } // Allow successive actions after the set delay\n if (actionDelay !== 0) this.wheelActionTimeout = this.setTimeout(function() {\n _this8.wheelActionTimeout = null;\n }, actionDelay);\n }\n },\n {\n key: \"handleImageMouseWheel\",\n value: function handleImageMouseWheel(event) {\n var yThreshold = WHEEL_MOVE_Y_THRESHOLD;\n if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {\n event.stopPropagation(); // If the vertical scroll amount was large enough, perform a zoom\n if (Math.abs(event.deltaY) < yThreshold) return;\n this.scrollX = 0;\n this.scrollY += event.deltaY;\n this.changeZoom(this.state.zoomLevel - event.deltaY, event.clientX, event.clientY);\n }\n }\n },\n {\n key: \"handleImageDoubleClick\",\n value: function handleImageDoubleClick(event) {\n if (this.state.zoomLevel > MIN_ZOOM_LEVEL) // A double click when zoomed in zooms all the way out\n this.changeZoom(MIN_ZOOM_LEVEL, event.clientX, event.clientY);\n else // A double click when zoomed all the way out zooms in\n this.changeZoom(this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE, event.clientX, event.clientY);\n }\n },\n {\n key: \"shouldHandleEvent\",\n value: function shouldHandleEvent(source) {\n if (this.eventsSource === source) return true;\n if (this.eventsSource === SOURCE_ANY) {\n this.eventsSource = source;\n return true;\n }\n switch(source){\n case SOURCE_MOUSE:\n return false;\n case SOURCE_TOUCH:\n this.eventsSource = SOURCE_TOUCH;\n this.filterPointersBySource();\n return true;\n case SOURCE_POINTER:\n if (this.eventsSource === SOURCE_MOUSE) {\n this.eventsSource = SOURCE_POINTER;\n this.filterPointersBySource();\n return true;\n }\n return false;\n default:\n return false;\n }\n }\n },\n {\n key: \"addPointer\",\n value: function addPointer(pointer) {\n this.pointerList.push(pointer);\n }\n },\n {\n key: \"removePointer\",\n value: function removePointer(pointer) {\n this.pointerList = this.pointerList.filter(function(_ref) {\n var id = _ref.id;\n return id !== pointer.id;\n });\n }\n },\n {\n key: \"filterPointersBySource\",\n value: function filterPointersBySource() {\n var _this9 = this;\n this.pointerList = this.pointerList.filter(function(_ref2) {\n var source = _ref2.source;\n return source === _this9.eventsSource;\n });\n }\n },\n {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerStart(event);\n }\n }\n },\n {\n key: \"handleMouseMove\",\n value: function handleMouseMove(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) this.multiPointerMove(event, [\n ReactImageLightbox.parseMouseEvent(event)\n ]);\n }\n },\n {\n key: \"handleMouseUp\",\n value: function handleMouseUp(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.removePointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerEnd(event);\n }\n }\n },\n {\n key: \"handlePointerEvent\",\n value: function handlePointerEvent(event) {\n if (this.shouldHandleEvent(SOURCE_POINTER)) switch(event.type){\n case \"pointerdown\":\n if (ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerStart(event);\n }\n break;\n case \"pointermove\":\n this.multiPointerMove(event, [\n ReactImageLightbox.parsePointerEvent(event)\n ]);\n break;\n case \"pointerup\":\n case \"pointercancel\":\n this.removePointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerEnd(event);\n break;\n }\n }\n },\n {\n key: \"handleTouchStart\",\n value: function handleTouchStart(event) {\n var _this10 = this;\n if (this.shouldHandleEvent(SOURCE_TOUCH) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n [].forEach.call(event.changedTouches, function(eventTouch) {\n return _this10.addPointer(ReactImageLightbox.parseTouchPointer(eventTouch));\n });\n this.multiPointerStart(event);\n }\n }\n },\n {\n key: \"handleTouchMove\",\n value: function handleTouchMove(event) {\n if (this.shouldHandleEvent(SOURCE_TOUCH)) this.multiPointerMove(event, [].map.call(event.changedTouches, function(eventTouch) {\n return ReactImageLightbox.parseTouchPointer(eventTouch);\n }));\n }\n },\n {\n key: \"handleTouchEnd\",\n value: function handleTouchEnd(event) {\n var _this11 = this;\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n [].map.call(event.changedTouches, function(touch) {\n return _this11.removePointer(ReactImageLightbox.parseTouchPointer(touch));\n });\n this.multiPointerEnd(event);\n }\n }\n },\n {\n key: \"decideMoveOrSwipe\",\n value: function decideMoveOrSwipe(pointer) {\n if (this.state.zoomLevel <= MIN_ZOOM_LEVEL) this.handleSwipeStart(pointer);\n else this.handleMoveStart(pointer);\n }\n },\n {\n key: \"multiPointerStart\",\n value: function multiPointerStart(event) {\n this.handleEnd(null);\n switch(this.pointerList.length){\n case 1:\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n case 2:\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n },\n {\n key: \"multiPointerMove\",\n value: function multiPointerMove(event, pointerList) {\n switch(this.currentAction){\n case ACTION_MOVE:\n event.preventDefault();\n this.handleMove(pointerList[0]);\n break;\n case ACTION_SWIPE:\n event.preventDefault();\n this.handleSwipe(pointerList[0]);\n break;\n case ACTION_PINCH:\n event.preventDefault();\n this.handlePinch(pointerList);\n break;\n }\n }\n },\n {\n key: \"multiPointerEnd\",\n value: function multiPointerEnd(event) {\n if (this.currentAction !== ACTION_NONE) {\n this.setPreventInnerClose();\n this.handleEnd(event);\n }\n switch(this.pointerList.length){\n case 0:\n this.eventsSource = SOURCE_ANY;\n break;\n case 1:\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n case 2:\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n },\n {\n key: \"handleEnd\",\n value: function handleEnd(event) {\n switch(this.currentAction){\n case ACTION_MOVE:\n this.handleMoveEnd(event);\n break;\n case ACTION_SWIPE:\n this.handleSwipeEnd(event);\n break;\n case ACTION_PINCH:\n this.handlePinchEnd(event);\n break;\n }\n } // Handle move start over the lightbox container\n },\n {\n key: \"handleMoveStart\",\n value: function handleMoveStart(_ref3) {\n var clientX = _ref3.x, clientY = _ref3.y;\n if (!this.props.enableZoom) return;\n this.currentAction = ACTION_MOVE;\n this.moveStartX = clientX;\n this.moveStartY = clientY;\n this.moveStartOffsetX = this.state.offsetX;\n this.moveStartOffsetY = this.state.offsetY;\n } // Handle dragging over the lightbox container\n },\n {\n key: \"handleMove\",\n value: function handleMove(_ref4) {\n var clientX = _ref4.x, clientY = _ref4.y;\n var newOffsetX = this.moveStartX - clientX + this.moveStartOffsetX;\n var newOffsetY = this.moveStartY - clientY + this.moveStartOffsetY;\n if (this.state.offsetX !== newOffsetX || this.state.offsetY !== newOffsetY) this.setState({\n offsetX: newOffsetX,\n offsetY: newOffsetY\n });\n }\n },\n {\n key: \"handleMoveEnd\",\n value: function handleMoveEnd() {\n var _this12 = this;\n this.currentAction = ACTION_NONE;\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Snap image back into frame if outside max offset range\n var maxOffsets = this.getMaxOffsets();\n var nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, this.state.offsetX));\n var nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, this.state.offsetY));\n if (nextOffsetX !== this.state.offsetX || nextOffsetY !== this.state.offsetY) {\n this.setState({\n offsetX: nextOffsetX,\n offsetY: nextOffsetY,\n shouldAnimate: true\n });\n this.setTimeout(function() {\n _this12.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n }\n },\n {\n key: \"handleSwipeStart\",\n value: function handleSwipeStart(_ref5) {\n var clientX = _ref5.x, clientY = _ref5.y;\n this.currentAction = ACTION_SWIPE;\n this.swipeStartX = clientX;\n this.swipeStartY = clientY;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n },\n {\n key: \"handleSwipe\",\n value: function handleSwipe(_ref6) {\n var clientX = _ref6.x, clientY = _ref6.y;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n },\n {\n key: \"handleSwipeEnd\",\n value: function handleSwipeEnd(event) {\n var xDiff = this.swipeEndX - this.swipeStartX;\n var xDiffAbs = Math.abs(xDiff);\n var yDiffAbs = Math.abs(this.swipeEndY - this.swipeStartY);\n this.currentAction = ACTION_NONE;\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0;\n if (!event || this.isAnimating() || xDiffAbs < yDiffAbs * 1.5) return;\n if (xDiffAbs < MIN_SWIPE_DISTANCE) {\n var boxRect = this.getLightboxRect();\n if (xDiffAbs < boxRect.width / 4) return;\n }\n if (xDiff > 0 && this.props.prevSrc) {\n event.preventDefault();\n this.requestMovePrev();\n } else if (xDiff < 0 && this.props.nextSrc) {\n event.preventDefault();\n this.requestMoveNext();\n }\n }\n },\n {\n key: \"calculatePinchDistance\",\n value: function calculatePinchDistance() {\n var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList, _ref8 = _slicedToArray(_ref7, 2), a = _ref8[0], b = _ref8[1];\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n }\n },\n {\n key: \"calculatePinchCenter\",\n value: function calculatePinchCenter() {\n var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList, _ref10 = _slicedToArray(_ref9, 2), a = _ref10[0], b = _ref10[1];\n return {\n x: a.x - (a.x - b.x) / 2,\n y: a.y - (a.y - b.y) / 2\n };\n }\n },\n {\n key: \"handlePinchStart\",\n value: function handlePinchStart(pointerList) {\n if (!this.props.enableZoom) return;\n this.currentAction = ACTION_PINCH;\n this.pinchTouchList = pointerList.map(function(_ref11) {\n var id = _ref11.id, x = _ref11.x, y = _ref11.y;\n return {\n id: id,\n x: x,\n y: y\n };\n });\n this.pinchDistance = this.calculatePinchDistance();\n }\n },\n {\n key: \"handlePinch\",\n value: function handlePinch(pointerList) {\n this.pinchTouchList = this.pinchTouchList.map(function(oldPointer) {\n for(var i = 0; i < pointerList.length; i += 1){\n if (pointerList[i].id === oldPointer.id) return pointerList[i];\n }\n return oldPointer;\n });\n var newDistance = this.calculatePinchDistance();\n var zoomLevel = this.state.zoomLevel + newDistance - this.pinchDistance;\n this.pinchDistance = newDistance;\n var _this$calculatePinchC = this.calculatePinchCenter(this.pinchTouchList), clientX = _this$calculatePinchC.x, clientY = _this$calculatePinchC.y;\n this.changeZoom(zoomLevel, clientX, clientY);\n }\n },\n {\n key: \"handlePinchEnd\",\n value: function handlePinchEnd() {\n this.currentAction = ACTION_NONE;\n this.pinchTouchList = null;\n this.pinchDistance = 0;\n } // Handle the window resize event\n },\n {\n key: \"handleWindowResize\",\n value: function handleWindowResize() {\n this.clearTimeout(this.resizeTimeout);\n this.resizeTimeout = this.setTimeout(this.forceUpdate.bind(this), 100);\n }\n },\n {\n key: \"handleZoomInButtonClick\",\n value: function handleZoomInButtonClick() {\n var nextZoomLevel = this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n if (nextZoomLevel === MAX_ZOOM_LEVEL) this.zoomOutBtn.current.focus();\n }\n },\n {\n key: \"handleZoomOutButtonClick\",\n value: function handleZoomOutButtonClick() {\n var nextZoomLevel = this.state.zoomLevel - ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n if (nextZoomLevel === MIN_ZOOM_LEVEL) this.zoomInBtn.current.focus();\n }\n },\n {\n key: \"handleCaptionMousewheel\",\n value: function handleCaptionMousewheel(event) {\n event.stopPropagation();\n if (!this.caption.current) return;\n var _this$caption$current = this.caption.current.getBoundingClientRect(), height = _this$caption$current.height;\n var _this$caption$current2 = this.caption.current, scrollHeight = _this$caption$current2.scrollHeight, scrollTop = _this$caption$current2.scrollTop;\n if (event.deltaY > 0 && height + scrollTop >= scrollHeight || event.deltaY < 0 && scrollTop <= 0) event.preventDefault();\n } // Detach key and mouse input events\n },\n {\n key: \"isAnimating\",\n value: function isAnimating() {\n return this.state.shouldAnimate || this.state.isClosing;\n } // Check if image is loaded\n },\n {\n key: \"isImageLoaded\",\n value: function isImageLoaded(imageSrc) {\n return imageSrc && imageSrc in this.imageCache && this.imageCache[imageSrc].loaded;\n } // Load image from src and call callback with image width and height on load\n },\n {\n key: \"loadImage\",\n value: function loadImage(srcType, imageSrc, done) {\n var _this13 = this;\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(function() {\n done();\n }, 1);\n return;\n }\n var inMemoryImage = new global.Image();\n if (this.props.imageCrossOrigin) inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n inMemoryImage.onerror = function(errorEvent) {\n _this13.props.onImageLoadError(imageSrc, srcType, errorEvent); // failed to load so set the state loadErrorStatus\n _this13.setState(function(prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, srcType, true))\n };\n });\n done(errorEvent);\n };\n inMemoryImage.onload = function() {\n _this13.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n _this13.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height\n };\n done();\n };\n inMemoryImage.src = imageSrc;\n } // Load all images and their thumbnails\n },\n {\n key: \"loadAllImages\",\n value: function loadAllImages() {\n var _this14 = this;\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n var generateLoadDoneCallback = function generateLoadDoneCallback(srcType, imageSrc) {\n return function(err) {\n // Give up showing image on error\n if (err) return;\n // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n if (_this14.props[srcType] !== imageSrc || _this14.didUnmount) return;\n // Force rerender with the new image\n _this14.forceUpdate();\n };\n }; // Load the images\n this.getSrcTypes().forEach(function(srcType) {\n var type = srcType.name; // there is no error when we try to load it initially\n if (props[type] && _this14.state.loadErrorStatus[type]) _this14.setState(function(prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, type, false))\n };\n });\n // Load unloaded images\n if (props[type] && !_this14.isImageLoaded(props[type])) _this14.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]));\n });\n } // Request that the lightbox be closed\n },\n {\n key: \"requestClose\",\n value: function requestClose(event) {\n var _this15 = this;\n // Call the parent close request\n var closeLightbox = function closeLightbox() {\n return _this15.props.onCloseRequest(event);\n };\n if (this.props.animationDisabled || event.type === \"keydown\" && !this.props.animationOnKeyInput) {\n // No animation\n closeLightbox();\n return;\n } // With animation\n // Start closing animation\n this.setState({\n isClosing: true\n }); // Perform the actual closing at the end of the animation\n this.setTimeout(closeLightbox, this.props.animationDuration);\n }\n },\n {\n key: \"requestMove\",\n value: function requestMove(direction, event) {\n var _this16 = this;\n // Reset the zoom level on image move\n var nextState = {\n zoomLevel: MIN_ZOOM_LEVEL,\n offsetX: 0,\n offsetY: 0\n }; // Enable animated states\n if (!this.props.animationDisabled && (!this.keyPressed || this.props.animationOnKeyInput)) {\n nextState.shouldAnimate = true;\n this.setTimeout(function() {\n return _this16.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n this.keyPressed = false;\n this.moveRequested = true;\n if (direction === \"prev\") {\n this.keyCounter -= 1;\n this.setState(nextState);\n this.props.onMovePrevRequest(event);\n } else {\n this.keyCounter += 1;\n this.setState(nextState);\n this.props.onMoveNextRequest(event);\n }\n } // Request to transition to the next image\n },\n {\n key: \"requestMoveNext\",\n value: function requestMoveNext(event) {\n this.requestMove(\"next\", event);\n } // Request to transition to the previous image\n },\n {\n key: \"requestMovePrev\",\n value: function requestMovePrev(event) {\n this.requestMove(\"prev\", event);\n }\n },\n {\n key: \"render\",\n value: function render() {\n var _this17 = this;\n var _this$props = this.props, animationDisabled = _this$props.animationDisabled, animationDuration = _this$props.animationDuration, clickOutsideToClose = _this$props.clickOutsideToClose, discourageDownloads = _this$props.discourageDownloads, enableZoom = _this$props.enableZoom, imageTitle = _this$props.imageTitle, nextSrc = _this$props.nextSrc, prevSrc = _this$props.prevSrc, toolbarButtons = _this$props.toolbarButtons, reactModalStyle = _this$props.reactModalStyle, _onAfterOpen = _this$props.onAfterOpen, imageCrossOrigin = _this$props.imageCrossOrigin, reactModalProps = _this$props.reactModalProps, loader = _this$props.loader;\n var _this$state = this.state, zoomLevel = _this$state.zoomLevel, offsetX = _this$state.offsetX, offsetY = _this$state.offsetY, isClosing = _this$state.isClosing, loadErrorStatus = _this$state.loadErrorStatus;\n var boxSize = this.getLightboxRect();\n var transitionStyle = {}; // Transition settings for sliding animations\n if (!animationDisabled && this.isAnimating()) transitionStyle = _objectSpread2(_objectSpread2({}, transitionStyle), {}, {\n transition: \"transform \".concat(animationDuration, \"ms\")\n });\n // Key endings to differentiate between images with the same src\n var keyEndings = {};\n this.getSrcTypes().forEach(function(_ref12) {\n var name = _ref12.name, keyEnding = _ref12.keyEnding;\n keyEndings[name] = keyEnding;\n }); // Images to be displayed\n var images = [];\n var addImage = function addImage(srcType, imageClass, transforms) {\n // Ignore types that have no source defined for their full size image\n if (!_this17.props[srcType]) return;\n var bestImageInfo = _this17.getBestImageForType(srcType);\n var imageStyle = _objectSpread2(_objectSpread2({}, transitionStyle), ReactImageLightbox.getTransform(_objectSpread2(_objectSpread2({}, transforms), bestImageInfo)));\n if (zoomLevel > MIN_ZOOM_LEVEL) imageStyle.cursor = \"move\";\n // support IE 9 and 11\n var hasTrueValue = function hasTrueValue(object) {\n return Object.keys(object).some(function(key) {\n return object[key];\n });\n }; // when error on one of the loads then push custom error stuff\n if (bestImageInfo === null && hasTrueValue(loadErrorStatus)) {\n images.push(/*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-errored\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"ril__errorContainer\"\n }, _this17.props.imageLoadErrorMessage)));\n return;\n }\n if (bestImageInfo === null) {\n var loadingIcon = loader !== undefined ? loader : /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon\"\n }, _toConsumableArray(new Array(12)).map(function(_, index) {\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n // eslint-disable-next-line react/no-array-index-key\n key: index,\n className: \"ril-loading-circle-point ril__loadingCirclePoint\"\n });\n })); // Fall back to loading icon if the thumbnail has not been loaded\n images.push(/*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-not-loaded\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"ril__loadingContainer\"\n }, loadingIcon)));\n return;\n }\n var imageSrc = bestImageInfo.src;\n if (discourageDownloads) {\n imageStyle.backgroundImage = \"url('\".concat(imageSrc, \"')\");\n images.push(/*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril__imageDiscourager\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n style: imageStyle,\n key: imageSrc + keyEndings[srcType]\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"ril-download-blocker ril__downloadBlocker\"\n })));\n } else images.push(/*#__PURE__*/ (0, _reactDefault.default).createElement(\"img\", _extends({}, imageCrossOrigin ? {\n crossOrigin: imageCrossOrigin\n } : {}, {\n className: \"\".concat(imageClass, \" ril__image\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n onDragStart: function onDragStart(e) {\n return e.preventDefault();\n },\n style: imageStyle,\n src: imageSrc,\n key: imageSrc + keyEndings[srcType],\n alt: typeof imageTitle === \"string\" ? imageTitle : translate(\"Image\"),\n draggable: false\n })));\n };\n var zoomMultiplier = this.getZoomMultiplier(); // Next Image (displayed on the right)\n addImage(\"nextSrc\", \"ril-image-next ril__imageNext\", {\n x: boxSize.width\n }); // Main Image\n addImage(\"mainSrc\", \"ril-image-current\", {\n x: -1 * offsetX,\n y: -1 * offsetY,\n zoom: zoomMultiplier\n }); // Previous Image (displayed on the left)\n addImage(\"prevSrc\", \"ril-image-prev ril__imagePrev\", {\n x: -1 * boxSize.width\n });\n var modalStyle = {\n overlay: _objectSpread2({\n zIndex: 1000,\n backgroundColor: \"transparent\"\n }, reactModalStyle.overlay),\n content: _objectSpread2({\n backgroundColor: \"transparent\",\n overflow: \"hidden\",\n // Needed, otherwise keyboard shortcuts scroll the page\n border: \"none\",\n borderRadius: 0,\n padding: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, reactModalStyle.content)\n };\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactModalDefault.default), _extends({\n isOpen: true,\n onRequestClose: clickOutsideToClose ? this.requestClose : undefined,\n onAfterOpen: function onAfterOpen() {\n // Focus on the div with key handlers\n if (_this17.outerEl.current) _this17.outerEl.current.focus();\n _onAfterOpen();\n },\n style: modalStyle,\n contentLabel: translate(\"Lightbox\"),\n appElement: typeof global.window !== \"undefined\" ? global.window.document.body : undefined\n }, reactModalProps), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions\n // Floating modal with closing animations\n className: \"ril-outer ril__outer ril__outerAnimating \".concat(this.props.wrapperClassName, \" \").concat(isClosing ? \"ril-closing ril__outerClosing\" : \"\"),\n style: {\n transition: \"opacity \".concat(animationDuration, \"ms\"),\n animationDuration: \"\".concat(animationDuration, \"ms\"),\n animationDirection: isClosing ? \"normal\" : \"reverse\"\n },\n ref: this.outerEl,\n onWheel: this.handleOuterMousewheel,\n onMouseMove: this.handleMouseMove,\n onMouseDown: this.handleMouseDown,\n onTouchStart: this.handleTouchStart,\n onTouchMove: this.handleTouchMove,\n tabIndex: \"-1\" // Enables key handlers on div\n ,\n onKeyDown: this.handleKeyInput,\n onKeyUp: this.handleKeyInput\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events\n // Image holder\n className: \"ril-inner ril__inner\",\n onClick: clickOutsideToClose ? this.closeIfClickInner : undefined\n }, images), prevSrc && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"button\", {\n // Move to previous image button\n type: \"button\",\n className: \"ril-prev-button ril__navButtons ril__navButtonPrev\",\n key: \"prev\",\n \"aria-label\": this.props.prevLabel,\n title: this.props.prevLabel,\n onClick: !this.isAnimating() ? this.requestMovePrev : undefined // Ignore clicks during animation\n }), nextSrc && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"button\", {\n // Move to next image button\n type: \"button\",\n className: \"ril-next-button ril__navButtons ril__navButtonNext\",\n key: \"next\",\n \"aria-label\": this.props.nextLabel,\n title: this.props.nextLabel,\n onClick: !this.isAnimating() ? this.requestMoveNext : undefined // Ignore clicks during animation\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n // Lightbox toolbar\n className: \"ril-toolbar ril__toolbar\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"ul\", {\n className: \"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: \"ril-toolbar__item__child ril__toolbarItemChild\"\n }, imageTitle))), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"ul\", {\n className: \"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide\"\n }, toolbarButtons && toolbarButtons.map(function(button, i) {\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", {\n key: \"button_\".concat(i + 1),\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, button);\n }), enableZoom && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"button\", {\n // Lightbox zoom in button\n type: \"button\",\n key: \"zoom-in\",\n \"aria-label\": this.props.zoomInLabel,\n title: this.props.zoomInLabel,\n className: [\n \"ril-zoom-in\",\n \"ril__toolbarItemChild\",\n \"ril__builtinButton\",\n \"ril__zoomInButton\"\n ].concat(_toConsumableArray(zoomLevel === MAX_ZOOM_LEVEL ? [\n \"ril__builtinButtonDisabled\"\n ] : [])).join(\" \"),\n ref: this.zoomInBtn,\n disabled: this.isAnimating() || zoomLevel === MAX_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MAX_ZOOM_LEVEL ? this.handleZoomInButtonClick : undefined\n })), enableZoom && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"button\", {\n // Lightbox zoom out button\n type: \"button\",\n key: \"zoom-out\",\n \"aria-label\": this.props.zoomOutLabel,\n title: this.props.zoomOutLabel,\n className: [\n \"ril-zoom-out\",\n \"ril__toolbarItemChild\",\n \"ril__builtinButton\",\n \"ril__zoomOutButton\"\n ].concat(_toConsumableArray(zoomLevel === MIN_ZOOM_LEVEL ? [\n \"ril__builtinButtonDisabled\"\n ] : [])).join(\" \"),\n ref: this.zoomOutBtn,\n disabled: this.isAnimating() || zoomLevel === MIN_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MIN_ZOOM_LEVEL ? this.handleZoomOutButtonClick : undefined\n })), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"button\", {\n // Lightbox close button\n type: \"button\",\n key: \"close\",\n \"aria-label\": this.props.closeLabel,\n title: this.props.closeLabel,\n className: \"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton\",\n onClick: !this.isAnimating() ? this.requestClose : undefined // Ignore clicks during animation\n })))), this.props.imageCaption && /*#__PURE__*/ // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n (0, _reactDefault.default).createElement(\"div\", {\n // Image caption\n onWheel: this.handleCaptionMousewheel,\n onMouseDown: function onMouseDown(event) {\n return event.stopPropagation();\n },\n className: \"ril-caption ril__caption\",\n ref: this.caption\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: \"ril-caption-content ril__captionContent\"\n }, this.props.imageCaption))));\n }\n }\n ], [\n {\n key: \"isTargetMatchImage\",\n value: function isTargetMatchImage(target) {\n return target && /ril-image-current/.test(target.className);\n }\n },\n {\n key: \"parseMouseEvent\",\n value: function parseMouseEvent(mouseEvent) {\n return {\n id: \"mouse\",\n source: SOURCE_MOUSE,\n x: parseInt(mouseEvent.clientX, 10),\n y: parseInt(mouseEvent.clientY, 10)\n };\n }\n },\n {\n key: \"parseTouchPointer\",\n value: function parseTouchPointer(touchPointer) {\n return {\n id: touchPointer.identifier,\n source: SOURCE_TOUCH,\n x: parseInt(touchPointer.clientX, 10),\n y: parseInt(touchPointer.clientY, 10)\n };\n }\n },\n {\n key: \"parsePointerEvent\",\n value: function parsePointerEvent(pointerEvent) {\n return {\n id: pointerEvent.pointerId,\n source: SOURCE_POINTER,\n x: parseInt(pointerEvent.clientX, 10),\n y: parseInt(pointerEvent.clientY, 10)\n };\n } // Request to transition to the previous image\n },\n {\n key: \"getTransform\",\n value: function getTransform(_ref13) {\n var _ref13$x = _ref13.x, x = _ref13$x === void 0 ? 0 : _ref13$x, _ref13$y = _ref13.y, y = _ref13$y === void 0 ? 0 : _ref13$y, _ref13$zoom = _ref13.zoom, zoom = _ref13$zoom === void 0 ? 1 : _ref13$zoom, width = _ref13.width, targetWidth = _ref13.targetWidth;\n var nextX = x;\n var windowWidth = getWindowWidth();\n if (width > windowWidth) nextX += (windowWidth - width) / 2;\n var scaleFactor = zoom * (targetWidth / width);\n return {\n transform: \"translate3d(\".concat(nextX, \"px,\").concat(y, \"px,0) scale3d(\").concat(scaleFactor, \",\").concat(scaleFactor, \",1)\")\n };\n }\n }\n ]);\n return ReactImageLightbox;\n}((0, _react.Component));\nReactImageLightbox.propTypes = {\n //-----------------------------\n // Image sources\n //-----------------------------\n // Main display image url\n mainSrc: (0, _propTypesDefault.default).string.isRequired,\n // eslint-disable-line react/no-unused-prop-types\n // Previous display image url (displayed to the left)\n // If left undefined, movePrev actions will not be performed, and the button not displayed\n prevSrc: (0, _propTypesDefault.default).string,\n // Next display image url (displayed to the right)\n // If left undefined, moveNext actions will not be performed, and the button not displayed\n nextSrc: (0, _propTypesDefault.default).string,\n //-----------------------------\n // Image thumbnail sources\n //-----------------------------\n // Thumbnail image url corresponding to props.mainSrc\n mainSrcThumbnail: (0, _propTypesDefault.default).string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.prevSrc\n prevSrcThumbnail: (0, _propTypesDefault.default).string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.nextSrc\n nextSrcThumbnail: (0, _propTypesDefault.default).string,\n // eslint-disable-line react/no-unused-prop-types\n //-----------------------------\n // Event Handlers\n //-----------------------------\n // Close window event\n // Should change the parent state such that the lightbox is not rendered\n onCloseRequest: (0, _propTypesDefault.default).func.isRequired,\n // Move to previous image event\n // Should change the parent state such that props.prevSrc becomes props.mainSrc,\n // props.mainSrc becomes props.nextSrc, etc.\n onMovePrevRequest: (0, _propTypesDefault.default).func,\n // Move to next image event\n // Should change the parent state such that props.nextSrc becomes props.mainSrc,\n // props.mainSrc becomes props.prevSrc, etc.\n onMoveNextRequest: (0, _propTypesDefault.default).func,\n // Called when an image fails to load\n // (imageSrc: string, srcType: string, errorEvent: object): void\n onImageLoadError: (0, _propTypesDefault.default).func,\n // Called when image successfully loads\n onImageLoad: (0, _propTypesDefault.default).func,\n // Open window event\n onAfterOpen: (0, _propTypesDefault.default).func,\n //-----------------------------\n // Download discouragement settings\n //-----------------------------\n // Enable download discouragement (prevents [right-click -> Save Image As...])\n discourageDownloads: (0, _propTypesDefault.default).bool,\n //-----------------------------\n // Animation settings\n //-----------------------------\n // Disable all animation\n animationDisabled: (0, _propTypesDefault.default).bool,\n // Disable animation on actions performed with keyboard shortcuts\n animationOnKeyInput: (0, _propTypesDefault.default).bool,\n // Animation duration (ms)\n animationDuration: (0, _propTypesDefault.default).number,\n //-----------------------------\n // Keyboard shortcut settings\n //-----------------------------\n // Required interval of time (ms) between key actions\n // (prevents excessively fast navigation of images)\n keyRepeatLimit: (0, _propTypesDefault.default).number,\n // Amount of time (ms) restored after each keyup\n // (makes rapid key presses slightly faster than holding down the key to navigate images)\n keyRepeatKeyupBonus: (0, _propTypesDefault.default).number,\n //-----------------------------\n // Image info\n //-----------------------------\n // Image title\n imageTitle: (0, _propTypesDefault.default).node,\n // Image caption\n imageCaption: (0, _propTypesDefault.default).node,\n // Optional crossOrigin attribute\n imageCrossOrigin: (0, _propTypesDefault.default).string,\n //-----------------------------\n // Lightbox style\n //-----------------------------\n // Set z-index style, etc., for the parent react-modal (format: https://github.com/reactjs/react-modal#styles )\n reactModalStyle: (0, _propTypesDefault.default).shape({}),\n // Padding (px) between the edge of the window and the lightbox\n imagePadding: (0, _propTypesDefault.default).number,\n wrapperClassName: (0, _propTypesDefault.default).string,\n //-----------------------------\n // Other\n //-----------------------------\n // Array of custom toolbar buttons\n toolbarButtons: (0, _propTypesDefault.default).arrayOf((0, _propTypesDefault.default).node),\n // When true, clicks outside of the image close the lightbox\n clickOutsideToClose: (0, _propTypesDefault.default).bool,\n // Set to false to disable zoom functionality and hide zoom buttons\n enableZoom: (0, _propTypesDefault.default).bool,\n // Override props set on react-modal (https://github.com/reactjs/react-modal)\n reactModalProps: (0, _propTypesDefault.default).shape({}),\n // Aria-labels\n nextLabel: (0, _propTypesDefault.default).string,\n prevLabel: (0, _propTypesDefault.default).string,\n zoomInLabel: (0, _propTypesDefault.default).string,\n zoomOutLabel: (0, _propTypesDefault.default).string,\n closeLabel: (0, _propTypesDefault.default).string,\n imageLoadErrorMessage: (0, _propTypesDefault.default).node,\n // custom loader\n loader: (0, _propTypesDefault.default).node\n};\nReactImageLightbox.defaultProps = {\n imageTitle: null,\n imageCaption: null,\n toolbarButtons: null,\n reactModalProps: {},\n animationDisabled: false,\n animationDuration: 300,\n animationOnKeyInput: false,\n clickOutsideToClose: true,\n closeLabel: \"Close lightbox\",\n discourageDownloads: false,\n enableZoom: true,\n imagePadding: 10,\n imageCrossOrigin: null,\n keyRepeatKeyupBonus: 40,\n keyRepeatLimit: 180,\n mainSrcThumbnail: null,\n nextLabel: \"Next image\",\n nextSrc: null,\n nextSrcThumbnail: null,\n onAfterOpen: function onAfterOpen() {},\n onImageLoadError: function onImageLoadError() {},\n onImageLoad: function onImageLoad() {},\n onMoveNextRequest: function onMoveNextRequest() {},\n onMovePrevRequest: function onMovePrevRequest() {},\n prevLabel: \"Previous image\",\n prevSrc: null,\n prevSrcThumbnail: null,\n reactModalStyle: {},\n wrapperClassName: \"\",\n zoomInLabel: \"Zoom in\",\n zoomOutLabel: \"Zoom out\",\n imageLoadErrorMessage: \"This image failed to load\",\n loader: undefined\n};\nexports.default = ReactImageLightbox;\n\n},{\"react\":\"6uln9\",\"prop-types\":\"6FKs7\",\"react-modal\":\"7rd4n\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"7rd4n\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _Modal = require(\"5427ad131f8be9b0\");\nvar _Modal2 = _interopRequireDefault(_Modal);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nexports.default = _Modal2.default;\nmodule.exports = exports[\"default\"];\n\n},{\"5427ad131f8be9b0\":\"5jH0C\"}],\"5jH0C\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bodyOpenClassName = exports.portalClassName = undefined;\nvar _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n};\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _react = require(\"6eca1d4bfc5c9cb0\");\nvar _react2 = _interopRequireDefault(_react);\nvar _reactDom = require(\"fc17a91e40ff37a4\");\nvar _reactDom2 = _interopRequireDefault(_reactDom);\nvar _propTypes = require(\"566e9e60ed193f8\");\nvar _propTypes2 = _interopRequireDefault(_propTypes);\nvar _ModalPortal = require(\"8dd0736dd8332f61\");\nvar _ModalPortal2 = _interopRequireDefault(_ModalPortal);\nvar _ariaAppHider = require(\"e57895726f9fdf6e\");\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\nvar _safeHTMLElement = require(\"19600b78a2d116fd\");\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\nvar _reactLifecyclesCompat = require(\"a475a5528db54e9d\");\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) return obj;\n else {\n var newObj = {};\n if (obj != null) {\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n newObj.default = obj;\n return newObj;\n }\n}\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\nvar portalClassName = exports.portalClassName = \"ReactModalPortal\";\nvar bodyOpenClassName = exports.bodyOpenClassName = \"ReactModal__Body--open\";\nvar isReact16 = _safeHTMLElement.canUseDOM && _reactDom2.default.createPortal !== undefined;\nvar createHTMLElement = function createHTMLElement(name) {\n return document.createElement(name);\n};\nvar getCreatePortal = function getCreatePortal() {\n return isReact16 ? _reactDom2.default.createPortal : _reactDom2.default.unstable_renderSubtreeIntoContainer;\n};\nfunction getParentElement(parentSelector) {\n return parentSelector();\n}\nvar Modal = function(_Component) {\n _inherits(Modal, _Component);\n function Modal() {\n var _ref;\n var _temp, _this, _ret;\n _classCallCheck(this, Modal);\n for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Modal.__proto__ || Object.getPrototypeOf(Modal)).call.apply(_ref, [\n this\n ].concat(args))), _this), _this.removePortal = function() {\n !isReact16 && _reactDom2.default.unmountComponentAtNode(_this.node);\n var parent = getParentElement(_this.props.parentSelector);\n if (parent && parent.contains(_this.node)) parent.removeChild(_this.node);\n else // eslint-disable-next-line no-console\n console.warn('React-Modal: \"parentSelector\" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');\n }, _this.portalRef = function(ref) {\n _this.portal = ref;\n }, _this.renderPortal = function(props) {\n var createPortal = getCreatePortal();\n var portal = createPortal(_this, _react2.default.createElement(_ModalPortal2.default, _extends({\n defaultStyles: Modal.defaultStyles\n }, props)), _this.node);\n _this.portalRef(portal);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n _createClass(Modal, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!_safeHTMLElement.canUseDOM) return;\n if (!isReact16) this.node = createHTMLElement(\"div\");\n this.node.className = this.props.portalClassName;\n var parent = getParentElement(this.props.parentSelector);\n parent.appendChild(this.node);\n !isReact16 && this.renderPortal(this.props);\n }\n },\n {\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate(prevProps) {\n var prevParent = getParentElement(prevProps.parentSelector);\n var nextParent = getParentElement(this.props.parentSelector);\n return {\n prevParent: prevParent,\n nextParent: nextParent\n };\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, _, snapshot) {\n if (!_safeHTMLElement.canUseDOM) return;\n var _props = this.props, isOpen = _props.isOpen, portalClassName = _props.portalClassName;\n if (prevProps.portalClassName !== portalClassName) this.node.className = portalClassName;\n var prevParent = snapshot.prevParent, nextParent = snapshot.nextParent;\n if (nextParent !== prevParent) {\n prevParent.removeChild(this.node);\n nextParent.appendChild(this.node);\n }\n // Stop unnecessary renders if modal is remaining closed\n if (!prevProps.isOpen && !isOpen) return;\n !isReact16 && this.renderPortal(this.props);\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (!_safeHTMLElement.canUseDOM || !this.node || !this.portal) return;\n var state = this.portal.state;\n var now = Date.now();\n var closesAt = state.isOpen && this.props.closeTimeoutMS && (state.closesAt || now + this.props.closeTimeoutMS);\n if (closesAt) {\n if (!state.beforeClose) this.portal.closeWithTimeout();\n setTimeout(this.removePortal, closesAt - now);\n } else this.removePortal();\n }\n },\n {\n key: \"render\",\n value: function render() {\n if (!_safeHTMLElement.canUseDOM || !isReact16) return null;\n if (!this.node && isReact16) this.node = createHTMLElement(\"div\");\n var createPortal = getCreatePortal();\n return createPortal(_react2.default.createElement(_ModalPortal2.default, _extends({\n ref: this.portalRef,\n defaultStyles: Modal.defaultStyles\n }, this.props)), this.node);\n }\n }\n ], [\n {\n key: \"setAppElement\",\n value: function setAppElement(element) {\n ariaAppHider.setElement(element);\n }\n }\n ]);\n return Modal;\n}(_react.Component);\nModal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n portalClassName: _propTypes2.default.string,\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n className: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })\n ]),\n overlayClassName: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })\n ]),\n appElement: _propTypes2.default.oneOfType([\n _propTypes2.default.instanceOf(_safeHTMLElement2.default),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),\n _propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))\n ]),\n onAfterOpen: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n ariaHideApp: _propTypes2.default.bool,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n preventScroll: _propTypes2.default.bool,\n parentSelector: _propTypes2.default.func,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n overlayElement: _propTypes2.default.func,\n contentElement: _propTypes2.default.func\n};\nModal.defaultProps = {\n isOpen: false,\n portalClassName: portalClassName,\n bodyOpenClassName: bodyOpenClassName,\n role: \"dialog\",\n ariaHideApp: true,\n closeTimeoutMS: 0,\n shouldFocusAfterRender: true,\n shouldCloseOnEsc: true,\n shouldCloseOnOverlayClick: true,\n shouldReturnFocusAfterClose: true,\n preventScroll: false,\n parentSelector: function parentSelector() {\n return document.body;\n },\n overlayElement: function overlayElement(props, contentEl) {\n return _react2.default.createElement(\"div\", props, contentEl);\n },\n contentElement: function contentElement(props, children) {\n return _react2.default.createElement(\"div\", props, children);\n }\n};\nModal.defaultStyles = {\n overlay: {\n position: \"fixed\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.75)\"\n },\n content: {\n position: \"absolute\",\n top: \"40px\",\n left: \"40px\",\n right: \"40px\",\n bottom: \"40px\",\n border: \"1px solid #ccc\",\n background: \"#fff\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n borderRadius: \"4px\",\n outline: \"none\",\n padding: \"20px\"\n }\n};\n(0, _reactLifecyclesCompat.polyfill)(Modal);\nexports.default = Modal;\n\n},{\"6eca1d4bfc5c9cb0\":\"6uln9\",\"fc17a91e40ff37a4\":\"b8T3j\",\"566e9e60ed193f8\":\"6FKs7\",\"8dd0736dd8332f61\":\"hlTa5\",\"e57895726f9fdf6e\":\"4un8b\",\"19600b78a2d116fd\":\"2U4pt\",\"a475a5528db54e9d\":\"jRjXN\"}],\"hlTa5\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _extends = Object.assign || function(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i];\n for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];\n }\n return target;\n};\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\nvar _createClass = function() {\n function defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _react = require(\"63dd19977a36a731\");\nvar _propTypes = require(\"db21251b0abba1f9\");\nvar _propTypes2 = _interopRequireDefault(_propTypes);\nvar _focusManager = require(\"72a1f3baf76e104f\");\nvar focusManager = _interopRequireWildcard(_focusManager);\nvar _scopeTab = require(\"3666f8b21d4423aa\");\nvar _scopeTab2 = _interopRequireDefault(_scopeTab);\nvar _ariaAppHider = require(\"a3f43504eb483cba\");\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\nvar _classList = require(\"c4947065f3b38ef3\");\nvar classList = _interopRequireWildcard(_classList);\nvar _safeHTMLElement = require(\"6a3b0e0de2312b17\");\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\nvar _portalOpenInstances = require(\"2f9954b1e0e9fb73\");\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\nrequire(\"78a4dea6acfbd6df\");\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) return obj;\n else {\n var newObj = {};\n if (obj != null) {\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n newObj.default = obj;\n return newObj;\n }\n}\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n// so that our CSS is statically analyzable\nvar CLASS_NAMES = {\n overlay: \"ReactModal__Overlay\",\n content: \"ReactModal__Content\"\n};\n/**\n * We need to support the deprecated `KeyboardEvent.keyCode` in addition to\n * `KeyboardEvent.code` for apps that still support IE11. Can be removed when\n * `react-modal` only supports React >18 (which dropped IE support).\n */ var isTabKey = function isTabKey(event) {\n return event.code === \"Tab\" || event.keyCode === 9;\n};\nvar isEscKey = function isEscKey(event) {\n return event.code === \"Escape\" || event.keyCode === 27;\n};\nvar ariaHiddenInstances = 0;\nvar ModalPortal = function(_Component) {\n _inherits(ModalPortal, _Component);\n function ModalPortal(props) {\n _classCallCheck(this, ModalPortal);\n var _this = _possibleConstructorReturn(this, (ModalPortal.__proto__ || Object.getPrototypeOf(ModalPortal)).call(this, props));\n _this.setOverlayRef = function(overlay) {\n _this.overlay = overlay;\n _this.props.overlayRef && _this.props.overlayRef(overlay);\n };\n _this.setContentRef = function(content) {\n _this.content = content;\n _this.props.contentRef && _this.props.contentRef(content);\n };\n _this.afterClose = function() {\n var _this$props = _this.props, appElement = _this$props.appElement, ariaHideApp = _this$props.ariaHideApp, htmlOpenClassName = _this$props.htmlOpenClassName, bodyOpenClassName = _this$props.bodyOpenClassName, parentSelector = _this$props.parentSelector;\n var parentDocument = parentSelector && parentSelector().ownerDocument || document;\n // Remove classes.\n bodyOpenClassName && classList.remove(parentDocument.body, bodyOpenClassName);\n htmlOpenClassName && classList.remove(parentDocument.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n // Reset aria-hidden attribute if all modals have been removed\n if (ariaHideApp && ariaHiddenInstances > 0) {\n ariaHiddenInstances -= 1;\n if (ariaHiddenInstances === 0) ariaAppHider.show(appElement);\n }\n if (_this.props.shouldFocusAfterRender) {\n if (_this.props.shouldReturnFocusAfterClose) {\n focusManager.returnFocus(_this.props.preventScroll);\n focusManager.teardownScopedFocus();\n } else focusManager.popWithoutFocus();\n }\n if (_this.props.onAfterClose) _this.props.onAfterClose();\n _portalOpenInstances2.default.deregister(_this);\n };\n _this.open = function() {\n _this.beforeOpen();\n if (_this.state.afterOpen && _this.state.beforeClose) {\n clearTimeout(_this.closeTimer);\n _this.setState({\n beforeClose: false\n });\n } else {\n if (_this.props.shouldFocusAfterRender) {\n focusManager.setupScopedFocus(_this.node);\n focusManager.markForFocusLater();\n }\n _this.setState({\n isOpen: true\n }, function() {\n _this.openAnimationFrame = requestAnimationFrame(function() {\n _this.setState({\n afterOpen: true\n });\n if (_this.props.isOpen && _this.props.onAfterOpen) _this.props.onAfterOpen({\n overlayEl: _this.overlay,\n contentEl: _this.content\n });\n });\n });\n }\n };\n _this.close = function() {\n if (_this.props.closeTimeoutMS > 0) _this.closeWithTimeout();\n else _this.closeWithoutTimeout();\n };\n _this.focusContent = function() {\n return _this.content && !_this.contentHasFocus() && _this.content.focus({\n preventScroll: true\n });\n };\n _this.closeWithTimeout = function() {\n var closesAt = Date.now() + _this.props.closeTimeoutMS;\n _this.setState({\n beforeClose: true,\n closesAt: closesAt\n }, function() {\n _this.closeTimer = setTimeout(_this.closeWithoutTimeout, _this.state.closesAt - Date.now());\n });\n };\n _this.closeWithoutTimeout = function() {\n _this.setState({\n beforeClose: false,\n isOpen: false,\n afterOpen: false,\n closesAt: null\n }, _this.afterClose);\n };\n _this.handleKeyDown = function(event) {\n if (isTabKey(event)) (0, _scopeTab2.default)(_this.content, event);\n if (_this.props.shouldCloseOnEsc && isEscKey(event)) {\n event.stopPropagation();\n _this.requestClose(event);\n }\n };\n _this.handleOverlayOnClick = function(event) {\n if (_this.shouldClose === null) _this.shouldClose = true;\n if (_this.shouldClose && _this.props.shouldCloseOnOverlayClick) {\n if (_this.ownerHandlesClose()) _this.requestClose(event);\n else _this.focusContent();\n }\n _this.shouldClose = null;\n };\n _this.handleContentOnMouseUp = function() {\n _this.shouldClose = false;\n };\n _this.handleOverlayOnMouseDown = function(event) {\n if (!_this.props.shouldCloseOnOverlayClick && event.target == _this.overlay) event.preventDefault();\n };\n _this.handleContentOnClick = function() {\n _this.shouldClose = false;\n };\n _this.handleContentOnMouseDown = function() {\n _this.shouldClose = false;\n };\n _this.requestClose = function(event) {\n return _this.ownerHandlesClose() && _this.props.onRequestClose(event);\n };\n _this.ownerHandlesClose = function() {\n return _this.props.onRequestClose;\n };\n _this.shouldBeClosed = function() {\n return !_this.state.isOpen && !_this.state.beforeClose;\n };\n _this.contentHasFocus = function() {\n return document.activeElement === _this.content || _this.content.contains(document.activeElement);\n };\n _this.buildClassName = function(which, additional) {\n var classNames = (typeof additional === \"undefined\" ? \"undefined\" : _typeof(additional)) === \"object\" ? additional : {\n base: CLASS_NAMES[which],\n afterOpen: CLASS_NAMES[which] + \"--after-open\",\n beforeClose: CLASS_NAMES[which] + \"--before-close\"\n };\n var className = classNames.base;\n if (_this.state.afterOpen) className = className + \" \" + classNames.afterOpen;\n if (_this.state.beforeClose) className = className + \" \" + classNames.beforeClose;\n return typeof additional === \"string\" && additional ? className + \" \" + additional : className;\n };\n _this.attributesFromObject = function(prefix, items) {\n return Object.keys(items).reduce(function(acc, name) {\n acc[prefix + \"-\" + name] = items[name];\n return acc;\n }, {});\n };\n _this.state = {\n afterOpen: false,\n beforeClose: false\n };\n _this.shouldClose = null;\n _this.moveFromContentToOverlay = null;\n return _this;\n }\n _createClass(ModalPortal, [\n {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.isOpen) this.open();\n }\n },\n {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.isOpen && !prevProps.isOpen) this.open();\n else if (!this.props.isOpen && prevProps.isOpen) this.close();\n // Focus only needs to be set once when the modal is being opened\n if (this.props.shouldFocusAfterRender && this.state.isOpen && !prevState.isOpen) this.focusContent();\n }\n },\n {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.state.isOpen) this.afterClose();\n clearTimeout(this.closeTimer);\n cancelAnimationFrame(this.openAnimationFrame);\n }\n },\n {\n key: \"beforeOpen\",\n value: function beforeOpen() {\n var _props = this.props, appElement = _props.appElement, ariaHideApp = _props.ariaHideApp, htmlOpenClassName = _props.htmlOpenClassName, bodyOpenClassName = _props.bodyOpenClassName, parentSelector = _props.parentSelector;\n var parentDocument = parentSelector && parentSelector().ownerDocument || document;\n // Add classes.\n bodyOpenClassName && classList.add(parentDocument.body, bodyOpenClassName);\n htmlOpenClassName && classList.add(parentDocument.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n if (ariaHideApp) {\n ariaHiddenInstances += 1;\n ariaAppHider.hide(appElement);\n }\n _portalOpenInstances2.default.register(this);\n }\n },\n {\n key: \"render\",\n value: function render() {\n var _props2 = this.props, id = _props2.id, className = _props2.className, overlayClassName = _props2.overlayClassName, defaultStyles = _props2.defaultStyles, children = _props2.children;\n var contentStyles = className ? {} : defaultStyles.content;\n var overlayStyles = overlayClassName ? {} : defaultStyles.overlay;\n if (this.shouldBeClosed()) return null;\n var overlayProps = {\n ref: this.setOverlayRef,\n className: this.buildClassName(\"overlay\", overlayClassName),\n style: _extends({}, overlayStyles, this.props.style.overlay),\n onClick: this.handleOverlayOnClick,\n onMouseDown: this.handleOverlayOnMouseDown\n };\n var contentProps = _extends({\n id: id,\n ref: this.setContentRef,\n style: _extends({}, contentStyles, this.props.style.content),\n className: this.buildClassName(\"content\", className),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentOnMouseDown,\n onMouseUp: this.handleContentOnMouseUp,\n onClick: this.handleContentOnClick,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n }, this.attributesFromObject(\"aria\", _extends({\n modal: true\n }, this.props.aria)), this.attributesFromObject(\"data\", this.props.data || {}), {\n \"data-testid\": this.props.testId\n });\n var contentElement = this.props.contentElement(contentProps, children);\n return this.props.overlayElement(overlayProps, contentElement);\n }\n }\n ]);\n return ModalPortal;\n}(_react.Component);\nModalPortal.defaultProps = {\n style: {\n overlay: {},\n content: {}\n },\n defaultStyles: {}\n};\nModalPortal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n defaultStyles: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n className: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.object\n ]),\n overlayClassName: _propTypes2.default.oneOfType([\n _propTypes2.default.string,\n _propTypes2.default.object\n ]),\n parentSelector: _propTypes2.default.func,\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n ariaHideApp: _propTypes2.default.bool,\n appElement: _propTypes2.default.oneOfType([\n _propTypes2.default.instanceOf(_safeHTMLElement2.default),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),\n _propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),\n _propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))\n ]),\n onAfterOpen: _propTypes2.default.func,\n onAfterClose: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n preventScroll: _propTypes2.default.bool,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n children: _propTypes2.default.node,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n overlayElement: _propTypes2.default.func,\n contentElement: _propTypes2.default.func,\n testId: _propTypes2.default.string\n};\nexports.default = ModalPortal;\nmodule.exports = exports[\"default\"];\n\n},{\"63dd19977a36a731\":\"6uln9\",\"db21251b0abba1f9\":\"6FKs7\",\"72a1f3baf76e104f\":\"9vnEU\",\"3666f8b21d4423aa\":\"8iBrD\",\"a3f43504eb483cba\":\"4un8b\",\"c4947065f3b38ef3\":\"jJxBv\",\"6a3b0e0de2312b17\":\"2U4pt\",\"2f9954b1e0e9fb73\":\"aHNVt\",\"78a4dea6acfbd6df\":\"i8C4X\"}],\"9vnEU\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resetState = resetState;\nexports.log = log;\nexports.handleBlur = handleBlur;\nexports.handleFocus = handleFocus;\nexports.markForFocusLater = markForFocusLater;\nexports.returnFocus = returnFocus;\nexports.popWithoutFocus = popWithoutFocus;\nexports.setupScopedFocus = setupScopedFocus;\nexports.teardownScopedFocus = teardownScopedFocus;\nvar _tabbable = require(\"b839d05d7bb6834d\");\nvar _tabbable2 = _interopRequireDefault(_tabbable);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nvar focusLaterElements = [];\nvar modalElement = null;\nvar needToFocus = false;\n/* eslint-disable no-console */ /* istanbul ignore next */ function resetState() {\n focusLaterElements = [];\n}\n/* istanbul ignore next */ function log() {}\n/* eslint-enable no-console */ function handleBlur() {\n needToFocus = true;\n}\nfunction handleFocus() {\n if (needToFocus) {\n needToFocus = false;\n if (!modalElement) return;\n // need to see how jQuery shims document.on('focusin') so we don't need the\n // setTimeout, firefox doesn't support focusin, if it did, we could focus\n // the element outside of a setTimeout. Side-effect of this implementation\n // is that the document.body gets focus, and then we focus our element right\n // after, seems fine.\n setTimeout(function() {\n if (modalElement.contains(document.activeElement)) return;\n var el = (0, _tabbable2.default)(modalElement)[0] || modalElement;\n el.focus();\n }, 0);\n }\n}\nfunction markForFocusLater() {\n focusLaterElements.push(document.activeElement);\n}\n/* eslint-disable no-console */ function returnFocus() {\n var preventScroll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var toFocus = null;\n try {\n if (focusLaterElements.length !== 0) {\n toFocus = focusLaterElements.pop();\n toFocus.focus({\n preventScroll: preventScroll\n });\n }\n return;\n } catch (e) {\n console.warn([\n \"You tried to return focus to\",\n toFocus,\n \"but it is not in the DOM anymore\"\n ].join(\" \"));\n }\n}\n/* eslint-enable no-console */ function popWithoutFocus() {\n focusLaterElements.length > 0 && focusLaterElements.pop();\n}\nfunction setupScopedFocus(element) {\n modalElement = element;\n if (window.addEventListener) {\n window.addEventListener(\"blur\", handleBlur, false);\n document.addEventListener(\"focus\", handleFocus, true);\n } else {\n window.attachEvent(\"onBlur\", handleBlur);\n document.attachEvent(\"onFocus\", handleFocus);\n }\n}\nfunction teardownScopedFocus() {\n modalElement = null;\n if (window.addEventListener) {\n window.removeEventListener(\"blur\", handleBlur);\n document.removeEventListener(\"focus\", handleFocus);\n } else {\n window.detachEvent(\"onBlur\", handleBlur);\n document.detachEvent(\"onFocus\", handleFocus);\n }\n}\n\n},{\"b839d05d7bb6834d\":\"UMEFP\"}],\"UMEFP\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = findTabbableDescendants;\n/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */ var DISPLAY_NONE = \"none\";\nvar DISPLAY_CONTENTS = \"contents\";\nvar tabbableNode = /input|select|textarea|button|object|iframe/;\nfunction isNotOverflowing(element, style) {\n return style.getPropertyValue(\"overflow\") !== \"visible\" || // if 'overflow: visible' set, check if there is actually any overflow\n element.scrollWidth <= 0 && element.scrollHeight <= 0;\n}\nfunction hidesContents(element) {\n var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;\n // If the node is empty, this is good enough\n if (zeroSize && !element.innerHTML) return true;\n try {\n // Otherwise we need to check some styles\n var style = window.getComputedStyle(element);\n var displayValue = style.getPropertyValue(\"display\");\n return zeroSize ? displayValue !== DISPLAY_CONTENTS && isNotOverflowing(element, style) : displayValue === DISPLAY_NONE;\n } catch (exception) {\n // eslint-disable-next-line no-console\n console.warn(\"Failed to inspect element style\");\n return false;\n }\n}\nfunction visible(element) {\n var parentElement = element;\n var rootNode = element.getRootNode && element.getRootNode();\n while(parentElement){\n if (parentElement === document.body) break;\n // if we are not hidden yet, skip to checking outside the Web Component\n if (rootNode && parentElement === rootNode) parentElement = rootNode.host.parentNode;\n if (hidesContents(parentElement)) return false;\n parentElement = parentElement.parentNode;\n }\n return true;\n}\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === \"a\" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);\n return res && visible(element);\n}\nfunction tabbable(element) {\n var tabIndex = element.getAttribute(\"tabindex\");\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\nfunction findTabbableDescendants(element) {\n var descendants = [].slice.call(element.querySelectorAll(\"*\"), 0).reduce(function(finished, el) {\n return finished.concat(!el.shadowRoot ? [\n el\n ] : findTabbableDescendants(el.shadowRoot));\n }, []);\n return descendants.filter(tabbable);\n}\nmodule.exports = exports[\"default\"];\n\n},{}],\"8iBrD\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = scopeTab;\nvar _tabbable = require(\"353bf1d570e2f936\");\nvar _tabbable2 = _interopRequireDefault(_tabbable);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction getActiveElement() {\n var el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;\n return el.activeElement.shadowRoot ? getActiveElement(el.activeElement.shadowRoot) : el.activeElement;\n}\nfunction scopeTab(node, event) {\n var tabbable = (0, _tabbable2.default)(node);\n if (!tabbable.length) {\n // Do nothing, since there are no elements that can receive focus.\n event.preventDefault();\n return;\n }\n var target = void 0;\n var shiftKey = event.shiftKey;\n var head = tabbable[0];\n var tail = tabbable[tabbable.length - 1];\n var activeElement = getActiveElement();\n // proceed with default browser behavior on tab.\n // Focus on last element on shift + tab.\n if (node === activeElement) {\n if (!shiftKey) return;\n target = tail;\n }\n if (tail === activeElement && !shiftKey) target = head;\n if (head === activeElement && shiftKey) target = tail;\n if (target) {\n event.preventDefault();\n target.focus();\n return;\n }\n // Safari radio issue.\n //\n // Safari does not move the focus to the radio button,\n // so we need to force it to really walk through all elements.\n //\n // This is very error prone, since we are trying to guess\n // if it is a safari browser from the first occurence between\n // chrome or safari.\n //\n // The chrome user agent contains the first ocurrence\n // as the 'chrome/version' and later the 'safari/version'.\n var checkSafari = /(\\bChrome\\b|\\bSafari\\b)\\//.exec(navigator.userAgent);\n var isSafariDesktop = checkSafari != null && checkSafari[1] != \"Chrome\" && /\\biPod\\b|\\biPad\\b/g.exec(navigator.userAgent) == null;\n // If we are not in safari desktop, let the browser control\n // the focus\n if (!isSafariDesktop) return;\n var x = tabbable.indexOf(activeElement);\n if (x > -1) x += shiftKey ? -1 : 1;\n target = tabbable[x];\n // If the tabbable element does not exist,\n // focus head/tail based on shiftKey\n if (typeof target === \"undefined\") {\n event.preventDefault();\n target = shiftKey ? tail : head;\n target.focus();\n return;\n }\n event.preventDefault();\n target.focus();\n}\nmodule.exports = exports[\"default\"];\n\n},{\"353bf1d570e2f936\":\"UMEFP\"}],\"4un8b\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resetState = resetState;\nexports.log = log;\nexports.assertNodeList = assertNodeList;\nexports.setElement = setElement;\nexports.validateElement = validateElement;\nexports.hide = hide;\nexports.show = show;\nexports.documentNotReadyOrSSRTesting = documentNotReadyOrSSRTesting;\nvar _warning = require(\"d5d50104403db2aa\");\nvar _warning2 = _interopRequireDefault(_warning);\nvar _safeHTMLElement = require(\"6b86617e1899709f\");\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nvar globalElement = null;\n/* eslint-disable no-console */ /* istanbul ignore next */ function resetState() {\n if (globalElement) {\n if (globalElement.removeAttribute) globalElement.removeAttribute(\"aria-hidden\");\n else if (globalElement.length != null) globalElement.forEach(function(element) {\n return element.removeAttribute(\"aria-hidden\");\n });\n else document.querySelectorAll(globalElement).forEach(function(element) {\n return element.removeAttribute(\"aria-hidden\");\n });\n }\n globalElement = null;\n}\n/* istanbul ignore next */ function log() {\n var check;\n}\n/* eslint-enable no-console */ function assertNodeList(nodeList, selector) {\n if (!nodeList || !nodeList.length) throw new Error(\"react-modal: No elements were found for selector \" + selector + \".\");\n}\nfunction setElement(element) {\n var useElement = element;\n if (typeof useElement === \"string\" && _safeHTMLElement.canUseDOM) {\n var el = document.querySelectorAll(useElement);\n assertNodeList(el, useElement);\n useElement = el;\n }\n globalElement = useElement || globalElement;\n return globalElement;\n}\nfunction validateElement(appElement) {\n var el = appElement || globalElement;\n if (el) return Array.isArray(el) || el instanceof HTMLCollection || el instanceof NodeList ? el : [\n el\n ];\n else {\n (0, _warning2.default)(false, [\n \"react-modal: App element is not defined.\",\n \"Please use `Modal.setAppElement(el)` or set `appElement={el}`.\",\n \"This is needed so screen readers don't see main content\",\n \"when modal is opened. It is not recommended, but you can opt-out\",\n \"by setting `ariaHideApp={false}`.\"\n ].join(\" \"));\n return [];\n }\n}\nfunction hide(appElement) {\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n try {\n for(var _iterator = validateElement(appElement)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var el = _step.value;\n el.setAttribute(\"aria-hidden\", \"true\");\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return) _iterator.return();\n } finally{\n if (_didIteratorError) throw _iteratorError;\n }\n }\n}\nfunction show(appElement) {\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n try {\n for(var _iterator2 = validateElement(appElement)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){\n var el = _step2.value;\n el.removeAttribute(\"aria-hidden\");\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) _iterator2.return();\n } finally{\n if (_didIteratorError2) throw _iteratorError2;\n }\n }\n}\nfunction documentNotReadyOrSSRTesting() {\n globalElement = null;\n}\n\n},{\"d5d50104403db2aa\":\"cCKmo\",\"6b86617e1899709f\":\"2U4pt\"}],\"2U4pt\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canUseDOM = exports.SafeNodeList = exports.SafeHTMLCollection = undefined;\nvar _exenv = require(\"1055eb882adb92ac\");\nvar _exenv2 = _interopRequireDefault(_exenv);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nvar EE = _exenv2.default;\nvar SafeHTMLElement = EE.canUseDOM ? window.HTMLElement : {};\nvar SafeHTMLCollection = exports.SafeHTMLCollection = EE.canUseDOM ? window.HTMLCollection : {};\nvar SafeNodeList = exports.SafeNodeList = EE.canUseDOM ? window.NodeList : {};\nvar canUseDOM = exports.canUseDOM = EE.canUseDOM;\nexports.default = SafeHTMLElement;\n\n},{\"1055eb882adb92ac\":\"gGZ8o\"}],\"jJxBv\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resetState = resetState;\nexports.log = log;\nvar htmlClassList = {};\nvar docBodyClassList = {};\n/* eslint-disable no-console */ /* istanbul ignore next */ function removeClass(at, cls) {\n at.classList.remove(cls);\n}\n/* istanbul ignore next */ function resetState() {\n var htmlElement = document.getElementsByTagName(\"html\")[0];\n for(var cls in htmlClassList)removeClass(htmlElement, htmlClassList[cls]);\n var body = document.body;\n for(var _cls in docBodyClassList)removeClass(body, docBodyClassList[_cls]);\n htmlClassList = {};\n docBodyClassList = {};\n}\n/* istanbul ignore next */ function log() {\n var classes, buffer, x, _x;\n}\n/* eslint-enable no-console */ /**\n * Track the number of reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */ var incrementReference = function incrementReference(poll, className) {\n if (!poll[className]) poll[className] = 0;\n poll[className] += 1;\n return className;\n};\n/**\n * Drop the reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */ var decrementReference = function decrementReference(poll, className) {\n if (poll[className]) poll[className] -= 1;\n return className;\n};\n/**\n * Track a class and add to the given class list.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be tracked.\n */ var trackClass = function trackClass(classListRef, poll, classes) {\n classes.forEach(function(className) {\n incrementReference(poll, className);\n classListRef.add(className);\n });\n};\n/**\n * Untrack a class and remove from the given class list if the reference\n * reaches 0.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be untracked.\n */ var untrackClass = function untrackClass(classListRef, poll, classes) {\n classes.forEach(function(className) {\n decrementReference(poll, className);\n poll[className] === 0 && classListRef.remove(className);\n });\n};\n/**\n * Public inferface to add classes to the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */ var add = exports.add = function add(element, classString) {\n return trackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};\n/**\n * Public inferface to remove classes from the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */ var remove = exports.remove = function remove(element, classString) {\n return untrackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};\n\n},{}],\"aHNVt\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log = log;\nexports.resetState = resetState;\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\n// Tracks portals that are open and emits events to subscribers\nvar PortalOpenInstances = function PortalOpenInstances() {\n var _this = this;\n _classCallCheck(this, PortalOpenInstances);\n this.register = function(openInstance) {\n if (_this.openInstances.indexOf(openInstance) !== -1) return;\n _this.openInstances.push(openInstance);\n _this.emit(\"register\");\n };\n this.deregister = function(openInstance) {\n var index = _this.openInstances.indexOf(openInstance);\n if (index === -1) return;\n _this.openInstances.splice(index, 1);\n _this.emit(\"deregister\");\n };\n this.subscribe = function(callback) {\n _this.subscribers.push(callback);\n };\n this.emit = function(eventType) {\n _this.subscribers.forEach(function(subscriber) {\n return subscriber(eventType, // shallow copy to avoid accidental mutation\n _this.openInstances.slice());\n });\n };\n this.openInstances = [];\n this.subscribers = [];\n};\nvar portalOpenInstances = new PortalOpenInstances();\n/* eslint-disable no-console */ /* istanbul ignore next */ function log() {\n console.log(\"portalOpenInstances ----------\");\n console.log(portalOpenInstances.openInstances.length);\n portalOpenInstances.openInstances.forEach(function(p) {\n return console.log(p);\n });\n console.log(\"end portalOpenInstances ----------\");\n}\n/* istanbul ignore next */ function resetState() {\n portalOpenInstances = new PortalOpenInstances();\n}\n/* eslint-enable no-console */ exports.default = portalOpenInstances;\n\n},{}],\"i8C4X\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resetState = resetState;\nexports.log = log;\nvar _portalOpenInstances = require(\"a4c68a1b57d39d\");\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n// Body focus trap see Issue #742\nvar before = void 0, after = void 0, instances = [];\n/* eslint-disable no-console */ /* istanbul ignore next */ function resetState() {\n var _arr = [\n before,\n after\n ];\n for(var _i = 0; _i < _arr.length; _i++){\n var item = _arr[_i];\n if (!item) continue;\n item.parentNode && item.parentNode.removeChild(item);\n }\n before = after = null;\n instances = [];\n}\n/* istanbul ignore next */ function log() {\n console.log(\"bodyTrap ----------\");\n console.log(instances.length);\n var _arr2 = [\n before,\n after\n ];\n for(var _i2 = 0; _i2 < _arr2.length; _i2++){\n var item = _arr2[_i2];\n var check = item || {};\n console.log(check.nodeName, check.className, check.id);\n }\n console.log(\"edn bodyTrap ----------\");\n}\n/* eslint-enable no-console */ function focusContent() {\n if (instances.length === 0) return;\n instances[instances.length - 1].focusContent();\n}\nfunction bodyTrap(eventType, openInstances) {\n if (!before && !after) {\n before = document.createElement(\"div\");\n before.setAttribute(\"data-react-modal-body-trap\", \"\");\n before.style.position = \"absolute\";\n before.style.opacity = \"0\";\n before.setAttribute(\"tabindex\", \"0\");\n before.addEventListener(\"focus\", focusContent);\n after = before.cloneNode();\n after.addEventListener(\"focus\", focusContent);\n }\n instances = openInstances;\n if (instances.length > 0) {\n // Add focus trap\n if (document.body.firstChild !== before) document.body.insertBefore(before, document.body.firstChild);\n if (document.body.lastChild !== after) document.body.appendChild(after);\n } else {\n // Remove focus trap\n if (before.parentElement) before.parentElement.removeChild(before);\n if (after.parentElement) after.parentElement.removeChild(after);\n }\n}\n_portalOpenInstances2.default.subscribe(bodyTrap);\n\n},{\"a4c68a1b57d39d\":\"aHNVt\"}],\"59GbX\":[function() {},{}],\"f0JOr\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nconst selectedAssetForPreviewState = (0, _recoil.atom)({\n key: \"selectedAssetForPreviewState\",\n default: null\n});\nexports.default = selectedAssetForPreviewState;\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"igeYA\":[function(require,module,exports) {\nmodule.exports[\"lightbox\"] = `g4samW_lightbox`;\nmodule.exports[\"ril__image\"] = `g4samW_ril__image`;\n\n},{}],\"hp2Yk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"OpenAssetEditDialogButton\", ()=>(0, _openAssetEditDialogButtonDefault.default));\nparcelHelpers.export(exports, \"EditAssetDialog\", ()=>(0, _editAssetDialogDefault.default));\nparcelHelpers.export(exports, \"editAssetDialogState\", ()=>(0, _editAssetDialogStateDefault.default));\nvar _openAssetEditDialogButton = require(\"./components/OpenAssetEditDialogButton\");\nvar _openAssetEditDialogButtonDefault = parcelHelpers.interopDefault(_openAssetEditDialogButton);\nvar _editAssetDialog = require(\"./components/EditAssetDialog\");\nvar _editAssetDialogDefault = parcelHelpers.interopDefault(_editAssetDialog);\nvar _editAssetDialogState = require(\"./state/editAssetDialogState\");\nvar _editAssetDialogStateDefault = parcelHelpers.interopDefault(_editAssetDialogState);\n\n},{\"./components/OpenAssetEditDialogButton\":\"bdwkt\",\"./components/EditAssetDialog\":\"gna2Q\",\"./state/editAssetDialogState\":\"i2DzX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bdwkt\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _editAssetDialogState = require(\"../state/editAssetDialogState\");\nvar _editAssetDialogStateDefault = parcelHelpers.interopDefault(_editAssetDialogState);\nconst OpenAssetEditDialogButton = ()=>{\n const [dialogVisible, setDialogVisible] = (0, _recoil.useRecoilState)((0, _editAssetDialogStateDefault.default));\n const { translate } = (0, _core.useIntl)();\n return /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: dialogVisible ? \"brand\" : \"lighter\",\n hoverStyle: \"brand\",\n onClick: ()=>setDialogVisible(true)\n }, /*#__PURE__*/ _react.createElement((0, _reactUiComponents.Icon), {\n icon: \"edit\"\n }), translate(\"OpenAssetEditDialogButton.open\", \"Rename asset\"));\n};\nexports.default = /*#__PURE__*/ _react.memo(OpenAssetEditDialogButton);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../state/editAssetDialogState\":\"i2DzX\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i2DzX\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _recoil = require(\"recoil\");\nconst editAssetDialogState = (0, _recoil.atom)({\n key: \"editDialogState\",\n default: false\n});\nexports.default = editAssetDialogState;\n\n},{\"recoil\":\"2QijJ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gna2Q\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _editAssetDialogState = require(\"../state/editAssetDialogState\");\nvar _editAssetDialogStateDefault = parcelHelpers.interopDefault(_editAssetDialogState);\nvar _useEditAsset = require(\"../hooks/useEditAsset\");\nvar _useEditAssetDefault = parcelHelpers.interopDefault(_useEditAsset);\nvar _editAssetDialogModuleCss = require(\"./EditAssetDialog.module.css\");\nvar _editAssetDialogModuleCssDefault = parcelHelpers.interopDefault(_editAssetDialogModuleCss);\nconst EditAssetDialog = ()=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const featureFlags = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const [dialogVisible, setDialogVisible] = (0, _recoil.useRecoilState)((0, _editAssetDialogStateDefault.default));\n const { editAsset , loading } = (0, _useEditAssetDefault.default)();\n const { approvalAttainmentStrategy: { obtainApprovalToEditAsset } } = (0, _core.useMediaUi)();\n const { refetch } = (0, _hooks.useAssetsQuery)();\n const inputRef = (0, _react.useRef)(null);\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const [editOptions, setEditOptions] = (0, _reactDefault.default).useState({\n generateRedirects: false\n });\n const closeDialog = (0, _react.useCallback)(()=>{\n setDialogVisible(false);\n }, [\n setDialogVisible\n ]);\n const handleUpdate = (0, _react.useCallback)(async ()=>{\n const hasApprovalToEditAsset = await obtainApprovalToEditAsset({\n asset: selectedAsset\n });\n if (hasApprovalToEditAsset) try {\n await editAsset({\n asset: selectedAsset,\n filename: inputRef.current.value,\n options: editOptions\n });\n Notify.ok(translate(\"EditAssetDialog.updateFinished\", \"Update finished\"));\n closeDialog();\n refetch();\n } catch (error) {\n Notify.error(translate(\"EditAssetDialog.updateError\", \"Update failed\"), error);\n }\n }, [\n editAsset,\n Notify,\n translate,\n editOptions,\n refetch,\n selectedAsset,\n closeDialog,\n obtainApprovalToEditAsset,\n inputRef\n ]);\n const filenameWithoutExtension = selectedAsset.filename.split(\".\").slice(0, -1).join(\".\");\n const canUpdate = !loading && selectedAsset.filename != inputRef.current?.value;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _components.Dialog), {\n isOpen: dialogVisible,\n title: translate(\"EditAssetDialog.title\", \"Rename asset\"),\n onRequestClose: ()=>setDialogVisible(false),\n actions: [\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"cancel\",\n style: \"neutral\",\n hoverStyle: \"darken\",\n onClick: closeDialog\n }, translate(\"EditAssetDialog.cancel\", \"Cancel\")),\n /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Button), {\n key: \"upload\",\n style: \"success\",\n hoverStyle: \"success\",\n disabled: !canUpdate,\n onClick: handleUpdate\n }, translate(\"EditAssetDialog.update\", \"Update\"))\n ],\n style: \"wide\"\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"section\", {\n className: (0, _editAssetDialogModuleCssDefault.default).editArea\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Label), {\n className: (0, _editAssetDialogModuleCssDefault.default).label\n }, translate(\"EditAssetDialog.filename\", \"Filename\"), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"input\", {\n className: (0, _editAssetDialogModuleCssDefault.default).filenameInput,\n type: \"text\",\n ref: inputRef,\n defaultValue: filenameWithoutExtension,\n onSubmit: handleUpdate,\n disabled: loading\n })), featureFlags.createAssetRedirectsOption && /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.Label), {\n className: (0, _editAssetDialogModuleCssDefault.default).label\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactUiComponents.CheckBox), {\n isChecked: editOptions.generateRedirects,\n onChange: (generateRedirects)=>setEditOptions({\n ...editOptions,\n generateRedirects\n }),\n disabled: loading\n }), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", null, translate(\"uploadDialog.generateRedirects\", \"Generate redirects\"))), loading && /*#__PURE__*/ (0, _reactDefault.default).createElement(\"p\", null, translate(\"EditAssetDialog.updating\", \"Updating…\"))));\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(EditAssetDialog);\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/state\":\"jV1GH\",\"../state/editAssetDialogState\":\"i2DzX\",\"../hooks/useEditAsset\":\"4VF7A\",\"./EditAssetDialog.module.css\":\"gaK9p\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4VF7A\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useEditAsset);\nvar _client = require(\"@apollo/client\");\nvar _editAsset = require(\"../mutations/editAsset\");\nvar _editAssetDefault = parcelHelpers.interopDefault(_editAsset);\nfunction useEditAsset() {\n const [action, { error , data , loading }] = (0, _client.useMutation)((0, _editAssetDefault.default));\n const editAsset = ({ asset , filename , options })=>{\n return action({\n variables: {\n id: asset.id,\n assetSourceId: asset.assetSource.id,\n filename,\n options\n }\n });\n };\n return {\n editAsset,\n editState: data?.editAsset || null,\n error,\n loading\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../mutations/editAsset\":\"lzEyw\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lzEyw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst EDIT_ASSET = (0, _client.gql)`\n mutation EditAsset(\n $id: AssetId!\n $assetSourceId: AssetSourceId!\n $filename: Filename!\n $options: AssetEditOptionsInput!\n ) {\n editAsset(id: $id, assetSourceId: $assetSourceId, filename: $filename, options: $options)\n }\n`;\nexports.default = EDIT_ASSET;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gaK9p\":[function(require,module,exports) {\nmodule.exports[\"editArea\"] = `_7s7pAW_editArea`;\nmodule.exports[\"filenameInput\"] = `_7s7pAW_filenameInput`;\nmodule.exports[\"label\"] = `_7s7pAW_label`;\n\n},{}],\"dnORg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _components1 = require(\"@media-ui/feature-asset-upload/src/components\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nconst SideBarLeft = ()=>{\n const { selectionMode } = (0, _core.useMediaUi)();\n const components = [\n !selectionMode && (0, _components1.UploadButton),\n (0, _featureAssetSources.AssetSourceList),\n (0, _featureAssetCollections.AssetCollectionTree),\n (0, _featureAssetSources.AssetSourceDescription)\n ].filter(Boolean);\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.Column), {\n children: components.map((Component, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(Component, {}, index))\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(SideBarLeft);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/feature-asset-upload/src/components\":\"aZ3Bv\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"l2sSM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"SideBarRight\", ()=>(0, _sideBarRightDefault.default));\nparcelHelpers.export(exports, \"CurrentSelection\", ()=>(0, _currentSelectionDefault.default));\nvar _sideBarRight = require(\"./SideBarRight\");\nvar _sideBarRightDefault = parcelHelpers.interopDefault(_sideBarRight);\nvar _currentSelection = require(\"./CurrentSelection\");\nvar _currentSelectionDefault = parcelHelpers.interopDefault(_currentSelection);\n\n},{\"./SideBarRight\":\"afN2i\",\"./CurrentSelection\":\"bK6dT\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"afN2i\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _components = require(\"@media-ui/core/src/components\");\nvar _inspector = require(\"./Inspector\");\nvar _currentSelection = require(\"./CurrentSelection\");\nvar _currentSelectionDefault = parcelHelpers.interopDefault(_currentSelection);\nconst SideBarRight = ()=>{\n // TODO: Read from component store\n const components = [\n (0, _currentSelectionDefault.default),\n (0, _inspector.AssetInspector),\n (0, _inspector.AssetCollectionInspector),\n (0, _inspector.TagInspector),\n (0, _inspector.IptcMetadataInspector)\n ];\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.Column), {\n children: components.map((Component, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(Component, {}, index))\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(SideBarRight);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@media-ui/core/src/components\":\"5LFSk\",\"./Inspector\":\"eMQJr\",\"./CurrentSelection\":\"bK6dT\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eMQJr\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"AssetCollectionInspector\", ()=>(0, _assetCollectionInspectorDefault.default));\nparcelHelpers.export(exports, \"AssetInspector\", ()=>(0, _assetInspectorDefault.default));\nparcelHelpers.export(exports, \"CollectionSelectBox\", ()=>(0, _collectionSelectBoxDefault.default));\nparcelHelpers.export(exports, \"IptcMetadataInspector\", ()=>(0, _iptcMetadataInspectorDefault.default));\nparcelHelpers.export(exports, \"MetadataView\", ()=>(0, _metadataViewDefault.default));\nparcelHelpers.export(exports, \"ParentCollectionSelectBox\", ()=>(0, _parentCollectionSelectBoxDefault.default));\nparcelHelpers.export(exports, \"PropertyInspector\", ()=>(0, _propertyInspectorDefault.default));\nparcelHelpers.export(exports, \"TagInspector\", ()=>(0, _tagInspectorDefault.default));\nparcelHelpers.export(exports, \"TagSelectBox\", ()=>(0, _tagSelectBoxDefault.default));\nparcelHelpers.export(exports, \"TagSelectBoxAsset\", ()=>(0, _tagSelectBoxAssetDefault.default));\nparcelHelpers.export(exports, \"TagSelectBoxAssetCollection\", ()=>(0, _tagSelectBoxAssetCollectionDefault.default));\nvar _assetCollectionInspector = require(\"./AssetCollectionInspector\");\nvar _assetCollectionInspectorDefault = parcelHelpers.interopDefault(_assetCollectionInspector);\nvar _assetInspector = require(\"./AssetInspector\");\nvar _assetInspectorDefault = parcelHelpers.interopDefault(_assetInspector);\nvar _collectionSelectBox = require(\"./CollectionSelectBox\");\nvar _collectionSelectBoxDefault = parcelHelpers.interopDefault(_collectionSelectBox);\nvar _iptcMetadataInspector = require(\"./IptcMetadataInspector\");\nvar _iptcMetadataInspectorDefault = parcelHelpers.interopDefault(_iptcMetadataInspector);\nvar _metadataView = require(\"./MetadataView\");\nvar _metadataViewDefault = parcelHelpers.interopDefault(_metadataView);\nvar _parentCollectionSelectBox = require(\"./ParentCollectionSelectBox\");\nvar _parentCollectionSelectBoxDefault = parcelHelpers.interopDefault(_parentCollectionSelectBox);\nvar _propertyInspector = require(\"./PropertyInspector\");\nvar _propertyInspectorDefault = parcelHelpers.interopDefault(_propertyInspector);\nvar _tagInspector = require(\"./TagInspector\");\nvar _tagInspectorDefault = parcelHelpers.interopDefault(_tagInspector);\nvar _tagSelectBox = require(\"./TagSelectBox\");\nvar _tagSelectBoxDefault = parcelHelpers.interopDefault(_tagSelectBox);\nvar _tagSelectBoxAsset = require(\"./TagSelectBoxAsset\");\nvar _tagSelectBoxAssetDefault = parcelHelpers.interopDefault(_tagSelectBoxAsset);\nvar _tagSelectBoxAssetCollection = require(\"./TagSelectBoxAssetCollection\");\nvar _tagSelectBoxAssetCollectionDefault = parcelHelpers.interopDefault(_tagSelectBoxAssetCollection);\n\n},{\"./AssetCollectionInspector\":\"8en7h\",\"./AssetInspector\":\"5myuN\",\"./CollectionSelectBox\":\"dODCE\",\"./IptcMetadataInspector\":\"cVRYy\",\"./MetadataView\":\"2VlG8\",\"./ParentCollectionSelectBox\":\"c0lFM\",\"./PropertyInspector\":\"elGDP\",\"./TagInspector\":\"8ozOG\",\"./TagSelectBox\":\"k1P3m\",\"./TagSelectBoxAsset\":\"92cb0\",\"./TagSelectBoxAssetCollection\":\"esvmA\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8en7h\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _ = require(\".\");\nvar _actions = require(\"./Actions\");\nvar _actionsDefault = parcelHelpers.interopDefault(_actions);\nvar _property = require(\"./Property\");\nvar _propertyDefault = parcelHelpers.interopDefault(_property);\nvar _inspectorContainer = require(\"./InspectorContainer\");\nvar _inspectorContainerDefault = parcelHelpers.interopDefault(_inspectorContainer);\nvar _parentCollectionSelectBox = require(\"./ParentCollectionSelectBox\");\nvar _parentCollectionSelectBoxDefault = parcelHelpers.interopDefault(_parentCollectionSelectBox);\n// TASK: Move into media module package\nconst AssetCollectionInspector = ()=>{\n const selectedAssetCollection = (0, _featureAssetCollections.useSelectedAssetCollection)();\n const selectedInspectorView = (0, _recoil.useRecoilValue)((0, _state.selectedInspectorViewState));\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const [title, setTitle] = (0, _react.useState)(\"\");\n const { updateAssetCollection } = (0, _featureAssetCollections.useUpdateAssetCollection)();\n const hasUnpublishedChanges = selectedAssetCollection && title !== selectedAssetCollection.title;\n const handleChange = (0, _react.useCallback)((value)=>{\n setTitle(value.trim());\n }, []);\n const handleDiscard = (0, _react.useCallback)(()=>{\n if (selectedAssetCollection) setTitle(selectedAssetCollection.title);\n }, [\n selectedAssetCollection,\n setTitle\n ]);\n const handleApply = (0, _react.useCallback)(()=>{\n if (title !== selectedAssetCollection.title) updateAssetCollection({\n assetCollection: selectedAssetCollection,\n title\n }).then(()=>{\n Notify.ok(translate(\"actions.updateAssetCollection.success\", \"The asset collection has been updated\"));\n }).catch(({ message })=>{\n Notify.error(translate(\"actions.deleteAssetCollection.error\", \"Error while updating the asset collection\"), message);\n });\n }, [\n Notify,\n translate,\n selectedAssetCollection,\n updateAssetCollection,\n title\n ]);\n (0, _react.useEffect)(()=>{\n handleDiscard();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n selectedAssetCollection?.id\n ]);\n if (!selectedAssetCollection || selectedInspectorView !== \"assetCollection\") return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _inspectorContainerDefault.default), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyDefault.default), {\n label: translate(\"inspector.title\", \"Title\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.TextInput), {\n type: \"text\",\n value: title,\n onChange: handleChange,\n onEnterKey: handleApply\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _actionsDefault.default), {\n handleApply: handleApply,\n handleDiscard: handleDiscard,\n hasUnpublishedChanges: hasUnpublishedChanges,\n inputValid: !!title\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _.TagSelectBoxAssetCollection), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _parentCollectionSelectBoxDefault.default), {})\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetCollectionInspector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\".\":\"eMQJr\",\"./Actions\":\"jKrDW\",\"./Property\":\"i6Kvg\",\"./InspectorContainer\":\"5SG0j\",\"./ParentCollectionSelectBox\":\"c0lFM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"jKrDW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _actionsModuleCss = require(\"./Actions.module.css\");\nvar _actionsModuleCssDefault = parcelHelpers.interopDefault(_actionsModuleCss);\nconst Actions = ({ hasUnpublishedChanges , handleApply , handleDiscard , inputValid =true })=>{\n const { translate } = (0, _core.useIntl)();\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _actionsModuleCssDefault.default).actions,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Button), {\n disabled: !hasUnpublishedChanges,\n size: \"regular\",\n style: \"lighter\",\n hoverStyle: \"brand\",\n onClick: handleDiscard,\n children: translate(\"inspector.actions.discard\", \"Discard\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Button), {\n disabled: !hasUnpublishedChanges || !inputValid,\n size: \"regular\",\n style: \"success\",\n hoverStyle: \"success\",\n onClick: handleApply,\n children: translate(\"inspector.actions.apply\", \"Apply\")\n })\n ]\n });\n};\nexports.default = Actions;\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"./Actions.module.css\":\"4cjJQ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4cjJQ\":[function(require,module,exports) {\nmodule.exports[\"actions\"] = `hpr5wG_actions`;\n\n},{}],\"i6Kvg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nconst Property = ({ children , label })=>{\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: \"propertyGroup\",\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Label), {\n children: label\n }),\n children\n ]\n });\n};\nexports.default = Property;\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5SG0j\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _inspectorContainerModuleCss = require(\"./InspectorContainer.module.css\");\nvar _inspectorContainerModuleCssDefault = parcelHelpers.interopDefault(_inspectorContainerModuleCss);\nconst InspectorContainer = ({ children })=>{\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _inspectorContainerModuleCssDefault.default).inspector,\n children: children\n });\n};\nexports.default = InspectorContainer;\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"./InspectorContainer.module.css\":\"1r9gT\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1r9gT\":[function(require,module,exports) {\nmodule.exports[\"inspector\"] = `Ei69Yq_inspector`;\n\n},{}],\"c0lFM\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _assetCollectionOptionPreviewElement = require(\"./AssetCollectionOptionPreviewElement\");\nvar _parentCollectionSelectBoxModuleCss = require(\"./ParentCollectionSelectBox.module.css\");\nconst ParentCollectionSelectBox = ()=>{\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const { assetCollections } = (0, _featureAssetCollections.useAssetCollectionsQuery)();\n const selectedAssetCollection = (0, _featureAssetCollections.useSelectedAssetCollection)();\n const { setAssetCollectionParent , loading } = (0, _featureAssetCollections.useSetAssetCollectionParent)();\n const [searchTerm, setSearchTerm] = (0, _react.useState)(\"\");\n const selectBoxOptions = (0, _react.useMemo)(()=>assetCollections.filter(({ id })=>id !== selectedAssetCollection.id).map((collection)=>({\n label: collection.title,\n id: collection.id,\n secondaryLabel: collection.parent ? \"/\" + (0, _featureAssetCollections.collectionPath)(collection, assetCollections).map(({ title })=>title).join(\"/\") : \"\"\n })), [\n assetCollections,\n selectedAssetCollection?.id\n ]);\n const filteredSelectBoxOptions = (0, _react.useMemo)(()=>selectBoxOptions.filter(({ label })=>label.toLowerCase().includes(searchTerm)), [\n selectBoxOptions,\n searchTerm\n ]);\n const handleChange = (0, _react.useCallback)(async (parentCollectionId)=>{\n if (parentCollectionId !== selectedAssetCollection.parent?.id) setAssetCollectionParent({\n assetCollection: selectedAssetCollection,\n parent: parentCollectionId ? assetCollections.find((c)=>c.id === parentCollectionId) : null\n }).then(()=>{\n Notify.ok(translate(\"ParentCollectionSelectBox.setParent.success\", \"The parent collection has been set\"));\n }).catch(({ message })=>{\n Notify.error(translate(\"ParentCollectionSelectBox.setParent.error\", \"Error while setting the parent collection\"), message);\n });\n }, [\n selectedAssetCollection,\n setAssetCollectionParent,\n assetCollections,\n Notify,\n translate\n ]);\n const handleSearchTermChange = (0, _react.useCallback)((searchTerm)=>{\n setSearchTerm(searchTerm.toLowerCase());\n }, []);\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"folder\",\n label: translate(\"inspector.assetCollections\", \"Parent collection\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.SelectBox), {\n className: _parentCollectionSelectBoxModuleCss.collectionSelectBox,\n disabled: loading,\n placeholder: translate(\"inspector.collections.placeholder\", \"Select a collection\"),\n value: selectedAssetCollection.parent?.id,\n optionValueField: \"id\",\n options: filteredSelectBoxOptions,\n noMatchesFoundLabel: translate(\"general.noMatchesFound\", \"No matches found\"),\n onValueChange: handleChange,\n onSearchTermChange: handleSearchTermChange,\n ListPreviewElement: (0, _assetCollectionOptionPreviewElement.AssetCollectionOptionPreviewElement),\n displaySearchBox: true,\n allowEmpty: true,\n threshold: 0\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ParentCollectionSelectBox);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"./AssetCollectionOptionPreviewElement\":\"4Vmvi\",\"./ParentCollectionSelectBox.module.css\":\"2jMht\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4Vmvi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"AssetCollectionOptionPreviewElement\", ()=>AssetCollectionOptionPreviewElement);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nconst AssetCollectionOptionPreviewElement = ({ option , ...rest })=>{\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.SelectBox_Option_MultiLineWithThumbnail), {\n ...rest,\n ...option\n });\n};\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"2jMht\":[function(require,module,exports) {\nmodule.exports[\"collectionSelectBox\"] = `Hl9FHG_collectionSelectBox`;\n\n},{}],\"5myuN\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _variantsInspector = require(\"@media-ui/feature-asset-variants/src/components/VariantsInspector\");\nvar _variantsInspectorDefault = parcelHelpers.interopDefault(_variantsInspector);\nvar _propertyInspector = require(\"./PropertyInspector\");\nvar _propertyInspectorDefault = parcelHelpers.interopDefault(_propertyInspector);\nvar _assetInspectorModuleCss = require(\"./AssetInspector.module.css\");\nvar _assetInspectorModuleCssDefault = parcelHelpers.interopDefault(_assetInspectorModuleCss);\nconst AssetInspector = ()=>{\n const selectedAssetId = (0, _recoil.useRecoilValue)((0, _state.selectedAssetIdState));\n const { showVariantsEditor } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const selectedInspectorView = (0, _recoil.useRecoilValue)((0, _state.selectedInspectorViewState));\n if (!selectedAssetId || selectedInspectorView !== \"asset\") return null;\n return showVariantsEditor ? /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _reactUiComponents.Tabs), {\n theme: {\n tabs__content: (0, _assetInspectorModuleCssDefault.default).tabContent\n },\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Tabs).Panel, {\n icon: \"info-circle\",\n id: \"editor\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyInspectorDefault.default), {})\n }, \"editor\"),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Tabs).Panel, {\n icon: \"images\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _variantsInspectorDefault.default), {})\n })\n ]\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyInspectorDefault.default), {});\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetInspector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-variants/src/components/VariantsInspector\":\"5P4Ou\",\"./PropertyInspector\":\"elGDP\",\"./AssetInspector.module.css\":\"dh8Aw\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"5P4Ou\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _useAssetVariants = require(\"../hooks/useAssetVariants\");\nvar _useAssetVariantsDefault = parcelHelpers.interopDefault(_useAssetVariants);\nvar _variant = require(\"./Variant\");\nvar _variantDefault = parcelHelpers.interopDefault(_variant);\nvar _variantsInspectorModuleCss = require(\"./VariantsInspector.module.css\");\nvar _variantsInspectorModuleCssDefault = parcelHelpers.interopDefault(_variantsInspectorModuleCss);\nconst VariantsInspector = ()=>{\n const { translate } = (0, _core.useIntl)();\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const result = (0, _useAssetVariantsDefault.default)(selectedAsset ? {\n assetId: selectedAsset.id,\n assetSourceId: selectedAsset.assetSource.id\n } : null);\n if (!selectedAsset) return null;\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _variantsInspectorModuleCssDefault.default).variantsContainer\n }, result.loading ? /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", null, \"Loading Variants\") : /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _reactDefault.default).Fragment, null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"h1\", null, \"Image Variants\"), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"ul\", null, result.variants?.length > 0 ? result.variants?.map((variant)=>/*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", {\n className: (0, _variantsInspectorModuleCssDefault.default).variantItem,\n key: `variant-${variant.id}`\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement((0, _variantDefault.default), variant))) : /*#__PURE__*/ (0, _reactDefault.default).createElement(\"li\", null, translate(\"assetVariants.noVariantsFound\", \"No variants found\")))));\n};\nexports.default = VariantsInspector;\n\n},{\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"../hooks/useAssetVariants\":\"dcVtd\",\"./Variant\":\"9Mdcq\",\"./VariantsInspector.module.css\":\"fGiiN\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dcVtd\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>useAssetVariants);\nvar _client = require(\"@apollo/client\");\nvar _assetVariants = require(\"../queries/assetVariants\");\nvar _assetVariantsDefault = parcelHelpers.interopDefault(_assetVariants);\nfunction useAssetVariants(assetIdentity) {\n const { data , loading , refetch } = (0, _client.useQuery)((0, _assetVariantsDefault.default), {\n variables: {\n id: assetIdentity?.assetId,\n assetSourceId: assetIdentity?.assetSourceId\n },\n skip: !assetIdentity\n });\n return {\n variants: data?.assetVariants || null,\n loading,\n refetch\n };\n}\n\n},{\"@apollo/client\":\"bWmmR\",\"../queries/assetVariants\":\"glJD1\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"glJD1\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nvar _cropInformation = require(\"../fragments/cropInformation\");\nvar _cropInformationDefault = parcelHelpers.interopDefault(_cropInformation);\nconst ASSET_VARIANTS = (0, _client.gql)`\n query ASSET_VARIANTS($id: AssetId!, $assetSourceId: AssetSourceId!) {\n assetVariants(id: $id, assetSourceId: $assetSourceId) {\n id\n width\n height\n presetIdentifier\n variantName\n hasCrop\n previewUrl\n cropInformation {\n ...CropInformationProps\n }\n }\n }\n ${(0, _cropInformationDefault.default)}\n`;\nexports.default = ASSET_VARIANTS;\n\n},{\"@apollo/client\":\"bWmmR\",\"../fragments/cropInformation\":\"a4EQi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"a4EQi\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _client = require(\"@apollo/client\");\nconst CROP_INFORMATION_FRAGMENT = (0, _client.gql)`\n fragment CropInformationProps on CropInformation {\n width\n height\n x\n y\n }\n`;\nexports.default = CROP_INFORMATION_FRAGMENT;\n\n},{\"@apollo/client\":\"bWmmR\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9Mdcq\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _variantModuleCss = require(\"./Variant.module.css\");\nvar _variantModuleCssDefault = parcelHelpers.interopDefault(_variantModuleCss);\nconst Variant = ({ presetIdentifier , variantName , width , height , previewUrl })=>{\n return /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _variantModuleCssDefault.default).variantContainer\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"picture\", {\n className: (0, _variantModuleCssDefault.default).picture\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"img\", {\n className: (0, _variantModuleCssDefault.default).image,\n src: previewUrl,\n alt: variantName\n })), /*#__PURE__*/ (0, _reactDefault.default).createElement(\"figcaption\", {\n className: (0, _variantModuleCssDefault.default).caption\n }, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"div\", {\n className: (0, _variantModuleCssDefault.default).infoContainer\n }, presetIdentifier ? /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _variantModuleCssDefault.default).info\n }, \"Preset: \", presetIdentifier) : null, variantName ? /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _variantModuleCssDefault.default).info\n }, \"Variant: \", variantName) : null, /*#__PURE__*/ (0, _reactDefault.default).createElement(\"span\", {\n className: (0, _variantModuleCssDefault.default).variantSizes\n }, \"W: \", width, \" H: \", height))));\n};\nexports.default = Variant;\n\n},{\"react\":\"6uln9\",\"./Variant.module.css\":\"bVB6o\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bVB6o\":[function(require,module,exports) {\nmodule.exports[\"caption\"] = `GS2huq_caption`;\nmodule.exports[\"image\"] = `GS2huq_image`;\nmodule.exports[\"info\"] = `GS2huq_info`;\nmodule.exports[\"infoContainer\"] = `GS2huq_infoContainer`;\nmodule.exports[\"picture\"] = `GS2huq_picture`;\nmodule.exports[\"variantContainer\"] = `GS2huq_variantContainer`;\nmodule.exports[\"variantSizes\"] = `GS2huq_variantSizes`;\n\n},{}],\"fGiiN\":[function(require,module,exports) {\nmodule.exports[\"variantItem\"] = `RPvqMq_variantItem`;\nmodule.exports[\"variantsContainer\"] = `RPvqMq_variantsContainer`;\n\n},{}],\"elGDP\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _index = require(\"./index\");\nvar _property = require(\"./Property\");\nvar _propertyDefault = parcelHelpers.interopDefault(_property);\nvar _actions = require(\"./Actions\");\nvar _actionsDefault = parcelHelpers.interopDefault(_actions);\nvar _inspectorContainer = require(\"./InspectorContainer\");\nvar _inspectorContainerDefault = parcelHelpers.interopDefault(_inspectorContainer);\nvar _tasks = require(\"./Tasks\");\nvar _tasksDefault = parcelHelpers.interopDefault(_tasks);\nvar _propertyInspectorModuleCss = require(\"./PropertyInspector.module.css\");\nvar _propertyInspectorModuleCssDefault = parcelHelpers.interopDefault(_propertyInspectorModuleCss);\nvar _featureAssetSources = require(\"@media-ui/feature-asset-sources\");\nconst PropertyInspector = ()=>{\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const { assetSources } = (0, _featureAssetSources.useAssetSourcesQuery)();\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const { approvalAttainmentStrategy: { obtainApprovalToUpdateAsset } } = (0, _core.useMediaUi)();\n const featureFlags = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const [label, setLabel] = (0, _react.useState)(null);\n const [caption, setCaption] = (0, _react.useState)(null);\n const [copyrightNotice, setCopyrightNotice] = (0, _react.useState)(null);\n const [propertyEditorCollapsed, setPropertyEditorCollapsed] = (0, _react.useState)(featureFlags.propertyEditor.collapsed);\n const { updateAsset , loading } = (0, _hooks.useUpdateAsset)();\n const isEditable = selectedAsset?.localId && !loading;\n const hasUnpublishedChanges = selectedAsset && (label !== selectedAsset.label || caption !== selectedAsset.caption || copyrightNotice !== selectedAsset.copyrightNotice);\n const assetSourceForSelectedAsset = selectedAsset ? assetSources.find(({ id })=>id === selectedAsset.assetSource.id) : null;\n const handleDiscard = (0, _react.useCallback)(()=>{\n if (selectedAsset) {\n setLabel(selectedAsset.label);\n setCaption(selectedAsset.caption);\n setCopyrightNotice(selectedAsset.copyrightNotice);\n }\n }, [\n selectedAsset,\n setLabel,\n setCaption,\n setCopyrightNotice\n ]);\n const handleApply = (0, _react.useCallback)(async ()=>{\n if (label !== selectedAsset.label || caption !== selectedAsset.caption || copyrightNotice !== selectedAsset.copyrightNotice) {\n const hasApprovalToUpdateAsset = await obtainApprovalToUpdateAsset({\n asset: selectedAsset\n });\n if (hasApprovalToUpdateAsset) try {\n await updateAsset({\n asset: selectedAsset,\n label,\n caption,\n copyrightNotice\n });\n Notify.ok(translate(\"actions.updateAsset.success\", \"The asset has been updated\"));\n } catch ({ message }) {\n Notify.error(translate(\"actions.deleteAsset.error\", \"Error while updating the asset\"), message);\n }\n }\n }, [\n Notify,\n translate,\n caption,\n copyrightNotice,\n label,\n selectedAsset,\n updateAsset,\n obtainApprovalToUpdateAsset\n ]);\n (0, _react.useEffect)(()=>{\n handleDiscard();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n selectedAsset?.id\n ]);\n if (!selectedAsset) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _inspectorContainerDefault.default), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _reactUiComponents.ToggablePanel), {\n closesToBottom: true,\n className: (0, _propertyInspectorModuleCssDefault.default).propertyPanel,\n isOpen: !propertyEditorCollapsed,\n onPanelToggle: ()=>setPropertyEditorCollapsed((prev)=>!prev),\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.ToggablePanel).Header, {\n className: (0, _propertyInspectorModuleCssDefault.default).propertyPanelHeader,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"pencil\",\n label: translate(\"propertyPanel.header\", \"Properties\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _reactUiComponents.ToggablePanel).Contents, {\n className: (0, _propertyInspectorModuleCssDefault.default).propertyPanelContents,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyDefault.default), {\n label: translate(\"inspector.title\", \"Title\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.TextInput), {\n name: \"label\",\n disabled: !isEditable,\n type: \"text\",\n value: label || \"\",\n onChange: setLabel,\n onEnterKey: handleApply\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyDefault.default), {\n label: translate(\"inspector.caption\", \"Caption\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.TextArea), {\n name: \"caption\",\n className: (0, _propertyInspectorModuleCssDefault.default).textArea,\n disabled: !isEditable,\n minRows: 3,\n expandedRows: 6,\n value: caption || \"\",\n onChange: setCaption\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyDefault.default), {\n label: translate(\"inspector.copyrightNotice\", \"Copyright notice\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.TextArea), {\n name: \"copyrightNotice\",\n className: (0, _propertyInspectorModuleCssDefault.default).textArea,\n disabled: !isEditable,\n minRows: 2,\n expandedRows: 4,\n value: copyrightNotice || \"\",\n onChange: setCopyrightNotice\n })\n }),\n isEditable && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _actionsDefault.default), {\n handleApply: handleApply,\n handleDiscard: handleDiscard,\n hasUnpublishedChanges: hasUnpublishedChanges,\n inputValid: !!label\n })\n ]\n })\n ]\n }),\n assetSourceForSelectedAsset.supportsCollections && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.CollectionSelectBox), {}),\n assetSourceForSelectedAsset.supportsTagging && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.TagSelectBoxAsset), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _tasksDefault.default), {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.MetadataView), {})\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(PropertyInspector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/core/src/state\":\"jV1GH\",\"./index\":\"eMQJr\",\"./Property\":\"i6Kvg\",\"./Actions\":\"jKrDW\",\"./InspectorContainer\":\"5SG0j\",\"./Tasks\":\"dqcVs\",\"./PropertyInspector.module.css\":\"jaNwZ\",\"@media-ui/feature-asset-sources\":\"9cP7j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dqcVs\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _index = require(\"@media-ui/feature-asset-usage/src/index\");\nvar _featureSimilarAssets = require(\"@media-ui/feature-similar-assets\");\nvar _components1 = require(\"@media-ui/feature-asset-upload/src/components\");\nvar _featureAssetEditing = require(\"@media-ui/feature-asset-editing\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _tasksModuleCss = require(\"./Tasks.module.css\");\nvar _tasksModuleCssDefault = parcelHelpers.interopDefault(_tasksModuleCss);\nconst Tasks = ()=>{\n const { translate } = (0, _core.useIntl)();\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const applicationContext = (0, _recoil.useRecoilValue)((0, _state.applicationContextState));\n const { showSimilarAssets } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n if (!selectedAsset) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _tasksModuleCssDefault.default).tasks,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"tasks\",\n label: translate(\"inspector.actions\", \"Tasks\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.AssetUsagesToggleButton), {}),\n showSimilarAssets && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureSimilarAssets.SimilarAssetsToggleButton), {}),\n !selectedAsset.assetSource.readOnly && applicationContext !== \"details\" && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components1.AssetReplacementButton), {}),\n !selectedAsset.assetSource.readOnly && applicationContext !== \"details\" && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _featureAssetEditing.OpenAssetEditDialogButton), {})\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(Tasks);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/feature-asset-usage/src/index\":\"lWHpb\",\"@media-ui/feature-similar-assets\":\"fcGtf\",\"@media-ui/feature-asset-upload/src/components\":\"aZ3Bv\",\"@media-ui/feature-asset-editing\":\"hp2Yk\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/state\":\"jV1GH\",\"./Tasks.module.css\":\"i2qG2\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"i2qG2\":[function(require,module,exports) {\nmodule.exports[\"tasks\"] = `gOSwCW_tasks`;\n\n},{}],\"jaNwZ\":[function(require,module,exports) {\nmodule.exports[\"propertyPanelContents\"] = `QsDLeW_propertyPanelContents`;\nmodule.exports[\"propertyPanelHeader\"] = `QsDLeW_propertyPanelHeader`;\nmodule.exports[\"textArea\"] = `QsDLeW_textArea`;\n\n},{}],\"dh8Aw\":[function(require,module,exports) {\nmodule.exports[\"tabContent\"] = `_5E9l1q_tabContent`;\n\n},{}],\"dODCE\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _collectionSelectBoxModuleCss = require(\"./CollectionSelectBox.module.css\");\nvar _assetCollectionOptionPreviewElement = require(\"./AssetCollectionOptionPreviewElement\");\nconst collectionsMatchAsset = (assetCollectionIds, asset)=>{\n return assetCollectionIds.join(\",\") === asset.collections.map((collection)=>collection.id).join(\",\");\n};\nconst CollectionSelectBox = ()=>{\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const { approvalAttainmentStrategy: { obtainApprovalToSetAssetCollections } } = (0, _core.useMediaUi)();\n const { assetCollections } = (0, _featureAssetCollections.useAssetCollectionsQuery)();\n const { setAssetCollections , loading } = (0, _hooks.useSetAssetCollections)();\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const { limitToSingleAssetCollectionPerAsset } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const [searchTerm, setSearchTerm] = (0, _react.useState)(\"\");\n const selectBoxOptions = (0, _react.useMemo)(()=>assetCollections.map((collection)=>({\n label: collection.title,\n id: collection.id,\n secondaryLabel: collection.parent ? \"/\" + (0, _featureAssetCollections.collectionPath)(collection, assetCollections).map(({ title })=>title).join(\"/\") : \"\"\n })), [\n assetCollections\n ]);\n const filteredSelectBoxOptions = (0, _react.useMemo)(()=>selectBoxOptions.filter(({ label })=>label.toLowerCase().includes(searchTerm)), [\n selectBoxOptions,\n searchTerm\n ]);\n const [selectedAssetCollectionIds, setSelectedAssetCollectionIds] = (0, _react.useState)([]);\n const syncSelectedAssetCollectionIds = (0, _react.useCallback)(()=>setSelectedAssetCollectionIds(selectedAsset?.collections.map(({ id })=>id) || []), [\n selectedAsset?.collections\n ]);\n const handleChange = (0, _react.useCallback)(async (newAssetCollectionIds)=>{\n // Handle both input from the single selectbox and multiselectbox\n if (newAssetCollectionIds === null) newAssetCollectionIds = [];\n else if (typeof newAssetCollectionIds === \"string\") newAssetCollectionIds = [\n newAssetCollectionIds\n ];\n if (!collectionsMatchAsset(newAssetCollectionIds, selectedAsset)) {\n const asset = selectedAsset;\n const newAssetCollections = assetCollections.filter((c)=>newAssetCollectionIds.includes(c.id));\n const hasApprovalToSetAssetCollections = await obtainApprovalToSetAssetCollections({\n asset,\n newAssetCollections\n });\n if (hasApprovalToSetAssetCollections) try {\n await setAssetCollections({\n asset,\n assetCollections: newAssetCollections\n });\n Notify.ok(translate(\"actions.setAssetCollections.success\", \"The collections for the asset have been set\"));\n } catch ({ message }) {\n Notify.error(translate(\"actions.setAssetCollections.error\", \"Error while setting the collections for the asset\"), message);\n }\n else syncSelectedAssetCollectionIds();\n }\n }, [\n Notify,\n selectedAsset,\n setAssetCollections,\n assetCollections,\n translate,\n syncSelectedAssetCollectionIds,\n obtainApprovalToSetAssetCollections\n ]);\n const handleSearchTermChange = (0, _react.useCallback)((searchTerm)=>{\n setSearchTerm(searchTerm.toLowerCase());\n }, []);\n (0, _react.useEffect)(syncSelectedAssetCollectionIds, [\n syncSelectedAssetCollectionIds\n ]);\n if (!selectedAsset) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: \"collectionSelectBox\",\n children: limitToSingleAssetCollectionPerAsset ? /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _jsxRuntime.Fragment), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"folder\",\n label: translate(\"inspector.assetCollection\", \"Collection\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.SelectBox), {\n className: _collectionSelectBoxModuleCss.collectionSelectBox,\n disabled: loading || selectedAsset.assetSource.readOnly,\n placeholder: translate(\"inspector.collections.placeholder\", \"Select a collection\"),\n value: selectedAssetCollectionIds.length ? selectedAssetCollectionIds[0] : null,\n optionValueField: \"id\",\n options: filteredSelectBoxOptions,\n noMatchesFoundLabel: translate(\"general.noMatchesFound\", \"No matches found\"),\n onValueChange: handleChange,\n onSearchTermChange: handleSearchTermChange,\n ListPreviewElement: (0, _assetCollectionOptionPreviewElement.AssetCollectionOptionPreviewElement),\n displaySearchBox: true,\n allowEmpty: true,\n threshold: 0\n })\n ]\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _jsxRuntime.Fragment), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"folder\",\n label: translate(\"inspector.assetCollections\", \"Collections\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.MultiSelectBox), {\n className: _collectionSelectBoxModuleCss.collectionSelectBox,\n disabled: loading || selectedAsset.assetSource.readOnly,\n placeholder: translate(\"inspector.collections.placeholder\", \"Select a collection\"),\n values: selectedAssetCollectionIds,\n optionValueField: \"id\",\n options: selectBoxOptions,\n searchOptions: filteredSelectBoxOptions,\n noMatchesFoundLabel: translate(\"general.noMatchesFound\", \"No matches found\"),\n onValuesChange: handleChange,\n onSearchTermChange: handleSearchTermChange,\n ListPreviewElement: (0, _assetCollectionOptionPreviewElement.AssetCollectionOptionPreviewElement),\n displaySearchBox: true,\n allowEmpty: true,\n threshold: 0\n })\n ]\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(CollectionSelectBox);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"./CollectionSelectBox.module.css\":\"4nwhZ\",\"./AssetCollectionOptionPreviewElement\":\"4Vmvi\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4nwhZ\":[function(require,module,exports) {\nmodule.exports[\"collectionSelectBox\"] = `cQ-_Aa_collectionSelectBox`;\n\n},{}],\"cVRYy\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _iptcMetadataInspectorModuleCss = require(\"./IptcMetadataInspector.module.css\");\nvar _iptcMetadataInspectorModuleCssDefault = parcelHelpers.interopDefault(_iptcMetadataInspectorModuleCss);\nconst IptcMetadataInspector = ()=>{\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const { translate } = (0, _core.useIntl)();\n if (!selectedAsset?.iptcProperties?.length) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _iptcMetadataInspectorModuleCssDefault.default).iptcData,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"camera\",\n label: translate(\"inspector.iptcMetadata\", \"IPTC Metadata\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyList), {\n children: selectedAsset.iptcProperties.map((iptcProperty)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyListItem), {\n label: iptcProperty.propertyName,\n value: iptcProperty.value\n }, iptcProperty.propertyName))\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(IptcMetadataInspector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/components\":\"5LFSk\",\"./IptcMetadataInspector.module.css\":\"j7Y54\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"j7Y54\":[function(require,module,exports) {\nmodule.exports[\"iptcData\"] = `_8r-_bG_iptcData`;\n\n},{}],\"2VlG8\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _helper = require(\"@media-ui/core/src/helper\");\nvar _components = require(\"@media-ui/core/src/components\");\nconst MetadataView = ()=>{\n const { translate } = (0, _core.useIntl)();\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n if (!selectedAsset) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"info-circle\",\n label: translate(\"inspector.metadata\", \"Metadata\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _components.PropertyList), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyListItem), {\n label: translate(\"inspector.property.dimensions\", \"Dimensions\"),\n value: `${selectedAsset.width}px x ${selectedAsset.height}px`\n }),\n selectedAsset.file.size > 0 && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyListItem), {\n label: translate(\"inspector.property.fileSize\", \"Size\"),\n value: (0, _helper.humanFileSize)(selectedAsset.file.size)\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyListItem), {\n label: translate(\"inspector.property.filename\", \"Filename\"),\n value: selectedAsset.filename\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyListItem), {\n label: translate(\"inspector.property.lastModified\", \"Last modified\"),\n value: new Date(selectedAsset.lastModified).toLocaleString()\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.PropertyListItem), {\n label: translate(\"inspector.property.mediaType\", \"MIME type\"),\n value: selectedAsset.file.mediaType\n })\n ]\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ _react.memo(MetadataView);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/helper\":\"80jPI\",\"@media-ui/core/src/components\":\"5LFSk\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"8ozOG\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _actions = require(\"./Actions\");\nvar _actionsDefault = parcelHelpers.interopDefault(_actions);\nvar _property = require(\"./Property\");\nvar _propertyDefault = parcelHelpers.interopDefault(_property);\nvar _inspectorContainer = require(\"./InspectorContainer\");\nvar _inspectorContainerDefault = parcelHelpers.interopDefault(_inspectorContainer);\nconst TagInspector = ()=>{\n const selectedTag = (0, _featureAssetTags.useSelectedTag)();\n const selectedInspectorView = (0, _recoil.useRecoilValue)((0, _state.selectedInspectorViewState));\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const [label, setLabel] = (0, _react.useState)(null);\n const { updateTag } = (0, _featureAssetTags.useUpdateTag)();\n const hasUnpublishedChanges = selectedTag && label !== selectedTag.label;\n const handleDiscard = (0, _react.useCallback)(()=>{\n if (selectedTag) setLabel(selectedTag.label);\n }, [\n selectedTag,\n setLabel\n ]);\n const handleApply = (0, _react.useCallback)(()=>{\n if (label !== selectedTag.label) updateTag({\n tag: selectedTag,\n label\n }).then(()=>{\n Notify.ok(translate(\"actions.updateTag.success\", \"The tag has been updated\"));\n }).catch(({ message })=>{\n Notify.error(translate(\"actions.updateTag.error\", \"Error while updating the tag\"), message);\n });\n }, [\n Notify,\n translate,\n selectedTag,\n updateTag,\n label\n ]);\n (0, _react.useEffect)(()=>{\n handleDiscard();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n selectedTag?.id\n ]);\n if (!selectedTag || selectedInspectorView !== \"tag\") return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _inspectorContainerDefault.default), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _propertyDefault.default), {\n label: translate(\"inspector.label\", \"Label\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.TextInput), {\n type: \"text\",\n value: label || \"\",\n onChange: setLabel,\n onEnterKey: handleApply\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _actionsDefault.default), {\n handleApply: handleApply,\n handleDiscard: handleDiscard,\n hasUnpublishedChanges: hasUnpublishedChanges\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ _react.memo(TagInspector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"./Actions\":\"jKrDW\",\"./Property\":\"i6Kvg\",\"./InspectorContainer\":\"5SG0j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"k1P3m\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nconst TagSelectBox = ({ values , options , onChange , disabled =false })=>{\n const { translate } = (0, _core.useIntl)();\n const handleChange = (tagIds)=>onChange(tagIds.map((tagId)=>options.find((o)=>o.id === tagId)));\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: \"tagSelectBox\",\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"tags\",\n label: translate(\"inspector.tags\", \"Tags\")\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.MultiSelectBox), {\n className: \"tagSelection\",\n disabled: disabled,\n placeholder: translate(\"inspector.tags.placeholder\", \"Select a tag\"),\n noMatchesFoundLabel: translate(\"general.noMatchesFound\", \"No matches found\"),\n values: values,\n optionValueField: \"id\",\n options: options,\n searchOptions: options,\n onValuesChange: handleChange\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(TagSelectBox);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"92cb0\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _ = require(\".\");\nconst tagsMatchAsset = (tags, asset)=>{\n return tags.map((tag)=>tag.id).sort().join(\",\") === asset.tags.map((tag)=>tag.id).sort().join(\",\");\n};\nconst TagSelectBoxAsset = ()=>{\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const { approvalAttainmentStrategy: { obtainApprovalToSetAssetTags } } = (0, _core.useMediaUi)();\n const { tags: allTags } = (0, _featureAssetTags.useTagsQuery)();\n const { setAssetTags , loading } = (0, _hooks.useSetAssetTags)();\n const selectedAsset = (0, _hooks.useSelectedAsset)();\n const [selectedTagIds, setSelectedTagIds] = (0, _react.useState)([]);\n const syncSelectedTagIds = (0, _react.useCallback)(()=>setSelectedTagIds(selectedAsset?.tags.map(({ id })=>id).sort()), [\n selectedAsset?.tags\n ]);\n const handleChange = (0, _react.useCallback)(async (newTags)=>{\n if (!tagsMatchAsset(newTags, selectedAsset)) {\n const hasApprovalToSetAssetTags = await obtainApprovalToSetAssetTags({\n asset: selectedAsset,\n newTags\n });\n if (hasApprovalToSetAssetTags) try {\n await setAssetTags({\n asset: selectedAsset,\n tags: newTags\n });\n Notify.ok(translate(\"actions.setAssetTags.success\", \"The asset has been tagged\"));\n } catch ({ message }) {\n Notify.error(translate(\"actions.setAssetTags.error\", \"Error while tagging the asset\"), message);\n }\n else syncSelectedTagIds();\n }\n }, [\n Notify,\n selectedAsset,\n setAssetTags,\n translate,\n syncSelectedTagIds,\n obtainApprovalToSetAssetTags\n ]);\n (0, _react.useEffect)(()=>syncSelectedTagIds(), [\n syncSelectedTagIds\n ]);\n if (!selectedAsset) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _.TagSelectBox), {\n values: selectedTagIds,\n options: allTags,\n onChange: handleChange,\n disabled: loading || selectedAsset.assetSource.readOnly\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(TagSelectBoxAsset);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\".\":\"eMQJr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"esvmA\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _ = require(\".\");\nconst tagsMatchAssetCollection = (tags, assetCollection)=>{\n return tags.map((tag)=>tag.id).sort().join(\",\") === assetCollection.tags.map((tag)=>tag.id).sort().join(\",\");\n};\nconst TagSelectBoxAssetCollection = ()=>{\n const Notify = (0, _core.useNotify)();\n const { translate } = (0, _core.useIntl)();\n const { tags: allTags } = (0, _featureAssetTags.useTagsQuery)();\n const { updateAssetCollection } = (0, _featureAssetCollections.useUpdateAssetCollection)();\n const selectedAssetCollection = (0, _featureAssetCollections.useSelectedAssetCollection)();\n const tagIds = (0, _react.useMemo)(()=>selectedAssetCollection?.tags.map(({ id })=>id).sort(), [\n selectedAssetCollection?.tags\n ]);\n const handleChange = (0, _react.useCallback)((newTags)=>{\n if (!tagsMatchAssetCollection(newTags, selectedAssetCollection)) updateAssetCollection({\n assetCollection: selectedAssetCollection,\n tags: newTags\n }).then(()=>{\n Notify.ok(translate(\"actions.tagAssetCollection.success\", \"The asset collection has been tagged\"));\n }).catch(({ message })=>{\n Notify.error(translate(\"actions.tagAssetCollection.error\", \"Error while tagging the asset collection\"), message);\n });\n }, [\n Notify,\n selectedAssetCollection,\n updateAssetCollection,\n translate\n ]);\n if (!selectedAssetCollection) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _.TagSelectBox), {\n values: tagIds,\n options: allTags,\n onChange: handleChange\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(TagSelectBoxAssetCollection);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\".\":\"eMQJr\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bK6dT\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _featureAssetCollections = require(\"@media-ui/feature-asset-collections\");\nvar _featureAssetTags = require(\"@media-ui/feature-asset-tags\");\nvar _currentSelectionModuleCss = require(\"./CurrentSelection.module.css\");\nvar _currentSelectionModuleCssDefault = parcelHelpers.interopDefault(_currentSelectionModuleCss);\nconst CurrentSelection = ()=>{\n const selectedAssetCollection = (0, _featureAssetCollections.useSelectedAssetCollection)();\n const selectedTag = (0, _featureAssetTags.useSelectedTag)();\n const setSelectedAssetCollectionAndTag = (0, _recoil.useSetRecoilState)((0, _state.selectedAssetCollectionAndTagState));\n const selectedInspectorView = (0, _recoil.useRecoilValue)((0, _state.selectedInspectorViewState));\n const { translate } = (0, _core.useIntl)();\n const { assetCollections } = (0, _featureAssetCollections.useAssetCollectionsQuery)();\n const selection = (0, _react.useMemo)(()=>{\n let icon = \"question\";\n let label = null;\n let path = [];\n if (selectedInspectorView !== \"asset\") {\n if (selectedAssetCollection) path = (0, _featureAssetCollections.collectionPath)(selectedAssetCollection, assetCollections);\n if (selectedInspectorView === \"assetCollection\") {\n icon = \"folder\";\n label = selectedAssetCollection?.title;\n } else if (selectedInspectorView === \"tag\") {\n icon = \"tag\";\n label = selectedTag?.label;\n }\n }\n return {\n icon,\n label,\n path\n };\n }, [\n selectedTag,\n selectedAssetCollection,\n selectedInspectorView,\n assetCollections\n ]);\n if (!selection.label || selectedInspectorView === \"asset\") return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _currentSelectionModuleCssDefault.default).currentSelection,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h2\",\n className: (0, _currentSelectionModuleCssDefault.default).headline,\n children: selectedInspectorView === \"assetCollection\" ? translate(\"currentSelection.assetCollection.headline\", \"Selected collection\") : translate(\"currentSelection.tag.headline\", \"Selected tag\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: selection.icon,\n className: (0, _currentSelectionModuleCssDefault.default).label,\n label: selection.label\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Headline), {\n type: \"h3\",\n className: (0, _currentSelectionModuleCssDefault.default).headline,\n children: translate(\"currentSelection.path.headline\", \"Path\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _currentSelectionModuleCssDefault.default).breadcrumb,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"button\", {\n type: \"button\",\n onClick: ()=>setSelectedAssetCollectionAndTag({\n assetCollectionId: null,\n tagId: null\n }),\n children: \"/\"\n }),\n selection.path.map(({ id , title })=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(\"button\", {\n type: \"button\",\n onClick: ()=>setSelectedAssetCollectionAndTag({\n assetCollectionId: id,\n tagId: null\n }),\n children: title\n }, id))\n ]\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(CurrentSelection);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/feature-asset-collections\":\"ACGoF\",\"@media-ui/feature-asset-tags\":\"aqhtm\",\"./CurrentSelection.module.css\":\"bWZ7L\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bWZ7L\":[function(require,module,exports) {\nmodule.exports[\"breadcrumb\"] = `zzq2Ja_breadcrumb`;\nmodule.exports[\"currentSelection\"] = `zzq2Ja_currentSelection`;\nmodule.exports[\"headline\"] = `zzq2Ja_headline`;\nmodule.exports[\"label\"] = `zzq2Ja_label`;\n\n},{}],\"1t2UB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _loadingIndicatorModuleCss = require(\"./LoadingIndicator.module.css\");\nvar _loadingIndicatorModuleCssDefault = parcelHelpers.interopDefault(_loadingIndicatorModuleCss);\nconst LoadingIndicator = ()=>{\n const isLoading = (0, _recoil.useRecoilValue)((0, _state.loadingState));\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _loadingIndicatorModuleCssDefault.default).indicator,\n \"data-animated\": isLoading,\n role: \"progressbar\",\n \"aria-hidden\": true\n });\n};\nexports.default = LoadingIndicator;\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"./LoadingIndicator.module.css\":\"dIyLG\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dIyLG\":[function(require,module,exports) {\nmodule.exports[\"cssLoadWidth\"] = `_5GQP0G_cssLoadWidth`;\nmodule.exports[\"cssLoadWidth\"];\nmodule.exports[\"indicator\"] = `_5GQP0G_indicator`;\n\n},{}],\"gzfIV\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"BottomBar\", ()=>(0, _bottomBarDefault.default));\nvar _bottomBar = require(\"./BottomBar\");\nvar _bottomBarDefault = parcelHelpers.interopDefault(_bottomBar);\n\n},{\"./BottomBar\":\"h8Akg\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"h8Akg\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _core = require(\"@media-ui/core\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nvar _assetCount = require(\"./AssetCount/AssetCount\");\nvar _assetCountDefault = parcelHelpers.interopDefault(_assetCount);\nvar _pagination = require(\"./Pagination/Pagination\");\nvar _paginationDefault = parcelHelpers.interopDefault(_pagination);\nvar _bottomBarModuleCss = require(\"./BottomBar.module.css\");\nvar _bottomBarModuleCssDefault = parcelHelpers.interopDefault(_bottomBarModuleCss);\nconst BottomBar = ()=>{\n const { isInNodeCreationDialog , selectionMode } = (0, _core.useMediaUi)();\n const components = [\n (0, _assetCountDefault.default),\n (0, _paginationDefault.default),\n (0, _featureClipboard.ClipboardToggle)\n ];\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _classnamesDefault.default)((0, _bottomBarModuleCssDefault.default).bottomBar, {\n [(0, _bottomBarModuleCssDefault.default).selectionMode]: isInNodeCreationDialog || selectionMode,\n [(0, _bottomBarModuleCssDefault.default).isInNodeCreationDialog]: isInNodeCreationDialog\n }),\n children: components.map((Component, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(Component, {}, index))\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(BottomBar);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"./AssetCount/AssetCount\":\"04BLa\",\"./Pagination/Pagination\":\"4QfNK\",\"./BottomBar.module.css\":\"hGqKo\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"04BLa\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"../../../hooks\");\nvar _assetCountModuleCss = require(\"./AssetCount.module.css\");\nvar _assetCountModuleCssDefault = parcelHelpers.interopDefault(_assetCountModuleCss);\nconst AssetCount = ()=>{\n const { translate } = (0, _core.useIntl)();\n const assetCount = (0, _hooks.useAssetCount)();\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _assetCountModuleCssDefault.default).assetCount,\n children: [\n assetCount,\n \" \",\n translate(\"pagination.assetCount\", \"assets\")\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetCount);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@media-ui/core\":\"j3EAa\",\"../../../hooks\":\"eJO7U\",\"./AssetCount.module.css\":\"cHkV2\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eJO7U\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"useAssetCount\", ()=>(0, _useAssetCountDefault.default));\nvar _useAssetCount = require(\"./useAssetCount\");\nvar _useAssetCountDefault = parcelHelpers.interopDefault(_useAssetCount);\n\n},{\"./useAssetCount\":\"cN12u\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cN12u\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _react = require(\"react\");\nvar _recoil = require(\"recoil\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _featureAssetUsage = require(\"@media-ui/feature-asset-usage\");\nvar _state = require(\"../state\");\nconst useAssetCount = ()=>{\n const { assetCount } = (0, _hooks.useAssetCountQuery)();\n const mainView = (0, _recoil.useRecoilValue)((0, _state.mainViewState));\n const { called: unusedAssetCountLoaded , load: loadUnusedAssetCount , unusedAssetCount } = (0, _featureAssetUsage.useUnusedAssetCountQuery)();\n const count = mainView === (0, _state.MainViewMode).UNUSED_ASSETS ? unusedAssetCount : assetCount;\n (0, _react.useEffect)(()=>{\n if (mainView === (0, _state.MainViewMode).UNUSED_ASSETS && !unusedAssetCountLoaded) loadUnusedAssetCount();\n }, [\n mainView,\n unusedAssetCountLoaded,\n loadUnusedAssetCount\n ]);\n return count;\n};\nexports.default = useAssetCount;\n\n},{\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/feature-asset-usage\":\"lWHpb\",\"../state\":\"4QYDB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"4QYDB\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"mainViewState\", ()=>(0, _mainViewState.mainViewState));\nparcelHelpers.export(exports, \"MainViewMode\", ()=>(0, _mainViewState.MainViewMode));\nparcelHelpers.export(exports, \"viewModeState\", ()=>(0, _viewModeState.viewModeState));\nparcelHelpers.export(exports, \"VIEW_MODES\", ()=>(0, _viewModeState.VIEW_MODES));\nvar _mainViewState = require(\"./mainViewState\");\nvar _viewModeState = require(\"./viewModeState\");\n\n},{\"./mainViewState\":\"1qula\",\"./viewModeState\":\"ayK68\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"1qula\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"mainViewState\", ()=>mainViewState);\nparcelHelpers.export(exports, \"MainViewMode\", ()=>MainViewMode);\nvar _recoil = require(\"recoil\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nvar _featureAssetUsage = require(\"@media-ui/feature-asset-usage\");\nvar MainViewMode;\n(function(MainViewMode) {\n MainViewMode[MainViewMode[\"DEFAULT\"] = 0] = \"DEFAULT\";\n MainViewMode[MainViewMode[\"CLIPBOARD\"] = 1] = \"CLIPBOARD\";\n MainViewMode[MainViewMode[\"UNUSED_ASSETS\"] = 2] = \"UNUSED_ASSETS\";\n})(MainViewMode || (MainViewMode = {}));\n// FIXME: There should be a single state for the main view mode and selectors to derive the other states from it.\nconst mainViewState = (0, _recoil.selector)({\n key: \"mainViewState\",\n get: ({ get })=>{\n const clipboardVisible = get((0, _featureClipboard.clipboardVisibleState));\n const showUnusedAssets = get((0, _featureAssetUsage.showUnusedAssetsState));\n if (clipboardVisible) return MainViewMode.CLIPBOARD;\n if (showUnusedAssets) return MainViewMode.UNUSED_ASSETS;\n return MainViewMode.DEFAULT;\n }\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@media-ui/feature-asset-usage\":\"lWHpb\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ayK68\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"VIEW_MODES\", ()=>VIEW_MODES);\nparcelHelpers.export(exports, \"viewModeState\", ()=>viewModeState);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar VIEW_MODES;\n(function(VIEW_MODES) {\n VIEW_MODES[\"Thumbnails\"] = \"thumbnails\";\n VIEW_MODES[\"List\"] = \"list\";\n})(VIEW_MODES || (VIEW_MODES = {}));\nconst viewModeState = (0, _recoil.atom)({\n key: \"ViewModeState\",\n default: VIEW_MODES.Thumbnails,\n effects: [\n (0, _state.localStorageEffect)(\"ViewModeState\")\n ]\n});\n\n},{\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"cHkV2\":[function(require,module,exports) {\nmodule.exports[\"assetCount\"] = `ucPgIG_assetCount`;\n\n},{}],\"4QfNK\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _paginationItem = require(\"./PaginationItem\");\nvar _paginationItemDefault = parcelHelpers.interopDefault(_paginationItem);\nvar _state1 = require(\"../../../state\");\nvar _hooks = require(\"../../../hooks\");\nvar _paginationModuleCss = require(\"./Pagination.module.css\");\nvar _paginationModuleCssDefault = parcelHelpers.interopDefault(_paginationModuleCss);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nconst Pagination = ()=>{\n const [currentPage, setCurrentPage] = (0, _recoil.useRecoilState)((0, _state.currentPageState));\n const assetCount = (0, _hooks.useAssetCount)();\n const { pagination: { assetsPerPage , maximumLinks } } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const { translate } = (0, _core.useIntl)();\n const mainView = (0, _recoil.useRecoilValue)((0, _state1.mainViewState));\n const disabled = ![\n (0, _state1.MainViewMode).DEFAULT,\n (0, _state1.MainViewMode).UNUSED_ASSETS\n ].includes(mainView);\n const numberOfPages = Math.ceil(assetCount / assetsPerPage);\n const [displayRange, setDisplayRange] = (0, _react.useState)({\n start: 0,\n end: 0,\n hasLessPages: false,\n hasMorePages: false,\n pages: []\n });\n const handlePageClick = (0, _react.useCallback)((page)=>setCurrentPage(page), [\n setCurrentPage\n ]);\n const handlePreviousPageClick = (0, _react.useCallback)(()=>setCurrentPage((prev)=>prev - 1), [\n setCurrentPage\n ]);\n const handleNextPageClick = (0, _react.useCallback)(()=>setCurrentPage((prev)=>prev + 1), [\n setCurrentPage\n ]);\n // Calculates visible display range\n (0, _react.useMemo)(()=>{\n const maxLinks = Math.min(maximumLinks, numberOfPages);\n const delta = Math.floor(maxLinks / 2);\n let start = currentPage - delta;\n let end = currentPage + delta + (maxLinks % 2 === 0 ? 1 : 0);\n if (start < 1) end -= start - 1;\n if (end > numberOfPages) start -= end - numberOfPages;\n start = Math.max(start, 1);\n end = Math.min(end, numberOfPages);\n const pages = [\n ...Array(end - start + 1)\n ].map((_, i)=>i + start);\n setDisplayRange({\n start,\n end,\n hasLessPages: start > 2,\n hasMorePages: end + 1 < numberOfPages,\n pages\n });\n }, [\n maximumLinks,\n numberOfPages,\n currentPage\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"nav\", {\n className: (0, _paginationModuleCssDefault.default).pagination,\n children: numberOfPages > 0 && /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"ol\", {\n className: (0, _classnamesDefault.default)((0, _paginationModuleCssDefault.default).list, disabled && (0, _paginationModuleCssDefault.default).disabled),\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _paginationItemDefault.default), {\n icon: \"angle-left\",\n title: translate(\"pagination.previousPageTitle\", `Go to previous page`),\n onClick: handlePreviousPageClick,\n disabled: disabled || currentPage <= 1\n }),\n displayRange.start > 1 && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _paginationItemDefault.default), {\n title: translate(\"pagination.firstPageTitle\", `Go to first page`),\n onClick: handlePageClick,\n disabled: disabled,\n page: 1\n }),\n displayRange.hasLessPages && /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"li\", {\n className: (0, _paginationModuleCssDefault.default).ellipsis,\n children: \"…\"\n }),\n displayRange.pages.map((page)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _paginationItemDefault.default), {\n selected: currentPage === page,\n onClick: handlePageClick,\n disabled: disabled,\n title: translate(\"pagination.page\", `Go to page ${page}`, [\n page\n ]),\n page: page\n }, page)),\n displayRange.hasMorePages && /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"li\", {\n className: (0, _paginationModuleCssDefault.default).ellipsis,\n children: \"…\"\n }),\n displayRange.end < numberOfPages && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _paginationItemDefault.default), {\n title: translate(\"pagination.lastPageTitle\", `Go to last page`),\n onClick: handlePageClick,\n disabled: disabled,\n page: numberOfPages\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _paginationItemDefault.default), {\n icon: \"angle-right\",\n title: translate(\"pagination.nextPageTitle\", `Go to next page`),\n onClick: handleNextPageClick,\n disabled: disabled || currentPage === numberOfPages\n })\n ]\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(Pagination);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"./PaginationItem\":\"51fiT\",\"../../../state\":\"4QYDB\",\"../../../hooks\":\"eJO7U\",\"./Pagination.module.css\":\"3masv\",\"classnames\":\"hVGzI\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"51fiT\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _paginationItemModuleCss = require(\"./PaginationItem.module.css\");\nvar _paginationItemModuleCssDefault = parcelHelpers.interopDefault(_paginationItemModuleCss);\nconst PaginationItem = ({ title , label , onClick , page =null , selected =false , disabled =false , icon })=>{\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"li\", {\n className: (0, _classnamesDefault.default)((0, _paginationItemModuleCssDefault.default).item, selected && (0, _paginationItemModuleCssDefault.default).selected),\n children: icon ? /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n icon: icon,\n disabled: disabled,\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"brand\",\n title: title,\n onClick: ()=>onClick(page)\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Button), {\n icon: icon,\n disabled: disabled,\n size: \"regular\",\n style: selected ? \"brand\" : \"transparent\",\n hoverStyle: \"brand\",\n title: title,\n onClick: ()=>onClick(page),\n children: label || page\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(PaginationItem);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"@neos-project/react-ui-components\":\"hWxzt\",\"./PaginationItem.module.css\":\"dTTOH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dTTOH\":[function(require,module,exports) {\nmodule.exports[\"item\"] = `sNJnsW_item`;\n\n},{}],\"3masv\":[function(require,module,exports) {\nmodule.exports[\"disabled\"] = `gZKlGG_disabled`;\nmodule.exports[\"ellipsis\"] = `gZKlGG_ellipsis`;\nmodule.exports[\"list\"] = `gZKlGG_list`;\nmodule.exports[\"pagination\"] = `gZKlGG_pagination`;\n\n},{}],\"hGqKo\":[function(require,module,exports) {\nmodule.exports[\"bottomBar\"] = `VMKMXG_bottomBar`;\nmodule.exports[\"isInNodeCreationDialog\"] = `VMKMXG_isInNodeCreationDialog`;\nmodule.exports[\"selectionMode\"] = `VMKMXG_selectionMode`;\n\n},{}],\"92ap4\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"TopBar\", ()=>(0, _topBarDefault.default));\nvar _topBar = require(\"./TopBar\");\nvar _topBarDefault = parcelHelpers.interopDefault(_topBar);\n\n},{\"./TopBar\":\"ipjmZ\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"ipjmZ\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _core = require(\"@media-ui/core\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nvar _sortOrderSelector = require(\"./SortOrderSelector\");\nvar _sortOrderSelectorDefault = parcelHelpers.interopDefault(_sortOrderSelector);\nvar _assetsFilter = require(\"./AssetsFilter/AssetsFilter\");\nvar _assetsFilterDefault = parcelHelpers.interopDefault(_assetsFilter);\nvar _viewModeSelector = require(\"./ViewModeSelector\");\nvar _viewModeSelectorDefault = parcelHelpers.interopDefault(_viewModeSelector);\nvar _searchBox = require(\"./SearchBox\");\nvar _searchBoxDefault = parcelHelpers.interopDefault(_searchBox);\nvar _topBarModuleCss = require(\"./TopBar.module.css\");\nvar _topBarModuleCssDefault = parcelHelpers.interopDefault(_topBarModuleCss);\nconst TopBar = ()=>{\n const { selectionMode } = (0, _core.useMediaUi)();\n // TODO: Implement and use a component registry\n const components = [\n (0, _featureClipboard.ClipboardActions),\n (0, _searchBoxDefault.default),\n (0, _assetsFilterDefault.default),\n (0, _sortOrderSelectorDefault.default),\n (0, _viewModeSelectorDefault.default)\n ];\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _classnamesDefault.default)((0, _topBarModuleCssDefault.default).topBar, selectionMode && (0, _topBarModuleCssDefault.default).topBarSelectionMode),\n children: components.map((Component, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(Component, {}, index))\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(TopBar);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"classnames\":\"hVGzI\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"./SortOrderSelector\":\"hifqw\",\"./AssetsFilter/AssetsFilter\":\"6QunU\",\"./ViewModeSelector\":\"9801v\",\"./SearchBox\":\"1Kpdk\",\"./TopBar.module.css\":\"5CETV\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hifqw\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _selectedSortOrderState = require(\"@media-ui/core/src/state/selectedSortOrderState\");\nvar _sortOrderSelectorModuleCss = require(\"./SortOrderSelector.module.css\");\nvar _sortOrderSelectorModuleCssDefault = parcelHelpers.interopDefault(_sortOrderSelectorModuleCss);\nvar _state = require(\"../../state\");\nconst SortOrderSelector = ()=>{\n const { isInNodeCreationDialog , selectionMode } = (0, _core.useMediaUi)();\n const [sortOrderState, setSortOrderState] = (0, _recoil.useRecoilState)((0, _selectedSortOrderState.selectedSortOrderState));\n const { translate } = (0, _core.useIntl)();\n const hideOptionIcon = isInNodeCreationDialog || selectionMode;\n const handleChangeSortBy = (0, _react.useCallback)((sortBy)=>{\n setSortOrderState({\n ...sortOrderState,\n sortBy\n });\n }, [\n sortOrderState,\n setSortOrderState\n ]);\n const mainView = (0, _recoil.useRecoilValue)((0, _state.mainViewState));\n const handleSwitchSortDirection = (0, _react.useCallback)(()=>{\n setSortOrderState({\n ...sortOrderState,\n sortDirection: sortOrderState.sortDirection === (0, _selectedSortOrderState.SORT_DIRECTION).Asc ? (0, _selectedSortOrderState.SORT_DIRECTION).Desc : (0, _selectedSortOrderState.SORT_DIRECTION).Asc\n });\n }, [\n sortOrderState,\n setSortOrderState\n ]);\n const sortByOptions = (0, _react.useMemo)(()=>{\n return [\n {\n value: (0, _selectedSortOrderState.SORT_BY).LastModified,\n label: translate(\"sortingState.sortBy.values.lastModified\", \"Last Modified\"),\n icon: hideOptionIcon ? \"\" : \"calendar\"\n },\n {\n value: (0, _selectedSortOrderState.SORT_BY).Name,\n label: translate(\"sortingState.sortBy.values.name\", \"Name\"),\n icon: hideOptionIcon ? \"\" : \"font\"\n },\n {\n value: (0, _selectedSortOrderState.SORT_BY).Size,\n label: translate(\"sortingState.sortBy.values.size\", \"File size\"),\n icon: hideOptionIcon ? \"\" : \"weight-hanging\"\n }\n ];\n }, [\n translate,\n hideOptionIcon\n ]);\n if (![\n (0, _state.MainViewMode).DEFAULT,\n (0, _state.MainViewMode).UNUSED_ASSETS\n ].includes(mainView)) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n className: (0, _sortOrderSelectorModuleCssDefault.default).sortingState,\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _sortOrderSelectorModuleCssDefault.default).selectBox,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.SelectBox), {\n className: (0, _sortOrderSelectorModuleCssDefault.default).selectBox,\n options: Object.values(sortByOptions),\n onValueChange: handleChangeSortBy,\n value: sortOrderState.sortBy,\n optionValueField: \"value\"\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n icon: sortOrderState.sortDirection === (0, _selectedSortOrderState.SORT_DIRECTION).Asc ? \"sort-amount-up\" : \"sort-amount-down\",\n size: \"regular\",\n title: translate(`sortingState.dortOrder.value.${sortOrderState.sortDirection === (0, _selectedSortOrderState.SORT_DIRECTION).Asc ? (0, _selectedSortOrderState.SORT_DIRECTION).Desc : (0, _selectedSortOrderState.SORT_DIRECTION).Asc}`, `Switch sort direction`),\n style: \"neutral\",\n hoverStyle: \"brand\",\n onClick: handleSwitchSortDirection\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(SortOrderSelector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state/selectedSortOrderState\":\"8xo0U\",\"./SortOrderSelector.module.css\":\"bWrfr\",\"../../state\":\"4QYDB\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bWrfr\":[function(require,module,exports) {\nmodule.exports[\"selectBox\"] = `yiv2CG_selectBox`;\nmodule.exports[\"sortingState\"] = `yiv2CG_sortingState`;\n\n},{}],\"6QunU\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _core = require(\"@media-ui/core\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _state1 = require(\"../../../state\");\nvar _mediaTypeFilter = require(\"./MediaTypeFilter\");\nvar _mediaTypeFilterDefault = parcelHelpers.interopDefault(_mediaTypeFilter);\nvar _assetTypeFilter = require(\"./AssetTypeFilter\");\nvar _assetTypeFilterDefault = parcelHelpers.interopDefault(_assetTypeFilter);\nvar _assetsFilterModuleCss = require(\"./AssetsFilter.module.css\");\nvar _assetsFilterModuleCssDefault = parcelHelpers.interopDefault(_assetsFilterModuleCss);\nconst AssetsFilter = ()=>{\n const { translate } = (0, _core.useIntl)();\n const mainView = (0, _recoil.useRecoilValue)((0, _state1.mainViewState));\n const assetTypeFilter = (0, _recoil.useRecoilValue)((0, _state.selectedAssetTypeState));\n const mediaTypeFilter = (0, _recoil.useRecoilValue)((0, _state.selectedMediaTypeState));\n const detailsRef = (0, _react.useRef)();\n // TODO: Implement and use a component registry\n const components = [\n (0, _assetTypeFilterDefault.default),\n (0, _mediaTypeFilterDefault.default)\n ];\n (0, _react.useEffect)(()=>{\n // Close the details element when a media type filter is selected\n if (detailsRef.current?.open) detailsRef.current.open = false;\n }, [\n mediaTypeFilter\n ]);\n if (![\n (0, _state1.MainViewMode).DEFAULT,\n (0, _state1.MainViewMode).UNUSED_ASSETS\n ].includes(mainView)) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"details\", {\n ref: detailsRef,\n className: (0, _classnamesDefault.default)((0, _assetsFilterModuleCssDefault.default).assetsFilter, (assetTypeFilter || mediaTypeFilter) && (0, _assetsFilterModuleCssDefault.default).active),\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"summary\", {\n title: translate(\"AssetsFilter.title\", \"Toggle asset filters\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.IconLabel), {\n icon: \"filter\",\n label: \"Filter\"\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _assetsFilterModuleCssDefault.default).filterList,\n children: components.map((Component, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)(Component, {}, index))\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetsFilter);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"classnames\":\"hVGzI\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/components\":\"5LFSk\",\"@media-ui/core/src/state\":\"jV1GH\",\"../../../state\":\"4QYDB\",\"./MediaTypeFilter\":\"aSwWH\",\"./AssetTypeFilter\":\"bnrpW\",\"./AssetsFilter.module.css\":\"hN2Wn\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"aSwWH\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetUsage = require(\"@media-ui/feature-asset-usage\");\nvar _assetsFilterModuleCss = require(\"./AssetsFilter.module.css\");\nvar _assetsFilterModuleCssDefault = parcelHelpers.interopDefault(_assetsFilterModuleCss);\nconst MediaTypeFilter = ()=>{\n const { translate } = (0, _core.useIntl)();\n const { mediaTypeFilterOptions } = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const [mediaTypeFilter, setMediaTypeFilter] = (0, _recoil.useRecoilState)((0, _state.selectedMediaTypeState));\n const assetTypeFilter = (0, _recoil.useRecoilValue)((0, _state.selectedAssetTypeState));\n const setCurrentPage = (0, _recoil.useSetRecoilState)((0, _state.currentPageState));\n const showUnusedAssets = (0, _recoil.useRecoilValue)((0, _featureAssetUsage.showUnusedAssetsState));\n const constraints = (0, _recoil.useRecoilValue)((0, _state.constraintsState));\n const currentValue = mediaTypeFilter;\n const onValueChange = (0, _react.useCallback)((value)=>{\n setMediaTypeFilter(value);\n setCurrentPage(1);\n }, [\n setCurrentPage,\n setMediaTypeFilter\n ]);\n const options = (0, _react.useMemo)(()=>{\n // TODO: Improve the state definition so that this is not so complicated\n if (!mediaTypeFilterOptions || !assetTypeFilter || assetTypeFilter == \"all\" || showUnusedAssets) return [];\n const optionsByType = mediaTypeFilterOptions[assetTypeFilter];\n return Object.keys(optionsByType).filter((mediaType)=>!constraints.mediaTypes || constraints.mediaTypes?.includes(mediaType)).map((mediaType)=>({\n label: optionsByType[mediaType],\n value: mediaType\n }));\n }, [\n assetTypeFilter,\n constraints.mediaTypes,\n mediaTypeFilterOptions,\n showUnusedAssets\n ]);\n if (options.length === 0) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _assetsFilterModuleCssDefault.default).typeFilter,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.SelectBox), {\n className: (0, _assetsFilterModuleCssDefault.default).selectBox,\n options: options,\n onValueChange: onValueChange,\n value: currentValue,\n allowEmpty: !constraints.mediaTypes || constraints.mediaTypes.length > 1,\n placeholder: translate(\"typeFilter.assetType.values.all\", \"Mediatype\"),\n optionValueField: \"value\"\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(MediaTypeFilter);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-usage\":\"lWHpb\",\"./AssetsFilter.module.css\":\"hN2Wn\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"hN2Wn\":[function(require,module,exports) {\nmodule.exports[\"active\"] = `PUFj9a_active`;\nmodule.exports[\"assetsFilter\"] = `PUFj9a_assetsFilter`;\nmodule.exports[\"filterList\"] = `PUFj9a_filterList`;\nmodule.exports[\"selectBox\"] = `PUFj9a_selectBox`;\nmodule.exports[\"typeFilter\"] = `PUFj9a_typeFilter`;\n\n},{}],\"bnrpW\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureAssetUsage = require(\"@media-ui/feature-asset-usage\");\nvar _assetsFilterModuleCss = require(\"./AssetsFilter.module.css\");\nvar _assetsFilterModuleCssDefault = parcelHelpers.interopDefault(_assetsFilterModuleCss);\nconst UNUSED_FILTER_VALUE = \"unused\";\nconst AssetTypeFilter = ()=>{\n const featureFlags = (0, _recoil.useRecoilValue)((0, _state.featureFlagsState));\n const { assetType: assetTypeConstraint } = (0, _recoil.useRecoilValue)((0, _state.constraintsState));\n const [assetTypeFilter, setAssetTypeFilter] = (0, _recoil.useRecoilState)((0, _state.selectedAssetTypeState));\n const setMediaTypeFilter = (0, _recoil.useSetRecoilState)((0, _state.selectedMediaTypeState));\n const [showUnusedAssets, setShowUnusedAssets] = (0, _recoil.useRecoilState)((0, _featureAssetUsage.showUnusedAssetsState));\n const setCurrentPage = (0, _recoil.useSetRecoilState)((0, _state.currentPageState));\n const { translate } = (0, _core.useIntl)();\n const currentValue = showUnusedAssets ? UNUSED_FILTER_VALUE : assetTypeFilter;\n const onValueChange = (0, _react.useCallback)((value)=>{\n setShowUnusedAssets(value === \"unused\");\n setMediaTypeFilter(\"\");\n if (value !== UNUSED_FILTER_VALUE) setAssetTypeFilter(value);\n setCurrentPage(1);\n }, [\n setShowUnusedAssets,\n setCurrentPage,\n setAssetTypeFilter,\n setMediaTypeFilter\n ]);\n const assetTypeOptions = (0, _react.useMemo)(()=>{\n const notAll = assetTypeConstraint && assetTypeConstraint !== \"all\";\n const options = {\n video: {\n value: \"video\",\n label: translate(\"typeFilter.assetType.values.video\", \"Video\"),\n disabled: notAll && assetTypeConstraint !== \"video\"\n },\n audio: {\n value: \"audio\",\n label: translate(\"typeFilter.assetType.values.audio\", \"Audio\"),\n disabled: notAll && assetTypeConstraint !== \"audio\"\n },\n image: {\n value: \"image\",\n label: translate(\"typeFilter.assetType.values.image\", \"Image\"),\n disabled: notAll && assetTypeConstraint !== \"image\"\n },\n // TODO: The Media API currently only knows \"Document\" internally which is not a valid mimetype, we should \"translate\" this value on the internal API side and only use \"application\"\n document: {\n value: \"document\",\n label: translate(\"typeFilter.assetType.values.document\", \"Document\"),\n disabled: notAll && assetTypeConstraint !== \"document\"\n }\n };\n // TODO: Move the unused filter into the collection tree as \"smart/pseudo collection\"\n if (featureFlags.queryAssetUsage) options[UNUSED_FILTER_VALUE] = {\n value: UNUSED_FILTER_VALUE,\n label: translate(\"typeFilter.assetType.values.unused\", \"Unused\"),\n disabled: notAll\n };\n return options;\n }, [\n translate,\n featureFlags,\n assetTypeConstraint\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _assetsFilterModuleCssDefault.default).typeFilter,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.SelectBox), {\n className: (0, _assetsFilterModuleCssDefault.default).selectBox,\n options: Object.values(assetTypeOptions),\n onValueChange: onValueChange,\n value: currentValue,\n allowEmpty: !assetTypeConstraint || assetTypeConstraint === \"all\",\n placeholder: translate(\"typeFilter.assetType.values.all\", \"All\"),\n optionValueField: \"value\"\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetTypeFilter);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-asset-usage\":\"lWHpb\",\"./AssetsFilter.module.css\":\"hN2Wn\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9801v\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"../../state\");\nvar _viewModeSelectorModuleCss = require(\"./ViewModeSelector.module.css\");\nvar _viewModeSelectorModuleCssDefault = parcelHelpers.interopDefault(_viewModeSelectorModuleCss);\nconst ViewModeSelector = ()=>{\n const { translate } = (0, _core.useIntl)();\n const [viewModeSelection, setViewModeSelection] = (0, _recoil.useRecoilState)((0, _state.viewModeState));\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _viewModeSelectorModuleCssDefault.default).viewModeSelector,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n icon: viewModeSelection === (0, _state.VIEW_MODES).List ? \"th\" : \"th-list\",\n size: \"regular\",\n title: translate(`viewModeSelector.viewMode.${viewModeSelection === (0, _state.VIEW_MODES).List ? (0, _state.VIEW_MODES).Thumbnails : (0, _state.VIEW_MODES).List}`, `Switch mode`),\n style: \"neutral\",\n hoverStyle: \"brand\",\n onClick: ()=>setViewModeSelection((prev)=>prev === (0, _state.VIEW_MODES).List ? (0, _state.VIEW_MODES).Thumbnails : (0, _state.VIEW_MODES).List)\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ViewModeSelector);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"../../state\":\"4QYDB\",\"./ViewModeSelector.module.css\":\"lPz4j\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"lPz4j\":[function(require,module,exports) {\nmodule.exports[\"selectBox\"] = `_5Oef7G_selectBox`;\nmodule.exports[\"viewModeSelector\"] = `_5Oef7G_viewModeSelector`;\n\n},{}],\"1Kpdk\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _searchTerm = require(\"@media-ui/core/src/domain/SearchTerm\");\nvar _state1 = require(\"../../state\");\nvar _searchBoxModuleCss = require(\"./SearchBox.module.css\");\nvar _searchBoxModuleCssDefault = parcelHelpers.interopDefault(_searchBoxModuleCss);\nconst SearchBox = ()=>{\n const [searchTerm, setSearchTerm] = (0, _recoil.useRecoilState)((0, _state.searchTermState));\n const setCurrentPage = (0, _recoil.useSetRecoilState)((0, _state.currentPageState));\n const [searchValue, setSearchValue] = (0, _react.useState)(searchTerm.toString());\n const { translate } = (0, _core.useIntl)();\n const mainView = (0, _recoil.useRecoilValue)((0, _state1.mainViewState));\n const handleSearch = (0, _react.useCallback)(()=>{\n setSearchTerm((0, _searchTerm.SearchTerm).fromString(searchValue));\n setCurrentPage(1);\n }, [\n searchValue,\n setCurrentPage,\n setSearchTerm\n ]);\n if (mainView !== (0, _state1.MainViewMode).DEFAULT) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _searchBoxModuleCssDefault.default).searchBox,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.TextInput), {\n value: searchValue,\n type: \"search\",\n onChange: (value)=>setSearchValue(value),\n onEnterKey: handleSearch,\n placeholder: translate(\"searchBox.placeholder\", \"Search\")\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(SearchBox);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/core/src/domain/SearchTerm\":\"bnHXU\",\"../../state\":\"4QYDB\",\"./SearchBox.module.css\":\"0YpTH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"0YpTH\":[function(require,module,exports) {\nmodule.exports[\"searchBox\"] = `rxR0KW_searchBox`;\n\n},{}],\"5CETV\":[function(require,module,exports) {\nmodule.exports[\"topBar\"] = `h7QbgG_topBar`;\nmodule.exports[\"topBar--selectionMode\"] = `h7QbgG_topBar--selectionMode`;\n\n},{}],\"j5uvE\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"ThumbnailView\", ()=>(0, _thumbnailViewDefault.default));\nparcelHelpers.export(exports, \"Thumbnail\", ()=>(0, _thumbnailDefault.default));\nparcelHelpers.export(exports, \"ListView\", ()=>(0, _listViewDefault.default));\nparcelHelpers.export(exports, \"ListViewItem\", ()=>(0, _listViewItemDefault.default));\nparcelHelpers.export(exports, \"AssetActions\", ()=>(0, _assetActionsDefault.default));\nparcelHelpers.export(exports, \"Main\", ()=>(0, _mainDefault.default));\nvar _assetActions = require(\"./AssetActions\");\nvar _assetActionsDefault = parcelHelpers.interopDefault(_assetActions);\nvar _listView = require(\"./ListView\");\nvar _listViewDefault = parcelHelpers.interopDefault(_listView);\nvar _listViewItem = require(\"./ListViewItem\");\nvar _listViewItemDefault = parcelHelpers.interopDefault(_listViewItem);\nvar _main = require(\"./Main\");\nvar _mainDefault = parcelHelpers.interopDefault(_main);\nvar _thumbnail = require(\"./Thumbnail\");\nvar _thumbnailDefault = parcelHelpers.interopDefault(_thumbnail);\nvar _thumbnailView = require(\"./ThumbnailView\");\nvar _thumbnailViewDefault = parcelHelpers.interopDefault(_thumbnailView);\n\n},{\"./AssetActions\":\"bRcTI\",\"./ListView\":\"9qgiA\",\"./ListViewItem\":\"1ccnf\",\"./Main\":\"6i7no\",\"./Thumbnail\":\"ghtGP\",\"./ThumbnailView\":\"8gC2C\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bRcTI\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _featureAssetPreview = require(\"@media-ui/feature-asset-preview\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nconst AssetActions = ({ asset })=>{\n const { translate } = (0, _core.useIntl)();\n const Notify = (0, _core.useNotify)();\n const { approvalAttainmentStrategy } = (0, _core.useMediaUi)();\n const setSelectedAssetForPreview = (0, _recoil.useSetRecoilState)((0, _featureAssetPreview.selectedAssetForPreviewState));\n const { importAsset } = (0, _hooks.useImportAsset)();\n const { deleteAsset } = (0, _hooks.useDeleteAsset)();\n const [isInClipboard, toggleClipboardState] = (0, _recoil.useRecoilState)((0, _featureClipboard.clipboardItemState)({\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n }));\n // TODO: Optimize rendering this component when hooks change, as it takes quite a bit of time\n const onImportAsset = (0, _react.useCallback)(()=>{\n importAsset({\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n }).then(()=>{\n Notify.ok(translate(\"assetActions.import.success\", \"Asset was successfully imported\"));\n }).catch((error)=>{\n Notify.error(translate(\"assetActions.import.error\", \"Failed to import asset\"), error.message);\n });\n }, [\n importAsset,\n asset,\n Notify,\n translate\n ]);\n const onDeleteAsset = (0, _react.useCallback)(async (asset)=>{\n const canDeleteAsset = await approvalAttainmentStrategy.obtainApprovalToDeleteAsset({\n asset\n });\n if (canDeleteAsset) try {\n await deleteAsset({\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n });\n Notify.ok(translate(\"action.deleteAsset.success\", \"The asset has been deleted\"));\n return true;\n } catch ({ message }) {\n Notify.error(translate(\"action.deleteAsset.error\", \"Error while trying to delete the asset\"), message);\n }\n return false;\n }, [\n Notify,\n translate,\n deleteAsset,\n approvalAttainmentStrategy\n ]);\n if (!asset) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _jsxRuntime.Fragment), {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n title: translate(\"itemActions.preview\", \"Preview asset\"),\n icon: \"expand-alt\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"brand\",\n onClick: ()=>setSelectedAssetForPreview({\n assetId: asset.id,\n assetSourceId: asset.assetSource.id\n })\n }),\n !asset.imported && !asset.localId && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n title: translate(\"itemActions.import\", \"Import asset\"),\n icon: \"cloud-download-alt\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"brand\",\n onClick: onImportAsset\n }),\n !asset.assetSource.readOnly && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n title: asset.isInUse ? translate(\"itemActions.delete.disabled\", \"Cannot delete an asset that is in use\") : translate(\"itemActions.delete\", \"Delete asset\"),\n disabled: asset.isInUse,\n icon: \"trash\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"error\",\n onClick: ()=>onDeleteAsset(asset)\n }),\n asset.file?.url && /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"a\", {\n href: asset.file.url,\n download: true,\n title: translate(\"itemActions.download\", \"Download asset\"),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n icon: \"download\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"success\"\n })\n }),\n asset.localId && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n title: translate(\"itemActions.copyToClipboard\", \"Copy to clipboard\"),\n icon: isInClipboard ? \"clipboard-check\" : \"clipboard\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"brand\",\n className: isInClipboard ? \"button--active\" : \"\",\n onClick: toggleClipboardState\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(AssetActions);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/feature-asset-preview\":\"gaY0P\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"9qgiA\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _featureAssetPreview = require(\"@media-ui/feature-asset-preview\");\nvar _index = require(\"./index\");\nvar _listViewModuleCss = require(\"./ListView.module.css\");\nvar _listViewModuleCssDefault = parcelHelpers.interopDefault(_listViewModuleCss);\nconst ListView = ({ assetIdentities })=>{\n const { isInNodeCreationDialog } = (0, _core.useMediaUi)();\n const { translate } = (0, _core.useIntl)();\n const setSelectedAssetForPreview = (0, _recoil.useSetRecoilState)((0, _featureAssetPreview.selectedAssetForPreviewState));\n const selectAsset = (0, _hooks.useSelectAsset)();\n const onSelect = (0, _react.useCallback)((assetIdentity, openPreview = false)=>{\n if (openPreview) setSelectedAssetForPreview(assetIdentity);\n else selectAsset(assetIdentity);\n }, [\n setSelectedAssetForPreview,\n selectAsset\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"section\", {\n className: (0, _classnamesDefault.default)((0, _listViewModuleCssDefault.default).listView, isInNodeCreationDialog && (0, _listViewModuleCssDefault.default).listViewFullHeight),\n children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"table\", {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"thead\", {\n children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"tr\", {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"th\", {\n className: (0, _listViewModuleCssDefault.default).tableHeader\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"th\", {\n className: (0, _listViewModuleCssDefault.default).tableHeader,\n children: translate(\"thumbnailView.header.name\", \"Name\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"th\", {\n className: (0, _listViewModuleCssDefault.default).tableHeader,\n children: translate(\"thumbnailView.header.lastModified\", \"Last Modified\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"th\", {\n className: (0, _listViewModuleCssDefault.default).tableHeader,\n children: translate(\"thumbnailView.header.fileSize\", \"File size\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"th\", {\n className: (0, _listViewModuleCssDefault.default).tableHeader,\n children: translate(\"thumbnailView.header.mediaType\", \"Type\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"th\", {\n className: (0, _listViewModuleCssDefault.default).tableHeader\n })\n ]\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"tbody\", {\n children: assetIdentities.map((assetIdentity, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.ListViewItem), {\n assetIdentity: assetIdentity,\n onSelect: onSelect\n }, index))\n })\n ]\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ListView);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"classnames\":\"hVGzI\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/feature-asset-preview\":\"gaY0P\",\"./index\":\"j5uvE\",\"./ListView.module.css\":\"dci2O\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dci2O\":[function(require,module,exports) {\nmodule.exports[\"listView\"] = `Rs4dJq_listView`;\nmodule.exports[\"listView--fullHeight\"] = `Rs4dJq_listView--fullHeight`;\nmodule.exports[\"tableHeader\"] = `Rs4dJq_tableHeader`;\n\n},{}],\"1ccnf\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _helper = require(\"@media-ui/core/src/helper\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _index = require(\"./index\");\nvar _missingAssetActions = require(\"./MissingAssetActions\");\nvar _missingAssetActionsDefault = parcelHelpers.interopDefault(_missingAssetActions);\nvar _listViewItemModuleCss = require(\"./ListViewItem.module.css\");\nvar _listViewItemModuleCssDefault = parcelHelpers.interopDefault(_listViewItemModuleCss);\nconst dateFormatOptions = {\n weekday: \"short\",\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\"\n};\nconst listViewItemSelectionState = (0, _recoil.selectorFamily)({\n key: \"ListViewItemSelection\",\n get: (assetId)=>({ get })=>{\n return get((0, _state.selectedAssetIdState))?.assetId === assetId;\n }\n});\nconst ListViewItem = ({ assetIdentity , onSelect })=>{\n const { dummyImage , isAssetSelectable , selectionMode } = (0, _core.useMediaUi)();\n const { asset , loading } = (0, _hooks.useAssetQuery)(assetIdentity);\n const isSelected = (0, _recoil.useRecoilValue)(listViewItemSelectionState(assetIdentity.assetId));\n const canBeSelected = (0, _react.useMemo)(()=>isAssetSelectable(asset), [\n asset,\n isAssetSelectable\n ]);\n const onSelectItem = (0, _react.useCallback)(()=>onSelect(assetIdentity, isSelected && !selectionMode), [\n onSelect,\n assetIdentity,\n isSelected,\n selectionMode\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"tr\", {\n className: (0, _classnamesDefault.default)((0, _listViewItemModuleCssDefault.default).listViewItem, isSelected && (0, _listViewItemModuleCssDefault.default).selected),\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"td\", {\n className: (0, _listViewItemModuleCssDefault.default).previewColumn,\n onClick: onSelectItem,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"picture\", {\n children: canBeSelected ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"img\", {\n src: asset?.thumbnailUrl || dummyImage,\n alt: asset?.label,\n width: 40,\n height: 36\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Icon), {\n icon: \"ban\",\n color: \"error\"\n })\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"td\", {\n className: (0, _listViewItemModuleCssDefault.default).labelColumn,\n onClick: onSelectItem,\n children: asset && /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.AssetLabel), {\n label: asset.label\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"td\", {\n className: (0, _listViewItemModuleCssDefault.default).lastModifiedColumn,\n onClick: onSelectItem,\n children: asset && new Date(asset.lastModified).toLocaleString([], dateFormatOptions)\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"td\", {\n className: (0, _listViewItemModuleCssDefault.default).fileSizeColumn,\n onClick: onSelectItem,\n children: asset && (0, _helper.humanFileSize)(asset.file.size)\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"td\", {\n className: (0, _listViewItemModuleCssDefault.default).mediaTypeColumn,\n onClick: onSelectItem,\n title: asset?.file.mediaType,\n children: asset?.file.mediaType\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"td\", {\n className: (0, _listViewItemModuleCssDefault.default).actionsColumn,\n children: !loading && (asset ? /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.AssetActions), {\n asset: asset\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _missingAssetActionsDefault.default), {\n assetIdentity: assetIdentity\n }))\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ListViewItem, (prev, next)=>prev.assetIdentity.assetId === next.assetIdentity.assetId);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"classnames\":\"hVGzI\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/core/src/helper\":\"80jPI\",\"@media-ui/core/src/components\":\"5LFSk\",\"./index\":\"j5uvE\",\"./MissingAssetActions\":\"bWiVp\",\"./ListViewItem.module.css\":\"gxh3o\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"bWiVp\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nconst MissingAssetActions = ({ assetIdentity })=>{\n const { translate } = (0, _core.useIntl)();\n const [inClipboard, toggleClipboardState] = (0, _recoil.useRecoilState)((0, _featureClipboard.clipboardItemState)(assetIdentity));\n // Skip rendering if it's not in the clipboard as we only have one possible action currently\n if (!inClipboard) return null;\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.IconButton), {\n title: translate(\"itemActions.removeFromClipboard\", \"Remove from clipboard\"),\n icon: \"trash\",\n size: \"regular\",\n style: \"transparent\",\n hoverStyle: \"warn\",\n onClick: toggleClipboardState\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(MissingAssetActions);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gxh3o\":[function(require,module,exports) {\nmodule.exports[\"textColumn\"] = `_0hU7dG_textColumn`;\nmodule.exports[\"actionsColumn\"] = `_0hU7dG_actionsColumn ${module.exports[\"textColumn\"]}`;\nmodule.exports[\"fileSizeColumn\"] = `_0hU7dG_fileSizeColumn ${module.exports[\"textColumn\"]}`;\nmodule.exports[\"labelColumn\"] = `_0hU7dG_labelColumn ${module.exports[\"textColumn\"]}`;\nmodule.exports[\"lastModifiedColumn\"] = `_0hU7dG_lastModifiedColumn ${module.exports[\"textColumn\"]}`;\nmodule.exports[\"listViewItem\"] = `_0hU7dG_listViewItem`;\nmodule.exports[\"mediaTypeColumn\"] = `_0hU7dG_mediaTypeColumn ${module.exports[\"textColumn\"]}`;\nmodule.exports[\"previewColumn\"] = `_0hU7dG_previewColumn`;\nmodule.exports[\"selected\"] = `_0hU7dG_selected`;\n\n},{}],\"6i7no\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _featureClipboard = require(\"@media-ui/feature-clipboard\");\nvar _featureAssetUsage = require(\"@media-ui/feature-asset-usage\");\nvar _index = require(\"./index\");\nvar _loadingLabel = require(\"../LoadingLabel\");\nvar _loadingLabelDefault = parcelHelpers.interopDefault(_loadingLabel);\nvar _state1 = require(\"../../state\");\nvar _mainModuleCss = require(\"./Main.module.css\");\nvar _mainModuleCssDefault = parcelHelpers.interopDefault(_mainModuleCss);\nconst Main = ()=>{\n const viewModeSelection = (0, _recoil.useRecoilValue)((0, _state1.viewModeState));\n const { assets: unusedAssets } = (0, _featureAssetUsage.useUnusedAssetsQuery)();\n const clipboard = (0, _recoil.useRecoilValue)((0, _featureClipboard.clipboardState));\n const mainView = (0, _recoil.useRecoilValue)((0, _state1.mainViewState));\n const setClipboardVisible = (0, _recoil.useSetRecoilState)((0, _featureClipboard.clipboardVisibleState));\n const searchTerm = (0, _recoil.useRecoilValue)((0, _state.searchTermState));\n const { translate } = (0, _core.useIntl)();\n const availableAssetIdentities = (0, _recoil.useRecoilValue)((0, _state.availableAssetIdentitiesState));\n const [visibleAssetIdentities, setVisibleAssetIdentities] = (0, _react.useState)(availableAssetIdentities);\n const queriedUnusedAssets = (0, _react.useMemo)(()=>{\n return unusedAssets.filter((asset)=>asset?.id).map(({ id , assetSource })=>{\n return {\n assetId: id,\n assetSourceId: assetSource.id\n };\n });\n }, [\n unusedAssets\n ]);\n (0, _react.useEffect)(()=>{\n if (mainView === (0, _state1.MainViewMode).CLIPBOARD) setVisibleAssetIdentities(clipboard);\n else if (mainView === (0, _state1.MainViewMode).UNUSED_ASSETS) setVisibleAssetIdentities(queriedUnusedAssets);\n else setVisibleAssetIdentities(availableAssetIdentities);\n }, [\n mainView,\n availableAssetIdentities,\n queriedUnusedAssets,\n clipboard\n ]);\n return visibleAssetIdentities.length > 0 ? viewModeSelection === (0, _state1.VIEW_MODES).List ? /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.ListView), {\n assetIdentities: visibleAssetIdentities\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.ThumbnailView), {\n assetIdentities: visibleAssetIdentities\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _mainModuleCssDefault.default).emptyStateWrapper,\n children: mainView === (0, _state1.MainViewMode).CLIPBOARD ? /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Button), {\n size: \"regular\",\n style: \"brand\",\n hoverStyle: \"brand\",\n onClick: ()=>setClipboardVisible(false),\n children: translate(\"clipboard.close\", \"Close clipboard\")\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _loadingLabelDefault.default), {\n loadingText: translate(\"assetList.loading\", \"Loading assets\"),\n emptyText: searchTerm?.toString() ? translate(\"assetList.emptyForSearchTerm\", `No assets found for \"${searchTerm}\"`, {\n searchTerm\n }) : translate(\"assetList.empty\", \"No assets found\")\n })\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(Main);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/feature-clipboard\":\"hHDiM\",\"@media-ui/feature-asset-usage\":\"lWHpb\",\"./index\":\"j5uvE\",\"../LoadingLabel\":\"gEjcn\",\"../../state\":\"4QYDB\",\"./Main.module.css\":\"dc68i\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"gEjcn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _state = require(\"@media-ui/core/src/state\");\nconst LoadingLabel = ({ loadingText , emptyText })=>{\n const isLoading = (0, _recoil.useRecoilValue)((0, _state.loadingState));\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: \"loadingLabel\",\n children: isLoading ? loadingText : emptyText\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(LoadingLabel);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@media-ui/core/src/state\":\"jV1GH\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dc68i\":[function(require,module,exports) {\nmodule.exports[\"emptyStateWrapper\"] = `LUZzHG_emptyStateWrapper`;\n\n},{}],\"ghtGP\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _classnames = require(\"classnames\");\nvar _classnamesDefault = parcelHelpers.interopDefault(_classnames);\nvar _reactUiComponents = require(\"@neos-project/react-ui-components\");\nvar _core = require(\"@media-ui/core\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _state = require(\"@media-ui/core/src/state\");\nvar _components = require(\"@media-ui/core/src/components\");\nvar _index = require(\"./index\");\nvar _missingAssetActions = require(\"./MissingAssetActions\");\nvar _missingAssetActionsDefault = parcelHelpers.interopDefault(_missingAssetActions);\nvar _thumbnailModuleCss = require(\"./Thumbnail.module.css\");\nvar _thumbnailModuleCssDefault = parcelHelpers.interopDefault(_thumbnailModuleCss);\nconst thumbnailSelectionState = (0, _recoil.selectorFamily)({\n key: \"ThumbnailSelection\",\n get: (assetId)=>({ get })=>{\n return get((0, _state.selectedAssetIdState))?.assetId === assetId;\n }\n});\nconst Thumbnail = ({ assetIdentity , onSelect })=>{\n const { translate } = (0, _core.useIntl)();\n const { dummyImage , isAssetSelectable , selectionMode } = (0, _core.useMediaUi)();\n const { asset , loading } = (0, _hooks.useAssetQuery)(assetIdentity);\n const isSelected = (0, _recoil.useRecoilValue)(thumbnailSelectionState(assetIdentity.assetId));\n const canBeSelected = (0, _react.useMemo)(()=>isAssetSelectable(asset), [\n asset,\n isAssetSelectable\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"figure\", {\n className: (0, _classnamesDefault.default)((0, _thumbnailModuleCssDefault.default).thumbnail, !canBeSelected && (0, _thumbnailModuleCssDefault.default).disabled),\n title: asset?.label,\n children: [\n asset?.imported && /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"span\", {\n className: (0, _thumbnailModuleCssDefault.default).label,\n children: translate(\"asset.label.imported\", \"Imported\")\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"picture\", {\n onClick: ()=>onSelect(assetIdentity, isSelected && !selectionMode),\n className: (0, _thumbnailModuleCssDefault.default).picture,\n children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"img\", {\n src: loading || !asset ? dummyImage : asset.thumbnailUrl,\n alt: asset?.label\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"figcaption\", {\n className: (0, _classnamesDefault.default)((0, _thumbnailModuleCssDefault.default).caption, isSelected && (0, _thumbnailModuleCssDefault.default).selected),\n children: asset && /*#__PURE__*/ (0, _jsxRuntime.jsxs)((0, _jsxRuntime.Fragment), {\n children: [\n canBeSelected && asset.file ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"img\", {\n src: asset.file.typeIcon.url,\n alt: asset.file.typeIcon.alt\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _reactUiComponents.Icon), {\n icon: \"ban\",\n color: \"error\"\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _components.AssetLabel), {\n label: asset.label\n })\n ]\n })\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"div\", {\n className: (0, _thumbnailModuleCssDefault.default).toolBar,\n children: !loading && (asset ? /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.AssetActions), {\n asset: asset\n }) : /*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _missingAssetActionsDefault.default), {\n assetIdentity: assetIdentity\n }))\n })\n ]\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(Thumbnail, (prev, next)=>prev.assetIdentity.assetId === next.assetIdentity.assetId);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"classnames\":\"hVGzI\",\"@neos-project/react-ui-components\":\"hWxzt\",\"@media-ui/core\":\"j3EAa\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/core/src/state\":\"jV1GH\",\"@media-ui/core/src/components\":\"5LFSk\",\"./index\":\"j5uvE\",\"./MissingAssetActions\":\"bWiVp\",\"./Thumbnail.module.css\":\"kSbP5\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"kSbP5\":[function(require,module,exports) {\nmodule.exports[\"button--active\"] = `lKBwAW_button--active`;\nmodule.exports[\"caption\"] = `lKBwAW_caption`;\nmodule.exports[\"disabled\"] = `lKBwAW_disabled`;\nmodule.exports[\"label\"] = `lKBwAW_label`;\nmodule.exports[\"picture\"] = `lKBwAW_picture`;\nmodule.exports[\"selected\"] = `lKBwAW_selected`;\nmodule.exports[\"thumbnail\"] = `lKBwAW_thumbnail`;\nmodule.exports[\"toolBar\"] = `lKBwAW_toolBar`;\n\n},{}],\"8gC2C\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _recoil = require(\"recoil\");\nvar _hooks = require(\"@media-ui/core/src/hooks\");\nvar _featureAssetPreview = require(\"@media-ui/feature-asset-preview\");\nvar _index = require(\"./index\");\nvar _thumbnailViewModuleCss = require(\"./ThumbnailView.module.css\");\nvar _thumbnailViewModuleCssDefault = parcelHelpers.interopDefault(_thumbnailViewModuleCss);\nconst ThumbnailView = ({ assetIdentities })=>{\n const setSelectedAssetForPreview = (0, _recoil.useSetRecoilState)((0, _featureAssetPreview.selectedAssetForPreviewState));\n const selectAsset = (0, _hooks.useSelectAsset)();\n const onSelect = (0, _react.useCallback)((assetIdentity, openPreview = false)=>{\n if (openPreview) setSelectedAssetForPreview(assetIdentity);\n else selectAsset(assetIdentity);\n }, [\n setSelectedAssetForPreview,\n selectAsset\n ]);\n return /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"section\", {\n className: (0, _thumbnailViewModuleCssDefault.default).thumbnailView,\n children: assetIdentities.map((assetIdentity, index)=>/*#__PURE__*/ (0, _jsxRuntime.jsx)((0, _index.Thumbnail), {\n assetIdentity: assetIdentity,\n onSelect: onSelect\n }, index))\n });\n};\nexports.default = /*#__PURE__*/ (0, _reactDefault.default).memo(ThumbnailView);\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"recoil\":\"2QijJ\",\"@media-ui/core/src/hooks\":\"b2lzd\",\"@media-ui/feature-asset-preview\":\"gaY0P\",\"./index\":\"j5uvE\",\"./ThumbnailView.module.css\":\"d6Kuz\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"d6Kuz\":[function(require,module,exports) {\nmodule.exports[\"thumbnailView\"] = `_5clkbq_thumbnailView`;\n\n},{}],\"cumtn\":[function(require,module,exports) {\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _react = require(\"react\");\nvar _reactDefault = parcelHelpers.interopDefault(_react);\nvar _notify = require(\"@media-ui/core/src/provider/Notify\");\nclass ErrorBoundary extends (0, _reactDefault.default).Component {\n static #_ = (()=>{\n this.contextType = (0, _notify.NotifyContext);\n })();\n constructor(props){\n super(props);\n this.clearConfigAndReload = ()=>{\n // TODO: Only clear media ui specific entries from localstorage\n localStorage.clear();\n this.reload();\n };\n this.state = {\n hasError: false,\n error: null\n };\n }\n static getDerivedStateFromError() {\n return {\n hasError: true\n };\n }\n componentDidCatch(error) {\n this.setState({\n error\n });\n this.context.error(error.name, error.message);\n }\n reload() {\n window.location.reload();\n }\n render() {\n const { hasError , error } = this.state;\n if (hasError) return /*#__PURE__*/ (0, _jsxRuntime.jsxs)(\"div\", {\n children: [\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"p\", {\n style: {\n color: \"red\"\n },\n children: \"The media application encountered an unexpected error:\"\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"br\", {}),\n error && /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"pre\", {\n children: error.message\n }),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"br\", {}),\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"button\", {\n className: \"neos-button\",\n onClick: this.reload,\n children: \"Reload\"\n }),\n \" or \",\n /*#__PURE__*/ (0, _jsxRuntime.jsx)(\"button\", {\n className: \"neos-button\",\n onClick: this.clearConfigAndReload,\n children: \"Clear configuration & reload\"\n })\n ]\n });\n return this.props.children;\n }\n}\nexports.default = ErrorBoundary;\n\n},{\"react/jsx-runtime\":\"gaGEj\",\"react\":\"6uln9\",\"@media-ui/core/src/provider/Notify\":\"hVocq\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"dNd2w\":[function(require,module,exports) {\nmodule.exports[\"container\"] = `rZ_p1G_container`;\nmodule.exports[\"fullHeight\"] = `rZ_p1G_fullHeight`;\nmodule.exports[\"gridColumn\"] = `rZ_p1G_gridColumn`;\nmodule.exports[\"gridLeft\"] = `rZ_p1G_gridLeft ${module.exports[\"gridColumn\"]}`;\nmodule.exports[\"gridMain\"] = `rZ_p1G_gridMain ${module.exports[\"gridColumn\"]}`;\nmodule.exports[\"gridRight\"] = `rZ_p1G_gridRight ${module.exports[\"gridColumn\"]}`;\nmodule.exports[\"gridTop\"] = `rZ_p1G_gridTop`;\nmodule.exports[\"selectionMode\"] = `rZ_p1G_selectionMode`;\n\n},{}],\"aUsND\":[function(require,module,exports) {\n\n},{}],\"3DZN8\":[function(require,module,exports) {\n// We need to import Icon here, so that we can UNDO the config change to fontawesome-svg-core which happened in \"Icon\".\n// noinspection ES6UnusedImports\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nvar parcelHelpers = require(\"@parcel/transformer-js/src/esmodule-helpers.js\");\nparcelHelpers.defineInteropFlag(exports);\nparcelHelpers.export(exports, \"default\", ()=>loadIconLibrary);\nvar _fontawesomeSvgCore = require(\"@fortawesome/fontawesome-svg-core\");\n// Use explicit imports as tree shaking is not working properly\nvar _faAngleLeft = require(\"@fortawesome/free-solid-svg-icons/faAngleLeft\");\nvar _faAngleRight = require(\"@fortawesome/free-solid-svg-icons/faAngleRight\");\nvar _faBan = require(\"@fortawesome/free-solid-svg-icons/faBan\");\nvar _faBox = require(\"@fortawesome/free-solid-svg-icons/faBox\");\nvar _faCalendarAlt = require(\"@fortawesome/free-solid-svg-icons/faCalendarAlt\");\nvar _faCamera = require(\"@fortawesome/free-solid-svg-icons/faCamera\");\nvar _faCheck = require(\"@fortawesome/free-solid-svg-icons/faCheck\");\nvar _faChevronCircleDown = require(\"@fortawesome/free-solid-svg-icons/faChevronCircleDown\");\nvar _faChevronCircleUp = require(\"@fortawesome/free-solid-svg-icons/faChevronCircleUp\");\nvar _faChevronDown = require(\"@fortawesome/free-solid-svg-icons/faChevronDown\");\nvar _faChevronUp = require(\"@fortawesome/free-solid-svg-icons/faChevronUp\");\nvar _faClipboard = require(\"@fortawesome/free-solid-svg-icons/faClipboard\");\nvar _faClipboardCheck = require(\"@fortawesome/free-solid-svg-icons/faClipboardCheck\");\nvar _faClipboardList = require(\"@fortawesome/free-solid-svg-icons/faClipboardList\");\nvar _faCloudDownloadAlt = require(\"@fortawesome/free-solid-svg-icons/faCloudDownloadAlt\");\nvar _faDownload = require(\"@fortawesome/free-solid-svg-icons/faDownload\");\nvar _faExclamationCircle = require(\"@fortawesome/free-solid-svg-icons/faExclamationCircle\");\nvar _faExclamationTriangle = require(\"@fortawesome/free-solid-svg-icons/faExclamationTriangle\");\nvar _faExpandAlt = require(\"@fortawesome/free-solid-svg-icons/faExpandAlt\");\nvar _faExternalLinkAlt = require(\"@fortawesome/free-solid-svg-icons/faExternalLinkAlt\");\nvar _faFile = require(\"@fortawesome/free-solid-svg-icons/faFile\");\nvar _faFileAudio = require(\"@fortawesome/free-solid-svg-icons/faFileAudio\");\nvar _faFileImage = require(\"@fortawesome/free-solid-svg-icons/faFileImage\");\nvar _faFileVideo = require(\"@fortawesome/free-solid-svg-icons/faFileVideo\");\nvar _faFolder = require(\"@fortawesome/free-solid-svg-icons/faFolder\");\nvar _faFolderOpen = require(\"@fortawesome/free-solid-svg-icons/faFolderOpen\");\nvar _faFont = require(\"@fortawesome/free-solid-svg-icons/faFont\");\nvar _faGripLinesVertical = require(\"@fortawesome/free-solid-svg-icons/faGripLinesVertical\");\nvar _faInfoCircle = require(\"@fortawesome/free-solid-svg-icons/faInfoCircle\");\nvar _faImages = require(\"@fortawesome/free-solid-svg-icons/faImages\");\nvar _faPencilAlt = require(\"@fortawesome/free-solid-svg-icons/faPencilAlt\");\nvar _faPhotoVideo = require(\"@fortawesome/free-solid-svg-icons/faPhotoVideo\");\nvar _faPlus = require(\"@fortawesome/free-solid-svg-icons/faPlus\");\nvar _faQuestion = require(\"@fortawesome/free-solid-svg-icons/faQuestion\");\nvar _faSpinner = require(\"@fortawesome/free-solid-svg-icons/faSpinner\");\nvar _faSortAmountDown = require(\"@fortawesome/free-solid-svg-icons/faSortAmountDown\");\nvar _faSortAmountUp = require(\"@fortawesome/free-solid-svg-icons/faSortAmountUp\");\nvar _faSortDown = require(\"@fortawesome/free-solid-svg-icons/faSortDown\");\nvar _faTag = require(\"@fortawesome/free-solid-svg-icons/faTag\");\nvar _faTags = require(\"@fortawesome/free-solid-svg-icons/faTags\");\nvar _faTh = require(\"@fortawesome/free-solid-svg-icons/faTh\");\nvar _faThList = require(\"@fortawesome/free-solid-svg-icons/faThList\");\nvar _faTimes = require(\"@fortawesome/free-solid-svg-icons/faTimes\");\nvar _faTimesCircle = require(\"@fortawesome/free-solid-svg-icons/faTimesCircle\");\nvar _faTrashAlt = require(\"@fortawesome/free-solid-svg-icons/faTrashAlt\");\nvar _faUpload = require(\"@fortawesome/free-solid-svg-icons/faUpload\");\nvar _faTasks = require(\"@fortawesome/free-solid-svg-icons/faTasks\");\nvar _faEdit = require(\"@fortawesome/free-solid-svg-icons/faEdit\");\nvar _faExchangeAlt = require(\"@fortawesome/free-solid-svg-icons/faExchangeAlt\");\nvar _faEquals = require(\"@fortawesome/free-solid-svg-icons/faEquals\");\nvar _faLink = require(\"@fortawesome/free-solid-svg-icons/faLink\");\nvar _faStar = require(\"@fortawesome/free-solid-svg-icons/faStar\");\nvar _faGlobe = require(\"@fortawesome/free-solid-svg-icons/faGlobe\");\nvar _faWeightHanging = require(\"@fortawesome/free-solid-svg-icons/faWeightHanging\");\nvar _faFilter = require(\"@fortawesome/free-solid-svg-icons/faFilter\");\nvar _faSearch = require(\"@fortawesome/free-solid-svg-icons/faSearch\");\nvar _faNeos = require(\"@fortawesome/free-brands-svg-icons/faNeos\");\nvar _faCreativeCommonsZero = require(\"@fortawesome/free-brands-svg-icons/faCreativeCommonsZero\");\n(0, _fontawesomeSvgCore.config).familyPrefix = \"fa\";\n(0, _fontawesomeSvgCore.config).replacementClass = \"svg-inline--fa\";\nfunction loadIconLibrary() {\n (0, _fontawesomeSvgCore.library).add((0, _faAngleLeft.faAngleLeft), (0, _faAngleRight.faAngleRight), (0, _faBan.faBan), (0, _faBox.faBox), (0, _faCalendarAlt.faCalendarAlt), (0, _faCamera.faCamera), (0, _faCheck.faCheck), (0, _faChevronCircleDown.faChevronCircleDown), (0, _faChevronCircleUp.faChevronCircleUp), (0, _faChevronDown.faChevronDown), (0, _faChevronUp.faChevronUp), (0, _faClipboard.faClipboard), (0, _faClipboardCheck.faClipboardCheck), (0, _faClipboardList.faClipboardList), (0, _faCloudDownloadAlt.faCloudDownloadAlt), (0, _faCreativeCommonsZero.faCreativeCommonsZero), (0, _faDownload.faDownload), (0, _faExclamationCircle.faExclamationCircle), (0, _faExclamationTriangle.faExclamationTriangle), (0, _faExpandAlt.faExpandAlt), (0, _faExternalLinkAlt.faExternalLinkAlt), (0, _faFile.faFile), (0, _faFileAudio.faFileAudio), (0, _faFileImage.faFileImage), (0, _faFileVideo.faFileVideo), (0, _faFolder.faFolder), (0, _faFolderOpen.faFolderOpen), (0, _faFont.faFont), (0, _faGripLinesVertical.faGripLinesVertical), (0, _faImages.faImages), (0, _faInfoCircle.faInfoCircle), (0, _faNeos.faNeos), (0, _faPencilAlt.faPencilAlt), (0, _faPhotoVideo.faPhotoVideo), (0, _faPlus.faPlus), (0, _faQuestion.faQuestion), (0, _faSpinner.faSpinner), (0, _faSortAmountDown.faSortAmountDown), (0, _faSortAmountUp.faSortAmountUp), (0, _faSortDown.faSortDown), (0, _faTag.faTag), (0, _faTags.faTags), (0, _faTh.faTh), (0, _faThList.faThList), (0, _faTimes.faTimes), (0, _faTimesCircle.faTimesCircle), (0, _faTrashAlt.faTrashAlt), (0, _faUpload.faUpload), (0, _faTasks.faTasks), (0, _faEdit.faEdit), (0, _faExchangeAlt.faExchangeAlt), (0, _faEquals.faEquals), (0, _faLink.faLink), (0, _faStar.faStar), (0, _faGlobe.faGlobe), (0, _faWeightHanging.faWeightHanging), (0, _faFilter.faFilter), (0, _faSearch.faSearch));\n}\n\n},{\"@fortawesome/fontawesome-svg-core\":\"hWDUB\",\"@fortawesome/free-solid-svg-icons/faAngleLeft\":\"eJTSD\",\"@fortawesome/free-solid-svg-icons/faAngleRight\":\"1KG1q\",\"@fortawesome/free-solid-svg-icons/faBan\":\"3q4s3\",\"@fortawesome/free-solid-svg-icons/faBox\":\"irW8C\",\"@fortawesome/free-solid-svg-icons/faCalendarAlt\":\"Bv8oJ\",\"@fortawesome/free-solid-svg-icons/faCamera\":\"hP1HQ\",\"@fortawesome/free-solid-svg-icons/faCheck\":\"1u3eU\",\"@fortawesome/free-solid-svg-icons/faChevronCircleDown\":\"fSQDi\",\"@fortawesome/free-solid-svg-icons/faChevronCircleUp\":\"76CJO\",\"@fortawesome/free-solid-svg-icons/faChevronDown\":\"1VLaR\",\"@fortawesome/free-solid-svg-icons/faChevronUp\":\"eN7cW\",\"@fortawesome/free-solid-svg-icons/faClipboard\":\"ibL2F\",\"@fortawesome/free-solid-svg-icons/faClipboardCheck\":\"kNAjL\",\"@fortawesome/free-solid-svg-icons/faClipboardList\":\"eYbrH\",\"@fortawesome/free-solid-svg-icons/faCloudDownloadAlt\":\"k2KBj\",\"@fortawesome/free-solid-svg-icons/faDownload\":\"jnaX9\",\"@fortawesome/free-solid-svg-icons/faExclamationCircle\":\"8zxAv\",\"@fortawesome/free-solid-svg-icons/faExclamationTriangle\":\"2Aw4v\",\"@fortawesome/free-solid-svg-icons/faExpandAlt\":\"i6kKv\",\"@fortawesome/free-solid-svg-icons/faExternalLinkAlt\":\"9hrcn\",\"@fortawesome/free-solid-svg-icons/faFile\":\"gCoxl\",\"@fortawesome/free-solid-svg-icons/faFileAudio\":\"9zstr\",\"@fortawesome/free-solid-svg-icons/faFileImage\":\"do6bX\",\"@fortawesome/free-solid-svg-icons/faFileVideo\":\"5j9YR\",\"@fortawesome/free-solid-svg-icons/faFolder\":\"hKVba\",\"@fortawesome/free-solid-svg-icons/faFolderOpen\":\"iJZUd\",\"@fortawesome/free-solid-svg-icons/faFont\":\"fqP9x\",\"@fortawesome/free-solid-svg-icons/faGripLinesVertical\":\"ljzwn\",\"@fortawesome/free-solid-svg-icons/faInfoCircle\":\"gJxfT\",\"@fortawesome/free-solid-svg-icons/faImages\":\"g2xg7\",\"@fortawesome/free-solid-svg-icons/faPencilAlt\":\"6fMXc\",\"@fortawesome/free-solid-svg-icons/faPhotoVideo\":\"dB2iI\",\"@fortawesome/free-solid-svg-icons/faPlus\":\"9qq97\",\"@fortawesome/free-solid-svg-icons/faQuestion\":\"3lOe8\",\"@fortawesome/free-solid-svg-icons/faSpinner\":\"11XPI\",\"@fortawesome/free-solid-svg-icons/faSortAmountDown\":\"9zzLg\",\"@fortawesome/free-solid-svg-icons/faSortAmountUp\":\"gcoac\",\"@fortawesome/free-solid-svg-icons/faSortDown\":\"f8rdo\",\"@fortawesome/free-solid-svg-icons/faTag\":\"2mxku\",\"@fortawesome/free-solid-svg-icons/faTags\":\"fUQBW\",\"@fortawesome/free-solid-svg-icons/faTh\":\"5TyUF\",\"@fortawesome/free-solid-svg-icons/faThList\":\"7ePrD\",\"@fortawesome/free-solid-svg-icons/faTimes\":\"83Vyx\",\"@fortawesome/free-solid-svg-icons/faTimesCircle\":\"4lnvP\",\"@fortawesome/free-solid-svg-icons/faTrashAlt\":\"2Hd3r\",\"@fortawesome/free-solid-svg-icons/faUpload\":\"rQed8\",\"@fortawesome/free-solid-svg-icons/faTasks\":\"45RWv\",\"@fortawesome/free-solid-svg-icons/faEdit\":\"4b2Hz\",\"@fortawesome/free-solid-svg-icons/faExchangeAlt\":\"fKute\",\"@fortawesome/free-solid-svg-icons/faEquals\":\"aGt9j\",\"@fortawesome/free-solid-svg-icons/faLink\":\"gkeru\",\"@fortawesome/free-solid-svg-icons/faStar\":\"kPS6Z\",\"@fortawesome/free-solid-svg-icons/faGlobe\":\"2Ys2o\",\"@fortawesome/free-solid-svg-icons/faWeightHanging\":\"dSqSM\",\"@fortawesome/free-solid-svg-icons/faFilter\":\"bZIh2\",\"@fortawesome/free-solid-svg-icons/faSearch\":\"1xbTi\",\"@fortawesome/free-brands-svg-icons/faNeos\":\"jHzbx\",\"@fortawesome/free-brands-svg-icons/faCreativeCommonsZero\":\"9fZDp\",\"@parcel/transformer-js/src/esmodule-helpers.js\":\"k3151\"}],\"eJTSD\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"angle-left\";\nvar width = 256;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f104\";\nvar svgPathData = \"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faAngleLeft = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"1KG1q\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"angle-right\";\nvar width = 256;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f105\";\nvar svgPathData = \"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faAngleRight = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"3q4s3\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"ban\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f05e\";\nvar svgPathData = \"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faBan = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"irW8C\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"box\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f466\";\nvar svgPathData = \"M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faBox = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"Bv8oJ\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"calendar-alt\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f073\";\nvar svgPathData = \"M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faCalendarAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"hP1HQ\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"camera\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f030\";\nvar svgPathData = \"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faCamera = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"1u3eU\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"check\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f00c\";\nvar svgPathData = \"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faCheck = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"fSQDi\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"chevron-circle-down\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f13a\";\nvar svgPathData = \"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faChevronCircleDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"76CJO\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"chevron-circle-up\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f139\";\nvar svgPathData = \"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faChevronCircleUp = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"1VLaR\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"chevron-down\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f078\";\nvar svgPathData = \"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faChevronDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"eN7cW\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"chevron-up\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f077\";\nvar svgPathData = \"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faChevronUp = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"ibL2F\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"clipboard\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f328\";\nvar svgPathData = \"M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faClipboard = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"kNAjL\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"clipboard-check\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f46c\";\nvar svgPathData = \"M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faClipboardCheck = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"eYbrH\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"clipboard-list\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f46d\";\nvar svgPathData = \"M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faClipboardList = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"k2KBj\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"cloud-download-alt\";\nvar width = 640;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f381\";\nvar svgPathData = \"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faCloudDownloadAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"jnaX9\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"download\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f019\";\nvar svgPathData = \"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faDownload = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"8zxAv\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"exclamation-circle\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f06a\";\nvar svgPathData = \"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faExclamationCircle = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"2Aw4v\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"exclamation-triangle\";\nvar width = 576;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f071\";\nvar svgPathData = \"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faExclamationTriangle = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"i6kKv\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"expand-alt\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f424\";\nvar svgPathData = \"M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faExpandAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"9hrcn\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"external-link-alt\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f35d\";\nvar svgPathData = \"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faExternalLinkAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"gCoxl\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"file\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f15b\";\nvar svgPathData = \"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFile = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"9zstr\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"file-audio\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f1c7\";\nvar svgPathData = \"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFileAudio = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"do6bX\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"file-image\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f1c5\";\nvar svgPathData = \"M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFileImage = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"5j9YR\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"file-video\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f1c8\";\nvar svgPathData = \"M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFileVideo = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"hKVba\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"folder\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f07b\";\nvar svgPathData = \"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFolder = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"iJZUd\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"folder-open\";\nvar width = 576;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f07c\";\nvar svgPathData = \"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFolderOpen = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"fqP9x\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"font\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f031\";\nvar svgPathData = \"M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFont = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"ljzwn\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"grip-lines-vertical\";\nvar width = 256;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f7a5\";\nvar svgPathData = \"M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faGripLinesVertical = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"gJxfT\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"info-circle\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f05a\";\nvar svgPathData = \"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faInfoCircle = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"g2xg7\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"images\";\nvar width = 576;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f302\";\nvar svgPathData = \"M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faImages = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"6fMXc\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"pencil-alt\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f303\";\nvar svgPathData = \"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faPencilAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"dB2iI\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"photo-video\";\nvar width = 640;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f87c\";\nvar svgPathData = \"M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faPhotoVideo = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"9qq97\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"plus\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f067\";\nvar svgPathData = \"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faPlus = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"3lOe8\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"question\";\nvar width = 384;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f128\";\nvar svgPathData = \"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faQuestion = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"11XPI\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"spinner\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f110\";\nvar svgPathData = \"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faSpinner = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"9zzLg\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"sort-amount-down\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f160\";\nvar svgPathData = \"M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faSortAmountDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"gcoac\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"sort-amount-up\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f161\";\nvar svgPathData = \"M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faSortAmountUp = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"f8rdo\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"sort-down\";\nvar width = 320;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f0dd\";\nvar svgPathData = \"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faSortDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"2mxku\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"tag\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f02b\";\nvar svgPathData = \"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTag = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"fUQBW\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"tags\";\nvar width = 640;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f02c\";\nvar svgPathData = \"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTags = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"5TyUF\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"th\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f00a\";\nvar svgPathData = \"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTh = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"7ePrD\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"th-list\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f00b\";\nvar svgPathData = \"M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faThList = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"83Vyx\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"times\";\nvar width = 352;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f00d\";\nvar svgPathData = \"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTimes = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"4lnvP\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"times-circle\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f057\";\nvar svgPathData = \"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTimesCircle = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"2Hd3r\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"trash-alt\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f2ed\";\nvar svgPathData = \"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTrashAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"rQed8\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"upload\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f093\";\nvar svgPathData = \"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faUpload = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"45RWv\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"tasks\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f0ae\";\nvar svgPathData = \"M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faTasks = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"4b2Hz\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"edit\";\nvar width = 576;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f044\";\nvar svgPathData = \"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faEdit = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"fKute\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"exchange-alt\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f362\";\nvar svgPathData = \"M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faExchangeAlt = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"aGt9j\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"equals\";\nvar width = 448;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f52c\";\nvar svgPathData = \"M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faEquals = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"gkeru\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"link\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f0c1\";\nvar svgPathData = \"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faLink = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"kPS6Z\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"star\";\nvar width = 576;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f005\";\nvar svgPathData = \"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faStar = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"2Ys2o\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"globe\";\nvar width = 496;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f0ac\";\nvar svgPathData = \"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faGlobe = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"dSqSM\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"weight-hanging\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f5cd\";\nvar svgPathData = \"M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faWeightHanging = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"bZIh2\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"filter\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f0b0\";\nvar svgPathData = \"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faFilter = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"1xbTi\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fas\";\nvar iconName = \"search\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f002\";\nvar svgPathData = \"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faSearch = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"jHzbx\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fab\";\nvar iconName = \"neos\";\nvar width = 512;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f612\";\nvar svgPathData = \"M415.44 512h-95.11L212.12 357.46v91.1L125.69 512H28V29.82L68.47 0h108.05l123.74 176.13V63.45L386.69 0h97.69v461.5zM38.77 35.27V496l72-52.88V194l215.5 307.64h84.79l52.35-38.17h-78.27L69 13zm82.54 466.61l80-58.78v-101l-79.76-114.4v220.94L49 501.89h72.34zM80.63 10.77l310.6 442.57h82.37V10.77h-79.75v317.56L170.91 10.77zM311 191.65l72 102.81V15.93l-72 53v122.72z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faNeos = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}],\"9fZDp\":[function(require,module,exports) {\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar prefix = \"fab\";\nvar iconName = \"creative-commons-zero\";\nvar width = 496;\nvar height = 512;\nvar ligatures = [];\nvar unicode = \"f4f3\";\nvar svgPathData = \"M247.6 8C389.4 8 496 118.1 496 256c0 147.1-118.5 248-248.4 248C113.6 504 0 394.5 0 256 0 123.1 104.7 8 247.6 8zm.8 44.7C130.2 52.7 44.7 150.6 44.7 256c0 109.8 91.2 202.8 203.7 202.8 103.2 0 202.8-81.1 202.8-202.8.1-113.8-90.2-203.3-202.8-203.3zm-.4 60.5c-81.9 0-102.5 77.3-102.5 142.8 0 65.5 20.6 142.8 102.5 142.8S350.5 321.5 350.5 256c0-65.5-20.6-142.8-102.5-142.8zm0 53.9c3.3 0 6.4.5 9.2 1.2 5.9 5.1 8.8 12.1 3.1 21.9l-54.5 100.2c-1.7-12.7-1.9-25.1-1.9-34.4 0-28.8 2-88.9 44.1-88.9zm40.8 46.2c2.9 15.4 3.3 31.4 3.3 42.7 0 28.9-2 88.9-44.1 88.9-13.5 0-32.6-7.7-20.1-26.4l60.9-105.2z\";\nexports.definition = {\n prefix: prefix,\n iconName: iconName,\n icon: [\n width,\n height,\n ligatures,\n unicode,\n svgPathData\n ]\n};\nexports.faCreativeCommonsZero = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = ligatures;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\n\n},{}]},[\"9M0Dq\"], \"9M0Dq\", \"parcelRequirebe75\")\n\n//# sourceMappingURL=main.bundle.js.map\n","import React, { createRef } from 'react';\nimport { render } from 'react-dom';\nimport Modal from 'react-modal';\nimport { DndProvider } from 'react-dnd';\nimport HTML5Backend from 'react-dnd-html5-backend';\nimport { ApolloClient, ApolloLink } from '@apollo/client';\nimport { createUploadLink } from 'apollo-upload-client';\n\n// GraphQL type definitions\nimport { MediaUiProvider, typeDefs as TYPE_DEFS_CORE } from '@media-ui/core';\nimport MediaApplicationWrapper from '@media-ui/core/src/components/MediaApplicationWrapper';\nimport { typeDefs as TYPE_DEFS_ASSET_USAGE } from '@media-ui/feature-asset-usage';\n\n// Internal dependencies\nimport { CacheFactory, createErrorHandler } from './core';\nimport App from './components/App';\nimport ErrorBoundary from './components/ErrorBoundary';\nimport loadIconLibrary from './lib/FontAwesome';\n\nloadIconLibrary();\n\nwindow.onload = async (): Promise => {\n while (!window.NeosCMS?.I18n?.initialized) {\n await new Promise((resolve) => setTimeout(resolve, 50));\n }\n\n const root = document.getElementById('media-ui-app');\n const { dummyImage } = root.dataset;\n const endpoints = JSON.parse(root.dataset.endpoints) as Endpoints;\n const featureFlags: FeatureFlags = JSON.parse(root.dataset.features);\n\n // Modal for the lightbox\n Modal.setAppElement(root);\n\n // Cache for ApolloClient\n const cache = CacheFactory.createCache(featureFlags);\n\n const containerRef = createRef();\n\n const { Notification } = window.NeosCMS;\n\n const translate = (id, value = null, args = {}, packageKey = 'Flowpack.Media.Ui', source = 'Main') => {\n return window.NeosCMS.I18n.translate(id, value, packageKey, source, args);\n };\n\n const client = new ApolloClient({\n connectToDevTools: true,\n cache,\n link: ApolloLink.from([\n createErrorHandler(Notification),\n createUploadLink({\n uri: endpoints.graphql,\n credentials: 'same-origin',\n }),\n ]),\n typeDefs: [TYPE_DEFS_CORE, TYPE_DEFS_ASSET_USAGE],\n });\n\n const initialState = {\n applicationContext: 'browser' as ApplicationContext,\n featureFlags,\n constraints: {},\n assetType: 'all' as AssetType,\n };\n\n render(\n \n \n \n \n \n \n \n \n ,\n root\n );\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/** @license React v17.0.2\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';require(\"object-assign\");var f=require(\"react\"),g=60103;exports.Fragment=60107;if(\"function\"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h(\"react.element\");exports.Fragment=h(\"react.fragment\")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=\"\"+k);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/** @license React v17.0.2\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=require(\"object-assign\"),n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;\nif(\"function\"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w(\"react.element\");p=w(\"react.portal\");exports.Fragment=w(\"react.fragment\");exports.StrictMode=w(\"react.strict_mode\");exports.Profiler=w(\"react.profiler\");q=w(\"react.provider\");r=w(\"react.context\");t=w(\"react.forward_ref\");exports.Suspense=w(\"react.suspense\");u=w(\"react.memo\");v=w(\"react.lazy\")}var x=\"function\"===typeof Symbol&&Symbol.iterator;\nfunction y(a){if(null===a||\"object\"!==typeof a)return null;a=x&&a[x]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}function z(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var C={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});[\"capture\",\"download\"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});[\"rowSpan\",\"start\"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(Ua,\nVa);C[b]=new v(b,1,!1,a,null,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)});\nC.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty(\"ReactCurrentDispatcher\")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty(\"ReactCurrentBatchConfig\")||(Wa.ReactCurrentBatchConfig={suspense:null});\nfunction Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:rb(c)}}\nfunction Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}var Mb={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};\nfunction Nb(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function Ob(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?Nb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar Pb,Qb=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Mb.svg||\"innerHTML\"in a)a.innerHTML=b;else{Pb=Pb||document.createElement(\"div\");Pb.innerHTML=\"\"+b.valueOf().toString()+\"\";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;return c}var Tb={animationend:Sb(\"Animation\",\"AnimationEnd\"),animationiteration:Sb(\"Animation\",\"AnimationIteration\"),animationstart:Sb(\"Animation\",\"AnimationStart\"),transitionend:Sb(\"Transition\",\"TransitionEnd\")},Ub={},Vb={};\nya&&(Vb=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),\"TransitionEvent\"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a}\nvar Xb=Wb(\"animationend\"),Yb=Wb(\"animationiteration\"),Zb=Wb(\"animationstart\"),$b=Wb(\"transitionend\"),ac=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),bc=new (\"function\"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b}\nfunction dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188));}\nfunction gc(a){var b=a.alternate;if(!b){b=dc(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===\nc){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function hc(a){a=gc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}\nfunction ic(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null;\nfunction lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;dpc.length&&pc.push(a)}\nfunction rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}\nfunction sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=tc(d)}while(c);for(c=0;c=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}}\nfunction wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=td(a.document)}return b}\nfunction yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}var zd=\"$\",Ad=\"/$\",Bd=\"$?\",Cd=\"$!\",Dd=null,Ed=null;function Fd(a,b){switch(a){case \"button\":case \"input\":case \"select\":case \"textarea\":return!!b.autoFocus}return!1}\nfunction Gd(a,b){return\"textarea\"===a||\"option\"===a||\"noscript\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd=\"function\"===typeof setTimeout?setTimeout:void 0,Id=\"function\"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}\nfunction Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md=\"__reactInternalInstance$\"+Ld,Nd=\"__reactEventHandlers$\"+Ld,Od=\"__reactContainere$\"+Ld;\nfunction tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null}\nfunction Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}\nfunction Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":case \"onMouseEnter\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&\"function\"!==typeof c)throw Error(u(231,\nb,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&\"CompositionEvent\"in window,ke=null;ya&&\"documentMode\"in document&&(ke=document.documentMode);\nvar le=ya&&\"TextEvent\"in window&&!ke,me=ya&&(!je||ke&&8=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",\ncaptured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},pe=!1;\nfunction qe(a,b){switch(a){case \"keyup\":return-1!==ie.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"blur\":return!0;default:return!1}}function re(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var se=!1;function te(a,b){switch(a){case \"compositionend\":return re(b);case \"keypress\":if(32!==b.which)return null;pe=!0;return ne;case \"textInput\":return a=b.data,a===ne&&pe?null:a;default:return null}}\nfunction ue(a,b){if(se)return\"compositionend\"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},ef=null,ff=null,gf=null,hf=!1;\nfunction jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;\"selectionStart\"in c&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type=\"select\",a.target=ef,Xd(a),a)}\nvar kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.onSelect;for(var g=0;gzf||(a.current=yf[zf],yf[zf]=null,zf--)}\nfunction I(a,b){zf++;yf[zf]=a.current;a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a}\nfunction Df(){H(K);H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b);I(K,c)}function Ff(a,b,c){var d=a.stateNode;a=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,pb(b)||\"Unknown\",e));return n({},c,{},d)}function Gf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af;Bf=J.current;I(J,a);I(K,K.current);return!0}\nfunction Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K);I(K,c)}\nvar If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1E4>Zf?Mf:function(){return Mf()-Zf};\nfunction ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332));}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332));}}function cg(a,b){a=bg(a);return If(a,b)}function dg(a,b,c){a=bg(a);return Jf(a,b,c)}function eg(a){null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a);return Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null;Kf(a)}fg()}\nfunction fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,function(){for(;a=b&&(rg=!0),a.firstContext=null)}\nfunction sg(a,b){if(mg!==a&&!1!==b&&0!==b){if(\"number\"!==typeof b||1073741823===b)mg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===lg){if(null===kg)throw Error(u(308));lg=b;kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b}return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}\nfunction vg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null};return a.next=a}function xg(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}\nfunction yg(a,b){var c=a.alternate;null!==c&&vg(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}\nfunction zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h){var z=h;do{g=z.expirationTime;if(gl&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null});Ag(g,z.suspenseConfig);a:{var D=a,t=z;g=b;ca=c;switch(t.tag){case 1:D=t.payload;if(\"function\"===typeof D){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=D.effectTag&-4097|64;case 0:D=t.payload;g=\"function\"===typeof D?D.call(ca,k,g):D;if(null===g||void 0===g)break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&&\n(a.effectTag|=32,g=e.effects,null===g?e.effects=[z]:g.push(z))}z=z.next;if(null===z||z===h)if(g=e.shared.pending,null===g)break;else z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===x?m=k:x.next=p;e.baseState=m;e.baseQueue=x;Bg(l);a.expirationTime=l;a.memoizedState=k}}\nfunction Cg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;by?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&&\nm&&null===q.alternate&&b(e,m);g=f(q,g,y);null===t?l=q:t.sibling=q;t=q;m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;yy?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t);g=f(D,g,y);null===m?k=D:m.sibling=D;m=D;t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())q=p(e,q.value,l),null!==q&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())q=z(t,e,y,q.value,l),null!==q&&(a&&null!==\nq.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);a&&t.forEach(function(a){return b(e,a)});return k}return function(a,d,f,h){var k=\"object\"===typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l=\"object\"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,\nk.sibling);d=e(k,f.props);d.ref=Pg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ab?(d=Wg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Ug(f.type,f.key,f.props,null,a.mode,h),h.ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=\nd.sibling}d=Vg(f,a.mode,h);d.return=a;a=d}return g(a)}if(\"string\"===typeof f||\"number\"===typeof f)return f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Tg(f,a.mode,h),d.return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);l&&Qg(a,f);if(\"undefined\"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||\"Component\"));}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg};\nfunction ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){I(bh,b);I(ah,a);I($g,Zg);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Ob(b,a)}H($g);I($g,b)}function eh(){H($g);H(ah);H(bh)}function fh(a){ch(bh.current);var b=ch($g.current);var c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0};\nfunction hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===Bd||c.data===Cd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}}\nvar jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321));}function nh(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(u(301));f+=1;P=O=null;b.updateQueue=null;jh.current=rh;a=c(d,e)}while(b.expirationTime===lh)}jh.current=sh;b=null!==O&&null!==O.next;lh=0;P=O=N=null;mh=!1;if(b)throw Error(u(300));return a}\nfunction th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P}\nfunction vh(a,b){return\"function\"===typeof b?b(a):b}\nfunction wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(lN.expirationTime&&\n(N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;$e(d,b.memoizedState)||(rg=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}\nfunction xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);$e(f,b.memoizedState)||(rg=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}\nfunction yh(a){var b=th();\"function\"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a};a=a.dispatch=zh.bind(null,N,a);return[b.memoizedState,a]}function Ah(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}\nfunction Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a;e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&nh(d,g.deps)){Ah(b,c,f,d);return}}N.effectTag|=a;e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)}\nfunction Hh(a,b){if(\"function\"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Ih(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){th().memoizedState=[a,void 0===b?null:b];return a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}\nfunction Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Nh(a,b,c){var d=ag();cg(98>d?98:d,function(){a(!0)});cg(97\\x3c/script>\",a=a.removeChild(a.firstChild)):\"string\"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),\"select\"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Md]=b;a[Nd]=d;ni(a,b,!1,!1);b.stateNode=a;g=pd(e,d);switch(e){case \"iframe\":case \"object\":case \"embed\":F(\"load\",\na);h=d;break;case \"video\":case \"audio\":for(h=0;hd.tailExpiration&&1b)&&tj.set(a,b)))}}\nfunction xj(a,b){a.expirationTimea?c:a;return 2>=a&&b!==a?0:a}\nfunction Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime=\nb;a.callbackPriority=d;b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()});a.callbackNode=b}}}\nfunction Bj(a,b){wj=0;if(b)return b=Gg(),Cj(a,b),Z(a),null;var c=zj(a);if(0!==c){b=a.callbackNode;if((W&(fj|gj))!==V)throw Error(u(327));Dj();a===T&&c===U||Ej(a,c);if(null!==X){var d=W;W|=fj;var e=Fj();do try{Gj();break}catch(h){Hj(a,h)}while(1);ng();W=d;cj.current=e;if(S===hj)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case hj:throw Error(u(345));case ij:Cj(a,2=c){a.lastPingedTime=c;Ej(a,c);break}}f=zj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:xi(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ij(e));if(oj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Ej(a,c);break}e=zj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=\nd;break}1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5E3,e=$f(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*bj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=$f()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display.\"+qb(g))}S!==\njj&&(S=ij);h=Ai(h,g);p=f;do{switch(p.tag){case 3:k=h;p.effectTag|=4096;p.expirationTime=b;var B=Xi(p,k,b);yg(p,B);break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0===(p.effectTag&64)&&(\"function\"===typeof w.getDerivedStateFromError||null!==ub&&\"function\"===typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096;p.expirationTime=b;var vb=$i(p,k,b);yg(p,vb);break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}while(1)}\nfunction Fj(){var a=cj.current;cj.current=sh;return null===a?sh:a}function Ag(a,b){awi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Pj(a));dj.current=null;return b}\nfunction Pj(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=si(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Jj(a){var b=ag();cg(99,Sj.bind(null,a,b));return null}\nfunction Sj(a,b){do Dj();while(null!==rj);if((W&(fj|gj))!==V)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ij(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=\nd-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===T&&(X=T=null,U=0);1h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&(B=B.createRange(),B.setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))));B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft,\ntop:w.scrollTop});\"function\"===typeof q.focus&&q.focus();for(q=0;q=c)return ji(a,b,c);I(M,M.current&1);b=$h(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return mi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current);if(!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Cf(b,J.current);qg(b,c);e=oh(null,\nb,d,a,e,c);b.effectTag|=1;if(\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;ug(b);var g=d.getDerivedStateFromProps;\"function\"===typeof g&&Fg(b,d,g,a);e.updater=Jg;b.stateNode=e;e._reactInternalFiber=b;Ng(b,d,a,c);b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate=\nnull,b.alternate=null,b.effectTag|=2);a=b.pendingProps;ob(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=Xj(e);a=ig(e,a);switch(f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),di(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),fi(a,b,d,e,c);\ncase 3:hi(b);d=b.updateQueue;if(null===a||null===d)throw Error(u(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;vg(a,b);zg(b,d,null,c);d=b.memoizedState.element;if(d===e)Xh(),b=$h(a,b,c);else{if(e=b.stateNode.hydrate)Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0;if(e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:\nnull,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),Zh(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,\nb,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(jg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=$e(h,f)?0:(\"function\"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==\nk){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=wg(c,null),l.tag=2,xg(h,l));h.expirationTime=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}\nfunction yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}\nfunction bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(dc(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;null===b.context?b.context=c:b.pendingContext=c;b=wg(f,g);b.payload={element:a};d=void 0===\nd?null:d;null!==d&&(b.callback=d);xg(e,b);Ig(e,f);return f}function ck(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function dk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=G};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>K(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1;\nfunction V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else if(b.startTime<=a)M(O),b.sortIndex=b.expirationTime,J(N,b);else break;b=L(O)}}function W(a){U=!1;V(a);if(!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}}\nfunction X(a,b){T=!1;U&&(U=!1,h());S=!0;var c=R;try{V(b);for(Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null;R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?Q.callback=e:Q===L(N)&&M(N);V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b);m=!1}return m}finally{Q=null,R=c,S=!1}}\nfunction Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var Z=l;exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){T||S||(T=!0,f(X))};\nexports.unstable_getCurrentPriorityLevel=function(){return R};exports.unstable_getFirstCallbackNode=function(){return L(N)};exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=Z;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if(\"object\"===typeof c&&null!==c){var e=c.delay;e=\"number\"===typeof e&&0d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};\nexports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime 0) {\n ariaHiddenInstances -= 1;\n\n if (ariaHiddenInstances === 0) {\n ariaAppHider.show(appElement);\n }\n }\n\n if (_this.props.shouldFocusAfterRender) {\n if (_this.props.shouldReturnFocusAfterClose) {\n focusManager.returnFocus(_this.props.preventScroll);\n focusManager.teardownScopedFocus();\n } else {\n focusManager.popWithoutFocus();\n }\n }\n\n if (_this.props.onAfterClose) {\n _this.props.onAfterClose();\n }\n\n _portalOpenInstances2.default.deregister(_this);\n };\n\n _this.open = function () {\n _this.beforeOpen();\n if (_this.state.afterOpen && _this.state.beforeClose) {\n clearTimeout(_this.closeTimer);\n _this.setState({ beforeClose: false });\n } else {\n if (_this.props.shouldFocusAfterRender) {\n focusManager.setupScopedFocus(_this.node);\n focusManager.markForFocusLater();\n }\n\n _this.setState({ isOpen: true }, function () {\n _this.setState({ afterOpen: true });\n\n if (_this.props.isOpen && _this.props.onAfterOpen) {\n _this.props.onAfterOpen({\n overlayEl: _this.overlay,\n contentEl: _this.content\n });\n }\n });\n }\n };\n\n _this.close = function () {\n if (_this.props.closeTimeoutMS > 0) {\n _this.closeWithTimeout();\n } else {\n _this.closeWithoutTimeout();\n }\n };\n\n _this.focusContent = function () {\n return _this.content && !_this.contentHasFocus() && _this.content.focus({ preventScroll: true });\n };\n\n _this.closeWithTimeout = function () {\n var closesAt = Date.now() + _this.props.closeTimeoutMS;\n _this.setState({ beforeClose: true, closesAt: closesAt }, function () {\n _this.closeTimer = setTimeout(_this.closeWithoutTimeout, _this.state.closesAt - Date.now());\n });\n };\n\n _this.closeWithoutTimeout = function () {\n _this.setState({\n beforeClose: false,\n isOpen: false,\n afterOpen: false,\n closesAt: null\n }, _this.afterClose);\n };\n\n _this.handleKeyDown = function (event) {\n if (event.keyCode === TAB_KEY) {\n (0, _scopeTab2.default)(_this.content, event);\n }\n\n if (_this.props.shouldCloseOnEsc && event.keyCode === ESC_KEY) {\n event.stopPropagation();\n _this.requestClose(event);\n }\n };\n\n _this.handleOverlayOnClick = function (event) {\n if (_this.shouldClose === null) {\n _this.shouldClose = true;\n }\n\n if (_this.shouldClose && _this.props.shouldCloseOnOverlayClick) {\n if (_this.ownerHandlesClose()) {\n _this.requestClose(event);\n } else {\n _this.focusContent();\n }\n }\n _this.shouldClose = null;\n };\n\n _this.handleContentOnMouseUp = function () {\n _this.shouldClose = false;\n };\n\n _this.handleOverlayOnMouseDown = function (event) {\n if (!_this.props.shouldCloseOnOverlayClick && event.target == _this.overlay) {\n event.preventDefault();\n }\n };\n\n _this.handleContentOnClick = function () {\n _this.shouldClose = false;\n };\n\n _this.handleContentOnMouseDown = function () {\n _this.shouldClose = false;\n };\n\n _this.requestClose = function (event) {\n return _this.ownerHandlesClose() && _this.props.onRequestClose(event);\n };\n\n _this.ownerHandlesClose = function () {\n return _this.props.onRequestClose;\n };\n\n _this.shouldBeClosed = function () {\n return !_this.state.isOpen && !_this.state.beforeClose;\n };\n\n _this.contentHasFocus = function () {\n return document.activeElement === _this.content || _this.content.contains(document.activeElement);\n };\n\n _this.buildClassName = function (which, additional) {\n var classNames = (typeof additional === \"undefined\" ? \"undefined\" : _typeof(additional)) === \"object\" ? additional : {\n base: CLASS_NAMES[which],\n afterOpen: CLASS_NAMES[which] + \"--after-open\",\n beforeClose: CLASS_NAMES[which] + \"--before-close\"\n };\n var className = classNames.base;\n if (_this.state.afterOpen) {\n className = className + \" \" + classNames.afterOpen;\n }\n if (_this.state.beforeClose) {\n className = className + \" \" + classNames.beforeClose;\n }\n return typeof additional === \"string\" && additional ? className + \" \" + additional : className;\n };\n\n _this.attributesFromObject = function (prefix, items) {\n return Object.keys(items).reduce(function (acc, name) {\n acc[prefix + \"-\" + name] = items[name];\n return acc;\n }, {});\n };\n\n _this.state = {\n afterOpen: false,\n beforeClose: false\n };\n\n _this.shouldClose = null;\n _this.moveFromContentToOverlay = null;\n return _this;\n }\n\n _createClass(ModalPortal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.isOpen) {\n this.open();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (process.env.NODE_ENV !== \"production\") {\n if (prevProps.bodyOpenClassName !== this.props.bodyOpenClassName) {\n // eslint-disable-next-line no-console\n console.warn('React-Modal: \"bodyOpenClassName\" prop has been modified. ' + \"This may cause unexpected behavior when multiple modals are open.\");\n }\n if (prevProps.htmlOpenClassName !== this.props.htmlOpenClassName) {\n // eslint-disable-next-line no-console\n console.warn('React-Modal: \"htmlOpenClassName\" prop has been modified. ' + \"This may cause unexpected behavior when multiple modals are open.\");\n }\n }\n\n if (this.props.isOpen && !prevProps.isOpen) {\n this.open();\n } else if (!this.props.isOpen && prevProps.isOpen) {\n this.close();\n }\n\n // Focus only needs to be set once when the modal is being opened\n if (this.props.shouldFocusAfterRender && this.state.isOpen && !prevState.isOpen) {\n this.focusContent();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.state.isOpen) {\n this.afterClose();\n }\n clearTimeout(this.closeTimer);\n }\n }, {\n key: \"beforeOpen\",\n value: function beforeOpen() {\n var _props = this.props,\n appElement = _props.appElement,\n ariaHideApp = _props.ariaHideApp,\n htmlOpenClassName = _props.htmlOpenClassName,\n bodyOpenClassName = _props.bodyOpenClassName;\n\n // Add classes.\n\n bodyOpenClassName && classList.add(document.body, bodyOpenClassName);\n\n htmlOpenClassName && classList.add(document.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n\n if (ariaHideApp) {\n ariaHiddenInstances += 1;\n ariaAppHider.hide(appElement);\n }\n\n _portalOpenInstances2.default.register(this);\n }\n\n // Don't steal focus from inner elements\n\n }, {\n key: \"render\",\n value: function render() {\n var _props2 = this.props,\n id = _props2.id,\n className = _props2.className,\n overlayClassName = _props2.overlayClassName,\n defaultStyles = _props2.defaultStyles,\n children = _props2.children;\n\n var contentStyles = className ? {} : defaultStyles.content;\n var overlayStyles = overlayClassName ? {} : defaultStyles.overlay;\n\n if (this.shouldBeClosed()) {\n return null;\n }\n\n var overlayProps = {\n ref: this.setOverlayRef,\n className: this.buildClassName(\"overlay\", overlayClassName),\n style: _extends({}, overlayStyles, this.props.style.overlay),\n onClick: this.handleOverlayOnClick,\n onMouseDown: this.handleOverlayOnMouseDown\n };\n\n var contentProps = _extends({\n id: id,\n ref: this.setContentRef,\n style: _extends({}, contentStyles, this.props.style.content),\n className: this.buildClassName(\"content\", className),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentOnMouseDown,\n onMouseUp: this.handleContentOnMouseUp,\n onClick: this.handleContentOnClick,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n }, this.attributesFromObject(\"aria\", _extends({ modal: true }, this.props.aria)), this.attributesFromObject(\"data\", this.props.data || {}), {\n \"data-testid\": this.props.testId\n });\n\n var contentElement = this.props.contentElement(contentProps, children);\n return this.props.overlayElement(overlayProps, contentElement);\n }\n }]);\n\n return ModalPortal;\n}(_react.Component);\n\nModalPortal.defaultProps = {\n style: {\n overlay: {},\n content: {}\n },\n defaultStyles: {}\n};\nModalPortal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n defaultStyles: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]),\n overlayClassName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]),\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n ariaHideApp: _propTypes2.default.bool,\n appElement: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(_safeHTMLElement2.default), _propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection), _propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList), _propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))]),\n onAfterOpen: _propTypes2.default.func,\n onAfterClose: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n preventScroll: _propTypes2.default.bool,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n children: _propTypes2.default.node,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n overlayElement: _propTypes2.default.func,\n contentElement: _propTypes2.default.func,\n testId: _propTypes2.default.string\n};\nexports.default = ModalPortal;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.handleBlur = handleBlur;\nexports.handleFocus = handleFocus;\nexports.markForFocusLater = markForFocusLater;\nexports.returnFocus = returnFocus;\nexports.popWithoutFocus = popWithoutFocus;\nexports.setupScopedFocus = setupScopedFocus;\nexports.teardownScopedFocus = teardownScopedFocus;\n\nvar _tabbable = require(\"../helpers/tabbable\");\n\nvar _tabbable2 = _interopRequireDefault(_tabbable);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar focusLaterElements = [];\nvar modalElement = null;\nvar needToFocus = false;\n\nfunction handleBlur() {\n needToFocus = true;\n}\n\nfunction handleFocus() {\n if (needToFocus) {\n needToFocus = false;\n if (!modalElement) {\n return;\n }\n // need to see how jQuery shims document.on('focusin') so we don't need the\n // setTimeout, firefox doesn't support focusin, if it did, we could focus\n // the element outside of a setTimeout. Side-effect of this implementation\n // is that the document.body gets focus, and then we focus our element right\n // after, seems fine.\n setTimeout(function () {\n if (modalElement.contains(document.activeElement)) {\n return;\n }\n var el = (0, _tabbable2.default)(modalElement)[0] || modalElement;\n el.focus();\n }, 0);\n }\n}\n\nfunction markForFocusLater() {\n focusLaterElements.push(document.activeElement);\n}\n\n/* eslint-disable no-console */\nfunction returnFocus() {\n var preventScroll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var toFocus = null;\n try {\n if (focusLaterElements.length !== 0) {\n toFocus = focusLaterElements.pop();\n toFocus.focus({ preventScroll: preventScroll });\n }\n return;\n } catch (e) {\n console.warn([\"You tried to return focus to\", toFocus, \"but it is not in the DOM anymore\"].join(\" \"));\n }\n}\n/* eslint-enable no-console */\n\nfunction popWithoutFocus() {\n focusLaterElements.length > 0 && focusLaterElements.pop();\n}\n\nfunction setupScopedFocus(element) {\n modalElement = element;\n\n if (window.addEventListener) {\n window.addEventListener(\"blur\", handleBlur, false);\n document.addEventListener(\"focus\", handleFocus, true);\n } else {\n window.attachEvent(\"onBlur\", handleBlur);\n document.attachEvent(\"onFocus\", handleFocus);\n }\n}\n\nfunction teardownScopedFocus() {\n modalElement = null;\n\n if (window.addEventListener) {\n window.removeEventListener(\"blur\", handleBlur);\n document.removeEventListener(\"focus\", handleFocus);\n } else {\n window.detachEvent(\"onBlur\", handleBlur);\n document.detachEvent(\"onFocus\", handleFocus);\n }\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = findTabbableDescendants;\n/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\n\nvar tabbableNode = /input|select|textarea|button|object/;\n\nfunction hidesContents(element) {\n var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;\n\n // If the node is empty, this is good enough\n if (zeroSize && !element.innerHTML) return true;\n\n // Otherwise we need to check some styles\n var style = window.getComputedStyle(element);\n return zeroSize ? style.getPropertyValue(\"overflow\") !== \"visible\" ||\n // if 'overflow: visible' set, check if there is actually any overflow\n element.scrollWidth <= 0 && element.scrollHeight <= 0 : style.getPropertyValue(\"display\") == \"none\";\n}\n\nfunction visible(element) {\n var parentElement = element;\n while (parentElement) {\n if (parentElement === document.body) break;\n if (hidesContents(parentElement)) return false;\n parentElement = parentElement.parentNode;\n }\n return true;\n}\n\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === \"a\" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);\n return res && visible(element);\n}\n\nfunction tabbable(element) {\n var tabIndex = element.getAttribute(\"tabindex\");\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\n\nfunction findTabbableDescendants(element) {\n return [].slice.call(element.querySelectorAll(\"*\"), 0).filter(tabbable);\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = scopeTab;\n\nvar _tabbable = require(\"./tabbable\");\n\nvar _tabbable2 = _interopRequireDefault(_tabbable);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction scopeTab(node, event) {\n var tabbable = (0, _tabbable2.default)(node);\n\n if (!tabbable.length) {\n // Do nothing, since there are no elements that can receive focus.\n event.preventDefault();\n return;\n }\n\n var target = void 0;\n\n var shiftKey = event.shiftKey;\n var head = tabbable[0];\n var tail = tabbable[tabbable.length - 1];\n\n // proceed with default browser behavior on tab.\n // Focus on last element on shift + tab.\n if (node === document.activeElement) {\n if (!shiftKey) return;\n target = tail;\n }\n\n if (tail === document.activeElement && !shiftKey) {\n target = head;\n }\n\n if (head === document.activeElement && shiftKey) {\n target = tail;\n }\n\n if (target) {\n event.preventDefault();\n target.focus();\n return;\n }\n\n // Safari radio issue.\n //\n // Safari does not move the focus to the radio button,\n // so we need to force it to really walk through all elements.\n //\n // This is very error prone, since we are trying to guess\n // if it is a safari browser from the first occurence between\n // chrome or safari.\n //\n // The chrome user agent contains the first ocurrence\n // as the 'chrome/version' and later the 'safari/version'.\n var checkSafari = /(\\bChrome\\b|\\bSafari\\b)\\//.exec(navigator.userAgent);\n var isSafariDesktop = checkSafari != null && checkSafari[1] != \"Chrome\" && /\\biPod\\b|\\biPad\\b/g.exec(navigator.userAgent) == null;\n\n // If we are not in safari desktop, let the browser control\n // the focus\n if (!isSafariDesktop) return;\n\n var x = tabbable.indexOf(document.activeElement);\n\n if (x > -1) {\n x += shiftKey ? -1 : 1;\n }\n\n target = tabbable[x];\n\n // If the tabbable element does not exist,\n // focus head/tail based on shiftKey\n if (typeof target === \"undefined\") {\n event.preventDefault();\n target = shiftKey ? tail : head;\n target.focus();\n return;\n }\n\n event.preventDefault();\n\n target.focus();\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.assertNodeList = assertNodeList;\nexports.setElement = setElement;\nexports.validateElement = validateElement;\nexports.hide = hide;\nexports.show = show;\nexports.documentNotReadyOrSSRTesting = documentNotReadyOrSSRTesting;\nexports.resetForTesting = resetForTesting;\n\nvar _warning = require(\"warning\");\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _safeHTMLElement = require(\"./safeHTMLElement\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar globalElement = null;\n\nfunction assertNodeList(nodeList, selector) {\n if (!nodeList || !nodeList.length) {\n throw new Error(\"react-modal: No elements were found for selector \" + selector + \".\");\n }\n}\n\nfunction setElement(element) {\n var useElement = element;\n if (typeof useElement === \"string\" && _safeHTMLElement.canUseDOM) {\n var el = document.querySelectorAll(useElement);\n assertNodeList(el, useElement);\n useElement = el;\n }\n globalElement = useElement || globalElement;\n return globalElement;\n}\n\nfunction validateElement(appElement) {\n var el = appElement || globalElement;\n if (el) {\n return Array.isArray(el) || el instanceof HTMLCollection || el instanceof NodeList ? el : [el];\n } else {\n (0, _warning2.default)(false, [\"react-modal: App element is not defined.\", \"Please use `Modal.setAppElement(el)` or set `appElement={el}`.\", \"This is needed so screen readers don't see main content\", \"when modal is opened. It is not recommended, but you can opt-out\", \"by setting `ariaHideApp={false}`.\"].join(\" \"));\n\n return [];\n }\n}\n\nfunction hide(appElement) {\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = validateElement(appElement)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var el = _step.value;\n\n el.setAttribute(\"aria-hidden\", \"true\");\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\n\nfunction show(appElement) {\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = validateElement(appElement)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var el = _step2.value;\n\n el.removeAttribute(\"aria-hidden\");\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n}\n\nfunction documentNotReadyOrSSRTesting() {\n globalElement = null;\n}\n\nfunction resetForTesting() {\n globalElement = null;\n}","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n var argIndex = 0;\n var message = 'Warning: ' +\n format.replace(/%s/g, function() {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n\n warning = function(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n if (format === undefined) {\n throw new Error(\n '`warning(condition, format, ...args)` requires a warning ' +\n 'message argument'\n );\n }\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canUseDOM = exports.SafeNodeList = exports.SafeHTMLCollection = undefined;\n\nvar _exenv = require(\"exenv\");\n\nvar _exenv2 = _interopRequireDefault(_exenv);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar EE = _exenv2.default;\n\nvar SafeHTMLElement = EE.canUseDOM ? window.HTMLElement : {};\n\nvar SafeHTMLCollection = exports.SafeHTMLCollection = EE.canUseDOM ? window.HTMLCollection : {};\n\nvar SafeNodeList = exports.SafeNodeList = EE.canUseDOM ? window.NodeList : {};\n\nvar canUseDOM = exports.canUseDOM = EE.canUseDOM;\n\nexports.default = SafeHTMLElement;","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dumpClassLists = dumpClassLists;\nvar htmlClassList = {};\nvar docBodyClassList = {};\n\nfunction dumpClassLists() {\n if (process.env.NODE_ENV !== \"production\") {\n var classes = document.getElementsByTagName(\"html\")[0].className;\n var buffer = \"Show tracked classes:\\n\\n\";\n\n buffer += \" (\" + classes + \"):\\n\";\n for (var x in htmlClassList) {\n buffer += \" \" + x + \" \" + htmlClassList[x] + \"\\n\";\n }\n\n classes = document.body.className;\n\n // eslint-disable-next-line max-len\n buffer += \"\\n\\ndoc.body (\" + classes + \"):\\n\";\n for (var _x in docBodyClassList) {\n buffer += \" \" + _x + \" \" + docBodyClassList[_x] + \"\\n\";\n }\n\n buffer += \"\\n\";\n\n // eslint-disable-next-line no-console\n console.log(buffer);\n }\n}\n\n/**\n * Track the number of reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */\nvar incrementReference = function incrementReference(poll, className) {\n if (!poll[className]) {\n poll[className] = 0;\n }\n poll[className] += 1;\n return className;\n};\n\n/**\n * Drop the reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */\nvar decrementReference = function decrementReference(poll, className) {\n if (poll[className]) {\n poll[className] -= 1;\n }\n return className;\n};\n\n/**\n * Track a class and add to the given class list.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be tracked.\n */\nvar trackClass = function trackClass(classListRef, poll, classes) {\n classes.forEach(function (className) {\n incrementReference(poll, className);\n classListRef.add(className);\n });\n};\n\n/**\n * Untrack a class and remove from the given class list if the reference\n * reaches 0.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be untracked.\n */\nvar untrackClass = function untrackClass(classListRef, poll, classes) {\n classes.forEach(function (className) {\n decrementReference(poll, className);\n poll[className] === 0 && classListRef.remove(className);\n });\n};\n\n/**\n * Public inferface to add classes to the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */\nvar add = exports.add = function add(element, classString) {\n return trackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};\n\n/**\n * Public inferface to remove classes from the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */\nvar remove = exports.remove = function remove(element, classString) {\n return untrackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// Tracks portals that are open and emits events to subscribers\n\nvar PortalOpenInstances = function PortalOpenInstances() {\n var _this = this;\n\n _classCallCheck(this, PortalOpenInstances);\n\n this.register = function (openInstance) {\n if (_this.openInstances.indexOf(openInstance) !== -1) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Cannot register modal instance that's already open\");\n }\n return;\n }\n _this.openInstances.push(openInstance);\n _this.emit(\"register\");\n };\n\n this.deregister = function (openInstance) {\n var index = _this.openInstances.indexOf(openInstance);\n if (index === -1) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Unable to deregister \" + openInstance + \" as \" + \"it was never registered\");\n }\n return;\n }\n _this.openInstances.splice(index, 1);\n _this.emit(\"deregister\");\n };\n\n this.subscribe = function (callback) {\n _this.subscribers.push(callback);\n };\n\n this.emit = function (eventType) {\n _this.subscribers.forEach(function (subscriber) {\n return subscriber(eventType,\n // shallow copy to avoid accidental mutation\n _this.openInstances.slice());\n });\n };\n\n this.openInstances = [];\n this.subscribers = [];\n};\n\nvar portalOpenInstances = new PortalOpenInstances();\n\nexports.default = portalOpenInstances;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nvar _portalOpenInstances = require(\"./portalOpenInstances\");\n\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Body focus trap see Issue #742\n\nvar before = void 0,\n after = void 0,\n instances = [];\n\nfunction focusContent() {\n if (instances.length === 0) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Open instances > 0 expected\");\n }\n return;\n }\n instances[instances.length - 1].focusContent();\n}\n\nfunction bodyTrap(eventType, openInstances) {\n if (!before || !after) {\n before = document.createElement(\"div\");\n before.setAttribute(\"data-react-modal-body-trap\", \"\");\n before.style.position = \"absolute\";\n before.style.opacity = \"0\";\n before.setAttribute(\"tabindex\", \"0\");\n before.addEventListener(\"focus\", focusContent);\n after = before.cloneNode();\n after.addEventListener(\"focus\", focusContent);\n }\n\n instances = openInstances;\n\n if (instances.length > 0) {\n // Add focus trap\n if (document.body.firstChild !== before) {\n document.body.insertBefore(before, document.body.firstChild);\n }\n if (document.body.lastChild !== after) {\n document.body.appendChild(after);\n }\n } else {\n // Remove focus trap\n if (before.parentElement) {\n before.parentElement.removeChild(before);\n }\n if (after.parentElement) {\n after.parentElement.removeChild(after);\n }\n }\n}\n\n_portalOpenInstances2.default.subscribe(bodyTrap);","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n","exports.interopDefault = function (a) {\n return a && a.__esModule ? a : {default: a};\n};\n\nexports.defineInteropFlag = function (a) {\n Object.defineProperty(a, '__esModule', {value: true});\n};\n\nexports.exportAll = function (source, dest) {\n Object.keys(source).forEach(function (key) {\n if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function () {\n return source[key];\n },\n });\n });\n\n return dest;\n};\n\nexports.export = function (dest, destName, get) {\n Object.defineProperty(dest, destName, {\n enumerable: true,\n get: get,\n });\n};\n","export * from './common';\nexport * from './hooks';\nexport * from './decorators';","export * from './DndContext';\nexport * from './DndProvider';\nexport * from './DragPreviewImage';","import * as React from 'react';\nimport { createDragDropManager } from 'dnd-core';\n/**\n * Create the React Context\n */\n\nexport var DndContext = React.createContext({\n dragDropManager: undefined\n});\n/**\n * Creates the context object we're providing\n * @param backend\n * @param context\n */\n\nexport function createDndContext(backend, context, options, debugMode) {\n return {\n dragDropManager: createDragDropManager(backend, context, options, debugMode)\n };\n}","export * from './interfaces';\nexport * from './factories';","export var HandlerRole;\n\n(function (HandlerRole) {\n HandlerRole[\"SOURCE\"] = \"SOURCE\";\n HandlerRole[\"TARGET\"] = \"TARGET\";\n})(HandlerRole || (HandlerRole = {}));","import DragDropManagerImpl from './DragDropManagerImpl';\nexport function createDragDropManager(backendFactory, globalContext, backendOptions, debugMode) {\n var manager = new DragDropManagerImpl(debugMode);\n var backend = backendFactory(manager, globalContext, backendOptions);\n manager.receiveBackend(backend);\n return manager;\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { createStore } from 'redux';\nimport reducer from './reducers';\nimport dragDropActions from './actions/dragDrop';\nimport DragDropMonitorImpl from './DragDropMonitorImpl';\nimport HandlerRegistryImpl from './HandlerRegistryImpl';\n\nfunction makeStoreInstance(debugMode) {\n // TODO: if we ever make a react-native version of this,\n // we'll need to consider how to pull off dev-tooling\n var reduxDevTools = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__;\n return createStore(reducer, debugMode && reduxDevTools && reduxDevTools({\n name: 'dnd-core',\n instanceId: 'dnd-core'\n }));\n}\n\nvar DragDropManagerImpl =\n/*#__PURE__*/\nfunction () {\n function DragDropManagerImpl() {\n var _this = this;\n\n var debugMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n _classCallCheck(this, DragDropManagerImpl);\n\n this.isSetUp = false;\n\n this.handleRefCountChange = function () {\n var shouldSetUp = _this.store.getState().refCount > 0;\n\n if (_this.backend) {\n if (shouldSetUp && !_this.isSetUp) {\n _this.backend.setup();\n\n _this.isSetUp = true;\n } else if (!shouldSetUp && _this.isSetUp) {\n _this.backend.teardown();\n\n _this.isSetUp = false;\n }\n }\n };\n\n var store = makeStoreInstance(debugMode);\n this.store = store;\n this.monitor = new DragDropMonitorImpl(store, new HandlerRegistryImpl(store));\n store.subscribe(this.handleRefCountChange);\n }\n\n _createClass(DragDropManagerImpl, [{\n key: \"receiveBackend\",\n value: function receiveBackend(backend) {\n this.backend = backend;\n }\n }, {\n key: \"getMonitor\",\n value: function getMonitor() {\n return this.monitor;\n }\n }, {\n key: \"getBackend\",\n value: function getBackend() {\n return this.backend;\n }\n }, {\n key: \"getRegistry\",\n value: function getRegistry() {\n return this.monitor.registry;\n }\n }, {\n key: \"getActions\",\n value: function getActions() {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias */\n var manager = this;\n var dispatch = this.store.dispatch;\n\n function bindActionCreator(actionCreator) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var action = actionCreator.apply(manager, args);\n\n if (typeof action !== 'undefined') {\n dispatch(action);\n }\n };\n }\n\n var actions = dragDropActions(this);\n return Object.keys(actions).reduce(function (boundActions, key) {\n var action = actions[key];\n boundActions[key] = bindActionCreator(action);\n return boundActions;\n }, {});\n }\n }, {\n key: \"dispatch\",\n value: function dispatch(action) {\n this.store.dispatch(action);\n }\n }]);\n\n return DragDropManagerImpl;\n}();\n\nexport { DragDropManagerImpl as default };","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n\n if (process.env.NODE_ENV !== 'production') {\n // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\n function miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n }\n\n function ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n }\n\n function isError(val) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n }\n\n function isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n }\n\n typeOfVal = miniKindOf(val);\n }\n\n return typeOfVal;\n}\n\n/**\n * Creates a Redux store that holds the state tree.\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread(_objectSpread({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore };\n","import defineProperty from \"./defineProperty.js\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport dragOffset from './dragOffset';\nimport dragOperation from './dragOperation';\nimport refCount from './refCount';\nimport dirtyHandlerIds from './dirtyHandlerIds';\nimport stateId from './stateId';\nimport { get } from '../utils/js_utils';\nexport default function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments.length > 1 ? arguments[1] : undefined;\n return {\n dirtyHandlerIds: dirtyHandlerIds(state.dirtyHandlerIds, {\n type: action.type,\n payload: _objectSpread({}, action.payload, {\n prevTargetIds: get(state, 'dragOperation.targetIds', [])\n })\n }),\n dragOffset: dragOffset(state.dragOffset, action),\n refCount: refCount(state.refCount, action),\n dragOperation: dragOperation(state.dragOperation, action),\n stateId: stateId(state.stateId)\n };\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { INIT_COORDS, BEGIN_DRAG, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { areCoordsEqual } from '../utils/equality';\nvar initialState = {\n initialSourceClientOffset: null,\n initialClientOffset: null,\n clientOffset: null\n};\nexport default function dragOffset() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n\n switch (action.type) {\n case INIT_COORDS:\n case BEGIN_DRAG:\n return {\n initialSourceClientOffset: payload.sourceClientOffset,\n initialClientOffset: payload.clientOffset,\n clientOffset: payload.clientOffset\n };\n\n case HOVER:\n if (areCoordsEqual(state.clientOffset, payload.clientOffset)) {\n return state;\n }\n\n return _objectSpread({}, state, {\n clientOffset: payload.clientOffset\n });\n\n case END_DRAG:\n case DROP:\n return initialState;\n\n default:\n return state;\n }\n}","import createBeginDrag from './beginDrag';\nimport createPublishDragSource from './publishDragSource';\nimport createHover from './hover';\nimport createDrop from './drop';\nimport createEndDrag from './endDrag';\nexport * from './types';\nexport default function createDragDropActions(manager) {\n return {\n beginDrag: createBeginDrag(manager),\n publishDragSource: createPublishDragSource(manager),\n hover: createHover(manager),\n drop: createDrop(manager),\n endDrag: createEndDrag(manager)\n };\n}","import { invariant } from '@react-dnd/invariant';\nimport { setClientOffset } from './local/setClientOffset';\nimport { isObject } from '../../utils/js_utils';\nimport { BEGIN_DRAG, INIT_COORDS } from './types';\nvar ResetCoordinatesAction = {\n type: INIT_COORDS,\n payload: {\n clientOffset: null,\n sourceClientOffset: null\n }\n};\nexport default function createBeginDrag(manager) {\n return function beginDrag() {\n var sourceIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n publishSource: true\n };\n var _options$publishSourc = options.publishSource,\n publishSource = _options$publishSourc === void 0 ? true : _options$publishSourc,\n clientOffset = options.clientOffset,\n getSourceClientOffset = options.getSourceClientOffset;\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry(); // Initialize the coordinates using the client offset\n\n manager.dispatch(setClientOffset(clientOffset));\n verifyInvariants(sourceIds, monitor, registry); // Get the draggable source\n\n var sourceId = getDraggableSource(sourceIds, monitor);\n\n if (sourceId === null) {\n manager.dispatch(ResetCoordinatesAction);\n return;\n } // Get the source client offset\n\n\n var sourceClientOffset = null;\n\n if (clientOffset) {\n verifyGetSourceClientOffsetIsFunction(getSourceClientOffset);\n sourceClientOffset = getSourceClientOffset(sourceId);\n } // Initialize the full coordinates\n\n\n manager.dispatch(setClientOffset(clientOffset, sourceClientOffset));\n var source = registry.getSource(sourceId);\n var item = source.beginDrag(monitor, sourceId);\n verifyItemIsObject(item);\n registry.pinSource(sourceId);\n var itemType = registry.getSourceType(sourceId);\n return {\n type: BEGIN_DRAG,\n payload: {\n itemType: itemType,\n item: item,\n sourceId: sourceId,\n clientOffset: clientOffset || null,\n sourceClientOffset: sourceClientOffset || null,\n isSourcePublic: !!publishSource\n }\n };\n };\n}\n\nfunction verifyInvariants(sourceIds, monitor, registry) {\n invariant(!monitor.isDragging(), 'Cannot call beginDrag while dragging.');\n sourceIds.forEach(function (sourceId) {\n invariant(registry.getSource(sourceId), 'Expected sourceIds to be registered.');\n });\n}\n\nfunction verifyGetSourceClientOffsetIsFunction(getSourceClientOffset) {\n invariant(typeof getSourceClientOffset === 'function', 'When clientOffset is provided, getSourceClientOffset must be a function.');\n}\n\nfunction verifyItemIsObject(item) {\n invariant(isObject(item), 'Item must be an object.');\n}\n\nfunction getDraggableSource(sourceIds, monitor) {\n var sourceId = null;\n\n for (var i = sourceIds.length - 1; i >= 0; i--) {\n if (monitor.canDragSource(sourceIds[i])) {\n sourceId = sourceIds[i];\n break;\n }\n }\n\n return sourceId;\n}","/**\r\n * Use invariant() to assert state which your program assumes to be true.\r\n *\r\n * Provide sprintf-style format (only %s is supported) and arguments\r\n * to provide information about what broke and what you were\r\n * expecting.\r\n *\r\n * The invariant message will be stripped in production, but the invariant\r\n * will remain to ensure logic does not differ in production.\r\n */\nfunction invariant(condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n\n throw error;\n }\n}\n\nexport { invariant };\n//# sourceMappingURL=invariant.esm.js.map\n","/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nexport function invariant(condition: any, format: string, ...args: any[]) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n let error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n let argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() {\n return args[argIndex++];\n })\n );\n error.name = 'Invariant Violation';\n }\n\n (error as any).framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n","import { INIT_COORDS } from '../types';\nexport function setClientOffset(clientOffset, sourceClientOffset) {\n return {\n type: INIT_COORDS,\n payload: {\n sourceClientOffset: sourceClientOffset || null,\n clientOffset: clientOffset || null\n }\n };\n}","export var INIT_COORDS = 'dnd-core/INIT_COORDS';\nexport var BEGIN_DRAG = 'dnd-core/BEGIN_DRAG';\nexport var PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE';\nexport var HOVER = 'dnd-core/HOVER';\nexport var DROP = 'dnd-core/DROP';\nexport var END_DRAG = 'dnd-core/END_DRAG';","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// cheap lodash replacements\n\n/**\n * drop-in replacement for _.get\n * @param obj\n * @param path\n * @param defaultValue\n */\nexport function get(obj, path, defaultValue) {\n return path.split('.').reduce(function (a, c) {\n return a && a[c] ? a[c] : defaultValue || null;\n }, obj);\n}\n/**\n * drop-in replacement for _.without\n */\n\nexport function without(items, item) {\n return items.filter(function (i) {\n return i !== item;\n });\n}\n/**\n * drop-in replacement for _.isString\n * @param input\n */\n\nexport function isString(input) {\n return typeof input === 'string';\n}\n/**\n * drop-in replacement for _.isString\n * @param input\n */\n\nexport function isObject(input) {\n return _typeof(input) === 'object';\n}\n/**\n * repalcement for _.xor\n * @param itemsA\n * @param itemsB\n */\n\nexport function xor(itemsA, itemsB) {\n var map = new Map();\n\n var insertItem = function insertItem(item) {\n return map.set(item, map.has(item) ? map.get(item) + 1 : 1);\n };\n\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n map.forEach(function (count, key) {\n if (count === 1) {\n result.push(key);\n }\n });\n return result;\n}\n/**\n * replacement for _.intersection\n * @param itemsA\n * @param itemsB\n */\n\nexport function intersection(itemsA, itemsB) {\n return itemsA.filter(function (t) {\n return itemsB.indexOf(t) > -1;\n });\n}","import { PUBLISH_DRAG_SOURCE } from './types';\nexport default function createPublishDragSource(manager) {\n return function publishDragSource() {\n var monitor = manager.getMonitor();\n\n if (monitor.isDragging()) {\n return {\n type: PUBLISH_DRAG_SOURCE\n };\n }\n };\n}","import { invariant } from '@react-dnd/invariant';\nimport matchesType from '../../utils/matchesType';\nimport { HOVER } from './types';\nexport default function createHover(manager) {\n return function hover(targetIdsArg) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n clientOffset = _ref.clientOffset;\n\n verifyTargetIdsIsArray(targetIdsArg);\n var targetIds = targetIdsArg.slice(0);\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n checkInvariants(targetIds, monitor, registry);\n var draggedItemType = monitor.getItemType();\n removeNonMatchingTargetIds(targetIds, registry, draggedItemType);\n hoverAllTargets(targetIds, monitor, registry);\n return {\n type: HOVER,\n payload: {\n targetIds: targetIds,\n clientOffset: clientOffset || null\n }\n };\n };\n}\n\nfunction verifyTargetIdsIsArray(targetIdsArg) {\n invariant(Array.isArray(targetIdsArg), 'Expected targetIds to be an array.');\n}\n\nfunction checkInvariants(targetIds, monitor, registry) {\n invariant(monitor.isDragging(), 'Cannot call hover while not dragging.');\n invariant(!monitor.didDrop(), 'Cannot call hover after drop.');\n\n for (var i = 0; i < targetIds.length; i++) {\n var targetId = targetIds[i];\n invariant(targetIds.lastIndexOf(targetId) === i, 'Expected targetIds to be unique in the passed array.');\n var target = registry.getTarget(targetId);\n invariant(target, 'Expected targetIds to be registered.');\n }\n}\n\nfunction removeNonMatchingTargetIds(targetIds, registry, draggedItemType) {\n // Remove those targetIds that don't match the targetType. This\n // fixes shallow isOver which would only be non-shallow because of\n // non-matching targets.\n for (var i = targetIds.length - 1; i >= 0; i--) {\n var targetId = targetIds[i];\n var targetType = registry.getTargetType(targetId);\n\n if (!matchesType(targetType, draggedItemType)) {\n targetIds.splice(i, 1);\n }\n }\n}\n\nfunction hoverAllTargets(targetIds, monitor, registry) {\n // Finally call hover on all matching targets.\n targetIds.forEach(function (targetId) {\n var target = registry.getTarget(targetId);\n target.hover(monitor, targetId);\n });\n}","export default function matchesType(targetType, draggedItemType) {\n if (draggedItemType === null) {\n return targetType === null;\n }\n\n return Array.isArray(targetType) ? targetType.some(function (t) {\n return t === draggedItemType;\n }) : targetType === draggedItemType;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { DROP } from './types';\nimport { isObject } from '../../utils/js_utils';\nexport default function createDrop(manager) {\n return function drop() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyInvariants(monitor);\n var targetIds = getDroppableTargets(monitor); // Multiple actions are dispatched here, which is why this doesn't return an action\n\n targetIds.forEach(function (targetId, index) {\n var dropResult = determineDropResult(targetId, index, registry, monitor);\n var action = {\n type: DROP,\n payload: {\n dropResult: _objectSpread({}, options, {}, dropResult)\n }\n };\n manager.dispatch(action);\n });\n };\n}\n\nfunction verifyInvariants(monitor) {\n invariant(monitor.isDragging(), 'Cannot call drop while not dragging.');\n invariant(!monitor.didDrop(), 'Cannot call drop twice during one drag operation.');\n}\n\nfunction determineDropResult(targetId, index, registry, monitor) {\n var target = registry.getTarget(targetId);\n var dropResult = target ? target.drop(monitor, targetId) : undefined;\n verifyDropResultType(dropResult);\n\n if (typeof dropResult === 'undefined') {\n dropResult = index === 0 ? {} : monitor.getDropResult();\n }\n\n return dropResult;\n}\n\nfunction verifyDropResultType(dropResult) {\n invariant(typeof dropResult === 'undefined' || isObject(dropResult), 'Drop result must either be an object or undefined.');\n}\n\nfunction getDroppableTargets(monitor) {\n var targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor);\n targetIds.reverse();\n return targetIds;\n}","import { invariant } from '@react-dnd/invariant';\nimport { END_DRAG } from './types';\nexport default function createEndDrag(manager) {\n return function endDrag() {\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyIsDragging(monitor);\n var sourceId = monitor.getSourceId();\n var source = registry.getSource(sourceId, true);\n source.endDrag(monitor, sourceId);\n registry.unpinSource();\n return {\n type: END_DRAG\n };\n };\n}\n\nfunction verifyIsDragging(monitor) {\n invariant(monitor.isDragging(), 'Cannot call endDrag while not dragging.');\n}","export var strictEquality = function strictEquality(a, b) {\n return a === b;\n};\n/**\n * Determine if two cartesian coordinate offsets are equal\n * @param offsetA\n * @param offsetB\n */\n\nexport function areCoordsEqual(offsetA, offsetB) {\n if (!offsetA && !offsetB) {\n return true;\n } else if (!offsetA || !offsetB) {\n return false;\n } else {\n return offsetA.x === offsetB.x && offsetA.y === offsetB.y;\n }\n}\n/**\n * Determines if two arrays of items are equal\n * @param a The first array of items\n * @param b The second array of items\n */\n\nexport function areArraysEqual(a, b) {\n var isEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : strictEquality;\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (var i = 0; i < a.length; ++i) {\n if (!isEqual(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { BEGIN_DRAG, PUBLISH_DRAG_SOURCE, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { REMOVE_TARGET } from '../actions/registry';\nimport { without } from '../utils/js_utils';\nvar initialState = {\n itemType: null,\n item: null,\n sourceId: null,\n targetIds: [],\n dropResult: null,\n didDrop: false,\n isSourcePublic: null\n};\nexport default function dragOperation() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n\n switch (action.type) {\n case BEGIN_DRAG:\n return _objectSpread({}, state, {\n itemType: payload.itemType,\n item: payload.item,\n sourceId: payload.sourceId,\n isSourcePublic: payload.isSourcePublic,\n dropResult: null,\n didDrop: false\n });\n\n case PUBLISH_DRAG_SOURCE:\n return _objectSpread({}, state, {\n isSourcePublic: true\n });\n\n case HOVER:\n return _objectSpread({}, state, {\n targetIds: payload.targetIds\n });\n\n case REMOVE_TARGET:\n if (state.targetIds.indexOf(payload.targetId) === -1) {\n return state;\n }\n\n return _objectSpread({}, state, {\n targetIds: without(state.targetIds, payload.targetId)\n });\n\n case DROP:\n return _objectSpread({}, state, {\n dropResult: payload.dropResult,\n didDrop: true,\n targetIds: []\n });\n\n case END_DRAG:\n return _objectSpread({}, state, {\n itemType: null,\n item: null,\n sourceId: null,\n dropResult: null,\n didDrop: false,\n isSourcePublic: null,\n targetIds: []\n });\n\n default:\n return state;\n }\n}","export var ADD_SOURCE = 'dnd-core/ADD_SOURCE';\nexport var ADD_TARGET = 'dnd-core/ADD_TARGET';\nexport var REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE';\nexport var REMOVE_TARGET = 'dnd-core/REMOVE_TARGET';\nexport function addSource(sourceId) {\n return {\n type: ADD_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nexport function addTarget(targetId) {\n return {\n type: ADD_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}\nexport function removeSource(sourceId) {\n return {\n type: REMOVE_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nexport function removeTarget(targetId) {\n return {\n type: REMOVE_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}","import { ADD_SOURCE, ADD_TARGET, REMOVE_SOURCE, REMOVE_TARGET } from '../actions/registry';\nexport default function refCount() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case ADD_SOURCE:\n case ADD_TARGET:\n return state + 1;\n\n case REMOVE_SOURCE:\n case REMOVE_TARGET:\n return state - 1;\n\n default:\n return state;\n }\n}","import { BEGIN_DRAG, PUBLISH_DRAG_SOURCE, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { ADD_SOURCE, ADD_TARGET, REMOVE_SOURCE, REMOVE_TARGET } from '../actions/registry';\nimport { areArraysEqual } from '../utils/equality';\nimport { NONE, ALL } from '../utils/dirtiness';\nimport { xor } from '../utils/js_utils';\nexport default function dirtyHandlerIds() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : NONE;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case HOVER:\n break;\n\n case ADD_SOURCE:\n case ADD_TARGET:\n case REMOVE_TARGET:\n case REMOVE_SOURCE:\n return NONE;\n\n case BEGIN_DRAG:\n case PUBLISH_DRAG_SOURCE:\n case END_DRAG:\n case DROP:\n default:\n return ALL;\n }\n\n var _action$payload = action.payload,\n _action$payload$targe = _action$payload.targetIds,\n targetIds = _action$payload$targe === void 0 ? [] : _action$payload$targe,\n _action$payload$prevT = _action$payload.prevTargetIds,\n prevTargetIds = _action$payload$prevT === void 0 ? [] : _action$payload$prevT;\n var result = xor(targetIds, prevTargetIds);\n var didChange = result.length > 0 || !areArraysEqual(targetIds, prevTargetIds);\n\n if (!didChange) {\n return NONE;\n } // Check the target ids at the innermost position. If they are valid, add them\n // to the result\n\n\n var prevInnermostTargetId = prevTargetIds[prevTargetIds.length - 1];\n var innermostTargetId = targetIds[targetIds.length - 1];\n\n if (prevInnermostTargetId !== innermostTargetId) {\n if (prevInnermostTargetId) {\n result.push(prevInnermostTargetId);\n }\n\n if (innermostTargetId) {\n result.push(innermostTargetId);\n }\n }\n\n return result;\n}","import { intersection } from './js_utils';\nexport var NONE = [];\nexport var ALL = [];\nNONE.__IS_NONE__ = true;\nALL.__IS_ALL__ = true;\n/**\n * Determines if the given handler IDs are dirty or not.\n *\n * @param dirtyIds The set of dirty handler ids\n * @param handlerIds The set of handler ids to check\n */\n\nexport function areDirty(dirtyIds, handlerIds) {\n if (dirtyIds === NONE) {\n return false;\n }\n\n if (dirtyIds === ALL || typeof handlerIds === 'undefined') {\n return true;\n }\n\n var commonIds = intersection(handlerIds, dirtyIds);\n return commonIds.length > 0;\n}","export default function stateId() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n return state + 1;\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport matchesType from './utils/matchesType';\nimport { getSourceClientOffset as _getSourceClientOffset, getDifferenceFromInitialOffset as _getDifferenceFromInitialOffset } from './utils/coords';\nimport { areDirty } from './utils/dirtiness';\n\nvar DragDropMonitorImpl =\n/*#__PURE__*/\nfunction () {\n function DragDropMonitorImpl(store, registry) {\n _classCallCheck(this, DragDropMonitorImpl);\n\n this.store = store;\n this.registry = registry;\n }\n\n _createClass(DragDropMonitorImpl, [{\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n handlerIds: undefined\n };\n var handlerIds = options.handlerIds;\n invariant(typeof listener === 'function', 'listener must be a function.');\n invariant(typeof handlerIds === 'undefined' || Array.isArray(handlerIds), 'handlerIds, when specified, must be an array of strings.');\n var prevStateId = this.store.getState().stateId;\n\n var handleChange = function handleChange() {\n var state = _this.store.getState();\n\n var currentStateId = state.stateId;\n\n try {\n var canSkipListener = currentStateId === prevStateId || currentStateId === prevStateId + 1 && !areDirty(state.dirtyHandlerIds, handlerIds);\n\n if (!canSkipListener) {\n listener();\n }\n } finally {\n prevStateId = currentStateId;\n }\n };\n\n return this.store.subscribe(handleChange);\n }\n }, {\n key: \"subscribeToOffsetChange\",\n value: function subscribeToOffsetChange(listener) {\n var _this2 = this;\n\n invariant(typeof listener === 'function', 'listener must be a function.');\n var previousState = this.store.getState().dragOffset;\n\n var handleChange = function handleChange() {\n var nextState = _this2.store.getState().dragOffset;\n\n if (nextState === previousState) {\n return;\n }\n\n previousState = nextState;\n listener();\n };\n\n return this.store.subscribe(handleChange);\n }\n }, {\n key: \"canDragSource\",\n value: function canDragSource(sourceId) {\n if (!sourceId) {\n return false;\n }\n\n var source = this.registry.getSource(sourceId);\n invariant(source, 'Expected to find a valid source.');\n\n if (this.isDragging()) {\n return false;\n }\n\n return source.canDrag(this, sourceId);\n }\n }, {\n key: \"canDropOnTarget\",\n value: function canDropOnTarget(targetId) {\n // undefined on initial render\n if (!targetId) {\n return false;\n }\n\n var target = this.registry.getTarget(targetId);\n invariant(target, 'Expected to find a valid target.');\n\n if (!this.isDragging() || this.didDrop()) {\n return false;\n }\n\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n return matchesType(targetType, draggedItemType) && target.canDrop(this, targetId);\n }\n }, {\n key: \"isDragging\",\n value: function isDragging() {\n return Boolean(this.getItemType());\n }\n }, {\n key: \"isDraggingSource\",\n value: function isDraggingSource(sourceId) {\n // undefined on initial render\n if (!sourceId) {\n return false;\n }\n\n var source = this.registry.getSource(sourceId, true);\n invariant(source, 'Expected to find a valid source.');\n\n if (!this.isDragging() || !this.isSourcePublic()) {\n return false;\n }\n\n var sourceType = this.registry.getSourceType(sourceId);\n var draggedItemType = this.getItemType();\n\n if (sourceType !== draggedItemType) {\n return false;\n }\n\n return source.isDragging(this, sourceId);\n }\n }, {\n key: \"isOverTarget\",\n value: function isOverTarget(targetId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n shallow: false\n };\n\n // undefined on initial render\n if (!targetId) {\n return false;\n }\n\n var shallow = options.shallow;\n\n if (!this.isDragging()) {\n return false;\n }\n\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n\n if (draggedItemType && !matchesType(targetType, draggedItemType)) {\n return false;\n }\n\n var targetIds = this.getTargetIds();\n\n if (!targetIds.length) {\n return false;\n }\n\n var index = targetIds.indexOf(targetId);\n\n if (shallow) {\n return index === targetIds.length - 1;\n } else {\n return index > -1;\n }\n }\n }, {\n key: \"getItemType\",\n value: function getItemType() {\n return this.store.getState().dragOperation.itemType;\n }\n }, {\n key: \"getItem\",\n value: function getItem() {\n return this.store.getState().dragOperation.item;\n }\n }, {\n key: \"getSourceId\",\n value: function getSourceId() {\n return this.store.getState().dragOperation.sourceId;\n }\n }, {\n key: \"getTargetIds\",\n value: function getTargetIds() {\n return this.store.getState().dragOperation.targetIds;\n }\n }, {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.store.getState().dragOperation.dropResult;\n }\n }, {\n key: \"didDrop\",\n value: function didDrop() {\n return this.store.getState().dragOperation.didDrop;\n }\n }, {\n key: \"isSourcePublic\",\n value: function isSourcePublic() {\n return this.store.getState().dragOperation.isSourcePublic;\n }\n }, {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.store.getState().dragOffset.initialClientOffset;\n }\n }, {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.store.getState().dragOffset.initialSourceClientOffset;\n }\n }, {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.store.getState().dragOffset.clientOffset;\n }\n }, {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return _getSourceClientOffset(this.store.getState().dragOffset);\n }\n }, {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return _getDifferenceFromInitialOffset(this.store.getState().dragOffset);\n }\n }]);\n\n return DragDropMonitorImpl;\n}();\n\nexport { DragDropMonitorImpl as default };","/**\n * Coordinate addition\n * @param a The first coordinate\n * @param b The second coordinate\n */\nexport function add(a, b) {\n return {\n x: a.x + b.x,\n y: a.y + b.y\n };\n}\n/**\n * Coordinate subtraction\n * @param a The first coordinate\n * @param b The second coordinate\n */\n\nexport function subtract(a, b) {\n return {\n x: a.x - b.x,\n y: a.y - b.y\n };\n}\n/**\n * Returns the cartesian distance of the drag source component's position, based on its position\n * at the time when the current drag operation has started, and the movement difference.\n *\n * Returns null if no item is being dragged.\n *\n * @param state The offset state to compute from\n */\n\nexport function getSourceClientOffset(state) {\n var clientOffset = state.clientOffset,\n initialClientOffset = state.initialClientOffset,\n initialSourceClientOffset = state.initialSourceClientOffset;\n\n if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) {\n return null;\n }\n\n return subtract(add(clientOffset, initialSourceClientOffset), initialClientOffset);\n}\n/**\n * Determines the x,y offset between the client offset and the initial client offset\n *\n * @param state The offset state to compute from\n */\n\nexport function getDifferenceFromInitialOffset(state) {\n var clientOffset = state.clientOffset,\n initialClientOffset = state.initialClientOffset;\n\n if (!clientOffset || !initialClientOffset) {\n return null;\n }\n\n return subtract(clientOffset, initialClientOffset);\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { addSource as _addSource, addTarget as _addTarget, removeSource as _removeSource, removeTarget as _removeTarget } from './actions/registry';\nimport getNextUniqueId from './utils/getNextUniqueId';\nimport { HandlerRole } from './interfaces';\nimport { validateSourceContract, validateTargetContract, validateType } from './contracts';\nimport { asap } from '@react-dnd/asap';\n\nfunction getNextHandlerId(role) {\n var id = getNextUniqueId().toString();\n\n switch (role) {\n case HandlerRole.SOURCE:\n return \"S\".concat(id);\n\n case HandlerRole.TARGET:\n return \"T\".concat(id);\n\n default:\n throw new Error(\"Unknown Handler Role: \".concat(role));\n }\n}\n\nfunction parseRoleFromHandlerId(handlerId) {\n switch (handlerId[0]) {\n case 'S':\n return HandlerRole.SOURCE;\n\n case 'T':\n return HandlerRole.TARGET;\n\n default:\n invariant(false, \"Cannot parse handler ID: \".concat(handlerId));\n }\n}\n\nfunction mapContainsValue(map, searchValue) {\n var entries = map.entries();\n var isDone = false;\n\n do {\n var _entries$next = entries.next(),\n done = _entries$next.done,\n _entries$next$value = _slicedToArray(_entries$next.value, 2),\n value = _entries$next$value[1];\n\n if (value === searchValue) {\n return true;\n }\n\n isDone = !!done;\n } while (!isDone);\n\n return false;\n}\n\nvar HandlerRegistryImpl =\n/*#__PURE__*/\nfunction () {\n function HandlerRegistryImpl(store) {\n _classCallCheck(this, HandlerRegistryImpl);\n\n this.types = new Map();\n this.dragSources = new Map();\n this.dropTargets = new Map();\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n this.store = store;\n }\n\n _createClass(HandlerRegistryImpl, [{\n key: \"addSource\",\n value: function addSource(type, source) {\n validateType(type);\n validateSourceContract(source);\n var sourceId = this.addHandler(HandlerRole.SOURCE, type, source);\n this.store.dispatch(_addSource(sourceId));\n return sourceId;\n }\n }, {\n key: \"addTarget\",\n value: function addTarget(type, target) {\n validateType(type, true);\n validateTargetContract(target);\n var targetId = this.addHandler(HandlerRole.TARGET, type, target);\n this.store.dispatch(_addTarget(targetId));\n return targetId;\n }\n }, {\n key: \"containsHandler\",\n value: function containsHandler(handler) {\n return mapContainsValue(this.dragSources, handler) || mapContainsValue(this.dropTargets, handler);\n }\n }, {\n key: \"getSource\",\n value: function getSource(sourceId) {\n var includePinned = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n invariant(this.isSourceId(sourceId), 'Expected a valid source ID.');\n var isPinned = includePinned && sourceId === this.pinnedSourceId;\n var source = isPinned ? this.pinnedSource : this.dragSources.get(sourceId);\n return source;\n }\n }, {\n key: \"getTarget\",\n value: function getTarget(targetId) {\n invariant(this.isTargetId(targetId), 'Expected a valid target ID.');\n return this.dropTargets.get(targetId);\n }\n }, {\n key: \"getSourceType\",\n value: function getSourceType(sourceId) {\n invariant(this.isSourceId(sourceId), 'Expected a valid source ID.');\n return this.types.get(sourceId);\n }\n }, {\n key: \"getTargetType\",\n value: function getTargetType(targetId) {\n invariant(this.isTargetId(targetId), 'Expected a valid target ID.');\n return this.types.get(targetId);\n }\n }, {\n key: \"isSourceId\",\n value: function isSourceId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === HandlerRole.SOURCE;\n }\n }, {\n key: \"isTargetId\",\n value: function isTargetId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === HandlerRole.TARGET;\n }\n }, {\n key: \"removeSource\",\n value: function removeSource(sourceId) {\n var _this = this;\n\n invariant(this.getSource(sourceId), 'Expected an existing source.');\n this.store.dispatch(_removeSource(sourceId));\n asap(function () {\n _this.dragSources.delete(sourceId);\n\n _this.types.delete(sourceId);\n });\n }\n }, {\n key: \"removeTarget\",\n value: function removeTarget(targetId) {\n invariant(this.getTarget(targetId), 'Expected an existing target.');\n this.store.dispatch(_removeTarget(targetId));\n this.dropTargets.delete(targetId);\n this.types.delete(targetId);\n }\n }, {\n key: \"pinSource\",\n value: function pinSource(sourceId) {\n var source = this.getSource(sourceId);\n invariant(source, 'Expected an existing source.');\n this.pinnedSourceId = sourceId;\n this.pinnedSource = source;\n }\n }, {\n key: \"unpinSource\",\n value: function unpinSource() {\n invariant(this.pinnedSource, 'No source is pinned at the time.');\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n }\n }, {\n key: \"addHandler\",\n value: function addHandler(role, type, handler) {\n var id = getNextHandlerId(role);\n this.types.set(id, type);\n\n if (role === HandlerRole.SOURCE) {\n this.dragSources.set(id, handler);\n } else if (role === HandlerRole.TARGET) {\n this.dropTargets.set(id, handler);\n }\n\n return id;\n }\n }]);\n\n return HandlerRegistryImpl;\n}();\n\nexport { HandlerRegistryImpl as default };","var nextUniqueId = 0;\nexport default function getNextUniqueId() {\n return nextUniqueId++;\n}","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { invariant } from '@react-dnd/invariant';\nexport function validateSourceContract(source) {\n invariant(typeof source.canDrag === 'function', 'Expected canDrag to be a function.');\n invariant(typeof source.beginDrag === 'function', 'Expected beginDrag to be a function.');\n invariant(typeof source.endDrag === 'function', 'Expected endDrag to be a function.');\n}\nexport function validateTargetContract(target) {\n invariant(typeof target.canDrop === 'function', 'Expected canDrop to be a function.');\n invariant(typeof target.hover === 'function', 'Expected hover to be a function.');\n invariant(typeof target.drop === 'function', 'Expected beginDrag to be a function.');\n}\nexport function validateType(type, allowArray) {\n if (allowArray && Array.isArray(type)) {\n type.forEach(function (t) {\n return validateType(t, false);\n });\n return;\n }\n\n invariant(typeof type === 'string' || _typeof(type) === 'symbol', allowArray ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.');\n}","export * from './asap';","import { rawAsap } from './raw'; // rawAsap provides everything we need except exception management.\n// RawTasks are recycled to reduce GC churn.\n\nvar freeTasks = []; // We queue errors to ensure they are thrown in right order (FIFO).\n// Array-as-queue is good enough here, since we are just dealing with exceptions.\n\nvar pendingErrors = [];\nvar requestErrorThrow = rawAsap.makeRequestCallFromTimer(throwFirstError);\n\nfunction throwFirstError() {\n if (pendingErrors.length) {\n throw pendingErrors.shift();\n }\n}\n/**\n * Calls a task as soon as possible after returning, in its own event, with priority\n * over other events like animation, reflow, and repaint. An error thrown from an\n * event will not interrupt, nor even substantially slow down the processing of\n * other events, but will be rather postponed to a lower priority event.\n * @param {{call}} task A callable object, typically a function that takes no\n * arguments.\n */\n\n\nexport function asap(task) {\n var rawTask;\n\n if (freeTasks.length) {\n rawTask = freeTasks.pop();\n } else {\n rawTask = new RawTask();\n }\n\n rawTask.task = task;\n rawAsap(rawTask);\n} // We wrap tasks with recyclable task objects. A task object implements\n// `call`, just like a function.\n\nvar RawTask =\n/** @class */\nfunction () {\n function RawTask() {}\n\n RawTask.prototype.call = function () {\n try {\n this.task.call();\n } catch (error) {\n if (asap.onerror) {\n // This hook exists purely for testing purposes.\n // Its name will be periodically randomized to break any code that\n // depends on its existence.\n asap.onerror(error);\n } else {\n // In a web browser, exceptions are not fatal. However, to avoid\n // slowing down the queue of pending tasks, we rethrow the error in a\n // lower priority turn.\n pendingErrors.push(error);\n requestErrorThrow();\n }\n } finally {\n this.task = null;\n freeTasks[freeTasks.length] = this;\n }\n };\n\n return RawTask;\n}();","// Use the fastest means possible to execute a task in its own turn, with\n// priority over other events including IO, animation, reflow, and redraw\n// events in browsers.\n//\n// An exception thrown by a task will permanently interrupt the processing of\n// subsequent tasks. The higher level `asap` function ensures that if an\n// exception is thrown by a task, that the task queue will continue flushing as\n// soon as possible, but if you use `rawAsap` directly, you are responsible to\n// either ensure that no exceptions are thrown from your task, or to manually\n// call `rawAsap.requestFlush` if an exception is thrown.\nexport function rawAsap(task) {\n if (!queue.length) {\n requestFlush();\n flushing = true;\n } // Equivalent to push, but avoids a function call.\n\n\n queue[queue.length] = task;\n}\nvar queue = []; // Once a flush has been requested, no further calls to `requestFlush` are\n// necessary until the next `flush` completes.\n// @ts-ignore\n\nvar flushing = false; // `requestFlush` is an implementation-specific method that attempts to kick\n// off a `flush` event as quickly as possible. `flush` will attempt to exhaust\n// the event queue before yielding to the browser's own event loop.\n\nvar requestFlush; // The position of the next task to execute in the task queue. This is\n// preserved between calls to `flush` so that it can be resumed if\n// a task throws an exception.\n\nvar index = 0; // If a task schedules additional tasks recursively, the task queue can grow\n// unbounded. To prevent memory exhaustion, the task queue will periodically\n// truncate already-completed tasks.\n\nvar capacity = 1024; // The flush function processes all tasks that have been scheduled with\n// `rawAsap` unless and until one of those tasks throws an exception.\n// If a task throws an exception, `flush` ensures that its state will remain\n// consistent and will resume where it left off when called again.\n// However, `flush` does not make any arrangements to be called again if an\n// exception is thrown.\n\nfunction flush() {\n while (index < queue.length) {\n var currentIndex = index; // Advance the index before calling the task. This ensures that we will\n // begin flushing on the next task the task throws an error.\n\n index = index + 1;\n queue[currentIndex].call(); // Prevent leaking memory for long chains of recursive calls to `asap`.\n // If we call `asap` within tasks scheduled by `asap`, the queue will\n // grow, but to avoid an O(n) walk for every task we execute, we don't\n // shift tasks off the queue after they have been executed.\n // Instead, we periodically shift 1024 tasks off the queue.\n\n if (index > capacity) {\n // Manually shift all values starting at the index back to the\n // beginning of the queue.\n for (var scan = 0, newLength = queue.length - index; scan < newLength; scan++) {\n queue[scan] = queue[scan + index];\n }\n\n queue.length -= index;\n index = 0;\n }\n }\n\n queue.length = 0;\n index = 0;\n flushing = false;\n} // `requestFlush` is implemented using a strategy based on data collected from\n// every available SauceLabs Selenium web driver worker at time of writing.\n// https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593\n// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that\n// have WebKitMutationObserver but not un-prefixed MutationObserver.\n// Must use `global` or `self` instead of `window` to work in both frames and web\n// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.\n\n/* globals self */\n\n\nvar scope = typeof global !== 'undefined' ? global : self;\nvar BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver; // MutationObservers are desirable because they have high priority and work\n// reliably everywhere they are implemented.\n// They are implemented in all modern browsers.\n//\n// - Android 4-4.3\n// - Chrome 26-34\n// - Firefox 14-29\n// - Internet Explorer 11\n// - iPad Safari 6-7.1\n// - iPhone Safari 7-7.1\n// - Safari 6-7\n\nif (typeof BrowserMutationObserver === 'function') {\n requestFlush = makeRequestCallFromMutationObserver(flush); // MessageChannels are desirable because they give direct access to the HTML\n // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera\n // 11-12, and in web workers in many engines.\n // Although message channels yield to any queued rendering and IO tasks, they\n // would be better than imposing the 4ms delay of timers.\n // However, they do not work reliably in Internet Explorer or Safari.\n // Internet Explorer 10 is the only browser that has setImmediate but does\n // not have MutationObservers.\n // Although setImmediate yields to the browser's renderer, it would be\n // preferrable to falling back to setTimeout since it does not have\n // the minimum 4ms penalty.\n // Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and\n // Desktop to a lesser extent) that renders both setImmediate and\n // MessageChannel useless for the purposes of ASAP.\n // https://github.com/kriskowal/q/issues/396\n // Timers are implemented universally.\n // We fall back to timers in workers in most engines, and in foreground\n // contexts in the following browsers.\n // However, note that even this simple case requires nuances to operate in a\n // broad spectrum of browsers.\n //\n // - Firefox 3-13\n // - Internet Explorer 6-9\n // - iPad Safari 4.3\n // - Lynx 2.8.7\n} else {\n requestFlush = makeRequestCallFromTimer(flush);\n} // `requestFlush` requests that the high priority event queue be flushed as\n// soon as possible.\n// This is useful to prevent an error thrown in a task from stalling the event\n// queue if the exception handled by Node.js’s\n// `process.on(\"uncaughtException\")` or by a domain.\n\n\nrawAsap.requestFlush = requestFlush; // To request a high priority event, we induce a mutation observer by toggling\n// the text of a text node between \"1\" and \"-1\".\n\nfunction makeRequestCallFromMutationObserver(callback) {\n var toggle = 1;\n var observer = new BrowserMutationObserver(callback);\n var node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return function requestCall() {\n toggle = -toggle;\n node.data = toggle;\n };\n} // The message channel technique was discovered by Malte Ubl and was the\n// original foundation for this library.\n// http://www.nonblocking.io/2011/06/windownexttick.html\n// Safari 6.0.5 (at least) intermittently fails to create message ports on a\n// page's first load. Thankfully, this version of Safari supports\n// MutationObservers, so we don't need to fall back in that case.\n// function makeRequestCallFromMessageChannel(callback) {\n// var channel = new MessageChannel();\n// channel.port1.onmessage = callback;\n// return function requestCall() {\n// channel.port2.postMessage(0);\n// };\n// }\n// For reasons explained above, we are also unable to use `setImmediate`\n// under any circumstances.\n// Even if we were, there is another bug in Internet Explorer 10.\n// It is not sufficient to assign `setImmediate` to `requestFlush` because\n// `setImmediate` must be called *by name* and therefore must be wrapped in a\n// closure.\n// Never forget.\n// function makeRequestCallFromSetImmediate(callback) {\n// return function requestCall() {\n// setImmediate(callback);\n// };\n// }\n// Safari 6.0 has a problem where timers will get lost while the user is\n// scrolling. This problem does not impact ASAP because Safari 6.0 supports\n// mutation observers, so that implementation is used instead.\n// However, if we ever elect to use timers in Safari, the prevalent work-around\n// is to add a scroll event listener that calls for a flush.\n// `setTimeout` does not call the passed callback if the delay is less than\n// approximately 7 in web workers in Firefox 8 through 18, and sometimes not\n// even then.\n\n\nfunction makeRequestCallFromTimer(callback) {\n return function requestCall() {\n // We dispatch a timeout with a specified delay of 0 for engines that\n // can reliably accommodate that request. This will usually be snapped\n // to a 4 milisecond delay, but once we're flushing, there's no delay\n // between events.\n var timeoutHandle = setTimeout(handleTimer, 0); // However, since this timer gets frequently dropped in Firefox\n // workers, we enlist an interval handle that will try to fire\n // an event 20 times per second until it succeeds.\n\n var intervalHandle = setInterval(handleTimer, 50);\n\n function handleTimer() {\n // Whichever timer succeeds will cancel both timers and\n // execute the callback.\n clearTimeout(timeoutHandle);\n clearInterval(intervalHandle);\n callback();\n }\n };\n} // This is for `asap.js` only.\n// Its name will be periodically randomized to break any code that depends on\n// its existence.\n\n\nrawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer; // ASAP was originally a nextTick shim included in Q. This was factored out\n// into this ASAP package. It was later adapted to RSVP which made further\n// amendments. These decisions, particularly to marginalize MessageChannel and\n// to capture the MutationObserver implementation in a closure, were integrated\n// back into ASAP proper.\n// https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from 'react';\nimport { memo } from 'react';\nimport { DndContext, createDndContext } from './DndContext';\nvar refCount = 0;\n/**\n * A React component that provides the React-DnD context\n */\n\nexport var DndProvider = memo(function (_ref) {\n var children = _ref.children,\n props = _objectWithoutProperties(_ref, [\"children\"]);\n\n var _getDndContextValue = getDndContextValue(props),\n _getDndContextValue2 = _slicedToArray(_getDndContextValue, 2),\n manager = _getDndContextValue2[0],\n isGlobalInstance = _getDndContextValue2[1]; // memoized from props\n\n /**\n * If the global context was used to store the DND context\n * then where theres no more references to it we should\n * clean it up to avoid memory leaks\n */\n\n\n React.useEffect(function () {\n if (isGlobalInstance) {\n refCount++;\n }\n\n return function () {\n if (isGlobalInstance) {\n refCount--;\n\n if (refCount === 0) {\n var context = getGlobalContext();\n context[instanceSymbol] = null;\n }\n }\n };\n }, []);\n return React.createElement(DndContext.Provider, {\n value: manager\n }, children);\n});\nDndProvider.displayName = 'DndProvider';\n\nfunction getDndContextValue(props) {\n if ('manager' in props) {\n var _manager = {\n dragDropManager: props.manager\n };\n return [_manager, false];\n }\n\n var manager = createSingletonDndContext(props.backend, props.context, props.options, props.debugMode);\n var isGlobalInstance = !props.context;\n return [manager, isGlobalInstance];\n}\n\nvar instanceSymbol = Symbol.for('__REACT_DND_CONTEXT_INSTANCE__');\n\nfunction createSingletonDndContext(backend) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getGlobalContext();\n var options = arguments.length > 2 ? arguments[2] : undefined;\n var debugMode = arguments.length > 3 ? arguments[3] : undefined;\n var ctx = context;\n\n if (!ctx[instanceSymbol]) {\n ctx[instanceSymbol] = createDndContext(backend, context, options, debugMode);\n }\n\n return ctx[instanceSymbol];\n}\n\nfunction getGlobalContext() {\n return typeof global !== 'undefined' ? global : window;\n}","export * from './useDrag';\nexport * from './useDrop';\nexport * from './useDragLayer';","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useEffect } from 'react';\nimport { useDragDropManager } from './internal/useDragDropManager';\nimport { useCollector } from './internal/useCollector';\n/**\n * useDragLayer Hook\n * @param collector The property collector\n */\n\nexport function useDragLayer(collect) {\n var dragDropManager = useDragDropManager();\n var monitor = dragDropManager.getMonitor();\n\n var _useCollector = useCollector(monitor, collect),\n _useCollector2 = _slicedToArray(_useCollector, 2),\n collected = _useCollector2[0],\n updateCollected = _useCollector2[1];\n\n useEffect(function () {\n return monitor.subscribeToOffsetChange(updateCollected);\n });\n useEffect(function () {\n return monitor.subscribeToStateChange(updateCollected);\n });\n return collected;\n}","import { useContext } from 'react';\nimport { invariant } from '@react-dnd/invariant';\nimport { DndContext } from '../../common/DndContext';\n/**\n * A hook to retrieve the DragDropManager from Context\n */\n\nexport function useDragDropManager() {\n var _useContext = useContext(DndContext),\n dragDropManager = _useContext.dragDropManager;\n\n invariant(dragDropManager != null, 'Expected drag drop context');\n return dragDropManager;\n}","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { shallowEqual } from '@react-dnd/shallowequal';\nimport { useState, useCallback } from 'react';\nimport { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';\n/**\n *\n * @param monitor The monitor to collect state from\n * @param collect The collecting function\n * @param onUpdate A method to invoke when updates occur\n */\n\nexport function useCollector(monitor, collect, onUpdate) {\n var _useState = useState(function () {\n return collect(monitor);\n }),\n _useState2 = _slicedToArray(_useState, 2),\n collected = _useState2[0],\n setCollected = _useState2[1];\n\n var updateCollected = useCallback(function () {\n var nextValue = collect(monitor);\n\n if (!shallowEqual(collected, nextValue)) {\n setCollected(nextValue);\n\n if (onUpdate) {\n onUpdate();\n }\n }\n }, [collected, monitor, onUpdate]); // update the collected properties after the first render\n // and the components are attached to dnd-core\n\n useIsomorphicLayoutEffect(updateCollected, []);\n return [collected, updateCollected];\n}","function shallowEqual(objA, objB, compare, compareContext) {\n var compareResult = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (compareResult !== void 0) {\n return !!compareResult;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== 'object' || !objA || typeof objB !== 'object' || !objB) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); // Test for A's keys different from B.\n\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n compareResult = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (compareResult === false || compareResult === void 0 && valueA !== valueB) {\n return false;\n }\n }\n\n return true;\n}\n\nexport { shallowEqual };\n//# sourceMappingURL=shallowequal.esm.js.map\n","export function shallowEqual(\n objA: T,\n objB: T,\n compare?: (a: T, b: T, key?: string) => boolean | void,\n compareContext?: any\n) {\n var compareResult = compare\n ? compare.call(compareContext, objA, objB)\n : void 0;\n if (compareResult !== void 0) {\n return !!compareResult;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== 'object' || !objA || typeof objB !== 'object' || !objB) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n // Test for A's keys different from B.\n for (var idx = 0; idx < keysA.length; idx++) {\n var key = keysA[idx];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = (objA as any)[key];\n var valueB = (objB as any)[key];\n\n compareResult = compare\n ? compare.call(compareContext, valueA, valueB, key)\n : void 0;\n\n if (\n compareResult === false ||\n (compareResult === void 0 && valueA !== valueB)\n ) {\n return false;\n }\n }\n\n return true;\n}\n","import { useLayoutEffect, useEffect } from 'react'; // suppress the useLayoutEffect warning on server side.\n\nexport var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;","export * from './DragSource';\nexport * from './DropTarget';\nexport * from './DragLayer';","import { invariant } from '@react-dnd/invariant';\nimport { isPlainObject } from '../utils/js_utils';\nimport { checkDecoratorArguments } from './utils';\nimport decorateHandler from './decorateHandler';\nimport { registerSource } from '../common/registration';\nimport { DragSourceMonitorImpl } from '../common/DragSourceMonitorImpl';\nimport { SourceConnector } from '../common/SourceConnector';\nimport { isValidType } from '../utils/isValidType';\nimport createSourceFactory from './createSourceFactory';\n/**\n * Decorates a component as a dragsource\n * @param type The dragsource type\n * @param spec The drag source specification\n * @param collect The props collector function\n * @param options DnD options\n */\n\nexport function DragSource(type, spec, collect) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n checkDecoratorArguments('DragSource', 'type, spec, collect[, options]', type, spec, collect, options);\n var getType = type;\n\n if (typeof type !== 'function') {\n invariant(isValidType(type), 'Expected \"type\" provided as the first argument to DragSource to be ' + 'a string, or a function that returns a string given the current props. ' + 'Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', type);\n\n getType = function getType() {\n return type;\n };\n }\n\n invariant(isPlainObject(spec), 'Expected \"spec\" provided as the second argument to DragSource to be ' + 'a plain object. Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', spec);\n var createSource = createSourceFactory(spec);\n invariant(typeof collect === 'function', 'Expected \"collect\" provided as the third argument to DragSource to be ' + 'a function that returns a plain object of props to inject. ' + 'Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect);\n invariant(isPlainObject(options), 'Expected \"options\" provided as the fourth argument to DragSource to be ' + 'a plain object when specified. ' + 'Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect);\n return function decorateSource(DecoratedComponent) {\n return decorateHandler({\n containerDisplayName: 'DragSource',\n createHandler: createSource,\n registerHandler: registerSource,\n createConnector: function createConnector(backend) {\n return new SourceConnector(backend);\n },\n createMonitor: function createMonitor(manager) {\n return new DragSourceMonitorImpl(manager);\n },\n DecoratedComponent: DecoratedComponent,\n getType: getType,\n collect: collect,\n options: options\n });\n };\n}","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// cheap lodash replacements\nexport function isFunction(input) {\n return typeof input === 'function';\n}\nexport function noop() {// noop\n}\n\nfunction isObjectLike(input) {\n return _typeof(input) === 'object' && input !== null;\n}\n\nexport function isPlainObject(input) {\n if (!isObjectLike(input)) {\n return false;\n }\n\n if (Object.getPrototypeOf(input) === null) {\n return true;\n }\n\n var proto = input;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(input) === proto;\n}","export function getDecoratedComponent(instanceRef) {\n var currentRef = instanceRef.current;\n\n if (currentRef == null) {\n return null;\n } else if (currentRef.decoratedRef) {\n // go through the private field in decorateHandler to avoid the invariant hit\n return currentRef.decoratedRef.current;\n } else {\n return currentRef;\n }\n}\nexport function isClassComponent(Component) {\n return Component && Component.prototype && typeof Component.prototype.render === 'function';\n}\nexport function isRefForwardingComponent(C) {\n return C && C.$$typeof && C.$$typeof.toString() === 'Symbol(react.forward_ref)';\n}\nexport function isRefable(C) {\n return isClassComponent(C) || isRefForwardingComponent(C);\n}\nexport function checkDecoratorArguments(functionName, signature) {\n if (process.env.NODE_ENV !== 'production') {\n for (var i = 0; i < (arguments.length <= 2 ? 0 : arguments.length - 2); i++) {\n var arg = i + 2 < 2 || arguments.length <= i + 2 ? undefined : arguments[i + 2];\n\n if (arg && arg.prototype && arg.prototype.render) {\n // eslint-disable-next-line no-console\n console.error('You seem to be applying the arguments in the wrong order. ' + \"It should be \".concat(functionName, \"(\").concat(signature, \")(Component), not the other way around. \") + 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#you-seem-to-be-applying-the-arguments-in-the-wrong-order');\n return;\n }\n }\n }\n}","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport * as React from 'react';\nimport { shallowEqual } from '@react-dnd/shallowequal';\nimport { invariant } from '@react-dnd/invariant';\nimport hoistStatics from 'hoist-non-react-statics';\nimport { DndContext } from '../index';\nimport { isPlainObject } from '../utils/js_utils';\nimport { Disposable, CompositeDisposable, SerialDisposable } from './disposables';\nimport { isRefable } from './utils';\nexport default function decorateHandler(_ref) {\n var DecoratedComponent = _ref.DecoratedComponent,\n createHandler = _ref.createHandler,\n createMonitor = _ref.createMonitor,\n createConnector = _ref.createConnector,\n registerHandler = _ref.registerHandler,\n containerDisplayName = _ref.containerDisplayName,\n getType = _ref.getType,\n collect = _ref.collect,\n options = _ref.options;\n var _options$arePropsEqua = options.arePropsEqual,\n arePropsEqual = _options$arePropsEqua === void 0 ? shallowEqual : _options$arePropsEqua;\n var Decorated = DecoratedComponent;\n var displayName = DecoratedComponent.displayName || DecoratedComponent.name || 'Component';\n\n var DragDropContainer =\n /*#__PURE__*/\n function (_React$Component) {\n _inherits(DragDropContainer, _React$Component);\n\n function DragDropContainer(props) {\n var _this;\n\n _classCallCheck(this, DragDropContainer);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(DragDropContainer).call(this, props));\n _this.decoratedRef = React.createRef();\n\n _this.handleChange = function () {\n var nextState = _this.getCurrentState();\n\n if (!shallowEqual(nextState, _this.state)) {\n _this.setState(nextState);\n }\n };\n\n _this.disposable = new SerialDisposable();\n\n _this.receiveProps(props);\n\n _this.dispose();\n\n return _this;\n }\n\n _createClass(DragDropContainer, [{\n key: \"getHandlerId\",\n value: function getHandlerId() {\n return this.handlerId;\n }\n }, {\n key: \"getDecoratedComponentInstance\",\n value: function getDecoratedComponentInstance() {\n invariant(this.decoratedRef.current, 'In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()');\n return this.decoratedRef.current;\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps, nextState) {\n return !arePropsEqual(nextProps, this.props) || !shallowEqual(nextState, this.state);\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.disposable = new SerialDisposable();\n this.currentType = undefined;\n this.receiveProps(this.props);\n this.handleChange();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (!arePropsEqual(this.props, prevProps)) {\n this.receiveProps(this.props);\n this.handleChange();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.dispose();\n }\n }, {\n key: \"receiveProps\",\n value: function receiveProps(props) {\n if (!this.handler) {\n return;\n }\n\n this.handler.receiveProps(props);\n this.receiveType(getType(props));\n }\n }, {\n key: \"receiveType\",\n value: function receiveType(type) {\n if (!this.handlerMonitor || !this.manager || !this.handlerConnector) {\n return;\n }\n\n if (type === this.currentType) {\n return;\n }\n\n this.currentType = type;\n\n var _registerHandler = registerHandler(type, this.handler, this.manager),\n _registerHandler2 = _slicedToArray(_registerHandler, 2),\n handlerId = _registerHandler2[0],\n unregister = _registerHandler2[1];\n\n this.handlerId = handlerId;\n this.handlerMonitor.receiveHandlerId(handlerId);\n this.handlerConnector.receiveHandlerId(handlerId);\n var globalMonitor = this.manager.getMonitor();\n var unsubscribe = globalMonitor.subscribeToStateChange(this.handleChange, {\n handlerIds: [handlerId]\n });\n this.disposable.setDisposable(new CompositeDisposable(new Disposable(unsubscribe), new Disposable(unregister)));\n }\n }, {\n key: \"dispose\",\n value: function dispose() {\n this.disposable.dispose();\n\n if (this.handlerConnector) {\n this.handlerConnector.receiveHandlerId(null);\n }\n }\n }, {\n key: \"getCurrentState\",\n value: function getCurrentState() {\n if (!this.handlerConnector) {\n return {};\n }\n\n var nextState = collect(this.handlerConnector.hooks, this.handlerMonitor, this.props);\n\n if (process.env.NODE_ENV !== 'production') {\n invariant(isPlainObject(nextState), 'Expected `collect` specified as the second argument to ' + '%s for %s to return a plain object of props to inject. ' + 'Instead, received %s.', containerDisplayName, displayName, nextState);\n }\n\n return nextState;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n return React.createElement(DndContext.Consumer, null, function (_ref2) {\n var dragDropManager = _ref2.dragDropManager;\n\n _this2.receiveDragDropManager(dragDropManager);\n\n if (typeof requestAnimationFrame !== 'undefined') {\n requestAnimationFrame(function () {\n return _this2.handlerConnector.reconnect();\n });\n }\n\n return React.createElement(Decorated, Object.assign({}, _this2.props, _this2.getCurrentState(), {\n // NOTE: if Decorated is a Function Component, decoratedRef will not be populated unless it's a refforwarding component.\n ref: isRefable(Decorated) ? _this2.decoratedRef : null\n }));\n });\n }\n }, {\n key: \"receiveDragDropManager\",\n value: function receiveDragDropManager(dragDropManager) {\n if (this.manager !== undefined) {\n return;\n }\n\n invariant(dragDropManager !== undefined, 'Could not find the drag and drop manager in the context of %s. ' + 'Make sure to render a DndProvider component in your top-level component. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context', displayName, displayName);\n\n if (dragDropManager === undefined) {\n return;\n }\n\n this.manager = dragDropManager;\n this.handlerMonitor = createMonitor(dragDropManager);\n this.handlerConnector = createConnector(dragDropManager.getBackend());\n this.handler = createHandler(this.handlerMonitor, this.decoratedRef);\n }\n }]);\n\n return DragDropContainer;\n }(React.Component);\n\n DragDropContainer.DecoratedComponent = DecoratedComponent;\n DragDropContainer.displayName = \"\".concat(containerDisplayName, \"(\").concat(displayName, \")\");\n return hoistStatics(DragDropContainer, DecoratedComponent);\n}","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { isFunction, noop } from '../utils/js_utils';\n/**\n * Provides a set of static methods for creating Disposables.\n * @param {Function} action Action to run during the first call to dispose.\n * The action is guaranteed to be run at most once.\n */\n\nexport var Disposable =\n/*#__PURE__*/\nfunction () {\n function Disposable(action) {\n _classCallCheck(this, Disposable);\n\n this.isDisposed = false;\n this.action = isFunction(action) ? action : noop;\n }\n /**\n * Validates whether the given object is a disposable\n * @param {Object} Object to test whether it has a dispose method\n * @returns {Boolean} true if a disposable object, else false.\n */\n\n\n _createClass(Disposable, [{\n key: \"dispose\",\n\n /** Performs the task of cleaning up resources. */\n value: function dispose() {\n if (!this.isDisposed) {\n this.action();\n this.isDisposed = true;\n }\n }\n }], [{\n key: \"isDisposable\",\n value: function isDisposable(d) {\n return d && isFunction(d.dispose);\n }\n }, {\n key: \"_fixup\",\n value: function _fixup(result) {\n return Disposable.isDisposable(result) ? result : Disposable.empty;\n }\n /**\n * Creates a disposable object that invokes the specified action when disposed.\n * @param {Function} dispose Action to run during the first call to dispose.\n * The action is guaranteed to be run at most once.\n * @return {Disposable} The disposable object that runs the given action upon disposal.\n */\n\n }, {\n key: \"create\",\n value: function create(action) {\n return new Disposable(action);\n }\n }]);\n\n return Disposable;\n}();\n/**\n * Gets the disposable that does nothing when disposed.\n */\n\nDisposable.empty = {\n dispose: noop\n};\n/**\n * Represents a group of disposable resources that are disposed together.\n * @constructor\n */\n\nexport var CompositeDisposable =\n/*#__PURE__*/\nfunction () {\n function CompositeDisposable() {\n _classCallCheck(this, CompositeDisposable);\n\n this.isDisposed = false;\n\n for (var _len = arguments.length, disposables = new Array(_len), _key = 0; _key < _len; _key++) {\n disposables[_key] = arguments[_key];\n }\n\n this.disposables = disposables;\n }\n /**\n * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.\n * @param {Any} item Disposable to add.\n */\n\n\n _createClass(CompositeDisposable, [{\n key: \"add\",\n value: function add(item) {\n if (this.isDisposed) {\n item.dispose();\n } else {\n this.disposables.push(item);\n }\n }\n /**\n * Removes and disposes the first occurrence of a disposable from the CompositeDisposable.\n * @param {Any} item Disposable to remove.\n * @returns {Boolean} true if found; false otherwise.\n */\n\n }, {\n key: \"remove\",\n value: function remove(item) {\n var shouldDispose = false;\n\n if (!this.isDisposed) {\n var idx = this.disposables.indexOf(item);\n\n if (idx !== -1) {\n shouldDispose = true;\n this.disposables.splice(idx, 1);\n item.dispose();\n }\n }\n\n return shouldDispose;\n }\n /**\n * Disposes all disposables in the group and removes them from the group but\n * does not dispose the CompositeDisposable.\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n if (!this.isDisposed) {\n var len = this.disposables.length;\n var currentDisposables = new Array(len);\n\n for (var i = 0; i < len; i++) {\n currentDisposables[i] = this.disposables[i];\n }\n\n this.disposables = [];\n\n for (var _i = 0; _i < len; _i++) {\n currentDisposables[_i].dispose();\n }\n }\n }\n /**\n * Disposes all disposables in the group and removes them from the group.\n */\n\n }, {\n key: \"dispose\",\n value: function dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var len = this.disposables.length;\n var currentDisposables = new Array(len);\n\n for (var i = 0; i < len; i++) {\n currentDisposables[i] = this.disposables[i];\n }\n\n this.disposables = [];\n\n for (var _i2 = 0; _i2 < len; _i2++) {\n currentDisposables[_i2].dispose();\n }\n }\n }\n }]);\n\n return CompositeDisposable;\n}();\n/**\n * Represents a disposable resource whose underlying disposable resource can\n * be replaced by another disposable resource, causing automatic disposal of\n * the previous underlying disposable resource.\n */\n\nexport var SerialDisposable =\n/*#__PURE__*/\nfunction () {\n function SerialDisposable() {\n _classCallCheck(this, SerialDisposable);\n\n this.isDisposed = false;\n }\n /**\n * Gets the underlying disposable.\n * @returns {Any} the underlying disposable.\n */\n\n\n _createClass(SerialDisposable, [{\n key: \"getDisposable\",\n value: function getDisposable() {\n return this.current;\n }\n }, {\n key: \"setDisposable\",\n value: function setDisposable(value) {\n var shouldDispose = this.isDisposed;\n\n if (!shouldDispose) {\n var old = this.current;\n this.current = value;\n\n if (old) {\n old.dispose();\n }\n }\n\n if (shouldDispose && value) {\n value.dispose();\n }\n }\n /** Performs the task of cleaning up resources. */\n\n }, {\n key: \"dispose\",\n value: function dispose() {\n if (!this.isDisposed) {\n this.isDisposed = true;\n var old = this.current;\n this.current = undefined;\n\n if (old) {\n old.dispose();\n }\n }\n }\n }]);\n\n return SerialDisposable;\n}();","export function registerTarget(type, target, manager) {\n var registry = manager.getRegistry();\n var targetId = registry.addTarget(type, target);\n return [targetId, function () {\n return registry.removeTarget(targetId);\n }];\n}\nexport function registerSource(type, source, manager) {\n var registry = manager.getRegistry();\n var sourceId = registry.addSource(type, source);\n return [sourceId, function () {\n return registry.removeSource(sourceId);\n }];\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nvar isCallingCanDrag = false;\nvar isCallingIsDragging = false;\nexport var DragSourceMonitorImpl =\n/*#__PURE__*/\nfunction () {\n function DragSourceMonitorImpl(manager) {\n _classCallCheck(this, DragSourceMonitorImpl);\n\n this.sourceId = null;\n this.internalMonitor = manager.getMonitor();\n }\n\n _createClass(DragSourceMonitorImpl, [{\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(sourceId) {\n this.sourceId = sourceId;\n }\n }, {\n key: \"getHandlerId\",\n value: function getHandlerId() {\n return this.sourceId;\n }\n }, {\n key: \"canDrag\",\n value: function canDrag() {\n invariant(!isCallingCanDrag, 'You may not call monitor.canDrag() inside your canDrag() implementation. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor');\n\n try {\n isCallingCanDrag = true;\n return this.internalMonitor.canDragSource(this.sourceId);\n } finally {\n isCallingCanDrag = false;\n }\n }\n }, {\n key: \"isDragging\",\n value: function isDragging() {\n if (!this.sourceId) {\n return false;\n }\n\n invariant(!isCallingIsDragging, 'You may not call monitor.isDragging() inside your isDragging() implementation. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor');\n\n try {\n isCallingIsDragging = true;\n return this.internalMonitor.isDraggingSource(this.sourceId);\n } finally {\n isCallingIsDragging = false;\n }\n }\n }, {\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener, options) {\n return this.internalMonitor.subscribeToStateChange(listener, options);\n }\n }, {\n key: \"isDraggingSource\",\n value: function isDraggingSource(sourceId) {\n return this.internalMonitor.isDraggingSource(sourceId);\n }\n }, {\n key: \"isOverTarget\",\n value: function isOverTarget(targetId, options) {\n return this.internalMonitor.isOverTarget(targetId, options);\n }\n }, {\n key: \"getTargetIds\",\n value: function getTargetIds() {\n return this.internalMonitor.getTargetIds();\n }\n }, {\n key: \"isSourcePublic\",\n value: function isSourcePublic() {\n return this.internalMonitor.isSourcePublic();\n }\n }, {\n key: \"getSourceId\",\n value: function getSourceId() {\n return this.internalMonitor.getSourceId();\n }\n }, {\n key: \"subscribeToOffsetChange\",\n value: function subscribeToOffsetChange(listener) {\n return this.internalMonitor.subscribeToOffsetChange(listener);\n }\n }, {\n key: \"canDragSource\",\n value: function canDragSource(sourceId) {\n return this.internalMonitor.canDragSource(sourceId);\n }\n }, {\n key: \"canDropOnTarget\",\n value: function canDropOnTarget(targetId) {\n return this.internalMonitor.canDropOnTarget(targetId);\n }\n }, {\n key: \"getItemType\",\n value: function getItemType() {\n return this.internalMonitor.getItemType();\n }\n }, {\n key: \"getItem\",\n value: function getItem() {\n return this.internalMonitor.getItem();\n }\n }, {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.internalMonitor.getDropResult();\n }\n }, {\n key: \"didDrop\",\n value: function didDrop() {\n return this.internalMonitor.didDrop();\n }\n }, {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.internalMonitor.getInitialClientOffset();\n }\n }, {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.internalMonitor.getInitialSourceClientOffset();\n }\n }, {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return this.internalMonitor.getSourceClientOffset();\n }\n }, {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.internalMonitor.getClientOffset();\n }\n }, {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return this.internalMonitor.getDifferenceFromInitialOffset();\n }\n }]);\n\n return DragSourceMonitorImpl;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport wrapConnectorHooks from './wrapConnectorHooks';\nimport { isRef } from '../utils/isRef';\nimport { shallowEqual } from '@react-dnd/shallowequal';\nexport var SourceConnector =\n/*#__PURE__*/\nfunction () {\n function SourceConnector(backend) {\n var _this = this;\n\n _classCallCheck(this, SourceConnector);\n\n this.hooks = wrapConnectorHooks({\n dragSource: function dragSource(node, options) {\n _this.clearDragSource();\n\n _this.dragSourceOptions = options || null;\n\n if (isRef(node)) {\n _this.dragSourceRef = node;\n } else {\n _this.dragSourceNode = node;\n }\n\n _this.reconnectDragSource();\n },\n dragPreview: function dragPreview(node, options) {\n _this.clearDragPreview();\n\n _this.dragPreviewOptions = options || null;\n\n if (isRef(node)) {\n _this.dragPreviewRef = node;\n } else {\n _this.dragPreviewNode = node;\n }\n\n _this.reconnectDragPreview();\n }\n });\n this.handlerId = null; // The drop target may either be attached via ref or connect function\n\n this.dragSourceRef = null;\n this.dragSourceOptionsInternal = null; // The drag preview may either be attached via ref or connect function\n\n this.dragPreviewRef = null;\n this.dragPreviewOptionsInternal = null;\n this.lastConnectedHandlerId = null;\n this.lastConnectedDragSource = null;\n this.lastConnectedDragSourceOptions = null;\n this.lastConnectedDragPreview = null;\n this.lastConnectedDragPreviewOptions = null;\n this.backend = backend;\n }\n\n _createClass(SourceConnector, [{\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(newHandlerId) {\n if (this.handlerId === newHandlerId) {\n return;\n }\n\n this.handlerId = newHandlerId;\n this.reconnect();\n }\n }, {\n key: \"reconnect\",\n value: function reconnect() {\n this.reconnectDragSource();\n this.reconnectDragPreview();\n }\n }, {\n key: \"reconnectDragSource\",\n value: function reconnectDragSource() {\n var dragSource = this.dragSource; // if nothing has changed then don't resubscribe\n\n var didChange = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();\n\n if (didChange) {\n this.disconnectDragSource();\n }\n\n if (!this.handlerId) {\n return;\n }\n\n if (!dragSource) {\n this.lastConnectedDragSource = dragSource;\n return;\n }\n\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDragSource = dragSource;\n this.lastConnectedDragSourceOptions = this.dragSourceOptions;\n this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, dragSource, this.dragSourceOptions);\n }\n }\n }, {\n key: \"reconnectDragPreview\",\n value: function reconnectDragPreview() {\n var dragPreview = this.dragPreview; // if nothing has changed then don't resubscribe\n\n var didChange = this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();\n\n if (!this.handlerId) {\n this.disconnectDragPreview();\n } else if (this.dragPreview && didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDragPreview = dragPreview;\n this.lastConnectedDragPreviewOptions = this.dragPreviewOptions;\n this.disconnectDragPreview();\n this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, dragPreview, this.dragPreviewOptions);\n }\n }\n }, {\n key: \"didHandlerIdChange\",\n value: function didHandlerIdChange() {\n return this.lastConnectedHandlerId !== this.handlerId;\n }\n }, {\n key: \"didConnectedDragSourceChange\",\n value: function didConnectedDragSourceChange() {\n return this.lastConnectedDragSource !== this.dragSource;\n }\n }, {\n key: \"didConnectedDragPreviewChange\",\n value: function didConnectedDragPreviewChange() {\n return this.lastConnectedDragPreview !== this.dragPreview;\n }\n }, {\n key: \"didDragSourceOptionsChange\",\n value: function didDragSourceOptionsChange() {\n return !shallowEqual(this.lastConnectedDragSourceOptions, this.dragSourceOptions);\n }\n }, {\n key: \"didDragPreviewOptionsChange\",\n value: function didDragPreviewOptionsChange() {\n return !shallowEqual(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);\n }\n }, {\n key: \"disconnectDragSource\",\n value: function disconnectDragSource() {\n if (this.dragSourceUnsubscribe) {\n this.dragSourceUnsubscribe();\n this.dragSourceUnsubscribe = undefined;\n }\n }\n }, {\n key: \"disconnectDragPreview\",\n value: function disconnectDragPreview() {\n if (this.dragPreviewUnsubscribe) {\n this.dragPreviewUnsubscribe();\n this.dragPreviewUnsubscribe = undefined;\n this.dragPreviewNode = null;\n this.dragPreviewRef = null;\n }\n }\n }, {\n key: \"clearDragSource\",\n value: function clearDragSource() {\n this.dragSourceNode = null;\n this.dragSourceRef = null;\n }\n }, {\n key: \"clearDragPreview\",\n value: function clearDragPreview() {\n this.dragPreviewNode = null;\n this.dragPreviewRef = null;\n }\n }, {\n key: \"connectTarget\",\n get: function get() {\n return this.dragSource;\n }\n }, {\n key: \"dragSourceOptions\",\n get: function get() {\n return this.dragSourceOptionsInternal;\n },\n set: function set(options) {\n this.dragSourceOptionsInternal = options;\n }\n }, {\n key: \"dragPreviewOptions\",\n get: function get() {\n return this.dragPreviewOptionsInternal;\n },\n set: function set(options) {\n this.dragPreviewOptionsInternal = options;\n }\n }, {\n key: \"dragSource\",\n get: function get() {\n return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current;\n }\n }, {\n key: \"dragPreview\",\n get: function get() {\n return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current;\n }\n }]);\n\n return SourceConnector;\n}();","import { isValidElement } from 'react';\nimport { cloneWithRef } from '../utils/cloneWithRef';\n\nfunction throwIfCompositeComponentElement(element) {\n // Custom components can no longer be wrapped directly in React DnD 2.0\n // so that we don't need to depend on findDOMNode() from react-dom.\n if (typeof element.type === 'string') {\n return;\n }\n\n var displayName = element.type.displayName || element.type.name || 'the component';\n throw new Error('Only native element nodes can now be passed to React DnD connectors.' + \"You can either wrap \".concat(displayName, \" into a
    , or turn it into a \") + 'drag source or a drop target itself.');\n}\n\nfunction wrapHookToRecognizeElement(hook) {\n return function () {\n var elementOrNode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n // When passed a node, call the hook straight away.\n if (!isValidElement(elementOrNode)) {\n var node = elementOrNode;\n hook(node, options); // return the node so it can be chained (e.g. when within callback refs\n //
    connectDragSource(connectDropTarget(node))}/>\n\n return node;\n } // If passed a ReactElement, clone it and attach this function as a ref.\n // This helps us achieve a neat API where user doesn't even know that refs\n // are being used under the hood.\n\n\n var element = elementOrNode;\n throwIfCompositeComponentElement(element); // When no options are passed, use the hook directly\n\n var ref = options ? function (node) {\n return hook(node, options);\n } : hook;\n return cloneWithRef(element, ref);\n };\n}\n\nexport default function wrapConnectorHooks(hooks) {\n var wrappedHooks = {};\n Object.keys(hooks).forEach(function (key) {\n var hook = hooks[key]; // ref objects should be passed straight through without wrapping\n\n if (key.endsWith('Ref')) {\n wrappedHooks[key] = hooks[key];\n } else {\n var wrappedHook = wrapHookToRecognizeElement(hook);\n\n wrappedHooks[key] = function () {\n return wrappedHook;\n };\n }\n });\n return wrappedHooks;\n}","import { cloneElement } from 'react';\nimport { invariant } from '@react-dnd/invariant';\n\nfunction setRef(ref, node) {\n if (typeof ref === 'function') {\n ref(node);\n } else {\n ref.current = node;\n }\n}\n\nexport function cloneWithRef(element, newRef) {\n var previousRef = element.ref;\n invariant(typeof previousRef !== 'string', 'Cannot connect React DnD to an element with an existing string ref. ' + 'Please convert it to use a callback ref instead, or wrap it into a or
    . ' + 'Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute');\n\n if (!previousRef) {\n // When there is no ref on the element, use the new ref directly\n return cloneElement(element, {\n ref: newRef\n });\n } else {\n return cloneElement(element, {\n ref: function ref(node) {\n setRef(previousRef, node);\n setRef(newRef, node);\n }\n });\n }\n}","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nexport function isRef(obj) {\n return (// eslint-disable-next-line no-prototype-builtins\n obj !== null && _typeof(obj) === 'object' && obj.hasOwnProperty('current')\n );\n}","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nexport function isValidType(type, allowArray) {\n return typeof type === 'string' || _typeof(type) === 'symbol' || !!allowArray && Array.isArray(type) && type.every(function (t) {\n return isValidType(t, false);\n });\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { isPlainObject } from '../utils/js_utils';\nimport { getDecoratedComponent } from './utils';\nvar ALLOWED_SPEC_METHODS = ['canDrag', 'beginDrag', 'isDragging', 'endDrag'];\nvar REQUIRED_SPEC_METHODS = ['beginDrag'];\n\nvar SourceImpl =\n/*#__PURE__*/\nfunction () {\n function SourceImpl(spec, monitor, ref) {\n var _this = this;\n\n _classCallCheck(this, SourceImpl);\n\n this.props = null;\n\n this.beginDrag = function () {\n if (!_this.props) {\n return;\n }\n\n var item = _this.spec.beginDrag(_this.props, _this.monitor, _this.ref.current);\n\n if (process.env.NODE_ENV !== 'production') {\n invariant(isPlainObject(item), 'beginDrag() must return a plain object that represents the dragged item. ' + 'Instead received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', item);\n }\n\n return item;\n };\n\n this.spec = spec;\n this.monitor = monitor;\n this.ref = ref;\n }\n\n _createClass(SourceImpl, [{\n key: \"receiveProps\",\n value: function receiveProps(props) {\n this.props = props;\n }\n }, {\n key: \"canDrag\",\n value: function canDrag() {\n if (!this.props) {\n return false;\n }\n\n if (!this.spec.canDrag) {\n return true;\n }\n\n return this.spec.canDrag(this.props, this.monitor);\n }\n }, {\n key: \"isDragging\",\n value: function isDragging(globalMonitor, sourceId) {\n if (!this.props) {\n return false;\n }\n\n if (!this.spec.isDragging) {\n return sourceId === globalMonitor.getSourceId();\n }\n\n return this.spec.isDragging(this.props, this.monitor);\n }\n }, {\n key: \"endDrag\",\n value: function endDrag() {\n if (!this.props) {\n return;\n }\n\n if (!this.spec.endDrag) {\n return;\n }\n\n this.spec.endDrag(this.props, this.monitor, getDecoratedComponent(this.ref));\n }\n }]);\n\n return SourceImpl;\n}();\n\nexport default function createSourceFactory(spec) {\n Object.keys(spec).forEach(function (key) {\n invariant(ALLOWED_SPEC_METHODS.indexOf(key) > -1, 'Expected the drag source specification to only have ' + 'some of the following keys: %s. ' + 'Instead received a specification with an unexpected \"%s\" key. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', ALLOWED_SPEC_METHODS.join(', '), key);\n invariant(typeof spec[key] === 'function', 'Expected %s in the drag source specification to be a function. ' + 'Instead received a specification with %s: %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', key, key, spec[key]);\n });\n REQUIRED_SPEC_METHODS.forEach(function (key) {\n invariant(typeof spec[key] === 'function', 'Expected %s in the drag source specification to be a function. ' + 'Instead received a specification with %s: %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', key, key, spec[key]);\n });\n return function createSource(monitor, ref) {\n return new SourceImpl(spec, monitor, ref);\n };\n}","import { invariant } from '@react-dnd/invariant';\nimport { isPlainObject } from '../utils/js_utils';\nimport { registerTarget } from '../common/registration';\nimport { isValidType } from '../utils/isValidType';\nimport { TargetConnector } from '../common/TargetConnector';\nimport { DropTargetMonitorImpl } from '../common/DropTargetMonitorImpl';\nimport { checkDecoratorArguments } from './utils';\nimport decorateHandler from './decorateHandler';\nimport createTargetFactory from './createTargetFactory';\nexport function DropTarget(type, spec, collect) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n checkDecoratorArguments('DropTarget', 'type, spec, collect[, options]', type, spec, collect, options);\n var getType = type;\n\n if (typeof type !== 'function') {\n invariant(isValidType(type, true), 'Expected \"type\" provided as the first argument to DropTarget to be ' + 'a string, an array of strings, or a function that returns either given ' + 'the current props. Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', type);\n\n getType = function getType() {\n return type;\n };\n }\n\n invariant(isPlainObject(spec), 'Expected \"spec\" provided as the second argument to DropTarget to be ' + 'a plain object. Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', spec);\n var createTarget = createTargetFactory(spec);\n invariant(typeof collect === 'function', 'Expected \"collect\" provided as the third argument to DropTarget to be ' + 'a function that returns a plain object of props to inject. ' + 'Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect);\n invariant(isPlainObject(options), 'Expected \"options\" provided as the fourth argument to DropTarget to be ' + 'a plain object when specified. ' + 'Instead, received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect);\n return function decorateTarget(DecoratedComponent) {\n return decorateHandler({\n containerDisplayName: 'DropTarget',\n createHandler: createTarget,\n registerHandler: registerTarget,\n createMonitor: function createMonitor(manager) {\n return new DropTargetMonitorImpl(manager);\n },\n createConnector: function createConnector(backend) {\n return new TargetConnector(backend);\n },\n DecoratedComponent: DecoratedComponent,\n getType: getType,\n collect: collect,\n options: options\n });\n };\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { shallowEqual } from '@react-dnd/shallowequal';\nimport wrapConnectorHooks from './wrapConnectorHooks';\nimport { isRef } from '../utils/isRef';\nexport var TargetConnector =\n/*#__PURE__*/\nfunction () {\n function TargetConnector(backend) {\n var _this = this;\n\n _classCallCheck(this, TargetConnector);\n\n this.hooks = wrapConnectorHooks({\n dropTarget: function dropTarget(node, options) {\n _this.clearDropTarget();\n\n _this.dropTargetOptions = options;\n\n if (isRef(node)) {\n _this.dropTargetRef = node;\n } else {\n _this.dropTargetNode = node;\n }\n\n _this.reconnect();\n }\n });\n this.handlerId = null; // The drop target may either be attached via ref or connect function\n\n this.dropTargetRef = null;\n this.dropTargetOptionsInternal = null;\n this.lastConnectedHandlerId = null;\n this.lastConnectedDropTarget = null;\n this.lastConnectedDropTargetOptions = null;\n this.backend = backend;\n }\n\n _createClass(TargetConnector, [{\n key: \"reconnect\",\n value: function reconnect() {\n // if nothing has changed then don't resubscribe\n var didChange = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange();\n\n if (didChange) {\n this.disconnectDropTarget();\n }\n\n var dropTarget = this.dropTarget;\n\n if (!this.handlerId) {\n return;\n }\n\n if (!dropTarget) {\n this.lastConnectedDropTarget = dropTarget;\n return;\n }\n\n if (didChange) {\n this.lastConnectedHandlerId = this.handlerId;\n this.lastConnectedDropTarget = dropTarget;\n this.lastConnectedDropTargetOptions = this.dropTargetOptions;\n this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, dropTarget, this.dropTargetOptions);\n }\n }\n }, {\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(newHandlerId) {\n if (newHandlerId === this.handlerId) {\n return;\n }\n\n this.handlerId = newHandlerId;\n this.reconnect();\n }\n }, {\n key: \"didHandlerIdChange\",\n value: function didHandlerIdChange() {\n return this.lastConnectedHandlerId !== this.handlerId;\n }\n }, {\n key: \"didDropTargetChange\",\n value: function didDropTargetChange() {\n return this.lastConnectedDropTarget !== this.dropTarget;\n }\n }, {\n key: \"didOptionsChange\",\n value: function didOptionsChange() {\n return !shallowEqual(this.lastConnectedDropTargetOptions, this.dropTargetOptions);\n }\n }, {\n key: \"disconnectDropTarget\",\n value: function disconnectDropTarget() {\n if (this.unsubscribeDropTarget) {\n this.unsubscribeDropTarget();\n this.unsubscribeDropTarget = undefined;\n }\n }\n }, {\n key: \"clearDropTarget\",\n value: function clearDropTarget() {\n this.dropTargetRef = null;\n this.dropTargetNode = null;\n }\n }, {\n key: \"connectTarget\",\n get: function get() {\n return this.dropTarget;\n }\n }, {\n key: \"dropTargetOptions\",\n get: function get() {\n return this.dropTargetOptionsInternal;\n },\n set: function set(options) {\n this.dropTargetOptionsInternal = options;\n }\n }, {\n key: \"dropTarget\",\n get: function get() {\n return this.dropTargetNode || this.dropTargetRef && this.dropTargetRef.current;\n }\n }]);\n\n return TargetConnector;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nvar isCallingCanDrop = false;\nexport var DropTargetMonitorImpl =\n/*#__PURE__*/\nfunction () {\n function DropTargetMonitorImpl(manager) {\n _classCallCheck(this, DropTargetMonitorImpl);\n\n this.targetId = null;\n this.internalMonitor = manager.getMonitor();\n }\n\n _createClass(DropTargetMonitorImpl, [{\n key: \"receiveHandlerId\",\n value: function receiveHandlerId(targetId) {\n this.targetId = targetId;\n }\n }, {\n key: \"getHandlerId\",\n value: function getHandlerId() {\n return this.targetId;\n }\n }, {\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener, options) {\n return this.internalMonitor.subscribeToStateChange(listener, options);\n }\n }, {\n key: \"canDrop\",\n value: function canDrop() {\n // Cut out early if the target id has not been set. This should prevent errors\n // where the user has an older version of dnd-core like in\n // https://github.com/react-dnd/react-dnd/issues/1310\n if (!this.targetId) {\n return false;\n }\n\n invariant(!isCallingCanDrop, 'You may not call monitor.canDrop() inside your canDrop() implementation. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor');\n\n try {\n isCallingCanDrop = true;\n return this.internalMonitor.canDropOnTarget(this.targetId);\n } finally {\n isCallingCanDrop = false;\n }\n }\n }, {\n key: \"isOver\",\n value: function isOver(options) {\n if (!this.targetId) {\n return false;\n }\n\n return this.internalMonitor.isOverTarget(this.targetId, options);\n }\n }, {\n key: \"getItemType\",\n value: function getItemType() {\n return this.internalMonitor.getItemType();\n }\n }, {\n key: \"getItem\",\n value: function getItem() {\n return this.internalMonitor.getItem();\n }\n }, {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.internalMonitor.getDropResult();\n }\n }, {\n key: \"didDrop\",\n value: function didDrop() {\n return this.internalMonitor.didDrop();\n }\n }, {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.internalMonitor.getInitialClientOffset();\n }\n }, {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.internalMonitor.getInitialSourceClientOffset();\n }\n }, {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return this.internalMonitor.getSourceClientOffset();\n }\n }, {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.internalMonitor.getClientOffset();\n }\n }, {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return this.internalMonitor.getDifferenceFromInitialOffset();\n }\n }]);\n\n return DropTargetMonitorImpl;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { isPlainObject } from '../utils/js_utils';\nimport { getDecoratedComponent } from './utils';\nvar ALLOWED_SPEC_METHODS = ['canDrop', 'hover', 'drop'];\n\nvar TargetImpl =\n/*#__PURE__*/\nfunction () {\n function TargetImpl(spec, monitor, ref) {\n _classCallCheck(this, TargetImpl);\n\n this.props = null;\n this.spec = spec;\n this.monitor = monitor;\n this.ref = ref;\n }\n\n _createClass(TargetImpl, [{\n key: \"receiveProps\",\n value: function receiveProps(props) {\n this.props = props;\n }\n }, {\n key: \"receiveMonitor\",\n value: function receiveMonitor(monitor) {\n this.monitor = monitor;\n }\n }, {\n key: \"canDrop\",\n value: function canDrop() {\n if (!this.spec.canDrop) {\n return true;\n }\n\n return this.spec.canDrop(this.props, this.monitor);\n }\n }, {\n key: \"hover\",\n value: function hover() {\n if (!this.spec.hover) {\n return;\n }\n\n this.spec.hover(this.props, this.monitor, getDecoratedComponent(this.ref));\n }\n }, {\n key: \"drop\",\n value: function drop() {\n if (!this.spec.drop) {\n return undefined;\n }\n\n var dropResult = this.spec.drop(this.props, this.monitor, this.ref.current);\n\n if (process.env.NODE_ENV !== 'production') {\n invariant(typeof dropResult === 'undefined' || isPlainObject(dropResult), 'drop() must either return undefined, or an object that represents the drop result. ' + 'Instead received %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', dropResult);\n }\n\n return dropResult;\n }\n }]);\n\n return TargetImpl;\n}();\n\nexport default function createTargetFactory(spec) {\n Object.keys(spec).forEach(function (key) {\n invariant(ALLOWED_SPEC_METHODS.indexOf(key) > -1, 'Expected the drop target specification to only have ' + 'some of the following keys: %s. ' + 'Instead received a specification with an unexpected \"%s\" key. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', ALLOWED_SPEC_METHODS.join(', '), key);\n invariant(typeof spec[key] === 'function', 'Expected %s in the drop target specification to be a function. ' + 'Instead received a specification with %s: %s. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', key, key, spec[key]);\n });\n return function createTarget(monitor, ref) {\n return new TargetImpl(spec, monitor, ref);\n };\n}","import HTML5Backend from './HTML5Backend';\nimport * as NativeTypes from './NativeTypes';\nexport { getEmptyImage } from './getEmptyImage';\nexport { NativeTypes };\n\nvar createBackend = function createBackend(manager, context) {\n return new HTML5Backend(manager, context);\n};\n\nexport default createBackend;","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport EnterLeaveCounter from './EnterLeaveCounter';\nimport { isFirefox } from './BrowserDetector';\nimport { getNodeClientOffset, getEventClientOffset, getDragPreviewOffset } from './OffsetUtils';\nimport { createNativeDragSource, matchNativeItemType } from './NativeDragSources';\nimport * as NativeTypes from './NativeTypes';\nimport { OptionsReader } from './OptionsReader';\n\nvar HTML5Backend =\n/*#__PURE__*/\nfunction () {\n function HTML5Backend(manager, globalContext) {\n var _this = this;\n\n _classCallCheck(this, HTML5Backend);\n\n this.sourcePreviewNodes = new Map();\n this.sourcePreviewNodeOptions = new Map();\n this.sourceNodes = new Map();\n this.sourceNodeOptions = new Map();\n this.dragStartSourceIds = null;\n this.dropTargetIds = [];\n this.dragEnterTargetIds = [];\n this.currentNativeSource = null;\n this.currentNativeHandle = null;\n this.currentDragSourceNode = null;\n this.altKeyPressed = false;\n this.mouseMoveTimeoutTimer = null;\n this.asyncEndDragFrameId = null;\n this.dragOverTargetIds = null;\n\n this.getSourceClientOffset = function (sourceId) {\n return getNodeClientOffset(_this.sourceNodes.get(sourceId));\n };\n\n this.endDragNativeItem = function () {\n if (!_this.isDraggingNativeItem()) {\n return;\n }\n\n _this.actions.endDrag();\n\n _this.registry.removeSource(_this.currentNativeHandle);\n\n _this.currentNativeHandle = null;\n _this.currentNativeSource = null;\n };\n\n this.isNodeInDocument = function (node) {\n // Check the node either in the main document or in the current context\n return _this.document && _this.document.body && document.body.contains(node);\n };\n\n this.endDragIfSourceWasRemovedFromDOM = function () {\n var node = _this.currentDragSourceNode;\n\n if (_this.isNodeInDocument(node)) {\n return;\n }\n\n if (_this.clearCurrentDragSourceNode()) {\n _this.actions.endDrag();\n }\n };\n\n this.handleTopDragStartCapture = function () {\n _this.clearCurrentDragSourceNode();\n\n _this.dragStartSourceIds = [];\n };\n\n this.handleTopDragStart = function (e) {\n if (e.defaultPrevented) {\n return;\n }\n\n var dragStartSourceIds = _this.dragStartSourceIds;\n _this.dragStartSourceIds = null;\n var clientOffset = getEventClientOffset(e); // Avoid crashing if we missed a drop event or our previous drag died\n\n if (_this.monitor.isDragging()) {\n _this.actions.endDrag();\n } // Don't publish the source just yet (see why below)\n\n\n _this.actions.beginDrag(dragStartSourceIds || [], {\n publishSource: false,\n getSourceClientOffset: _this.getSourceClientOffset,\n clientOffset: clientOffset\n });\n\n var dataTransfer = e.dataTransfer;\n var nativeType = matchNativeItemType(dataTransfer);\n\n if (_this.monitor.isDragging()) {\n if (dataTransfer && typeof dataTransfer.setDragImage === 'function') {\n // Use custom drag image if user specifies it.\n // If child drag source refuses drag but parent agrees,\n // use parent's node as drag image. Neither works in IE though.\n var sourceId = _this.monitor.getSourceId();\n\n var sourceNode = _this.sourceNodes.get(sourceId);\n\n var dragPreview = _this.sourcePreviewNodes.get(sourceId) || sourceNode;\n\n if (dragPreview) {\n var _this$getCurrentSourc = _this.getCurrentSourcePreviewNodeOptions(),\n anchorX = _this$getCurrentSourc.anchorX,\n anchorY = _this$getCurrentSourc.anchorY,\n offsetX = _this$getCurrentSourc.offsetX,\n offsetY = _this$getCurrentSourc.offsetY;\n\n var anchorPoint = {\n anchorX: anchorX,\n anchorY: anchorY\n };\n var offsetPoint = {\n offsetX: offsetX,\n offsetY: offsetY\n };\n var dragPreviewOffset = getDragPreviewOffset(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint);\n dataTransfer.setDragImage(dragPreview, dragPreviewOffset.x, dragPreviewOffset.y);\n }\n }\n\n try {\n // Firefox won't drag without setting data\n dataTransfer.setData('application/json', {});\n } catch (err) {} // IE doesn't support MIME types in setData\n // Store drag source node so we can check whether\n // it is removed from DOM and trigger endDrag manually.\n\n\n _this.setCurrentDragSourceNode(e.target); // Now we are ready to publish the drag source.. or are we not?\n\n\n var _this$getCurrentSourc2 = _this.getCurrentSourcePreviewNodeOptions(),\n captureDraggingState = _this$getCurrentSourc2.captureDraggingState;\n\n if (!captureDraggingState) {\n // Usually we want to publish it in the next tick so that browser\n // is able to screenshot the current (not yet dragging) state.\n //\n // It also neatly avoids a situation where render() returns null\n // in the same tick for the source element, and browser freaks out.\n setTimeout(function () {\n return _this.actions.publishDragSource();\n }, 0);\n } else {\n // In some cases the user may want to override this behavior, e.g.\n // to work around IE not supporting custom drag previews.\n //\n // When using a custom drag layer, the only way to prevent\n // the default drag preview from drawing in IE is to screenshot\n // the dragging state in which the node itself has zero opacity\n // and height. In this case, though, returning null from render()\n // will abruptly end the dragging, which is not obvious.\n //\n // This is the reason such behavior is strictly opt-in.\n _this.actions.publishDragSource();\n }\n } else if (nativeType) {\n // A native item (such as URL) dragged from inside the document\n _this.beginDragNativeItem(nativeType);\n } else if (dataTransfer && !dataTransfer.types && (e.target && !e.target.hasAttribute || !e.target.hasAttribute('draggable'))) {\n // Looks like a Safari bug: dataTransfer.types is null, but there was no draggable.\n // Just let it drag. It's a native type (URL or text) and will be picked up in\n // dragenter handler.\n return;\n } else {\n // If by this time no drag source reacted, tell browser not to drag.\n e.preventDefault();\n }\n };\n\n this.handleTopDragEndCapture = function () {\n if (_this.clearCurrentDragSourceNode()) {\n // Firefox can dispatch this event in an infinite loop\n // if dragend handler does something like showing an alert.\n // Only proceed if we have not handled it already.\n _this.actions.endDrag();\n }\n };\n\n this.handleTopDragEnterCapture = function (e) {\n _this.dragEnterTargetIds = [];\n\n var isFirstEnter = _this.enterLeaveCounter.enter(e.target);\n\n if (!isFirstEnter || _this.monitor.isDragging()) {\n return;\n }\n\n var dataTransfer = e.dataTransfer;\n var nativeType = matchNativeItemType(dataTransfer);\n\n if (nativeType) {\n // A native item (such as file or URL) dragged from outside the document\n _this.beginDragNativeItem(nativeType, dataTransfer);\n }\n };\n\n this.handleTopDragEnter = function (e) {\n var dragEnterTargetIds = _this.dragEnterTargetIds;\n _this.dragEnterTargetIds = [];\n\n if (!_this.monitor.isDragging()) {\n // This is probably a native item type we don't understand.\n return;\n }\n\n _this.altKeyPressed = e.altKey;\n\n if (!isFirefox()) {\n // Don't emit hover in `dragenter` on Firefox due to an edge case.\n // If the target changes position as the result of `dragenter`, Firefox\n // will still happily dispatch `dragover` despite target being no longer\n // there. The easy solution is to only fire `hover` in `dragover` on FF.\n _this.actions.hover(dragEnterTargetIds, {\n clientOffset: getEventClientOffset(e)\n });\n }\n\n var canDrop = dragEnterTargetIds.some(function (targetId) {\n return _this.monitor.canDropOnTarget(targetId);\n });\n\n if (canDrop) {\n // IE requires this to fire dragover events\n e.preventDefault();\n\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = _this.getCurrentDropEffect();\n }\n }\n };\n\n this.handleTopDragOverCapture = function () {\n _this.dragOverTargetIds = [];\n };\n\n this.handleTopDragOver = function (e) {\n var dragOverTargetIds = _this.dragOverTargetIds;\n _this.dragOverTargetIds = [];\n\n if (!_this.monitor.isDragging()) {\n // This is probably a native item type we don't understand.\n // Prevent default \"drop and blow away the whole document\" action.\n e.preventDefault();\n\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = 'none';\n }\n\n return;\n }\n\n _this.altKeyPressed = e.altKey;\n\n _this.actions.hover(dragOverTargetIds || [], {\n clientOffset: getEventClientOffset(e)\n });\n\n var canDrop = (dragOverTargetIds || []).some(function (targetId) {\n return _this.monitor.canDropOnTarget(targetId);\n });\n\n if (canDrop) {\n // Show user-specified drop effect.\n e.preventDefault();\n\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = _this.getCurrentDropEffect();\n }\n } else if (_this.isDraggingNativeItem()) {\n // Don't show a nice cursor but still prevent default\n // \"drop and blow away the whole document\" action.\n e.preventDefault();\n } else {\n e.preventDefault();\n\n if (e.dataTransfer) {\n e.dataTransfer.dropEffect = 'none';\n }\n }\n };\n\n this.handleTopDragLeaveCapture = function (e) {\n if (_this.isDraggingNativeItem()) {\n e.preventDefault();\n }\n\n var isLastLeave = _this.enterLeaveCounter.leave(e.target);\n\n if (!isLastLeave) {\n return;\n }\n\n if (_this.isDraggingNativeItem()) {\n _this.endDragNativeItem();\n }\n };\n\n this.handleTopDropCapture = function (e) {\n _this.dropTargetIds = [];\n e.preventDefault();\n\n if (_this.isDraggingNativeItem()) {\n _this.currentNativeSource.loadDataTransfer(e.dataTransfer);\n }\n\n _this.enterLeaveCounter.reset();\n };\n\n this.handleTopDrop = function (e) {\n var dropTargetIds = _this.dropTargetIds;\n _this.dropTargetIds = [];\n\n _this.actions.hover(dropTargetIds, {\n clientOffset: getEventClientOffset(e)\n });\n\n _this.actions.drop({\n dropEffect: _this.getCurrentDropEffect()\n });\n\n if (_this.isDraggingNativeItem()) {\n _this.endDragNativeItem();\n } else {\n _this.endDragIfSourceWasRemovedFromDOM();\n }\n };\n\n this.handleSelectStart = function (e) {\n var target = e.target; // Only IE requires us to explicitly say\n // we want drag drop operation to start\n\n if (typeof target.dragDrop !== 'function') {\n return;\n } // Inputs and textareas should be selectable\n\n\n if (target.tagName === 'INPUT' || target.tagName === 'SELECT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return;\n } // For other targets, ask IE\n // to enable drag and drop\n\n\n e.preventDefault();\n target.dragDrop();\n };\n\n this.options = new OptionsReader(globalContext);\n this.actions = manager.getActions();\n this.monitor = manager.getMonitor();\n this.registry = manager.getRegistry();\n this.enterLeaveCounter = new EnterLeaveCounter(this.isNodeInDocument);\n } // public for test\n\n\n _createClass(HTML5Backend, [{\n key: \"setup\",\n value: function setup() {\n if (this.window === undefined) {\n return;\n }\n\n if (this.window.__isReactDndBackendSetUp) {\n throw new Error('Cannot have two HTML5 backends at the same time.');\n }\n\n this.window.__isReactDndBackendSetUp = true;\n this.addEventListeners(this.window);\n }\n }, {\n key: \"teardown\",\n value: function teardown() {\n if (this.window === undefined) {\n return;\n }\n\n this.window.__isReactDndBackendSetUp = false;\n this.removeEventListeners(this.window);\n this.clearCurrentDragSourceNode();\n\n if (this.asyncEndDragFrameId) {\n this.window.cancelAnimationFrame(this.asyncEndDragFrameId);\n }\n }\n }, {\n key: \"connectDragPreview\",\n value: function connectDragPreview(sourceId, node, options) {\n var _this2 = this;\n\n this.sourcePreviewNodeOptions.set(sourceId, options);\n this.sourcePreviewNodes.set(sourceId, node);\n return function () {\n _this2.sourcePreviewNodes.delete(sourceId);\n\n _this2.sourcePreviewNodeOptions.delete(sourceId);\n };\n }\n }, {\n key: \"connectDragSource\",\n value: function connectDragSource(sourceId, node, options) {\n var _this3 = this;\n\n this.sourceNodes.set(sourceId, node);\n this.sourceNodeOptions.set(sourceId, options);\n\n var handleDragStart = function handleDragStart(e) {\n return _this3.handleDragStart(e, sourceId);\n };\n\n var handleSelectStart = function handleSelectStart(e) {\n return _this3.handleSelectStart(e);\n };\n\n node.setAttribute('draggable', 'true');\n node.addEventListener('dragstart', handleDragStart);\n node.addEventListener('selectstart', handleSelectStart);\n return function () {\n _this3.sourceNodes.delete(sourceId);\n\n _this3.sourceNodeOptions.delete(sourceId);\n\n node.removeEventListener('dragstart', handleDragStart);\n node.removeEventListener('selectstart', handleSelectStart);\n node.setAttribute('draggable', 'false');\n };\n }\n }, {\n key: \"connectDropTarget\",\n value: function connectDropTarget(targetId, node) {\n var _this4 = this;\n\n var handleDragEnter = function handleDragEnter(e) {\n return _this4.handleDragEnter(e, targetId);\n };\n\n var handleDragOver = function handleDragOver(e) {\n return _this4.handleDragOver(e, targetId);\n };\n\n var handleDrop = function handleDrop(e) {\n return _this4.handleDrop(e, targetId);\n };\n\n node.addEventListener('dragenter', handleDragEnter);\n node.addEventListener('dragover', handleDragOver);\n node.addEventListener('drop', handleDrop);\n return function () {\n node.removeEventListener('dragenter', handleDragEnter);\n node.removeEventListener('dragover', handleDragOver);\n node.removeEventListener('drop', handleDrop);\n };\n }\n }, {\n key: \"addEventListeners\",\n value: function addEventListeners(target) {\n // SSR Fix (https://github.com/react-dnd/react-dnd/pull/813\n if (!target.addEventListener) {\n return;\n }\n\n target.addEventListener('dragstart', this.handleTopDragStart);\n target.addEventListener('dragstart', this.handleTopDragStartCapture, true);\n target.addEventListener('dragend', this.handleTopDragEndCapture, true);\n target.addEventListener('dragenter', this.handleTopDragEnter);\n target.addEventListener('dragenter', this.handleTopDragEnterCapture, true);\n target.addEventListener('dragleave', this.handleTopDragLeaveCapture, true);\n target.addEventListener('dragover', this.handleTopDragOver);\n target.addEventListener('dragover', this.handleTopDragOverCapture, true);\n target.addEventListener('drop', this.handleTopDrop);\n target.addEventListener('drop', this.handleTopDropCapture, true);\n }\n }, {\n key: \"removeEventListeners\",\n value: function removeEventListeners(target) {\n // SSR Fix (https://github.com/react-dnd/react-dnd/pull/813\n if (!target.removeEventListener) {\n return;\n }\n\n target.removeEventListener('dragstart', this.handleTopDragStart);\n target.removeEventListener('dragstart', this.handleTopDragStartCapture, true);\n target.removeEventListener('dragend', this.handleTopDragEndCapture, true);\n target.removeEventListener('dragenter', this.handleTopDragEnter);\n target.removeEventListener('dragenter', this.handleTopDragEnterCapture, true);\n target.removeEventListener('dragleave', this.handleTopDragLeaveCapture, true);\n target.removeEventListener('dragover', this.handleTopDragOver);\n target.removeEventListener('dragover', this.handleTopDragOverCapture, true);\n target.removeEventListener('drop', this.handleTopDrop);\n target.removeEventListener('drop', this.handleTopDropCapture, true);\n }\n }, {\n key: \"getCurrentSourceNodeOptions\",\n value: function getCurrentSourceNodeOptions() {\n var sourceId = this.monitor.getSourceId();\n var sourceNodeOptions = this.sourceNodeOptions.get(sourceId);\n return _objectSpread({\n dropEffect: this.altKeyPressed ? 'copy' : 'move'\n }, sourceNodeOptions || {});\n }\n }, {\n key: \"getCurrentDropEffect\",\n value: function getCurrentDropEffect() {\n if (this.isDraggingNativeItem()) {\n // It makes more sense to default to 'copy' for native resources\n return 'copy';\n }\n\n return this.getCurrentSourceNodeOptions().dropEffect;\n }\n }, {\n key: \"getCurrentSourcePreviewNodeOptions\",\n value: function getCurrentSourcePreviewNodeOptions() {\n var sourceId = this.monitor.getSourceId();\n var sourcePreviewNodeOptions = this.sourcePreviewNodeOptions.get(sourceId);\n return _objectSpread({\n anchorX: 0.5,\n anchorY: 0.5,\n captureDraggingState: false\n }, sourcePreviewNodeOptions || {});\n }\n }, {\n key: \"isDraggingNativeItem\",\n value: function isDraggingNativeItem() {\n var itemType = this.monitor.getItemType();\n return Object.keys(NativeTypes).some(function (key) {\n return NativeTypes[key] === itemType;\n });\n }\n }, {\n key: \"beginDragNativeItem\",\n value: function beginDragNativeItem(type, dataTransfer) {\n this.clearCurrentDragSourceNode();\n this.currentNativeSource = createNativeDragSource(type, dataTransfer);\n this.currentNativeHandle = this.registry.addSource(type, this.currentNativeSource);\n this.actions.beginDrag([this.currentNativeHandle]);\n }\n }, {\n key: \"setCurrentDragSourceNode\",\n value: function setCurrentDragSourceNode(node) {\n var _this5 = this;\n\n this.clearCurrentDragSourceNode();\n this.currentDragSourceNode = node; // A timeout of > 0 is necessary to resolve Firefox issue referenced\n // See:\n // * https://github.com/react-dnd/react-dnd/pull/928\n // * https://github.com/react-dnd/react-dnd/issues/869\n\n var MOUSE_MOVE_TIMEOUT = 1000; // Receiving a mouse event in the middle of a dragging operation\n // means it has ended and the drag source node disappeared from DOM,\n // so the browser didn't dispatch the dragend event.\n //\n // We need to wait before we start listening for mousemove events.\n // This is needed because the drag preview needs to be drawn or else it fires an 'mousemove' event\n // immediately in some browsers.\n //\n // See:\n // * https://github.com/react-dnd/react-dnd/pull/928\n // * https://github.com/react-dnd/react-dnd/issues/869\n //\n\n this.mouseMoveTimeoutTimer = setTimeout(function () {\n return _this5.window && _this5.window.addEventListener('mousemove', _this5.endDragIfSourceWasRemovedFromDOM, true);\n }, MOUSE_MOVE_TIMEOUT);\n }\n }, {\n key: \"clearCurrentDragSourceNode\",\n value: function clearCurrentDragSourceNode() {\n if (this.currentDragSourceNode) {\n this.currentDragSourceNode = null;\n\n if (this.window) {\n this.window.clearTimeout(this.mouseMoveTimeoutTimer || undefined);\n this.window.removeEventListener('mousemove', this.endDragIfSourceWasRemovedFromDOM, true);\n }\n\n this.mouseMoveTimeoutTimer = null;\n return true;\n }\n\n return false;\n }\n }, {\n key: \"handleDragStart\",\n value: function handleDragStart(e, sourceId) {\n if (e.defaultPrevented) {\n return;\n }\n\n if (!this.dragStartSourceIds) {\n this.dragStartSourceIds = [];\n }\n\n this.dragStartSourceIds.unshift(sourceId);\n }\n }, {\n key: \"handleDragEnter\",\n value: function handleDragEnter(e, targetId) {\n this.dragEnterTargetIds.unshift(targetId);\n }\n }, {\n key: \"handleDragOver\",\n value: function handleDragOver(e, targetId) {\n if (this.dragOverTargetIds === null) {\n this.dragOverTargetIds = [];\n }\n\n this.dragOverTargetIds.unshift(targetId);\n }\n }, {\n key: \"handleDrop\",\n value: function handleDrop(e, targetId) {\n this.dropTargetIds.unshift(targetId);\n }\n }, {\n key: \"window\",\n get: function get() {\n return this.options.window;\n }\n }, {\n key: \"document\",\n get: function get() {\n return this.options.document;\n }\n }]);\n\n return HTML5Backend;\n}();\n\nexport { HTML5Backend as default };","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { union, without } from './utils/js_utils';\n\nvar EnterLeaveCounter =\n/*#__PURE__*/\nfunction () {\n function EnterLeaveCounter(isNodeInDocument) {\n _classCallCheck(this, EnterLeaveCounter);\n\n this.entered = [];\n this.isNodeInDocument = isNodeInDocument;\n }\n\n _createClass(EnterLeaveCounter, [{\n key: \"enter\",\n value: function enter(enteringNode) {\n var _this = this;\n\n var previousLength = this.entered.length;\n\n var isNodeEntered = function isNodeEntered(node) {\n return _this.isNodeInDocument(node) && (!node.contains || node.contains(enteringNode));\n };\n\n this.entered = union(this.entered.filter(isNodeEntered), [enteringNode]);\n return previousLength === 0 && this.entered.length > 0;\n }\n }, {\n key: \"leave\",\n value: function leave(leavingNode) {\n var previousLength = this.entered.length;\n this.entered = without(this.entered.filter(this.isNodeInDocument), leavingNode);\n return previousLength > 0 && this.entered.length === 0;\n }\n }, {\n key: \"reset\",\n value: function reset() {\n this.entered = [];\n }\n }]);\n\n return EnterLeaveCounter;\n}();\n\nexport { EnterLeaveCounter as default };","// cheap lodash replacements\nexport function memoize(fn) {\n var result = null;\n\n var memoized = function memoized() {\n if (result == null) {\n result = fn();\n }\n\n return result;\n };\n\n return memoized;\n}\n/**\n * drop-in replacement for _.without\n */\n\nexport function without(items, item) {\n return items.filter(function (i) {\n return i !== item;\n });\n}\nexport function union(itemsA, itemsB) {\n var set = new Set();\n\n var insertItem = function insertItem(item) {\n return set.add(item);\n };\n\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n set.forEach(function (key) {\n return result.push(key);\n });\n return result;\n}","import { memoize } from './utils/js_utils';\nexport var isFirefox = memoize(function () {\n return /firefox/i.test(navigator.userAgent);\n});\nexport var isSafari = memoize(function () {\n return Boolean(window.safari);\n});","import { isSafari, isFirefox } from './BrowserDetector';\nimport MonotonicInterpolant from './MonotonicInterpolant';\nvar ELEMENT_NODE = 1;\nexport function getNodeClientOffset(node) {\n var el = node.nodeType === ELEMENT_NODE ? node : node.parentElement;\n\n if (!el) {\n return null;\n }\n\n var _el$getBoundingClient = el.getBoundingClientRect(),\n top = _el$getBoundingClient.top,\n left = _el$getBoundingClient.left;\n\n return {\n x: left,\n y: top\n };\n}\nexport function getEventClientOffset(e) {\n return {\n x: e.clientX,\n y: e.clientY\n };\n}\n\nfunction isImageNode(node) {\n return node.nodeName === 'IMG' && (isFirefox() || !document.documentElement.contains(node));\n}\n\nfunction getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight) {\n var dragPreviewWidth = isImage ? dragPreview.width : sourceWidth;\n var dragPreviewHeight = isImage ? dragPreview.height : sourceHeight; // Work around @2x coordinate discrepancies in browsers\n\n if (isSafari() && isImage) {\n dragPreviewHeight /= window.devicePixelRatio;\n dragPreviewWidth /= window.devicePixelRatio;\n }\n\n return {\n dragPreviewWidth: dragPreviewWidth,\n dragPreviewHeight: dragPreviewHeight\n };\n}\n\nexport function getDragPreviewOffset(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint) {\n // The browsers will use the image intrinsic size under different conditions.\n // Firefox only cares if it's an image, but WebKit also wants it to be detached.\n var isImage = isImageNode(dragPreview);\n var dragPreviewNode = isImage ? sourceNode : dragPreview;\n var dragPreviewNodeOffsetFromClient = getNodeClientOffset(dragPreviewNode);\n var offsetFromDragPreview = {\n x: clientOffset.x - dragPreviewNodeOffsetFromClient.x,\n y: clientOffset.y - dragPreviewNodeOffsetFromClient.y\n };\n var sourceWidth = sourceNode.offsetWidth,\n sourceHeight = sourceNode.offsetHeight;\n var anchorX = anchorPoint.anchorX,\n anchorY = anchorPoint.anchorY;\n\n var _getDragPreviewSize = getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight),\n dragPreviewWidth = _getDragPreviewSize.dragPreviewWidth,\n dragPreviewHeight = _getDragPreviewSize.dragPreviewHeight;\n\n var calculateYOffset = function calculateYOffset() {\n var interpolantY = new MonotonicInterpolant([0, 0.5, 1], [// Dock to the top\n offsetFromDragPreview.y, // Align at the center\n offsetFromDragPreview.y / sourceHeight * dragPreviewHeight, // Dock to the bottom\n offsetFromDragPreview.y + dragPreviewHeight - sourceHeight]);\n var y = interpolantY.interpolate(anchorY); // Work around Safari 8 positioning bug\n\n if (isSafari() && isImage) {\n // We'll have to wait for @3x to see if this is entirely correct\n y += (window.devicePixelRatio - 1) * dragPreviewHeight;\n }\n\n return y;\n };\n\n var calculateXOffset = function calculateXOffset() {\n // Interpolate coordinates depending on anchor point\n // If you know a simpler way to do this, let me know\n var interpolantX = new MonotonicInterpolant([0, 0.5, 1], [// Dock to the left\n offsetFromDragPreview.x, // Align at the center\n offsetFromDragPreview.x / sourceWidth * dragPreviewWidth, // Dock to the right\n offsetFromDragPreview.x + dragPreviewWidth - sourceWidth]);\n return interpolantX.interpolate(anchorX);\n }; // Force offsets if specified in the options.\n\n\n var offsetX = offsetPoint.offsetX,\n offsetY = offsetPoint.offsetY;\n var isManualOffsetX = offsetX === 0 || offsetX;\n var isManualOffsetY = offsetY === 0 || offsetY;\n return {\n x: isManualOffsetX ? offsetX : calculateXOffset(),\n y: isManualOffsetY ? offsetY : calculateYOffset()\n };\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar MonotonicInterpolant =\n/*#__PURE__*/\nfunction () {\n function MonotonicInterpolant(xs, ys) {\n _classCallCheck(this, MonotonicInterpolant);\n\n var length = xs.length; // Rearrange xs and ys so that xs is sorted\n\n var indexes = [];\n\n for (var i = 0; i < length; i++) {\n indexes.push(i);\n }\n\n indexes.sort(function (a, b) {\n return xs[a] < xs[b] ? -1 : 1;\n }); // Get consecutive differences and slopes\n\n var dys = [];\n var dxs = [];\n var ms = [];\n var dx;\n var dy;\n\n for (var _i = 0; _i < length - 1; _i++) {\n dx = xs[_i + 1] - xs[_i];\n dy = ys[_i + 1] - ys[_i];\n dxs.push(dx);\n dys.push(dy);\n ms.push(dy / dx);\n } // Get degree-1 coefficients\n\n\n var c1s = [ms[0]];\n\n for (var _i2 = 0; _i2 < dxs.length - 1; _i2++) {\n var m2 = ms[_i2];\n var mNext = ms[_i2 + 1];\n\n if (m2 * mNext <= 0) {\n c1s.push(0);\n } else {\n dx = dxs[_i2];\n var dxNext = dxs[_i2 + 1];\n var common = dx + dxNext;\n c1s.push(3 * common / ((common + dxNext) / m2 + (common + dx) / mNext));\n }\n }\n\n c1s.push(ms[ms.length - 1]); // Get degree-2 and degree-3 coefficients\n\n var c2s = [];\n var c3s = [];\n var m;\n\n for (var _i3 = 0; _i3 < c1s.length - 1; _i3++) {\n m = ms[_i3];\n var c1 = c1s[_i3];\n var invDx = 1 / dxs[_i3];\n\n var _common = c1 + c1s[_i3 + 1] - m - m;\n\n c2s.push((m - c1 - _common) * invDx);\n c3s.push(_common * invDx * invDx);\n }\n\n this.xs = xs;\n this.ys = ys;\n this.c1s = c1s;\n this.c2s = c2s;\n this.c3s = c3s;\n }\n\n _createClass(MonotonicInterpolant, [{\n key: \"interpolate\",\n value: function interpolate(x) {\n var xs = this.xs,\n ys = this.ys,\n c1s = this.c1s,\n c2s = this.c2s,\n c3s = this.c3s; // The rightmost point in the dataset should give an exact result\n\n var i = xs.length - 1;\n\n if (x === xs[i]) {\n return ys[i];\n } // Search for the interval x is in, returning the corresponding y if x is one of the original xs\n\n\n var low = 0;\n var high = c3s.length - 1;\n var mid;\n\n while (low <= high) {\n mid = Math.floor(0.5 * (low + high));\n var xHere = xs[mid];\n\n if (xHere < x) {\n low = mid + 1;\n } else if (xHere > x) {\n high = mid - 1;\n } else {\n return ys[mid];\n }\n }\n\n i = Math.max(0, high); // Interpolate\n\n var diff = x - xs[i];\n var diffSq = diff * diff;\n return ys[i] + c1s[i] * diff + c2s[i] * diffSq + c3s[i] * diff * diffSq;\n }\n }]);\n\n return MonotonicInterpolant;\n}();\n\nexport { MonotonicInterpolant as default };","import { nativeTypesConfig } from './nativeTypesConfig';\nimport { NativeDragSource } from './NativeDragSource';\nexport function createNativeDragSource(type, dataTransfer) {\n var result = new NativeDragSource(nativeTypesConfig[type]);\n result.loadDataTransfer(dataTransfer);\n return result;\n}\nexport function matchNativeItemType(dataTransfer) {\n if (!dataTransfer) {\n return null;\n }\n\n var dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || []);\n return Object.keys(nativeTypesConfig).filter(function (nativeItemType) {\n var matchesTypes = nativeTypesConfig[nativeItemType].matchesTypes;\n return matchesTypes.some(function (t) {\n return dataTransferTypes.indexOf(t) > -1;\n });\n })[0] || null;\n}","var _nativeTypesConfig;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport * as NativeTypes from '../NativeTypes';\nimport { getDataFromDataTransfer } from './getDataFromDataTransfer';\nexport var nativeTypesConfig = (_nativeTypesConfig = {}, _defineProperty(_nativeTypesConfig, NativeTypes.FILE, {\n exposeProperties: {\n files: function files(dataTransfer) {\n return Array.prototype.slice.call(dataTransfer.files);\n },\n items: function items(dataTransfer) {\n return dataTransfer.items;\n }\n },\n matchesTypes: ['Files']\n}), _defineProperty(_nativeTypesConfig, NativeTypes.URL, {\n exposeProperties: {\n urls: function urls(dataTransfer, matchesTypes) {\n return getDataFromDataTransfer(dataTransfer, matchesTypes, '').split('\\n');\n }\n },\n matchesTypes: ['Url', 'text/uri-list']\n}), _defineProperty(_nativeTypesConfig, NativeTypes.TEXT, {\n exposeProperties: {\n text: function text(dataTransfer, matchesTypes) {\n return getDataFromDataTransfer(dataTransfer, matchesTypes, '');\n }\n },\n matchesTypes: ['Text', 'text/plain']\n}), _nativeTypesConfig);","export var FILE = '__NATIVE_FILE__';\nexport var URL = '__NATIVE_URL__';\nexport var TEXT = '__NATIVE_TEXT__';","export function getDataFromDataTransfer(dataTransfer, typesToTry, defaultValue) {\n var result = typesToTry.reduce(function (resultSoFar, typeToTry) {\n return resultSoFar || dataTransfer.getData(typeToTry);\n }, '');\n return result != null ? result : defaultValue;\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nexport var NativeDragSource =\n/*#__PURE__*/\nfunction () {\n function NativeDragSource(config) {\n _classCallCheck(this, NativeDragSource);\n\n this.config = config;\n this.item = {};\n this.initializeExposedProperties();\n }\n\n _createClass(NativeDragSource, [{\n key: \"initializeExposedProperties\",\n value: function initializeExposedProperties() {\n var _this = this;\n\n Object.keys(this.config.exposeProperties).forEach(function (property) {\n Object.defineProperty(_this.item, property, {\n configurable: true,\n enumerable: true,\n get: function get() {\n // eslint-disable-next-line no-console\n console.warn(\"Browser doesn't allow reading \\\"\".concat(property, \"\\\" until the drop event.\"));\n return null;\n }\n });\n });\n }\n }, {\n key: \"loadDataTransfer\",\n value: function loadDataTransfer(dataTransfer) {\n var _this2 = this;\n\n if (dataTransfer) {\n var newProperties = {};\n Object.keys(this.config.exposeProperties).forEach(function (property) {\n newProperties[property] = {\n value: _this2.config.exposeProperties[property](dataTransfer, _this2.config.matchesTypes),\n configurable: true,\n enumerable: true\n };\n });\n Object.defineProperties(this.item, newProperties);\n }\n }\n }, {\n key: \"canDrag\",\n value: function canDrag() {\n return true;\n }\n }, {\n key: \"beginDrag\",\n value: function beginDrag() {\n return this.item;\n }\n }, {\n key: \"isDragging\",\n value: function isDragging(monitor, handle) {\n return handle === monitor.getSourceId();\n }\n }, {\n key: \"endDrag\",\n value: function endDrag() {// empty\n }\n }]);\n\n return NativeDragSource;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nexport var OptionsReader =\n/*#__PURE__*/\nfunction () {\n function OptionsReader(globalContext) {\n _classCallCheck(this, OptionsReader);\n\n this.globalContext = globalContext;\n }\n\n _createClass(OptionsReader, [{\n key: \"window\",\n get: function get() {\n if (this.globalContext) {\n return this.globalContext;\n } else if (typeof window !== 'undefined') {\n return window;\n }\n\n return undefined;\n }\n }, {\n key: \"document\",\n get: function get() {\n if (this.window) {\n return this.window.document;\n }\n\n return undefined;\n }\n }]);\n\n return OptionsReader;\n}();","var emptyImage;\nexport function getEmptyImage() {\n if (!emptyImage) {\n emptyImage = new Image();\n emptyImage.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\n }\n\n return emptyImage;\n}","export * from \"./core/index.js\";\nexport * from \"./react/index.js\";\n//# sourceMappingURL=index.js.map","export * from './core';\nexport * from './react';\n","export { ApolloClient, mergeOptions, } from \"./ApolloClient.js\";\nexport { ObservableQuery, } from \"./ObservableQuery.js\";\nexport { NetworkStatus } from \"./networkStatus.js\";\nexport * from \"./types.js\";\nexport { isApolloError, ApolloError } from \"../errors/index.js\";\nexport { Cache, ApolloCache, InMemoryCache, MissingFieldError, defaultDataIdFromObject, makeVar, } from \"../cache/index.js\";\nexport * from \"../cache/inmemory/types.js\";\nexport * from \"../link/core/index.js\";\nexport * from \"../link/http/index.js\";\nexport { fromError, toPromise, fromPromise, throwServerError, } from \"../link/utils/index.js\";\nexport { Observable, isReference, makeReference, } from \"../utilities/index.js\";\nimport { setVerbosity } from \"ts-invariant\";\nexport { setVerbosity as setLogVerbosity };\nsetVerbosity(\"log\");\nimport gql from 'graphql-tag';\nexport var resetCaches = gql.resetCaches, disableFragmentWarnings = gql.disableFragmentWarnings, enableExperimentalFragmentVariables = gql.enableExperimentalFragmentVariables, disableExperimentalFragmentVariables = gql.disableExperimentalFragmentVariables;\nexport { gql };\n//# sourceMappingURL=index.js.map","/* Core */\n\nexport {\n ApolloClient,\n ApolloClientOptions,\n DefaultOptions,\n mergeOptions,\n} from './ApolloClient';\nexport {\n ObservableQuery,\n FetchMoreOptions,\n UpdateQueryOptions,\n} from './ObservableQuery';\nexport {\n QueryOptions,\n WatchQueryOptions,\n MutationOptions,\n SubscriptionOptions,\n FetchPolicy,\n WatchQueryFetchPolicy,\n ErrorPolicy,\n FetchMoreQueryOptions,\n SubscribeToMoreOptions,\n MutationUpdaterFn,\n} from './watchQueryOptions';\nexport { NetworkStatus } from './networkStatus';\nexport * from './types';\nexport {\n Resolver,\n FragmentMatcher,\n} from './LocalState';\nexport { isApolloError, ApolloError } from '../errors';\n\n/* Cache */\n\nexport {\n // All the exports (types and values) from ../cache, minus cacheSlot,\n // which we want to keep semi-private.\n Cache,\n ApolloCache,\n Transaction,\n DataProxy,\n InMemoryCache,\n InMemoryCacheConfig,\n MissingFieldError,\n defaultDataIdFromObject,\n ReactiveVar,\n makeVar,\n TypePolicies,\n TypePolicy,\n FieldPolicy,\n FieldReadFunction,\n FieldMergeFunction,\n FieldFunctionOptions,\n PossibleTypesMap,\n} from '../cache';\n\nexport * from '../cache/inmemory/types';\n\n/* Link */\n\nexport * from '../link/core';\nexport * from '../link/http';\nexport {\n fromError,\n toPromise,\n fromPromise,\n ServerError,\n throwServerError,\n} from '../link/utils';\n\n/* Utilities */\n\nexport {\n Observable,\n Observer,\n ObservableSubscription,\n Reference,\n isReference,\n makeReference,\n StoreObject,\n} from '../utilities';\n\n/* Supporting */\n\n// The verbosity of invariant.{log,warn,error} can be controlled globally\n// (for anyone using the same ts-invariant package) by passing \"log\",\n// \"warn\", \"error\", or \"silent\" to setVerbosity (\"log\" is the default).\n// Note that all invariant.* logging is hidden in production.\nimport { setVerbosity } from \"ts-invariant\";\nexport { setVerbosity as setLogVerbosity }\nsetVerbosity(\"log\");\n\n// Note that importing `gql` by itself, then destructuring\n// additional properties separately before exporting, is intentional.\n// Due to the way the `graphql-tag` library is setup, certain bundlers\n// can't find the properties added to the exported `gql` function without\n// additional guidance (e.g. Rollup - see\n// https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module).\n// Instead of having people that are using bundlers with `@apollo/client` add\n// extra bundler config to help `graphql-tag` exports be found (which would be\n// awkward since they aren't importing `graphql-tag` themselves), this\n// workaround of pulling the extra properties off the `gql` function,\n// then re-exporting them separately, helps keeps bundlers happy without any\n// additional config changes.\nimport gql from 'graphql-tag';\nexport const {\n resetCaches,\n disableFragmentWarnings,\n enableExperimentalFragmentVariables,\n disableExperimentalFragmentVariables\n} = gql;\nexport { gql };\n","import { __assign } from \"tslib\";\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { ApolloLink, execute } from \"../link/core/index.js\";\nimport { compact } from \"../utilities/index.js\";\nimport { version } from \"../version.js\";\nimport { HttpLink } from \"../link/http/index.js\";\nimport { QueryManager } from \"./QueryManager.js\";\nimport { LocalState, } from \"./LocalState.js\";\nvar hasSuggestedDevtools = false;\nexport function mergeOptions(defaults, options) {\n return compact(defaults, options, options.variables && {\n variables: __assign(__assign({}, defaults.variables), options.variables),\n });\n}\nvar ApolloClient = (function () {\n function ApolloClient(options) {\n var _this = this;\n this.defaultOptions = {};\n this.resetStoreCallbacks = [];\n this.clearStoreCallbacks = [];\n var uri = options.uri, credentials = options.credentials, headers = options.headers, cache = options.cache, _a = options.ssrMode, ssrMode = _a === void 0 ? false : _a, _b = options.ssrForceFetchDelay, ssrForceFetchDelay = _b === void 0 ? 0 : _b, _c = options.connectToDevTools, connectToDevTools = _c === void 0 ? typeof window === 'object' &&\n !window.__APOLLO_CLIENT__ &&\n process.env.NODE_ENV !== 'production' : _c, _d = options.queryDeduplication, queryDeduplication = _d === void 0 ? true : _d, defaultOptions = options.defaultOptions, _e = options.assumeImmutableResults, assumeImmutableResults = _e === void 0 ? false : _e, resolvers = options.resolvers, typeDefs = options.typeDefs, fragmentMatcher = options.fragmentMatcher, clientAwarenessName = options.name, clientAwarenessVersion = options.version;\n var link = options.link;\n if (!link) {\n link = uri\n ? new HttpLink({ uri: uri, credentials: credentials, headers: headers })\n : ApolloLink.empty();\n }\n if (!cache) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(9) : new InvariantError(\"To initialize Apollo Client, you must specify a 'cache' property \" +\n \"in the options object. \\n\" +\n \"For more information, please visit: https://go.apollo.dev/c/docs\");\n }\n this.link = link;\n this.cache = cache;\n this.disableNetworkFetches = ssrMode || ssrForceFetchDelay > 0;\n this.queryDeduplication = queryDeduplication;\n this.defaultOptions = defaultOptions || {};\n this.typeDefs = typeDefs;\n if (ssrForceFetchDelay) {\n setTimeout(function () { return (_this.disableNetworkFetches = false); }, ssrForceFetchDelay);\n }\n this.watchQuery = this.watchQuery.bind(this);\n this.query = this.query.bind(this);\n this.mutate = this.mutate.bind(this);\n this.resetStore = this.resetStore.bind(this);\n this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this);\n if (connectToDevTools && typeof window === 'object') {\n window.__APOLLO_CLIENT__ = this;\n }\n if (!hasSuggestedDevtools && process.env.NODE_ENV !== 'production') {\n hasSuggestedDevtools = true;\n if (typeof window !== 'undefined' &&\n window.document &&\n window.top === window.self &&\n !window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__) {\n var nav = window.navigator;\n var ua = nav && nav.userAgent;\n var url = void 0;\n if (typeof ua === \"string\") {\n if (ua.indexOf(\"Chrome/\") > -1) {\n url = \"https://chrome.google.com/webstore/detail/\" +\n \"apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm\";\n }\n else if (ua.indexOf(\"Firefox/\") > -1) {\n url = \"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/\";\n }\n }\n if (url) {\n invariant.log(\"Download the Apollo DevTools for a better development \" +\n \"experience: \" + url);\n }\n }\n }\n this.version = version;\n this.localState = new LocalState({\n cache: cache,\n client: this,\n resolvers: resolvers,\n fragmentMatcher: fragmentMatcher,\n });\n this.queryManager = new QueryManager({\n cache: this.cache,\n link: this.link,\n queryDeduplication: queryDeduplication,\n ssrMode: ssrMode,\n clientAwareness: {\n name: clientAwarenessName,\n version: clientAwarenessVersion,\n },\n localState: this.localState,\n assumeImmutableResults: assumeImmutableResults,\n onBroadcast: connectToDevTools ? function () {\n if (_this.devToolsHookCb) {\n _this.devToolsHookCb({\n action: {},\n state: {\n queries: _this.queryManager.getQueryStore(),\n mutations: _this.queryManager.mutationStore || {},\n },\n dataWithOptimisticResults: _this.cache.extract(true),\n });\n }\n } : void 0,\n });\n }\n ApolloClient.prototype.stop = function () {\n this.queryManager.stop();\n };\n ApolloClient.prototype.watchQuery = function (options) {\n if (this.defaultOptions.watchQuery) {\n options = mergeOptions(this.defaultOptions.watchQuery, options);\n }\n if (this.disableNetworkFetches &&\n (options.fetchPolicy === 'network-only' ||\n options.fetchPolicy === 'cache-and-network')) {\n options = __assign(__assign({}, options), { fetchPolicy: 'cache-first' });\n }\n return this.queryManager.watchQuery(options);\n };\n ApolloClient.prototype.query = function (options) {\n if (this.defaultOptions.query) {\n options = mergeOptions(this.defaultOptions.query, options);\n }\n process.env.NODE_ENV === \"production\" ? invariant(options.fetchPolicy !== 'cache-and-network', 10) : invariant(options.fetchPolicy !== 'cache-and-network', 'The cache-and-network fetchPolicy does not work with client.query, because ' +\n 'client.query can only return a single result. Please use client.watchQuery ' +\n 'to receive multiple results from the cache and the network, or consider ' +\n 'using a different fetchPolicy, such as cache-first or network-only.');\n if (this.disableNetworkFetches && options.fetchPolicy === 'network-only') {\n options = __assign(__assign({}, options), { fetchPolicy: 'cache-first' });\n }\n return this.queryManager.query(options);\n };\n ApolloClient.prototype.mutate = function (options) {\n if (this.defaultOptions.mutate) {\n options = mergeOptions(this.defaultOptions.mutate, options);\n }\n return this.queryManager.mutate(options);\n };\n ApolloClient.prototype.subscribe = function (options) {\n return this.queryManager.startGraphQLSubscription(options);\n };\n ApolloClient.prototype.readQuery = function (options, optimistic) {\n if (optimistic === void 0) { optimistic = false; }\n return this.cache.readQuery(options, optimistic);\n };\n ApolloClient.prototype.readFragment = function (options, optimistic) {\n if (optimistic === void 0) { optimistic = false; }\n return this.cache.readFragment(options, optimistic);\n };\n ApolloClient.prototype.writeQuery = function (options) {\n this.cache.writeQuery(options);\n this.queryManager.broadcastQueries();\n };\n ApolloClient.prototype.writeFragment = function (options) {\n this.cache.writeFragment(options);\n this.queryManager.broadcastQueries();\n };\n ApolloClient.prototype.__actionHookForDevTools = function (cb) {\n this.devToolsHookCb = cb;\n };\n ApolloClient.prototype.__requestRaw = function (payload) {\n return execute(this.link, payload);\n };\n ApolloClient.prototype.resetStore = function () {\n var _this = this;\n return Promise.resolve()\n .then(function () { return _this.queryManager.clearStore(); })\n .then(function () { return Promise.all(_this.resetStoreCallbacks.map(function (fn) { return fn(); })); })\n .then(function () { return _this.reFetchObservableQueries(); });\n };\n ApolloClient.prototype.clearStore = function () {\n var _this = this;\n return Promise.resolve()\n .then(function () { return _this.queryManager.clearStore(); })\n .then(function () { return Promise.all(_this.clearStoreCallbacks.map(function (fn) { return fn(); })); });\n };\n ApolloClient.prototype.onResetStore = function (cb) {\n var _this = this;\n this.resetStoreCallbacks.push(cb);\n return function () {\n _this.resetStoreCallbacks = _this.resetStoreCallbacks.filter(function (c) { return c !== cb; });\n };\n };\n ApolloClient.prototype.onClearStore = function (cb) {\n var _this = this;\n this.clearStoreCallbacks.push(cb);\n return function () {\n _this.clearStoreCallbacks = _this.clearStoreCallbacks.filter(function (c) { return c !== cb; });\n };\n };\n ApolloClient.prototype.reFetchObservableQueries = function (includeStandby) {\n return this.queryManager.reFetchObservableQueries(includeStandby);\n };\n ApolloClient.prototype.extract = function (optimistic) {\n return this.cache.extract(optimistic);\n };\n ApolloClient.prototype.restore = function (serializedState) {\n return this.cache.restore(serializedState);\n };\n ApolloClient.prototype.addResolvers = function (resolvers) {\n this.localState.addResolvers(resolvers);\n };\n ApolloClient.prototype.setResolvers = function (resolvers) {\n this.localState.setResolvers(resolvers);\n };\n ApolloClient.prototype.getResolvers = function () {\n return this.localState.getResolvers();\n };\n ApolloClient.prototype.setLocalStateFragmentMatcher = function (fragmentMatcher) {\n this.localState.setFragmentMatcher(fragmentMatcher);\n };\n ApolloClient.prototype.setLink = function (newLink) {\n this.link = this.queryManager.link = newLink;\n };\n return ApolloClient;\n}());\nexport { ApolloClient };\n//# sourceMappingURL=ApolloClient.js.map","import { ExecutionResult, DocumentNode } from 'graphql';\nimport { invariant, InvariantError } from 'ts-invariant';\n\nimport { ApolloLink, FetchResult, GraphQLRequest, execute } from '../link/core';\nimport { ApolloCache, DataProxy } from '../cache';\nimport { Observable, compact } from '../utilities';\nimport { version } from '../version';\nimport { HttpLink, UriFunction } from '../link/http';\n\nimport { QueryManager } from './QueryManager';\nimport { ObservableQuery } from './ObservableQuery';\n\nimport {\n ApolloQueryResult,\n OperationVariables,\n Resolvers,\n} from './types';\n\nimport {\n QueryOptions,\n WatchQueryOptions,\n MutationOptions,\n SubscriptionOptions,\n WatchQueryFetchPolicy,\n} from './watchQueryOptions';\n\nimport {\n LocalState,\n FragmentMatcher,\n} from './LocalState';\n\nexport interface DefaultOptions {\n watchQuery?: Partial>;\n query?: Partial>;\n mutate?: Partial>;\n}\n\nlet hasSuggestedDevtools = false;\n\nexport type ApolloClientOptions = {\n uri?: string | UriFunction;\n credentials?: string;\n headers?: Record;\n link?: ApolloLink;\n cache: ApolloCache;\n ssrForceFetchDelay?: number;\n ssrMode?: boolean;\n connectToDevTools?: boolean;\n queryDeduplication?: boolean;\n defaultOptions?: DefaultOptions;\n assumeImmutableResults?: boolean;\n resolvers?: Resolvers | Resolvers[];\n typeDefs?: string | string[] | DocumentNode | DocumentNode[];\n fragmentMatcher?: FragmentMatcher;\n name?: string;\n version?: string;\n};\n\ntype OptionsUnion =\n | WatchQueryOptions\n | QueryOptions\n | MutationOptions;\n\nexport function mergeOptions<\n TOptions extends OptionsUnion\n>(\n defaults: Partial,\n options: TOptions,\n): TOptions {\n return compact(defaults, options, options.variables && {\n variables: {\n ...defaults.variables,\n ...options.variables,\n },\n });\n}\n\n/**\n * This is the primary Apollo Client class. It is used to send GraphQL documents (i.e. queries\n * and mutations) to a GraphQL spec-compliant server over a {@link NetworkInterface} instance,\n * receive results from the server and cache the results in a store. It also delivers updates\n * to GraphQL queries through {@link Observable} instances.\n */\nexport class ApolloClient implements DataProxy {\n public link: ApolloLink;\n public cache: ApolloCache;\n public disableNetworkFetches: boolean;\n public version: string;\n public queryDeduplication: boolean;\n public defaultOptions: DefaultOptions = {};\n public readonly typeDefs: ApolloClientOptions['typeDefs'];\n\n private queryManager: QueryManager;\n private devToolsHookCb: Function;\n private resetStoreCallbacks: Array<() => Promise> = [];\n private clearStoreCallbacks: Array<() => Promise> = [];\n private localState: LocalState;\n\n /**\n * Constructs an instance of {@link ApolloClient}.\n *\n * @param uri The GraphQL endpoint that Apollo Client will connect to. If\n * `link` is configured, this option is ignored.\n * @param link The {@link ApolloLink} over which GraphQL documents will be resolved into a response.\n *\n * @param cache The initial cache to use in the data store.\n *\n * @param ssrMode Determines whether this is being run in Server Side Rendering (SSR) mode.\n *\n * @param ssrForceFetchDelay Determines the time interval before we force fetch queries for a\n * server side render.\n *\n * @param queryDeduplication If set to false, a query will still be sent to the server even if a query\n * with identical parameters (query, variables, operationName) is already in flight.\n *\n * @param defaultOptions Used to set application wide defaults for the\n * options supplied to `watchQuery`, `query`, or\n * `mutate`.\n *\n * @param assumeImmutableResults When this option is true, the client will assume results\n * read from the cache are never mutated by application code,\n * which enables substantial performance optimizations. Passing\n * `{ freezeResults: true }` to the `InMemoryCache` constructor\n * can help enforce this immutability.\n *\n * @param name A custom name that can be used to identify this client, when\n * using Apollo client awareness features. E.g. \"iOS\".\n *\n * @param version A custom version that can be used to identify this client,\n * when using Apollo client awareness features. This is the\n * version of your client, which you may want to increment on\n * new builds. This is NOT the version of Apollo Client that\n * you are using.\n */\n constructor(options: ApolloClientOptions) {\n const {\n uri,\n credentials,\n headers,\n cache,\n ssrMode = false,\n ssrForceFetchDelay = 0,\n connectToDevTools =\n // Expose the client instance as window.__APOLLO_CLIENT__ and call\n // onBroadcast in queryManager.broadcastQueries to enable browser\n // devtools, but disable them by default in production.\n typeof window === 'object' &&\n !(window as any).__APOLLO_CLIENT__ &&\n process.env.NODE_ENV !== 'production',\n queryDeduplication = true,\n defaultOptions,\n assumeImmutableResults = false,\n resolvers,\n typeDefs,\n fragmentMatcher,\n name: clientAwarenessName,\n version: clientAwarenessVersion,\n } = options;\n\n let { link } = options;\n\n if (!link) {\n link = uri\n ? new HttpLink({ uri, credentials, headers })\n : ApolloLink.empty();\n }\n\n if (!cache) {\n throw new InvariantError(\n \"To initialize Apollo Client, you must specify a 'cache' property \" +\n \"in the options object. \\n\" +\n \"For more information, please visit: https://go.apollo.dev/c/docs\"\n );\n }\n\n this.link = link;\n this.cache = cache;\n this.disableNetworkFetches = ssrMode || ssrForceFetchDelay > 0;\n this.queryDeduplication = queryDeduplication;\n this.defaultOptions = defaultOptions || {};\n this.typeDefs = typeDefs;\n\n if (ssrForceFetchDelay) {\n setTimeout(\n () => (this.disableNetworkFetches = false),\n ssrForceFetchDelay,\n );\n }\n\n this.watchQuery = this.watchQuery.bind(this);\n this.query = this.query.bind(this);\n this.mutate = this.mutate.bind(this);\n this.resetStore = this.resetStore.bind(this);\n this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this);\n\n if (connectToDevTools && typeof window === 'object') {\n (window as any).__APOLLO_CLIENT__ = this;\n }\n\n /**\n * Suggest installing the devtools for developers who don't have them\n */\n if (!hasSuggestedDevtools && process.env.NODE_ENV !== 'production') {\n hasSuggestedDevtools = true;\n if (\n typeof window !== 'undefined' &&\n window.document &&\n window.top === window.self &&\n !(window as any).__APOLLO_DEVTOOLS_GLOBAL_HOOK__\n ) {\n const nav = window.navigator;\n const ua = nav && nav.userAgent;\n let url: string | undefined;\n if (typeof ua === \"string\") {\n if (ua.indexOf(\"Chrome/\") > -1) {\n url = \"https://chrome.google.com/webstore/detail/\" +\n \"apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm\";\n } else if (ua.indexOf(\"Firefox/\") > -1) {\n url = \"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/\";\n }\n }\n if (url) {\n invariant.log(\n \"Download the Apollo DevTools for a better development \" +\n \"experience: \" + url\n );\n }\n }\n }\n\n this.version = version;\n\n this.localState = new LocalState({\n cache,\n client: this,\n resolvers,\n fragmentMatcher,\n });\n\n this.queryManager = new QueryManager({\n cache: this.cache,\n link: this.link,\n queryDeduplication,\n ssrMode,\n clientAwareness: {\n name: clientAwarenessName!,\n version: clientAwarenessVersion!,\n },\n localState: this.localState,\n assumeImmutableResults,\n onBroadcast: connectToDevTools ? () => {\n if (this.devToolsHookCb) {\n this.devToolsHookCb({\n action: {},\n state: {\n queries: this.queryManager.getQueryStore(),\n mutations: this.queryManager.mutationStore || {},\n },\n dataWithOptimisticResults: this.cache.extract(true),\n });\n }\n } : void 0,\n });\n }\n\n /**\n * Call this method to terminate any active client processes, making it safe\n * to dispose of this `ApolloClient` instance.\n */\n public stop() {\n this.queryManager.stop();\n }\n\n /**\n * This watches the cache store of the query according to the options specified and\n * returns an {@link ObservableQuery}. We can subscribe to this {@link ObservableQuery} and\n * receive updated results through a GraphQL observer when the cache store changes.\n *

    \n * Note that this method is not an implementation of GraphQL subscriptions. Rather,\n * it uses Apollo's store in order to reactively deliver updates to your query results.\n *

    \n * For example, suppose you call watchQuery on a GraphQL query that fetches a person's\n * first and last name and this person has a particular object identifer, provided by\n * dataIdFromObject. Later, a different query fetches that same person's\n * first and last name and the first name has now changed. Then, any observers associated\n * with the results of the first query will be updated with a new result object.\n *

    \n * Note that if the cache does not change, the subscriber will *not* be notified.\n *

    \n * See [here](https://medium.com/apollo-stack/the-concepts-of-graphql-bc68bd819be3#.3mb0cbcmc) for\n * a description of store reactivity.\n */\n public watchQuery(\n options: WatchQueryOptions,\n ): ObservableQuery {\n if (this.defaultOptions.watchQuery) {\n options = mergeOptions(this.defaultOptions.watchQuery, options);\n }\n\n // XXX Overwriting options is probably not the best way to do this long term...\n if (\n this.disableNetworkFetches &&\n (options.fetchPolicy === 'network-only' ||\n options.fetchPolicy === 'cache-and-network')\n ) {\n options = { ...options, fetchPolicy: 'cache-first' };\n }\n\n return this.queryManager.watchQuery(options);\n }\n\n /**\n * This resolves a single query according to the options specified and\n * returns a {@link Promise} which is either resolved with the resulting data\n * or rejected with an error.\n *\n * @param options An object of type {@link QueryOptions} that allows us to\n * describe how this query should be treated e.g. whether it should hit the\n * server at all or just resolve from the cache, etc.\n */\n public query(\n options: QueryOptions,\n ): Promise> {\n if (this.defaultOptions.query) {\n options = mergeOptions(this.defaultOptions.query, options);\n }\n\n invariant(\n (options.fetchPolicy as WatchQueryFetchPolicy) !== 'cache-and-network',\n 'The cache-and-network fetchPolicy does not work with client.query, because ' +\n 'client.query can only return a single result. Please use client.watchQuery ' +\n 'to receive multiple results from the cache and the network, or consider ' +\n 'using a different fetchPolicy, such as cache-first or network-only.'\n );\n\n if (this.disableNetworkFetches && options.fetchPolicy === 'network-only') {\n options = { ...options, fetchPolicy: 'cache-first' };\n }\n\n return this.queryManager.query(options);\n }\n\n /**\n * This resolves a single mutation according to the options specified and returns a\n * {@link Promise} which is either resolved with the resulting data or rejected with an\n * error.\n *\n * It takes options as an object with the following keys and values:\n */\n public mutate(\n options: MutationOptions,\n ): Promise> {\n if (this.defaultOptions.mutate) {\n options = mergeOptions(this.defaultOptions.mutate, options);\n }\n return this.queryManager.mutate(options);\n }\n\n /**\n * This subscribes to a graphql subscription according to the options specified and returns an\n * {@link Observable} which either emits received data or an error.\n */\n public subscribe(\n options: SubscriptionOptions,\n ): Observable> {\n return this.queryManager.startGraphQLSubscription(options);\n }\n\n /**\n * Tries to read some data from the store in the shape of the provided\n * GraphQL query without making a network request. This method will start at\n * the root query. To start at a specific id returned by `dataIdFromObject`\n * use `readFragment`.\n *\n * @param optimistic Set to `true` to allow `readQuery` to return\n * optimistic results. Is `false` by default.\n */\n public readQuery(\n options: DataProxy.Query,\n optimistic: boolean = false,\n ): T | null {\n return this.cache.readQuery(options, optimistic);\n }\n\n /**\n * Tries to read some data from the store in the shape of the provided\n * GraphQL fragment without making a network request. This method will read a\n * GraphQL fragment from any arbitrary id that is currently cached, unlike\n * `readQuery` which will only read from the root query.\n *\n * You must pass in a GraphQL document with a single fragment or a document\n * with multiple fragments that represent what you are reading. If you pass\n * in a document with multiple fragments then you must also specify a\n * `fragmentName`.\n *\n * @param optimistic Set to `true` to allow `readFragment` to return\n * optimistic results. Is `false` by default.\n */\n public readFragment(\n options: DataProxy.Fragment,\n optimistic: boolean = false,\n ): T | null {\n return this.cache.readFragment(options, optimistic);\n }\n\n /**\n * Writes some data in the shape of the provided GraphQL query directly to\n * the store. This method will start at the root query. To start at a\n * specific id returned by `dataIdFromObject` then use `writeFragment`.\n */\n public writeQuery(\n options: DataProxy.WriteQueryOptions,\n ): void {\n this.cache.writeQuery(options);\n this.queryManager.broadcastQueries();\n }\n\n /**\n * Writes some data in the shape of the provided GraphQL fragment directly to\n * the store. This method will write to a GraphQL fragment from any arbitrary\n * id that is currently cached, unlike `writeQuery` which will only write\n * from the root query.\n *\n * You must pass in a GraphQL document with a single fragment or a document\n * with multiple fragments that represent what you are writing. If you pass\n * in a document with multiple fragments then you must also specify a\n * `fragmentName`.\n */\n public writeFragment(\n options: DataProxy.WriteFragmentOptions,\n ): void {\n this.cache.writeFragment(options);\n this.queryManager.broadcastQueries();\n }\n\n public __actionHookForDevTools(cb: () => any) {\n this.devToolsHookCb = cb;\n }\n\n public __requestRaw(payload: GraphQLRequest): Observable {\n return execute(this.link, payload);\n }\n\n /**\n * Resets your entire store by clearing out your cache and then re-executing\n * all of your active queries. This makes it so that you may guarantee that\n * there is no data left in your store from a time before you called this\n * method.\n *\n * `resetStore()` is useful when your user just logged out. You’ve removed the\n * user session, and you now want to make sure that any references to data you\n * might have fetched while the user session was active is gone.\n *\n * It is important to remember that `resetStore()` *will* refetch any active\n * queries. This means that any components that might be mounted will execute\n * their queries again using your network interface. If you do not want to\n * re-execute any queries then you should make sure to stop watching any\n * active queries.\n */\n public resetStore(): Promise[] | null> {\n return Promise.resolve()\n .then(() => this.queryManager.clearStore())\n .then(() => Promise.all(this.resetStoreCallbacks.map(fn => fn())))\n .then(() => this.reFetchObservableQueries());\n }\n\n /**\n * Remove all data from the store. Unlike `resetStore`, `clearStore` will\n * not refetch any active queries.\n */\n public clearStore(): Promise {\n return Promise.resolve()\n .then(() => this.queryManager.clearStore())\n .then(() => Promise.all(this.clearStoreCallbacks.map(fn => fn())));\n }\n\n /**\n * Allows callbacks to be registered that are executed when the store is\n * reset. `onResetStore` returns an unsubscribe function that can be used\n * to remove registered callbacks.\n */\n public onResetStore(cb: () => Promise): () => void {\n this.resetStoreCallbacks.push(cb);\n return () => {\n this.resetStoreCallbacks = this.resetStoreCallbacks.filter(c => c !== cb);\n };\n }\n\n /**\n * Allows callbacks to be registered that are executed when the store is\n * cleared. `onClearStore` returns an unsubscribe function that can be used\n * to remove registered callbacks.\n */\n public onClearStore(cb: () => Promise): () => void {\n this.clearStoreCallbacks.push(cb);\n return () => {\n this.clearStoreCallbacks = this.clearStoreCallbacks.filter(c => c !== cb);\n };\n }\n\n /**\n * Refetches all of your active queries.\n *\n * `reFetchObservableQueries()` is useful if you want to bring the client back to proper state in case of a network outage\n *\n * It is important to remember that `reFetchObservableQueries()` *will* refetch any active\n * queries. This means that any components that might be mounted will execute\n * their queries again using your network interface. If you do not want to\n * re-execute any queries then you should make sure to stop watching any\n * active queries.\n * Takes optional parameter `includeStandby` which will include queries in standby-mode when refetching.\n */\n public reFetchObservableQueries(\n includeStandby?: boolean,\n ): Promise[]> {\n return this.queryManager.reFetchObservableQueries(includeStandby);\n }\n\n /**\n * Exposes the cache's complete state, in a serializable format for later restoration.\n */\n public extract(optimistic?: boolean): TCacheShape {\n return this.cache.extract(optimistic);\n }\n\n /**\n * Replaces existing state in the cache (if any) with the values expressed by\n * `serializedState`.\n *\n * Called when hydrating a cache (server side rendering, or offline storage),\n * and also (potentially) during hot reloads.\n */\n public restore(serializedState: TCacheShape): ApolloCache {\n return this.cache.restore(serializedState);\n }\n\n /**\n * Add additional local resolvers.\n */\n public addResolvers(resolvers: Resolvers | Resolvers[]) {\n this.localState.addResolvers(resolvers);\n }\n\n /**\n * Set (override existing) local resolvers.\n */\n public setResolvers(resolvers: Resolvers | Resolvers[]) {\n this.localState.setResolvers(resolvers);\n }\n\n /**\n * Get all registered local resolvers.\n */\n public getResolvers() {\n return this.localState.getResolvers();\n }\n\n /**\n * Set a custom local state fragment matcher.\n */\n public setLocalStateFragmentMatcher(fragmentMatcher: FragmentMatcher) {\n this.localState.setFragmentMatcher(fragmentMatcher);\n }\n\n /**\n * Define a new ApolloLink (or link chain) that Apollo Client will use.\n */\n public setLink(newLink: ApolloLink) {\n this.link = this.queryManager.link = newLink;\n }\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { __extends } from 'tslib';\n\nvar genericMessage = \"Invariant Violation\";\r\nvar _a = Object.setPrototypeOf, setPrototypeOf = _a === void 0 ? function (obj, proto) {\r\n obj.__proto__ = proto;\r\n return obj;\r\n} : _a;\r\nvar InvariantError = /** @class */ (function (_super) {\r\n __extends(InvariantError, _super);\r\n function InvariantError(message) {\r\n if (message === void 0) { message = genericMessage; }\r\n var _this = _super.call(this, typeof message === \"number\"\r\n ? genericMessage + \": \" + message + \" (see https://github.com/apollographql/invariant-packages)\"\r\n : message) || this;\r\n _this.framesToPop = 1;\r\n _this.name = genericMessage;\r\n setPrototypeOf(_this, InvariantError.prototype);\r\n return _this;\r\n }\r\n return InvariantError;\r\n}(Error));\r\nfunction invariant(condition, message) {\r\n if (!condition) {\r\n throw new InvariantError(message);\r\n }\r\n}\r\nvar verbosityLevels = [\"log\", \"warn\", \"error\", \"silent\"];\r\nvar verbosityLevel = verbosityLevels.indexOf(\"log\");\r\nfunction wrapConsoleMethod(method) {\r\n return function () {\r\n if (verbosityLevels.indexOf(method) >= verbosityLevel) {\r\n return console[method].apply(console, arguments);\r\n }\r\n };\r\n}\r\n(function (invariant) {\r\n invariant.log = wrapConsoleMethod(\"log\");\r\n invariant.warn = wrapConsoleMethod(\"warn\");\r\n invariant.error = wrapConsoleMethod(\"error\");\r\n})(invariant || (invariant = {}));\r\nfunction setVerbosity(level) {\r\n var old = verbosityLevels[verbosityLevel];\r\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\r\n return old;\r\n}\r\n// Code that uses ts-invariant with rollup-plugin-invariant may want to\r\n// import this process stub to avoid errors evaluating process.env.NODE_ENV.\r\n// However, because most ESM-to-CJS compilers will rewrite the process import\r\n// as tsInvariant.process, which prevents proper replacement by minifiers, we\r\n// also export processStub, so you can import { invariant, processStub } from\r\n// \"ts-invariant\" and assign processStub to a local variable named process.\r\nvar processStub = (typeof process === \"object\" &&\r\n typeof process.env === \"object\") ? process : { env: {} };\r\nvar invariant$1 = invariant;\n\nexport default invariant$1;\nexport { InvariantError, invariant, processStub as process, processStub, setVerbosity };\n//# sourceMappingURL=invariant.esm.js.map\n","const genericMessage = \"Invariant Violation\";\nconst {\n setPrototypeOf = function (obj: any, proto: any) {\n obj.__proto__ = proto;\n return obj;\n },\n} = Object as any;\n\nexport class InvariantError extends Error {\n framesToPop = 1;\n name = genericMessage;\n constructor(message: string | number = genericMessage) {\n super(\n typeof message === \"number\"\n ? `${genericMessage}: ${message} (see https://github.com/apollographql/invariant-packages)`\n : message\n );\n setPrototypeOf(this, InvariantError.prototype);\n }\n}\n\nexport function invariant(\n condition: any,\n message?: string | number,\n): asserts condition {\n if (!condition) {\n throw new InvariantError(message);\n }\n}\n\nconst verbosityLevels = [\"log\", \"warn\", \"error\", \"silent\"] as const;\ntype VerbosityLevel = (typeof verbosityLevels)[number];\ntype ConsoleMethodName = Exclude;\nlet verbosityLevel = verbosityLevels.indexOf(\"log\");\n\nfunction wrapConsoleMethod(method: M) {\n return function () {\n if (verbosityLevels.indexOf(method) >= verbosityLevel) {\n return console[method].apply(console, arguments as any);\n }\n } as (typeof console)[M];\n}\n\nexport namespace invariant {\n export const log = wrapConsoleMethod(\"log\");\n export const warn = wrapConsoleMethod(\"warn\");\n export const error = wrapConsoleMethod(\"error\");\n}\n\nexport function setVerbosity(level: VerbosityLevel): VerbosityLevel {\n const old = verbosityLevels[verbosityLevel];\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n return old;\n}\n\n// Code that uses ts-invariant with rollup-plugin-invariant may want to\n// import this process stub to avoid errors evaluating process.env.NODE_ENV.\n// However, because most ESM-to-CJS compilers will rewrite the process import\n// as tsInvariant.process, which prevents proper replacement by minifiers, we\n// also export processStub, so you can import { invariant, processStub } from\n// \"ts-invariant\" and assign processStub to a local variable named process.\nexport const processStub: {\n env: Record;\n [key: string]: any;\n} = (\n typeof process === \"object\" &&\n typeof process.env === \"object\"\n) ? process : { env: {} };\n\nexport { processStub as process };\n\nexport default invariant;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","export { empty } from \"./empty.js\";\nexport { from } from \"./from.js\";\nexport { split } from \"./split.js\";\nexport { concat } from \"./concat.js\";\nexport { execute } from \"./execute.js\";\nexport { ApolloLink } from \"./ApolloLink.js\";\nexport * from \"./types.js\";\n//# sourceMappingURL=index.js.map","export { empty } from './empty';\nexport { from } from './from';\nexport { split } from './split';\nexport { concat } from './concat';\nexport { execute } from './execute';\nexport { ApolloLink } from './ApolloLink';\n\nexport * from './types';\n","import { ApolloLink } from \"./ApolloLink.js\";\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from './ApolloLink';\n\nexport const empty = ApolloLink.empty;\n","import { __extends } from \"tslib\";\nimport { InvariantError, invariant } from 'ts-invariant';\nimport { Observable } from \"../../utilities/index.js\";\nimport { validateOperation, createOperation, transformOperation, } from \"../utils/index.js\";\nfunction passthrough(op, forward) {\n return (forward ? forward(op) : Observable.of());\n}\nfunction toLink(handler) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar LinkError = (function (_super) {\n __extends(LinkError, _super);\n function LinkError(message, link) {\n var _this = _super.call(this, message) || this;\n _this.link = link;\n return _this;\n }\n return LinkError;\n}(Error));\nvar ApolloLink = (function () {\n function ApolloLink(request) {\n if (request)\n this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () { return Observable.of(); });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0)\n return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) { return x.concat(y); });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(function (operation) {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n };\n ApolloLink.execute = function (link, operation) {\n return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n process.env.NODE_ENV === \"production\" || invariant.warn(new LinkError(\"You are calling concat on a terminating link, which will have no effect\", firstLink));\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return (firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of());\n });\n }\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(21) : new InvariantError('request is not implemented');\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\n throw error;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}());\nexport { ApolloLink };\n//# sourceMappingURL=ApolloLink.js.map","import { InvariantError, invariant } from 'ts-invariant';\n\nimport { Observable } from '../../utilities';\nimport {\n NextLink,\n Operation,\n RequestHandler,\n FetchResult,\n GraphQLRequest\n} from './types';\nimport {\n validateOperation,\n createOperation,\n transformOperation,\n} from '../utils';\n\nfunction passthrough(op: Operation, forward: NextLink) {\n return (forward ? forward(op) : Observable.of()) as Observable;\n}\n\nfunction toLink(handler: RequestHandler | ApolloLink) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\n\nfunction isTerminating(link: ApolloLink): boolean {\n return link.request.length <= 1;\n}\n\nclass LinkError extends Error {\n public link?: ApolloLink;\n constructor(message?: string, link?: ApolloLink) {\n super(message);\n this.link = link;\n }\n}\n\nexport class ApolloLink {\n public static empty(): ApolloLink {\n return new ApolloLink(() => Observable.of());\n }\n\n public static from(links: (ApolloLink | RequestHandler)[]): ApolloLink {\n if (links.length === 0) return ApolloLink.empty();\n return links.map(toLink).reduce((x, y) => x.concat(y)) as ApolloLink;\n }\n\n public static split(\n test: (op: Operation) => boolean,\n left: ApolloLink | RequestHandler,\n right?: ApolloLink | RequestHandler,\n ): ApolloLink {\n const leftLink = toLink(left);\n const rightLink = toLink(right || new ApolloLink(passthrough));\n\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(operation => {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n } else {\n return new ApolloLink((operation, forward) => {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n }\n\n public static execute(\n link: ApolloLink,\n operation: GraphQLRequest,\n ): Observable {\n return (\n link.request(\n createOperation(\n operation.context,\n transformOperation(validateOperation(operation)),\n ),\n ) || Observable.of()\n );\n }\n\n public static concat(\n first: ApolloLink | RequestHandler,\n second: ApolloLink | RequestHandler,\n ) {\n const firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n invariant.warn(\n new LinkError(\n `You are calling concat on a terminating link, which will have no effect`,\n firstLink,\n ),\n );\n return firstLink;\n }\n const nextLink = toLink(second);\n\n if (isTerminating(nextLink)) {\n return new ApolloLink(\n operation =>\n firstLink.request(\n operation,\n op => nextLink.request(op) || Observable.of(),\n ) || Observable.of(),\n );\n } else {\n return new ApolloLink((operation, forward) => {\n return (\n firstLink.request(operation, op => {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of()\n );\n });\n }\n }\n\n constructor(request?: RequestHandler) {\n if (request) this.request = request;\n }\n\n public split(\n test: (op: Operation) => boolean,\n left: ApolloLink | RequestHandler,\n right?: ApolloLink | RequestHandler,\n ): ApolloLink {\n return this.concat(\n ApolloLink.split(test, left, right || new ApolloLink(passthrough))\n );\n }\n\n public concat(next: ApolloLink | RequestHandler): ApolloLink {\n return ApolloLink.concat(this, next);\n }\n\n public request(\n operation: Operation,\n forward?: NextLink,\n ): Observable | null {\n throw new InvariantError('request is not implemented');\n }\n\n protected onError(\n error: any,\n observer?: ZenObservable.Observer,\n ): false | void {\n if (observer && observer.error) {\n observer.error(error);\n // Returning false indicates that observer.error does not need to be\n // called again, since it was already called (on the previous line).\n // Calling observer.error again would not cause any real problems,\n // since only the first call matters, but custom onError functions\n // might have other reasons for wanting to prevent the default\n // behavior by returning false.\n return false;\n }\n // Throw errors will be passed to observer.error.\n throw error;\n }\n\n public setOnError(fn: ApolloLink[\"onError\"]): this {\n this.onError = fn;\n return this;\n }\n}\n","export { shouldInclude, hasDirectives, hasClientExports, getDirectiveNames, getInclusionDirectives, } from \"./graphql/directives.js\";\nexport { createFragmentMap, getFragmentQueryDocument, getFragmentFromSelection, } from \"./graphql/fragments.js\";\nexport { checkDocument, getOperationDefinition, getOperationName, getFragmentDefinitions, getQueryDefinition, getFragmentDefinition, getMainDefinition, getDefaultValues, } from \"./graphql/getFromAST.js\";\nexport { makeReference, isReference, isField, isInlineFragment, valueToObjectRepresentation, storeKeyNameFromField, argumentsObjectFromField, resultKeyNameFromField, getStoreKeyName, getTypenameFromResult, } from \"./graphql/storeUtils.js\";\nexport { addTypenameToDocument, buildQueryFromSelectionSet, removeDirectivesFromDocument, removeConnectionDirectiveFromDocument, removeArgumentsFromDocument, removeFragmentSpreadFromDocument, removeClientSetsFromDocument, } from \"./graphql/transform.js\";\nexport { concatPagination, offsetLimitPagination, relayStylePagination, } from \"./policies/pagination.js\";\nexport { Observable } from \"./observables/Observable.js\";\nexport * from \"./common/mergeDeep.js\";\nexport * from \"./common/cloneDeep.js\";\nexport * from \"./common/maybeDeepFreeze.js\";\nexport * from \"./observables/iteration.js\";\nexport * from \"./observables/asyncMap.js\";\nexport * from \"./observables/Concast.js\";\nexport * from \"./observables/subclassing.js\";\nexport * from \"./common/arrays.js\";\nexport * from \"./common/errorHandling.js\";\nexport * from \"./common/canUse.js\";\nexport * from \"./common/compact.js\";\n//# sourceMappingURL=index.js.map","export {\n DirectiveInfo,\n InclusionDirectives,\n shouldInclude,\n hasDirectives,\n hasClientExports,\n getDirectiveNames,\n getInclusionDirectives,\n} from './graphql/directives';\n\nexport {\n FragmentMap,\n createFragmentMap,\n getFragmentQueryDocument,\n getFragmentFromSelection,\n} from './graphql/fragments';\n\nexport {\n checkDocument,\n getOperationDefinition,\n getOperationName,\n getFragmentDefinitions,\n getQueryDefinition,\n getFragmentDefinition,\n getMainDefinition,\n getDefaultValues,\n} from './graphql/getFromAST';\n\nexport {\n StoreObject,\n Reference,\n StoreValue,\n Directives,\n VariableValue,\n makeReference,\n isReference,\n isField,\n isInlineFragment,\n valueToObjectRepresentation,\n storeKeyNameFromField,\n argumentsObjectFromField,\n resultKeyNameFromField,\n getStoreKeyName,\n getTypenameFromResult,\n} from './graphql/storeUtils';\n\nexport {\n RemoveNodeConfig,\n GetNodeConfig,\n RemoveDirectiveConfig,\n GetDirectiveConfig,\n RemoveArgumentsConfig,\n GetFragmentSpreadConfig,\n RemoveFragmentSpreadConfig,\n RemoveFragmentDefinitionConfig,\n RemoveVariableDefinitionConfig,\n addTypenameToDocument,\n buildQueryFromSelectionSet,\n removeDirectivesFromDocument,\n removeConnectionDirectiveFromDocument,\n removeArgumentsFromDocument,\n removeFragmentSpreadFromDocument,\n removeClientSetsFromDocument,\n} from './graphql/transform';\n\nexport {\n concatPagination,\n offsetLimitPagination,\n relayStylePagination,\n} from './policies/pagination';\n\nexport {\n Observable,\n Observer,\n ObservableSubscription\n} from './observables/Observable';\n\nexport * from './common/mergeDeep';\nexport * from './common/cloneDeep';\nexport * from './common/maybeDeepFreeze';\nexport * from './observables/iteration';\nexport * from './observables/asyncMap';\nexport * from './observables/Concast';\nexport * from './observables/subclassing';\nexport * from './common/arrays';\nexport * from './common/errorHandling';\nexport * from './common/canUse';\nexport * from './common/compact';\n","import { visit, } from 'graphql';\nimport { invariant } from 'ts-invariant';\nexport function shouldInclude(_a, variables) {\n var directives = _a.directives;\n if (!directives || !directives.length) {\n return true;\n }\n return getInclusionDirectives(directives).every(function (_a) {\n var directive = _a.directive, ifArgument = _a.ifArgument;\n var evaledValue = false;\n if (ifArgument.value.kind === 'Variable') {\n evaledValue = variables && variables[ifArgument.value.name.value];\n process.env.NODE_ENV === \"production\" ? invariant(evaledValue !== void 0, 38) : invariant(evaledValue !== void 0, \"Invalid variable referenced in @\" + directive.name.value + \" directive.\");\n }\n else {\n evaledValue = ifArgument.value.value;\n }\n return directive.name.value === 'skip' ? !evaledValue : evaledValue;\n });\n}\nexport function getDirectiveNames(root) {\n var names = [];\n visit(root, {\n Directive: function (node) {\n names.push(node.name.value);\n },\n });\n return names;\n}\nexport function hasDirectives(names, root) {\n return getDirectiveNames(root).some(function (name) { return names.indexOf(name) > -1; });\n}\nexport function hasClientExports(document) {\n return (document &&\n hasDirectives(['client'], document) &&\n hasDirectives(['export'], document));\n}\nfunction isInclusionDirective(_a) {\n var value = _a.name.value;\n return value === 'skip' || value === 'include';\n}\nexport function getInclusionDirectives(directives) {\n var result = [];\n if (directives && directives.length) {\n directives.forEach(function (directive) {\n if (!isInclusionDirective(directive))\n return;\n var directiveArguments = directive.arguments;\n var directiveName = directive.name.value;\n process.env.NODE_ENV === \"production\" ? invariant(directiveArguments && directiveArguments.length === 1, 39) : invariant(directiveArguments && directiveArguments.length === 1, \"Incorrect number of arguments for the @\" + directiveName + \" directive.\");\n var ifArgument = directiveArguments[0];\n process.env.NODE_ENV === \"production\" ? invariant(ifArgument.name && ifArgument.name.value === 'if', 40) : invariant(ifArgument.name && ifArgument.name.value === 'if', \"Invalid argument for the @\" + directiveName + \" directive.\");\n var ifValue = ifArgument.value;\n process.env.NODE_ENV === \"production\" ? invariant(ifValue &&\n (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue'), 41) : invariant(ifValue &&\n (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue'), \"Argument for the @\" + directiveName + \" directive must be a variable or a boolean value.\");\n result.push({ directive: directive, ifArgument: ifArgument });\n });\n }\n return result;\n}\n//# sourceMappingURL=directives.js.map","// Provides the methods that allow QueryManager to handle the `skip` and\n// `include` directives within GraphQL.\nimport {\n SelectionNode,\n VariableNode,\n BooleanValueNode,\n DirectiveNode,\n DocumentNode,\n ArgumentNode,\n ValueNode,\n ASTNode,\n visit,\n} from 'graphql';\n\nimport { invariant } from 'ts-invariant';\n\nexport type DirectiveInfo = {\n [fieldName: string]: { [argName: string]: any };\n};\n\nexport function shouldInclude(\n { directives }: SelectionNode,\n variables?: Record,\n): boolean {\n if (!directives || !directives.length) {\n return true;\n }\n return getInclusionDirectives(\n directives\n ).every(({ directive, ifArgument }) => {\n let evaledValue: boolean = false;\n if (ifArgument.value.kind === 'Variable') {\n evaledValue = variables && variables[(ifArgument.value as VariableNode).name.value];\n invariant(\n evaledValue !== void 0,\n `Invalid variable referenced in @${directive.name.value} directive.`,\n );\n } else {\n evaledValue = (ifArgument.value as BooleanValueNode).value;\n }\n return directive.name.value === 'skip' ? !evaledValue : evaledValue;\n });\n}\n\nexport function getDirectiveNames(root: ASTNode) {\n const names: string[] = [];\n\n visit(root, {\n Directive(node: DirectiveNode) {\n names.push(node.name.value);\n },\n });\n\n return names;\n}\n\nexport function hasDirectives(names: string[], root: ASTNode) {\n return getDirectiveNames(root).some(\n (name: string) => names.indexOf(name) > -1,\n );\n}\n\nexport function hasClientExports(document: DocumentNode) {\n return (\n document &&\n hasDirectives(['client'], document) &&\n hasDirectives(['export'], document)\n );\n}\n\nexport type InclusionDirectives = Array<{\n directive: DirectiveNode;\n ifArgument: ArgumentNode;\n}>;\n\nfunction isInclusionDirective({ name: { value } }: DirectiveNode): boolean {\n return value === 'skip' || value === 'include';\n}\n\nexport function getInclusionDirectives(\n directives: ReadonlyArray,\n): InclusionDirectives {\n const result: InclusionDirectives = [];\n\n if (directives && directives.length) {\n directives.forEach(directive => {\n if (!isInclusionDirective(directive)) return;\n\n const directiveArguments = directive.arguments;\n const directiveName = directive.name.value;\n\n invariant(\n directiveArguments && directiveArguments.length === 1,\n `Incorrect number of arguments for the @${directiveName} directive.`,\n );\n\n const ifArgument = directiveArguments![0];\n invariant(\n ifArgument.name && ifArgument.name.value === 'if',\n `Invalid argument for the @${directiveName} directive.`,\n );\n\n const ifValue: ValueNode = ifArgument.value;\n\n // means it has to be a variable value if this is a valid @skip or @include directive\n invariant(\n ifValue &&\n (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue'),\n `Argument for the @${directiveName} directive must be a variable or a boolean value.`,\n );\n\n result.push({ directive, ifArgument });\n });\n }\n\n return result;\n}\n\n","/**\n * GraphQL.js provides a reference implementation for the GraphQL specification\n * but is also a useful utility for operating on GraphQL files and building\n * sophisticated tools.\n *\n * This primary module exports a general purpose function for fulfilling all\n * steps of the GraphQL specification in a single operation, but also includes\n * utilities for every part of the GraphQL specification:\n *\n * - Parsing the GraphQL language.\n * - Building a GraphQL type schema.\n * - Validating a GraphQL request against a type schema.\n * - Executing a GraphQL request against a type schema.\n *\n * This also includes utility functions for operating on GraphQL types and\n * GraphQL documents to facilitate building tools.\n *\n * You may also import from each sub-directory directly. For example, the\n * following two import statements are equivalent:\n *\n * import { parse } from 'graphql';\n * import { parse } from 'graphql/language';\n */\n// The GraphQL.js version info.\nexport { version, versionInfo } from \"./version.mjs\"; // The primary entry point into fulfilling a GraphQL request.\n\nexport { graphql, graphqlSync } from \"./graphql.mjs\"; // Create and operate on GraphQL type definitions and schema.\n\nexport { // Definitions\nGraphQLSchema, GraphQLDirective, GraphQLScalarType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLInputObjectType, GraphQLList, GraphQLNonNull // Standard GraphQL Scalars\n, specifiedScalarTypes, GraphQLInt, GraphQLFloat, GraphQLString, GraphQLBoolean, GraphQLID // Built-in Directives defined by the Spec\n, specifiedDirectives, GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective, GraphQLSpecifiedByDirective // \"Enum\" of Type Kinds\n, TypeKind // Constant Deprecation Reason\n, DEFAULT_DEPRECATION_REASON // GraphQL Types for introspection.\n, introspectionTypes, __Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, __TypeKind // Meta-field definitions.\n, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef // Predicates\n, isSchema, isDirective, isType, isScalarType, isObjectType, isInterfaceType, isUnionType, isEnumType, isInputObjectType, isListType, isNonNullType, isInputType, isOutputType, isLeafType, isCompositeType, isAbstractType, isWrappingType, isNullableType, isNamedType, isRequiredArgument, isRequiredInputField, isSpecifiedScalarType, isIntrospectionType, isSpecifiedDirective // Assertions\n, assertSchema, assertDirective, assertType, assertScalarType, assertObjectType, assertInterfaceType, assertUnionType, assertEnumType, assertInputObjectType, assertListType, assertNonNullType, assertInputType, assertOutputType, assertLeafType, assertCompositeType, assertAbstractType, assertWrappingType, assertNullableType, assertNamedType // Un-modifiers\n, getNullableType, getNamedType // Validate GraphQL schema.\n, validateSchema, assertValidSchema } from \"./type/index.mjs\";\n// Parse and operate on GraphQL language source files.\nexport { Token, Source, Location, getLocation // Print source location\n, printLocation, printSourceLocation // Lex\n, Lexer, TokenKind // Parse\n, parse, parseValue, parseType // Print\n, print // Visit\n, visit, visitInParallel, getVisitFn, BREAK, Kind, DirectiveLocation // Predicates\n, isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode } from \"./language/index.mjs\";\n// Execute GraphQL queries.\nexport { execute, executeSync, defaultFieldResolver, defaultTypeResolver, responsePathAsArray, getDirectiveValues } from \"./execution/index.mjs\";\nexport { subscribe, createSourceEventStream } from \"./subscription/index.mjs\";\n// Validate GraphQL documents.\nexport { validate, ValidationContext // All validation rules in the GraphQL Specification.\n, specifiedRules // Individual validation rules.\n, ExecutableDefinitionsRule, FieldsOnCorrectTypeRule, FragmentsOnCompositeTypesRule, KnownArgumentNamesRule, KnownDirectivesRule, KnownFragmentNamesRule, KnownTypeNamesRule, LoneAnonymousOperationRule, NoFragmentCyclesRule, NoUndefinedVariablesRule, NoUnusedFragmentsRule, NoUnusedVariablesRule, OverlappingFieldsCanBeMergedRule, PossibleFragmentSpreadsRule, ProvidedRequiredArgumentsRule, ScalarLeafsRule, SingleFieldSubscriptionsRule, UniqueArgumentNamesRule, UniqueDirectivesPerLocationRule, UniqueFragmentNamesRule, UniqueInputFieldNamesRule, UniqueOperationNamesRule, UniqueVariableNamesRule, ValuesOfCorrectTypeRule, VariablesAreInputTypesRule, VariablesInAllowedPositionRule // SDL-specific validation rules\n, LoneSchemaDefinitionRule, UniqueOperationTypesRule, UniqueTypeNamesRule, UniqueEnumValueNamesRule, UniqueFieldDefinitionNamesRule, UniqueDirectiveNamesRule, PossibleTypeExtensionsRule // Custom validation rules\n, NoDeprecatedCustomRule, NoSchemaIntrospectionCustomRule } from \"./validation/index.mjs\";\n// Create, format, and print GraphQL errors.\nexport { GraphQLError, syntaxError, locatedError, printError, formatError } from \"./error/index.mjs\";\n// Utilities for operating on GraphQL type schema and parsed sources.\nexport { // Produce the GraphQL query recommended for a full schema introspection.\n// Accepts optional IntrospectionOptions.\ngetIntrospectionQuery // Gets the target Operation from a Document.\n, getOperationAST // Gets the Type for the target Operation AST.\n, getOperationRootType // Convert a GraphQLSchema to an IntrospectionQuery.\n, introspectionFromSchema // Build a GraphQLSchema from an introspection result.\n, buildClientSchema // Build a GraphQLSchema from a parsed GraphQL Schema language AST.\n, buildASTSchema // Build a GraphQLSchema from a GraphQL schema language document.\n, buildSchema // @deprecated: Get the description from a schema AST node and supports legacy\n// syntax for specifying descriptions - will be removed in v16.\n, getDescription // Extends an existing GraphQLSchema from a parsed GraphQL Schema\n// language AST.\n, extendSchema // Sort a GraphQLSchema.\n, lexicographicSortSchema // Print a GraphQLSchema to GraphQL Schema language.\n, printSchema // Print a GraphQLType to GraphQL Schema language.\n, printType // Prints the built-in introspection schema in the Schema Language\n// format.\n, printIntrospectionSchema // Create a GraphQLType from a GraphQL language AST.\n, typeFromAST // Create a JavaScript value from a GraphQL language AST with a Type.\n, valueFromAST // Create a JavaScript value from a GraphQL language AST without a Type.\n, valueFromASTUntyped // Create a GraphQL language AST from a JavaScript value.\n, astFromValue // A helper to use within recursive-descent visitors which need to be aware of\n// the GraphQL type system.\n, TypeInfo, visitWithTypeInfo // Coerces a JavaScript value to a GraphQL type, or produces errors.\n, coerceInputValue // Concatenates multiple AST together.\n, concatAST // Separates an AST into an AST per Operation.\n, separateOperations // Strips characters that are not significant to the validity or execution\n// of a GraphQL document.\n, stripIgnoredCharacters // Comparators for types\n, isEqualType, isTypeSubTypeOf, doTypesOverlap // Asserts a string is a valid GraphQL name.\n, assertValidName // Determine if a string is a valid GraphQL name.\n, isValidNameError // Compares two GraphQLSchemas and detects breaking changes.\n, BreakingChangeType, DangerousChangeType, findBreakingChanges, findDangerousChanges // @deprecated: Report all deprecated usage within a GraphQL document.\n, findDeprecatedUsages } from \"./utilities/index.mjs\";\n","export { Source } from \"./source.mjs\";\nexport { getLocation } from \"./location.mjs\";\nexport { printLocation, printSourceLocation } from \"./printLocation.mjs\";\nexport { Kind } from \"./kinds.mjs\";\nexport { TokenKind } from \"./tokenKind.mjs\";\nexport { Lexer } from \"./lexer.mjs\";\nexport { parse, parseValue, parseType } from \"./parser.mjs\";\nexport { print } from \"./printer.mjs\";\nexport { visit, visitInParallel, getVisitFn, BREAK } from \"./visitor.mjs\";\nexport { Location, Token } from \"./ast.mjs\";\nexport { isDefinitionNode, isExecutableDefinitionNode, isSelectionNode, isValueNode, isTypeNode, isTypeSystemDefinitionNode, isTypeDefinitionNode, isTypeSystemExtensionNode, isTypeExtensionNode } from \"./predicates.mjs\";\nexport { DirectiveLocation } from \"./directiveLocation.mjs\";\n","function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport inspect from \"../jsutils/inspect.mjs\";\nimport devAssert from \"../jsutils/devAssert.mjs\";\nimport instanceOf from \"../jsutils/instanceOf.mjs\";\n\n/**\n * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are\n * optional, but they are useful for clients who store GraphQL documents in source files.\n * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might\n * be useful for `name` to be `\"Foo.graphql\"` and location to be `{ line: 40, column: 1 }`.\n * The `line` and `column` properties in `locationOffset` are 1-indexed.\n */\nexport var Source = /*#__PURE__*/function () {\n function Source(body) {\n var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GraphQL request';\n var locationOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n line: 1,\n column: 1\n };\n typeof body === 'string' || devAssert(0, \"Body must be a string. Received: \".concat(inspect(body), \".\"));\n this.body = body;\n this.name = name;\n this.locationOffset = locationOffset;\n this.locationOffset.line > 0 || devAssert(0, 'line in locationOffset is 1-indexed and must be positive.');\n this.locationOffset.column > 0 || devAssert(0, 'column in locationOffset is 1-indexed and must be positive.');\n } // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n\n\n _createClass(Source, [{\n key: SYMBOL_TO_STRING_TAG,\n get: function get() {\n return 'Source';\n }\n }]);\n\n return Source;\n}();\n/**\n * Test if the given value is a Source object.\n *\n * @internal\n */\n\n// eslint-disable-next-line no-redeclare\nexport function isSource(source) {\n return instanceOf(source, Source);\n}\n","// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nexport var SYMBOL_ITERATOR = typeof Symbol === 'function' && Symbol.iterator != null ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_ASYNC_ITERATOR = typeof Symbol === 'function' && Symbol.asyncIterator != null ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_TO_STRING_TAG = typeof Symbol === 'function' && Symbol.toStringTag != null ? Symbol.toStringTag : '@@toStringTag';\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-disable flowtype/no-weak-types */\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\nvar MAX_ARRAY_LENGTH = 10;\nvar MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport default function inspect(value) {\n return formatValue(value, []);\n}\n\nfunction formatValue(value, seenValues) {\n switch (_typeof(value)) {\n case 'string':\n return JSON.stringify(value);\n\n case 'function':\n return value.name ? \"[function \".concat(value.name, \"]\") : '[function]';\n\n case 'object':\n if (value === null) {\n return 'null';\n }\n\n return formatObjectValue(value, seenValues);\n\n default:\n return String(value);\n }\n}\n\nfunction formatObjectValue(value, previouslySeenValues) {\n if (previouslySeenValues.indexOf(value) !== -1) {\n return '[Circular]';\n }\n\n var seenValues = [].concat(previouslySeenValues, [value]);\n var customInspectFn = getCustomFn(value);\n\n if (customInspectFn !== undefined) {\n var customValue = customInspectFn.call(value); // check for infinite recursion\n\n if (customValue !== value) {\n return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);\n }\n } else if (Array.isArray(value)) {\n return formatArray(value, seenValues);\n }\n\n return formatObject(value, seenValues);\n}\n\nfunction formatObject(object, seenValues) {\n var keys = Object.keys(object);\n\n if (keys.length === 0) {\n return '{}';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[' + getObjectTag(object) + ']';\n }\n\n var properties = keys.map(function (key) {\n var value = formatValue(object[key], seenValues);\n return key + ': ' + value;\n });\n return '{ ' + properties.join(', ') + ' }';\n}\n\nfunction formatArray(array, seenValues) {\n if (array.length === 0) {\n return '[]';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[Array]';\n }\n\n var len = Math.min(MAX_ARRAY_LENGTH, array.length);\n var remaining = array.length - len;\n var items = [];\n\n for (var i = 0; i < len; ++i) {\n items.push(formatValue(array[i], seenValues));\n }\n\n if (remaining === 1) {\n items.push('... 1 more item');\n } else if (remaining > 1) {\n items.push(\"... \".concat(remaining, \" more items\"));\n }\n\n return '[' + items.join(', ') + ']';\n}\n\nfunction getCustomFn(object) {\n var customInspectFn = object[String(nodejsCustomInspectSymbol)];\n\n if (typeof customInspectFn === 'function') {\n return customInspectFn;\n }\n\n if (typeof object.inspect === 'function') {\n return object.inspect;\n }\n}\n\nfunction getObjectTag(object) {\n var tag = Object.prototype.toString.call(object).replace(/^\\[object /, '').replace(/]$/, '');\n\n if (tag === 'Object' && typeof object.constructor === 'function') {\n var name = object.constructor.name;\n\n if (typeof name === 'string' && name !== '') {\n return name;\n }\n }\n\n return tag;\n}\n","// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined;\nexport default nodejsCustomInspectSymbol;\n","export default function devAssert(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n if (!booleanCondition) {\n throw new Error(message);\n }\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport inspect from \"./inspect.mjs\";\n/**\n * A replacement for instanceof which includes an error warning when multi-realm\n * constructors are detected.\n */\n\n// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production\n// See: https://webpack.js.org/guides/production/\nexport default process.env.NODE_ENV === 'production' ? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n// eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n return value instanceof constructor;\n} : // eslint-disable-next-line no-shadow\nfunction instanceOf(value, constructor) {\n if (value instanceof constructor) {\n return true;\n }\n\n if (_typeof(value) === 'object' && value !== null) {\n var _value$constructor;\n\n var className = constructor.prototype[Symbol.toStringTag];\n var valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.\n Symbol.toStringTag in value ? value[Symbol.toStringTag] : (_value$constructor = value.constructor) === null || _value$constructor === void 0 ? void 0 : _value$constructor.name;\n\n if (className === valueClassName) {\n var stringifiedValue = inspect(value);\n throw new Error(\"Cannot use \".concat(className, \" \\\"\").concat(stringifiedValue, \"\\\" from another module or realm.\\n\\nEnsure that there is only one instance of \\\"graphql\\\" in the node_modules\\ndirectory. If different versions of \\\"graphql\\\" are the dependencies of other\\nrelied on modules, use \\\"resolutions\\\" to ensure only one version is installed.\\n\\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\\n\\nDuplicate \\\"graphql\\\" modules cannot be used at the same time since different\\nversions may have different capabilities and behavior. The data from one\\nversion used in the function from another could produce confusing and\\nspurious results.\"));\n }\n }\n\n return false;\n};\n","/**\n * Represents a location in a Source.\n */\n\n/**\n * Takes a Source and a UTF-8 character offset, and returns the corresponding\n * line and column as a SourceLocation.\n */\nexport function getLocation(source, position) {\n var lineRegexp = /\\r\\n|[\\n\\r]/g;\n var line = 1;\n var column = position + 1;\n var match;\n\n while ((match = lineRegexp.exec(source.body)) && match.index < position) {\n line += 1;\n column = position + 1 - (match.index + match[0].length);\n }\n\n return {\n line: line,\n column: column\n };\n}\n","import { getLocation } from \"./location.mjs\";\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printLocation(location) {\n return printSourceLocation(location.source, getLocation(location.source, location.start));\n}\n/**\n * Render a helpful description of the location in the GraphQL Source document.\n */\n\nexport function printSourceLocation(source, sourceLocation) {\n var firstLineColumnOffset = source.locationOffset.column - 1;\n var body = whitespace(firstLineColumnOffset) + source.body;\n var lineIndex = sourceLocation.line - 1;\n var lineOffset = source.locationOffset.line - 1;\n var lineNum = sourceLocation.line + lineOffset;\n var columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0;\n var columnNum = sourceLocation.column + columnOffset;\n var locationStr = \"\".concat(source.name, \":\").concat(lineNum, \":\").concat(columnNum, \"\\n\");\n var lines = body.split(/\\r\\n|[\\n\\r]/g);\n var locationLine = lines[lineIndex]; // Special case for minified documents\n\n if (locationLine.length > 120) {\n var subLineIndex = Math.floor(columnNum / 80);\n var subLineColumnNum = columnNum % 80;\n var subLines = [];\n\n for (var i = 0; i < locationLine.length; i += 80) {\n subLines.push(locationLine.slice(i, i + 80));\n }\n\n return locationStr + printPrefixedLines([[\"\".concat(lineNum), subLines[0]]].concat(subLines.slice(1, subLineIndex + 1).map(function (subLine) {\n return ['', subLine];\n }), [[' ', whitespace(subLineColumnNum - 1) + '^'], ['', subLines[subLineIndex + 1]]]));\n }\n\n return locationStr + printPrefixedLines([// Lines specified like this: [\"prefix\", \"string\"],\n [\"\".concat(lineNum - 1), lines[lineIndex - 1]], [\"\".concat(lineNum), locationLine], ['', whitespace(columnNum - 1) + '^'], [\"\".concat(lineNum + 1), lines[lineIndex + 1]]]);\n}\n\nfunction printPrefixedLines(lines) {\n var existingLines = lines.filter(function (_ref) {\n var _ = _ref[0],\n line = _ref[1];\n return line !== undefined;\n });\n var padLen = Math.max.apply(Math, existingLines.map(function (_ref2) {\n var prefix = _ref2[0];\n return prefix.length;\n }));\n return existingLines.map(function (_ref3) {\n var prefix = _ref3[0],\n line = _ref3[1];\n return leftPad(padLen, prefix) + (line ? ' | ' + line : ' |');\n }).join('\\n');\n}\n\nfunction whitespace(len) {\n return Array(len + 1).join(' ');\n}\n\nfunction leftPad(len, str) {\n return whitespace(len - str.length) + str;\n}\n","/**\n * The set of allowed kind values for AST nodes.\n */\nexport var Kind = Object.freeze({\n // Name\n NAME: 'Name',\n // Document\n DOCUMENT: 'Document',\n OPERATION_DEFINITION: 'OperationDefinition',\n VARIABLE_DEFINITION: 'VariableDefinition',\n SELECTION_SET: 'SelectionSet',\n FIELD: 'Field',\n ARGUMENT: 'Argument',\n // Fragments\n FRAGMENT_SPREAD: 'FragmentSpread',\n INLINE_FRAGMENT: 'InlineFragment',\n FRAGMENT_DEFINITION: 'FragmentDefinition',\n // Values\n VARIABLE: 'Variable',\n INT: 'IntValue',\n FLOAT: 'FloatValue',\n STRING: 'StringValue',\n BOOLEAN: 'BooleanValue',\n NULL: 'NullValue',\n ENUM: 'EnumValue',\n LIST: 'ListValue',\n OBJECT: 'ObjectValue',\n OBJECT_FIELD: 'ObjectField',\n // Directives\n DIRECTIVE: 'Directive',\n // Types\n NAMED_TYPE: 'NamedType',\n LIST_TYPE: 'ListType',\n NON_NULL_TYPE: 'NonNullType',\n // Type System Definitions\n SCHEMA_DEFINITION: 'SchemaDefinition',\n OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition',\n // Type Definitions\n SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition',\n OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition',\n FIELD_DEFINITION: 'FieldDefinition',\n INPUT_VALUE_DEFINITION: 'InputValueDefinition',\n INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition',\n UNION_TYPE_DEFINITION: 'UnionTypeDefinition',\n ENUM_TYPE_DEFINITION: 'EnumTypeDefinition',\n ENUM_VALUE_DEFINITION: 'EnumValueDefinition',\n INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition',\n // Directive Definitions\n DIRECTIVE_DEFINITION: 'DirectiveDefinition',\n // Type System Extensions\n SCHEMA_EXTENSION: 'SchemaExtension',\n // Type Extensions\n SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension',\n OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension',\n INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension',\n UNION_TYPE_EXTENSION: 'UnionTypeExtension',\n ENUM_TYPE_EXTENSION: 'EnumTypeExtension',\n INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension'\n});\n/**\n * The enum type representing the possible kind values of AST nodes.\n */\n","/**\n * An exported enum describing the different kinds of tokens that the\n * lexer emits.\n */\nexport var TokenKind = Object.freeze({\n SOF: '',\n EOF: '',\n BANG: '!',\n DOLLAR: '$',\n AMP: '&',\n PAREN_L: '(',\n PAREN_R: ')',\n SPREAD: '...',\n COLON: ':',\n EQUALS: '=',\n AT: '@',\n BRACKET_L: '[',\n BRACKET_R: ']',\n BRACE_L: '{',\n PIPE: '|',\n BRACE_R: '}',\n NAME: 'Name',\n INT: 'Int',\n FLOAT: 'Float',\n STRING: 'String',\n BLOCK_STRING: 'BlockString',\n COMMENT: 'Comment'\n});\n/**\n * The enum type representing the token kinds values.\n */\n","import { syntaxError } from \"../error/syntaxError.mjs\";\nimport { Token } from \"./ast.mjs\";\nimport { TokenKind } from \"./tokenKind.mjs\";\nimport { dedentBlockStringValue } from \"./blockString.mjs\";\n/**\n * Given a Source object, creates a Lexer for that source.\n * A Lexer is a stateful stream generator in that every time\n * it is advanced, it returns the next token in the Source. Assuming the\n * source lexes, the final Token emitted by the lexer will be of kind\n * EOF, after which the lexer will repeatedly return the same EOF token\n * whenever called.\n */\n\nexport var Lexer = /*#__PURE__*/function () {\n /**\n * The previously focused non-ignored token.\n */\n\n /**\n * The currently focused non-ignored token.\n */\n\n /**\n * The (1-indexed) line containing the current token.\n */\n\n /**\n * The character offset at which the current line begins.\n */\n function Lexer(source) {\n var startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0, null);\n this.source = source;\n this.lastToken = startOfFileToken;\n this.token = startOfFileToken;\n this.line = 1;\n this.lineStart = 0;\n }\n /**\n * Advances the token stream to the next non-ignored token.\n */\n\n\n var _proto = Lexer.prototype;\n\n _proto.advance = function advance() {\n this.lastToken = this.token;\n var token = this.token = this.lookahead();\n return token;\n }\n /**\n * Looks ahead and returns the next non-ignored token, but does not change\n * the state of Lexer.\n */\n ;\n\n _proto.lookahead = function lookahead() {\n var token = this.token;\n\n if (token.kind !== TokenKind.EOF) {\n do {\n var _token$next;\n\n // Note: next is only mutable during parsing, so we cast to allow this.\n token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);\n } while (token.kind === TokenKind.COMMENT);\n }\n\n return token;\n };\n\n return Lexer;\n}();\n/**\n * @internal\n */\n\nexport function isPunctuatorTokenKind(kind) {\n return kind === TokenKind.BANG || kind === TokenKind.DOLLAR || kind === TokenKind.AMP || kind === TokenKind.PAREN_L || kind === TokenKind.PAREN_R || kind === TokenKind.SPREAD || kind === TokenKind.COLON || kind === TokenKind.EQUALS || kind === TokenKind.AT || kind === TokenKind.BRACKET_L || kind === TokenKind.BRACKET_R || kind === TokenKind.BRACE_L || kind === TokenKind.PIPE || kind === TokenKind.BRACE_R;\n}\n\nfunction printCharCode(code) {\n return (// NaN/undefined represents access beyond the end of the file.\n isNaN(code) ? TokenKind.EOF : // Trust JSON for ASCII.\n code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form.\n \"\\\"\\\\u\".concat(('00' + code.toString(16).toUpperCase()).slice(-4), \"\\\"\")\n );\n}\n/**\n * Gets the next token from the source starting at the given position.\n *\n * This skips over whitespace until it finds the next lexable token, then lexes\n * punctuators immediately or calls the appropriate helper function for more\n * complicated tokens.\n */\n\n\nfunction readToken(lexer, prev) {\n var source = lexer.source;\n var body = source.body;\n var bodyLength = body.length;\n var pos = prev.end;\n\n while (pos < bodyLength) {\n var code = body.charCodeAt(pos);\n var _line = lexer.line;\n\n var _col = 1 + pos - lexer.lineStart; // SourceCharacter\n\n\n switch (code) {\n case 0xfeff: // \n\n case 9: // \\t\n\n case 32: // \n\n case 44:\n // ,\n ++pos;\n continue;\n\n case 10:\n // \\n\n ++pos;\n ++lexer.line;\n lexer.lineStart = pos;\n continue;\n\n case 13:\n // \\r\n if (body.charCodeAt(pos + 1) === 10) {\n pos += 2;\n } else {\n ++pos;\n }\n\n ++lexer.line;\n lexer.lineStart = pos;\n continue;\n\n case 33:\n // !\n return new Token(TokenKind.BANG, pos, pos + 1, _line, _col, prev);\n\n case 35:\n // #\n return readComment(source, pos, _line, _col, prev);\n\n case 36:\n // $\n return new Token(TokenKind.DOLLAR, pos, pos + 1, _line, _col, prev);\n\n case 38:\n // &\n return new Token(TokenKind.AMP, pos, pos + 1, _line, _col, prev);\n\n case 40:\n // (\n return new Token(TokenKind.PAREN_L, pos, pos + 1, _line, _col, prev);\n\n case 41:\n // )\n return new Token(TokenKind.PAREN_R, pos, pos + 1, _line, _col, prev);\n\n case 46:\n // .\n if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {\n return new Token(TokenKind.SPREAD, pos, pos + 3, _line, _col, prev);\n }\n\n break;\n\n case 58:\n // :\n return new Token(TokenKind.COLON, pos, pos + 1, _line, _col, prev);\n\n case 61:\n // =\n return new Token(TokenKind.EQUALS, pos, pos + 1, _line, _col, prev);\n\n case 64:\n // @\n return new Token(TokenKind.AT, pos, pos + 1, _line, _col, prev);\n\n case 91:\n // [\n return new Token(TokenKind.BRACKET_L, pos, pos + 1, _line, _col, prev);\n\n case 93:\n // ]\n return new Token(TokenKind.BRACKET_R, pos, pos + 1, _line, _col, prev);\n\n case 123:\n // {\n return new Token(TokenKind.BRACE_L, pos, pos + 1, _line, _col, prev);\n\n case 124:\n // |\n return new Token(TokenKind.PIPE, pos, pos + 1, _line, _col, prev);\n\n case 125:\n // }\n return new Token(TokenKind.BRACE_R, pos, pos + 1, _line, _col, prev);\n\n case 34:\n // \"\n if (body.charCodeAt(pos + 1) === 34 && body.charCodeAt(pos + 2) === 34) {\n return readBlockString(source, pos, _line, _col, prev, lexer);\n }\n\n return readString(source, pos, _line, _col, prev);\n\n case 45: // -\n\n case 48: // 0\n\n case 49: // 1\n\n case 50: // 2\n\n case 51: // 3\n\n case 52: // 4\n\n case 53: // 5\n\n case 54: // 6\n\n case 55: // 7\n\n case 56: // 8\n\n case 57:\n // 9\n return readNumber(source, pos, code, _line, _col, prev);\n\n case 65: // A\n\n case 66: // B\n\n case 67: // C\n\n case 68: // D\n\n case 69: // E\n\n case 70: // F\n\n case 71: // G\n\n case 72: // H\n\n case 73: // I\n\n case 74: // J\n\n case 75: // K\n\n case 76: // L\n\n case 77: // M\n\n case 78: // N\n\n case 79: // O\n\n case 80: // P\n\n case 81: // Q\n\n case 82: // R\n\n case 83: // S\n\n case 84: // T\n\n case 85: // U\n\n case 86: // V\n\n case 87: // W\n\n case 88: // X\n\n case 89: // Y\n\n case 90: // Z\n\n case 95: // _\n\n case 97: // a\n\n case 98: // b\n\n case 99: // c\n\n case 100: // d\n\n case 101: // e\n\n case 102: // f\n\n case 103: // g\n\n case 104: // h\n\n case 105: // i\n\n case 106: // j\n\n case 107: // k\n\n case 108: // l\n\n case 109: // m\n\n case 110: // n\n\n case 111: // o\n\n case 112: // p\n\n case 113: // q\n\n case 114: // r\n\n case 115: // s\n\n case 116: // t\n\n case 117: // u\n\n case 118: // v\n\n case 119: // w\n\n case 120: // x\n\n case 121: // y\n\n case 122:\n // z\n return readName(source, pos, _line, _col, prev);\n }\n\n throw syntaxError(source, pos, unexpectedCharacterMessage(code));\n }\n\n var line = lexer.line;\n var col = 1 + pos - lexer.lineStart;\n return new Token(TokenKind.EOF, bodyLength, bodyLength, line, col, prev);\n}\n/**\n * Report a message that an unexpected character was encountered.\n */\n\n\nfunction unexpectedCharacterMessage(code) {\n if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) {\n return \"Cannot contain the invalid character \".concat(printCharCode(code), \".\");\n }\n\n if (code === 39) {\n // '\n return 'Unexpected single quote character (\\'), did you mean to use a double quote (\")?';\n }\n\n return \"Cannot parse the unexpected character \".concat(printCharCode(code), \".\");\n}\n/**\n * Reads a comment token from the source file.\n *\n * #[\\u0009\\u0020-\\uFFFF]*\n */\n\n\nfunction readComment(source, start, line, col, prev) {\n var body = source.body;\n var code;\n var position = start;\n\n do {\n code = body.charCodeAt(++position);\n } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator\n code > 0x001f || code === 0x0009));\n\n return new Token(TokenKind.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));\n}\n/**\n * Reads a number token from the source file, either a float\n * or an int depending on whether a decimal point appears.\n *\n * Int: -?(0|[1-9][0-9]*)\n * Float: -?(0|[1-9][0-9]*)(\\.[0-9]+)?((E|e)(+|-)?[0-9]+)?\n */\n\n\nfunction readNumber(source, start, firstCode, line, col, prev) {\n var body = source.body;\n var code = firstCode;\n var position = start;\n var isFloat = false;\n\n if (code === 45) {\n // -\n code = body.charCodeAt(++position);\n }\n\n if (code === 48) {\n // 0\n code = body.charCodeAt(++position);\n\n if (code >= 48 && code <= 57) {\n throw syntaxError(source, position, \"Invalid number, unexpected digit after 0: \".concat(printCharCode(code), \".\"));\n }\n } else {\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n }\n\n if (code === 46) {\n // .\n isFloat = true;\n code = body.charCodeAt(++position);\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n }\n\n if (code === 69 || code === 101) {\n // E e\n isFloat = true;\n code = body.charCodeAt(++position);\n\n if (code === 43 || code === 45) {\n // + -\n code = body.charCodeAt(++position);\n }\n\n position = readDigits(source, position, code);\n code = body.charCodeAt(position);\n } // Numbers cannot be followed by . or NameStart\n\n\n if (code === 46 || isNameStart(code)) {\n throw syntaxError(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n }\n\n return new Token(isFloat ? TokenKind.FLOAT : TokenKind.INT, start, position, line, col, prev, body.slice(start, position));\n}\n/**\n * Returns the new position in the source after reading digits.\n */\n\n\nfunction readDigits(source, start, firstCode) {\n var body = source.body;\n var position = start;\n var code = firstCode;\n\n if (code >= 48 && code <= 57) {\n // 0 - 9\n do {\n code = body.charCodeAt(++position);\n } while (code >= 48 && code <= 57); // 0 - 9\n\n\n return position;\n }\n\n throw syntaxError(source, position, \"Invalid number, expected digit but got: \".concat(printCharCode(code), \".\"));\n}\n/**\n * Reads a string token from the source file.\n *\n * \"([^\"\\\\\\u000A\\u000D]|(\\\\(u[0-9a-fA-F]{4}|[\"\\\\/bfnrt])))*\"\n */\n\n\nfunction readString(source, start, line, col, prev) {\n var body = source.body;\n var position = start + 1;\n var chunkStart = position;\n var code = 0;\n var value = '';\n\n while (position < body.length && !isNaN(code = body.charCodeAt(position)) && // not LineTerminator\n code !== 0x000a && code !== 0x000d) {\n // Closing Quote (\")\n if (code === 34) {\n value += body.slice(chunkStart, position);\n return new Token(TokenKind.STRING, start, position + 1, line, col, prev, value);\n } // SourceCharacter\n\n\n if (code < 0x0020 && code !== 0x0009) {\n throw syntaxError(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n }\n\n ++position;\n\n if (code === 92) {\n // \\\n value += body.slice(chunkStart, position - 1);\n code = body.charCodeAt(position);\n\n switch (code) {\n case 34:\n value += '\"';\n break;\n\n case 47:\n value += '/';\n break;\n\n case 92:\n value += '\\\\';\n break;\n\n case 98:\n value += '\\b';\n break;\n\n case 102:\n value += '\\f';\n break;\n\n case 110:\n value += '\\n';\n break;\n\n case 114:\n value += '\\r';\n break;\n\n case 116:\n value += '\\t';\n break;\n\n case 117:\n {\n // uXXXX\n var charCode = uniCharCode(body.charCodeAt(position + 1), body.charCodeAt(position + 2), body.charCodeAt(position + 3), body.charCodeAt(position + 4));\n\n if (charCode < 0) {\n var invalidSequence = body.slice(position + 1, position + 5);\n throw syntaxError(source, position, \"Invalid character escape sequence: \\\\u\".concat(invalidSequence, \".\"));\n }\n\n value += String.fromCharCode(charCode);\n position += 4;\n break;\n }\n\n default:\n throw syntaxError(source, position, \"Invalid character escape sequence: \\\\\".concat(String.fromCharCode(code), \".\"));\n }\n\n ++position;\n chunkStart = position;\n }\n }\n\n throw syntaxError(source, position, 'Unterminated string.');\n}\n/**\n * Reads a block string token from the source file.\n *\n * \"\"\"(\"?\"?(\\\\\"\"\"|\\\\(?!=\"\"\")|[^\"\\\\]))*\"\"\"\n */\n\n\nfunction readBlockString(source, start, line, col, prev, lexer) {\n var body = source.body;\n var position = start + 3;\n var chunkStart = position;\n var code = 0;\n var rawValue = '';\n\n while (position < body.length && !isNaN(code = body.charCodeAt(position))) {\n // Closing Triple-Quote (\"\"\")\n if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {\n rawValue += body.slice(chunkStart, position);\n return new Token(TokenKind.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));\n } // SourceCharacter\n\n\n if (code < 0x0020 && code !== 0x0009 && code !== 0x000a && code !== 0x000d) {\n throw syntaxError(source, position, \"Invalid character within String: \".concat(printCharCode(code), \".\"));\n }\n\n if (code === 10) {\n // new line\n ++position;\n ++lexer.line;\n lexer.lineStart = position;\n } else if (code === 13) {\n // carriage return\n if (body.charCodeAt(position + 1) === 10) {\n position += 2;\n } else {\n ++position;\n }\n\n ++lexer.line;\n lexer.lineStart = position;\n } else if ( // Escape Triple-Quote (\\\"\"\")\n code === 92 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34 && body.charCodeAt(position + 3) === 34) {\n rawValue += body.slice(chunkStart, position) + '\"\"\"';\n position += 4;\n chunkStart = position;\n } else {\n ++position;\n }\n }\n\n throw syntaxError(source, position, 'Unterminated string.');\n}\n/**\n * Converts four hexadecimal chars to the integer that the\n * string represents. For example, uniCharCode('0','0','0','f')\n * will return 15, and uniCharCode('0','0','f','f') returns 255.\n *\n * Returns a negative number on error, if a char was invalid.\n *\n * This is implemented by noting that char2hex() returns -1 on error,\n * which means the result of ORing the char2hex() will also be negative.\n */\n\n\nfunction uniCharCode(a, b, c, d) {\n return char2hex(a) << 12 | char2hex(b) << 8 | char2hex(c) << 4 | char2hex(d);\n}\n/**\n * Converts a hex character to its integer value.\n * '0' becomes 0, '9' becomes 9\n * 'A' becomes 10, 'F' becomes 15\n * 'a' becomes 10, 'f' becomes 15\n *\n * Returns -1 on error.\n */\n\n\nfunction char2hex(a) {\n return a >= 48 && a <= 57 ? a - 48 // 0-9\n : a >= 65 && a <= 70 ? a - 55 // A-F\n : a >= 97 && a <= 102 ? a - 87 // a-f\n : -1;\n}\n/**\n * Reads an alphanumeric + underscore name from the source.\n *\n * [_A-Za-z][_0-9A-Za-z]*\n */\n\n\nfunction readName(source, start, line, col, prev) {\n var body = source.body;\n var bodyLength = body.length;\n var position = start + 1;\n var code = 0;\n\n while (position !== bodyLength && !isNaN(code = body.charCodeAt(position)) && (code === 95 || // _\n code >= 48 && code <= 57 || // 0-9\n code >= 65 && code <= 90 || // A-Z\n code >= 97 && code <= 122) // a-z\n ) {\n ++position;\n }\n\n return new Token(TokenKind.NAME, start, position, line, col, prev, body.slice(start, position));\n} // _ A-Z a-z\n\n\nfunction isNameStart(code) {\n return code === 95 || code >= 65 && code <= 90 || code >= 97 && code <= 122;\n}\n","import { GraphQLError } from \"./GraphQLError.mjs\";\n/**\n * Produces a GraphQLError representing a syntax error, containing useful\n * descriptive information about the syntax error's position in the source.\n */\n\nexport function syntaxError(source, position, description) {\n return new GraphQLError(\"Syntax Error: \".concat(description), undefined, source, [position]);\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport isObjectLike from \"../jsutils/isObjectLike.mjs\";\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport { getLocation } from \"../language/location.mjs\";\nimport { printLocation, printSourceLocation } from \"../language/printLocation.mjs\";\n/**\n * A GraphQLError describes an Error found during the parse, validate, or\n * execute phases of performing a GraphQL operation. In addition to a message\n * and stack trace, it also includes information about the locations in a\n * GraphQL document and/or execution result that correspond to the Error.\n */\n\nexport var GraphQLError = /*#__PURE__*/function (_Error) {\n _inherits(GraphQLError, _Error);\n\n var _super = _createSuper(GraphQLError);\n\n /**\n * An array of { line, column } locations within the source GraphQL document\n * which correspond to this error.\n *\n * Errors during validation often contain multiple locations, for example to\n * point out two things with the same name. Errors during execution include a\n * single location, the field which produced the error.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array describing the JSON-path into the execution response which\n * corresponds to this error. Only included for errors during execution.\n *\n * Enumerable, and appears in the result of JSON.stringify().\n */\n\n /**\n * An array of GraphQL AST Nodes corresponding to this error.\n */\n\n /**\n * The source GraphQL document for the first location of this error.\n *\n * Note that if this Error represents more than one node, the source may not\n * represent nodes after the first node.\n */\n\n /**\n * An array of character offsets within the source GraphQL document\n * which correspond to this error.\n */\n\n /**\n * The original error thrown from a field resolver during execution.\n */\n\n /**\n * Extension fields to add to the formatted error.\n */\n function GraphQLError(message, nodes, source, positions, path, originalError, extensions) {\n var _nodeLocations, _nodeLocations2, _nodeLocations3;\n\n var _this;\n\n _classCallCheck(this, GraphQLError);\n\n _this = _super.call(this, message);\n _this.name = 'GraphQLError';\n _this.originalError = originalError !== null && originalError !== void 0 ? originalError : undefined; // Compute list of blame nodes.\n\n _this.nodes = undefinedIfEmpty(Array.isArray(nodes) ? nodes : nodes ? [nodes] : undefined);\n var nodeLocations = [];\n\n for (var _i2 = 0, _ref3 = (_this$nodes = _this.nodes) !== null && _this$nodes !== void 0 ? _this$nodes : []; _i2 < _ref3.length; _i2++) {\n var _this$nodes;\n\n var _ref4 = _ref3[_i2];\n var loc = _ref4.loc;\n\n if (loc != null) {\n nodeLocations.push(loc);\n }\n }\n\n nodeLocations = undefinedIfEmpty(nodeLocations); // Compute locations in the source for the given nodes/positions.\n\n _this.source = source !== null && source !== void 0 ? source : (_nodeLocations = nodeLocations) === null || _nodeLocations === void 0 ? void 0 : _nodeLocations[0].source;\n _this.positions = positions !== null && positions !== void 0 ? positions : (_nodeLocations2 = nodeLocations) === null || _nodeLocations2 === void 0 ? void 0 : _nodeLocations2.map(function (loc) {\n return loc.start;\n });\n _this.locations = positions && source ? positions.map(function (pos) {\n return getLocation(source, pos);\n }) : (_nodeLocations3 = nodeLocations) === null || _nodeLocations3 === void 0 ? void 0 : _nodeLocations3.map(function (loc) {\n return getLocation(loc.source, loc.start);\n });\n _this.path = path !== null && path !== void 0 ? path : undefined;\n var originalExtensions = originalError === null || originalError === void 0 ? void 0 : originalError.extensions;\n\n if (extensions == null && isObjectLike(originalExtensions)) {\n _this.extensions = _objectSpread({}, originalExtensions);\n } else {\n _this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};\n } // By being enumerable, JSON.stringify will include bellow properties in the resulting output.\n // This ensures that the simplest possible GraphQL service adheres to the spec.\n\n\n Object.defineProperties(_assertThisInitialized(_this), {\n message: {\n enumerable: true\n },\n locations: {\n enumerable: _this.locations != null\n },\n path: {\n enumerable: _this.path != null\n },\n extensions: {\n enumerable: _this.extensions != null && Object.keys(_this.extensions).length > 0\n },\n name: {\n enumerable: false\n },\n nodes: {\n enumerable: false\n },\n source: {\n enumerable: false\n },\n positions: {\n enumerable: false\n },\n originalError: {\n enumerable: false\n }\n }); // Include (non-enumerable) stack trace.\n\n if (originalError !== null && originalError !== void 0 && originalError.stack) {\n Object.defineProperty(_assertThisInitialized(_this), 'stack', {\n value: originalError.stack,\n writable: true,\n configurable: true\n });\n return _possibleConstructorReturn(_this);\n } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(_assertThisInitialized(_this), GraphQLError);\n } else {\n Object.defineProperty(_assertThisInitialized(_this), 'stack', {\n value: Error().stack,\n writable: true,\n configurable: true\n });\n }\n\n return _this;\n }\n\n _createClass(GraphQLError, [{\n key: \"toString\",\n value: function toString() {\n return printError(this);\n } // FIXME: workaround to not break chai comparisons, should be remove in v16\n // $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet\n\n }, {\n key: SYMBOL_TO_STRING_TAG,\n get: function get() {\n return 'Object';\n }\n }]);\n\n return GraphQLError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n\nfunction undefinedIfEmpty(array) {\n return array === undefined || array.length === 0 ? undefined : array;\n}\n/**\n * Prints a GraphQLError to a string, representing useful location information\n * about the error's position in the source.\n */\n\n\nexport function printError(error) {\n var output = error.message;\n\n if (error.nodes) {\n for (var _i4 = 0, _error$nodes2 = error.nodes; _i4 < _error$nodes2.length; _i4++) {\n var node = _error$nodes2[_i4];\n\n if (node.loc) {\n output += '\\n\\n' + printLocation(node.loc);\n }\n }\n } else if (error.source && error.locations) {\n for (var _i6 = 0, _error$locations2 = error.locations; _i6 < _error$locations2.length; _i6++) {\n var location = _error$locations2[_i6];\n output += '\\n\\n' + printSourceLocation(error.source, location);\n }\n }\n\n return output;\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n */\nexport default function isObjectLike(value) {\n return _typeof(value) == 'object' && value !== null;\n}\n","import defineInspect from \"../jsutils/defineInspect.mjs\";\n\n/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport var Location = /*#__PURE__*/function () {\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The Token at which this Node begins.\n */\n\n /**\n * The Token at which this Node ends.\n */\n\n /**\n * The Source document the AST represents.\n */\n function Location(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n var _proto = Location.prototype;\n\n _proto.toJSON = function toJSON() {\n return {\n start: this.start,\n end: this.end\n };\n };\n\n return Location;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Location);\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport var Token = /*#__PURE__*/function () {\n /**\n * The kind of Token.\n */\n\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n */\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. is always the first node and \n * the last.\n */\n function Token(kind, start, end, line, column, prev, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column;\n this.value = value;\n this.prev = prev;\n this.next = null;\n }\n\n var _proto2 = Token.prototype;\n\n _proto2.toJSON = function toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column\n };\n };\n\n return Token;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Token);\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n return maybeNode != null && typeof maybeNode.kind === 'string';\n}\n/**\n * The list of all possible AST node types.\n */\n","import invariant from \"./invariant.mjs\";\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\n/**\n * The `defineInspect()` function defines `inspect()` prototype method as alias of `toJSON`\n */\n\nexport default function defineInspect(classObject) {\n var fn = classObject.prototype.toJSON;\n typeof fn === 'function' || invariant(0);\n classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n if (nodejsCustomInspectSymbol) {\n classObject.prototype[nodejsCustomInspectSymbol] = fn;\n }\n}\n","export default function invariant(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n if (!booleanCondition) {\n throw new Error(message != null ? message : 'Unexpected invariant triggered.');\n }\n}\n","/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\nexport function dedentBlockStringValue(rawString) {\n // Expand a block string's raw value into independent lines.\n var lines = rawString.split(/\\r\\n|[\\n\\r]/g); // Remove common indentation from all lines but first.\n\n var commonIndent = getBlockStringIndentation(rawString);\n\n if (commonIndent !== 0) {\n for (var i = 1; i < lines.length; i++) {\n lines[i] = lines[i].slice(commonIndent);\n }\n } // Remove leading and trailing blank lines.\n\n\n var startLine = 0;\n\n while (startLine < lines.length && isBlank(lines[startLine])) {\n ++startLine;\n }\n\n var endLine = lines.length;\n\n while (endLine > startLine && isBlank(lines[endLine - 1])) {\n --endLine;\n } // Return a string of the lines joined with U+000A.\n\n\n return lines.slice(startLine, endLine).join('\\n');\n}\n\nfunction isBlank(str) {\n for (var i = 0; i < str.length; ++i) {\n if (str[i] !== ' ' && str[i] !== '\\t') {\n return false;\n }\n }\n\n return true;\n}\n/**\n * @internal\n */\n\n\nexport function getBlockStringIndentation(value) {\n var _commonIndent;\n\n var isFirstLine = true;\n var isEmptyLine = true;\n var indent = 0;\n var commonIndent = null;\n\n for (var i = 0; i < value.length; ++i) {\n switch (value.charCodeAt(i)) {\n case 13:\n // \\r\n if (value.charCodeAt(i + 1) === 10) {\n ++i; // skip \\r\\n as one symbol\n }\n\n // falls through\n\n case 10:\n // \\n\n isFirstLine = false;\n isEmptyLine = true;\n indent = 0;\n break;\n\n case 9: // \\t\n\n case 32:\n // \n ++indent;\n break;\n\n default:\n if (isEmptyLine && !isFirstLine && (commonIndent === null || indent < commonIndent)) {\n commonIndent = indent;\n }\n\n isEmptyLine = false;\n }\n }\n\n return (_commonIndent = commonIndent) !== null && _commonIndent !== void 0 ? _commonIndent : 0;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\nexport function printBlockString(value) {\n var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isSingleLine = value.indexOf('\\n') === -1;\n var hasLeadingSpace = value[0] === ' ' || value[0] === '\\t';\n var hasTrailingQuote = value[value.length - 1] === '\"';\n var hasTrailingSlash = value[value.length - 1] === '\\\\';\n var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;\n var result = ''; // Format a multi-line block quote to account for leading space.\n\n if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) {\n result += '\\n' + indentation;\n }\n\n result += indentation ? value.replace(/\\n/g, '\\n' + indentation) : value;\n\n if (printAsMultipleLines) {\n result += '\\n';\n }\n\n return '\"\"\"' + result.replace(/\"\"\"/g, '\\\\\"\"\"') + '\"\"\"';\n}\n","import { syntaxError } from \"../error/syntaxError.mjs\";\nimport { Kind } from \"./kinds.mjs\";\nimport { Location } from \"./ast.mjs\";\nimport { TokenKind } from \"./tokenKind.mjs\";\nimport { Source, isSource } from \"./source.mjs\";\nimport { DirectiveLocation } from \"./directiveLocation.mjs\";\nimport { Lexer, isPunctuatorTokenKind } from \"./lexer.mjs\";\n/**\n * Configuration options to control parser behavior\n */\n\n/**\n * Given a GraphQL source, parses it into a Document.\n * Throws GraphQLError if a syntax error is encountered.\n */\nexport function parse(source, options) {\n var parser = new Parser(source, options);\n return parser.parseDocument();\n}\n/**\n * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for\n * that value.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Values directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: valueFromAST().\n */\n\nexport function parseValue(source, options) {\n var parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n var value = parser.parseValueLiteral(false);\n parser.expectToken(TokenKind.EOF);\n return value;\n}\n/**\n * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for\n * that type.\n * Throws GraphQLError if a syntax error is encountered.\n *\n * This is useful within tools that operate upon GraphQL Types directly and\n * in isolation of complete GraphQL documents.\n *\n * Consider providing the results to the utility function: typeFromAST().\n */\n\nexport function parseType(source, options) {\n var parser = new Parser(source, options);\n parser.expectToken(TokenKind.SOF);\n var type = parser.parseTypeReference();\n parser.expectToken(TokenKind.EOF);\n return type;\n}\n/**\n * This class is exported only to assist people in implementing their own parsers\n * without duplicating too much code and should be used only as last resort for cases\n * such as experimental syntax or if certain features could not be contributed upstream.\n *\n * It is still part of the internal API and is versioned, so any changes to it are never\n * considered breaking changes. If you still need to support multiple versions of the\n * library, please use the `versionInfo` variable for version detection.\n *\n * @internal\n */\n\nexport var Parser = /*#__PURE__*/function () {\n function Parser(source, options) {\n var sourceObj = isSource(source) ? source : new Source(source);\n this._lexer = new Lexer(sourceObj);\n this._options = options;\n }\n /**\n * Converts a name lex token into a name parse node.\n */\n\n\n var _proto = Parser.prototype;\n\n _proto.parseName = function parseName() {\n var token = this.expectToken(TokenKind.NAME);\n return {\n kind: Kind.NAME,\n value: token.value,\n loc: this.loc(token)\n };\n } // Implements the parsing rules in the Document section.\n\n /**\n * Document : Definition+\n */\n ;\n\n _proto.parseDocument = function parseDocument() {\n var start = this._lexer.token;\n return {\n kind: Kind.DOCUMENT,\n definitions: this.many(TokenKind.SOF, this.parseDefinition, TokenKind.EOF),\n loc: this.loc(start)\n };\n }\n /**\n * Definition :\n * - ExecutableDefinition\n * - TypeSystemDefinition\n * - TypeSystemExtension\n *\n * ExecutableDefinition :\n * - OperationDefinition\n * - FragmentDefinition\n */\n ;\n\n _proto.parseDefinition = function parseDefinition() {\n if (this.peek(TokenKind.NAME)) {\n switch (this._lexer.token.value) {\n case 'query':\n case 'mutation':\n case 'subscription':\n return this.parseOperationDefinition();\n\n case 'fragment':\n return this.parseFragmentDefinition();\n\n case 'schema':\n case 'scalar':\n case 'type':\n case 'interface':\n case 'union':\n case 'enum':\n case 'input':\n case 'directive':\n return this.parseTypeSystemDefinition();\n\n case 'extend':\n return this.parseTypeSystemExtension();\n }\n } else if (this.peek(TokenKind.BRACE_L)) {\n return this.parseOperationDefinition();\n } else if (this.peekDescription()) {\n return this.parseTypeSystemDefinition();\n }\n\n throw this.unexpected();\n } // Implements the parsing rules in the Operations section.\n\n /**\n * OperationDefinition :\n * - SelectionSet\n * - OperationType Name? VariableDefinitions? Directives? SelectionSet\n */\n ;\n\n _proto.parseOperationDefinition = function parseOperationDefinition() {\n var start = this._lexer.token;\n\n if (this.peek(TokenKind.BRACE_L)) {\n return {\n kind: Kind.OPERATION_DEFINITION,\n operation: 'query',\n name: undefined,\n variableDefinitions: [],\n directives: [],\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n\n var operation = this.parseOperationType();\n var name;\n\n if (this.peek(TokenKind.NAME)) {\n name = this.parseName();\n }\n\n return {\n kind: Kind.OPERATION_DEFINITION,\n operation: operation,\n name: name,\n variableDefinitions: this.parseVariableDefinitions(),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n /**\n * OperationType : one of query mutation subscription\n */\n ;\n\n _proto.parseOperationType = function parseOperationType() {\n var operationToken = this.expectToken(TokenKind.NAME);\n\n switch (operationToken.value) {\n case 'query':\n return 'query';\n\n case 'mutation':\n return 'mutation';\n\n case 'subscription':\n return 'subscription';\n }\n\n throw this.unexpected(operationToken);\n }\n /**\n * VariableDefinitions : ( VariableDefinition+ )\n */\n ;\n\n _proto.parseVariableDefinitions = function parseVariableDefinitions() {\n return this.optionalMany(TokenKind.PAREN_L, this.parseVariableDefinition, TokenKind.PAREN_R);\n }\n /**\n * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?\n */\n ;\n\n _proto.parseVariableDefinition = function parseVariableDefinition() {\n var start = this._lexer.token;\n return {\n kind: Kind.VARIABLE_DEFINITION,\n variable: this.parseVariable(),\n type: (this.expectToken(TokenKind.COLON), this.parseTypeReference()),\n defaultValue: this.expectOptionalToken(TokenKind.EQUALS) ? this.parseValueLiteral(true) : undefined,\n directives: this.parseDirectives(true),\n loc: this.loc(start)\n };\n }\n /**\n * Variable : $ Name\n */\n ;\n\n _proto.parseVariable = function parseVariable() {\n var start = this._lexer.token;\n this.expectToken(TokenKind.DOLLAR);\n return {\n kind: Kind.VARIABLE,\n name: this.parseName(),\n loc: this.loc(start)\n };\n }\n /**\n * SelectionSet : { Selection+ }\n */\n ;\n\n _proto.parseSelectionSet = function parseSelectionSet() {\n var start = this._lexer.token;\n return {\n kind: Kind.SELECTION_SET,\n selections: this.many(TokenKind.BRACE_L, this.parseSelection, TokenKind.BRACE_R),\n loc: this.loc(start)\n };\n }\n /**\n * Selection :\n * - Field\n * - FragmentSpread\n * - InlineFragment\n */\n ;\n\n _proto.parseSelection = function parseSelection() {\n return this.peek(TokenKind.SPREAD) ? this.parseFragment() : this.parseField();\n }\n /**\n * Field : Alias? Name Arguments? Directives? SelectionSet?\n *\n * Alias : Name :\n */\n ;\n\n _proto.parseField = function parseField() {\n var start = this._lexer.token;\n var nameOrAlias = this.parseName();\n var alias;\n var name;\n\n if (this.expectOptionalToken(TokenKind.COLON)) {\n alias = nameOrAlias;\n name = this.parseName();\n } else {\n name = nameOrAlias;\n }\n\n return {\n kind: Kind.FIELD,\n alias: alias,\n name: name,\n arguments: this.parseArguments(false),\n directives: this.parseDirectives(false),\n selectionSet: this.peek(TokenKind.BRACE_L) ? this.parseSelectionSet() : undefined,\n loc: this.loc(start)\n };\n }\n /**\n * Arguments[Const] : ( Argument[?Const]+ )\n */\n ;\n\n _proto.parseArguments = function parseArguments(isConst) {\n var item = isConst ? this.parseConstArgument : this.parseArgument;\n return this.optionalMany(TokenKind.PAREN_L, item, TokenKind.PAREN_R);\n }\n /**\n * Argument[Const] : Name : Value[?Const]\n */\n ;\n\n _proto.parseArgument = function parseArgument() {\n var start = this._lexer.token;\n var name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return {\n kind: Kind.ARGUMENT,\n name: name,\n value: this.parseValueLiteral(false),\n loc: this.loc(start)\n };\n };\n\n _proto.parseConstArgument = function parseConstArgument() {\n var start = this._lexer.token;\n return {\n kind: Kind.ARGUMENT,\n name: this.parseName(),\n value: (this.expectToken(TokenKind.COLON), this.parseValueLiteral(true)),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Fragments section.\n\n /**\n * Corresponds to both FragmentSpread and InlineFragment in the spec.\n *\n * FragmentSpread : ... FragmentName Directives?\n *\n * InlineFragment : ... TypeCondition? Directives? SelectionSet\n */\n ;\n\n _proto.parseFragment = function parseFragment() {\n var start = this._lexer.token;\n this.expectToken(TokenKind.SPREAD);\n var hasTypeCondition = this.expectOptionalKeyword('on');\n\n if (!hasTypeCondition && this.peek(TokenKind.NAME)) {\n return {\n kind: Kind.FRAGMENT_SPREAD,\n name: this.parseFragmentName(),\n directives: this.parseDirectives(false),\n loc: this.loc(start)\n };\n }\n\n return {\n kind: Kind.INLINE_FRAGMENT,\n typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n /**\n * FragmentDefinition :\n * - fragment FragmentName on TypeCondition Directives? SelectionSet\n *\n * TypeCondition : NamedType\n */\n ;\n\n _proto.parseFragmentDefinition = function parseFragmentDefinition() {\n var _this$_options;\n\n var start = this._lexer.token;\n this.expectKeyword('fragment'); // Experimental support for defining variables within fragments changes\n // the grammar of FragmentDefinition:\n // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet\n\n if (((_this$_options = this._options) === null || _this$_options === void 0 ? void 0 : _this$_options.experimentalFragmentVariables) === true) {\n return {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n variableDefinitions: this.parseVariableDefinitions(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n\n return {\n kind: Kind.FRAGMENT_DEFINITION,\n name: this.parseFragmentName(),\n typeCondition: (this.expectKeyword('on'), this.parseNamedType()),\n directives: this.parseDirectives(false),\n selectionSet: this.parseSelectionSet(),\n loc: this.loc(start)\n };\n }\n /**\n * FragmentName : Name but not `on`\n */\n ;\n\n _proto.parseFragmentName = function parseFragmentName() {\n if (this._lexer.token.value === 'on') {\n throw this.unexpected();\n }\n\n return this.parseName();\n } // Implements the parsing rules in the Values section.\n\n /**\n * Value[Const] :\n * - [~Const] Variable\n * - IntValue\n * - FloatValue\n * - StringValue\n * - BooleanValue\n * - NullValue\n * - EnumValue\n * - ListValue[?Const]\n * - ObjectValue[?Const]\n *\n * BooleanValue : one of `true` `false`\n *\n * NullValue : `null`\n *\n * EnumValue : Name but not `true`, `false` or `null`\n */\n ;\n\n _proto.parseValueLiteral = function parseValueLiteral(isConst) {\n var token = this._lexer.token;\n\n switch (token.kind) {\n case TokenKind.BRACKET_L:\n return this.parseList(isConst);\n\n case TokenKind.BRACE_L:\n return this.parseObject(isConst);\n\n case TokenKind.INT:\n this._lexer.advance();\n\n return {\n kind: Kind.INT,\n value: token.value,\n loc: this.loc(token)\n };\n\n case TokenKind.FLOAT:\n this._lexer.advance();\n\n return {\n kind: Kind.FLOAT,\n value: token.value,\n loc: this.loc(token)\n };\n\n case TokenKind.STRING:\n case TokenKind.BLOCK_STRING:\n return this.parseStringLiteral();\n\n case TokenKind.NAME:\n this._lexer.advance();\n\n switch (token.value) {\n case 'true':\n return {\n kind: Kind.BOOLEAN,\n value: true,\n loc: this.loc(token)\n };\n\n case 'false':\n return {\n kind: Kind.BOOLEAN,\n value: false,\n loc: this.loc(token)\n };\n\n case 'null':\n return {\n kind: Kind.NULL,\n loc: this.loc(token)\n };\n\n default:\n return {\n kind: Kind.ENUM,\n value: token.value,\n loc: this.loc(token)\n };\n }\n\n case TokenKind.DOLLAR:\n if (!isConst) {\n return this.parseVariable();\n }\n\n break;\n }\n\n throw this.unexpected();\n };\n\n _proto.parseStringLiteral = function parseStringLiteral() {\n var token = this._lexer.token;\n\n this._lexer.advance();\n\n return {\n kind: Kind.STRING,\n value: token.value,\n block: token.kind === TokenKind.BLOCK_STRING,\n loc: this.loc(token)\n };\n }\n /**\n * ListValue[Const] :\n * - [ ]\n * - [ Value[?Const]+ ]\n */\n ;\n\n _proto.parseList = function parseList(isConst) {\n var _this = this;\n\n var start = this._lexer.token;\n\n var item = function item() {\n return _this.parseValueLiteral(isConst);\n };\n\n return {\n kind: Kind.LIST,\n values: this.any(TokenKind.BRACKET_L, item, TokenKind.BRACKET_R),\n loc: this.loc(start)\n };\n }\n /**\n * ObjectValue[Const] :\n * - { }\n * - { ObjectField[?Const]+ }\n */\n ;\n\n _proto.parseObject = function parseObject(isConst) {\n var _this2 = this;\n\n var start = this._lexer.token;\n\n var item = function item() {\n return _this2.parseObjectField(isConst);\n };\n\n return {\n kind: Kind.OBJECT,\n fields: this.any(TokenKind.BRACE_L, item, TokenKind.BRACE_R),\n loc: this.loc(start)\n };\n }\n /**\n * ObjectField[Const] : Name : Value[?Const]\n */\n ;\n\n _proto.parseObjectField = function parseObjectField(isConst) {\n var start = this._lexer.token;\n var name = this.parseName();\n this.expectToken(TokenKind.COLON);\n return {\n kind: Kind.OBJECT_FIELD,\n name: name,\n value: this.parseValueLiteral(isConst),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Directives section.\n\n /**\n * Directives[Const] : Directive[?Const]+\n */\n ;\n\n _proto.parseDirectives = function parseDirectives(isConst) {\n var directives = [];\n\n while (this.peek(TokenKind.AT)) {\n directives.push(this.parseDirective(isConst));\n }\n\n return directives;\n }\n /**\n * Directive[Const] : @ Name Arguments[?Const]?\n */\n ;\n\n _proto.parseDirective = function parseDirective(isConst) {\n var start = this._lexer.token;\n this.expectToken(TokenKind.AT);\n return {\n kind: Kind.DIRECTIVE,\n name: this.parseName(),\n arguments: this.parseArguments(isConst),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Types section.\n\n /**\n * Type :\n * - NamedType\n * - ListType\n * - NonNullType\n */\n ;\n\n _proto.parseTypeReference = function parseTypeReference() {\n var start = this._lexer.token;\n var type;\n\n if (this.expectOptionalToken(TokenKind.BRACKET_L)) {\n type = this.parseTypeReference();\n this.expectToken(TokenKind.BRACKET_R);\n type = {\n kind: Kind.LIST_TYPE,\n type: type,\n loc: this.loc(start)\n };\n } else {\n type = this.parseNamedType();\n }\n\n if (this.expectOptionalToken(TokenKind.BANG)) {\n return {\n kind: Kind.NON_NULL_TYPE,\n type: type,\n loc: this.loc(start)\n };\n }\n\n return type;\n }\n /**\n * NamedType : Name\n */\n ;\n\n _proto.parseNamedType = function parseNamedType() {\n var start = this._lexer.token;\n return {\n kind: Kind.NAMED_TYPE,\n name: this.parseName(),\n loc: this.loc(start)\n };\n } // Implements the parsing rules in the Type Definition section.\n\n /**\n * TypeSystemDefinition :\n * - SchemaDefinition\n * - TypeDefinition\n * - DirectiveDefinition\n *\n * TypeDefinition :\n * - ScalarTypeDefinition\n * - ObjectTypeDefinition\n * - InterfaceTypeDefinition\n * - UnionTypeDefinition\n * - EnumTypeDefinition\n * - InputObjectTypeDefinition\n */\n ;\n\n _proto.parseTypeSystemDefinition = function parseTypeSystemDefinition() {\n // Many definitions begin with a description and require a lookahead.\n var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;\n\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaDefinition();\n\n case 'scalar':\n return this.parseScalarTypeDefinition();\n\n case 'type':\n return this.parseObjectTypeDefinition();\n\n case 'interface':\n return this.parseInterfaceTypeDefinition();\n\n case 'union':\n return this.parseUnionTypeDefinition();\n\n case 'enum':\n return this.parseEnumTypeDefinition();\n\n case 'input':\n return this.parseInputObjectTypeDefinition();\n\n case 'directive':\n return this.parseDirectiveDefinition();\n }\n }\n\n throw this.unexpected(keywordToken);\n };\n\n _proto.peekDescription = function peekDescription() {\n return this.peek(TokenKind.STRING) || this.peek(TokenKind.BLOCK_STRING);\n }\n /**\n * Description : StringValue\n */\n ;\n\n _proto.parseDescription = function parseDescription() {\n if (this.peekDescription()) {\n return this.parseStringLiteral();\n }\n }\n /**\n * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }\n */\n ;\n\n _proto.parseSchemaDefinition = function parseSchemaDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('schema');\n var directives = this.parseDirectives(true);\n var operationTypes = this.many(TokenKind.BRACE_L, this.parseOperationTypeDefinition, TokenKind.BRACE_R);\n return {\n kind: Kind.SCHEMA_DEFINITION,\n description: description,\n directives: directives,\n operationTypes: operationTypes,\n loc: this.loc(start)\n };\n }\n /**\n * OperationTypeDefinition : OperationType : NamedType\n */\n ;\n\n _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {\n var start = this._lexer.token;\n var operation = this.parseOperationType();\n this.expectToken(TokenKind.COLON);\n var type = this.parseNamedType();\n return {\n kind: Kind.OPERATION_TYPE_DEFINITION,\n operation: operation,\n type: type,\n loc: this.loc(start)\n };\n }\n /**\n * ScalarTypeDefinition : Description? scalar Name Directives[Const]?\n */\n ;\n\n _proto.parseScalarTypeDefinition = function parseScalarTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('scalar');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.SCALAR_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * ObjectTypeDefinition :\n * Description?\n * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?\n */\n ;\n\n _proto.parseObjectTypeDefinition = function parseObjectTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('type');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n return {\n kind: Kind.OBJECT_TYPE_DEFINITION,\n description: description,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * ImplementsInterfaces :\n * - implements `&`? NamedType\n * - ImplementsInterfaces & NamedType\n */\n ;\n\n _proto.parseImplementsInterfaces = function parseImplementsInterfaces() {\n var _this$_options2;\n\n if (!this.expectOptionalKeyword('implements')) {\n return [];\n }\n\n if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {\n var types = []; // Optional leading ampersand\n\n this.expectOptionalToken(TokenKind.AMP);\n\n do {\n types.push(this.parseNamedType());\n } while (this.expectOptionalToken(TokenKind.AMP) || this.peek(TokenKind.NAME));\n\n return types;\n }\n\n return this.delimitedMany(TokenKind.AMP, this.parseNamedType);\n }\n /**\n * FieldsDefinition : { FieldDefinition+ }\n */\n ;\n\n _proto.parseFieldsDefinition = function parseFieldsDefinition() {\n var _this$_options3;\n\n // Legacy support for the SDL?\n if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind.BRACE_L) && this._lexer.lookahead().kind === TokenKind.BRACE_R) {\n this._lexer.advance();\n\n this._lexer.advance();\n\n return [];\n }\n\n return this.optionalMany(TokenKind.BRACE_L, this.parseFieldDefinition, TokenKind.BRACE_R);\n }\n /**\n * FieldDefinition :\n * - Description? Name ArgumentsDefinition? : Type Directives[Const]?\n */\n ;\n\n _proto.parseFieldDefinition = function parseFieldDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n var args = this.parseArgumentDefs();\n this.expectToken(TokenKind.COLON);\n var type = this.parseTypeReference();\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.FIELD_DEFINITION,\n description: description,\n name: name,\n arguments: args,\n type: type,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * ArgumentsDefinition : ( InputValueDefinition+ )\n */\n ;\n\n _proto.parseArgumentDefs = function parseArgumentDefs() {\n return this.optionalMany(TokenKind.PAREN_L, this.parseInputValueDef, TokenKind.PAREN_R);\n }\n /**\n * InputValueDefinition :\n * - Description? Name : Type DefaultValue? Directives[Const]?\n */\n ;\n\n _proto.parseInputValueDef = function parseInputValueDef() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n this.expectToken(TokenKind.COLON);\n var type = this.parseTypeReference();\n var defaultValue;\n\n if (this.expectOptionalToken(TokenKind.EQUALS)) {\n defaultValue = this.parseValueLiteral(true);\n }\n\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.INPUT_VALUE_DEFINITION,\n description: description,\n name: name,\n type: type,\n defaultValue: defaultValue,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * InterfaceTypeDefinition :\n * - Description? interface Name Directives[Const]? FieldsDefinition?\n */\n ;\n\n _proto.parseInterfaceTypeDefinition = function parseInterfaceTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('interface');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n return {\n kind: Kind.INTERFACE_TYPE_DEFINITION,\n description: description,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * UnionTypeDefinition :\n * - Description? union Name Directives[Const]? UnionMemberTypes?\n */\n ;\n\n _proto.parseUnionTypeDefinition = function parseUnionTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('union');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var types = this.parseUnionMemberTypes();\n return {\n kind: Kind.UNION_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n types: types,\n loc: this.loc(start)\n };\n }\n /**\n * UnionMemberTypes :\n * - = `|`? NamedType\n * - UnionMemberTypes | NamedType\n */\n ;\n\n _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {\n return this.expectOptionalToken(TokenKind.EQUALS) ? this.delimitedMany(TokenKind.PIPE, this.parseNamedType) : [];\n }\n /**\n * EnumTypeDefinition :\n * - Description? enum Name Directives[Const]? EnumValuesDefinition?\n */\n ;\n\n _proto.parseEnumTypeDefinition = function parseEnumTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('enum');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var values = this.parseEnumValuesDefinition();\n return {\n kind: Kind.ENUM_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n values: values,\n loc: this.loc(start)\n };\n }\n /**\n * EnumValuesDefinition : { EnumValueDefinition+ }\n */\n ;\n\n _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {\n return this.optionalMany(TokenKind.BRACE_L, this.parseEnumValueDefinition, TokenKind.BRACE_R);\n }\n /**\n * EnumValueDefinition : Description? EnumValue Directives[Const]?\n *\n * EnumValue : Name\n */\n ;\n\n _proto.parseEnumValueDefinition = function parseEnumValueDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n return {\n kind: Kind.ENUM_VALUE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * InputObjectTypeDefinition :\n * - Description? input Name Directives[Const]? InputFieldsDefinition?\n */\n ;\n\n _proto.parseInputObjectTypeDefinition = function parseInputObjectTypeDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('input');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var fields = this.parseInputFieldsDefinition();\n return {\n kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,\n description: description,\n name: name,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * InputFieldsDefinition : { InputValueDefinition+ }\n */\n ;\n\n _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {\n return this.optionalMany(TokenKind.BRACE_L, this.parseInputValueDef, TokenKind.BRACE_R);\n }\n /**\n * TypeSystemExtension :\n * - SchemaExtension\n * - TypeExtension\n *\n * TypeExtension :\n * - ScalarTypeExtension\n * - ObjectTypeExtension\n * - InterfaceTypeExtension\n * - UnionTypeExtension\n * - EnumTypeExtension\n * - InputObjectTypeDefinition\n */\n ;\n\n _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {\n var keywordToken = this._lexer.lookahead();\n\n if (keywordToken.kind === TokenKind.NAME) {\n switch (keywordToken.value) {\n case 'schema':\n return this.parseSchemaExtension();\n\n case 'scalar':\n return this.parseScalarTypeExtension();\n\n case 'type':\n return this.parseObjectTypeExtension();\n\n case 'interface':\n return this.parseInterfaceTypeExtension();\n\n case 'union':\n return this.parseUnionTypeExtension();\n\n case 'enum':\n return this.parseEnumTypeExtension();\n\n case 'input':\n return this.parseInputObjectTypeExtension();\n }\n }\n\n throw this.unexpected(keywordToken);\n }\n /**\n * SchemaExtension :\n * - extend schema Directives[Const]? { OperationTypeDefinition+ }\n * - extend schema Directives[Const]\n */\n ;\n\n _proto.parseSchemaExtension = function parseSchemaExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('schema');\n var directives = this.parseDirectives(true);\n var operationTypes = this.optionalMany(TokenKind.BRACE_L, this.parseOperationTypeDefinition, TokenKind.BRACE_R);\n\n if (directives.length === 0 && operationTypes.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.SCHEMA_EXTENSION,\n directives: directives,\n operationTypes: operationTypes,\n loc: this.loc(start)\n };\n }\n /**\n * ScalarTypeExtension :\n * - extend scalar Name Directives[Const]\n */\n ;\n\n _proto.parseScalarTypeExtension = function parseScalarTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('scalar');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n\n if (directives.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.SCALAR_TYPE_EXTENSION,\n name: name,\n directives: directives,\n loc: this.loc(start)\n };\n }\n /**\n * ObjectTypeExtension :\n * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend type Name ImplementsInterfaces? Directives[Const]\n * - extend type Name ImplementsInterfaces\n */\n ;\n\n _proto.parseObjectTypeExtension = function parseObjectTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('type');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n\n if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.OBJECT_TYPE_EXTENSION,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * InterfaceTypeExtension :\n * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition\n * - extend interface Name ImplementsInterfaces? Directives[Const]\n * - extend interface Name ImplementsInterfaces\n */\n ;\n\n _proto.parseInterfaceTypeExtension = function parseInterfaceTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('interface');\n var name = this.parseName();\n var interfaces = this.parseImplementsInterfaces();\n var directives = this.parseDirectives(true);\n var fields = this.parseFieldsDefinition();\n\n if (interfaces.length === 0 && directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.INTERFACE_TYPE_EXTENSION,\n name: name,\n interfaces: interfaces,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * UnionTypeExtension :\n * - extend union Name Directives[Const]? UnionMemberTypes\n * - extend union Name Directives[Const]\n */\n ;\n\n _proto.parseUnionTypeExtension = function parseUnionTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('union');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var types = this.parseUnionMemberTypes();\n\n if (directives.length === 0 && types.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.UNION_TYPE_EXTENSION,\n name: name,\n directives: directives,\n types: types,\n loc: this.loc(start)\n };\n }\n /**\n * EnumTypeExtension :\n * - extend enum Name Directives[Const]? EnumValuesDefinition\n * - extend enum Name Directives[Const]\n */\n ;\n\n _proto.parseEnumTypeExtension = function parseEnumTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('enum');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var values = this.parseEnumValuesDefinition();\n\n if (directives.length === 0 && values.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.ENUM_TYPE_EXTENSION,\n name: name,\n directives: directives,\n values: values,\n loc: this.loc(start)\n };\n }\n /**\n * InputObjectTypeExtension :\n * - extend input Name Directives[Const]? InputFieldsDefinition\n * - extend input Name Directives[Const]\n */\n ;\n\n _proto.parseInputObjectTypeExtension = function parseInputObjectTypeExtension() {\n var start = this._lexer.token;\n this.expectKeyword('extend');\n this.expectKeyword('input');\n var name = this.parseName();\n var directives = this.parseDirectives(true);\n var fields = this.parseInputFieldsDefinition();\n\n if (directives.length === 0 && fields.length === 0) {\n throw this.unexpected();\n }\n\n return {\n kind: Kind.INPUT_OBJECT_TYPE_EXTENSION,\n name: name,\n directives: directives,\n fields: fields,\n loc: this.loc(start)\n };\n }\n /**\n * DirectiveDefinition :\n * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations\n */\n ;\n\n _proto.parseDirectiveDefinition = function parseDirectiveDefinition() {\n var start = this._lexer.token;\n var description = this.parseDescription();\n this.expectKeyword('directive');\n this.expectToken(TokenKind.AT);\n var name = this.parseName();\n var args = this.parseArgumentDefs();\n var repeatable = this.expectOptionalKeyword('repeatable');\n this.expectKeyword('on');\n var locations = this.parseDirectiveLocations();\n return {\n kind: Kind.DIRECTIVE_DEFINITION,\n description: description,\n name: name,\n arguments: args,\n repeatable: repeatable,\n locations: locations,\n loc: this.loc(start)\n };\n }\n /**\n * DirectiveLocations :\n * - `|`? DirectiveLocation\n * - DirectiveLocations | DirectiveLocation\n */\n ;\n\n _proto.parseDirectiveLocations = function parseDirectiveLocations() {\n return this.delimitedMany(TokenKind.PIPE, this.parseDirectiveLocation);\n }\n /*\n * DirectiveLocation :\n * - ExecutableDirectiveLocation\n * - TypeSystemDirectiveLocation\n *\n * ExecutableDirectiveLocation : one of\n * `QUERY`\n * `MUTATION`\n * `SUBSCRIPTION`\n * `FIELD`\n * `FRAGMENT_DEFINITION`\n * `FRAGMENT_SPREAD`\n * `INLINE_FRAGMENT`\n *\n * TypeSystemDirectiveLocation : one of\n * `SCHEMA`\n * `SCALAR`\n * `OBJECT`\n * `FIELD_DEFINITION`\n * `ARGUMENT_DEFINITION`\n * `INTERFACE`\n * `UNION`\n * `ENUM`\n * `ENUM_VALUE`\n * `INPUT_OBJECT`\n * `INPUT_FIELD_DEFINITION`\n */\n ;\n\n _proto.parseDirectiveLocation = function parseDirectiveLocation() {\n var start = this._lexer.token;\n var name = this.parseName();\n\n if (DirectiveLocation[name.value] !== undefined) {\n return name;\n }\n\n throw this.unexpected(start);\n } // Core parsing utility functions\n\n /**\n * Returns a location object, used to identify the place in the source that created a given parsed object.\n */\n ;\n\n _proto.loc = function loc(startToken) {\n var _this$_options4;\n\n if (((_this$_options4 = this._options) === null || _this$_options4 === void 0 ? void 0 : _this$_options4.noLocation) !== true) {\n return new Location(startToken, this._lexer.lastToken, this._lexer.source);\n }\n }\n /**\n * Determines if the next token is of a given kind\n */\n ;\n\n _proto.peek = function peek(kind) {\n return this._lexer.token.kind === kind;\n }\n /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */\n ;\n\n _proto.expectToken = function expectToken(kind) {\n var token = this._lexer.token;\n\n if (token.kind === kind) {\n this._lexer.advance();\n\n return token;\n }\n\n throw syntaxError(this._lexer.source, token.start, \"Expected \".concat(getTokenKindDesc(kind), \", found \").concat(getTokenDesc(token), \".\"));\n }\n /**\n * If the next token is of the given kind, return that token after advancing the lexer.\n * Otherwise, do not change the parser state and return undefined.\n */\n ;\n\n _proto.expectOptionalToken = function expectOptionalToken(kind) {\n var token = this._lexer.token;\n\n if (token.kind === kind) {\n this._lexer.advance();\n\n return token;\n }\n\n return undefined;\n }\n /**\n * If the next token is a given keyword, advance the lexer.\n * Otherwise, do not change the parser state and throw an error.\n */\n ;\n\n _proto.expectKeyword = function expectKeyword(value) {\n var token = this._lexer.token;\n\n if (token.kind === TokenKind.NAME && token.value === value) {\n this._lexer.advance();\n } else {\n throw syntaxError(this._lexer.source, token.start, \"Expected \\\"\".concat(value, \"\\\", found \").concat(getTokenDesc(token), \".\"));\n }\n }\n /**\n * If the next token is a given keyword, return \"true\" after advancing the lexer.\n * Otherwise, do not change the parser state and return \"false\".\n */\n ;\n\n _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {\n var token = this._lexer.token;\n\n if (token.kind === TokenKind.NAME && token.value === value) {\n this._lexer.advance();\n\n return true;\n }\n\n return false;\n }\n /**\n * Helper function for creating an error when an unexpected lexed token is encountered.\n */\n ;\n\n _proto.unexpected = function unexpected(atToken) {\n var token = atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;\n return syntaxError(this._lexer.source, token.start, \"Unexpected \".concat(getTokenDesc(token), \".\"));\n }\n /**\n * Returns a possibly empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n ;\n\n _proto.any = function any(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n var nodes = [];\n\n while (!this.expectOptionalToken(closeKind)) {\n nodes.push(parseFn.call(this));\n }\n\n return nodes;\n }\n /**\n * Returns a list of parse nodes, determined by the parseFn.\n * It can be empty only if open token is missing otherwise it will always return non-empty list\n * that begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n ;\n\n _proto.optionalMany = function optionalMany(openKind, parseFn, closeKind) {\n if (this.expectOptionalToken(openKind)) {\n var nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n\n return [];\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list begins with a lex token of openKind and ends with a lex token of closeKind.\n * Advances the parser to the next lex token after the closing token.\n */\n ;\n\n _proto.many = function many(openKind, parseFn, closeKind) {\n this.expectToken(openKind);\n var nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (!this.expectOptionalToken(closeKind));\n\n return nodes;\n }\n /**\n * Returns a non-empty list of parse nodes, determined by the parseFn.\n * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.\n * Advances the parser to the next lex token after last item in the list.\n */\n ;\n\n _proto.delimitedMany = function delimitedMany(delimiterKind, parseFn) {\n this.expectOptionalToken(delimiterKind);\n var nodes = [];\n\n do {\n nodes.push(parseFn.call(this));\n } while (this.expectOptionalToken(delimiterKind));\n\n return nodes;\n };\n\n return Parser;\n}();\n/**\n * A helper function to describe a token as a string for debugging.\n */\n\nfunction getTokenDesc(token) {\n var value = token.value;\n return getTokenKindDesc(token.kind) + (value != null ? \" \\\"\".concat(value, \"\\\"\") : '');\n}\n/**\n * A helper function to describe a token kind as a string for debugging.\n */\n\n\nfunction getTokenKindDesc(kind) {\n return isPunctuatorTokenKind(kind) ? \"\\\"\".concat(kind, \"\\\"\") : kind;\n}\n","/**\n * The set of allowed directive location values.\n */\nexport var DirectiveLocation = Object.freeze({\n // Request Definitions\n QUERY: 'QUERY',\n MUTATION: 'MUTATION',\n SUBSCRIPTION: 'SUBSCRIPTION',\n FIELD: 'FIELD',\n FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION',\n FRAGMENT_SPREAD: 'FRAGMENT_SPREAD',\n INLINE_FRAGMENT: 'INLINE_FRAGMENT',\n VARIABLE_DEFINITION: 'VARIABLE_DEFINITION',\n // Type System Definitions\n SCHEMA: 'SCHEMA',\n SCALAR: 'SCALAR',\n OBJECT: 'OBJECT',\n FIELD_DEFINITION: 'FIELD_DEFINITION',\n ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION',\n INTERFACE: 'INTERFACE',\n UNION: 'UNION',\n ENUM: 'ENUM',\n ENUM_VALUE: 'ENUM_VALUE',\n INPUT_OBJECT: 'INPUT_OBJECT',\n INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION'\n});\n/**\n * The enum type representing the directive location values.\n */\n","import { visit } from \"./visitor.mjs\";\nimport { printBlockString } from \"./blockString.mjs\";\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n return visit(ast, {\n leave: printDocASTReducer\n });\n}\nvar MAX_LINE_LENGTH = 80; // TODO: provide better type coverage in future\n\nvar printDocASTReducer = {\n Name: function Name(node) {\n return node.value;\n },\n Variable: function Variable(node) {\n return '$' + node.name;\n },\n // Document\n Document: function Document(node) {\n return join(node.definitions, '\\n\\n') + '\\n';\n },\n OperationDefinition: function OperationDefinition(node) {\n var op = node.operation;\n var name = node.name;\n var varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');\n var directives = join(node.directives, ' ');\n var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n\n return !name && !directives && !varDefs && op === 'query' ? selectionSet : join([op, join([name, varDefs]), directives, selectionSet], ' ');\n },\n VariableDefinition: function VariableDefinition(_ref) {\n var variable = _ref.variable,\n type = _ref.type,\n defaultValue = _ref.defaultValue,\n directives = _ref.directives;\n return variable + ': ' + type + wrap(' = ', defaultValue) + wrap(' ', join(directives, ' '));\n },\n SelectionSet: function SelectionSet(_ref2) {\n var selections = _ref2.selections;\n return block(selections);\n },\n Field: function Field(_ref3) {\n var alias = _ref3.alias,\n name = _ref3.name,\n args = _ref3.arguments,\n directives = _ref3.directives,\n selectionSet = _ref3.selectionSet;\n var prefix = wrap('', alias, ': ') + name;\n var argsLine = prefix + wrap('(', join(args, ', '), ')');\n\n if (argsLine.length > MAX_LINE_LENGTH) {\n argsLine = prefix + wrap('(\\n', indent(join(args, '\\n')), '\\n)');\n }\n\n return join([argsLine, join(directives, ' '), selectionSet], ' ');\n },\n Argument: function Argument(_ref4) {\n var name = _ref4.name,\n value = _ref4.value;\n return name + ': ' + value;\n },\n // Fragments\n FragmentSpread: function FragmentSpread(_ref5) {\n var name = _ref5.name,\n directives = _ref5.directives;\n return '...' + name + wrap(' ', join(directives, ' '));\n },\n InlineFragment: function InlineFragment(_ref6) {\n var typeCondition = _ref6.typeCondition,\n directives = _ref6.directives,\n selectionSet = _ref6.selectionSet;\n return join(['...', wrap('on ', typeCondition), join(directives, ' '), selectionSet], ' ');\n },\n FragmentDefinition: function FragmentDefinition(_ref7) {\n var name = _ref7.name,\n typeCondition = _ref7.typeCondition,\n variableDefinitions = _ref7.variableDefinitions,\n directives = _ref7.directives,\n selectionSet = _ref7.selectionSet;\n return (// Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n \"fragment \".concat(name).concat(wrap('(', join(variableDefinitions, ', '), ')'), \" \") + \"on \".concat(typeCondition, \" \").concat(wrap('', join(directives, ' '), ' ')) + selectionSet\n );\n },\n // Value\n IntValue: function IntValue(_ref8) {\n var value = _ref8.value;\n return value;\n },\n FloatValue: function FloatValue(_ref9) {\n var value = _ref9.value;\n return value;\n },\n StringValue: function StringValue(_ref10, key) {\n var value = _ref10.value,\n isBlockString = _ref10.block;\n return isBlockString ? printBlockString(value, key === 'description' ? '' : ' ') : JSON.stringify(value);\n },\n BooleanValue: function BooleanValue(_ref11) {\n var value = _ref11.value;\n return value ? 'true' : 'false';\n },\n NullValue: function NullValue() {\n return 'null';\n },\n EnumValue: function EnumValue(_ref12) {\n var value = _ref12.value;\n return value;\n },\n ListValue: function ListValue(_ref13) {\n var values = _ref13.values;\n return '[' + join(values, ', ') + ']';\n },\n ObjectValue: function ObjectValue(_ref14) {\n var fields = _ref14.fields;\n return '{' + join(fields, ', ') + '}';\n },\n ObjectField: function ObjectField(_ref15) {\n var name = _ref15.name,\n value = _ref15.value;\n return name + ': ' + value;\n },\n // Directive\n Directive: function Directive(_ref16) {\n var name = _ref16.name,\n args = _ref16.arguments;\n return '@' + name + wrap('(', join(args, ', '), ')');\n },\n // Type\n NamedType: function NamedType(_ref17) {\n var name = _ref17.name;\n return name;\n },\n ListType: function ListType(_ref18) {\n var type = _ref18.type;\n return '[' + type + ']';\n },\n NonNullType: function NonNullType(_ref19) {\n var type = _ref19.type;\n return type + '!';\n },\n // Type System Definitions\n SchemaDefinition: addDescription(function (_ref20) {\n var directives = _ref20.directives,\n operationTypes = _ref20.operationTypes;\n return join(['schema', join(directives, ' '), block(operationTypes)], ' ');\n }),\n OperationTypeDefinition: function OperationTypeDefinition(_ref21) {\n var operation = _ref21.operation,\n type = _ref21.type;\n return operation + ': ' + type;\n },\n ScalarTypeDefinition: addDescription(function (_ref22) {\n var name = _ref22.name,\n directives = _ref22.directives;\n return join(['scalar', name, join(directives, ' ')], ' ');\n }),\n ObjectTypeDefinition: addDescription(function (_ref23) {\n var name = _ref23.name,\n interfaces = _ref23.interfaces,\n directives = _ref23.directives,\n fields = _ref23.fields;\n return join(['type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n }),\n FieldDefinition: addDescription(function (_ref24) {\n var name = _ref24.name,\n args = _ref24.arguments,\n type = _ref24.type,\n directives = _ref24.directives;\n return name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + ': ' + type + wrap(' ', join(directives, ' '));\n }),\n InputValueDefinition: addDescription(function (_ref25) {\n var name = _ref25.name,\n type = _ref25.type,\n defaultValue = _ref25.defaultValue,\n directives = _ref25.directives;\n return join([name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')], ' ');\n }),\n InterfaceTypeDefinition: addDescription(function (_ref26) {\n var name = _ref26.name,\n interfaces = _ref26.interfaces,\n directives = _ref26.directives,\n fields = _ref26.fields;\n return join(['interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n }),\n UnionTypeDefinition: addDescription(function (_ref27) {\n var name = _ref27.name,\n directives = _ref27.directives,\n types = _ref27.types;\n return join(['union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n }),\n EnumTypeDefinition: addDescription(function (_ref28) {\n var name = _ref28.name,\n directives = _ref28.directives,\n values = _ref28.values;\n return join(['enum', name, join(directives, ' '), block(values)], ' ');\n }),\n EnumValueDefinition: addDescription(function (_ref29) {\n var name = _ref29.name,\n directives = _ref29.directives;\n return join([name, join(directives, ' ')], ' ');\n }),\n InputObjectTypeDefinition: addDescription(function (_ref30) {\n var name = _ref30.name,\n directives = _ref30.directives,\n fields = _ref30.fields;\n return join(['input', name, join(directives, ' '), block(fields)], ' ');\n }),\n DirectiveDefinition: addDescription(function (_ref31) {\n var name = _ref31.name,\n args = _ref31.arguments,\n repeatable = _ref31.repeatable,\n locations = _ref31.locations;\n return 'directive @' + name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + (repeatable ? ' repeatable' : '') + ' on ' + join(locations, ' | ');\n }),\n SchemaExtension: function SchemaExtension(_ref32) {\n var directives = _ref32.directives,\n operationTypes = _ref32.operationTypes;\n return join(['extend schema', join(directives, ' '), block(operationTypes)], ' ');\n },\n ScalarTypeExtension: function ScalarTypeExtension(_ref33) {\n var name = _ref33.name,\n directives = _ref33.directives;\n return join(['extend scalar', name, join(directives, ' ')], ' ');\n },\n ObjectTypeExtension: function ObjectTypeExtension(_ref34) {\n var name = _ref34.name,\n interfaces = _ref34.interfaces,\n directives = _ref34.directives,\n fields = _ref34.fields;\n return join(['extend type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n },\n InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) {\n var name = _ref35.name,\n interfaces = _ref35.interfaces,\n directives = _ref35.directives,\n fields = _ref35.fields;\n return join(['extend interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n },\n UnionTypeExtension: function UnionTypeExtension(_ref36) {\n var name = _ref36.name,\n directives = _ref36.directives,\n types = _ref36.types;\n return join(['extend union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n },\n EnumTypeExtension: function EnumTypeExtension(_ref37) {\n var name = _ref37.name,\n directives = _ref37.directives,\n values = _ref37.values;\n return join(['extend enum', name, join(directives, ' '), block(values)], ' ');\n },\n InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) {\n var name = _ref38.name,\n directives = _ref38.directives,\n fields = _ref38.fields;\n return join(['extend input', name, join(directives, ' '), block(fields)], ' ');\n }\n};\n\nfunction addDescription(cb) {\n return function (node) {\n return join([node.description, cb(node)], '\\n');\n };\n}\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\n\nfunction join(maybeArray) {\n var _maybeArray$filter$jo;\n\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(function (x) {\n return x;\n }).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an\n * indented \"{ }\" block.\n */\n\n\nfunction block(array) {\n return wrap('{\\n', indent(join(array, '\\n')), '\\n}');\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */\n\n\nfunction wrap(start, maybeString) {\n var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n return maybeString != null && maybeString !== '' ? start + maybeString + end : '';\n}\n\nfunction indent(str) {\n return wrap(' ', str.replace(/\\n/g, '\\n '));\n}\n\nfunction isMultiline(str) {\n return str.indexOf('\\n') !== -1;\n}\n\nfunction hasMultilineItems(maybeArray) {\n return maybeArray != null && maybeArray.some(isMultiline);\n}\n","import inspect from \"../jsutils/inspect.mjs\";\nimport { isNode } from \"./ast.mjs\";\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport var QueryDocumentKeys = {\n Name: [],\n Document: ['definitions'],\n OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],\n VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentSpread: ['name', 'directives'],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: ['name', // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n 'variableDefinitions', 'typeCondition', 'directives', 'selectionSet'],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n Directive: ['name', 'arguments'],\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: ['description', 'name', 'type', 'defaultValue', 'directives'],\n InterfaceTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n SchemaExtension: ['directives', 'operationTypes'],\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields']\n};\nexport var BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to four permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n *\n * 2) Named visitors that trigger upon entering and leaving a node of\n * a specific kind.\n *\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n *\n * 4) Parallel visitors for entering and leaving nodes of a specific kind.\n *\n * visit(ast, {\n * enter: {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * },\n * leave: {\n * Kind(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n */\n\nexport function visit(root, visitor) {\n var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys;\n\n /* eslint-disable no-undef-init */\n var stack = undefined;\n var inArray = Array.isArray(root);\n var keys = [root];\n var index = -1;\n var edits = [];\n var node = undefined;\n var key = undefined;\n var parent = undefined;\n var path = [];\n var ancestors = [];\n var newRoot = root;\n /* eslint-enable no-undef-init */\n\n do {\n index++;\n var isLeaving = index === keys.length;\n var isEdited = isLeaving && edits.length !== 0;\n\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n\n if (isEdited) {\n if (inArray) {\n node = node.slice();\n } else {\n var clone = {};\n\n for (var _i2 = 0, _Object$keys2 = Object.keys(node); _i2 < _Object$keys2.length; _i2++) {\n var k = _Object$keys2[_i2];\n clone[k] = node[k];\n }\n\n node = clone;\n }\n\n var editOffset = 0;\n\n for (var ii = 0; ii < edits.length; ii++) {\n var editKey = edits[ii][0];\n var editValue = edits[ii][1];\n\n if (inArray) {\n editKey -= editOffset;\n }\n\n if (inArray && editValue === null) {\n node.splice(editKey, 1);\n editOffset++;\n } else {\n node[editKey] = editValue;\n }\n }\n }\n\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else {\n key = parent ? inArray ? index : keys[index] : undefined;\n node = parent ? parent[key] : newRoot;\n\n if (node === null || node === undefined) {\n continue;\n }\n\n if (parent) {\n path.push(key);\n }\n }\n\n var result = void 0;\n\n if (!Array.isArray(node)) {\n if (!isNode(node)) {\n throw new Error(\"Invalid AST Node: \".concat(inspect(node), \".\"));\n }\n\n var visitFn = getVisitFn(visitor, node.kind, isLeaving);\n\n if (visitFn) {\n result = visitFn.call(visitor, node, key, parent, path, ancestors);\n\n if (result === BREAK) {\n break;\n }\n\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([key, result]);\n\n if (!isLeaving) {\n if (isNode(result)) {\n node = result;\n } else {\n path.pop();\n continue;\n }\n }\n }\n }\n }\n\n if (result === undefined && isEdited) {\n edits.push([key, node]);\n }\n\n if (isLeaving) {\n path.pop();\n } else {\n var _visitorKeys$node$kin;\n\n stack = {\n inArray: inArray,\n index: index,\n keys: keys,\n edits: edits,\n prev: stack\n };\n inArray = Array.isArray(node);\n keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];\n index = -1;\n edits = [];\n\n if (parent) {\n ancestors.push(parent);\n }\n\n parent = node;\n }\n } while (stack !== undefined);\n\n if (edits.length !== 0) {\n newRoot = edits[edits.length - 1][1];\n }\n\n return newRoot;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n var skipping = new Array(visitors.length);\n return {\n enter: function enter(node) {\n for (var i = 0; i < visitors.length; i++) {\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind,\n /* isLeaving */\n false);\n\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n\n if (result === false) {\n skipping[i] = node;\n } else if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined) {\n return result;\n }\n }\n }\n }\n },\n leave: function leave(node) {\n for (var i = 0; i < visitors.length; i++) {\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind,\n /* isLeaving */\n true);\n\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n\n if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined && result !== false) {\n return result;\n }\n }\n } else if (skipping[i] === node) {\n skipping[i] = null;\n }\n }\n }\n };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n var kindVisitor = visitor[kind];\n\n if (kindVisitor) {\n if (!isLeaving && typeof kindVisitor === 'function') {\n // { Kind() {} }\n return kindVisitor;\n }\n\n var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter;\n\n if (typeof kindSpecificVisitor === 'function') {\n // { Kind: { enter() {}, leave() {} } }\n return kindSpecificVisitor;\n }\n } else {\n var specificVisitor = isLeaving ? visitor.leave : visitor.enter;\n\n if (specificVisitor) {\n if (typeof specificVisitor === 'function') {\n // { enter() {}, leave() {} }\n return specificVisitor;\n }\n\n var specificKindVisitor = specificVisitor[kind];\n\n if (typeof specificKindVisitor === 'function') {\n // { enter: { Kind() {} }, leave: { Kind() {} } }\n return specificKindVisitor;\n }\n }\n }\n}\n","import { __assign, __spreadArrays } from \"tslib\";\nimport { invariant, InvariantError } from 'ts-invariant';\nexport function getFragmentQueryDocument(document, fragmentName) {\n var actualFragmentName = fragmentName;\n var fragments = [];\n document.definitions.forEach(function (definition) {\n if (definition.kind === 'OperationDefinition') {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(42) : new InvariantError(\"Found a \" + definition.operation + \" operation\" + (definition.name ? \" named '\" + definition.name.value + \"'\" : '') + \". \" +\n 'No operations are allowed when using a fragment as a query. Only fragments are allowed.');\n }\n if (definition.kind === 'FragmentDefinition') {\n fragments.push(definition);\n }\n });\n if (typeof actualFragmentName === 'undefined') {\n process.env.NODE_ENV === \"production\" ? invariant(fragments.length === 1, 43) : invariant(fragments.length === 1, \"Found \" + fragments.length + \" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.\");\n actualFragmentName = fragments[0].name.value;\n }\n var query = __assign(__assign({}, document), { definitions: __spreadArrays([\n {\n kind: 'OperationDefinition',\n operation: 'query',\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'FragmentSpread',\n name: {\n kind: 'Name',\n value: actualFragmentName,\n },\n },\n ],\n },\n }\n ], document.definitions) });\n return query;\n}\nexport function createFragmentMap(fragments) {\n if (fragments === void 0) { fragments = []; }\n var symTable = {};\n fragments.forEach(function (fragment) {\n symTable[fragment.name.value] = fragment;\n });\n return symTable;\n}\nexport function getFragmentFromSelection(selection, fragmentMap) {\n switch (selection.kind) {\n case 'InlineFragment':\n return selection;\n case 'FragmentSpread': {\n var fragment = fragmentMap && fragmentMap[selection.name.value];\n process.env.NODE_ENV === \"production\" ? invariant(fragment, 44) : invariant(fragment, \"No fragment named \" + selection.name.value + \".\");\n return fragment;\n }\n default:\n return null;\n }\n}\n//# sourceMappingURL=fragments.js.map","import {\n DocumentNode,\n FragmentDefinitionNode,\n InlineFragmentNode,\n SelectionNode\n} from 'graphql';\nimport { invariant, InvariantError } from 'ts-invariant';\n\n/**\n * Returns a query document which adds a single query operation that only\n * spreads the target fragment inside of it.\n *\n * So for example a document of:\n *\n * ```graphql\n * fragment foo on Foo { a b c }\n * ```\n *\n * Turns into:\n *\n * ```graphql\n * { ...foo }\n *\n * fragment foo on Foo { a b c }\n * ```\n *\n * The target fragment will either be the only fragment in the document, or a\n * fragment specified by the provided `fragmentName`. If there is more than one\n * fragment, but a `fragmentName` was not defined then an error will be thrown.\n */\nexport function getFragmentQueryDocument(\n document: DocumentNode,\n fragmentName?: string,\n): DocumentNode {\n let actualFragmentName = fragmentName;\n\n // Build an array of all our fragment definitions that will be used for\n // validations. We also do some validations on the other definitions in the\n // document while building this list.\n const fragments: Array = [];\n document.definitions.forEach(definition => {\n // Throw an error if we encounter an operation definition because we will\n // define our own operation definition later on.\n if (definition.kind === 'OperationDefinition') {\n throw new InvariantError(\n `Found a ${definition.operation} operation${\n definition.name ? ` named '${definition.name.value}'` : ''\n }. ` +\n 'No operations are allowed when using a fragment as a query. Only fragments are allowed.',\n );\n }\n // Add our definition to the fragments array if it is a fragment\n // definition.\n if (definition.kind === 'FragmentDefinition') {\n fragments.push(definition);\n }\n });\n\n // If the user did not give us a fragment name then let us try to get a\n // name from a single fragment in the definition.\n if (typeof actualFragmentName === 'undefined') {\n invariant(\n fragments.length === 1,\n `Found ${\n fragments.length\n } fragments. \\`fragmentName\\` must be provided when there is not exactly 1 fragment.`,\n );\n actualFragmentName = fragments[0].name.value;\n }\n\n // Generate a query document with an operation that simply spreads the\n // fragment inside of it.\n const query: DocumentNode = {\n ...document,\n definitions: [\n {\n kind: 'OperationDefinition',\n operation: 'query',\n selectionSet: {\n kind: 'SelectionSet',\n selections: [\n {\n kind: 'FragmentSpread',\n name: {\n kind: 'Name',\n value: actualFragmentName,\n },\n },\n ],\n },\n },\n ...document.definitions,\n ],\n };\n\n return query;\n}\n\n/**\n * This is an interface that describes a map from fragment names to fragment definitions.\n */\nexport interface FragmentMap {\n [fragmentName: string]: FragmentDefinitionNode;\n}\n\n// Utility function that takes a list of fragment definitions and makes a hash out of them\n// that maps the name of the fragment to the fragment definition.\nexport function createFragmentMap(\n fragments: FragmentDefinitionNode[] = [],\n): FragmentMap {\n const symTable: FragmentMap = {};\n fragments.forEach(fragment => {\n symTable[fragment.name.value] = fragment;\n });\n return symTable;\n}\n\nexport function getFragmentFromSelection(\n selection: SelectionNode,\n fragmentMap?: FragmentMap,\n): InlineFragmentNode | FragmentDefinitionNode | null {\n switch (selection.kind) {\n case 'InlineFragment':\n return selection;\n case 'FragmentSpread': {\n const fragment = fragmentMap && fragmentMap[selection.name.value];\n invariant(fragment, `No fragment named ${selection.name.value}.`);\n return fragment!;\n }\n default:\n return null;\n }\n}\n","import { invariant, InvariantError } from 'ts-invariant';\nimport { valueToObjectRepresentation } from \"./storeUtils.js\";\nexport function checkDocument(doc) {\n process.env.NODE_ENV === \"production\" ? invariant(doc && doc.kind === 'Document', 45) : invariant(doc && doc.kind === 'Document', \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\");\n var operations = doc.definitions\n .filter(function (d) { return d.kind !== 'FragmentDefinition'; })\n .map(function (definition) {\n if (definition.kind !== 'OperationDefinition') {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(46) : new InvariantError(\"Schema type definitions not allowed in queries. Found: \\\"\" + definition.kind + \"\\\"\");\n }\n return definition;\n });\n process.env.NODE_ENV === \"production\" ? invariant(operations.length <= 1, 47) : invariant(operations.length <= 1, \"Ambiguous GraphQL document: contains \" + operations.length + \" operations\");\n return doc;\n}\nexport function getOperationDefinition(doc) {\n checkDocument(doc);\n return doc.definitions.filter(function (definition) { return definition.kind === 'OperationDefinition'; })[0];\n}\nexport function getOperationName(doc) {\n return (doc.definitions\n .filter(function (definition) {\n return definition.kind === 'OperationDefinition' && definition.name;\n })\n .map(function (x) { return x.name.value; })[0] || null);\n}\nexport function getFragmentDefinitions(doc) {\n return doc.definitions.filter(function (definition) { return definition.kind === 'FragmentDefinition'; });\n}\nexport function getQueryDefinition(doc) {\n var queryDef = getOperationDefinition(doc);\n process.env.NODE_ENV === \"production\" ? invariant(queryDef && queryDef.operation === 'query', 48) : invariant(queryDef && queryDef.operation === 'query', 'Must contain a query definition.');\n return queryDef;\n}\nexport function getFragmentDefinition(doc) {\n process.env.NODE_ENV === \"production\" ? invariant(doc.kind === 'Document', 49) : invariant(doc.kind === 'Document', \"Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \\\"gql\\\" tag? http://docs.apollostack.com/apollo-client/core.html#gql\");\n process.env.NODE_ENV === \"production\" ? invariant(doc.definitions.length <= 1, 50) : invariant(doc.definitions.length <= 1, 'Fragment must have exactly one definition.');\n var fragmentDef = doc.definitions[0];\n process.env.NODE_ENV === \"production\" ? invariant(fragmentDef.kind === 'FragmentDefinition', 51) : invariant(fragmentDef.kind === 'FragmentDefinition', 'Must be a fragment definition.');\n return fragmentDef;\n}\nexport function getMainDefinition(queryDoc) {\n checkDocument(queryDoc);\n var fragmentDefinition;\n for (var _i = 0, _a = queryDoc.definitions; _i < _a.length; _i++) {\n var definition = _a[_i];\n if (definition.kind === 'OperationDefinition') {\n var operation = definition.operation;\n if (operation === 'query' ||\n operation === 'mutation' ||\n operation === 'subscription') {\n return definition;\n }\n }\n if (definition.kind === 'FragmentDefinition' && !fragmentDefinition) {\n fragmentDefinition = definition;\n }\n }\n if (fragmentDefinition) {\n return fragmentDefinition;\n }\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(52) : new InvariantError('Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.');\n}\nexport function getDefaultValues(definition) {\n var defaultValues = Object.create(null);\n var defs = definition && definition.variableDefinitions;\n if (defs && defs.length) {\n defs.forEach(function (def) {\n if (def.defaultValue) {\n valueToObjectRepresentation(defaultValues, def.variable.name, def.defaultValue);\n }\n });\n }\n return defaultValues;\n}\n//# sourceMappingURL=getFromAST.js.map","import {\n DocumentNode,\n OperationDefinitionNode,\n FragmentDefinitionNode,\n ValueNode,\n} from 'graphql';\n\nimport { invariant, InvariantError } from 'ts-invariant';\n\nimport { valueToObjectRepresentation } from './storeUtils';\n\n// Checks the document for errors and throws an exception if there is an error.\nexport function checkDocument(doc: DocumentNode) {\n invariant(\n doc && doc.kind === 'Document',\n `Expecting a parsed GraphQL document. Perhaps you need to wrap the query \\\nstring in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql`,\n );\n\n const operations = doc.definitions\n .filter(d => d.kind !== 'FragmentDefinition')\n .map(definition => {\n if (definition.kind !== 'OperationDefinition') {\n throw new InvariantError(\n `Schema type definitions not allowed in queries. Found: \"${\n definition.kind\n }\"`,\n );\n }\n return definition;\n });\n\n invariant(\n operations.length <= 1,\n `Ambiguous GraphQL document: contains ${operations.length} operations`,\n );\n\n return doc;\n}\n\nexport function getOperationDefinition(\n doc: DocumentNode,\n): OperationDefinitionNode | undefined {\n checkDocument(doc);\n return doc.definitions.filter(\n definition => definition.kind === 'OperationDefinition',\n )[0] as OperationDefinitionNode;\n}\n\nexport function getOperationName(doc: DocumentNode): string | null {\n return (\n doc.definitions\n .filter(\n definition =>\n definition.kind === 'OperationDefinition' && definition.name,\n )\n .map((x: OperationDefinitionNode) => x!.name!.value)[0] || null\n );\n}\n\n// Returns the FragmentDefinitions from a particular document as an array\nexport function getFragmentDefinitions(\n doc: DocumentNode,\n): FragmentDefinitionNode[] {\n return doc.definitions.filter(\n definition => definition.kind === 'FragmentDefinition',\n ) as FragmentDefinitionNode[];\n}\n\nexport function getQueryDefinition(doc: DocumentNode): OperationDefinitionNode {\n const queryDef = getOperationDefinition(doc) as OperationDefinitionNode;\n\n invariant(\n queryDef && queryDef.operation === 'query',\n 'Must contain a query definition.',\n );\n\n return queryDef;\n}\n\nexport function getFragmentDefinition(\n doc: DocumentNode,\n): FragmentDefinitionNode {\n invariant(\n doc.kind === 'Document',\n `Expecting a parsed GraphQL document. Perhaps you need to wrap the query \\\nstring in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql`,\n );\n\n invariant(\n doc.definitions.length <= 1,\n 'Fragment must have exactly one definition.',\n );\n\n const fragmentDef = doc.definitions[0] as FragmentDefinitionNode;\n\n invariant(\n fragmentDef.kind === 'FragmentDefinition',\n 'Must be a fragment definition.',\n );\n\n return fragmentDef as FragmentDefinitionNode;\n}\n\n/**\n * Returns the first operation definition found in this document.\n * If no operation definition is found, the first fragment definition will be returned.\n * If no definitions are found, an error will be thrown.\n */\nexport function getMainDefinition(\n queryDoc: DocumentNode,\n): OperationDefinitionNode | FragmentDefinitionNode {\n checkDocument(queryDoc);\n\n let fragmentDefinition;\n\n for (let definition of queryDoc.definitions) {\n if (definition.kind === 'OperationDefinition') {\n const operation = (definition as OperationDefinitionNode).operation;\n if (\n operation === 'query' ||\n operation === 'mutation' ||\n operation === 'subscription'\n ) {\n return definition as OperationDefinitionNode;\n }\n }\n if (definition.kind === 'FragmentDefinition' && !fragmentDefinition) {\n // we do this because we want to allow multiple fragment definitions\n // to precede an operation definition.\n fragmentDefinition = definition as FragmentDefinitionNode;\n }\n }\n\n if (fragmentDefinition) {\n return fragmentDefinition;\n }\n\n throw new InvariantError(\n 'Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.',\n );\n}\n\nexport function getDefaultValues(\n definition: OperationDefinitionNode | undefined,\n): Record {\n const defaultValues = Object.create(null);\n const defs = definition && definition.variableDefinitions;\n if (defs && defs.length) {\n defs.forEach(def => {\n if (def.defaultValue) {\n valueToObjectRepresentation(\n defaultValues,\n def.variable.name,\n def.defaultValue as ValueNode,\n );\n }\n });\n }\n return defaultValues;\n}\n","import stringify from 'fast-json-stable-stringify';\nimport { InvariantError } from 'ts-invariant';\nimport { getFragmentFromSelection } from \"./fragments.js\";\nexport function makeReference(id) {\n return { __ref: String(id) };\n}\nexport function isReference(obj) {\n return Boolean(obj && typeof obj === 'object' && typeof obj.__ref === 'string');\n}\nfunction isStringValue(value) {\n return value.kind === 'StringValue';\n}\nfunction isBooleanValue(value) {\n return value.kind === 'BooleanValue';\n}\nfunction isIntValue(value) {\n return value.kind === 'IntValue';\n}\nfunction isFloatValue(value) {\n return value.kind === 'FloatValue';\n}\nfunction isVariable(value) {\n return value.kind === 'Variable';\n}\nfunction isObjectValue(value) {\n return value.kind === 'ObjectValue';\n}\nfunction isListValue(value) {\n return value.kind === 'ListValue';\n}\nfunction isEnumValue(value) {\n return value.kind === 'EnumValue';\n}\nfunction isNullValue(value) {\n return value.kind === 'NullValue';\n}\nexport function valueToObjectRepresentation(argObj, name, value, variables) {\n if (isIntValue(value) || isFloatValue(value)) {\n argObj[name.value] = Number(value.value);\n }\n else if (isBooleanValue(value) || isStringValue(value)) {\n argObj[name.value] = value.value;\n }\n else if (isObjectValue(value)) {\n var nestedArgObj_1 = {};\n value.fields.map(function (obj) {\n return valueToObjectRepresentation(nestedArgObj_1, obj.name, obj.value, variables);\n });\n argObj[name.value] = nestedArgObj_1;\n }\n else if (isVariable(value)) {\n var variableValue = (variables || {})[value.name.value];\n argObj[name.value] = variableValue;\n }\n else if (isListValue(value)) {\n argObj[name.value] = value.values.map(function (listValue) {\n var nestedArgArrayObj = {};\n valueToObjectRepresentation(nestedArgArrayObj, name, listValue, variables);\n return nestedArgArrayObj[name.value];\n });\n }\n else if (isEnumValue(value)) {\n argObj[name.value] = value.value;\n }\n else if (isNullValue(value)) {\n argObj[name.value] = null;\n }\n else {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(53) : new InvariantError(\"The inline argument \\\"\" + name.value + \"\\\" of kind \\\"\" + value.kind + \"\\\"\" +\n 'is not supported. Use variables instead of inline arguments to ' +\n 'overcome this limitation.');\n }\n}\nexport function storeKeyNameFromField(field, variables) {\n var directivesObj = null;\n if (field.directives) {\n directivesObj = {};\n field.directives.forEach(function (directive) {\n directivesObj[directive.name.value] = {};\n if (directive.arguments) {\n directive.arguments.forEach(function (_a) {\n var name = _a.name, value = _a.value;\n return valueToObjectRepresentation(directivesObj[directive.name.value], name, value, variables);\n });\n }\n });\n }\n var argObj = null;\n if (field.arguments && field.arguments.length) {\n argObj = {};\n field.arguments.forEach(function (_a) {\n var name = _a.name, value = _a.value;\n return valueToObjectRepresentation(argObj, name, value, variables);\n });\n }\n return getStoreKeyName(field.name.value, argObj, directivesObj);\n}\nvar KNOWN_DIRECTIVES = [\n 'connection',\n 'include',\n 'skip',\n 'client',\n 'rest',\n 'export',\n];\nexport function getStoreKeyName(fieldName, args, directives) {\n if (args &&\n directives &&\n directives['connection'] &&\n directives['connection']['key']) {\n if (directives['connection']['filter'] &&\n directives['connection']['filter'].length > 0) {\n var filterKeys = directives['connection']['filter']\n ? directives['connection']['filter']\n : [];\n filterKeys.sort();\n var filteredArgs_1 = {};\n filterKeys.forEach(function (key) {\n filteredArgs_1[key] = args[key];\n });\n return directives['connection']['key'] + \"(\" + JSON.stringify(filteredArgs_1) + \")\";\n }\n else {\n return directives['connection']['key'];\n }\n }\n var completeFieldName = fieldName;\n if (args) {\n var stringifiedArgs = stringify(args);\n completeFieldName += \"(\" + stringifiedArgs + \")\";\n }\n if (directives) {\n Object.keys(directives).forEach(function (key) {\n if (KNOWN_DIRECTIVES.indexOf(key) !== -1)\n return;\n if (directives[key] && Object.keys(directives[key]).length) {\n completeFieldName += \"@\" + key + \"(\" + JSON.stringify(directives[key]) + \")\";\n }\n else {\n completeFieldName += \"@\" + key;\n }\n });\n }\n return completeFieldName;\n}\nexport function argumentsObjectFromField(field, variables) {\n if (field.arguments && field.arguments.length) {\n var argObj_1 = {};\n field.arguments.forEach(function (_a) {\n var name = _a.name, value = _a.value;\n return valueToObjectRepresentation(argObj_1, name, value, variables);\n });\n return argObj_1;\n }\n return null;\n}\nexport function resultKeyNameFromField(field) {\n return field.alias ? field.alias.value : field.name.value;\n}\nexport function getTypenameFromResult(result, selectionSet, fragmentMap) {\n if (typeof result.__typename === 'string') {\n return result.__typename;\n }\n for (var _i = 0, _a = selectionSet.selections; _i < _a.length; _i++) {\n var selection = _a[_i];\n if (isField(selection)) {\n if (selection.name.value === '__typename') {\n return result[resultKeyNameFromField(selection)];\n }\n }\n else {\n var typename = getTypenameFromResult(result, getFragmentFromSelection(selection, fragmentMap).selectionSet, fragmentMap);\n if (typeof typename === 'string') {\n return typename;\n }\n }\n }\n}\nexport function isField(selection) {\n return selection.kind === 'Field';\n}\nexport function isInlineFragment(selection) {\n return selection.kind === 'InlineFragment';\n}\n//# sourceMappingURL=storeUtils.js.map","import {\n DirectiveNode,\n FieldNode,\n IntValueNode,\n FloatValueNode,\n StringValueNode,\n BooleanValueNode,\n ObjectValueNode,\n ListValueNode,\n EnumValueNode,\n NullValueNode,\n VariableNode,\n InlineFragmentNode,\n ValueNode,\n SelectionNode,\n NameNode,\n SelectionSetNode,\n} from 'graphql';\n\nimport stringify from 'fast-json-stable-stringify';\nimport { InvariantError } from 'ts-invariant';\nimport { FragmentMap, getFragmentFromSelection } from './fragments';\n\nexport interface Reference {\n readonly __ref: string;\n}\n\nexport function makeReference(id: string): Reference {\n return { __ref: String(id) };\n}\n\nexport function isReference(obj: any): obj is Reference {\n return Boolean(obj && typeof obj === 'object' && typeof obj.__ref === 'string');\n}\n\nexport type StoreValue =\n | number\n | string\n | string[]\n | Reference\n | Reference[]\n | null\n | undefined\n | void\n | Object;\n\nexport interface StoreObject {\n __typename?: string;\n [storeFieldName: string]: StoreValue;\n}\n\nfunction isStringValue(value: ValueNode): value is StringValueNode {\n return value.kind === 'StringValue';\n}\n\nfunction isBooleanValue(value: ValueNode): value is BooleanValueNode {\n return value.kind === 'BooleanValue';\n}\n\nfunction isIntValue(value: ValueNode): value is IntValueNode {\n return value.kind === 'IntValue';\n}\n\nfunction isFloatValue(value: ValueNode): value is FloatValueNode {\n return value.kind === 'FloatValue';\n}\n\nfunction isVariable(value: ValueNode): value is VariableNode {\n return value.kind === 'Variable';\n}\n\nfunction isObjectValue(value: ValueNode): value is ObjectValueNode {\n return value.kind === 'ObjectValue';\n}\n\nfunction isListValue(value: ValueNode): value is ListValueNode {\n return value.kind === 'ListValue';\n}\n\nfunction isEnumValue(value: ValueNode): value is EnumValueNode {\n return value.kind === 'EnumValue';\n}\n\nfunction isNullValue(value: ValueNode): value is NullValueNode {\n return value.kind === 'NullValue';\n}\n\nexport function valueToObjectRepresentation(\n argObj: any,\n name: NameNode,\n value: ValueNode,\n variables?: Object,\n) {\n if (isIntValue(value) || isFloatValue(value)) {\n argObj[name.value] = Number(value.value);\n } else if (isBooleanValue(value) || isStringValue(value)) {\n argObj[name.value] = value.value;\n } else if (isObjectValue(value)) {\n const nestedArgObj = {};\n value.fields.map(obj =>\n valueToObjectRepresentation(nestedArgObj, obj.name, obj.value, variables),\n );\n argObj[name.value] = nestedArgObj;\n } else if (isVariable(value)) {\n const variableValue = (variables || ({} as any))[value.name.value];\n argObj[name.value] = variableValue;\n } else if (isListValue(value)) {\n argObj[name.value] = value.values.map(listValue => {\n const nestedArgArrayObj = {};\n valueToObjectRepresentation(\n nestedArgArrayObj,\n name,\n listValue,\n variables,\n );\n return (nestedArgArrayObj as any)[name.value];\n });\n } else if (isEnumValue(value)) {\n argObj[name.value] = (value as EnumValueNode).value;\n } else if (isNullValue(value)) {\n argObj[name.value] = null;\n } else {\n throw new InvariantError(\n `The inline argument \"${name.value}\" of kind \"${(value as any).kind}\"` +\n 'is not supported. Use variables instead of inline arguments to ' +\n 'overcome this limitation.',\n );\n }\n}\n\nexport function storeKeyNameFromField(\n field: FieldNode,\n variables?: Object,\n): string {\n let directivesObj: any = null;\n if (field.directives) {\n directivesObj = {};\n field.directives.forEach(directive => {\n directivesObj[directive.name.value] = {};\n\n if (directive.arguments) {\n directive.arguments.forEach(({ name, value }) =>\n valueToObjectRepresentation(\n directivesObj[directive.name.value],\n name,\n value,\n variables,\n ),\n );\n }\n });\n }\n\n let argObj: any = null;\n if (field.arguments && field.arguments.length) {\n argObj = {};\n field.arguments.forEach(({ name, value }) =>\n valueToObjectRepresentation(argObj, name, value, variables),\n );\n }\n\n return getStoreKeyName(field.name.value, argObj, directivesObj);\n}\n\nexport type Directives = {\n [directiveName: string]: {\n [argName: string]: any;\n };\n};\n\nconst KNOWN_DIRECTIVES: string[] = [\n 'connection',\n 'include',\n 'skip',\n 'client',\n 'rest',\n 'export',\n];\n\nexport function getStoreKeyName(\n fieldName: string,\n args?: Record | null,\n directives?: Directives,\n): string {\n if (\n args &&\n directives &&\n directives['connection'] &&\n directives['connection']['key']\n ) {\n if (\n directives['connection']['filter'] &&\n (directives['connection']['filter'] as string[]).length > 0\n ) {\n const filterKeys = directives['connection']['filter']\n ? (directives['connection']['filter'] as string[])\n : [];\n filterKeys.sort();\n\n const filteredArgs = {} as { [key: string]: any };\n filterKeys.forEach(key => {\n filteredArgs[key] = args[key];\n });\n\n return `${directives['connection']['key']}(${JSON.stringify(\n filteredArgs,\n )})`;\n } else {\n return directives['connection']['key'];\n }\n }\n\n let completeFieldName: string = fieldName;\n\n if (args) {\n // We can't use `JSON.stringify` here since it's non-deterministic,\n // and can lead to different store key names being created even though\n // the `args` object used during creation has the same properties/values.\n const stringifiedArgs: string = stringify(args);\n completeFieldName += `(${stringifiedArgs})`;\n }\n\n if (directives) {\n Object.keys(directives).forEach(key => {\n if (KNOWN_DIRECTIVES.indexOf(key) !== -1) return;\n if (directives[key] && Object.keys(directives[key]).length) {\n completeFieldName += `@${key}(${JSON.stringify(directives[key])})`;\n } else {\n completeFieldName += `@${key}`;\n }\n });\n }\n\n return completeFieldName;\n}\n\nexport function argumentsObjectFromField(\n field: FieldNode | DirectiveNode,\n variables?: Record,\n): Object | null {\n if (field.arguments && field.arguments.length) {\n const argObj: Object = {};\n field.arguments.forEach(({ name, value }) =>\n valueToObjectRepresentation(argObj, name, value, variables),\n );\n return argObj;\n }\n return null;\n}\n\nexport function resultKeyNameFromField(field: FieldNode): string {\n return field.alias ? field.alias.value : field.name.value;\n}\n\nexport function getTypenameFromResult(\n result: Record,\n selectionSet: SelectionSetNode,\n fragmentMap?: FragmentMap,\n): string | undefined {\n if (typeof result.__typename === 'string') {\n return result.__typename;\n }\n\n for (const selection of selectionSet.selections) {\n if (isField(selection)) {\n if (selection.name.value === '__typename') {\n return result[resultKeyNameFromField(selection)];\n }\n } else {\n const typename = getTypenameFromResult(\n result,\n getFragmentFromSelection(selection, fragmentMap)!.selectionSet,\n fragmentMap,\n );\n if (typeof typename === 'string') {\n return typename;\n }\n }\n }\n}\n\nexport function isField(selection: SelectionNode): selection is FieldNode {\n return selection.kind === 'Field';\n}\n\nexport function isInlineFragment(\n selection: SelectionNode,\n): selection is InlineFragmentNode {\n return selection.kind === 'InlineFragment';\n}\n\nexport type VariableValue = (node: VariableNode) => any;\n","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","import { __assign, __spreadArrays } from \"tslib\";\nimport { visit, } from 'graphql';\nimport { invariant } from 'ts-invariant';\nimport { checkDocument, getOperationDefinition, getFragmentDefinition, getFragmentDefinitions, getMainDefinition, } from \"./getFromAST.js\";\nimport { filterInPlace } from \"../common/filterInPlace.js\";\nimport { isField, isInlineFragment } from \"./storeUtils.js\";\nimport { createFragmentMap, } from \"./fragments.js\";\nvar TYPENAME_FIELD = {\n kind: 'Field',\n name: {\n kind: 'Name',\n value: '__typename',\n },\n};\nfunction isEmpty(op, fragments) {\n return op.selectionSet.selections.every(function (selection) {\n return selection.kind === 'FragmentSpread' &&\n isEmpty(fragments[selection.name.value], fragments);\n });\n}\nfunction nullIfDocIsEmpty(doc) {\n return isEmpty(getOperationDefinition(doc) || getFragmentDefinition(doc), createFragmentMap(getFragmentDefinitions(doc)))\n ? null\n : doc;\n}\nfunction getDirectiveMatcher(directives) {\n return function directiveMatcher(directive) {\n return directives.some(function (dir) {\n return (dir.name && dir.name === directive.name.value) ||\n (dir.test && dir.test(directive));\n });\n };\n}\nexport function removeDirectivesFromDocument(directives, doc) {\n var variablesInUse = Object.create(null);\n var variablesToRemove = [];\n var fragmentSpreadsInUse = Object.create(null);\n var fragmentSpreadsToRemove = [];\n var modifiedDoc = nullIfDocIsEmpty(visit(doc, {\n Variable: {\n enter: function (node, _key, parent) {\n if (parent.kind !== 'VariableDefinition') {\n variablesInUse[node.name.value] = true;\n }\n },\n },\n Field: {\n enter: function (node) {\n if (directives && node.directives) {\n var shouldRemoveField = directives.some(function (directive) { return directive.remove; });\n if (shouldRemoveField &&\n node.directives &&\n node.directives.some(getDirectiveMatcher(directives))) {\n if (node.arguments) {\n node.arguments.forEach(function (arg) {\n if (arg.value.kind === 'Variable') {\n variablesToRemove.push({\n name: arg.value.name.value,\n });\n }\n });\n }\n if (node.selectionSet) {\n getAllFragmentSpreadsFromSelectionSet(node.selectionSet).forEach(function (frag) {\n fragmentSpreadsToRemove.push({\n name: frag.name.value,\n });\n });\n }\n return null;\n }\n }\n },\n },\n FragmentSpread: {\n enter: function (node) {\n fragmentSpreadsInUse[node.name.value] = true;\n },\n },\n Directive: {\n enter: function (node) {\n if (getDirectiveMatcher(directives)(node)) {\n return null;\n }\n },\n },\n }));\n if (modifiedDoc &&\n filterInPlace(variablesToRemove, function (v) { return !!v.name && !variablesInUse[v.name]; }).length) {\n modifiedDoc = removeArgumentsFromDocument(variablesToRemove, modifiedDoc);\n }\n if (modifiedDoc &&\n filterInPlace(fragmentSpreadsToRemove, function (fs) { return !!fs.name && !fragmentSpreadsInUse[fs.name]; })\n .length) {\n modifiedDoc = removeFragmentSpreadFromDocument(fragmentSpreadsToRemove, modifiedDoc);\n }\n return modifiedDoc;\n}\nexport function addTypenameToDocument(doc) {\n return visit(checkDocument(doc), {\n SelectionSet: {\n enter: function (node, _key, parent) {\n if (parent &&\n parent.kind === 'OperationDefinition') {\n return;\n }\n var selections = node.selections;\n if (!selections) {\n return;\n }\n var skip = selections.some(function (selection) {\n return (isField(selection) &&\n (selection.name.value === '__typename' ||\n selection.name.value.lastIndexOf('__', 0) === 0));\n });\n if (skip) {\n return;\n }\n var field = parent;\n if (isField(field) &&\n field.directives &&\n field.directives.some(function (d) { return d.name.value === 'export'; })) {\n return;\n }\n return __assign(__assign({}, node), { selections: __spreadArrays(selections, [TYPENAME_FIELD]) });\n },\n },\n });\n}\naddTypenameToDocument.added = function (field) {\n return field === TYPENAME_FIELD;\n};\nvar connectionRemoveConfig = {\n test: function (directive) {\n var willRemove = directive.name.value === 'connection';\n if (willRemove) {\n if (!directive.arguments ||\n !directive.arguments.some(function (arg) { return arg.name.value === 'key'; })) {\n process.env.NODE_ENV === \"production\" || invariant.warn('Removing an @connection directive even though it does not have a key. ' +\n 'You may want to use the key parameter to specify a store key.');\n }\n }\n return willRemove;\n },\n};\nexport function removeConnectionDirectiveFromDocument(doc) {\n return removeDirectivesFromDocument([connectionRemoveConfig], checkDocument(doc));\n}\nfunction hasDirectivesInSelectionSet(directives, selectionSet, nestedCheck) {\n if (nestedCheck === void 0) { nestedCheck = true; }\n return (!!selectionSet &&\n selectionSet.selections &&\n selectionSet.selections.some(function (selection) {\n return hasDirectivesInSelection(directives, selection, nestedCheck);\n }));\n}\nfunction hasDirectivesInSelection(directives, selection, nestedCheck) {\n if (nestedCheck === void 0) { nestedCheck = true; }\n if (!isField(selection)) {\n return true;\n }\n if (!selection.directives) {\n return false;\n }\n return (selection.directives.some(getDirectiveMatcher(directives)) ||\n (nestedCheck &&\n hasDirectivesInSelectionSet(directives, selection.selectionSet, nestedCheck)));\n}\nfunction getArgumentMatcher(config) {\n return function argumentMatcher(argument) {\n return config.some(function (aConfig) {\n return argument.value &&\n argument.value.kind === 'Variable' &&\n argument.value.name &&\n (aConfig.name === argument.value.name.value ||\n (aConfig.test && aConfig.test(argument)));\n });\n };\n}\nexport function removeArgumentsFromDocument(config, doc) {\n var argMatcher = getArgumentMatcher(config);\n return nullIfDocIsEmpty(visit(doc, {\n OperationDefinition: {\n enter: function (node) {\n return __assign(__assign({}, node), { variableDefinitions: node.variableDefinitions ? node.variableDefinitions.filter(function (varDef) {\n return !config.some(function (arg) { return arg.name === varDef.variable.name.value; });\n }) : [] });\n },\n },\n Field: {\n enter: function (node) {\n var shouldRemoveField = config.some(function (argConfig) { return argConfig.remove; });\n if (shouldRemoveField) {\n var argMatchCount_1 = 0;\n if (node.arguments) {\n node.arguments.forEach(function (arg) {\n if (argMatcher(arg)) {\n argMatchCount_1 += 1;\n }\n });\n }\n if (argMatchCount_1 === 1) {\n return null;\n }\n }\n },\n },\n Argument: {\n enter: function (node) {\n if (argMatcher(node)) {\n return null;\n }\n },\n },\n }));\n}\nexport function removeFragmentSpreadFromDocument(config, doc) {\n function enter(node) {\n if (config.some(function (def) { return def.name === node.name.value; })) {\n return null;\n }\n }\n return nullIfDocIsEmpty(visit(doc, {\n FragmentSpread: { enter: enter },\n FragmentDefinition: { enter: enter },\n }));\n}\nfunction getAllFragmentSpreadsFromSelectionSet(selectionSet) {\n var allFragments = [];\n selectionSet.selections.forEach(function (selection) {\n if ((isField(selection) || isInlineFragment(selection)) &&\n selection.selectionSet) {\n getAllFragmentSpreadsFromSelectionSet(selection.selectionSet).forEach(function (frag) { return allFragments.push(frag); });\n }\n else if (selection.kind === 'FragmentSpread') {\n allFragments.push(selection);\n }\n });\n return allFragments;\n}\nexport function buildQueryFromSelectionSet(document) {\n var definition = getMainDefinition(document);\n var definitionOperation = definition.operation;\n if (definitionOperation === 'query') {\n return document;\n }\n var modifiedDoc = visit(document, {\n OperationDefinition: {\n enter: function (node) {\n return __assign(__assign({}, node), { operation: 'query' });\n },\n },\n });\n return modifiedDoc;\n}\nexport function removeClientSetsFromDocument(document) {\n checkDocument(document);\n var modifiedDoc = removeDirectivesFromDocument([\n {\n test: function (directive) { return directive.name.value === 'client'; },\n remove: true,\n },\n ], document);\n if (modifiedDoc) {\n modifiedDoc = visit(modifiedDoc, {\n FragmentDefinition: {\n enter: function (node) {\n if (node.selectionSet) {\n var isTypenameOnly = node.selectionSet.selections.every(function (selection) {\n return isField(selection) && selection.name.value === '__typename';\n });\n if (isTypenameOnly) {\n return null;\n }\n }\n },\n },\n });\n }\n return modifiedDoc;\n}\n//# sourceMappingURL=transform.js.map","import {\n DocumentNode,\n SelectionNode,\n SelectionSetNode,\n OperationDefinitionNode,\n FieldNode,\n DirectiveNode,\n FragmentDefinitionNode,\n ArgumentNode,\n FragmentSpreadNode,\n VariableDefinitionNode,\n VariableNode,\n visit,\n} from 'graphql';\nimport { invariant } from 'ts-invariant';\n\nimport {\n checkDocument,\n getOperationDefinition,\n getFragmentDefinition,\n getFragmentDefinitions,\n getMainDefinition,\n} from './getFromAST';\nimport { filterInPlace } from '../common/filterInPlace';\nimport { isField, isInlineFragment } from './storeUtils';\nimport {\n createFragmentMap,\n FragmentMap,\n} from './fragments';\n\nexport type RemoveNodeConfig = {\n name?: string;\n test?: (node: N) => boolean;\n remove?: boolean;\n};\n\nexport type GetNodeConfig = {\n name?: string;\n test?: (node: N) => boolean;\n};\n\nexport type RemoveDirectiveConfig = RemoveNodeConfig;\nexport type GetDirectiveConfig = GetNodeConfig;\nexport type RemoveArgumentsConfig = RemoveNodeConfig;\nexport type GetFragmentSpreadConfig = GetNodeConfig;\nexport type RemoveFragmentSpreadConfig = RemoveNodeConfig;\nexport type RemoveFragmentDefinitionConfig = RemoveNodeConfig<\n FragmentDefinitionNode\n>;\nexport type RemoveVariableDefinitionConfig = RemoveNodeConfig<\n VariableDefinitionNode\n>;\n\nconst TYPENAME_FIELD: FieldNode = {\n kind: 'Field',\n name: {\n kind: 'Name',\n value: '__typename',\n },\n};\n\nfunction isEmpty(\n op: OperationDefinitionNode | FragmentDefinitionNode,\n fragments: FragmentMap,\n): boolean {\n return op.selectionSet.selections.every(\n selection =>\n selection.kind === 'FragmentSpread' &&\n isEmpty(fragments[selection.name.value], fragments),\n );\n}\n\nfunction nullIfDocIsEmpty(doc: DocumentNode) {\n return isEmpty(\n getOperationDefinition(doc) || getFragmentDefinition(doc),\n createFragmentMap(getFragmentDefinitions(doc)),\n )\n ? null\n : doc;\n}\n\nfunction getDirectiveMatcher(\n directives: (RemoveDirectiveConfig | GetDirectiveConfig)[],\n) {\n return function directiveMatcher(directive: DirectiveNode) {\n return directives.some(\n dir =>\n (dir.name && dir.name === directive.name.value) ||\n (dir.test && dir.test(directive)),\n );\n };\n}\n\nexport function removeDirectivesFromDocument(\n directives: RemoveDirectiveConfig[],\n doc: DocumentNode,\n): DocumentNode | null {\n const variablesInUse: Record = Object.create(null);\n let variablesToRemove: RemoveArgumentsConfig[] = [];\n\n const fragmentSpreadsInUse: Record = Object.create(null);\n let fragmentSpreadsToRemove: RemoveFragmentSpreadConfig[] = [];\n\n let modifiedDoc = nullIfDocIsEmpty(\n visit(doc, {\n Variable: {\n enter(node, _key, parent) {\n // Store each variable that's referenced as part of an argument\n // (excluding operation definition variables), so we know which\n // variables are being used. If we later want to remove a variable\n // we'll first check to see if it's being used, before continuing with\n // the removal.\n if (\n (parent as VariableDefinitionNode).kind !== 'VariableDefinition'\n ) {\n variablesInUse[node.name.value] = true;\n }\n },\n },\n\n Field: {\n enter(node) {\n if (directives && node.directives) {\n // If `remove` is set to true for a directive, and a directive match\n // is found for a field, remove the field as well.\n const shouldRemoveField = directives.some(\n directive => directive.remove,\n );\n\n if (\n shouldRemoveField &&\n node.directives &&\n node.directives.some(getDirectiveMatcher(directives))\n ) {\n if (node.arguments) {\n // Store field argument variables so they can be removed\n // from the operation definition.\n node.arguments.forEach(arg => {\n if (arg.value.kind === 'Variable') {\n variablesToRemove.push({\n name: (arg.value as VariableNode).name.value,\n });\n }\n });\n }\n\n if (node.selectionSet) {\n // Store fragment spread names so they can be removed from the\n // document.\n getAllFragmentSpreadsFromSelectionSet(node.selectionSet).forEach(\n frag => {\n fragmentSpreadsToRemove.push({\n name: frag.name.value,\n });\n },\n );\n }\n\n // Remove the field.\n return null;\n }\n }\n },\n },\n\n FragmentSpread: {\n enter(node) {\n // Keep track of referenced fragment spreads. This is used to\n // determine if top level fragment definitions should be removed.\n fragmentSpreadsInUse[node.name.value] = true;\n },\n },\n\n Directive: {\n enter(node) {\n // If a matching directive is found, remove it.\n if (getDirectiveMatcher(directives)(node)) {\n return null;\n }\n },\n },\n }),\n );\n\n // If we've removed fields with arguments, make sure the associated\n // variables are also removed from the rest of the document, as long as they\n // aren't being used elsewhere.\n if (\n modifiedDoc &&\n filterInPlace(variablesToRemove, v => !!v.name && !variablesInUse[v.name]).length\n ) {\n modifiedDoc = removeArgumentsFromDocument(variablesToRemove, modifiedDoc);\n }\n\n // If we've removed selection sets with fragment spreads, make sure the\n // associated fragment definitions are also removed from the rest of the\n // document, as long as they aren't being used elsewhere.\n if (\n modifiedDoc &&\n filterInPlace(fragmentSpreadsToRemove, fs => !!fs.name && !fragmentSpreadsInUse[fs.name])\n .length\n ) {\n modifiedDoc = removeFragmentSpreadFromDocument(\n fragmentSpreadsToRemove,\n modifiedDoc,\n );\n }\n\n return modifiedDoc;\n}\n\nexport function addTypenameToDocument(doc: DocumentNode): DocumentNode {\n return visit(checkDocument(doc), {\n SelectionSet: {\n enter(node, _key, parent) {\n // Don't add __typename to OperationDefinitions.\n if (\n parent &&\n (parent as OperationDefinitionNode).kind === 'OperationDefinition'\n ) {\n return;\n }\n\n // No changes if no selections.\n const { selections } = node;\n if (!selections) {\n return;\n }\n\n // If selections already have a __typename, or are part of an\n // introspection query, do nothing.\n const skip = selections.some(selection => {\n return (\n isField(selection) &&\n (selection.name.value === '__typename' ||\n selection.name.value.lastIndexOf('__', 0) === 0)\n );\n });\n if (skip) {\n return;\n }\n\n // If this SelectionSet is @export-ed as an input variable, it should\n // not have a __typename field (see issue #4691).\n const field = parent as FieldNode;\n if (\n isField(field) &&\n field.directives &&\n field.directives.some(d => d.name.value === 'export')\n ) {\n return;\n }\n\n // Create and return a new SelectionSet with a __typename Field.\n return {\n ...node,\n selections: [...selections, TYPENAME_FIELD],\n };\n },\n },\n });\n}\n\nexport interface addTypenameToDocument {\n added(field: FieldNode): boolean;\n}\naddTypenameToDocument.added = function (field: FieldNode) {\n return field === TYPENAME_FIELD;\n};\n\nconst connectionRemoveConfig = {\n test: (directive: DirectiveNode) => {\n const willRemove = directive.name.value === 'connection';\n if (willRemove) {\n if (\n !directive.arguments ||\n !directive.arguments.some(arg => arg.name.value === 'key')\n ) {\n invariant.warn(\n 'Removing an @connection directive even though it does not have a key. ' +\n 'You may want to use the key parameter to specify a store key.',\n );\n }\n }\n\n return willRemove;\n },\n};\n\nexport function removeConnectionDirectiveFromDocument(doc: DocumentNode) {\n return removeDirectivesFromDocument(\n [connectionRemoveConfig],\n checkDocument(doc),\n );\n}\n\nfunction hasDirectivesInSelectionSet(\n directives: GetDirectiveConfig[],\n selectionSet: SelectionSetNode | undefined,\n nestedCheck = true,\n): boolean {\n return (\n !!selectionSet &&\n selectionSet.selections &&\n selectionSet.selections.some(selection =>\n hasDirectivesInSelection(directives, selection, nestedCheck),\n )\n );\n}\n\nfunction hasDirectivesInSelection(\n directives: GetDirectiveConfig[],\n selection: SelectionNode,\n nestedCheck = true,\n): boolean {\n if (!isField(selection)) {\n return true;\n }\n\n if (!selection.directives) {\n return false;\n }\n\n return (\n selection.directives.some(getDirectiveMatcher(directives)) ||\n (nestedCheck &&\n hasDirectivesInSelectionSet(\n directives,\n selection.selectionSet,\n nestedCheck,\n ))\n );\n}\n\nfunction getArgumentMatcher(config: RemoveArgumentsConfig[]) {\n return function argumentMatcher(argument: ArgumentNode) {\n return config.some(\n (aConfig: RemoveArgumentsConfig) =>\n argument.value &&\n argument.value.kind === 'Variable' &&\n argument.value.name &&\n (aConfig.name === argument.value.name.value ||\n (aConfig.test && aConfig.test(argument))),\n );\n };\n}\n\nexport function removeArgumentsFromDocument(\n config: RemoveArgumentsConfig[],\n doc: DocumentNode,\n): DocumentNode | null {\n const argMatcher = getArgumentMatcher(config);\n\n return nullIfDocIsEmpty(\n visit(doc, {\n OperationDefinition: {\n enter(node) {\n return {\n ...node,\n // Remove matching top level variables definitions.\n variableDefinitions: node.variableDefinitions ? node.variableDefinitions.filter(\n varDef =>\n !config.some(arg => arg.name === varDef.variable.name.value),\n ) : [],\n };\n },\n },\n\n Field: {\n enter(node) {\n // If `remove` is set to true for an argument, and an argument match\n // is found for a field, remove the field as well.\n const shouldRemoveField = config.some(argConfig => argConfig.remove);\n\n if (shouldRemoveField) {\n let argMatchCount = 0;\n if (node.arguments) {\n node.arguments.forEach(arg => {\n if (argMatcher(arg)) {\n argMatchCount += 1;\n }\n });\n }\n\n if (argMatchCount === 1) {\n return null;\n }\n }\n },\n },\n\n Argument: {\n enter(node) {\n // Remove all matching arguments.\n if (argMatcher(node)) {\n return null;\n }\n },\n },\n }),\n );\n}\n\nexport function removeFragmentSpreadFromDocument(\n config: RemoveFragmentSpreadConfig[],\n doc: DocumentNode,\n): DocumentNode | null {\n function enter(\n node: FragmentSpreadNode | FragmentDefinitionNode,\n ): null | void {\n if (config.some(def => def.name === node.name.value)) {\n return null;\n }\n }\n\n return nullIfDocIsEmpty(\n visit(doc, {\n FragmentSpread: { enter },\n FragmentDefinition: { enter },\n }),\n );\n}\n\nfunction getAllFragmentSpreadsFromSelectionSet(\n selectionSet: SelectionSetNode,\n): FragmentSpreadNode[] {\n const allFragments: FragmentSpreadNode[] = [];\n\n selectionSet.selections.forEach(selection => {\n if (\n (isField(selection) || isInlineFragment(selection)) &&\n selection.selectionSet\n ) {\n getAllFragmentSpreadsFromSelectionSet(selection.selectionSet).forEach(\n frag => allFragments.push(frag),\n );\n } else if (selection.kind === 'FragmentSpread') {\n allFragments.push(selection);\n }\n });\n\n return allFragments;\n}\n\n// If the incoming document is a query, return it as is. Otherwise, build a\n// new document containing a query operation based on the selection set\n// of the previous main operation.\nexport function buildQueryFromSelectionSet(\n document: DocumentNode,\n): DocumentNode {\n const definition = getMainDefinition(document);\n const definitionOperation = (definition).operation;\n\n if (definitionOperation === 'query') {\n // Already a query, so return the existing document.\n return document;\n }\n\n // Build a new query using the selection set of the main operation.\n const modifiedDoc = visit(document, {\n OperationDefinition: {\n enter(node) {\n return {\n ...node,\n operation: 'query',\n };\n },\n },\n });\n return modifiedDoc;\n}\n\n// Remove fields / selection sets that include an @client directive.\nexport function removeClientSetsFromDocument(\n document: DocumentNode,\n): DocumentNode | null {\n checkDocument(document);\n\n let modifiedDoc = removeDirectivesFromDocument(\n [\n {\n test: (directive: DirectiveNode) => directive.name.value === 'client',\n remove: true,\n },\n ],\n document,\n );\n\n // After a fragment definition has had its @client related document\n // sets removed, if the only field it has left is a __typename field,\n // remove the entire fragment operation to prevent it from being fired\n // on the server.\n if (modifiedDoc) {\n modifiedDoc = visit(modifiedDoc, {\n FragmentDefinition: {\n enter(node) {\n if (node.selectionSet) {\n const isTypenameOnly = node.selectionSet.selections.every(\n selection =>\n isField(selection) && selection.name.value === '__typename',\n );\n if (isTypenameOnly) {\n return null;\n }\n }\n },\n },\n });\n }\n\n return modifiedDoc;\n}\n","export function filterInPlace(array, test, context) {\n var target = 0;\n array.forEach(function (elem, i) {\n if (test.call(this, elem, i, array)) {\n array[target++] = elem;\n }\n }, context);\n array.length = target;\n return array;\n}\n//# sourceMappingURL=filterInPlace.js.map","export function filterInPlace(\n array: T[],\n test: (elem: T) => boolean,\n context?: any,\n): T[] {\n let target = 0;\n array.forEach(function (elem, i) {\n if (test.call(this, elem, i, array)) {\n array[target++] = elem;\n }\n }, context);\n array.length = target;\n return array;\n}\n","import { __assign, __rest as __rest_1, __spreadArrays } from \"tslib\";\nimport { __rest } from \"tslib\";\nimport { mergeDeep } from \"../common/mergeDeep.js\";\nexport function concatPagination(keyArgs) {\n if (keyArgs === void 0) { keyArgs = false; }\n return {\n keyArgs: keyArgs,\n merge: function (existing, incoming) {\n return existing ? __spreadArrays(existing, incoming) : incoming;\n },\n };\n}\nexport function offsetLimitPagination(keyArgs) {\n if (keyArgs === void 0) { keyArgs = false; }\n return {\n keyArgs: keyArgs,\n merge: function (existing, incoming, _a) {\n var args = _a.args;\n var merged = existing ? existing.slice(0) : [];\n if (args) {\n var _b = args.offset, offset = _b === void 0 ? 0 : _b;\n for (var i = 0; i < incoming.length; ++i) {\n merged[offset + i] = incoming[i];\n }\n }\n else {\n merged.push.apply(merged, incoming);\n }\n return merged;\n },\n };\n}\nexport function relayStylePagination(keyArgs) {\n if (keyArgs === void 0) { keyArgs = false; }\n return {\n keyArgs: keyArgs,\n read: function (existing, _a) {\n var canRead = _a.canRead, readField = _a.readField;\n if (!existing)\n return;\n var edges = [];\n var startCursor = \"\";\n var endCursor = \"\";\n existing.edges.forEach(function (edge) {\n if (canRead(readField(\"node\", edge))) {\n edges.push(edge);\n if (edge.cursor) {\n startCursor = startCursor || edge.cursor;\n endCursor = edge.cursor;\n }\n }\n });\n return __assign(__assign({}, getExtras(existing)), { edges: edges, pageInfo: __assign(__assign({}, existing.pageInfo), { startCursor: startCursor,\n endCursor: endCursor }) });\n },\n merge: function (existing, incoming, _a) {\n if (existing === void 0) { existing = makeEmptyData(); }\n var args = _a.args, isReference = _a.isReference, readField = _a.readField;\n var incomingEdges = incoming.edges ? incoming.edges.map(function (edge) {\n if (isReference(edge = __assign({}, edge))) {\n edge.cursor = readField(\"cursor\", edge);\n }\n return edge;\n }) : [];\n if (incoming.pageInfo) {\n var pageInfo_1 = incoming.pageInfo;\n var startCursor = pageInfo_1.startCursor, endCursor = pageInfo_1.endCursor;\n var firstEdge = incomingEdges[0];\n var lastEdge = incomingEdges[incomingEdges.length - 1];\n if (firstEdge && startCursor) {\n firstEdge.cursor = startCursor;\n }\n if (lastEdge && endCursor) {\n lastEdge.cursor = endCursor;\n }\n var firstCursor = firstEdge && firstEdge.cursor;\n if (firstCursor && !startCursor) {\n incoming = mergeDeep(incoming, {\n pageInfo: {\n startCursor: firstCursor,\n },\n });\n }\n var lastCursor = lastEdge && lastEdge.cursor;\n if (lastCursor && !endCursor) {\n incoming = mergeDeep(incoming, {\n pageInfo: {\n endCursor: lastCursor,\n },\n });\n }\n }\n var prefix = existing.edges;\n var suffix = [];\n if (args && args.after) {\n var index = prefix.findIndex(function (edge) { return edge.cursor === args.after; });\n if (index >= 0) {\n prefix = prefix.slice(0, index + 1);\n }\n }\n else if (args && args.before) {\n var index = prefix.findIndex(function (edge) { return edge.cursor === args.before; });\n suffix = index < 0 ? prefix : prefix.slice(index);\n prefix = [];\n }\n else if (incoming.edges) {\n prefix = [];\n }\n var edges = __spreadArrays(prefix, incomingEdges, suffix);\n var pageInfo = __assign(__assign({}, incoming.pageInfo), existing.pageInfo);\n if (incoming.pageInfo) {\n var _b = incoming.pageInfo, hasPreviousPage = _b.hasPreviousPage, hasNextPage = _b.hasNextPage, startCursor = _b.startCursor, endCursor = _b.endCursor, extras = __rest_1(_b, [\"hasPreviousPage\", \"hasNextPage\", \"startCursor\", \"endCursor\"]);\n Object.assign(pageInfo, extras);\n if (!prefix.length) {\n if (void 0 !== hasPreviousPage)\n pageInfo.hasPreviousPage = hasPreviousPage;\n if (void 0 !== startCursor)\n pageInfo.startCursor = startCursor;\n }\n if (!suffix.length) {\n if (void 0 !== hasNextPage)\n pageInfo.hasNextPage = hasNextPage;\n if (void 0 !== endCursor)\n pageInfo.endCursor = endCursor;\n }\n }\n return __assign(__assign(__assign({}, getExtras(existing)), getExtras(incoming)), { edges: edges,\n pageInfo: pageInfo });\n },\n };\n}\nvar getExtras = function (obj) { return __rest(obj, notExtras); };\nvar notExtras = [\"edges\", \"pageInfo\"];\nfunction makeEmptyData() {\n return {\n edges: [],\n pageInfo: {\n hasPreviousPage: false,\n hasNextPage: true,\n startCursor: \"\",\n endCursor: \"\",\n },\n };\n}\n//# sourceMappingURL=pagination.js.map","import { __rest } from \"tslib\";\n\nimport { FieldPolicy, Reference } from '../../cache';\nimport { mergeDeep } from '../common/mergeDeep';\n\ntype KeyArgs = FieldPolicy[\"keyArgs\"];\n\n// A very basic pagination field policy that always concatenates new\n// results onto the existing array, without examining options.args.\nexport function concatPagination(\n keyArgs: KeyArgs = false,\n): FieldPolicy {\n return {\n keyArgs,\n merge(existing, incoming) {\n return existing ? [\n ...existing,\n ...incoming,\n ] : incoming;\n },\n };\n}\n\n// A basic field policy that uses options.args.{offset,limit} to splice\n// the incoming data into the existing array. If your arguments are called\n// something different (like args.{start,count}), feel free to copy/paste\n// this implementation and make the appropriate changes.\nexport function offsetLimitPagination(\n keyArgs: KeyArgs = false,\n): FieldPolicy {\n return {\n keyArgs,\n merge(existing, incoming, { args }) {\n const merged = existing ? existing.slice(0) : [];\n if (args) {\n // Assume an offset of 0 if args.offset omitted.\n const { offset = 0 } = args;\n for (let i = 0; i < incoming.length; ++i) {\n merged[offset + i] = incoming[i];\n }\n } else {\n // It's unusual (probably a mistake) for a paginated field not\n // to receive any arguments, so you might prefer to throw an\n // exception here, instead of recovering by appending incoming\n // onto the existing array.\n merged.push.apply(merged, incoming);\n }\n return merged;\n },\n };\n}\n\n// Whether TRelayEdge is a normalized Reference or a non-normalized\n// object, it needs a .cursor property where the relayStylePagination\n// merge function can store cursor strings taken from pageInfo. Storing an\n// extra reference.cursor property should be safe, and is easier than\n// attempting to update the cursor field of the normalized StoreObject\n// that the reference refers to, or managing edge wrapper objects\n// (something I attempted in #7023, but abandoned because of #7088).\nexport type TRelayEdge = {\n cursor?: string;\n node: TNode;\n} | (Reference & { cursor?: string });\n\nexport type TRelayPageInfo = {\n hasPreviousPage: boolean;\n hasNextPage: boolean;\n startCursor: string;\n endCursor: string;\n};\n\nexport type TExistingRelay = Readonly<{\n edges: TRelayEdge[];\n pageInfo: TRelayPageInfo;\n}>;\n\nexport type TIncomingRelay = {\n edges?: TRelayEdge[];\n pageInfo?: TRelayPageInfo;\n};\n\nexport type RelayFieldPolicy = FieldPolicy<\n TExistingRelay,\n TIncomingRelay,\n TIncomingRelay\n>;\n\n// As proof of the flexibility of field policies, this function generates\n// one that handles Relay-style pagination, without Apollo Client knowing\n// anything about connections, edges, cursors, or pageInfo objects.\nexport function relayStylePagination(\n keyArgs: KeyArgs = false,\n): RelayFieldPolicy {\n return {\n keyArgs,\n\n read(existing, { canRead, readField }) {\n if (!existing) return;\n\n const edges: TRelayEdge[] = [];\n let startCursor = \"\";\n let endCursor = \"\";\n existing.edges.forEach(edge => {\n // Edges themselves could be Reference objects, so it's important\n // to use readField to access the edge.edge.node property.\n if (canRead(readField(\"node\", edge))) {\n edges.push(edge);\n if (edge.cursor) {\n startCursor = startCursor || edge.cursor;\n endCursor = edge.cursor;\n }\n }\n });\n\n return {\n // Some implementations return additional Connection fields, such\n // as existing.totalCount. These fields are saved by the merge\n // function, so the read function should also preserve them.\n ...getExtras(existing),\n edges,\n pageInfo: {\n ...existing.pageInfo,\n startCursor,\n endCursor,\n },\n };\n },\n\n merge(existing = makeEmptyData(), incoming, { args, isReference, readField }) {\n const incomingEdges = incoming.edges ? incoming.edges.map(edge => {\n if (isReference(edge = { ...edge })) {\n // In case edge is a Reference, we read out its cursor field and\n // store it as an extra property of the Reference object.\n edge.cursor = readField(\"cursor\", edge);\n }\n return edge;\n }) : [];\n\n if (incoming.pageInfo) {\n const { pageInfo } = incoming;\n const { startCursor, endCursor } = pageInfo;\n const firstEdge = incomingEdges[0];\n const lastEdge = incomingEdges[incomingEdges.length - 1];\n // In case we did not request the cursor field for edges in this\n // query, we can still infer cursors from pageInfo.\n if (firstEdge && startCursor) {\n firstEdge.cursor = startCursor;\n }\n if (lastEdge && endCursor) {\n lastEdge.cursor = endCursor;\n }\n // Cursors can also come from edges, so we default\n // pageInfo.{start,end}Cursor to {first,last}Edge.cursor.\n const firstCursor = firstEdge && firstEdge.cursor;\n if (firstCursor && !startCursor) {\n incoming = mergeDeep(incoming, {\n pageInfo: {\n startCursor: firstCursor,\n },\n });\n }\n const lastCursor = lastEdge && lastEdge.cursor;\n if (lastCursor && !endCursor) {\n incoming = mergeDeep(incoming, {\n pageInfo: {\n endCursor: lastCursor,\n },\n });\n }\n }\n\n let prefix = existing.edges;\n let suffix: typeof prefix = [];\n\n if (args && args.after) {\n // This comparison does not need to use readField(\"cursor\", edge),\n // because we stored the cursor field of any Reference edges as an\n // extra property of the Reference object.\n const index = prefix.findIndex(edge => edge.cursor === args.after);\n if (index >= 0) {\n prefix = prefix.slice(0, index + 1);\n // suffix = []; // already true\n }\n } else if (args && args.before) {\n const index = prefix.findIndex(edge => edge.cursor === args.before);\n suffix = index < 0 ? prefix : prefix.slice(index);\n prefix = [];\n } else if (incoming.edges) {\n // If we have neither args.after nor args.before, the incoming\n // edges cannot be spliced into the existing edges, so they must\n // replace the existing edges. See #6592 for a motivating example.\n prefix = [];\n }\n\n const edges = [\n ...prefix,\n ...incomingEdges,\n ...suffix,\n ];\n\n const pageInfo: TRelayPageInfo = {\n // The ordering of these two ...spreads may be surprising, but it\n // makes sense because we want to combine PageInfo properties with a\n // preference for existing values, *unless* the existing values are\n // overridden by the logic below, which is permitted only when the\n // incoming page falls at the beginning or end of the data.\n ...incoming.pageInfo,\n ...existing.pageInfo,\n };\n\n if (incoming.pageInfo) {\n const {\n hasPreviousPage, hasNextPage,\n startCursor, endCursor,\n ...extras\n } = incoming.pageInfo;\n\n // If incoming.pageInfo had any extra non-standard properties,\n // assume they should take precedence over any existing properties\n // of the same name, regardless of where this page falls with\n // respect to the existing data.\n Object.assign(pageInfo, extras);\n\n // Keep existing.pageInfo.has{Previous,Next}Page unless the\n // placement of the incoming edges means incoming.hasPreviousPage\n // or incoming.hasNextPage should become the new values for those\n // properties in existing.pageInfo. Note that these updates are\n // only permitted when the beginning or end of the incoming page\n // coincides with the beginning or end of the existing data, as\n // determined using prefix.length and suffix.length.\n if (!prefix.length) {\n if (void 0 !== hasPreviousPage) pageInfo.hasPreviousPage = hasPreviousPage;\n if (void 0 !== startCursor) pageInfo.startCursor = startCursor;\n }\n if (!suffix.length) {\n if (void 0 !== hasNextPage) pageInfo.hasNextPage = hasNextPage;\n if (void 0 !== endCursor) pageInfo.endCursor = endCursor;\n }\n }\n\n return {\n ...getExtras(existing),\n ...getExtras(incoming),\n edges,\n pageInfo,\n };\n },\n };\n}\n\n// Returns any unrecognized properties of the given object.\nconst getExtras = (obj: Record) => __rest(obj, notExtras);\nconst notExtras = [\"edges\", \"pageInfo\"];\n\nfunction makeEmptyData(): TExistingRelay {\n return {\n edges: [],\n pageInfo: {\n hasPreviousPage: false,\n hasNextPage: true,\n startCursor: \"\",\n endCursor: \"\",\n },\n };\n}\n","import { __assign, __spreadArrays } from \"tslib\";\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nexport function mergeDeep() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n return mergeDeepArray(sources);\n}\nexport function mergeDeepArray(sources) {\n var target = sources[0] || {};\n var count = sources.length;\n if (count > 1) {\n var merger = new DeepMerger();\n for (var i = 1; i < count; ++i) {\n target = merger.merge(target, sources[i]);\n }\n }\n return target;\n}\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object';\n}\nvar defaultReconciler = function (target, source, property) {\n return this.merge(target[property], source[property]);\n};\nvar DeepMerger = (function () {\n function DeepMerger(reconciler) {\n if (reconciler === void 0) { reconciler = defaultReconciler; }\n this.reconciler = reconciler;\n this.isObject = isObject;\n this.pastCopies = new Set();\n }\n DeepMerger.prototype.merge = function (target, source) {\n var _this = this;\n var context = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n context[_i - 2] = arguments[_i];\n }\n if (isObject(source) && isObject(target)) {\n Object.keys(source).forEach(function (sourceKey) {\n if (hasOwnProperty.call(target, sourceKey)) {\n var targetValue = target[sourceKey];\n if (source[sourceKey] !== targetValue) {\n var result = _this.reconciler.apply(_this, __spreadArrays([target, source, sourceKey], context));\n if (result !== targetValue) {\n target = _this.shallowCopyForMerge(target);\n target[sourceKey] = result;\n }\n }\n }\n else {\n target = _this.shallowCopyForMerge(target);\n target[sourceKey] = source[sourceKey];\n }\n });\n return target;\n }\n return source;\n };\n DeepMerger.prototype.shallowCopyForMerge = function (value) {\n if (isObject(value) && !this.pastCopies.has(value)) {\n if (Array.isArray(value)) {\n value = value.slice(0);\n }\n else {\n value = __assign({ __proto__: Object.getPrototypeOf(value) }, value);\n }\n this.pastCopies.add(value);\n }\n return value;\n };\n return DeepMerger;\n}());\nexport { DeepMerger };\n//# sourceMappingURL=mergeDeep.js.map","const { hasOwnProperty } = Object.prototype;\n\n// These mergeDeep and mergeDeepArray utilities merge any number of objects\n// together, sharing as much memory as possible with the source objects, while\n// remaining careful to avoid modifying any source objects.\n\n// Logically, the return type of mergeDeep should be the intersection of\n// all the argument types. The binary call signature is by far the most\n// common, but we support 0- through 5-ary as well. After that, the\n// resulting type is just the inferred array element type. Note to nerds:\n// there is a more clever way of doing this that converts the tuple type\n// first to a union type (easy enough: T[number]) and then converts the\n// union to an intersection type using distributive conditional type\n// inference, but that approach has several fatal flaws (boolean becomes\n// true & false, and the inferred type ends up as unknown in many cases),\n// in addition to being nearly impossible to explain/understand.\nexport type TupleToIntersection =\n T extends [infer A] ? A :\n T extends [infer A, infer B] ? A & B :\n T extends [infer A, infer B, infer C] ? A & B & C :\n T extends [infer A, infer B, infer C, infer D] ? A & B & C & D :\n T extends [infer A, infer B, infer C, infer D, infer E] ? A & B & C & D & E :\n T extends (infer U)[] ? U : any;\n\nexport function mergeDeep(\n ...sources: T\n): TupleToIntersection {\n return mergeDeepArray(sources);\n}\n\n// In almost any situation where you could succeed in getting the\n// TypeScript compiler to infer a tuple type for the sources array, you\n// could just use mergeDeep instead of mergeDeepArray, so instead of\n// trying to convert T[] to an intersection type we just infer the array\n// element type, which works perfectly when the sources array has a\n// consistent element type.\nexport function mergeDeepArray(sources: T[]): T {\n let target = sources[0] || ({} as T);\n const count = sources.length;\n if (count > 1) {\n const merger = new DeepMerger();\n for (let i = 1; i < count; ++i) {\n target = merger.merge(target, sources[i]);\n }\n }\n return target;\n}\n\nfunction isObject(obj: any): obj is Record {\n return obj !== null && typeof obj === 'object';\n}\n\nexport type ReconcilerFunction = (\n this: DeepMerger,\n target: Record,\n source: Record,\n property: string | number,\n ...context: TContextArgs\n) => any;\n\nconst defaultReconciler: ReconcilerFunction =\n function (target, source, property) {\n return this.merge(target[property], source[property]);\n };\n\nexport class DeepMerger {\n constructor(\n private reconciler: ReconcilerFunction = defaultReconciler,\n ) {}\n\n public merge(target: any, source: any, ...context: TContextArgs): any {\n if (isObject(source) && isObject(target)) {\n Object.keys(source).forEach(sourceKey => {\n if (hasOwnProperty.call(target, sourceKey)) {\n const targetValue = target[sourceKey];\n if (source[sourceKey] !== targetValue) {\n const result = this.reconciler(target, source, sourceKey, ...context);\n // A well-implemented reconciler may return targetValue to indicate\n // the merge changed nothing about the structure of the target.\n if (result !== targetValue) {\n target = this.shallowCopyForMerge(target);\n target[sourceKey] = result;\n }\n }\n } else {\n // If there is no collision, the target can safely share memory with\n // the source, and the recursion can terminate here.\n target = this.shallowCopyForMerge(target);\n target[sourceKey] = source[sourceKey];\n }\n });\n\n return target;\n }\n\n // If source (or target) is not an object, let source replace target.\n return source;\n }\n\n public isObject = isObject;\n\n private pastCopies = new Set();\n\n public shallowCopyForMerge(value: T): T {\n if (isObject(value) && !this.pastCopies.has(value)) {\n if (Array.isArray(value)) {\n value = (value as any).slice(0);\n } else {\n value = {\n __proto__: Object.getPrototypeOf(value),\n ...value,\n };\n }\n this.pastCopies.add(value);\n }\n return value;\n }\n}\n","import Observable from 'zen-observable';\nimport 'symbol-observable';\nvar prototype = Observable.prototype;\nvar fakeObsSymbol = '@@observable';\nif (!prototype[fakeObsSymbol]) {\n prototype[fakeObsSymbol] = function () { return this; };\n}\nexport { Observable };\n//# sourceMappingURL=Observable.js.map","import Observable from 'zen-observable';\n\n// This simplified polyfill attempts to follow the ECMAScript Observable\n// proposal (https://github.com/zenparsing/es-observable)\nimport 'symbol-observable';\n\nexport type ObservableSubscription = ZenObservable.Subscription;\nexport type Observer = ZenObservable.Observer;\nexport type Subscriber = ZenObservable.Subscriber;\n\n// The zen-observable package defines Observable.prototype[Symbol.observable]\n// when Symbol is supported, but RxJS interop depends on also setting this fake\n// '@@observable' string as a polyfill for Symbol.observable.\nconst { prototype } = Observable;\nconst fakeObsSymbol = '@@observable' as keyof typeof prototype;\nif (!prototype[fakeObsSymbol]) {\n prototype[fakeObsSymbol] = function () { return this; };\n}\n\nexport { Observable };\n","module.exports = require('./lib/Observable.js').Observable;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Observable = void 0;\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n// === Symbol Support ===\nvar hasSymbols = function () {\n return typeof Symbol === 'function';\n};\n\nvar hasSymbol = function (name) {\n return hasSymbols() && Boolean(Symbol[name]);\n};\n\nvar getSymbol = function (name) {\n return hasSymbol(name) ? Symbol[name] : '@@' + name;\n};\n\nif (hasSymbols() && !hasSymbol('observable')) {\n Symbol.observable = Symbol('observable');\n}\n\nvar SymbolIterator = getSymbol('iterator');\nvar SymbolObservable = getSymbol('observable');\nvar SymbolSpecies = getSymbol('species'); // === Abstract Operations ===\n\nfunction getMethod(obj, key) {\n var value = obj[key];\n if (value == null) return undefined;\n if (typeof value !== 'function') throw new TypeError(value + ' is not a function');\n return value;\n}\n\nfunction getSpecies(obj) {\n var ctor = obj.constructor;\n\n if (ctor !== undefined) {\n ctor = ctor[SymbolSpecies];\n\n if (ctor === null) {\n ctor = undefined;\n }\n }\n\n return ctor !== undefined ? ctor : Observable;\n}\n\nfunction isObservable(x) {\n return x instanceof Observable; // SPEC: Brand check\n}\n\nfunction hostReportError(e) {\n if (hostReportError.log) {\n hostReportError.log(e);\n } else {\n setTimeout(function () {\n throw e;\n });\n }\n}\n\nfunction enqueue(fn) {\n Promise.resolve().then(function () {\n try {\n fn();\n } catch (e) {\n hostReportError(e);\n }\n });\n}\n\nfunction cleanupSubscription(subscription) {\n var cleanup = subscription._cleanup;\n if (cleanup === undefined) return;\n subscription._cleanup = undefined;\n\n if (!cleanup) {\n return;\n }\n\n try {\n if (typeof cleanup === 'function') {\n cleanup();\n } else {\n var unsubscribe = getMethod(cleanup, 'unsubscribe');\n\n if (unsubscribe) {\n unsubscribe.call(cleanup);\n }\n }\n } catch (e) {\n hostReportError(e);\n }\n}\n\nfunction closeSubscription(subscription) {\n subscription._observer = undefined;\n subscription._queue = undefined;\n subscription._state = 'closed';\n}\n\nfunction flushSubscription(subscription) {\n var queue = subscription._queue;\n\n if (!queue) {\n return;\n }\n\n subscription._queue = undefined;\n subscription._state = 'ready';\n\n for (var i = 0; i < queue.length; ++i) {\n notifySubscription(subscription, queue[i].type, queue[i].value);\n if (subscription._state === 'closed') break;\n }\n}\n\nfunction notifySubscription(subscription, type, value) {\n subscription._state = 'running';\n var observer = subscription._observer;\n\n try {\n var m = getMethod(observer, type);\n\n switch (type) {\n case 'next':\n if (m) m.call(observer, value);\n break;\n\n case 'error':\n closeSubscription(subscription);\n if (m) m.call(observer, value);else throw value;\n break;\n\n case 'complete':\n closeSubscription(subscription);\n if (m) m.call(observer);\n break;\n }\n } catch (e) {\n hostReportError(e);\n }\n\n if (subscription._state === 'closed') cleanupSubscription(subscription);else if (subscription._state === 'running') subscription._state = 'ready';\n}\n\nfunction onNotify(subscription, type, value) {\n if (subscription._state === 'closed') return;\n\n if (subscription._state === 'buffering') {\n subscription._queue.push({\n type: type,\n value: value\n });\n\n return;\n }\n\n if (subscription._state !== 'ready') {\n subscription._state = 'buffering';\n subscription._queue = [{\n type: type,\n value: value\n }];\n enqueue(function () {\n return flushSubscription(subscription);\n });\n return;\n }\n\n notifySubscription(subscription, type, value);\n}\n\nvar Subscription =\n/*#__PURE__*/\nfunction () {\n function Subscription(observer, subscriber) {\n _classCallCheck(this, Subscription);\n\n // ASSERT: observer is an object\n // ASSERT: subscriber is callable\n this._cleanup = undefined;\n this._observer = observer;\n this._queue = undefined;\n this._state = 'initializing';\n var subscriptionObserver = new SubscriptionObserver(this);\n\n try {\n this._cleanup = subscriber.call(undefined, subscriptionObserver);\n } catch (e) {\n subscriptionObserver.error(e);\n }\n\n if (this._state === 'initializing') this._state = 'ready';\n }\n\n _createClass(Subscription, [{\n key: \"unsubscribe\",\n value: function unsubscribe() {\n if (this._state !== 'closed') {\n closeSubscription(this);\n cleanupSubscription(this);\n }\n }\n }, {\n key: \"closed\",\n get: function () {\n return this._state === 'closed';\n }\n }]);\n\n return Subscription;\n}();\n\nvar SubscriptionObserver =\n/*#__PURE__*/\nfunction () {\n function SubscriptionObserver(subscription) {\n _classCallCheck(this, SubscriptionObserver);\n\n this._subscription = subscription;\n }\n\n _createClass(SubscriptionObserver, [{\n key: \"next\",\n value: function next(value) {\n onNotify(this._subscription, 'next', value);\n }\n }, {\n key: \"error\",\n value: function error(value) {\n onNotify(this._subscription, 'error', value);\n }\n }, {\n key: \"complete\",\n value: function complete() {\n onNotify(this._subscription, 'complete');\n }\n }, {\n key: \"closed\",\n get: function () {\n return this._subscription._state === 'closed';\n }\n }]);\n\n return SubscriptionObserver;\n}();\n\nvar Observable =\n/*#__PURE__*/\nfunction () {\n function Observable(subscriber) {\n _classCallCheck(this, Observable);\n\n if (!(this instanceof Observable)) throw new TypeError('Observable cannot be called as a function');\n if (typeof subscriber !== 'function') throw new TypeError('Observable initializer must be a function');\n this._subscriber = subscriber;\n }\n\n _createClass(Observable, [{\n key: \"subscribe\",\n value: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n observer = {\n next: observer,\n error: arguments[1],\n complete: arguments[2]\n };\n }\n\n return new Subscription(observer, this._subscriber);\n }\n }, {\n key: \"forEach\",\n value: function forEach(fn) {\n var _this = this;\n\n return new Promise(function (resolve, reject) {\n if (typeof fn !== 'function') {\n reject(new TypeError(fn + ' is not a function'));\n return;\n }\n\n function done() {\n subscription.unsubscribe();\n resolve();\n }\n\n var subscription = _this.subscribe({\n next: function (value) {\n try {\n fn(value, done);\n } catch (e) {\n reject(e);\n subscription.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n });\n }\n }, {\n key: \"map\",\n value: function map(fn) {\n var _this2 = this;\n\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n return new C(function (observer) {\n return _this2.subscribe({\n next: function (value) {\n try {\n value = fn(value);\n } catch (e) {\n return observer.error(e);\n }\n\n observer.next(value);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n observer.complete();\n }\n });\n });\n }\n }, {\n key: \"filter\",\n value: function filter(fn) {\n var _this3 = this;\n\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n return new C(function (observer) {\n return _this3.subscribe({\n next: function (value) {\n try {\n if (!fn(value)) return;\n } catch (e) {\n return observer.error(e);\n }\n\n observer.next(value);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n observer.complete();\n }\n });\n });\n }\n }, {\n key: \"reduce\",\n value: function reduce(fn) {\n var _this4 = this;\n\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n var hasSeed = arguments.length > 1;\n var hasValue = false;\n var seed = arguments[1];\n var acc = seed;\n return new C(function (observer) {\n return _this4.subscribe({\n next: function (value) {\n var first = !hasValue;\n hasValue = true;\n\n if (!first || hasSeed) {\n try {\n acc = fn(acc, value);\n } catch (e) {\n return observer.error(e);\n }\n } else {\n acc = value;\n }\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n if (!hasValue && !hasSeed) return observer.error(new TypeError('Cannot reduce an empty sequence'));\n observer.next(acc);\n observer.complete();\n }\n });\n });\n }\n }, {\n key: \"concat\",\n value: function concat() {\n var _this5 = this;\n\n for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n\n var C = getSpecies(this);\n return new C(function (observer) {\n var subscription;\n var index = 0;\n\n function startNext(next) {\n subscription = next.subscribe({\n next: function (v) {\n observer.next(v);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n if (index === sources.length) {\n subscription = undefined;\n observer.complete();\n } else {\n startNext(C.from(sources[index++]));\n }\n }\n });\n }\n\n startNext(_this5);\n return function () {\n if (subscription) {\n subscription.unsubscribe();\n subscription = undefined;\n }\n };\n });\n }\n }, {\n key: \"flatMap\",\n value: function flatMap(fn) {\n var _this6 = this;\n\n if (typeof fn !== 'function') throw new TypeError(fn + ' is not a function');\n var C = getSpecies(this);\n return new C(function (observer) {\n var subscriptions = [];\n\n var outer = _this6.subscribe({\n next: function (value) {\n if (fn) {\n try {\n value = fn(value);\n } catch (e) {\n return observer.error(e);\n }\n }\n\n var inner = C.from(value).subscribe({\n next: function (value) {\n observer.next(value);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n var i = subscriptions.indexOf(inner);\n if (i >= 0) subscriptions.splice(i, 1);\n completeIfDone();\n }\n });\n subscriptions.push(inner);\n },\n error: function (e) {\n observer.error(e);\n },\n complete: function () {\n completeIfDone();\n }\n });\n\n function completeIfDone() {\n if (outer.closed && subscriptions.length === 0) observer.complete();\n }\n\n return function () {\n subscriptions.forEach(function (s) {\n return s.unsubscribe();\n });\n outer.unsubscribe();\n };\n });\n }\n }, {\n key: SymbolObservable,\n value: function () {\n return this;\n }\n }], [{\n key: \"from\",\n value: function from(x) {\n var C = typeof this === 'function' ? this : Observable;\n if (x == null) throw new TypeError(x + ' is not an object');\n var method = getMethod(x, SymbolObservable);\n\n if (method) {\n var observable = method.call(x);\n if (Object(observable) !== observable) throw new TypeError(observable + ' is not an object');\n if (isObservable(observable) && observable.constructor === C) return observable;\n return new C(function (observer) {\n return observable.subscribe(observer);\n });\n }\n\n if (hasSymbol('iterator')) {\n method = getMethod(x, SymbolIterator);\n\n if (method) {\n return new C(function (observer) {\n enqueue(function () {\n if (observer.closed) return;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = method.call(x)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var _item = _step.value;\n observer.next(_item);\n if (observer.closed) return;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n observer.complete();\n });\n });\n }\n }\n\n if (Array.isArray(x)) {\n return new C(function (observer) {\n enqueue(function () {\n if (observer.closed) return;\n\n for (var i = 0; i < x.length; ++i) {\n observer.next(x[i]);\n if (observer.closed) return;\n }\n\n observer.complete();\n });\n });\n }\n\n throw new TypeError(x + ' is not observable');\n }\n }, {\n key: \"of\",\n value: function of() {\n for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n items[_key2] = arguments[_key2];\n }\n\n var C = typeof this === 'function' ? this : Observable;\n return new C(function (observer) {\n enqueue(function () {\n if (observer.closed) return;\n\n for (var i = 0; i < items.length; ++i) {\n observer.next(items[i]);\n if (observer.closed) return;\n }\n\n observer.complete();\n });\n });\n }\n }, {\n key: SymbolSpecies,\n get: function () {\n return this;\n }\n }]);\n\n return Observable;\n}();\n\nexports.Observable = Observable;\n\nif (hasSymbols()) {\n Object.defineProperty(Observable, Symbol('extensions'), {\n value: {\n symbol: SymbolObservable,\n hostReportError: hostReportError\n },\n configurable: true\n });\n}","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\n\t\t\t// This just needs to be something that won't trample other user's Symbol.for use\n\t\t\t// It also will guide people to the source of their issues, if this is problematic.\n\t\t\t// META: It's a resource locator!\n\t\t\tresult = Symbol.for('https://github.com/benlesh/symbol-observable');\n\t\t\ttry {\n\t\t\t\tSymbol.observable = result;\n\t\t\t} catch (err) {\n\t\t\t\t// Do nothing. In some environments, users have frozen `Symbol` for security reasons,\n\t\t\t\t// if it is frozen assigning to it will throw. In this case, we don't care, because\n\t\t\t\t// they will need to use the returned value from the ponyfill.\n\t\t\t}\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","var toString = Object.prototype.toString;\nexport function cloneDeep(value) {\n return cloneDeepHelper(value);\n}\nfunction cloneDeepHelper(val, seen) {\n switch (toString.call(val)) {\n case \"[object Array]\": {\n seen = seen || new Map;\n if (seen.has(val))\n return seen.get(val);\n var copy_1 = val.slice(0);\n seen.set(val, copy_1);\n copy_1.forEach(function (child, i) {\n copy_1[i] = cloneDeepHelper(child, seen);\n });\n return copy_1;\n }\n case \"[object Object]\": {\n seen = seen || new Map;\n if (seen.has(val))\n return seen.get(val);\n var copy_2 = Object.create(Object.getPrototypeOf(val));\n seen.set(val, copy_2);\n Object.keys(val).forEach(function (key) {\n copy_2[key] = cloneDeepHelper(val[key], seen);\n });\n return copy_2;\n }\n default:\n return val;\n }\n}\n//# sourceMappingURL=cloneDeep.js.map","const { toString } = Object.prototype;\n\n/**\n * Deeply clones a value to create a new instance.\n */\nexport function cloneDeep(value: T): T {\n return cloneDeepHelper(value);\n}\n\nfunction cloneDeepHelper(val: T, seen?: Map): T {\n switch (toString.call(val)) {\n case \"[object Array]\": {\n seen = seen || new Map;\n if (seen.has(val)) return seen.get(val);\n const copy: T & any[] = (val as any).slice(0);\n seen.set(val, copy);\n copy.forEach(function (child, i) {\n copy[i] = cloneDeepHelper(child, seen);\n });\n return copy;\n }\n\n case \"[object Object]\": {\n seen = seen || new Map;\n if (seen.has(val)) return seen.get(val);\n // High fidelity polyfills of Object.create and Object.getPrototypeOf are\n // possible in all JS environments, so we will assume they exist/work.\n const copy = Object.create(Object.getPrototypeOf(val));\n seen.set(val, copy);\n Object.keys(val).forEach(key => {\n copy[key] = cloneDeepHelper((val as any)[key], seen);\n });\n return copy;\n }\n\n default:\n return val;\n }\n}\n","import { isDevelopment, isTest } from \"./environment.js\";\nfunction isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nfunction deepFreeze(value) {\n var workSet = new Set([value]);\n workSet.forEach(function (obj) {\n if (isObject(obj)) {\n if (!Object.isFrozen(obj))\n Object.freeze(obj);\n Object.getOwnPropertyNames(obj).forEach(function (name) {\n if (isObject(obj[name]))\n workSet.add(obj[name]);\n });\n }\n });\n return value;\n}\nexport function maybeDeepFreeze(obj) {\n if (process.env.NODE_ENV !== \"production\" && (isDevelopment() || isTest())) {\n deepFreeze(obj);\n }\n return obj;\n}\n//# sourceMappingURL=maybeDeepFreeze.js.map","import { isDevelopment, isTest } from './environment';\n\nfunction isObject(value: any) {\n return value !== null && typeof value === \"object\";\n}\n\nfunction deepFreeze(value: any) {\n const workSet = new Set([value]);\n workSet.forEach(obj => {\n if (isObject(obj)) {\n if (!Object.isFrozen(obj)) Object.freeze(obj);\n Object.getOwnPropertyNames(obj).forEach(name => {\n if (isObject(obj[name])) workSet.add(obj[name]);\n });\n }\n });\n return value;\n}\n\nexport function maybeDeepFreeze(obj: T): T {\n if (process.env.NODE_ENV !== \"production\" && (isDevelopment() || isTest())) {\n deepFreeze(obj);\n }\n return obj;\n}\n","export function getEnv() {\n if (typeof process !== 'undefined' && process.env.NODE_ENV) {\n return process.env.NODE_ENV;\n }\n return 'development';\n}\nexport function isEnv(env) {\n return getEnv() === env;\n}\nexport function isDevelopment() {\n return isEnv('development') === true;\n}\nexport function isTest() {\n return isEnv('test') === true;\n}\n//# sourceMappingURL=environment.js.map","export function getEnv(): string | undefined {\n if (typeof process !== 'undefined' && process.env.NODE_ENV) {\n return process.env.NODE_ENV;\n }\n\n // default environment\n return 'development';\n}\n\nexport function isEnv(env: string): boolean {\n return getEnv() === env;\n}\n\nexport function isDevelopment(): boolean {\n return isEnv('development') === true;\n}\n\nexport function isTest(): boolean {\n return isEnv('test') === true;\n}\n","export function iterateObserversSafely(observers, method, argument) {\n var observersWithMethod = [];\n observers.forEach(function (obs) { return obs[method] && observersWithMethod.push(obs); });\n observersWithMethod.forEach(function (obs) { return obs[method](argument); });\n}\n//# sourceMappingURL=iteration.js.map","import { Observer } from \"./Observable\";\n\nexport function iterateObserversSafely(\n observers: Set>,\n method: keyof Observer,\n argument?: A,\n) {\n // In case observers is modified during iteration, we need to commit to the\n // original elements, which also provides an opportunity to filter them down\n // to just the observers with the given method.\n const observersWithMethod: Observer[] = [];\n observers.forEach(obs => obs[method] && observersWithMethod.push(obs));\n observersWithMethod.forEach(obs => (obs as any)[method](argument));\n}\n","import { Observable } from \"./Observable.js\";\nexport function asyncMap(observable, mapFn, catchFn) {\n return new Observable(function (observer) {\n var next = observer.next, error = observer.error, complete = observer.complete;\n var activeCallbackCount = 0;\n var completed = false;\n var promiseQueue = {\n then: function (callback) {\n return new Promise(function (resolve) { return resolve(callback()); });\n },\n };\n function makeCallback(examiner, delegate) {\n if (examiner) {\n return function (arg) {\n ++activeCallbackCount;\n var both = function () { return examiner(arg); };\n promiseQueue = promiseQueue.then(both, both).then(function (result) {\n --activeCallbackCount;\n next && next.call(observer, result);\n if (completed) {\n handler.complete();\n }\n }, function (error) {\n --activeCallbackCount;\n throw error;\n }).catch(function (caught) {\n error && error.call(observer, caught);\n });\n };\n }\n else {\n return function (arg) { return delegate && delegate.call(observer, arg); };\n }\n }\n var handler = {\n next: makeCallback(mapFn, next),\n error: makeCallback(catchFn, error),\n complete: function () {\n completed = true;\n if (!activeCallbackCount) {\n complete && complete.call(observer);\n }\n },\n };\n var sub = observable.subscribe(handler);\n return function () { return sub.unsubscribe(); };\n });\n}\n//# sourceMappingURL=asyncMap.js.map","import { Observable, Observer } from \"./Observable\";\n\n// Like Observable.prototype.map, except that the mapping function can\n// optionally return a Promise (or be async).\nexport function asyncMap(\n observable: Observable,\n mapFn: (value: V) => R | PromiseLike,\n catchFn?: (error: any) => R | PromiseLike,\n): Observable {\n return new Observable(observer => {\n const { next, error, complete } = observer;\n let activeCallbackCount = 0;\n let completed = false;\n let promiseQueue = {\n // Normally we would initialize promiseQueue to Promise.resolve(), but\n // in this case, for backwards compatibility, we need to be careful to\n // invoke the first callback synchronously.\n then(callback: () => any) {\n return new Promise(resolve => resolve(callback()));\n },\n } as Promise;\n\n function makeCallback(\n examiner: typeof mapFn | typeof catchFn,\n delegate: typeof next | typeof error,\n ): (arg: any) => void {\n if (examiner) {\n return arg => {\n ++activeCallbackCount;\n const both = () => examiner(arg);\n promiseQueue = promiseQueue.then(both, both).then(\n result => {\n --activeCallbackCount;\n next && next.call(observer, result);\n if (completed) {\n handler.complete!();\n }\n },\n error => {\n --activeCallbackCount;\n throw error;\n },\n ).catch(caught => {\n error && error.call(observer, caught);\n });\n };\n } else {\n return arg => delegate && delegate.call(observer, arg);\n }\n }\n\n const handler: Observer = {\n next: makeCallback(mapFn, next),\n error: makeCallback(catchFn, error),\n complete() {\n completed = true;\n if (!activeCallbackCount) {\n complete && complete.call(observer);\n }\n },\n };\n\n const sub = observable.subscribe(handler);\n return () => sub.unsubscribe();\n });\n}\n","import { __extends } from \"tslib\";\nimport { Observable } from \"./Observable.js\";\nimport { iterateObserversSafely } from \"./iteration.js\";\nimport { fixObservableSubclass } from \"./subclassing.js\";\nfunction isPromiseLike(value) {\n return value && typeof value.then === \"function\";\n}\nvar Concast = (function (_super) {\n __extends(Concast, _super);\n function Concast(sources) {\n var _this = _super.call(this, function (observer) {\n _this.addObserver(observer);\n return function () { return _this.removeObserver(observer); };\n }) || this;\n _this.observers = new Set();\n _this.addCount = 0;\n _this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n _this.handlers = {\n next: function (result) {\n if (_this.sub !== null) {\n _this.latest = [\"next\", result];\n iterateObserversSafely(_this.observers, \"next\", result);\n }\n },\n error: function (error) {\n var sub = _this.sub;\n if (sub !== null) {\n if (sub)\n Promise.resolve().then(function () { return sub.unsubscribe(); });\n _this.sub = null;\n _this.latest = [\"error\", error];\n _this.reject(error);\n iterateObserversSafely(_this.observers, \"error\", error);\n }\n },\n complete: function () {\n if (_this.sub !== null) {\n var value = _this.sources.shift();\n if (!value) {\n _this.sub = null;\n if (_this.latest &&\n _this.latest[0] === \"next\") {\n _this.resolve(_this.latest[1]);\n }\n else {\n _this.resolve();\n }\n iterateObserversSafely(_this.observers, \"complete\");\n }\n else if (isPromiseLike(value)) {\n value.then(function (obs) { return _this.sub = obs.subscribe(_this.handlers); });\n }\n else {\n _this.sub = value.subscribe(_this.handlers);\n }\n }\n },\n };\n _this.cancel = function (reason) {\n _this.reject(reason);\n _this.sources = [];\n _this.handlers.complete();\n };\n _this.promise.catch(function (_) { });\n if (typeof sources === \"function\") {\n sources = [new Observable(sources)];\n }\n if (isPromiseLike(sources)) {\n sources.then(function (iterable) { return _this.start(iterable); }, _this.handlers.error);\n }\n else {\n _this.start(sources);\n }\n return _this;\n }\n Concast.prototype.start = function (sources) {\n if (this.sub !== void 0)\n return;\n this.sources = Array.from(sources);\n this.handlers.complete();\n };\n Concast.prototype.deliverLastMessage = function (observer) {\n if (this.latest) {\n var nextOrError = this.latest[0];\n var method = observer[nextOrError];\n if (method) {\n method.call(observer, this.latest[1]);\n }\n if (this.sub === null &&\n nextOrError === \"next\" &&\n observer.complete) {\n observer.complete();\n }\n }\n };\n Concast.prototype.addObserver = function (observer) {\n if (!this.observers.has(observer)) {\n this.deliverLastMessage(observer);\n this.observers.add(observer);\n ++this.addCount;\n }\n };\n Concast.prototype.removeObserver = function (observer, quietly) {\n if (this.observers.delete(observer) &&\n --this.addCount < 1 &&\n !quietly) {\n this.handlers.error(new Error(\"Observable cancelled prematurely\"));\n }\n };\n Concast.prototype.cleanup = function (callback) {\n var _this = this;\n var called = false;\n var once = function () {\n if (!called) {\n called = true;\n _this.observers.delete(observer);\n callback();\n }\n };\n var observer = {\n next: once,\n error: once,\n complete: once,\n };\n var count = this.addCount;\n this.addObserver(observer);\n this.addCount = count;\n };\n return Concast;\n}(Observable));\nexport { Concast };\nfixObservableSubclass(Concast);\n//# sourceMappingURL=Concast.js.map","import { Observable, Observer, ObservableSubscription, Subscriber } from \"./Observable\";\nimport { iterateObserversSafely } from \"./iteration\";\nimport { fixObservableSubclass } from \"./subclassing\";\n\ntype MaybeAsync = T | PromiseLike;\n\nfunction isPromiseLike(value: MaybeAsync): value is PromiseLike {\n return value && typeof (value as any).then === \"function\";\n}\n\n// Any individual Source can be an Observable or a promise for one.\ntype Source = MaybeAsync>;\n\nexport type ConcastSourcesIterable = Iterable>;\n\n// A Concast observable concatenates the given sources into a single\n// non-overlapping sequence of Ts, automatically unwrapping any promises,\n// and broadcasts the T elements of that sequence to any number of\n// subscribers, all without creating a bunch of intermediary Observable\n// wrapper objects.\n//\n// Even though any number of observers can subscribe to the Concast, each\n// source observable is guaranteed to receive at most one subscribe call,\n// and the results are multicast to all observers.\n//\n// In addition to broadcasting every next/error message to this.observers,\n// the Concast stores the most recent message using this.latest, so any\n// new observers can immediately receive the latest message, even if it\n// was originally delivered in the past. This behavior means we can assume\n// every active observer in this.observers has received the same most\n// recent message.\n//\n// With the exception of this.latest replay, a Concast is a \"hot\"\n// observable in the sense that it does not replay past results from the\n// beginning of time for each new observer.\n//\n// Could we have used some existing RxJS class instead? Concast is\n// similar to a BehaviorSubject, because it is multicast and redelivers\n// the latest next/error message to new subscribers. Unlike Subject,\n// Concast does not expose an Observer interface (this.handlers is\n// intentionally private), since Concast gets its inputs from the\n// concatenated sources. If we ever switch to RxJS, there may be some\n// value in reusing their code, but for now we use zen-observable, which\n// does not contain any Subject implementations.\nexport class Concast extends Observable {\n // Active observers receiving broadcast messages. Thanks to this.latest,\n // we can assume all observers in this Set have received the same most\n // recent message, though possibly at different times in the past.\n private observers = new Set>();\n\n // This property starts off undefined to indicate the initial\n // subscription has not yet begun, then points to each source\n // subscription in turn, and finally becomes null after the sources have\n // been exhausted. After that, it stays null.\n private sub?: ObservableSubscription | null;\n\n // Not only can the individual elements of the iterable be promises, but\n // also the iterable itself can be wrapped in a promise.\n constructor(sources: MaybeAsync> | Subscriber) {\n super(observer => {\n this.addObserver(observer);\n return () => this.removeObserver(observer);\n });\n\n // Suppress rejection warnings for this.promise, since it's perfectly\n // acceptable to pay no attention to this.promise if you're consuming\n // the results through the normal observable API.\n this.promise.catch(_ => {});\n\n // If someone accidentally tries to create a Concast using a subscriber\n // function, recover by creating an Observable from that subscriber and\n // using it as the source.\n if (typeof sources === \"function\") {\n sources = [new Observable(sources)];\n }\n\n if (isPromiseLike(sources)) {\n sources.then(\n iterable => this.start(iterable),\n this.handlers.error,\n );\n } else {\n this.start(sources);\n }\n }\n\n // A consumable array of source observables, incrementally consumed\n // each time this.handlers.complete is called.\n private sources: Source[];\n\n private start(sources: ConcastSourcesIterable) {\n if (this.sub !== void 0) return;\n\n // In practice, sources is most often simply an Array of observables.\n // TODO Consider using sources[Symbol.iterator]() to take advantage\n // of the laziness of non-Array iterables.\n this.sources = Array.from(sources);\n\n // Calling this.handlers.complete() kicks off consumption of the first\n // source observable. It's tempting to do this step lazily in\n // addObserver, but this.promise can be accessed without calling\n // addObserver, so consumption needs to begin eagerly.\n this.handlers.complete();\n }\n\n private deliverLastMessage(observer: Observer) {\n if (this.latest) {\n const nextOrError = this.latest[0];\n const method = observer[nextOrError];\n if (method) {\n method.call(observer, this.latest[1]);\n }\n // If the subscription is already closed, and the last message was\n // a 'next' message, simulate delivery of the final 'complete'\n // message again.\n if (this.sub === null &&\n nextOrError === \"next\" &&\n observer.complete) {\n observer.complete();\n }\n }\n }\n\n // Note: cleanup observers do not count towards this total.\n private addCount = 0;\n\n public addObserver(observer: Observer) {\n if (!this.observers.has(observer)) {\n // Immediately deliver the most recent message, so we can always\n // be sure all observers have the latest information.\n this.deliverLastMessage(observer);\n this.observers.add(observer);\n ++this.addCount;\n }\n }\n\n public removeObserver(\n observer: Observer,\n quietly?: boolean,\n ) {\n if (this.observers.delete(observer) &&\n --this.addCount < 1 &&\n !quietly) {\n // In case there are still any cleanup observers in this.observers,\n // and no error or completion has been broadcast yet, make sure\n // those observers receive an error that terminates them.\n this.handlers.error(new Error(\"Observable cancelled prematurely\"));\n }\n }\n\n // Any Concast object can be trivially converted to a Promise, without\n // having to create a new wrapper Observable. This promise provides an\n // easy way to observe the final state of the Concast.\n private resolve: (result?: T | PromiseLike) => void;\n private reject: (reason: any) => void;\n public readonly promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n\n // Name and argument of the most recently invoked observer method, used\n // to deliver latest results immediately to new observers.\n private latest?: [\"next\" | \"error\", any];\n\n // Bound handler functions that can be reused for every internal\n // subscription.\n private handlers = {\n next: (result: T) => {\n if (this.sub !== null) {\n this.latest = [\"next\", result];\n iterateObserversSafely(this.observers, \"next\", result);\n }\n },\n\n error: (error: any) => {\n const { sub } = this;\n if (sub !== null) {\n // Delay unsubscribing from the underlying subscription slightly,\n // so that immediately subscribing another observer can keep the\n // subscription active.\n if (sub) Promise.resolve().then(() => sub.unsubscribe());\n this.sub = null;\n this.latest = [\"error\", error];\n this.reject(error);\n iterateObserversSafely(this.observers, \"error\", error);\n }\n },\n\n complete: () => {\n if (this.sub !== null) {\n const value = this.sources.shift();\n if (!value) {\n this.sub = null;\n if (this.latest &&\n this.latest[0] === \"next\") {\n this.resolve(this.latest[1]);\n } else {\n this.resolve();\n }\n // We do not store this.latest = [\"complete\"], because doing so\n // discards useful information about the previous next (or\n // error) message. Instead, if new observers subscribe after\n // this Concast has completed, they will receive the final\n // 'next' message (unless there was an error) immediately\n // followed by a 'complete' message (see addObserver).\n iterateObserversSafely(this.observers, \"complete\");\n } else if (isPromiseLike(value)) {\n value.then(obs => this.sub = obs.subscribe(this.handlers));\n } else {\n this.sub = value.subscribe(this.handlers);\n }\n }\n },\n };\n\n public cleanup(callback: () => any) {\n let called = false;\n const once = () => {\n if (!called) {\n called = true;\n // Removing a cleanup observer should not unsubscribe from the\n // underlying Observable, so the only removeObserver behavior we\n // need here is to delete observer from this.observers.\n this.observers.delete(observer);\n callback();\n }\n }\n const observer = {\n next: once,\n error: once,\n complete: once,\n };\n const count = this.addCount;\n this.addObserver(observer);\n // Normally addObserver increments this.addCount, but we can \"hide\"\n // cleanup observers by restoring this.addCount to its previous value\n // after adding any cleanup observer.\n this.addCount = count;\n }\n\n // A public way to abort observation and broadcast.\n public cancel = (reason: any) => {\n this.reject(reason);\n this.sources = [];\n this.handlers.complete();\n }\n}\n\n// Necessary because the Concast constructor has a different signature\n// than the Observable constructor.\nfixObservableSubclass(Concast);\n","import { Observable } from \"./Observable.js\";\nexport function fixObservableSubclass(subclass) {\n function set(key) {\n Object.defineProperty(subclass, key, { value: Observable });\n }\n if (typeof Symbol === \"function\" && Symbol.species) {\n set(Symbol.species);\n }\n set(\"@@species\");\n return subclass;\n}\n//# sourceMappingURL=subclassing.js.map","import { Observable } from \"./Observable\";\n\n// Generic implementations of Observable.prototype methods like map and\n// filter need to know how to create a new Observable from an Observable\n// subclass (like Concast or ObservableQuery). Those methods assume\n// (perhaps unwisely?) that they can call the subtype's constructor with a\n// Subscriber function, even though the subclass constructor might expect\n// different parameters. Defining this static Symbol.species property on\n// the subclass is a hint to generic Observable code to use the default\n// constructor instead of trying to do `new Subclass(observer => ...)`.\nexport function fixObservableSubclass<\n S extends new (...args: any[]) => Observable,\n>(subclass: S): S {\n function set(key: symbol | string) {\n // Object.defineProperty is necessary because the Symbol.species\n // property is a getter by default in modern JS environments, so we\n // can't assign to it with a normal assignment expression.\n Object.defineProperty(subclass, key, { value: Observable });\n }\n if (typeof Symbol === \"function\" && Symbol.species) {\n set(Symbol.species);\n }\n // The \"@@species\" string is used as a fake Symbol.species value in some\n // polyfill systems (including the SymbolSpecies variable used by\n // zen-observable), so we should set it as well, to be safe.\n set(\"@@species\");\n return subclass;\n}\n","export function isNonEmptyArray(value) {\n return Array.isArray(value) && value.length > 0;\n}\n//# sourceMappingURL=arrays.js.map","export function isNonEmptyArray(value?: ArrayLike): value is Array {\n return Array.isArray(value) && value.length > 0;\n}\n","export function graphQLResultHasError(result) {\n return (result.errors && result.errors.length > 0) || false;\n}\n//# sourceMappingURL=errorHandling.js.map","import { ExecutionResult } from 'graphql';\n\nexport function graphQLResultHasError(result: ExecutionResult): boolean {\n return (result.errors && result.errors.length > 0) || false;\n}\n","export var canUseWeakMap = typeof WeakMap === 'function' && !(typeof navigator === 'object' &&\n navigator.product === 'ReactNative');\n//# sourceMappingURL=canUse.js.map","export const canUseWeakMap = typeof WeakMap === 'function' && !(\n typeof navigator === 'object' &&\n navigator.product === 'ReactNative'\n);\n","export function compact() {\n var objects = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n objects[_i] = arguments[_i];\n }\n var result = Object.create(null);\n objects.forEach(function (obj) {\n if (!obj)\n return;\n Object.keys(obj).forEach(function (key) {\n var value = obj[key];\n if (value !== void 0) {\n result[key] = value;\n }\n });\n });\n return result;\n}\n//# sourceMappingURL=compact.js.map","import { TupleToIntersection } from './mergeDeep';\n\n/**\n * Merges the provided objects shallowly and removes\n * all properties with an `undefined` value\n */\nexport function compact(\n ...objects: TArgs\n): TupleToIntersection {\n const result = Object.create(null);\n\n objects.forEach(obj => {\n if (!obj) return;\n Object.keys(obj).forEach(key => {\n const value = (obj as any)[key];\n if (value !== void 0) {\n result[key] = value;\n }\n });\n });\n\n return result;\n}\n","export { fromError } from \"./fromError.js\";\nexport { toPromise } from \"./toPromise.js\";\nexport { fromPromise } from \"./fromPromise.js\";\nexport { throwServerError } from \"./throwServerError.js\";\nexport { validateOperation } from \"./validateOperation.js\";\nexport { createOperation } from \"./createOperation.js\";\nexport { transformOperation } from \"./transformOperation.js\";\n//# sourceMappingURL=index.js.map","export { fromError } from './fromError';\nexport { toPromise } from './toPromise';\nexport { fromPromise } from './fromPromise';\nexport { ServerError, throwServerError } from './throwServerError';\nexport { validateOperation } from './validateOperation';\nexport { createOperation } from './createOperation';\nexport { transformOperation } from './transformOperation';\n","import { Observable } from \"../../utilities/index.js\";\nexport function fromError(errorValue) {\n return new Observable(function (observer) {\n observer.error(errorValue);\n });\n}\n//# sourceMappingURL=fromError.js.map","import { Observable } from '../../utilities';\n\nexport function fromError(errorValue: any): Observable {\n return new Observable(observer => {\n observer.error(errorValue);\n });\n}\n","import { invariant } from 'ts-invariant';\nexport function toPromise(observable) {\n var completed = false;\n return new Promise(function (resolve, reject) {\n observable.subscribe({\n next: function (data) {\n if (completed) {\n process.env.NODE_ENV === \"production\" || invariant.warn(\"Promise Wrapper does not support multiple results from Observable\");\n }\n else {\n completed = true;\n resolve(data);\n }\n },\n error: reject,\n });\n });\n}\n//# sourceMappingURL=toPromise.js.map","import { invariant } from 'ts-invariant';\n\nimport { Observable } from '../../utilities';\n\nexport function toPromise(observable: Observable): Promise {\n let completed = false;\n return new Promise((resolve, reject) => {\n observable.subscribe({\n next: data => {\n if (completed) {\n invariant.warn(\n `Promise Wrapper does not support multiple results from Observable`,\n );\n } else {\n completed = true;\n resolve(data);\n }\n },\n error: reject,\n });\n });\n}\n","import { Observable } from \"../../utilities/index.js\";\nexport function fromPromise(promise) {\n return new Observable(function (observer) {\n promise\n .then(function (value) {\n observer.next(value);\n observer.complete();\n })\n .catch(observer.error.bind(observer));\n });\n}\n//# sourceMappingURL=fromPromise.js.map","import { Observable } from '../../utilities';\n\nexport function fromPromise(promise: Promise): Observable {\n return new Observable(observer => {\n promise\n .then((value: T) => {\n observer.next(value);\n observer.complete();\n })\n .catch(observer.error.bind(observer));\n });\n}\n","export var throwServerError = function (response, result, message) {\n var error = new Error(message);\n error.name = 'ServerError';\n error.response = response;\n error.statusCode = response.status;\n error.result = result;\n throw error;\n};\n//# sourceMappingURL=throwServerError.js.map","export type ServerError = Error & {\n response: Response;\n result: Record;\n statusCode: number;\n};\n\nexport const throwServerError = (\n response: Response,\n result: any,\n message: string\n) => {\n const error = new Error(message) as ServerError;\n error.name = 'ServerError';\n error.response = response;\n error.statusCode = response.status;\n error.result = result;\n throw error;\n};\n","import { InvariantError } from 'ts-invariant';\nexport function validateOperation(operation) {\n var OPERATION_FIELDS = [\n 'query',\n 'operationName',\n 'variables',\n 'extensions',\n 'context',\n ];\n for (var _i = 0, _a = Object.keys(operation); _i < _a.length; _i++) {\n var key = _a[_i];\n if (OPERATION_FIELDS.indexOf(key) < 0) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(26) : new InvariantError(\"illegal argument: \" + key);\n }\n }\n return operation;\n}\n//# sourceMappingURL=validateOperation.js.map","import { InvariantError } from 'ts-invariant';\n\nimport { GraphQLRequest } from '../core';\n\nexport function validateOperation(operation: GraphQLRequest): GraphQLRequest {\n const OPERATION_FIELDS = [\n 'query',\n 'operationName',\n 'variables',\n 'extensions',\n 'context',\n ];\n for (let key of Object.keys(operation)) {\n if (OPERATION_FIELDS.indexOf(key) < 0) {\n throw new InvariantError(`illegal argument: ${key}`);\n }\n }\n\n return operation;\n}\n","import { __assign } from \"tslib\";\nexport function createOperation(starting, operation) {\n var context = __assign({}, starting);\n var setContext = function (next) {\n if (typeof next === 'function') {\n context = __assign(__assign({}, context), next(context));\n }\n else {\n context = __assign(__assign({}, context), next);\n }\n };\n var getContext = function () { return (__assign({}, context)); };\n Object.defineProperty(operation, 'setContext', {\n enumerable: false,\n value: setContext,\n });\n Object.defineProperty(operation, 'getContext', {\n enumerable: false,\n value: getContext,\n });\n return operation;\n}\n//# sourceMappingURL=createOperation.js.map","import { GraphQLRequest, Operation } from '../core';\n\nexport function createOperation(\n starting: any,\n operation: GraphQLRequest,\n): Operation {\n let context = { ...starting };\n const setContext = (next: any) => {\n if (typeof next === 'function') {\n context = { ...context, ...next(context) };\n } else {\n context = { ...context, ...next };\n }\n };\n const getContext = () => ({ ...context });\n\n Object.defineProperty(operation, 'setContext', {\n enumerable: false,\n value: setContext,\n });\n\n Object.defineProperty(operation, 'getContext', {\n enumerable: false,\n value: getContext,\n });\n\n return operation as Operation;\n}\n","import { getOperationName } from \"../../utilities/index.js\";\nexport function transformOperation(operation) {\n var transformedOperation = {\n variables: operation.variables || {},\n extensions: operation.extensions || {},\n operationName: operation.operationName,\n query: operation.query,\n };\n if (!transformedOperation.operationName) {\n transformedOperation.operationName =\n typeof transformedOperation.query !== 'string'\n ? getOperationName(transformedOperation.query) || undefined\n : '';\n }\n return transformedOperation;\n}\n//# sourceMappingURL=transformOperation.js.map","import { GraphQLRequest, Operation } from '../core';\nimport { getOperationName } from '../../utilities';\n\nexport function transformOperation(operation: GraphQLRequest): GraphQLRequest {\n const transformedOperation: GraphQLRequest = {\n variables: operation.variables || {},\n extensions: operation.extensions || {},\n operationName: operation.operationName,\n query: operation.query,\n };\n\n // Best guess at an operation name\n if (!transformedOperation.operationName) {\n transformedOperation.operationName =\n typeof transformedOperation.query !== 'string'\n ? getOperationName(transformedOperation.query) || undefined\n : '';\n }\n\n return transformedOperation as Operation;\n}\n","import { ApolloLink } from \"./ApolloLink.js\";\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from './ApolloLink';\n\nexport const from = ApolloLink.from;\n","import { ApolloLink } from \"./ApolloLink.js\";\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from './ApolloLink';\n\nexport const split = ApolloLink.split;\n","import { ApolloLink } from \"./ApolloLink.js\";\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from './ApolloLink';\n\nexport const concat = ApolloLink.concat;\n","import { ApolloLink } from \"./ApolloLink.js\";\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map","import { ApolloLink } from './ApolloLink';\n\nexport const execute = ApolloLink.execute;\n","import { DocumentNode, ExecutionResult } from 'graphql';\nexport { DocumentNode };\n\nimport { Observable } from '../../utilities';\n\nexport interface GraphQLRequest {\n query: DocumentNode;\n variables?: Record;\n operationName?: string;\n context?: Record;\n extensions?: Record;\n}\n\nexport interface Operation {\n query: DocumentNode;\n variables: Record;\n operationName: string;\n extensions: Record;\n setContext: (context: Record) => Record;\n getContext: () => Record;\n}\n\nexport interface FetchResult<\n TData = { [key: string]: any },\n C = Record,\n E = Record\n> extends ExecutionResult {\n data?: TData | null;\n extensions?: E;\n context?: C;\n};\n\nexport type NextLink = (operation: Operation) => Observable;\n\nexport type RequestHandler = (\n operation: Operation,\n forward: NextLink,\n) => Observable | null;\n","export var version = '3.3.15';\n//# sourceMappingURL=version.js.map","export const version = 'local';\n","export { parseAndCheckHttpResponse } from \"./parseAndCheckHttpResponse.js\";\nexport { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nexport { fallbackHttpConfig, selectHttpOptionsAndBody } from \"./selectHttpOptionsAndBody.js\";\nexport { checkFetcher } from \"./checkFetcher.js\";\nexport { createSignalIfSupported } from \"./createSignalIfSupported.js\";\nexport { selectURI } from \"./selectURI.js\";\nexport { createHttpLink } from \"./createHttpLink.js\";\nexport { HttpLink } from \"./HttpLink.js\";\nexport { rewriteURIForGET } from \"./rewriteURIForGET.js\";\n//# sourceMappingURL=index.js.map","export {\n parseAndCheckHttpResponse,\n ServerParseError\n} from './parseAndCheckHttpResponse';\nexport {\n serializeFetchParameter,\n ClientParseError\n} from './serializeFetchParameter';\nexport {\n HttpOptions,\n fallbackHttpConfig,\n selectHttpOptionsAndBody,\n UriFunction\n} from './selectHttpOptionsAndBody';\nexport { checkFetcher } from './checkFetcher';\nexport { createSignalIfSupported } from './createSignalIfSupported';\nexport { selectURI } from './selectURI';\nexport { createHttpLink } from './createHttpLink';\nexport { HttpLink } from './HttpLink';\nexport { rewriteURIForGET } from './rewriteURIForGET';\n","import { throwServerError } from \"../utils/index.js\";\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nexport function parseAndCheckHttpResponse(operations) {\n return function (response) { return response\n .text()\n .then(function (bodyText) {\n try {\n return JSON.parse(bodyText);\n }\n catch (err) {\n var parseError = err;\n parseError.name = 'ServerParseError';\n parseError.response = response;\n parseError.statusCode = response.status;\n parseError.bodyText = bodyText;\n throw parseError;\n }\n })\n .then(function (result) {\n if (response.status >= 300) {\n throwServerError(response, result, \"Response not successful: Received status code \" + response.status);\n }\n if (!Array.isArray(result) &&\n !hasOwnProperty.call(result, 'data') &&\n !hasOwnProperty.call(result, 'errors')) {\n throwServerError(response, result, \"Server response was missing for query '\" + (Array.isArray(operations)\n ? operations.map(function (op) { return op.operationName; })\n : operations.operationName) + \"'.\");\n }\n return result;\n }); };\n}\n//# sourceMappingURL=parseAndCheckHttpResponse.js.map","import { Operation } from '../core';\nimport { throwServerError } from '../utils';\n\nconst { hasOwnProperty } = Object.prototype;\n\nexport type ServerParseError = Error & {\n response: Response;\n statusCode: number;\n bodyText: string;\n};\n\nexport function parseAndCheckHttpResponse(\n operations: Operation | Operation[],\n) {\n return (response: Response) => response\n .text()\n .then(bodyText => {\n try {\n return JSON.parse(bodyText);\n } catch (err) {\n const parseError = err as ServerParseError;\n parseError.name = 'ServerParseError';\n parseError.response = response;\n parseError.statusCode = response.status;\n parseError.bodyText = bodyText;\n throw parseError;\n }\n })\n .then((result: any) => {\n if (response.status >= 300) {\n // Network error\n throwServerError(\n response,\n result,\n `Response not successful: Received status code ${response.status}`,\n );\n }\n\n if (\n !Array.isArray(result) &&\n !hasOwnProperty.call(result, 'data') &&\n !hasOwnProperty.call(result, 'errors')\n ) {\n // Data error\n throwServerError(\n response,\n result,\n `Server response was missing for query '${\n Array.isArray(operations)\n ? operations.map(op => op.operationName)\n : operations.operationName\n }'.`,\n );\n }\n return result;\n });\n}\n","import { InvariantError } from 'ts-invariant';\nexport var serializeFetchParameter = function (p, label) {\n var serialized;\n try {\n serialized = JSON.stringify(p);\n }\n catch (e) {\n var parseError = process.env.NODE_ENV === \"production\" ? new InvariantError(23) : new InvariantError(\"Network request failed. \" + label + \" is not serializable: \" + e.message);\n parseError.parseError = e;\n throw parseError;\n }\n return serialized;\n};\n//# sourceMappingURL=serializeFetchParameter.js.map","import { InvariantError } from 'ts-invariant';\n\nexport type ClientParseError = InvariantError & {\n parseError: Error;\n};\n\nexport const serializeFetchParameter = (p: any, label: string) => {\n let serialized;\n try {\n serialized = JSON.stringify(p);\n } catch (e) {\n const parseError = new InvariantError(\n `Network request failed. ${label} is not serializable: ${e.message}`,\n ) as ClientParseError;\n parseError.parseError = e;\n throw parseError;\n }\n return serialized;\n};\n","import { __assign } from \"tslib\";\nimport { print } from 'graphql';\nvar defaultHttpOptions = {\n includeQuery: true,\n includeExtensions: false,\n};\nvar defaultHeaders = {\n accept: '*/*',\n 'content-type': 'application/json',\n};\nvar defaultOptions = {\n method: 'POST',\n};\nexport var fallbackHttpConfig = {\n http: defaultHttpOptions,\n headers: defaultHeaders,\n options: defaultOptions,\n};\nexport var selectHttpOptionsAndBody = function (operation, fallbackConfig) {\n var configs = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n configs[_i - 2] = arguments[_i];\n }\n var options = __assign(__assign({}, fallbackConfig.options), { headers: fallbackConfig.headers, credentials: fallbackConfig.credentials });\n var http = fallbackConfig.http || {};\n configs.forEach(function (config) {\n options = __assign(__assign(__assign({}, options), config.options), { headers: __assign(__assign({}, options.headers), config.headers) });\n if (config.credentials)\n options.credentials = config.credentials;\n http = __assign(__assign({}, http), config.http);\n });\n var operationName = operation.operationName, extensions = operation.extensions, variables = operation.variables, query = operation.query;\n var body = { operationName: operationName, variables: variables };\n if (http.includeExtensions)\n body.extensions = extensions;\n if (http.includeQuery)\n body.query = print(query);\n return {\n options: options,\n body: body,\n };\n};\n//# sourceMappingURL=selectHttpOptionsAndBody.js.map","import { print } from 'graphql';\n\nimport { Operation } from '../core';\n\nexport interface UriFunction {\n (operation: Operation): string;\n}\n\nexport interface Body {\n query?: string;\n operationName?: string;\n variables?: Record;\n extensions?: Record;\n}\n\nexport interface HttpOptions {\n /**\n * The URI to use when fetching operations.\n *\n * Defaults to '/graphql'.\n */\n uri?: string | UriFunction;\n\n /**\n * Passes the extensions field to your graphql server.\n *\n * Defaults to false.\n */\n includeExtensions?: boolean;\n\n /**\n * A `fetch`-compatible API to use when making requests.\n */\n fetch?: WindowOrWorkerGlobalScope['fetch'];\n\n /**\n * An object representing values to be sent as headers on the request.\n */\n headers?: any;\n\n /**\n * The credentials policy you want to use for the fetch call.\n */\n credentials?: string;\n\n /**\n * Any overrides of the fetch options argument to pass to the fetch call.\n */\n fetchOptions?: any;\n\n /**\n * If set to true, use the HTTP GET method for query operations. Mutations\n * will still use the method specified in fetchOptions.method (which defaults\n * to POST).\n */\n useGETForQueries?: boolean;\n\n /**\n * If set to true, the default behavior of stripping unused variables\n * from the request will be disabled.\n *\n * Unused variables are likely to trigger server-side validation errors,\n * per https://spec.graphql.org/draft/#sec-All-Variables-Used, but this\n * includeUnusedVariables option can be useful if your server deviates\n * from the GraphQL specification by not strictly enforcing that rule.\n */\n includeUnusedVariables?: boolean;\n}\n\nexport interface HttpQueryOptions {\n includeQuery?: boolean;\n includeExtensions?: boolean;\n}\n\nexport interface HttpConfig {\n http?: HttpQueryOptions;\n options?: any;\n headers?: any;\n credentials?: any;\n}\n\nconst defaultHttpOptions: HttpQueryOptions = {\n includeQuery: true,\n includeExtensions: false,\n};\n\nconst defaultHeaders = {\n // headers are case insensitive (https://stackoverflow.com/a/5259004)\n accept: '*/*',\n 'content-type': 'application/json',\n};\n\nconst defaultOptions = {\n method: 'POST',\n};\n\nexport const fallbackHttpConfig = {\n http: defaultHttpOptions,\n headers: defaultHeaders,\n options: defaultOptions,\n};\n\nexport const selectHttpOptionsAndBody = (\n operation: Operation,\n fallbackConfig: HttpConfig,\n ...configs: Array\n) => {\n let options: HttpConfig & Record = {\n ...fallbackConfig.options,\n headers: fallbackConfig.headers,\n credentials: fallbackConfig.credentials,\n };\n let http: HttpQueryOptions = fallbackConfig.http || {};\n\n /*\n * use the rest of the configs to populate the options\n * configs later in the list will overwrite earlier fields\n */\n configs.forEach(config => {\n options = {\n ...options,\n ...config.options,\n headers: {\n ...options.headers,\n ...config.headers,\n },\n };\n if (config.credentials) options.credentials = config.credentials;\n\n http = {\n ...http,\n ...config.http,\n };\n });\n\n //The body depends on the http options\n const { operationName, extensions, variables, query } = operation;\n const body: Body = { operationName, variables };\n\n if (http.includeExtensions) (body as any).extensions = extensions;\n\n // not sending the query (i.e persisted queries)\n if (http.includeQuery) (body as any).query = print(query);\n\n return {\n options,\n body,\n };\n};\n","import { InvariantError } from 'ts-invariant';\nexport var checkFetcher = function (fetcher) {\n if (!fetcher && typeof fetch === 'undefined') {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(22) : new InvariantError(\"\\n\\\"fetch\\\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\\n\\nimport fetch from 'cross-fetch';\\nimport { ApolloClient, HttpLink } from '@apollo/client';\\nconst client = new ApolloClient({\\n link: new HttpLink({ uri: '/graphql', fetch })\\n});\\n \");\n }\n};\n//# sourceMappingURL=checkFetcher.js.map","import { InvariantError } from 'ts-invariant';\n\nexport const checkFetcher = (fetcher: WindowOrWorkerGlobalScope['fetch'] | undefined) => {\n if (!fetcher && typeof fetch === 'undefined') {\n throw new InvariantError(`\n\"fetch\" has not been found globally and no fetcher has been \\\nconfigured. To fix this, install a fetch package (like \\\nhttps://www.npmjs.com/package/cross-fetch), instantiate the \\\nfetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n `);\n }\n};\n","export var createSignalIfSupported = function () {\n if (typeof AbortController === 'undefined')\n return { controller: false, signal: false };\n var controller = new AbortController();\n var signal = controller.signal;\n return { controller: controller, signal: signal };\n};\n//# sourceMappingURL=createSignalIfSupported.js.map","export const createSignalIfSupported = () => {\n if (typeof AbortController === 'undefined')\n return { controller: false, signal: false };\n\n const controller = new AbortController();\n const signal = controller.signal;\n return { controller, signal };\n};\n","export var selectURI = function (operation, fallbackURI) {\n var context = operation.getContext();\n var contextURI = context.uri;\n if (contextURI) {\n return contextURI;\n }\n else if (typeof fallbackURI === 'function') {\n return fallbackURI(operation);\n }\n else {\n return fallbackURI || '/graphql';\n }\n};\n//# sourceMappingURL=selectURI.js.map","import { Operation } from '../core';\n\nexport const selectURI = (\n operation: Operation,\n fallbackURI?: string | ((operation: Operation) => string),\n) => {\n const context = operation.getContext();\n const contextURI = context.uri;\n\n if (contextURI) {\n return contextURI;\n } else if (typeof fallbackURI === 'function') {\n return fallbackURI(operation);\n } else {\n return (fallbackURI as string) || '/graphql';\n }\n};\n","import { __assign, __rest } from \"tslib\";\nimport { visit } from 'graphql';\nimport { ApolloLink } from \"../core/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nimport { selectURI } from \"./selectURI.js\";\nimport { parseAndCheckHttpResponse } from \"./parseAndCheckHttpResponse.js\";\nimport { checkFetcher } from \"./checkFetcher.js\";\nimport { selectHttpOptionsAndBody, fallbackHttpConfig } from \"./selectHttpOptionsAndBody.js\";\nimport { createSignalIfSupported } from \"./createSignalIfSupported.js\";\nimport { rewriteURIForGET } from \"./rewriteURIForGET.js\";\nimport { fromError } from \"../utils/index.js\";\nexport var createHttpLink = function (linkOptions) {\n if (linkOptions === void 0) { linkOptions = {}; }\n var _a = linkOptions.uri, uri = _a === void 0 ? '/graphql' : _a, fetcher = linkOptions.fetch, includeExtensions = linkOptions.includeExtensions, useGETForQueries = linkOptions.useGETForQueries, _b = linkOptions.includeUnusedVariables, includeUnusedVariables = _b === void 0 ? false : _b, requestOptions = __rest(linkOptions, [\"uri\", \"fetch\", \"includeExtensions\", \"useGETForQueries\", \"includeUnusedVariables\"]);\n checkFetcher(fetcher);\n if (!fetcher) {\n fetcher = fetch;\n }\n var linkConfig = {\n http: { includeExtensions: includeExtensions },\n options: requestOptions.fetchOptions,\n credentials: requestOptions.credentials,\n headers: requestOptions.headers,\n };\n return new ApolloLink(function (operation) {\n var chosenURI = selectURI(operation, uri);\n var context = operation.getContext();\n var clientAwarenessHeaders = {};\n if (context.clientAwareness) {\n var _a = context.clientAwareness, name_1 = _a.name, version = _a.version;\n if (name_1) {\n clientAwarenessHeaders['apollographql-client-name'] = name_1;\n }\n if (version) {\n clientAwarenessHeaders['apollographql-client-version'] = version;\n }\n }\n var contextHeaders = __assign(__assign({}, clientAwarenessHeaders), context.headers);\n var contextConfig = {\n http: context.http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: contextHeaders,\n };\n var _b = selectHttpOptionsAndBody(operation, fallbackHttpConfig, linkConfig, contextConfig), options = _b.options, body = _b.body;\n if (body.variables && !includeUnusedVariables) {\n var unusedNames_1 = new Set(Object.keys(body.variables));\n visit(operation.query, {\n Variable: function (node, _key, parent) {\n if (parent && parent.kind !== 'VariableDefinition') {\n unusedNames_1.delete(node.name.value);\n }\n },\n });\n if (unusedNames_1.size) {\n body.variables = __assign({}, body.variables);\n unusedNames_1.forEach(function (name) {\n delete body.variables[name];\n });\n }\n }\n var controller;\n if (!options.signal) {\n var _c = createSignalIfSupported(), _controller = _c.controller, signal = _c.signal;\n controller = _controller;\n if (controller)\n options.signal = signal;\n }\n var definitionIsMutation = function (d) {\n return d.kind === 'OperationDefinition' && d.operation === 'mutation';\n };\n if (useGETForQueries &&\n !operation.query.definitions.some(definitionIsMutation)) {\n options.method = 'GET';\n }\n if (options.method === 'GET') {\n var _d = rewriteURIForGET(chosenURI, body), newURI = _d.newURI, parseError = _d.parseError;\n if (parseError) {\n return fromError(parseError);\n }\n chosenURI = newURI;\n }\n else {\n try {\n options.body = serializeFetchParameter(body, 'Payload');\n }\n catch (parseError) {\n return fromError(parseError);\n }\n }\n return new Observable(function (observer) {\n fetcher(chosenURI, options)\n .then(function (response) {\n operation.setContext({ response: response });\n return response;\n })\n .then(parseAndCheckHttpResponse(operation))\n .then(function (result) {\n observer.next(result);\n observer.complete();\n return result;\n })\n .catch(function (err) {\n if (err.name === 'AbortError')\n return;\n if (err.result && err.result.errors && err.result.data) {\n observer.next(err.result);\n }\n observer.error(err);\n });\n return function () {\n if (controller)\n controller.abort();\n };\n });\n });\n};\n//# sourceMappingURL=createHttpLink.js.map","import { visit, DefinitionNode, VariableDefinitionNode } from 'graphql';\n\nimport { ApolloLink } from '../core';\nimport { Observable } from '../../utilities';\nimport { serializeFetchParameter } from './serializeFetchParameter';\nimport { selectURI } from './selectURI';\nimport { parseAndCheckHttpResponse } from './parseAndCheckHttpResponse';\nimport { checkFetcher } from './checkFetcher';\nimport {\n selectHttpOptionsAndBody,\n fallbackHttpConfig,\n HttpOptions\n} from './selectHttpOptionsAndBody';\nimport { createSignalIfSupported } from './createSignalIfSupported';\nimport { rewriteURIForGET } from './rewriteURIForGET';\nimport { fromError } from '../utils';\n\nexport const createHttpLink = (linkOptions: HttpOptions = {}) => {\n let {\n uri = '/graphql',\n // use default global fetch if nothing passed in\n fetch: fetcher,\n includeExtensions,\n useGETForQueries,\n includeUnusedVariables = false,\n ...requestOptions\n } = linkOptions;\n\n // dev warnings to ensure fetch is present\n checkFetcher(fetcher);\n\n //fetcher is set here rather than the destructuring to ensure fetch is\n //declared before referencing it. Reference in the destructuring would cause\n //a ReferenceError\n if (!fetcher) {\n fetcher = fetch;\n }\n\n const linkConfig = {\n http: { includeExtensions },\n options: requestOptions.fetchOptions,\n credentials: requestOptions.credentials,\n headers: requestOptions.headers,\n };\n\n return new ApolloLink(operation => {\n let chosenURI = selectURI(operation, uri);\n\n const context = operation.getContext();\n\n // `apollographql-client-*` headers are automatically set if a\n // `clientAwareness` object is found in the context. These headers are\n // set first, followed by the rest of the headers pulled from\n // `context.headers`. If desired, `apollographql-client-*` headers set by\n // the `clientAwareness` object can be overridden by\n // `apollographql-client-*` headers set in `context.headers`.\n const clientAwarenessHeaders: {\n 'apollographql-client-name'?: string;\n 'apollographql-client-version'?: string;\n } = {};\n\n if (context.clientAwareness) {\n const { name, version } = context.clientAwareness;\n if (name) {\n clientAwarenessHeaders['apollographql-client-name'] = name;\n }\n if (version) {\n clientAwarenessHeaders['apollographql-client-version'] = version;\n }\n }\n\n const contextHeaders = { ...clientAwarenessHeaders, ...context.headers };\n\n const contextConfig = {\n http: context.http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: contextHeaders,\n };\n\n //uses fallback, link, and then context to build options\n const { options, body } = selectHttpOptionsAndBody(\n operation,\n fallbackHttpConfig,\n linkConfig,\n contextConfig,\n );\n\n if (body.variables && !includeUnusedVariables) {\n const unusedNames = new Set(Object.keys(body.variables));\n visit(operation.query, {\n Variable(node, _key, parent) {\n // A variable type definition at the top level of a query is not\n // enough to silence server-side errors about the variable being\n // unused, so variable definitions do not count as usage.\n // https://spec.graphql.org/draft/#sec-All-Variables-Used\n if (parent && (parent as VariableDefinitionNode).kind !== 'VariableDefinition') {\n unusedNames.delete(node.name.value);\n }\n },\n });\n if (unusedNames.size) {\n // Make a shallow copy of body.variables (with keys in the same\n // order) and then delete unused variables from the copy.\n body.variables = { ...body.variables };\n unusedNames.forEach(name => {\n delete body.variables![name];\n });\n }\n }\n\n let controller: any;\n if (!(options as any).signal) {\n const { controller: _controller, signal } = createSignalIfSupported();\n controller = _controller;\n if (controller) (options as any).signal = signal;\n }\n\n // If requested, set method to GET if there are no mutations.\n const definitionIsMutation = (d: DefinitionNode) => {\n return d.kind === 'OperationDefinition' && d.operation === 'mutation';\n };\n if (\n useGETForQueries &&\n !operation.query.definitions.some(definitionIsMutation)\n ) {\n options.method = 'GET';\n }\n\n if (options.method === 'GET') {\n const { newURI, parseError } = rewriteURIForGET(chosenURI, body);\n if (parseError) {\n return fromError(parseError);\n }\n chosenURI = newURI;\n } else {\n try {\n (options as any).body = serializeFetchParameter(body, 'Payload');\n } catch (parseError) {\n return fromError(parseError);\n }\n }\n\n return new Observable(observer => {\n fetcher!(chosenURI, options)\n .then(response => {\n operation.setContext({ response });\n return response;\n })\n .then(parseAndCheckHttpResponse(operation))\n .then(result => {\n // we have data and can send it to back up the link chain\n observer.next(result);\n observer.complete();\n return result;\n })\n .catch(err => {\n // fetch was cancelled so it's already been cleaned up in the unsubscribe\n if (err.name === 'AbortError') return;\n // if it is a network error, BUT there is graphql result info\n // fire the next observer before calling error\n // this gives apollo-client (and react-apollo) the `graphqlErrors` and `networErrors`\n // to pass to UI\n // this should only happen if we *also* have data as part of the response key per\n // the spec\n if (err.result && err.result.errors && err.result.data) {\n // if we don't call next, the UI can only show networkError because AC didn't\n // get any graphqlErrors\n // this is graphql execution result info (i.e errors and possibly data)\n // this is because there is no formal spec how errors should translate to\n // http status codes. So an auth error (401) could have both data\n // from a public field, errors from a private field, and a status of 401\n // {\n // user { // this will have errors\n // firstName\n // }\n // products { // this is public so will have data\n // cost\n // }\n // }\n //\n // the result of above *could* look like this:\n // {\n // data: { products: [{ cost: \"$10\" }] },\n // errors: [{\n // message: 'your session has timed out',\n // path: []\n // }]\n // }\n // status code of above would be a 401\n // in the UI you want to show data where you can, errors as data where you can\n // and use correct http status codes\n observer.next(err.result);\n }\n observer.error(err);\n });\n\n return () => {\n // XXX support canceling this request\n // https://developers.google.com/web/updates/2017/09/abortable-fetch\n if (controller) controller.abort();\n };\n });\n });\n};\n","import { serializeFetchParameter } from \"./serializeFetchParameter.js\";\nexport function rewriteURIForGET(chosenURI, body) {\n var queryParams = [];\n var addQueryParam = function (key, value) {\n queryParams.push(key + \"=\" + encodeURIComponent(value));\n };\n if ('query' in body) {\n addQueryParam('query', body.query);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n var serializedVariables = void 0;\n try {\n serializedVariables = serializeFetchParameter(body.variables, 'Variables map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n var serializedExtensions = void 0;\n try {\n serializedExtensions = serializeFetchParameter(body.extensions, 'Extensions map');\n }\n catch (parseError) {\n return { parseError: parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n var fragment = '', preFragment = chosenURI;\n var fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n var queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n var newURI = preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI: newURI };\n}\n//# sourceMappingURL=rewriteURIForGET.js.map","import { serializeFetchParameter } from './serializeFetchParameter';\nimport { Body } from './selectHttpOptionsAndBody';\n\n// For GET operations, returns the given URI rewritten with parameters, or a\n// parse error.\nexport function rewriteURIForGET(chosenURI: string, body: Body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n const queryParams: string[] = [];\n const addQueryParam = (key: string, value: string) => {\n queryParams.push(`${key}=${encodeURIComponent(value)}`);\n };\n\n if ('query' in body) {\n addQueryParam('query', body.query!);\n }\n if (body.operationName) {\n addQueryParam('operationName', body.operationName);\n }\n if (body.variables) {\n let serializedVariables;\n try {\n serializedVariables = serializeFetchParameter(\n body.variables,\n 'Variables map',\n );\n } catch (parseError) {\n return { parseError };\n }\n addQueryParam('variables', serializedVariables);\n }\n if (body.extensions) {\n let serializedExtensions;\n try {\n serializedExtensions = serializeFetchParameter(\n body.extensions,\n 'Extensions map',\n );\n } catch (parseError) {\n return { parseError };\n }\n addQueryParam('extensions', serializedExtensions);\n }\n\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n let fragment = '',\n preFragment = chosenURI;\n const fragmentStart = chosenURI.indexOf('#');\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n const queryParamsPrefix = preFragment.indexOf('?') === -1 ? '?' : '&';\n const newURI =\n preFragment + queryParamsPrefix + queryParams.join('&') + fragment;\n return { newURI };\n}\n","import { __extends } from \"tslib\";\nimport { ApolloLink } from \"../core/index.js\";\nimport { createHttpLink } from \"./createHttpLink.js\";\nvar HttpLink = (function (_super) {\n __extends(HttpLink, _super);\n function HttpLink(options) {\n if (options === void 0) { options = {}; }\n var _this = _super.call(this, createHttpLink(options).request) || this;\n _this.options = options;\n return _this;\n }\n return HttpLink;\n}(ApolloLink));\nexport { HttpLink };\n//# sourceMappingURL=HttpLink.js.map","import { ApolloLink, RequestHandler } from '../core';\nimport { HttpOptions } from './selectHttpOptionsAndBody';\nimport { createHttpLink } from './createHttpLink';\n\nexport class HttpLink extends ApolloLink {\n public requester: RequestHandler;\n constructor(public options: HttpOptions = {}) {\n super(createHttpLink(options).request);\n }\n}\n","import { __assign, __awaiter, __generator } from \"tslib\";\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { equal } from '@wry/equality';\nimport { execute } from \"../link/core/index.js\";\nimport { getDefaultValues, getOperationDefinition, getOperationName, hasClientExports, graphQLResultHasError, removeConnectionDirectiveFromDocument, canUseWeakMap, Observable, asyncMap, isNonEmptyArray, Concast, } from \"../utilities/index.js\";\nimport { ApolloError, isApolloError } from \"../errors/index.js\";\nimport { ObservableQuery } from \"./ObservableQuery.js\";\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport { LocalState } from \"./LocalState.js\";\nimport { QueryInfo, shouldWriteResult } from \"./QueryInfo.js\";\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar QueryManager = (function () {\n function QueryManager(_a) {\n var cache = _a.cache, link = _a.link, _b = _a.queryDeduplication, queryDeduplication = _b === void 0 ? false : _b, onBroadcast = _a.onBroadcast, _c = _a.ssrMode, ssrMode = _c === void 0 ? false : _c, _d = _a.clientAwareness, clientAwareness = _d === void 0 ? {} : _d, localState = _a.localState, assumeImmutableResults = _a.assumeImmutableResults;\n this.clientAwareness = {};\n this.queries = new Map();\n this.fetchCancelFns = new Map();\n this.transformCache = new (canUseWeakMap ? WeakMap : Map)();\n this.queryIdCounter = 1;\n this.requestIdCounter = 1;\n this.mutationIdCounter = 1;\n this.inFlightLinkObservables = new Map();\n this.cache = cache;\n this.link = link;\n this.queryDeduplication = queryDeduplication;\n this.clientAwareness = clientAwareness;\n this.localState = localState || new LocalState({ cache: cache });\n this.ssrMode = ssrMode;\n this.assumeImmutableResults = !!assumeImmutableResults;\n if ((this.onBroadcast = onBroadcast)) {\n this.mutationStore = Object.create(null);\n }\n }\n QueryManager.prototype.stop = function () {\n var _this = this;\n this.queries.forEach(function (_info, queryId) {\n _this.stopQueryNoBroadcast(queryId);\n });\n this.cancelPendingFetches(process.env.NODE_ENV === \"production\" ? new InvariantError(12) : new InvariantError('QueryManager stopped while query was in flight'));\n };\n QueryManager.prototype.cancelPendingFetches = function (error) {\n this.fetchCancelFns.forEach(function (cancel) { return cancel(error); });\n this.fetchCancelFns.clear();\n };\n QueryManager.prototype.mutate = function (_a) {\n var mutation = _a.mutation, variables = _a.variables, optimisticResponse = _a.optimisticResponse, updateQueries = _a.updateQueries, _b = _a.refetchQueries, refetchQueries = _b === void 0 ? [] : _b, _c = _a.awaitRefetchQueries, awaitRefetchQueries = _c === void 0 ? false : _c, updateWithProxyFn = _a.update, _d = _a.errorPolicy, errorPolicy = _d === void 0 ? 'none' : _d, fetchPolicy = _a.fetchPolicy, _e = _a.context, context = _e === void 0 ? {} : _e;\n return __awaiter(this, void 0, void 0, function () {\n var mutationId, mutationStoreValue, self;\n return __generator(this, function (_f) {\n switch (_f.label) {\n case 0:\n process.env.NODE_ENV === \"production\" ? invariant(mutation, 13) : invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.');\n process.env.NODE_ENV === \"production\" ? invariant(!fetchPolicy || fetchPolicy === 'no-cache', 14) : invariant(!fetchPolicy || fetchPolicy === 'no-cache', \"Mutations only support a 'no-cache' fetchPolicy. If you don't want to disable the cache, remove your fetchPolicy setting to proceed with the default mutation behavior.\");\n mutationId = this.generateMutationId();\n mutation = this.transform(mutation).document;\n variables = this.getVariables(mutation, variables);\n if (!this.transform(mutation).hasClientExports) return [3, 2];\n return [4, this.localState.addExportedVariables(mutation, variables, context)];\n case 1:\n variables = _f.sent();\n _f.label = 2;\n case 2:\n mutationStoreValue = this.mutationStore &&\n (this.mutationStore[mutationId] = {\n mutation: mutation,\n variables: variables,\n loading: true,\n error: null,\n });\n if (optimisticResponse) {\n this.markMutationOptimistic(optimisticResponse, {\n mutationId: mutationId,\n document: mutation,\n variables: variables,\n errorPolicy: errorPolicy,\n updateQueries: updateQueries,\n update: updateWithProxyFn,\n });\n }\n this.broadcastQueries();\n self = this;\n return [2, new Promise(function (resolve, reject) {\n var storeResult;\n var error;\n self.getObservableFromLink(mutation, __assign(__assign({}, context), { optimisticResponse: optimisticResponse }), variables, false).subscribe({\n next: function (result) {\n if (graphQLResultHasError(result) && errorPolicy === 'none') {\n error = new ApolloError({\n graphQLErrors: result.errors,\n });\n return;\n }\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = null;\n }\n if (fetchPolicy !== 'no-cache') {\n try {\n self.markMutationResult({\n mutationId: mutationId,\n result: result,\n document: mutation,\n variables: variables,\n errorPolicy: errorPolicy,\n updateQueries: updateQueries,\n update: updateWithProxyFn,\n });\n }\n catch (e) {\n error = new ApolloError({\n networkError: e,\n });\n return;\n }\n }\n storeResult = result;\n },\n error: function (err) {\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = err;\n }\n if (optimisticResponse) {\n self.cache.removeOptimistic(mutationId);\n }\n self.broadcastQueries();\n reject(new ApolloError({\n networkError: err,\n }));\n },\n complete: function () {\n if (error && mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = error;\n }\n if (optimisticResponse) {\n self.cache.removeOptimistic(mutationId);\n }\n self.broadcastQueries();\n if (error) {\n reject(error);\n return;\n }\n if (typeof refetchQueries === 'function') {\n refetchQueries = refetchQueries(storeResult);\n }\n var refetchQueryPromises = [];\n if (isNonEmptyArray(refetchQueries)) {\n refetchQueries.forEach(function (refetchQuery) {\n if (typeof refetchQuery === 'string') {\n self.queries.forEach(function (_a) {\n var observableQuery = _a.observableQuery;\n if (observableQuery &&\n observableQuery.hasObservers() &&\n observableQuery.queryName === refetchQuery) {\n refetchQueryPromises.push(observableQuery.refetch());\n }\n });\n }\n else {\n var queryOptions = {\n query: refetchQuery.query,\n variables: refetchQuery.variables,\n fetchPolicy: 'network-only',\n };\n if (refetchQuery.context) {\n queryOptions.context = refetchQuery.context;\n }\n refetchQueryPromises.push(self.query(queryOptions));\n }\n });\n }\n Promise.all(awaitRefetchQueries ? refetchQueryPromises : []).then(function () {\n if (errorPolicy === 'ignore' &&\n storeResult &&\n graphQLResultHasError(storeResult)) {\n delete storeResult.errors;\n }\n resolve(storeResult);\n }, reject);\n },\n });\n })];\n }\n });\n });\n };\n QueryManager.prototype.markMutationResult = function (mutation, cache) {\n var _this = this;\n if (cache === void 0) { cache = this.cache; }\n if (shouldWriteResult(mutation.result, mutation.errorPolicy)) {\n var cacheWrites_1 = [{\n result: mutation.result.data,\n dataId: 'ROOT_MUTATION',\n query: mutation.document,\n variables: mutation.variables,\n }];\n var updateQueries_1 = mutation.updateQueries;\n if (updateQueries_1) {\n this.queries.forEach(function (_a, queryId) {\n var observableQuery = _a.observableQuery;\n var queryName = observableQuery && observableQuery.queryName;\n if (!queryName || !hasOwnProperty.call(updateQueries_1, queryName)) {\n return;\n }\n var updater = updateQueries_1[queryName];\n var _b = _this.queries.get(queryId), document = _b.document, variables = _b.variables;\n var _c = cache.diff({\n query: document,\n variables: variables,\n returnPartialData: true,\n optimistic: false,\n }), currentQueryResult = _c.result, complete = _c.complete;\n if (complete && currentQueryResult) {\n var nextQueryResult = updater(currentQueryResult, {\n mutationResult: mutation.result,\n queryName: document && getOperationName(document) || void 0,\n queryVariables: variables,\n });\n if (nextQueryResult) {\n cacheWrites_1.push({\n result: nextQueryResult,\n dataId: 'ROOT_QUERY',\n query: document,\n variables: variables,\n });\n }\n }\n });\n }\n cache.performTransaction(function (c) {\n cacheWrites_1.forEach(function (write) { return c.write(write); });\n var update = mutation.update;\n if (update) {\n update(c, mutation.result);\n }\n }, null);\n }\n };\n QueryManager.prototype.markMutationOptimistic = function (optimisticResponse, mutation) {\n var _this = this;\n var data = typeof optimisticResponse === \"function\"\n ? optimisticResponse(mutation.variables)\n : optimisticResponse;\n return this.cache.recordOptimisticTransaction(function (cache) {\n try {\n _this.markMutationResult(__assign(__assign({}, mutation), { result: { data: data } }), cache);\n }\n catch (error) {\n process.env.NODE_ENV === \"production\" || invariant.error(error);\n }\n }, mutation.mutationId);\n };\n QueryManager.prototype.fetchQuery = function (queryId, options, networkStatus) {\n return this.fetchQueryObservable(queryId, options, networkStatus).promise;\n };\n QueryManager.prototype.getQueryStore = function () {\n var store = Object.create(null);\n this.queries.forEach(function (info, queryId) {\n store[queryId] = {\n variables: info.variables,\n networkStatus: info.networkStatus,\n networkError: info.networkError,\n graphQLErrors: info.graphQLErrors,\n };\n });\n return store;\n };\n QueryManager.prototype.resetErrors = function (queryId) {\n var queryInfo = this.queries.get(queryId);\n if (queryInfo) {\n queryInfo.networkError = undefined;\n queryInfo.graphQLErrors = [];\n }\n };\n QueryManager.prototype.transform = function (document) {\n var transformCache = this.transformCache;\n if (!transformCache.has(document)) {\n var transformed = this.cache.transformDocument(document);\n var forLink = removeConnectionDirectiveFromDocument(this.cache.transformForLink(transformed));\n var clientQuery = this.localState.clientQuery(transformed);\n var serverQuery = forLink && this.localState.serverQuery(forLink);\n var cacheEntry_1 = {\n document: transformed,\n hasClientExports: hasClientExports(transformed),\n hasForcedResolvers: this.localState.shouldForceResolvers(transformed),\n clientQuery: clientQuery,\n serverQuery: serverQuery,\n defaultVars: getDefaultValues(getOperationDefinition(transformed)),\n };\n var add = function (doc) {\n if (doc && !transformCache.has(doc)) {\n transformCache.set(doc, cacheEntry_1);\n }\n };\n add(document);\n add(transformed);\n add(clientQuery);\n add(serverQuery);\n }\n return transformCache.get(document);\n };\n QueryManager.prototype.getVariables = function (document, variables) {\n return __assign(__assign({}, this.transform(document).defaultVars), variables);\n };\n QueryManager.prototype.watchQuery = function (options) {\n options = __assign(__assign({}, options), { variables: this.getVariables(options.query, options.variables) });\n if (typeof options.notifyOnNetworkStatusChange === 'undefined') {\n options.notifyOnNetworkStatusChange = false;\n }\n var queryInfo = new QueryInfo(this.cache);\n var observable = new ObservableQuery({\n queryManager: this,\n queryInfo: queryInfo,\n options: options,\n });\n this.queries.set(observable.queryId, queryInfo);\n queryInfo.init({\n document: options.query,\n observableQuery: observable,\n variables: options.variables,\n });\n return observable;\n };\n QueryManager.prototype.query = function (options) {\n var _this = this;\n process.env.NODE_ENV === \"production\" ? invariant(options.query, 15) : invariant(options.query, 'query option is required. You must specify your GraphQL document ' +\n 'in the query option.');\n process.env.NODE_ENV === \"production\" ? invariant(options.query.kind === 'Document', 16) : invariant(options.query.kind === 'Document', 'You must wrap the query string in a \"gql\" tag.');\n process.env.NODE_ENV === \"production\" ? invariant(!options.returnPartialData, 17) : invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.');\n process.env.NODE_ENV === \"production\" ? invariant(!options.pollInterval, 18) : invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.');\n var queryId = this.generateQueryId();\n return this.fetchQuery(queryId, options).finally(function () { return _this.stopQuery(queryId); });\n };\n QueryManager.prototype.generateQueryId = function () {\n return String(this.queryIdCounter++);\n };\n QueryManager.prototype.generateRequestId = function () {\n return this.requestIdCounter++;\n };\n QueryManager.prototype.generateMutationId = function () {\n return String(this.mutationIdCounter++);\n };\n QueryManager.prototype.stopQueryInStore = function (queryId) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.broadcastQueries();\n };\n QueryManager.prototype.stopQueryInStoreNoBroadcast = function (queryId) {\n var queryInfo = this.queries.get(queryId);\n if (queryInfo)\n queryInfo.stop();\n };\n QueryManager.prototype.clearStore = function () {\n this.cancelPendingFetches(process.env.NODE_ENV === \"production\" ? new InvariantError(19) : new InvariantError('Store reset while query was in flight (not completed in link chain)'));\n this.queries.forEach(function (queryInfo) {\n if (queryInfo.observableQuery) {\n queryInfo.networkStatus = NetworkStatus.loading;\n }\n else {\n queryInfo.stop();\n }\n });\n if (this.mutationStore) {\n this.mutationStore = Object.create(null);\n }\n return this.cache.reset();\n };\n QueryManager.prototype.resetStore = function () {\n var _this = this;\n return this.clearStore().then(function () {\n return _this.reFetchObservableQueries();\n });\n };\n QueryManager.prototype.reFetchObservableQueries = function (includeStandby) {\n var _this = this;\n if (includeStandby === void 0) { includeStandby = false; }\n var observableQueryPromises = [];\n this.queries.forEach(function (_a, queryId) {\n var observableQuery = _a.observableQuery;\n if (observableQuery && observableQuery.hasObservers()) {\n var fetchPolicy = observableQuery.options.fetchPolicy;\n observableQuery.resetLastResults();\n if (fetchPolicy !== 'cache-only' &&\n (includeStandby || fetchPolicy !== 'standby')) {\n observableQueryPromises.push(observableQuery.refetch());\n }\n _this.getQuery(queryId).setDiff(null);\n }\n });\n this.broadcastQueries();\n return Promise.all(observableQueryPromises);\n };\n QueryManager.prototype.setObservableQuery = function (observableQuery) {\n this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery);\n };\n QueryManager.prototype.startGraphQLSubscription = function (_a) {\n var _this = this;\n var query = _a.query, fetchPolicy = _a.fetchPolicy, errorPolicy = _a.errorPolicy, variables = _a.variables, _b = _a.context, context = _b === void 0 ? {} : _b;\n query = this.transform(query).document;\n variables = this.getVariables(query, variables);\n var makeObservable = function (variables) {\n return _this.getObservableFromLink(query, context, variables, false).map(function (result) {\n if (fetchPolicy !== 'no-cache') {\n if (shouldWriteResult(result, errorPolicy)) {\n _this.cache.write({\n query: query,\n result: result.data,\n dataId: 'ROOT_SUBSCRIPTION',\n variables: variables,\n });\n }\n _this.broadcastQueries();\n }\n if (graphQLResultHasError(result)) {\n throw new ApolloError({\n graphQLErrors: result.errors,\n });\n }\n return result;\n });\n };\n if (this.transform(query).hasClientExports) {\n var observablePromise_1 = this.localState.addExportedVariables(query, variables, context).then(makeObservable);\n return new Observable(function (observer) {\n var sub = null;\n observablePromise_1.then(function (observable) { return sub = observable.subscribe(observer); }, observer.error);\n return function () { return sub && sub.unsubscribe(); };\n });\n }\n return makeObservable(variables);\n };\n QueryManager.prototype.stopQuery = function (queryId) {\n this.stopQueryNoBroadcast(queryId);\n this.broadcastQueries();\n };\n QueryManager.prototype.stopQueryNoBroadcast = function (queryId) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.removeQuery(queryId);\n };\n QueryManager.prototype.removeQuery = function (queryId) {\n this.fetchCancelFns.delete(queryId);\n this.getQuery(queryId).stop();\n this.queries.delete(queryId);\n };\n QueryManager.prototype.broadcastQueries = function () {\n if (this.onBroadcast)\n this.onBroadcast();\n this.queries.forEach(function (info) { return info.notify(); });\n };\n QueryManager.prototype.getLocalState = function () {\n return this.localState;\n };\n QueryManager.prototype.getObservableFromLink = function (query, context, variables, deduplication) {\n var _this = this;\n var _a;\n if (deduplication === void 0) { deduplication = (_a = context === null || context === void 0 ? void 0 : context.queryDeduplication) !== null && _a !== void 0 ? _a : this.queryDeduplication; }\n var observable;\n var serverQuery = this.transform(query).serverQuery;\n if (serverQuery) {\n var _b = this, inFlightLinkObservables_1 = _b.inFlightLinkObservables, link = _b.link;\n var operation = {\n query: serverQuery,\n variables: variables,\n operationName: getOperationName(serverQuery) || void 0,\n context: this.prepareContext(__assign(__assign({}, context), { forceFetch: !deduplication })),\n };\n context = operation.context;\n if (deduplication) {\n var byVariables_1 = inFlightLinkObservables_1.get(serverQuery) || new Map();\n inFlightLinkObservables_1.set(serverQuery, byVariables_1);\n var varJson_1 = JSON.stringify(variables);\n observable = byVariables_1.get(varJson_1);\n if (!observable) {\n var concast = new Concast([\n execute(link, operation)\n ]);\n byVariables_1.set(varJson_1, observable = concast);\n concast.cleanup(function () {\n if (byVariables_1.delete(varJson_1) &&\n byVariables_1.size < 1) {\n inFlightLinkObservables_1.delete(serverQuery);\n }\n });\n }\n }\n else {\n observable = new Concast([\n execute(link, operation)\n ]);\n }\n }\n else {\n observable = new Concast([\n Observable.of({ data: {} })\n ]);\n context = this.prepareContext(context);\n }\n var clientQuery = this.transform(query).clientQuery;\n if (clientQuery) {\n observable = asyncMap(observable, function (result) {\n return _this.localState.runResolvers({\n document: clientQuery,\n remoteResult: result,\n context: context,\n variables: variables,\n });\n });\n }\n return observable;\n };\n QueryManager.prototype.getResultsFromLink = function (queryInfo, allowCacheWrite, options) {\n var requestId = queryInfo.lastRequestId = this.generateRequestId();\n return asyncMap(this.getObservableFromLink(queryInfo.document, options.context, options.variables), function (result) {\n var hasErrors = isNonEmptyArray(result.errors);\n if (requestId >= queryInfo.lastRequestId) {\n if (hasErrors && options.errorPolicy === \"none\") {\n throw queryInfo.markError(new ApolloError({\n graphQLErrors: result.errors,\n }));\n }\n queryInfo.markResult(result, options, allowCacheWrite);\n queryInfo.markReady();\n }\n var aqr = {\n data: result.data,\n loading: false,\n networkStatus: queryInfo.networkStatus || NetworkStatus.ready,\n };\n if (hasErrors && options.errorPolicy !== \"ignore\") {\n aqr.errors = result.errors;\n }\n return aqr;\n }, function (networkError) {\n var error = isApolloError(networkError)\n ? networkError\n : new ApolloError({ networkError: networkError });\n if (requestId >= queryInfo.lastRequestId) {\n queryInfo.markError(error);\n }\n throw error;\n });\n };\n QueryManager.prototype.fetchQueryObservable = function (queryId, options, networkStatus) {\n var _this = this;\n if (networkStatus === void 0) { networkStatus = NetworkStatus.loading; }\n var query = this.transform(options.query).document;\n var variables = this.getVariables(query, options.variables);\n var queryInfo = this.getQuery(queryId);\n var oldNetworkStatus = queryInfo.networkStatus;\n var _a = options.fetchPolicy, fetchPolicy = _a === void 0 ? \"cache-first\" : _a, _b = options.errorPolicy, errorPolicy = _b === void 0 ? \"none\" : _b, _c = options.returnPartialData, returnPartialData = _c === void 0 ? false : _c, _d = options.notifyOnNetworkStatusChange, notifyOnNetworkStatusChange = _d === void 0 ? false : _d, _e = options.context, context = _e === void 0 ? {} : _e;\n var mightUseNetwork = fetchPolicy === \"cache-first\" ||\n fetchPolicy === \"cache-and-network\" ||\n fetchPolicy === \"network-only\" ||\n fetchPolicy === \"no-cache\";\n if (mightUseNetwork &&\n notifyOnNetworkStatusChange &&\n typeof oldNetworkStatus === \"number\" &&\n oldNetworkStatus !== networkStatus &&\n isNetworkRequestInFlight(networkStatus)) {\n if (fetchPolicy !== \"cache-first\") {\n fetchPolicy = \"cache-and-network\";\n }\n returnPartialData = true;\n }\n var normalized = Object.assign({}, options, {\n query: query,\n variables: variables,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy,\n returnPartialData: returnPartialData,\n notifyOnNetworkStatusChange: notifyOnNetworkStatusChange,\n context: context,\n });\n var fromVariables = function (variables) {\n normalized.variables = variables;\n return _this.fetchQueryByPolicy(queryInfo, normalized, networkStatus);\n };\n this.fetchCancelFns.set(queryId, function (reason) {\n Promise.resolve().then(function () { return concast.cancel(reason); });\n });\n var concast = new Concast(this.transform(normalized.query).hasClientExports\n ? this.localState.addExportedVariables(normalized.query, normalized.variables, normalized.context).then(fromVariables)\n : fromVariables(normalized.variables));\n concast.cleanup(function () {\n _this.fetchCancelFns.delete(queryId);\n var nextFetchPolicy = options.nextFetchPolicy;\n if (nextFetchPolicy) {\n options.nextFetchPolicy = void 0;\n options.fetchPolicy = typeof nextFetchPolicy === \"function\"\n ? nextFetchPolicy.call(options, options.fetchPolicy || \"cache-first\")\n : nextFetchPolicy;\n }\n });\n return concast;\n };\n QueryManager.prototype.fetchQueryByPolicy = function (queryInfo, options, networkStatus) {\n var _this = this;\n var query = options.query, variables = options.variables, fetchPolicy = options.fetchPolicy, errorPolicy = options.errorPolicy, returnPartialData = options.returnPartialData, context = options.context;\n queryInfo.init({\n document: query,\n variables: variables,\n networkStatus: networkStatus,\n });\n var readCache = function () { return queryInfo.getDiff(variables); };\n var resultsFromCache = function (diff, networkStatus) {\n if (networkStatus === void 0) { networkStatus = queryInfo.networkStatus || NetworkStatus.loading; }\n var data = diff.result;\n if (process.env.NODE_ENV !== 'production' &&\n isNonEmptyArray(diff.missing) &&\n !equal(data, {}) &&\n !returnPartialData) {\n process.env.NODE_ENV === \"production\" || invariant.warn(\"Missing cache result fields: \" + diff.missing.map(function (m) { return m.path.join('.'); }).join(', '), diff.missing);\n }\n var fromData = function (data) { return Observable.of(__assign({ data: data, loading: isNetworkRequestInFlight(networkStatus), networkStatus: networkStatus }, (diff.complete ? null : { partial: true }))); };\n if (_this.transform(query).hasForcedResolvers) {\n return _this.localState.runResolvers({\n document: query,\n remoteResult: { data: data },\n context: context,\n variables: variables,\n onlyRunForcedResolvers: true,\n }).then(function (resolved) { return fromData(resolved.data); });\n }\n return fromData(data);\n };\n var resultsFromLink = function (allowCacheWrite) {\n return _this.getResultsFromLink(queryInfo, allowCacheWrite, {\n variables: variables,\n context: context,\n fetchPolicy: fetchPolicy,\n errorPolicy: errorPolicy,\n });\n };\n switch (fetchPolicy) {\n default:\n case \"cache-first\": {\n var diff = readCache();\n if (diff.complete) {\n return [\n resultsFromCache(diff, queryInfo.markReady()),\n ];\n }\n if (returnPartialData) {\n return [\n resultsFromCache(diff),\n resultsFromLink(true),\n ];\n }\n return [\n resultsFromLink(true),\n ];\n }\n case \"cache-and-network\": {\n var diff = readCache();\n if (diff.complete || returnPartialData) {\n return [\n resultsFromCache(diff),\n resultsFromLink(true),\n ];\n }\n return [\n resultsFromLink(true),\n ];\n }\n case \"cache-only\":\n return [\n resultsFromCache(readCache(), queryInfo.markReady()),\n ];\n case \"network-only\":\n return [resultsFromLink(true)];\n case \"no-cache\":\n return [resultsFromLink(false)];\n case \"standby\":\n return [];\n }\n };\n QueryManager.prototype.getQuery = function (queryId) {\n if (queryId && !this.queries.has(queryId)) {\n this.queries.set(queryId, new QueryInfo(this.cache));\n }\n return this.queries.get(queryId);\n };\n QueryManager.prototype.prepareContext = function (context) {\n if (context === void 0) { context = {}; }\n var newContext = this.localState.prepareContext(context);\n return __assign(__assign({}, newContext), { clientAwareness: this.clientAwareness });\n };\n return QueryManager;\n}());\nexport { QueryManager };\n//# sourceMappingURL=QueryManager.js.map","import { DocumentNode } from 'graphql';\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { equal } from '@wry/equality';\n\nimport { ApolloLink, execute, FetchResult } from '../link/core';\nimport { Cache, ApolloCache } from '../cache';\n\nimport {\n getDefaultValues,\n getOperationDefinition,\n getOperationName,\n hasClientExports,\n graphQLResultHasError,\n removeConnectionDirectiveFromDocument,\n canUseWeakMap,\n ObservableSubscription,\n Observable,\n asyncMap,\n isNonEmptyArray,\n Concast,\n ConcastSourcesIterable,\n} from '../utilities';\nimport { ApolloError, isApolloError } from '../errors';\nimport {\n QueryOptions,\n WatchQueryOptions,\n SubscriptionOptions,\n MutationOptions,\n WatchQueryFetchPolicy,\n ErrorPolicy,\n} from './watchQueryOptions';\nimport { ObservableQuery } from './ObservableQuery';\nimport { NetworkStatus, isNetworkRequestInFlight } from './networkStatus';\nimport {\n ApolloQueryResult,\n OperationVariables,\n} from './types';\nimport { LocalState } from './LocalState';\n\nimport { QueryInfo, QueryStoreValue, shouldWriteResult } from './QueryInfo';\n\nconst { hasOwnProperty } = Object.prototype;\n\ninterface MutationStoreValue {\n mutation: DocumentNode;\n variables: Record;\n loading: boolean;\n error: Error | null;\n}\n\nexport class QueryManager {\n public cache: ApolloCache;\n public link: ApolloLink;\n public readonly assumeImmutableResults: boolean;\n public readonly ssrMode: boolean;\n\n private queryDeduplication: boolean;\n private clientAwareness: Record = {};\n private localState: LocalState;\n\n private onBroadcast?: () => void;\n public mutationStore?: {\n [mutationId: string]: MutationStoreValue;\n };\n\n // All the queries that the QueryManager is currently managing (not\n // including mutations and subscriptions).\n private queries = new Map();\n\n // Maps from queryId strings to Promise rejection functions for\n // currently active queries and fetches.\n private fetchCancelFns = new Map any>();\n\n constructor({\n cache,\n link,\n queryDeduplication = false,\n onBroadcast,\n ssrMode = false,\n clientAwareness = {},\n localState,\n assumeImmutableResults,\n }: {\n cache: ApolloCache;\n link: ApolloLink;\n queryDeduplication?: boolean;\n onBroadcast?: () => void;\n ssrMode?: boolean;\n clientAwareness?: Record;\n localState?: LocalState;\n assumeImmutableResults?: boolean;\n }) {\n this.cache = cache;\n this.link = link;\n this.queryDeduplication = queryDeduplication;\n this.clientAwareness = clientAwareness;\n this.localState = localState || new LocalState({ cache });\n this.ssrMode = ssrMode;\n this.assumeImmutableResults = !!assumeImmutableResults;\n if ((this.onBroadcast = onBroadcast)) {\n this.mutationStore = Object.create(null);\n }\n }\n\n /**\n * Call this method to terminate any active query processes, making it safe\n * to dispose of this QueryManager instance.\n */\n public stop() {\n this.queries.forEach((_info, queryId) => {\n this.stopQueryNoBroadcast(queryId);\n });\n\n this.cancelPendingFetches(\n new InvariantError('QueryManager stopped while query was in flight'),\n );\n }\n\n private cancelPendingFetches(error: Error) {\n this.fetchCancelFns.forEach(cancel => cancel(error));\n this.fetchCancelFns.clear();\n }\n\n public async mutate({\n mutation,\n variables,\n optimisticResponse,\n updateQueries,\n refetchQueries = [],\n awaitRefetchQueries = false,\n update: updateWithProxyFn,\n errorPolicy = 'none',\n fetchPolicy,\n context = {},\n }: MutationOptions): Promise> {\n invariant(\n mutation,\n 'mutation option is required. You must specify your GraphQL document in the mutation option.',\n );\n\n invariant(\n !fetchPolicy || fetchPolicy === 'no-cache',\n \"Mutations only support a 'no-cache' fetchPolicy. If you don't want to disable the cache, remove your fetchPolicy setting to proceed with the default mutation behavior.\"\n );\n\n const mutationId = this.generateMutationId();\n mutation = this.transform(mutation).document;\n\n variables = this.getVariables(mutation, variables);\n\n if (this.transform(mutation).hasClientExports) {\n variables = await this.localState.addExportedVariables(mutation, variables, context);\n }\n\n const mutationStoreValue =\n this.mutationStore &&\n (this.mutationStore[mutationId] = {\n mutation,\n variables,\n loading: true,\n error: null,\n } as MutationStoreValue);\n\n if (optimisticResponse) {\n this.markMutationOptimistic(optimisticResponse, {\n mutationId,\n document: mutation,\n variables,\n errorPolicy,\n updateQueries,\n update: updateWithProxyFn,\n });\n }\n\n this.broadcastQueries();\n\n const self = this;\n\n return new Promise((resolve, reject) => {\n let storeResult: FetchResult | null;\n let error: ApolloError;\n\n self.getObservableFromLink(\n mutation,\n {\n ...context,\n optimisticResponse,\n },\n variables,\n false,\n ).subscribe({\n next(result: FetchResult) {\n if (graphQLResultHasError(result) && errorPolicy === 'none') {\n error = new ApolloError({\n graphQLErrors: result.errors,\n });\n return;\n }\n\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = null;\n }\n\n if (fetchPolicy !== 'no-cache') {\n try {\n self.markMutationResult({\n mutationId,\n result,\n document: mutation,\n variables,\n errorPolicy,\n updateQueries,\n update: updateWithProxyFn,\n });\n } catch (e) {\n error = new ApolloError({\n networkError: e,\n });\n return;\n }\n }\n\n storeResult = result;\n },\n\n error(err: Error) {\n if (mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = err;\n }\n if (optimisticResponse) {\n self.cache.removeOptimistic(mutationId);\n }\n self.broadcastQueries();\n reject(\n new ApolloError({\n networkError: err,\n }),\n );\n },\n\n complete() {\n if (error && mutationStoreValue) {\n mutationStoreValue.loading = false;\n mutationStoreValue.error = error;\n }\n\n if (optimisticResponse) {\n self.cache.removeOptimistic(mutationId);\n }\n\n self.broadcastQueries();\n\n if (error) {\n reject(error);\n return;\n }\n\n // allow for conditional refetches\n // XXX do we want to make this the only API one day?\n if (typeof refetchQueries === 'function') {\n refetchQueries = refetchQueries(storeResult!);\n }\n\n const refetchQueryPromises: Promise<\n ApolloQueryResult[] | ApolloQueryResult<{}>\n >[] = [];\n\n if (isNonEmptyArray(refetchQueries)) {\n refetchQueries.forEach(refetchQuery => {\n if (typeof refetchQuery === 'string') {\n self.queries.forEach(({ observableQuery }) => {\n if (observableQuery &&\n observableQuery.hasObservers() &&\n observableQuery.queryName === refetchQuery) {\n refetchQueryPromises.push(observableQuery.refetch());\n }\n });\n } else {\n const queryOptions: QueryOptions = {\n query: refetchQuery.query,\n variables: refetchQuery.variables,\n fetchPolicy: 'network-only',\n };\n\n if (refetchQuery.context) {\n queryOptions.context = refetchQuery.context;\n }\n\n refetchQueryPromises.push(self.query(queryOptions));\n }\n });\n }\n\n Promise.all(\n awaitRefetchQueries ? refetchQueryPromises : [],\n ).then(() => {\n if (\n errorPolicy === 'ignore' &&\n storeResult &&\n graphQLResultHasError(storeResult)\n ) {\n delete storeResult.errors;\n }\n\n resolve(storeResult!);\n }, reject);\n },\n });\n });\n }\n\n public markMutationResult(\n mutation: {\n mutationId: string;\n result: FetchResult;\n document: DocumentNode;\n variables?: OperationVariables;\n errorPolicy: ErrorPolicy;\n updateQueries: MutationOptions[\"updateQueries\"],\n update?: (\n cache: ApolloCache,\n result: FetchResult,\n ) => void;\n },\n cache = this.cache,\n ) {\n if (shouldWriteResult(mutation.result, mutation.errorPolicy)) {\n const cacheWrites: Cache.WriteOptions[] = [{\n result: mutation.result.data,\n dataId: 'ROOT_MUTATION',\n query: mutation.document,\n variables: mutation.variables,\n }];\n\n const { updateQueries } = mutation;\n if (updateQueries) {\n this.queries.forEach(({ observableQuery }, queryId) => {\n const queryName = observableQuery && observableQuery.queryName;\n if (!queryName || !hasOwnProperty.call(updateQueries, queryName)) {\n return;\n }\n const updater = updateQueries[queryName];\n const { document, variables } = this.queries.get(queryId)!;\n\n // Read the current query result from the store.\n const { result: currentQueryResult, complete } = cache.diff({\n query: document!,\n variables,\n returnPartialData: true,\n optimistic: false,\n });\n\n if (complete && currentQueryResult) {\n // Run our reducer using the current query result and the mutation result.\n const nextQueryResult = updater(currentQueryResult, {\n mutationResult: mutation.result,\n queryName: document && getOperationName(document) || void 0,\n queryVariables: variables!,\n });\n\n // Write the modified result back into the store if we got a new result.\n if (nextQueryResult) {\n cacheWrites.push({\n result: nextQueryResult,\n dataId: 'ROOT_QUERY',\n query: document!,\n variables,\n });\n }\n }\n });\n }\n\n cache.performTransaction(c => {\n cacheWrites.forEach(write => c.write(write));\n\n // If the mutation has some writes associated with it then we need to\n // apply those writes to the store by running this reducer again with a\n // write action.\n const { update } = mutation;\n if (update) {\n update(c, mutation.result);\n }\n }, /* non-optimistic transaction: */ null);\n }\n }\n\n public markMutationOptimistic(\n optimisticResponse: any,\n mutation: {\n mutationId: string;\n document: DocumentNode;\n variables?: OperationVariables;\n errorPolicy: ErrorPolicy;\n updateQueries: MutationOptions[\"updateQueries\"],\n update?: (\n cache: ApolloCache,\n result: FetchResult,\n ) => void;\n },\n ) {\n const data = typeof optimisticResponse === \"function\"\n ? optimisticResponse(mutation.variables)\n : optimisticResponse;\n\n return this.cache.recordOptimisticTransaction(cache => {\n try {\n this.markMutationResult({\n ...mutation,\n result: { data },\n }, cache);\n } catch (error) {\n invariant.error(error);\n }\n }, mutation.mutationId);\n }\n\n public fetchQuery(\n queryId: string,\n options: WatchQueryOptions,\n networkStatus?: NetworkStatus,\n ): Promise> {\n return this.fetchQueryObservable(\n queryId,\n options,\n networkStatus,\n ).promise;\n }\n\n public getQueryStore() {\n const store: Record = Object.create(null);\n this.queries.forEach((info, queryId) => {\n store[queryId] = {\n variables: info.variables,\n networkStatus: info.networkStatus,\n networkError: info.networkError,\n graphQLErrors: info.graphQLErrors,\n };\n });\n return store;\n }\n\n public resetErrors(queryId: string) {\n const queryInfo = this.queries.get(queryId);\n if (queryInfo) {\n queryInfo.networkError = undefined;\n queryInfo.graphQLErrors = [];\n }\n }\n\n private transformCache = new (canUseWeakMap ? WeakMap : Map)<\n DocumentNode,\n Readonly<{\n document: Readonly;\n hasClientExports: boolean;\n hasForcedResolvers: boolean;\n clientQuery: Readonly | null;\n serverQuery: Readonly | null;\n defaultVars: Readonly;\n }>\n >();\n\n public transform(document: DocumentNode) {\n const { transformCache } = this;\n\n if (!transformCache.has(document)) {\n const transformed = this.cache.transformDocument(document);\n const forLink = removeConnectionDirectiveFromDocument(\n this.cache.transformForLink(transformed));\n\n const clientQuery = this.localState.clientQuery(transformed);\n const serverQuery = forLink && this.localState.serverQuery(forLink);\n\n const cacheEntry = {\n document: transformed,\n // TODO These two calls (hasClientExports and shouldForceResolvers)\n // could probably be merged into a single traversal.\n hasClientExports: hasClientExports(transformed),\n hasForcedResolvers: this.localState.shouldForceResolvers(transformed),\n clientQuery,\n serverQuery,\n defaultVars: getDefaultValues(\n getOperationDefinition(transformed)\n ) as OperationVariables,\n };\n\n const add = (doc: DocumentNode | null) => {\n if (doc && !transformCache.has(doc)) {\n transformCache.set(doc, cacheEntry);\n }\n }\n // Add cacheEntry to the transformCache using several different keys,\n // since any one of these documents could end up getting passed to the\n // transform method again in the future.\n add(document);\n add(transformed);\n add(clientQuery);\n add(serverQuery);\n }\n\n return transformCache.get(document)!;\n }\n\n private getVariables(\n document: DocumentNode,\n variables?: OperationVariables,\n ): OperationVariables {\n return {\n ...this.transform(document).defaultVars,\n ...variables,\n };\n }\n\n public watchQuery(\n options: WatchQueryOptions,\n ): ObservableQuery {\n // assign variable default values if supplied\n options = {\n ...options,\n variables: this.getVariables(\n options.query,\n options.variables,\n ) as TVariables,\n };\n\n if (typeof options.notifyOnNetworkStatusChange === 'undefined') {\n options.notifyOnNetworkStatusChange = false;\n }\n\n const queryInfo = new QueryInfo(this.cache);\n const observable = new ObservableQuery({\n queryManager: this,\n queryInfo,\n options,\n });\n\n this.queries.set(observable.queryId, queryInfo);\n\n queryInfo.init({\n document: options.query,\n observableQuery: observable,\n variables: options.variables,\n });\n\n return observable;\n }\n\n public query(\n options: QueryOptions,\n ): Promise> {\n invariant(\n options.query,\n 'query option is required. You must specify your GraphQL document ' +\n 'in the query option.',\n );\n\n invariant(\n options.query.kind === 'Document',\n 'You must wrap the query string in a \"gql\" tag.',\n );\n\n invariant(\n !(options as any).returnPartialData,\n 'returnPartialData option only supported on watchQuery.',\n );\n\n invariant(\n !(options as any).pollInterval,\n 'pollInterval option only supported on watchQuery.',\n );\n\n const queryId = this.generateQueryId();\n return this.fetchQuery(\n queryId,\n options,\n ).finally(() => this.stopQuery(queryId));\n }\n\n private queryIdCounter = 1;\n public generateQueryId() {\n return String(this.queryIdCounter++);\n }\n\n private requestIdCounter = 1;\n public generateRequestId() {\n return this.requestIdCounter++;\n }\n\n private mutationIdCounter = 1;\n public generateMutationId() {\n return String(this.mutationIdCounter++);\n }\n\n public stopQueryInStore(queryId: string) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.broadcastQueries();\n }\n\n private stopQueryInStoreNoBroadcast(queryId: string) {\n const queryInfo = this.queries.get(queryId);\n if (queryInfo) queryInfo.stop();\n }\n\n public clearStore(): Promise {\n // Before we have sent the reset action to the store, we can no longer\n // rely on the results returned by in-flight requests since these may\n // depend on values that previously existed in the data portion of the\n // store. So, we cancel the promises and observers that we have issued\n // so far and not yet resolved (in the case of queries).\n this.cancelPendingFetches(new InvariantError(\n 'Store reset while query was in flight (not completed in link chain)',\n ));\n\n this.queries.forEach(queryInfo => {\n if (queryInfo.observableQuery) {\n // Set loading to true so listeners don't trigger unless they want\n // results with partial data.\n queryInfo.networkStatus = NetworkStatus.loading;\n } else {\n queryInfo.stop();\n }\n });\n\n if (this.mutationStore) {\n this.mutationStore = Object.create(null);\n }\n\n // begin removing data from the store\n return this.cache.reset();\n }\n\n public resetStore(): Promise[]> {\n // Similarly, we have to have to refetch each of the queries currently being\n // observed. We refetch instead of error'ing on these since the assumption is that\n // resetting the store doesn't eliminate the need for the queries currently being\n // watched. If there is an existing query in flight when the store is reset,\n // the promise for it will be rejected and its results will not be written to the\n // store.\n return this.clearStore().then(() => {\n return this.reFetchObservableQueries();\n });\n }\n\n public reFetchObservableQueries(\n includeStandby: boolean = false,\n ): Promise[]> {\n const observableQueryPromises: Promise>[] = [];\n\n this.queries.forEach(({ observableQuery }, queryId) => {\n if (observableQuery && observableQuery.hasObservers()) {\n const fetchPolicy = observableQuery.options.fetchPolicy;\n\n observableQuery.resetLastResults();\n if (\n fetchPolicy !== 'cache-only' &&\n (includeStandby || fetchPolicy !== 'standby')\n ) {\n observableQueryPromises.push(observableQuery.refetch());\n }\n\n this.getQuery(queryId).setDiff(null);\n }\n });\n\n this.broadcastQueries();\n\n return Promise.all(observableQueryPromises);\n }\n\n public setObservableQuery(observableQuery: ObservableQuery) {\n this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery);\n }\n\n public startGraphQLSubscription({\n query,\n fetchPolicy,\n errorPolicy,\n variables,\n context = {},\n }: SubscriptionOptions): Observable> {\n query = this.transform(query).document;\n variables = this.getVariables(query, variables);\n\n const makeObservable = (variables: OperationVariables) =>\n this.getObservableFromLink(\n query,\n context,\n variables,\n false,\n ).map(result => {\n if (fetchPolicy !== 'no-cache') {\n // the subscription interface should handle not sending us results we no longer subscribe to.\n // XXX I don't think we ever send in an object with errors, but we might in the future...\n if (shouldWriteResult(result, errorPolicy)) {\n this.cache.write({\n query,\n result: result.data,\n dataId: 'ROOT_SUBSCRIPTION',\n variables: variables,\n });\n }\n\n this.broadcastQueries();\n }\n\n if (graphQLResultHasError(result)) {\n throw new ApolloError({\n graphQLErrors: result.errors,\n });\n }\n\n return result;\n });\n\n if (this.transform(query).hasClientExports) {\n const observablePromise = this.localState.addExportedVariables(\n query,\n variables,\n context,\n ).then(makeObservable);\n\n return new Observable>(observer => {\n let sub: ObservableSubscription | null = null;\n observablePromise.then(\n observable => sub = observable.subscribe(observer),\n observer.error,\n );\n return () => sub && sub.unsubscribe();\n });\n }\n\n return makeObservable(variables);\n }\n\n public stopQuery(queryId: string) {\n this.stopQueryNoBroadcast(queryId);\n this.broadcastQueries();\n }\n\n private stopQueryNoBroadcast(queryId: string) {\n this.stopQueryInStoreNoBroadcast(queryId);\n this.removeQuery(queryId);\n }\n\n public removeQuery(queryId: string) {\n // teardown all links\n // Both `QueryManager.fetchRequest` and `QueryManager.query` create separate promises\n // that each add their reject functions to fetchCancelFns.\n // A query created with `QueryManager.query()` could trigger a `QueryManager.fetchRequest`.\n // The same queryId could have two rejection fns for two promises\n this.fetchCancelFns.delete(queryId);\n this.getQuery(queryId).stop();\n this.queries.delete(queryId);\n }\n\n public broadcastQueries() {\n if (this.onBroadcast) this.onBroadcast();\n this.queries.forEach(info => info.notify());\n }\n\n public getLocalState(): LocalState {\n return this.localState;\n }\n\n private inFlightLinkObservables = new Map<\n DocumentNode,\n Map>\n >();\n\n private getObservableFromLink(\n query: DocumentNode,\n context: any,\n variables?: OperationVariables,\n deduplication: boolean =\n // Prefer context.queryDeduplication if specified.\n context?.queryDeduplication ??\n this.queryDeduplication,\n ): Observable> {\n let observable: Observable>;\n\n const { serverQuery } = this.transform(query);\n if (serverQuery) {\n const { inFlightLinkObservables, link } = this;\n\n const operation = {\n query: serverQuery,\n variables,\n operationName: getOperationName(serverQuery) || void 0,\n context: this.prepareContext({\n ...context,\n forceFetch: !deduplication\n }),\n };\n\n context = operation.context;\n\n if (deduplication) {\n const byVariables = inFlightLinkObservables.get(serverQuery) || new Map();\n inFlightLinkObservables.set(serverQuery, byVariables);\n\n const varJson = JSON.stringify(variables);\n observable = byVariables.get(varJson);\n\n if (!observable) {\n const concast = new Concast([\n execute(link, operation) as Observable>\n ]);\n\n byVariables.set(varJson, observable = concast);\n\n concast.cleanup(() => {\n if (byVariables.delete(varJson) &&\n byVariables.size < 1) {\n inFlightLinkObservables.delete(serverQuery);\n }\n });\n }\n\n } else {\n observable = new Concast([\n execute(link, operation) as Observable>\n ]);\n }\n } else {\n observable = new Concast([\n Observable.of({ data: {} } as FetchResult)\n ]);\n context = this.prepareContext(context);\n }\n\n const { clientQuery } = this.transform(query);\n if (clientQuery) {\n observable = asyncMap(observable, result => {\n return this.localState.runResolvers({\n document: clientQuery,\n remoteResult: result,\n context,\n variables,\n });\n });\n }\n\n return observable;\n }\n\n private getResultsFromLink(\n queryInfo: QueryInfo,\n allowCacheWrite: boolean,\n options: Pick,\n | \"variables\"\n | \"context\"\n | \"fetchPolicy\"\n | \"errorPolicy\">,\n ): Observable> {\n const requestId = queryInfo.lastRequestId = this.generateRequestId();\n\n return asyncMap(\n this.getObservableFromLink(\n queryInfo.document!,\n options.context,\n options.variables,\n ),\n\n result => {\n const hasErrors = isNonEmptyArray(result.errors);\n\n // If we interrupted this request by calling getResultsFromLink again\n // with the same QueryInfo object, we ignore the old results.\n if (requestId >= queryInfo.lastRequestId) {\n if (hasErrors && options.errorPolicy === \"none\") {\n // Throwing here effectively calls observer.error.\n throw queryInfo.markError(new ApolloError({\n graphQLErrors: result.errors,\n }));\n }\n queryInfo.markResult(result, options, allowCacheWrite);\n queryInfo.markReady();\n }\n\n const aqr: ApolloQueryResult = {\n data: result.data,\n loading: false,\n networkStatus: queryInfo.networkStatus || NetworkStatus.ready,\n };\n\n if (hasErrors && options.errorPolicy !== \"ignore\") {\n aqr.errors = result.errors;\n }\n\n return aqr;\n },\n\n networkError => {\n const error = isApolloError(networkError)\n ? networkError\n : new ApolloError({ networkError });\n\n // Avoid storing errors from older interrupted queries.\n if (requestId >= queryInfo.lastRequestId) {\n queryInfo.markError(error);\n }\n\n throw error;\n },\n );\n }\n\n public fetchQueryObservable(\n queryId: string,\n options: WatchQueryOptions,\n // The initial networkStatus for this fetch, most often\n // NetworkStatus.loading, but also possibly fetchMore, poll, refetch,\n // or setVariables.\n networkStatus = NetworkStatus.loading,\n ): Concast> {\n const query = this.transform(options.query).document;\n const variables = this.getVariables(query, options.variables) as TVars;\n const queryInfo = this.getQuery(queryId);\n const oldNetworkStatus = queryInfo.networkStatus;\n\n let {\n fetchPolicy = \"cache-first\" as WatchQueryFetchPolicy,\n errorPolicy = \"none\" as ErrorPolicy,\n returnPartialData = false,\n notifyOnNetworkStatusChange = false,\n context = {},\n } = options;\n\n const mightUseNetwork =\n fetchPolicy === \"cache-first\" ||\n fetchPolicy === \"cache-and-network\" ||\n fetchPolicy === \"network-only\" ||\n fetchPolicy === \"no-cache\";\n\n if (mightUseNetwork &&\n notifyOnNetworkStatusChange &&\n typeof oldNetworkStatus === \"number\" &&\n oldNetworkStatus !== networkStatus &&\n isNetworkRequestInFlight(networkStatus)) {\n // In order to force delivery of an incomplete cache result with\n // loading:true, we tweak the fetchPolicy to include the cache, and\n // pretend that returnPartialData was enabled.\n if (fetchPolicy !== \"cache-first\") {\n fetchPolicy = \"cache-and-network\";\n }\n returnPartialData = true;\n }\n\n const normalized = Object.assign({}, options, {\n query,\n variables,\n fetchPolicy,\n errorPolicy,\n returnPartialData,\n notifyOnNetworkStatusChange,\n context,\n });\n\n const fromVariables = (variables: TVars) => {\n // Since normalized is always a fresh copy of options, it's safe to\n // modify its properties here, rather than creating yet another new\n // WatchQueryOptions object.\n normalized.variables = variables;\n return this.fetchQueryByPolicy(\n queryInfo,\n normalized,\n networkStatus,\n );\n };\n\n // This cancel function needs to be set before the concast is created,\n // in case concast creation synchronously cancels the request.\n this.fetchCancelFns.set(queryId, reason => {\n // Delaying the cancellation using a Promise ensures that the\n // concast variable has been initialized.\n Promise.resolve().then(() => concast.cancel(reason));\n });\n\n // A Concast can be created either from an Iterable>\n // or from a PromiseLike>>, where T in this\n // case is ApolloQueryResult.\n const concast = new Concast(\n // If the query has @export(as: ...) directives, then we need to\n // process those directives asynchronously. When there are no\n // @export directives (the common case), we deliberately avoid\n // wrapping the result of this.fetchQueryByPolicy in a Promise,\n // since the timing of result delivery is (unfortunately) important\n // for backwards compatibility. TODO This code could be simpler if\n // we deprecated and removed LocalState.\n this.transform(normalized.query).hasClientExports\n ? this.localState.addExportedVariables(\n normalized.query,\n normalized.variables,\n normalized.context,\n ).then(fromVariables)\n : fromVariables(normalized.variables!)\n );\n\n concast.cleanup(() => {\n this.fetchCancelFns.delete(queryId);\n\n const { nextFetchPolicy } = options;\n if (nextFetchPolicy) {\n // The options.nextFetchPolicy transition should happen only once,\n // but it should be possible for a nextFetchPolicy function to set\n // this.nextFetchPolicy to perform an additional transition.\n options.nextFetchPolicy = void 0;\n\n // When someone chooses cache-and-network or network-only as their\n // initial FetchPolicy, they often do not want future cache updates to\n // trigger unconditional network requests, which is what repeatedly\n // applying the cache-and-network or network-only policies would seem\n // to imply. Instead, when the cache reports an update after the\n // initial network request, it may be desirable for subsequent network\n // requests to be triggered only if the cache result is incomplete.\n // The options.nextFetchPolicy option provides an easy way to update\n // options.fetchPolicy after the intial network request, without\n // having to call observableQuery.setOptions.\n options.fetchPolicy = typeof nextFetchPolicy === \"function\"\n ? nextFetchPolicy.call(options, options.fetchPolicy || \"cache-first\")\n : nextFetchPolicy;\n }\n });\n\n return concast;\n }\n\n private fetchQueryByPolicy(\n queryInfo: QueryInfo,\n options: WatchQueryOptions,\n // The initial networkStatus for this fetch, most often\n // NetworkStatus.loading, but also possibly fetchMore, poll, refetch,\n // or setVariables.\n networkStatus: NetworkStatus,\n ): ConcastSourcesIterable> {\n const {\n query,\n variables,\n fetchPolicy,\n errorPolicy,\n returnPartialData,\n context,\n } = options;\n\n queryInfo.init({\n document: query,\n variables,\n networkStatus,\n });\n\n const readCache = () => queryInfo.getDiff(variables);\n\n const resultsFromCache = (\n diff: Cache.DiffResult,\n networkStatus = queryInfo.networkStatus || NetworkStatus.loading,\n ) => {\n const data = diff.result as TData;\n\n if (process.env.NODE_ENV !== 'production' &&\n isNonEmptyArray(diff.missing) &&\n !equal(data, {}) &&\n !returnPartialData) {\n invariant.warn(`Missing cache result fields: ${\n diff.missing.map(m => m.path.join('.')).join(', ')\n }`, diff.missing);\n }\n\n const fromData = (data: TData) => Observable.of({\n data,\n loading: isNetworkRequestInFlight(networkStatus),\n networkStatus,\n ...(diff.complete ? null : { partial: true }),\n } as ApolloQueryResult);\n\n if (this.transform(query).hasForcedResolvers) {\n return this.localState.runResolvers({\n document: query,\n remoteResult: { data },\n context,\n variables,\n onlyRunForcedResolvers: true,\n }).then(resolved => fromData(resolved.data!));\n }\n\n return fromData(data);\n };\n\n const resultsFromLink = (allowCacheWrite: boolean) =>\n this.getResultsFromLink(queryInfo, allowCacheWrite, {\n variables,\n context,\n fetchPolicy,\n errorPolicy,\n });\n\n switch (fetchPolicy) {\n default: case \"cache-first\": {\n const diff = readCache();\n\n if (diff.complete) {\n return [\n resultsFromCache(diff, queryInfo.markReady()),\n ];\n }\n\n if (returnPartialData) {\n return [\n resultsFromCache(diff),\n resultsFromLink(true),\n ];\n }\n\n return [\n resultsFromLink(true),\n ];\n }\n\n case \"cache-and-network\": {\n const diff = readCache();\n\n if (diff.complete || returnPartialData) {\n return [\n resultsFromCache(diff),\n resultsFromLink(true),\n ];\n }\n\n return [\n resultsFromLink(true),\n ];\n }\n\n case \"cache-only\":\n return [\n resultsFromCache(readCache(), queryInfo.markReady()),\n ];\n\n case \"network-only\":\n return [resultsFromLink(true)];\n\n case \"no-cache\":\n return [resultsFromLink(false)];\n\n case \"standby\":\n return [];\n }\n }\n\n private getQuery(queryId: string): QueryInfo {\n if (queryId && !this.queries.has(queryId)) {\n this.queries.set(queryId, new QueryInfo(this.cache));\n }\n return this.queries.get(queryId)!;\n }\n\n private prepareContext(context = {}) {\n const newContext = this.localState.prepareContext(context);\n return {\n ...newContext,\n clientAwareness: this.clientAwareness,\n };\n }\n}\n","var _a = Object.prototype, toString = _a.toString, hasOwnProperty = _a.hasOwnProperty;\r\nvar fnToStr = Function.prototype.toString;\r\nvar previousComparisons = new Map();\r\n/**\r\n * Performs a deep equality check on two JavaScript values, tolerating cycles.\r\n */\r\nfunction equal(a, b) {\r\n try {\r\n return check(a, b);\r\n }\r\n finally {\r\n previousComparisons.clear();\r\n }\r\n}\r\nfunction check(a, b) {\r\n // If the two values are strictly equal, our job is easy.\r\n if (a === b) {\r\n return true;\r\n }\r\n // Object.prototype.toString returns a representation of the runtime type of\r\n // the given value that is considerably more precise than typeof.\r\n var aTag = toString.call(a);\r\n var bTag = toString.call(b);\r\n // If the runtime types of a and b are different, they could maybe be equal\r\n // under some interpretation of equality, but for simplicity and performance\r\n // we just return false instead.\r\n if (aTag !== bTag) {\r\n return false;\r\n }\r\n switch (aTag) {\r\n case '[object Array]':\r\n // Arrays are a lot like other objects, but we can cheaply compare their\r\n // lengths as a short-cut before comparing their elements.\r\n if (a.length !== b.length)\r\n return false;\r\n // Fall through to object case...\r\n case '[object Object]': {\r\n if (previouslyCompared(a, b))\r\n return true;\r\n var aKeys = definedKeys(a);\r\n var bKeys = definedKeys(b);\r\n // If `a` and `b` have a different number of enumerable keys, they\r\n // must be different.\r\n var keyCount = aKeys.length;\r\n if (keyCount !== bKeys.length)\r\n return false;\r\n // Now make sure they have the same keys.\r\n for (var k = 0; k < keyCount; ++k) {\r\n if (!hasOwnProperty.call(b, aKeys[k])) {\r\n return false;\r\n }\r\n }\r\n // Finally, check deep equality of all child properties.\r\n for (var k = 0; k < keyCount; ++k) {\r\n var key = aKeys[k];\r\n if (!check(a[key], b[key])) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n case '[object Error]':\r\n return a.name === b.name && a.message === b.message;\r\n case '[object Number]':\r\n // Handle NaN, which is !== itself.\r\n if (a !== a)\r\n return b !== b;\r\n // Fall through to shared +a === +b case...\r\n case '[object Boolean]':\r\n case '[object Date]':\r\n return +a === +b;\r\n case '[object RegExp]':\r\n case '[object String]':\r\n return a == \"\" + b;\r\n case '[object Map]':\r\n case '[object Set]': {\r\n if (a.size !== b.size)\r\n return false;\r\n if (previouslyCompared(a, b))\r\n return true;\r\n var aIterator = a.entries();\r\n var isMap = aTag === '[object Map]';\r\n while (true) {\r\n var info = aIterator.next();\r\n if (info.done)\r\n break;\r\n // If a instanceof Set, aValue === aKey.\r\n var _a = info.value, aKey = _a[0], aValue = _a[1];\r\n // So this works the same way for both Set and Map.\r\n if (!b.has(aKey)) {\r\n return false;\r\n }\r\n // However, we care about deep equality of values only when dealing\r\n // with Map structures.\r\n if (isMap && !check(aValue, b.get(aKey))) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n case '[object AsyncFunction]':\r\n case '[object GeneratorFunction]':\r\n case '[object AsyncGeneratorFunction]':\r\n case '[object Function]': {\r\n var aCode = fnToStr.call(a);\r\n if (aCode !== fnToStr.call(b)) {\r\n return false;\r\n }\r\n // We consider non-native functions equal if they have the same code\r\n // (native functions require === because their code is censored).\r\n // Note that this behavior is not entirely sound, since !== function\r\n // objects with the same code can behave differently depending on\r\n // their closure scope. However, any function can behave differently\r\n // depending on the values of its input arguments (including this)\r\n // and its calling context (including its closure scope), even\r\n // though the function object is === to itself; and it is entirely\r\n // possible for functions that are not === to behave exactly the\r\n // same under all conceivable circumstances. Because none of these\r\n // factors are statically decidable in JavaScript, JS function\r\n // equality is not well-defined. This ambiguity allows us to\r\n // consider the best possible heuristic among various imperfect\r\n // options, and equating non-native functions that have the same\r\n // code has enormous practical benefits, such as when comparing\r\n // functions that are repeatedly passed as fresh function\r\n // expressions within objects that are otherwise deeply equal. Since\r\n // any function created from the same syntactic expression (in the\r\n // same code location) will always stringify to the same code\r\n // according to fnToStr.call, we can reasonably expect these\r\n // repeatedly passed function expressions to have the same code, and\r\n // thus behave \"the same\" (with all the caveats mentioned above),\r\n // even though the runtime function objects are !== to one another.\r\n return !endsWith(aCode, nativeCodeSuffix);\r\n }\r\n }\r\n // Otherwise the values are not equal.\r\n return false;\r\n}\r\nfunction definedKeys(obj) {\r\n // Remember that the second argument to Array.prototype.filter will be\r\n // used as `this` within the callback function.\r\n return Object.keys(obj).filter(isDefinedKey, obj);\r\n}\r\nfunction isDefinedKey(key) {\r\n return this[key] !== void 0;\r\n}\r\nvar nativeCodeSuffix = \"{ [native code] }\";\r\nfunction endsWith(full, suffix) {\r\n var fromIndex = full.length - suffix.length;\r\n return fromIndex >= 0 &&\r\n full.indexOf(suffix, fromIndex) === fromIndex;\r\n}\r\nfunction previouslyCompared(a, b) {\r\n // Though cyclic references can make an object graph appear infinite from the\r\n // perspective of a depth-first traversal, the graph still contains a finite\r\n // number of distinct object references. We use the previousComparisons cache\r\n // to avoid comparing the same pair of object references more than once, which\r\n // guarantees termination (even if we end up comparing every object in one\r\n // graph to every object in the other graph, which is extremely unlikely),\r\n // while still allowing weird isomorphic structures (like rings with different\r\n // lengths) a chance to pass the equality test.\r\n var bSet = previousComparisons.get(a);\r\n if (bSet) {\r\n // Return true here because we can be sure false will be returned somewhere\r\n // else if the objects are not equivalent.\r\n if (bSet.has(b))\r\n return true;\r\n }\r\n else {\r\n previousComparisons.set(a, bSet = new Set);\r\n }\r\n bSet.add(b);\r\n return false;\r\n}\n\nexport default equal;\nexport { equal };\n//# sourceMappingURL=equality.esm.js.map\n","const { toString, hasOwnProperty } = Object.prototype;\nconst fnToStr = Function.prototype.toString;\nconst previousComparisons = new Map>();\n\n/**\n * Performs a deep equality check on two JavaScript values, tolerating cycles.\n */\nexport function equal(a: any, b: any): boolean {\n try {\n return check(a, b);\n } finally {\n previousComparisons.clear();\n }\n}\n\n// Allow default imports as well.\nexport default equal;\n\nfunction check(a: any, b: any): boolean {\n // If the two values are strictly equal, our job is easy.\n if (a === b) {\n return true;\n }\n\n // Object.prototype.toString returns a representation of the runtime type of\n // the given value that is considerably more precise than typeof.\n const aTag = toString.call(a);\n const bTag = toString.call(b);\n\n // If the runtime types of a and b are different, they could maybe be equal\n // under some interpretation of equality, but for simplicity and performance\n // we just return false instead.\n if (aTag !== bTag) {\n return false;\n }\n\n switch (aTag) {\n case '[object Array]':\n // Arrays are a lot like other objects, but we can cheaply compare their\n // lengths as a short-cut before comparing their elements.\n if (a.length !== b.length) return false;\n // Fall through to object case...\n case '[object Object]': {\n if (previouslyCompared(a, b)) return true;\n\n const aKeys = definedKeys(a);\n const bKeys = definedKeys(b);\n\n // If `a` and `b` have a different number of enumerable keys, they\n // must be different.\n const keyCount = aKeys.length;\n if (keyCount !== bKeys.length) return false;\n\n // Now make sure they have the same keys.\n for (let k = 0; k < keyCount; ++k) {\n if (!hasOwnProperty.call(b, aKeys[k])) {\n return false;\n }\n }\n\n // Finally, check deep equality of all child properties.\n for (let k = 0; k < keyCount; ++k) {\n const key = aKeys[k];\n if (!check(a[key], b[key])) {\n return false;\n }\n }\n\n return true;\n }\n\n case '[object Error]':\n return a.name === b.name && a.message === b.message;\n\n case '[object Number]':\n // Handle NaN, which is !== itself.\n if (a !== a) return b !== b;\n // Fall through to shared +a === +b case...\n case '[object Boolean]':\n case '[object Date]':\n return +a === +b;\n\n case '[object RegExp]':\n case '[object String]':\n return a == `${b}`;\n\n case '[object Map]':\n case '[object Set]': {\n if (a.size !== b.size) return false;\n if (previouslyCompared(a, b)) return true;\n\n const aIterator = a.entries();\n const isMap = aTag === '[object Map]';\n\n while (true) {\n const info = aIterator.next();\n if (info.done) break;\n\n // If a instanceof Set, aValue === aKey.\n const [aKey, aValue] = info.value;\n\n // So this works the same way for both Set and Map.\n if (!b.has(aKey)) {\n return false;\n }\n\n // However, we care about deep equality of values only when dealing\n // with Map structures.\n if (isMap && !check(aValue, b.get(aKey))) {\n return false;\n }\n }\n\n return true;\n }\n\n case '[object AsyncFunction]':\n case '[object GeneratorFunction]':\n case '[object AsyncGeneratorFunction]':\n case '[object Function]': {\n const aCode = fnToStr.call(a);\n if (aCode !== fnToStr.call(b)) {\n return false;\n }\n\n // We consider non-native functions equal if they have the same code\n // (native functions require === because their code is censored).\n // Note that this behavior is not entirely sound, since !== function\n // objects with the same code can behave differently depending on\n // their closure scope. However, any function can behave differently\n // depending on the values of its input arguments (including this)\n // and its calling context (including its closure scope), even\n // though the function object is === to itself; and it is entirely\n // possible for functions that are not === to behave exactly the\n // same under all conceivable circumstances. Because none of these\n // factors are statically decidable in JavaScript, JS function\n // equality is not well-defined. This ambiguity allows us to\n // consider the best possible heuristic among various imperfect\n // options, and equating non-native functions that have the same\n // code has enormous practical benefits, such as when comparing\n // functions that are repeatedly passed as fresh function\n // expressions within objects that are otherwise deeply equal. Since\n // any function created from the same syntactic expression (in the\n // same code location) will always stringify to the same code\n // according to fnToStr.call, we can reasonably expect these\n // repeatedly passed function expressions to have the same code, and\n // thus behave \"the same\" (with all the caveats mentioned above),\n // even though the runtime function objects are !== to one another.\n return !endsWith(aCode, nativeCodeSuffix);\n }\n }\n\n // Otherwise the values are not equal.\n return false;\n}\n\nfunction definedKeys(obj: TObject) {\n // Remember that the second argument to Array.prototype.filter will be\n // used as `this` within the callback function.\n return Object.keys(obj).filter(isDefinedKey, obj);\n}\nfunction isDefinedKey(\n this: TObject,\n key: keyof TObject,\n) {\n return this[key] !== void 0;\n}\n\nconst nativeCodeSuffix = \"{ [native code] }\";\n\nfunction endsWith(full: string, suffix: string) {\n const fromIndex = full.length - suffix.length;\n return fromIndex >= 0 &&\n full.indexOf(suffix, fromIndex) === fromIndex;\n}\n\nfunction previouslyCompared(a: object, b: object): boolean {\n // Though cyclic references can make an object graph appear infinite from the\n // perspective of a depth-first traversal, the graph still contains a finite\n // number of distinct object references. We use the previousComparisons cache\n // to avoid comparing the same pair of object references more than once, which\n // guarantees termination (even if we end up comparing every object in one\n // graph to every object in the other graph, which is extremely unlikely),\n // while still allowing weird isomorphic structures (like rings with different\n // lengths) a chance to pass the equality test.\n let bSet = previousComparisons.get(a);\n if (bSet) {\n // Return true here because we can be sure false will be returned somewhere\n // else if the objects are not equivalent.\n if (bSet.has(b)) return true;\n } else {\n previousComparisons.set(a, bSet = new Set);\n }\n bSet.add(b);\n return false;\n}\n","import { __extends } from \"tslib\";\nimport { isNonEmptyArray } from \"../utilities/index.js\";\nexport function isApolloError(err) {\n return err.hasOwnProperty('graphQLErrors');\n}\nvar generateErrorMessage = function (err) {\n var message = '';\n if (isNonEmptyArray(err.graphQLErrors)) {\n err.graphQLErrors.forEach(function (graphQLError) {\n var errorMessage = graphQLError\n ? graphQLError.message\n : 'Error message not found.';\n message += errorMessage + \"\\n\";\n });\n }\n if (err.networkError) {\n message += err.networkError.message + \"\\n\";\n }\n message = message.replace(/\\n$/, '');\n return message;\n};\nvar ApolloError = (function (_super) {\n __extends(ApolloError, _super);\n function ApolloError(_a) {\n var graphQLErrors = _a.graphQLErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo;\n var _this = _super.call(this, errorMessage) || this;\n _this.graphQLErrors = graphQLErrors || [];\n _this.networkError = networkError || null;\n _this.message = errorMessage || generateErrorMessage(_this);\n _this.extraInfo = extraInfo;\n _this.__proto__ = ApolloError.prototype;\n return _this;\n }\n return ApolloError;\n}(Error));\nexport { ApolloError };\n//# sourceMappingURL=index.js.map","import { GraphQLError } from 'graphql';\n\nimport { isNonEmptyArray } from '../utilities';\nimport { ServerParseError } from '../link/http';\nimport { ServerError } from '../link/utils';\n\nexport function isApolloError(err: Error): err is ApolloError {\n return err.hasOwnProperty('graphQLErrors');\n}\n\n// Sets the error message on this error according to the\n// the GraphQL and network errors that are present.\n// If the error message has already been set through the\n// constructor or otherwise, this function is a nop.\nconst generateErrorMessage = (err: ApolloError) => {\n let message = '';\n // If we have GraphQL errors present, add that to the error message.\n if (isNonEmptyArray(err.graphQLErrors)) {\n err.graphQLErrors.forEach((graphQLError: GraphQLError) => {\n const errorMessage = graphQLError\n ? graphQLError.message\n : 'Error message not found.';\n message += `${errorMessage}\\n`;\n });\n }\n\n if (err.networkError) {\n message += `${err.networkError.message}\\n`;\n }\n\n // strip newline from the end of the message\n message = message.replace(/\\n$/, '');\n return message;\n};\n\nexport class ApolloError extends Error {\n public message: string;\n public graphQLErrors: ReadonlyArray;\n public networkError: Error | ServerParseError | ServerError | null;\n\n // An object that can be used to provide some additional information\n // about an error, e.g. specifying the type of error this is. Used\n // internally within Apollo Client.\n public extraInfo: any;\n\n // Constructs an instance of ApolloError given a GraphQLError\n // or a network error. Note that one of these has to be a valid\n // value or the constructed error will be meaningless.\n constructor({\n graphQLErrors,\n networkError,\n errorMessage,\n extraInfo,\n }: {\n graphQLErrors?: ReadonlyArray;\n networkError?: Error | ServerParseError | ServerError | null;\n errorMessage?: string;\n extraInfo?: any;\n }) {\n super(errorMessage);\n this.graphQLErrors = graphQLErrors || [];\n this.networkError = networkError || null;\n this.message = errorMessage || generateErrorMessage(this);\n this.extraInfo = extraInfo;\n\n // We're not using `Object.setPrototypeOf` here as it isn't fully\n // supported on Android (see issue #3236).\n (this as any).__proto__ = ApolloError.prototype;\n }\n}\n","import { __assign, __extends } from \"tslib\";\nimport { invariant } from 'ts-invariant';\nimport { equal } from '@wry/equality';\nimport { NetworkStatus, isNetworkRequestInFlight } from \"./networkStatus.js\";\nimport { cloneDeep, getOperationDefinition, Observable, iterateObserversSafely, isNonEmptyArray, fixObservableSubclass, } from \"../utilities/index.js\";\nimport { Reobserver } from \"./Reobserver.js\";\nvar warnedAboutUpdateQuery = false;\nvar ObservableQuery = (function (_super) {\n __extends(ObservableQuery, _super);\n function ObservableQuery(_a) {\n var queryManager = _a.queryManager, queryInfo = _a.queryInfo, options = _a.options;\n var _this = _super.call(this, function (observer) {\n return _this.onSubscribe(observer);\n }) || this;\n _this.observers = new Set();\n _this.subscriptions = new Set();\n _this.observer = {\n next: function (result) {\n if (_this.lastError || _this.isDifferentFromLastResult(result)) {\n _this.updateLastResult(result);\n iterateObserversSafely(_this.observers, 'next', result);\n }\n },\n error: function (error) {\n _this.updateLastResult(__assign(__assign({}, _this.lastResult), { error: error, errors: error.graphQLErrors, networkStatus: NetworkStatus.error, loading: false }));\n iterateObserversSafely(_this.observers, 'error', _this.lastError = error);\n },\n };\n _this.isTornDown = false;\n _this.options = options;\n _this.queryId = queryManager.generateQueryId();\n var opDef = getOperationDefinition(options.query);\n _this.queryName = opDef && opDef.name && opDef.name.value;\n _this.queryManager = queryManager;\n _this.queryInfo = queryInfo;\n return _this;\n }\n Object.defineProperty(ObservableQuery.prototype, \"variables\", {\n get: function () {\n return this.options.variables;\n },\n enumerable: false,\n configurable: true\n });\n ObservableQuery.prototype.result = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n var observer = {\n next: function (result) {\n resolve(result);\n _this.observers.delete(observer);\n if (!_this.observers.size) {\n _this.queryManager.removeQuery(_this.queryId);\n }\n setTimeout(function () {\n subscription.unsubscribe();\n }, 0);\n },\n error: reject,\n };\n var subscription = _this.subscribe(observer);\n });\n };\n ObservableQuery.prototype.getCurrentResult = function (saveAsLastResult) {\n if (saveAsLastResult === void 0) { saveAsLastResult = true; }\n var lastResult = this.lastResult;\n var networkStatus = this.queryInfo.networkStatus ||\n (lastResult && lastResult.networkStatus) ||\n NetworkStatus.ready;\n var result = __assign(__assign({}, lastResult), { loading: isNetworkRequestInFlight(networkStatus), networkStatus: networkStatus });\n if (this.isTornDown) {\n return result;\n }\n var _a = this.options.fetchPolicy, fetchPolicy = _a === void 0 ? 'cache-first' : _a;\n if (fetchPolicy === 'no-cache' ||\n fetchPolicy === 'network-only') {\n delete result.partial;\n }\n else if (!result.data ||\n !this.queryManager.transform(this.options.query).hasForcedResolvers) {\n var diff = this.queryInfo.getDiff();\n result.data = (diff.complete ||\n this.options.returnPartialData) ? diff.result : void 0;\n if (diff.complete) {\n if (result.networkStatus === NetworkStatus.loading &&\n (fetchPolicy === 'cache-first' ||\n fetchPolicy === 'cache-only')) {\n result.networkStatus = NetworkStatus.ready;\n result.loading = false;\n }\n delete result.partial;\n }\n else {\n result.partial = true;\n }\n }\n if (saveAsLastResult) {\n this.updateLastResult(result);\n }\n return result;\n };\n ObservableQuery.prototype.isDifferentFromLastResult = function (newResult) {\n return !equal(this.lastResultSnapshot, newResult);\n };\n ObservableQuery.prototype.getLastResult = function () {\n return this.lastResult;\n };\n ObservableQuery.prototype.getLastError = function () {\n return this.lastError;\n };\n ObservableQuery.prototype.resetLastResults = function () {\n delete this.lastResult;\n delete this.lastResultSnapshot;\n delete this.lastError;\n this.isTornDown = false;\n };\n ObservableQuery.prototype.resetQueryStoreErrors = function () {\n this.queryManager.resetErrors(this.queryId);\n };\n ObservableQuery.prototype.refetch = function (variables) {\n var reobserveOptions = {\n pollInterval: 0,\n };\n var fetchPolicy = this.options.fetchPolicy;\n if (fetchPolicy !== 'no-cache' &&\n fetchPolicy !== 'cache-and-network') {\n reobserveOptions.fetchPolicy = 'network-only';\n reobserveOptions.nextFetchPolicy = fetchPolicy || \"cache-first\";\n }\n if (variables && !equal(this.options.variables, variables)) {\n reobserveOptions.variables = this.options.variables = __assign(__assign({}, this.options.variables), variables);\n }\n return this.newReobserver(false).reobserve(reobserveOptions, NetworkStatus.refetch);\n };\n ObservableQuery.prototype.fetchMore = function (fetchMoreOptions) {\n var _this = this;\n var combinedOptions = __assign(__assign({}, (fetchMoreOptions.query ? fetchMoreOptions : __assign(__assign(__assign({}, this.options), fetchMoreOptions), { variables: __assign(__assign({}, this.options.variables), fetchMoreOptions.variables) }))), { fetchPolicy: \"no-cache\" });\n var qid = this.queryManager.generateQueryId();\n if (combinedOptions.notifyOnNetworkStatusChange) {\n this.queryInfo.networkStatus = NetworkStatus.fetchMore;\n this.observe();\n }\n return this.queryManager.fetchQuery(qid, combinedOptions, NetworkStatus.fetchMore).then(function (fetchMoreResult) {\n var data = fetchMoreResult.data;\n var updateQuery = fetchMoreOptions.updateQuery;\n if (updateQuery) {\n if (process.env.NODE_ENV !== \"production\" &&\n !warnedAboutUpdateQuery) {\n process.env.NODE_ENV === \"production\" || invariant.warn(\"The updateQuery callback for fetchMore is deprecated, and will be removed\\nin the next major version of Apollo Client.\\n\\nPlease convert updateQuery functions to field policies with appropriate\\nread and merge functions, or use/adapt a helper function (such as\\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\\n@apollo/client/utilities.\\n\\nThe field policy system handles pagination more effectively than a\\nhand-written updateQuery function, and you only need to define the policy\\nonce, rather than every time you call fetchMore.\");\n warnedAboutUpdateQuery = true;\n }\n _this.updateQuery(function (previous) { return updateQuery(previous, {\n fetchMoreResult: data,\n variables: combinedOptions.variables,\n }); });\n }\n else {\n _this.queryManager.cache.writeQuery({\n query: combinedOptions.query,\n variables: combinedOptions.variables,\n data: data,\n });\n }\n return fetchMoreResult;\n }).finally(function () {\n _this.queryManager.stopQuery(qid);\n _this.reobserve();\n });\n };\n ObservableQuery.prototype.subscribeToMore = function (options) {\n var _this = this;\n var subscription = this.queryManager\n .startGraphQLSubscription({\n query: options.document,\n variables: options.variables,\n context: options.context,\n })\n .subscribe({\n next: function (subscriptionData) {\n var updateQuery = options.updateQuery;\n if (updateQuery) {\n _this.updateQuery(function (previous, _a) {\n var variables = _a.variables;\n return updateQuery(previous, {\n subscriptionData: subscriptionData,\n variables: variables,\n });\n });\n }\n },\n error: function (err) {\n if (options.onError) {\n options.onError(err);\n return;\n }\n process.env.NODE_ENV === \"production\" || invariant.error('Unhandled GraphQL subscription error', err);\n },\n });\n this.subscriptions.add(subscription);\n return function () {\n if (_this.subscriptions.delete(subscription)) {\n subscription.unsubscribe();\n }\n };\n };\n ObservableQuery.prototype.setOptions = function (newOptions) {\n return this.reobserve(newOptions);\n };\n ObservableQuery.prototype.setVariables = function (variables) {\n if (equal(this.variables, variables)) {\n return this.observers.size\n ? this.result()\n : Promise.resolve();\n }\n this.options.variables = variables;\n if (!this.observers.size) {\n return Promise.resolve();\n }\n var _a = this.options.fetchPolicy, fetchPolicy = _a === void 0 ? 'cache-first' : _a;\n var reobserveOptions = {\n fetchPolicy: fetchPolicy,\n variables: variables,\n };\n if (fetchPolicy !== 'cache-first' &&\n fetchPolicy !== 'no-cache' &&\n fetchPolicy !== 'network-only') {\n reobserveOptions.fetchPolicy = 'cache-and-network';\n reobserveOptions.nextFetchPolicy = fetchPolicy;\n }\n return this.reobserve(reobserveOptions, NetworkStatus.setVariables);\n };\n ObservableQuery.prototype.updateQuery = function (mapFn) {\n var _a;\n var queryManager = this.queryManager;\n var result = queryManager.cache.diff({\n query: this.options.query,\n variables: this.variables,\n previousResult: (_a = this.lastResult) === null || _a === void 0 ? void 0 : _a.data,\n returnPartialData: true,\n optimistic: false,\n }).result;\n var newResult = mapFn(result, {\n variables: this.variables,\n });\n if (newResult) {\n queryManager.cache.writeQuery({\n query: this.options.query,\n data: newResult,\n variables: this.variables,\n });\n queryManager.broadcastQueries();\n }\n };\n ObservableQuery.prototype.startPolling = function (pollInterval) {\n this.getReobserver().updateOptions({ pollInterval: pollInterval });\n };\n ObservableQuery.prototype.stopPolling = function () {\n if (this.reobserver) {\n this.reobserver.updateOptions({ pollInterval: 0 });\n }\n };\n ObservableQuery.prototype.updateLastResult = function (newResult) {\n var previousResult = this.lastResult;\n this.lastResult = newResult;\n this.lastResultSnapshot = this.queryManager.assumeImmutableResults\n ? newResult\n : cloneDeep(newResult);\n if (!isNonEmptyArray(newResult.errors)) {\n delete this.lastError;\n }\n return previousResult;\n };\n ObservableQuery.prototype.onSubscribe = function (observer) {\n var _this = this;\n if (observer === this.observer) {\n return function () { };\n }\n try {\n var subObserver = observer._subscription._observer;\n if (subObserver && !subObserver.error) {\n subObserver.error = defaultSubscriptionObserverErrorCallback;\n }\n }\n catch (_a) { }\n var first = !this.observers.size;\n this.observers.add(observer);\n if (this.lastError) {\n observer.error && observer.error(this.lastError);\n }\n else if (this.lastResult) {\n observer.next && observer.next(this.lastResult);\n }\n if (first) {\n this.reobserve().catch(function (_) {\n });\n }\n return function () {\n if (_this.observers.delete(observer) && !_this.observers.size) {\n _this.tearDownQuery();\n }\n };\n };\n ObservableQuery.prototype.getReobserver = function () {\n return this.reobserver || (this.reobserver = this.newReobserver(true));\n };\n ObservableQuery.prototype.newReobserver = function (shareOptions) {\n var _this = this;\n var _a = this, queryManager = _a.queryManager, queryId = _a.queryId;\n queryManager.setObservableQuery(this);\n return new Reobserver(this.observer, shareOptions ? this.options : __assign({}, this.options), function (currentOptions, newNetworkStatus) {\n queryManager.setObservableQuery(_this);\n return queryManager.fetchQueryObservable(queryId, currentOptions, newNetworkStatus);\n }, !queryManager.ssrMode && (function () { return !isNetworkRequestInFlight(_this.queryInfo.networkStatus); }));\n };\n ObservableQuery.prototype.reobserve = function (newOptions, newNetworkStatus) {\n this.isTornDown = false;\n return this.getReobserver().reobserve(newOptions, newNetworkStatus);\n };\n ObservableQuery.prototype.observe = function () {\n this.observer.next(this.getCurrentResult(false));\n };\n ObservableQuery.prototype.hasObservers = function () {\n return this.observers.size > 0;\n };\n ObservableQuery.prototype.tearDownQuery = function () {\n if (this.isTornDown)\n return;\n if (this.reobserver) {\n this.reobserver.stop();\n delete this.reobserver;\n }\n this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });\n this.subscriptions.clear();\n this.queryManager.stopQuery(this.queryId);\n this.observers.clear();\n this.isTornDown = true;\n };\n return ObservableQuery;\n}(Observable));\nexport { ObservableQuery };\nfixObservableSubclass(ObservableQuery);\nfunction defaultSubscriptionObserverErrorCallback(error) {\n process.env.NODE_ENV === \"production\" || invariant.error('Unhandled error', error.message, error.stack);\n}\n//# sourceMappingURL=ObservableQuery.js.map","import { invariant } from 'ts-invariant';\nimport { equal } from '@wry/equality';\n\nimport { NetworkStatus, isNetworkRequestInFlight } from './networkStatus';\nimport {\n cloneDeep,\n getOperationDefinition,\n Observable,\n Observer,\n ObservableSubscription,\n iterateObserversSafely,\n isNonEmptyArray,\n fixObservableSubclass,\n} from '../utilities';\nimport { ApolloError } from '../errors';\nimport { QueryManager } from './QueryManager';\nimport { ApolloQueryResult, OperationVariables } from './types';\nimport {\n WatchQueryOptions,\n FetchMoreQueryOptions,\n SubscribeToMoreOptions,\n} from './watchQueryOptions';\nimport { Reobserver } from './Reobserver';\nimport { QueryInfo } from './QueryInfo';\n\nexport interface FetchMoreOptions<\n TData = any,\n TVariables = OperationVariables\n> {\n updateQuery?: (\n previousQueryResult: TData,\n options: {\n fetchMoreResult?: TData;\n variables?: TVariables;\n },\n ) => TData;\n}\n\nexport interface UpdateQueryOptions {\n variables?: TVariables;\n}\n\nlet warnedAboutUpdateQuery = false;\n\nexport class ObservableQuery<\n TData = any,\n TVariables = OperationVariables\n> extends Observable> {\n public readonly options: WatchQueryOptions;\n public readonly queryId: string;\n public readonly queryName?: string;\n\n // Computed shorthand for this.options.variables, preserved for\n // backwards compatibility.\n public get variables(): TVariables | undefined {\n return this.options.variables;\n }\n\n private isTornDown: boolean;\n private queryManager: QueryManager;\n private observers = new Set>>();\n private subscriptions = new Set();\n\n private lastResult: ApolloQueryResult;\n private lastResultSnapshot: ApolloQueryResult;\n private lastError: ApolloError;\n private queryInfo: QueryInfo;\n\n constructor({\n queryManager,\n queryInfo,\n options,\n }: {\n queryManager: QueryManager;\n queryInfo: QueryInfo;\n options: WatchQueryOptions;\n }) {\n super((observer: Observer>) =>\n this.onSubscribe(observer),\n );\n\n // active state\n this.isTornDown = false;\n\n // query information\n this.options = options;\n this.queryId = queryManager.generateQueryId();\n\n const opDef = getOperationDefinition(options.query);\n this.queryName = opDef && opDef.name && opDef.name.value;\n\n // related classes\n this.queryManager = queryManager;\n\n this.queryInfo = queryInfo;\n }\n\n public result(): Promise> {\n return new Promise((resolve, reject) => {\n const observer: Observer> = {\n next: (result: ApolloQueryResult) => {\n resolve(result);\n\n // Stop the query within the QueryManager if we can before\n // this function returns.\n //\n // We do this in order to prevent observers piling up within\n // the QueryManager. Notice that we only fully unsubscribe\n // from the subscription in a setTimeout(..., 0) call. This call can\n // actually be handled by the browser at a much later time. If queries\n // are fired in the meantime, observers that should have been removed\n // from the QueryManager will continue to fire, causing an unnecessary\n // performance hit.\n this.observers.delete(observer);\n if (!this.observers.size) {\n this.queryManager.removeQuery(this.queryId);\n }\n\n setTimeout(() => {\n subscription.unsubscribe();\n }, 0);\n },\n error: reject,\n };\n const subscription = this.subscribe(observer);\n });\n }\n\n public getCurrentResult(saveAsLastResult = true): ApolloQueryResult {\n const { lastResult } = this;\n\n const networkStatus =\n this.queryInfo.networkStatus ||\n (lastResult && lastResult.networkStatus) ||\n NetworkStatus.ready;\n\n const result: ApolloQueryResult = {\n ...lastResult,\n loading: isNetworkRequestInFlight(networkStatus),\n networkStatus,\n };\n\n if (this.isTornDown) {\n return result;\n }\n\n const { fetchPolicy = 'cache-first' } = this.options;\n if (fetchPolicy === 'no-cache' ||\n fetchPolicy === 'network-only') {\n // Similar to setting result.partial to false, but taking advantage\n // of the falsiness of missing fields.\n delete result.partial;\n } else if (\n !result.data ||\n // If this.options.query has @client(always: true) fields, we cannot\n // trust result.data, since it was read from the cache without\n // running local resolvers (and it's too late to run resolvers now,\n // since we must return a result synchronously). TODO In the future\n // (after Apollo Client 3.0), we should find a way to trust\n // this.lastResult in more cases, and read from the cache only in\n // cases when no result has been received yet.\n !this.queryManager.transform(this.options.query).hasForcedResolvers\n ) {\n const diff = this.queryInfo.getDiff();\n result.data = (\n diff.complete ||\n this.options.returnPartialData\n ) ? diff.result : void 0;\n if (diff.complete) {\n // If the diff is complete, and we're using a FetchPolicy that\n // terminates after a complete cache read, we can assume the next\n // result we receive will have NetworkStatus.ready and !loading.\n if (result.networkStatus === NetworkStatus.loading &&\n (fetchPolicy === 'cache-first' ||\n fetchPolicy === 'cache-only')) {\n result.networkStatus = NetworkStatus.ready;\n result.loading = false;\n }\n delete result.partial;\n } else {\n result.partial = true;\n }\n }\n\n if (saveAsLastResult) {\n this.updateLastResult(result);\n }\n\n return result;\n }\n\n // Compares newResult to the snapshot we took of this.lastResult when it was\n // first received.\n public isDifferentFromLastResult(newResult: ApolloQueryResult) {\n return !equal(this.lastResultSnapshot, newResult);\n }\n\n // Returns the last result that observer.next was called with. This is not the same as\n // getCurrentResult! If you're not sure which you need, then you probably need getCurrentResult.\n public getLastResult(): ApolloQueryResult {\n return this.lastResult;\n }\n\n public getLastError(): ApolloError {\n return this.lastError;\n }\n\n public resetLastResults(): void {\n delete this.lastResult;\n delete this.lastResultSnapshot;\n delete this.lastError;\n this.isTornDown = false;\n }\n\n public resetQueryStoreErrors() {\n this.queryManager.resetErrors(this.queryId);\n }\n\n /**\n * Update the variables of this observable query, and fetch the new results.\n * This method should be preferred over `setVariables` in most use cases.\n *\n * @param variables: The new set of variables. If there are missing variables,\n * the previous values of those variables will be used.\n */\n public refetch(variables?: Partial): Promise> {\n const reobserveOptions: Partial> = {\n // Always disable polling for refetches.\n pollInterval: 0,\n };\n\n // Unless the provided fetchPolicy always consults the network\n // (no-cache, network-only, or cache-and-network), override it with\n // network-only to force the refetch for this fetchQuery call.\n const { fetchPolicy } = this.options;\n if (fetchPolicy !== 'no-cache' &&\n fetchPolicy !== 'cache-and-network') {\n reobserveOptions.fetchPolicy = 'network-only';\n // Go back to the original options.fetchPolicy after this refetch.\n reobserveOptions.nextFetchPolicy = fetchPolicy || \"cache-first\";\n }\n\n if (variables && !equal(this.options.variables, variables)) {\n // Update the existing options with new variables\n reobserveOptions.variables = this.options.variables = {\n ...this.options.variables,\n ...variables,\n } as TVariables;\n }\n\n return this.newReobserver(false).reobserve(\n reobserveOptions,\n NetworkStatus.refetch,\n );\n }\n\n public fetchMore(\n fetchMoreOptions: FetchMoreQueryOptions &\n FetchMoreOptions,\n ): Promise> {\n const combinedOptions = {\n ...(fetchMoreOptions.query ? fetchMoreOptions : {\n ...this.options,\n ...fetchMoreOptions,\n variables: {\n ...this.options.variables,\n ...fetchMoreOptions.variables,\n },\n }),\n // The fetchMore request goes immediately to the network and does\n // not automatically write its result to the cache (hence no-cache\n // instead of network-only), because we allow the caller of\n // fetchMore to provide an updateQuery callback that determines how\n // the data gets written to the cache.\n fetchPolicy: \"no-cache\",\n } as WatchQueryOptions;\n\n const qid = this.queryManager.generateQueryId();\n\n // Simulate a loading result for the original query with\n // result.networkStatus === NetworkStatus.fetchMore.\n if (combinedOptions.notifyOnNetworkStatusChange) {\n this.queryInfo.networkStatus = NetworkStatus.fetchMore;\n this.observe();\n }\n\n return this.queryManager.fetchQuery(\n qid,\n combinedOptions,\n NetworkStatus.fetchMore,\n ).then(fetchMoreResult => {\n const data = fetchMoreResult.data as TData;\n const { updateQuery } = fetchMoreOptions;\n\n if (updateQuery) {\n if (process.env.NODE_ENV !== \"production\" &&\n !warnedAboutUpdateQuery) {\n invariant.warn(\n`The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore.`);\n warnedAboutUpdateQuery = true;\n }\n this.updateQuery(previous => updateQuery(previous, {\n fetchMoreResult: data,\n variables: combinedOptions.variables as TVariables,\n }));\n } else {\n // If we're using a field policy instead of updateQuery, the only\n // thing we need to do is write the new data to the cache using\n // combinedOptions.variables (instead of this.variables, which is\n // what this.updateQuery uses, because it works by abusing the\n // original field value, keyed by the original variables).\n this.queryManager.cache.writeQuery({\n query: combinedOptions.query,\n variables: combinedOptions.variables,\n data,\n });\n }\n\n return fetchMoreResult as ApolloQueryResult;\n\n }).finally(() => {\n this.queryManager.stopQuery(qid);\n this.reobserve();\n });\n }\n\n // XXX the subscription variables are separate from the query variables.\n // if you want to update subscription variables, right now you have to do that separately,\n // and you can only do it by stopping the subscription and then subscribing again with new variables.\n public subscribeToMore<\n TSubscriptionData = TData,\n TSubscriptionVariables = TVariables\n >(\n options: SubscribeToMoreOptions<\n TData,\n TSubscriptionVariables,\n TSubscriptionData\n >,\n ) {\n const subscription = this.queryManager\n .startGraphQLSubscription({\n query: options.document,\n variables: options.variables,\n context: options.context,\n })\n .subscribe({\n next: (subscriptionData: { data: TSubscriptionData }) => {\n const { updateQuery } = options;\n if (updateQuery) {\n this.updateQuery(\n (previous, { variables }) =>\n updateQuery(previous, {\n subscriptionData,\n variables,\n }),\n );\n }\n },\n error: (err: any) => {\n if (options.onError) {\n options.onError(err);\n return;\n }\n invariant.error('Unhandled GraphQL subscription error', err);\n },\n });\n\n this.subscriptions.add(subscription);\n\n return () => {\n if (this.subscriptions.delete(subscription)) {\n subscription.unsubscribe();\n }\n };\n }\n\n public setOptions(\n newOptions: Partial>,\n ): Promise> {\n return this.reobserve(newOptions);\n }\n\n /**\n * This is for *internal* use only. Most users should instead use `refetch`\n * in order to be properly notified of results even when they come from cache.\n *\n * Update the variables of this observable query, and fetch the new results\n * if they've changed. If you want to force new results, use `refetch`.\n *\n * Note: the `next` callback will *not* fire if the variables have not changed\n * or if the result is coming from cache.\n *\n * Note: the promise will return the old results immediately if the variables\n * have not changed.\n *\n * Note: the promise will return null immediately if the query is not active\n * (there are no subscribers).\n *\n * @private\n *\n * @param variables: The new set of variables. If there are missing variables,\n * the previous values of those variables will be used.\n *\n * @param tryFetch: Try and fetch new results even if the variables haven't\n * changed (we may still just hit the store, but if there's nothing in there\n * this will refetch)\n */\n public setVariables(\n variables: TVariables,\n ): Promise | void> {\n if (equal(this.variables, variables)) {\n // If we have no observers, then we don't actually want to make a network\n // request. As soon as someone observes the query, the request will kick\n // off. For now, we just store any changes. (See #1077)\n return this.observers.size\n ? this.result()\n : Promise.resolve();\n }\n\n this.options.variables = variables;\n\n // See comment above\n if (!this.observers.size) {\n return Promise.resolve();\n }\n\n let { fetchPolicy = 'cache-first' } = this.options;\n const reobserveOptions: Partial> = {\n fetchPolicy,\n variables,\n };\n\n if (fetchPolicy !== 'cache-first' &&\n fetchPolicy !== 'no-cache' &&\n fetchPolicy !== 'network-only') {\n reobserveOptions.fetchPolicy = 'cache-and-network';\n reobserveOptions.nextFetchPolicy = fetchPolicy;\n }\n\n return this.reobserve(\n reobserveOptions,\n NetworkStatus.setVariables,\n );\n }\n\n public updateQuery(\n mapFn: (\n previousQueryResult: TData,\n options: Pick, \"variables\">,\n ) => TData,\n ): void {\n const { queryManager } = this;\n const { result } = queryManager.cache.diff({\n query: this.options.query,\n variables: this.variables,\n previousResult: this.lastResult?.data,\n returnPartialData: true,\n optimistic: false,\n });\n\n const newResult = mapFn(result!, {\n variables: (this as any).variables,\n });\n\n if (newResult) {\n queryManager.cache.writeQuery({\n query: this.options.query,\n data: newResult,\n variables: this.variables,\n });\n\n queryManager.broadcastQueries();\n }\n }\n\n public startPolling(pollInterval: number) {\n this.getReobserver().updateOptions({ pollInterval });\n }\n\n public stopPolling() {\n if (this.reobserver) {\n this.reobserver.updateOptions({ pollInterval: 0 });\n }\n }\n\n private updateLastResult(newResult: ApolloQueryResult) {\n const previousResult = this.lastResult;\n this.lastResult = newResult;\n this.lastResultSnapshot = this.queryManager.assumeImmutableResults\n ? newResult\n : cloneDeep(newResult);\n if (!isNonEmptyArray(newResult.errors)) {\n delete this.lastError;\n }\n return previousResult;\n }\n\n private onSubscribe(observer: Observer>) {\n // Subscribing using this.observer will create an infinite notificaion\n // loop, but the intent of broadcasting results to all the other\n // this.observers can be satisfied without doing anything, which is\n // why we do not bother throwing an error here.\n if (observer === this.observer) {\n return () => {};\n }\n\n // Zen Observable has its own error function, so in order to log correctly\n // we need to provide a custom error callback.\n try {\n var subObserver = (observer as any)._subscription._observer;\n if (subObserver && !subObserver.error) {\n subObserver.error = defaultSubscriptionObserverErrorCallback;\n }\n } catch {}\n\n const first = !this.observers.size;\n this.observers.add(observer);\n\n // Deliver most recent error or result.\n if (this.lastError) {\n observer.error && observer.error(this.lastError);\n } else if (this.lastResult) {\n observer.next && observer.next(this.lastResult);\n }\n\n // Initiate observation of this query if it hasn't been reported to\n // the QueryManager yet.\n if (first) {\n this.reobserve().catch(_ => {\n // Blindly catching here prevents unhandled promise rejections,\n // and is safe because the ObservableQuery handles this error with\n // this.observer.error, so we're not just swallowing the error by\n // ignoring it here.\n });\n }\n\n return () => {\n if (this.observers.delete(observer) && !this.observers.size) {\n this.tearDownQuery();\n }\n };\n }\n\n private reobserver?: Reobserver;\n\n private getReobserver(): Reobserver {\n return this.reobserver || (this.reobserver = this.newReobserver(true));\n }\n\n private newReobserver(shareOptions: boolean) {\n const { queryManager, queryId } = this;\n queryManager.setObservableQuery(this);\n return new Reobserver(\n this.observer,\n // Sharing options allows this.reobserver.options to be ===\n // this.options, so we don't have to worry about synchronizing the\n // properties of two distinct objects.\n shareOptions ? this.options : { ...this.options },\n (currentOptions, newNetworkStatus) => {\n queryManager.setObservableQuery(this);\n return queryManager.fetchQueryObservable(\n queryId,\n currentOptions,\n newNetworkStatus,\n );\n },\n // Avoid polling during SSR and when the query is already in flight.\n !queryManager.ssrMode && (\n () => !isNetworkRequestInFlight(this.queryInfo.networkStatus))\n );\n }\n\n public reobserve(\n newOptions?: Partial>,\n newNetworkStatus?: NetworkStatus,\n ): Promise> {\n this.isTornDown = false;\n return this.getReobserver().reobserve(newOptions, newNetworkStatus);\n }\n\n // Pass the current result to this.observer.next without applying any\n // fetch policies, bypassing the Reobserver.\n private observe() {\n // Passing false is important so that this.getCurrentResult doesn't\n // save the fetchMore result as this.lastResult, causing it to be\n // ignored due to the this.isDifferentFromLastResult check in\n // this.observer.next.\n this.observer.next(this.getCurrentResult(false));\n }\n\n private observer = {\n next: (result: ApolloQueryResult) => {\n if (this.lastError || this.isDifferentFromLastResult(result)) {\n this.updateLastResult(result);\n iterateObserversSafely(this.observers, 'next', result);\n }\n },\n\n error: (error: ApolloError) => {\n // Since we don't get the current result on errors, only the error, we\n // must mirror the updates that occur in QueryStore.markQueryError here\n this.updateLastResult({\n ...this.lastResult,\n error,\n errors: error.graphQLErrors,\n networkStatus: NetworkStatus.error,\n loading: false,\n });\n\n iterateObserversSafely(this.observers, 'error', this.lastError = error);\n },\n };\n\n public hasObservers() {\n return this.observers.size > 0;\n }\n\n private tearDownQuery() {\n if (this.isTornDown) return;\n\n if (this.reobserver) {\n this.reobserver.stop();\n delete this.reobserver;\n }\n\n // stop all active GraphQL subscriptions\n this.subscriptions.forEach(sub => sub.unsubscribe());\n this.subscriptions.clear();\n\n this.queryManager.stopQuery(this.queryId);\n\n this.observers.clear();\n\n this.isTornDown = true;\n }\n}\n\n// Necessary because the ObservableQuery constructor has a different\n// signature than the Observable constructor.\nfixObservableSubclass(ObservableQuery);\n\nfunction defaultSubscriptionObserverErrorCallback(error: ApolloError) {\n invariant.error('Unhandled error', error.message, error.stack);\n}\n","export var NetworkStatus;\n(function (NetworkStatus) {\n NetworkStatus[NetworkStatus[\"loading\"] = 1] = \"loading\";\n NetworkStatus[NetworkStatus[\"setVariables\"] = 2] = \"setVariables\";\n NetworkStatus[NetworkStatus[\"fetchMore\"] = 3] = \"fetchMore\";\n NetworkStatus[NetworkStatus[\"refetch\"] = 4] = \"refetch\";\n NetworkStatus[NetworkStatus[\"poll\"] = 6] = \"poll\";\n NetworkStatus[NetworkStatus[\"ready\"] = 7] = \"ready\";\n NetworkStatus[NetworkStatus[\"error\"] = 8] = \"error\";\n})(NetworkStatus || (NetworkStatus = {}));\nexport function isNetworkRequestInFlight(networkStatus) {\n return networkStatus ? networkStatus < 7 : false;\n}\n//# sourceMappingURL=networkStatus.js.map","/**\n * The current status of a query’s execution in our system.\n */\nexport enum NetworkStatus {\n /**\n * The query has never been run before and the query is now currently running. A query will still\n * have this network status even if a partial data result was returned from the cache, but a\n * query was dispatched anyway.\n */\n loading = 1,\n\n /**\n * If `setVariables` was called and a query was fired because of that then the network status\n * will be `setVariables` until the result of that query comes back.\n */\n setVariables = 2,\n\n /**\n * Indicates that `fetchMore` was called on this query and that the query created is currently in\n * flight.\n */\n fetchMore = 3,\n\n /**\n * Similar to the `setVariables` network status. It means that `refetch` was called on a query\n * and the refetch request is currently in flight.\n */\n refetch = 4,\n\n /**\n * Indicates that a polling query is currently in flight. So for example if you are polling a\n * query every 10 seconds then the network status will switch to `poll` every 10 seconds whenever\n * a poll request has been sent but not resolved.\n */\n poll = 6,\n\n /**\n * No request is in flight for this query, and no errors happened. Everything is OK.\n */\n ready = 7,\n\n /**\n * No request is in flight for this query, but one or more errors were detected.\n */\n error = 8,\n}\n\n/**\n * Returns true if there is currently a network request in flight according to a given network\n * status.\n */\nexport function isNetworkRequestInFlight(\n networkStatus?: NetworkStatus,\n): boolean {\n return networkStatus ? networkStatus < 7 : false;\n}\n","import { NetworkStatus } from \"./networkStatus.js\";\nimport { compact } from \"../utilities/index.js\";\nimport { invariant } from 'ts-invariant';\nvar Reobserver = (function () {\n function Reobserver(observer, options, fetch, shouldFetch) {\n this.observer = observer;\n this.options = options;\n this.fetch = fetch;\n this.shouldFetch = shouldFetch;\n }\n Reobserver.prototype.reobserve = function (newOptions, newNetworkStatus) {\n if (newOptions) {\n this.updateOptions(newOptions);\n }\n else {\n this.updatePolling();\n }\n var concast = this.fetch(this.options, newNetworkStatus);\n if (this.concast) {\n this.concast.removeObserver(this.observer, true);\n }\n concast.addObserver(this.observer);\n return (this.concast = concast).promise;\n };\n Reobserver.prototype.updateOptions = function (newOptions) {\n Object.assign(this.options, compact(newOptions));\n this.updatePolling();\n return this;\n };\n Reobserver.prototype.stop = function () {\n if (this.concast) {\n this.concast.removeObserver(this.observer);\n delete this.concast;\n }\n if (this.pollingInfo) {\n clearTimeout(this.pollingInfo.timeout);\n this.options.pollInterval = 0;\n this.updatePolling();\n }\n };\n Reobserver.prototype.updatePolling = function () {\n var _this = this;\n var _a = this, pollingInfo = _a.pollingInfo, pollInterval = _a.options.pollInterval;\n if (!pollInterval) {\n if (pollingInfo) {\n clearTimeout(pollingInfo.timeout);\n delete this.pollingInfo;\n }\n return;\n }\n if (pollingInfo &&\n pollingInfo.interval === pollInterval) {\n return;\n }\n process.env.NODE_ENV === \"production\" ? invariant(pollInterval, 20) : invariant(pollInterval, 'Attempted to start a polling query without a polling interval.');\n if (this.shouldFetch === false) {\n return;\n }\n var info = pollingInfo || (this.pollingInfo = {});\n info.interval = pollInterval;\n var maybeFetch = function () {\n if (_this.pollingInfo) {\n if (_this.shouldFetch && _this.shouldFetch()) {\n _this.reobserve({\n fetchPolicy: \"network-only\",\n nextFetchPolicy: _this.options.fetchPolicy || \"cache-first\",\n }, NetworkStatus.poll).then(poll, poll);\n }\n else {\n poll();\n }\n }\n ;\n };\n var poll = function () {\n var info = _this.pollingInfo;\n if (info) {\n clearTimeout(info.timeout);\n info.timeout = setTimeout(maybeFetch, info.interval);\n }\n };\n poll();\n };\n return Reobserver;\n}());\nexport { Reobserver };\n//# sourceMappingURL=Reobserver.js.map","import { WatchQueryOptions } from './watchQueryOptions';\nimport { NetworkStatus } from './networkStatus';\nimport { ApolloQueryResult } from './types';\nimport { Observer, Concast, compact } from '../utilities';\nimport { invariant } from 'ts-invariant';\n\n// Given that QueryManager#fetchQueryObservable returns only a single\n// query's worth of results, other code must be responsible for repeatedly\n// calling fetchQueryObservable, while ensuring that the ObservableQuery\n// consuming those results remains subscribed to the concatenation of all\n// the observables returned by fetchQueryObservable. That responsibility\n// falls to this Reobserver class. As a bonus, the Reobserver class is\n// perfectly poised to handle polling logic, since polling is essentially\n// repeated reobservation. In principle, this code could have remained in\n// the ObservableQuery class, but I felt it would be easier to explain and\n// understand reobservation if it was confined to a separate class.\nexport class Reobserver {\n constructor(\n private observer: Observer>,\n private options: WatchQueryOptions,\n // Almost certainly just a wrapper function around\n // QueryManager#fetchQueryObservable, but this small dose of\n // indirection means the Reobserver doesn't have to know/assume\n // anything about the QueryManager class.\n private fetch: (\n options: WatchQueryOptions,\n newNetworkStatus?: NetworkStatus,\n ) => Concast>,\n // If we're polling, there may be times when we should avoid fetching,\n // such as when the query is already in flight, or polling has been\n // completely disabled for server-side rendering. Passing false for\n // this parameter disables polling completely, and passing a boolean\n // function allows determining fetch safety dynamically.\n private shouldFetch: false | (() => boolean),\n ) {}\n\n private concast?: Concast>;\n\n public reobserve(\n newOptions?: Partial>,\n newNetworkStatus?: NetworkStatus,\n ): Promise> {\n if (newOptions) {\n this.updateOptions(newOptions);\n } else {\n // When we call this.updateOptions(newOptions) in the branch above,\n // it takes care of calling this.updatePolling(). In this branch, we\n // still need to update polling, even if there were no newOptions.\n this.updatePolling();\n }\n\n const concast = this.fetch(this.options, newNetworkStatus);\n\n if (this.concast) {\n // We use the {add,remove}Observer methods directly to avoid\n // wrapping observer with an unnecessary SubscriptionObserver\n // object, in part so that we can remove it here without triggering\n // any unsubscriptions, because we just want to ignore the old\n // observable, not prematurely shut it down, since other consumers\n // may be awaiting this.concast.promise.\n this.concast.removeObserver(this.observer, true);\n }\n\n concast.addObserver(this.observer);\n\n return (this.concast = concast).promise;\n }\n\n public updateOptions(newOptions: Partial>) {\n Object.assign(this.options, compact(newOptions));\n this.updatePolling();\n return this;\n }\n\n public stop() {\n if (this.concast) {\n this.concast.removeObserver(this.observer);\n delete this.concast;\n }\n\n if (this.pollingInfo) {\n clearTimeout(this.pollingInfo.timeout);\n this.options.pollInterval = 0;\n this.updatePolling();\n }\n }\n\n private pollingInfo?: {\n interval: number;\n timeout: ReturnType;\n };\n\n // Turns polling on or off based on this.options.pollInterval.\n private updatePolling() {\n const {\n pollingInfo,\n options: {\n pollInterval,\n },\n } = this;\n\n if (!pollInterval) {\n if (pollingInfo) {\n clearTimeout(pollingInfo.timeout);\n delete this.pollingInfo;\n }\n return;\n }\n\n if (pollingInfo &&\n pollingInfo.interval === pollInterval) {\n return;\n }\n\n invariant(\n pollInterval,\n 'Attempted to start a polling query without a polling interval.',\n );\n\n // Go no further if polling is disabled.\n if (this.shouldFetch === false) {\n return;\n }\n\n const info = pollingInfo || (\n this.pollingInfo = {} as Reobserver[\"pollingInfo\"]\n )!;\n\n info.interval = pollInterval;\n\n const maybeFetch = () => {\n if (this.pollingInfo) {\n if (this.shouldFetch && this.shouldFetch()) {\n this.reobserve({\n fetchPolicy: \"network-only\",\n nextFetchPolicy: this.options.fetchPolicy || \"cache-first\",\n }, NetworkStatus.poll).then(poll, poll);\n } else {\n poll();\n }\n };\n };\n\n const poll = () => {\n const info = this.pollingInfo;\n if (info) {\n clearTimeout(info.timeout);\n info.timeout = setTimeout(maybeFetch, info.interval);\n }\n };\n\n poll();\n }\n}\n","import { __assign, __awaiter, __generator } from \"tslib\";\nimport { visit, BREAK, } from 'graphql';\nimport { invariant } from 'ts-invariant';\nimport { argumentsObjectFromField, buildQueryFromSelectionSet, createFragmentMap, getFragmentDefinitions, getMainDefinition, hasDirectives, isField, isInlineFragment, mergeDeep, mergeDeepArray, removeClientSetsFromDocument, resultKeyNameFromField, shouldInclude, } from \"../utilities/index.js\";\nimport { cacheSlot } from \"../cache/index.js\";\nvar LocalState = (function () {\n function LocalState(_a) {\n var cache = _a.cache, client = _a.client, resolvers = _a.resolvers, fragmentMatcher = _a.fragmentMatcher;\n this.cache = cache;\n if (client) {\n this.client = client;\n }\n if (resolvers) {\n this.addResolvers(resolvers);\n }\n if (fragmentMatcher) {\n this.setFragmentMatcher(fragmentMatcher);\n }\n }\n LocalState.prototype.addResolvers = function (resolvers) {\n var _this = this;\n this.resolvers = this.resolvers || {};\n if (Array.isArray(resolvers)) {\n resolvers.forEach(function (resolverGroup) {\n _this.resolvers = mergeDeep(_this.resolvers, resolverGroup);\n });\n }\n else {\n this.resolvers = mergeDeep(this.resolvers, resolvers);\n }\n };\n LocalState.prototype.setResolvers = function (resolvers) {\n this.resolvers = {};\n this.addResolvers(resolvers);\n };\n LocalState.prototype.getResolvers = function () {\n return this.resolvers || {};\n };\n LocalState.prototype.runResolvers = function (_a) {\n var document = _a.document, remoteResult = _a.remoteResult, context = _a.context, variables = _a.variables, _b = _a.onlyRunForcedResolvers, onlyRunForcedResolvers = _b === void 0 ? false : _b;\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_c) {\n if (document) {\n return [2, this.resolveDocument(document, remoteResult.data, context, variables, this.fragmentMatcher, onlyRunForcedResolvers).then(function (localResult) { return (__assign(__assign({}, remoteResult), { data: localResult.result })); })];\n }\n return [2, remoteResult];\n });\n });\n };\n LocalState.prototype.setFragmentMatcher = function (fragmentMatcher) {\n this.fragmentMatcher = fragmentMatcher;\n };\n LocalState.prototype.getFragmentMatcher = function () {\n return this.fragmentMatcher;\n };\n LocalState.prototype.clientQuery = function (document) {\n if (hasDirectives(['client'], document)) {\n if (this.resolvers) {\n return document;\n }\n }\n return null;\n };\n LocalState.prototype.serverQuery = function (document) {\n return removeClientSetsFromDocument(document);\n };\n LocalState.prototype.prepareContext = function (context) {\n var cache = this.cache;\n return __assign(__assign({}, context), { cache: cache,\n getCacheKey: function (obj) {\n return cache.identify(obj);\n } });\n };\n LocalState.prototype.addExportedVariables = function (document, variables, context) {\n if (variables === void 0) { variables = {}; }\n if (context === void 0) { context = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (document) {\n return [2, this.resolveDocument(document, this.buildRootValueFromCache(document, variables) || {}, this.prepareContext(context), variables).then(function (data) { return (__assign(__assign({}, variables), data.exportedVariables)); })];\n }\n return [2, __assign({}, variables)];\n });\n });\n };\n LocalState.prototype.shouldForceResolvers = function (document) {\n var forceResolvers = false;\n visit(document, {\n Directive: {\n enter: function (node) {\n if (node.name.value === 'client' && node.arguments) {\n forceResolvers = node.arguments.some(function (arg) {\n return arg.name.value === 'always' &&\n arg.value.kind === 'BooleanValue' &&\n arg.value.value === true;\n });\n if (forceResolvers) {\n return BREAK;\n }\n }\n },\n },\n });\n return forceResolvers;\n };\n LocalState.prototype.buildRootValueFromCache = function (document, variables) {\n return this.cache.diff({\n query: buildQueryFromSelectionSet(document),\n variables: variables,\n returnPartialData: true,\n optimistic: false,\n }).result;\n };\n LocalState.prototype.resolveDocument = function (document, rootValue, context, variables, fragmentMatcher, onlyRunForcedResolvers) {\n if (context === void 0) { context = {}; }\n if (variables === void 0) { variables = {}; }\n if (fragmentMatcher === void 0) { fragmentMatcher = function () { return true; }; }\n if (onlyRunForcedResolvers === void 0) { onlyRunForcedResolvers = false; }\n return __awaiter(this, void 0, void 0, function () {\n var mainDefinition, fragments, fragmentMap, definitionOperation, defaultOperationType, _a, cache, client, execContext;\n return __generator(this, function (_b) {\n mainDefinition = getMainDefinition(document);\n fragments = getFragmentDefinitions(document);\n fragmentMap = createFragmentMap(fragments);\n definitionOperation = mainDefinition\n .operation;\n defaultOperationType = definitionOperation\n ? definitionOperation.charAt(0).toUpperCase() +\n definitionOperation.slice(1)\n : 'Query';\n _a = this, cache = _a.cache, client = _a.client;\n execContext = {\n fragmentMap: fragmentMap,\n context: __assign(__assign({}, context), { cache: cache,\n client: client }),\n variables: variables,\n fragmentMatcher: fragmentMatcher,\n defaultOperationType: defaultOperationType,\n exportedVariables: {},\n onlyRunForcedResolvers: onlyRunForcedResolvers,\n };\n return [2, this.resolveSelectionSet(mainDefinition.selectionSet, rootValue, execContext).then(function (result) { return ({\n result: result,\n exportedVariables: execContext.exportedVariables,\n }); })];\n });\n });\n };\n LocalState.prototype.resolveSelectionSet = function (selectionSet, rootValue, execContext) {\n return __awaiter(this, void 0, void 0, function () {\n var fragmentMap, context, variables, resultsToMerge, execute;\n var _this = this;\n return __generator(this, function (_a) {\n fragmentMap = execContext.fragmentMap, context = execContext.context, variables = execContext.variables;\n resultsToMerge = [rootValue];\n execute = function (selection) { return __awaiter(_this, void 0, void 0, function () {\n var fragment, typeCondition;\n return __generator(this, function (_a) {\n if (!shouldInclude(selection, variables)) {\n return [2];\n }\n if (isField(selection)) {\n return [2, this.resolveField(selection, rootValue, execContext).then(function (fieldResult) {\n var _a;\n if (typeof fieldResult !== 'undefined') {\n resultsToMerge.push((_a = {},\n _a[resultKeyNameFromField(selection)] = fieldResult,\n _a));\n }\n })];\n }\n if (isInlineFragment(selection)) {\n fragment = selection;\n }\n else {\n fragment = fragmentMap[selection.name.value];\n process.env.NODE_ENV === \"production\" ? invariant(fragment, 11) : invariant(fragment, \"No fragment named \" + selection.name.value);\n }\n if (fragment && fragment.typeCondition) {\n typeCondition = fragment.typeCondition.name.value;\n if (execContext.fragmentMatcher(rootValue, typeCondition, context)) {\n return [2, this.resolveSelectionSet(fragment.selectionSet, rootValue, execContext).then(function (fragmentResult) {\n resultsToMerge.push(fragmentResult);\n })];\n }\n }\n return [2];\n });\n }); };\n return [2, Promise.all(selectionSet.selections.map(execute)).then(function () {\n return mergeDeepArray(resultsToMerge);\n })];\n });\n });\n };\n LocalState.prototype.resolveField = function (field, rootValue, execContext) {\n return __awaiter(this, void 0, void 0, function () {\n var variables, fieldName, aliasedFieldName, aliasUsed, defaultResult, resultPromise, resolverType, resolverMap, resolve;\n var _this = this;\n return __generator(this, function (_a) {\n variables = execContext.variables;\n fieldName = field.name.value;\n aliasedFieldName = resultKeyNameFromField(field);\n aliasUsed = fieldName !== aliasedFieldName;\n defaultResult = rootValue[aliasedFieldName] || rootValue[fieldName];\n resultPromise = Promise.resolve(defaultResult);\n if (!execContext.onlyRunForcedResolvers ||\n this.shouldForceResolvers(field)) {\n resolverType = rootValue.__typename || execContext.defaultOperationType;\n resolverMap = this.resolvers && this.resolvers[resolverType];\n if (resolverMap) {\n resolve = resolverMap[aliasUsed ? fieldName : aliasedFieldName];\n if (resolve) {\n resultPromise = Promise.resolve(cacheSlot.withValue(this.cache, resolve, [\n rootValue,\n argumentsObjectFromField(field, variables),\n execContext.context,\n { field: field, fragmentMap: execContext.fragmentMap },\n ]));\n }\n }\n }\n return [2, resultPromise.then(function (result) {\n if (result === void 0) { result = defaultResult; }\n if (field.directives) {\n field.directives.forEach(function (directive) {\n if (directive.name.value === 'export' && directive.arguments) {\n directive.arguments.forEach(function (arg) {\n if (arg.name.value === 'as' && arg.value.kind === 'StringValue') {\n execContext.exportedVariables[arg.value.value] = result;\n }\n });\n }\n });\n }\n if (!field.selectionSet) {\n return result;\n }\n if (result == null) {\n return result;\n }\n if (Array.isArray(result)) {\n return _this.resolveSubSelectedArray(field, result, execContext);\n }\n if (field.selectionSet) {\n return _this.resolveSelectionSet(field.selectionSet, result, execContext);\n }\n })];\n });\n });\n };\n LocalState.prototype.resolveSubSelectedArray = function (field, result, execContext) {\n var _this = this;\n return Promise.all(result.map(function (item) {\n if (item === null) {\n return null;\n }\n if (Array.isArray(item)) {\n return _this.resolveSubSelectedArray(field, item, execContext);\n }\n if (field.selectionSet) {\n return _this.resolveSelectionSet(field.selectionSet, item, execContext);\n }\n }));\n };\n return LocalState;\n}());\nexport { LocalState };\n//# sourceMappingURL=LocalState.js.map","import {\n DocumentNode,\n OperationDefinitionNode,\n SelectionSetNode,\n SelectionNode,\n InlineFragmentNode,\n FragmentDefinitionNode,\n FieldNode,\n ASTNode,\n visit,\n BREAK,\n} from 'graphql';\nimport { invariant } from 'ts-invariant';\n\nimport { ApolloCache } from '../cache';\nimport {\n FragmentMap,\n StoreObject,\n argumentsObjectFromField,\n buildQueryFromSelectionSet,\n createFragmentMap,\n getFragmentDefinitions,\n getMainDefinition,\n hasDirectives,\n isField,\n isInlineFragment,\n mergeDeep,\n mergeDeepArray,\n removeClientSetsFromDocument,\n resultKeyNameFromField,\n shouldInclude,\n} from '../utilities';\nimport { ApolloClient } from './ApolloClient';\nimport { Resolvers, OperationVariables } from './types';\nimport { FetchResult } from '../link/core';\nimport { cacheSlot } from '../cache';\n\nexport type Resolver = (\n rootValue?: any,\n args?: any,\n context?: any,\n info?: {\n field: FieldNode;\n fragmentMap: FragmentMap;\n },\n) => any;\n\nexport type VariableMap = { [name: string]: any };\n\nexport type FragmentMatcher = (\n rootValue: any,\n typeCondition: string,\n context: any,\n) => boolean;\n\nexport type ExecContext = {\n fragmentMap: FragmentMap;\n context: any;\n variables: VariableMap;\n fragmentMatcher: FragmentMatcher;\n defaultOperationType: string;\n exportedVariables: Record;\n onlyRunForcedResolvers: boolean;\n};\n\nexport type LocalStateOptions = {\n cache: ApolloCache;\n client?: ApolloClient;\n resolvers?: Resolvers | Resolvers[];\n fragmentMatcher?: FragmentMatcher;\n};\n\nexport class LocalState {\n private cache: ApolloCache;\n private client: ApolloClient;\n private resolvers?: Resolvers;\n private fragmentMatcher: FragmentMatcher;\n\n constructor({\n cache,\n client,\n resolvers,\n fragmentMatcher,\n }: LocalStateOptions) {\n this.cache = cache;\n\n if (client) {\n this.client = client;\n }\n\n if (resolvers) {\n this.addResolvers(resolvers);\n }\n\n if (fragmentMatcher) {\n this.setFragmentMatcher(fragmentMatcher);\n }\n }\n\n public addResolvers(resolvers: Resolvers | Resolvers[]) {\n this.resolvers = this.resolvers || {};\n if (Array.isArray(resolvers)) {\n resolvers.forEach(resolverGroup => {\n this.resolvers = mergeDeep(this.resolvers, resolverGroup);\n });\n } else {\n this.resolvers = mergeDeep(this.resolvers, resolvers);\n }\n }\n\n public setResolvers(resolvers: Resolvers | Resolvers[]) {\n this.resolvers = {};\n this.addResolvers(resolvers);\n }\n\n public getResolvers() {\n return this.resolvers || {};\n }\n\n // Run local client resolvers against the incoming query and remote data.\n // Locally resolved field values are merged with the incoming remote data,\n // and returned. Note that locally resolved fields will overwrite\n // remote data using the same field name.\n public async runResolvers({\n document,\n remoteResult,\n context,\n variables,\n onlyRunForcedResolvers = false,\n }: {\n document: DocumentNode | null;\n remoteResult: FetchResult;\n context?: Record;\n variables?: Record;\n onlyRunForcedResolvers?: boolean;\n }): Promise> {\n if (document) {\n return this.resolveDocument(\n document,\n remoteResult.data,\n context,\n variables,\n this.fragmentMatcher,\n onlyRunForcedResolvers,\n ).then(localResult => ({\n ...remoteResult,\n data: localResult.result,\n }));\n }\n\n return remoteResult;\n }\n\n public setFragmentMatcher(fragmentMatcher: FragmentMatcher) {\n this.fragmentMatcher = fragmentMatcher;\n }\n\n public getFragmentMatcher(): FragmentMatcher {\n return this.fragmentMatcher;\n }\n\n // Client queries contain everything in the incoming document (if a @client\n // directive is found).\n public clientQuery(document: DocumentNode) {\n if (hasDirectives(['client'], document)) {\n if (this.resolvers) {\n return document;\n }\n }\n return null;\n }\n\n // Server queries are stripped of all @client based selection sets.\n public serverQuery(document: DocumentNode) {\n return removeClientSetsFromDocument(document);\n }\n\n public prepareContext(context?: Record) {\n const { cache } = this;\n return {\n ...context,\n cache,\n // Getting an entry's cache key is useful for local state resolvers.\n getCacheKey(obj: StoreObject) {\n return cache.identify(obj);\n },\n };\n }\n\n // To support `@client @export(as: \"someVar\")` syntax, we'll first resolve\n // @client @export fields locally, then pass the resolved values back to be\n // used alongside the original operation variables.\n public async addExportedVariables(\n document: DocumentNode,\n variables: OperationVariables = {},\n context = {},\n ) {\n if (document) {\n return this.resolveDocument(\n document,\n this.buildRootValueFromCache(document, variables) || {},\n this.prepareContext(context),\n variables,\n ).then(data => ({\n ...variables,\n ...data.exportedVariables,\n }));\n }\n\n return {\n ...variables,\n };\n }\n\n public shouldForceResolvers(document: ASTNode) {\n let forceResolvers = false;\n visit(document, {\n Directive: {\n enter(node) {\n if (node.name.value === 'client' && node.arguments) {\n forceResolvers = node.arguments.some(\n arg =>\n arg.name.value === 'always' &&\n arg.value.kind === 'BooleanValue' &&\n arg.value.value === true,\n );\n if (forceResolvers) {\n return BREAK;\n }\n }\n },\n },\n });\n return forceResolvers;\n }\n\n // Query the cache and return matching data.\n private buildRootValueFromCache(\n document: DocumentNode,\n variables?: Record,\n ) {\n return this.cache.diff({\n query: buildQueryFromSelectionSet(document),\n variables,\n returnPartialData: true,\n optimistic: false,\n }).result;\n }\n\n private async resolveDocument(\n document: DocumentNode,\n rootValue: TData,\n context: any = {},\n variables: VariableMap = {},\n fragmentMatcher: FragmentMatcher = () => true,\n onlyRunForcedResolvers: boolean = false,\n ) {\n const mainDefinition = getMainDefinition(document);\n const fragments = getFragmentDefinitions(document);\n const fragmentMap = createFragmentMap(fragments);\n\n const definitionOperation = (mainDefinition as OperationDefinitionNode)\n .operation;\n\n const defaultOperationType = definitionOperation\n ? definitionOperation.charAt(0).toUpperCase() +\n definitionOperation.slice(1)\n : 'Query';\n\n const { cache, client } = this;\n const execContext: ExecContext = {\n fragmentMap,\n context: {\n ...context,\n cache,\n client,\n },\n variables,\n fragmentMatcher,\n defaultOperationType,\n exportedVariables: {},\n onlyRunForcedResolvers,\n };\n\n return this.resolveSelectionSet(\n mainDefinition.selectionSet,\n rootValue,\n execContext,\n ).then(result => ({\n result,\n exportedVariables: execContext.exportedVariables,\n }));\n }\n\n private async resolveSelectionSet(\n selectionSet: SelectionSetNode,\n rootValue: TData,\n execContext: ExecContext,\n ) {\n const { fragmentMap, context, variables } = execContext;\n const resultsToMerge: TData[] = [rootValue];\n\n const execute = async (selection: SelectionNode): Promise => {\n if (!shouldInclude(selection, variables)) {\n // Skip this entirely.\n return;\n }\n\n if (isField(selection)) {\n return this.resolveField(selection, rootValue, execContext).then(\n fieldResult => {\n if (typeof fieldResult !== 'undefined') {\n resultsToMerge.push({\n [resultKeyNameFromField(selection)]: fieldResult,\n } as TData);\n }\n },\n );\n }\n\n let fragment: InlineFragmentNode | FragmentDefinitionNode;\n\n if (isInlineFragment(selection)) {\n fragment = selection;\n } else {\n // This is a named fragment.\n fragment = fragmentMap[selection.name.value];\n invariant(fragment, `No fragment named ${selection.name.value}`);\n }\n\n if (fragment && fragment.typeCondition) {\n const typeCondition = fragment.typeCondition.name.value;\n if (execContext.fragmentMatcher(rootValue, typeCondition, context)) {\n return this.resolveSelectionSet(\n fragment.selectionSet,\n rootValue,\n execContext,\n ).then(fragmentResult => {\n resultsToMerge.push(fragmentResult);\n });\n }\n }\n };\n\n return Promise.all(selectionSet.selections.map(execute)).then(function() {\n return mergeDeepArray(resultsToMerge);\n });\n }\n\n private async resolveField(\n field: FieldNode,\n rootValue: any,\n execContext: ExecContext,\n ): Promise {\n const { variables } = execContext;\n const fieldName = field.name.value;\n const aliasedFieldName = resultKeyNameFromField(field);\n const aliasUsed = fieldName !== aliasedFieldName;\n const defaultResult = rootValue[aliasedFieldName] || rootValue[fieldName];\n let resultPromise = Promise.resolve(defaultResult);\n\n // Usually all local resolvers are run when passing through here, but\n // if we've specifically identified that we only want to run forced\n // resolvers (that is, resolvers for fields marked with\n // `@client(always: true)`), then we'll skip running non-forced resolvers.\n if (\n !execContext.onlyRunForcedResolvers ||\n this.shouldForceResolvers(field)\n ) {\n const resolverType =\n rootValue.__typename || execContext.defaultOperationType;\n const resolverMap = this.resolvers && this.resolvers[resolverType];\n if (resolverMap) {\n const resolve = resolverMap[aliasUsed ? fieldName : aliasedFieldName];\n if (resolve) {\n resultPromise = Promise.resolve(\n // In case the resolve function accesses reactive variables,\n // set cacheSlot to the current cache instance.\n cacheSlot.withValue(this.cache, resolve, [\n rootValue,\n argumentsObjectFromField(field, variables),\n execContext.context,\n { field, fragmentMap: execContext.fragmentMap },\n ])\n );\n }\n }\n }\n\n return resultPromise.then((result = defaultResult) => {\n // If an @export directive is associated with the current field, store\n // the `as` export variable name and current result for later use.\n if (field.directives) {\n field.directives.forEach(directive => {\n if (directive.name.value === 'export' && directive.arguments) {\n directive.arguments.forEach(arg => {\n if (arg.name.value === 'as' && arg.value.kind === 'StringValue') {\n execContext.exportedVariables[arg.value.value] = result;\n }\n });\n }\n });\n }\n\n // Handle all scalar types here.\n if (!field.selectionSet) {\n return result;\n }\n\n // From here down, the field has a selection set, which means it's trying\n // to query a GraphQLObjectType.\n if (result == null) {\n // Basically any field in a GraphQL response can be null, or missing\n return result;\n }\n\n if (Array.isArray(result)) {\n return this.resolveSubSelectedArray(field, result, execContext);\n }\n\n // Returned value is an object, and the query has a sub-selection. Recurse.\n if (field.selectionSet) {\n return this.resolveSelectionSet(\n field.selectionSet,\n result,\n execContext,\n );\n }\n });\n }\n\n private resolveSubSelectedArray(\n field: FieldNode,\n result: any[],\n execContext: ExecContext,\n ): any {\n return Promise.all(\n result.map(item => {\n if (item === null) {\n return null;\n }\n\n // This is a nested array, recurse.\n if (Array.isArray(item)) {\n return this.resolveSubSelectedArray(field, item, execContext);\n }\n\n // This is an object, run the selection set on it.\n if (field.selectionSet) {\n return this.resolveSelectionSet(field.selectionSet, item, execContext);\n }\n }),\n );\n }\n}\n","export { ApolloCache } from \"./core/cache.js\";\nexport { Cache } from \"./core/types/Cache.js\";\nexport { MissingFieldError } from \"./core/types/common.js\";\nexport { isReference, makeReference, } from \"../utilities/index.js\";\nexport { InMemoryCache, } from \"./inmemory/inMemoryCache.js\";\nexport { makeVar, cacheSlot, } from \"./inmemory/reactiveVars.js\";\nexport { defaultDataIdFromObject, } from \"./inmemory/policies.js\";\nexport * from \"./inmemory/types.js\";\n//# sourceMappingURL=index.js.map","export { Transaction, ApolloCache } from './core/cache';\nexport { Cache } from './core/types/Cache';\nexport { DataProxy } from './core/types/DataProxy';\nexport { MissingFieldError } from './core/types/common';\n\nexport {\n Reference,\n isReference,\n makeReference,\n} from '../utilities';\n\nexport {\n InMemoryCache,\n InMemoryCacheConfig,\n} from './inmemory/inMemoryCache';\n\nexport {\n ReactiveVar,\n makeVar,\n cacheSlot,\n} from './inmemory/reactiveVars';\n\nexport {\n defaultDataIdFromObject,\n TypePolicies,\n TypePolicy,\n FieldPolicy,\n FieldReadFunction,\n FieldMergeFunction,\n FieldFunctionOptions,\n PossibleTypesMap,\n} from './inmemory/policies';\n\nexport * from './inmemory/types';\n","import { wrap } from 'optimism';\nimport { getFragmentQueryDocument, } from \"../../utilities/index.js\";\nvar ApolloCache = (function () {\n function ApolloCache() {\n this.getFragmentDoc = wrap(getFragmentQueryDocument);\n }\n ApolloCache.prototype.recordOptimisticTransaction = function (transaction, optimisticId) {\n this.performTransaction(transaction, optimisticId);\n };\n ApolloCache.prototype.transformDocument = function (document) {\n return document;\n };\n ApolloCache.prototype.identify = function (object) {\n return;\n };\n ApolloCache.prototype.gc = function () {\n return [];\n };\n ApolloCache.prototype.modify = function (options) {\n return false;\n };\n ApolloCache.prototype.transformForLink = function (document) {\n return document;\n };\n ApolloCache.prototype.readQuery = function (options, optimistic) {\n if (optimistic === void 0) { optimistic = !!options.optimistic; }\n return this.read({\n rootId: options.id || 'ROOT_QUERY',\n query: options.query,\n variables: options.variables,\n returnPartialData: options.returnPartialData,\n optimistic: optimistic,\n });\n };\n ApolloCache.prototype.readFragment = function (options, optimistic) {\n if (optimistic === void 0) { optimistic = !!options.optimistic; }\n return this.read({\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n variables: options.variables,\n rootId: options.id,\n returnPartialData: options.returnPartialData,\n optimistic: optimistic,\n });\n };\n ApolloCache.prototype.writeQuery = function (options) {\n return this.write({\n dataId: options.id || 'ROOT_QUERY',\n result: options.data,\n query: options.query,\n variables: options.variables,\n broadcast: options.broadcast,\n });\n };\n ApolloCache.prototype.writeFragment = function (options) {\n return this.write({\n dataId: options.id,\n result: options.data,\n variables: options.variables,\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n broadcast: options.broadcast,\n });\n };\n return ApolloCache;\n}());\nexport { ApolloCache };\n//# sourceMappingURL=cache.js.map","import { DocumentNode } from 'graphql';\nimport { wrap } from 'optimism';\n\nimport {\n StoreObject,\n Reference,\n getFragmentQueryDocument,\n} from '../../utilities';\nimport { DataProxy } from './types/DataProxy';\nimport { Cache } from './types/Cache';\n\nexport type Transaction = (c: ApolloCache) => void;\n\nexport abstract class ApolloCache implements DataProxy {\n // required to implement\n // core API\n public abstract read(\n query: Cache.ReadOptions,\n ): T | null;\n public abstract write(\n write: Cache.WriteOptions,\n ): Reference | undefined;\n public abstract diff(query: Cache.DiffOptions): Cache.DiffResult;\n public abstract watch(watch: Cache.WatchOptions): () => void;\n public abstract reset(): Promise;\n\n // Remove whole objects from the cache by passing just options.id, or\n // specific fields by passing options.field and/or options.args. If no\n // options.args are provided, all fields matching options.field (even\n // those with arguments) will be removed. Returns true iff any data was\n // removed from the cache.\n public abstract evict(options: Cache.EvictOptions): boolean;\n\n // intializer / offline / ssr API\n /**\n * Replaces existing state in the cache (if any) with the values expressed by\n * `serializedState`.\n *\n * Called when hydrating a cache (server side rendering, or offline storage),\n * and also (potentially) during hot reloads.\n */\n public abstract restore(\n serializedState: TSerialized,\n ): ApolloCache;\n\n /**\n * Exposes the cache's complete state, in a serializable format for later restoration.\n */\n public abstract extract(optimistic?: boolean): TSerialized;\n\n // Optimistic API\n\n public abstract removeOptimistic(id: string): void;\n\n // Transactional API\n\n public abstract performTransaction(\n transaction: Transaction,\n // Although subclasses may implement recordOptimisticTransaction\n // however they choose, the default implementation simply calls\n // performTransaction with a string as the second argument, allowing\n // performTransaction to handle both optimistic and non-optimistic\n // (broadcast-batching) transactions. Passing null for optimisticId is\n // also allowed, and indicates that performTransaction should apply\n // the transaction non-optimistically (ignoring optimistic data).\n optimisticId?: string | null,\n ): void;\n\n public recordOptimisticTransaction(\n transaction: Transaction,\n optimisticId: string,\n ) {\n this.performTransaction(transaction, optimisticId);\n }\n\n // Optional API\n\n public transformDocument(document: DocumentNode): DocumentNode {\n return document;\n }\n\n public identify(object: StoreObject | Reference): string | undefined {\n return;\n }\n\n public gc(): string[] {\n return [];\n }\n\n public modify(options: Cache.ModifyOptions): boolean {\n return false;\n }\n\n // Experimental API\n\n public transformForLink(document: DocumentNode): DocumentNode {\n return document;\n }\n\n // DataProxy API\n /**\n *\n * @param options\n * @param optimistic\n */\n public readQuery(\n options: Cache.ReadQueryOptions,\n optimistic = !!options.optimistic,\n ): QueryType | null {\n return this.read({\n rootId: options.id || 'ROOT_QUERY',\n query: options.query,\n variables: options.variables,\n returnPartialData: options.returnPartialData,\n optimistic,\n });\n }\n\n // Make sure we compute the same (===) fragment query document every\n // time we receive the same fragment in readFragment.\n private getFragmentDoc = wrap(getFragmentQueryDocument);\n\n public readFragment(\n options: Cache.ReadFragmentOptions,\n optimistic = !!options.optimistic,\n ): FragmentType | null {\n return this.read({\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n variables: options.variables,\n rootId: options.id,\n returnPartialData: options.returnPartialData,\n optimistic,\n });\n }\n\n public writeQuery(\n options: Cache.WriteQueryOptions,\n ): Reference | undefined {\n return this.write({\n dataId: options.id || 'ROOT_QUERY',\n result: options.data,\n query: options.query,\n variables: options.variables,\n broadcast: options.broadcast,\n });\n }\n\n public writeFragment(\n options: Cache.WriteFragmentOptions,\n ): Reference | undefined {\n return this.write({\n dataId: options.id,\n result: options.data,\n variables: options.variables,\n query: this.getFragmentDoc(options.fragment, options.fragmentName),\n broadcast: options.broadcast,\n });\n }\n}\n","import { Trie } from '@wry/trie';\nexport { Trie as KeyTrie } from '@wry/trie';\nimport { Slot } from '@wry/context';\nexport { asyncFromGen, bind as bindContext, noContext, setTimeout } from '@wry/context';\n\nfunction defaultDispose() { }\r\nvar Cache = /** @class */ (function () {\r\n function Cache(max, dispose) {\r\n if (max === void 0) { max = Infinity; }\r\n if (dispose === void 0) { dispose = defaultDispose; }\r\n this.max = max;\r\n this.dispose = dispose;\r\n this.map = new Map();\r\n this.newest = null;\r\n this.oldest = null;\r\n }\r\n Cache.prototype.has = function (key) {\r\n return this.map.has(key);\r\n };\r\n Cache.prototype.get = function (key) {\r\n var node = this.getNode(key);\r\n return node && node.value;\r\n };\r\n Cache.prototype.getNode = function (key) {\r\n var node = this.map.get(key);\r\n if (node && node !== this.newest) {\r\n var older = node.older, newer = node.newer;\r\n if (newer) {\r\n newer.older = older;\r\n }\r\n if (older) {\r\n older.newer = newer;\r\n }\r\n node.older = this.newest;\r\n node.older.newer = node;\r\n node.newer = null;\r\n this.newest = node;\r\n if (node === this.oldest) {\r\n this.oldest = newer;\r\n }\r\n }\r\n return node;\r\n };\r\n Cache.prototype.set = function (key, value) {\r\n var node = this.getNode(key);\r\n if (node) {\r\n return node.value = value;\r\n }\r\n node = {\r\n key: key,\r\n value: value,\r\n newer: null,\r\n older: this.newest\r\n };\r\n if (this.newest) {\r\n this.newest.newer = node;\r\n }\r\n this.newest = node;\r\n this.oldest = this.oldest || node;\r\n this.map.set(key, node);\r\n return node.value;\r\n };\r\n Cache.prototype.clean = function () {\r\n while (this.oldest && this.map.size > this.max) {\r\n this.delete(this.oldest.key);\r\n }\r\n };\r\n Cache.prototype.delete = function (key) {\r\n var node = this.map.get(key);\r\n if (node) {\r\n if (node === this.newest) {\r\n this.newest = node.older;\r\n }\r\n if (node === this.oldest) {\r\n this.oldest = node.newer;\r\n }\r\n if (node.newer) {\r\n node.newer.older = node.older;\r\n }\r\n if (node.older) {\r\n node.older.newer = node.newer;\r\n }\r\n this.map.delete(key);\r\n this.dispose(node.value, key);\r\n return true;\r\n }\r\n return false;\r\n };\r\n return Cache;\r\n}());\n\nvar parentEntrySlot = new Slot();\n\nfunction maybeUnsubscribe(entryOrDep) {\r\n var unsubscribe = entryOrDep.unsubscribe;\r\n if (typeof unsubscribe === \"function\") {\r\n entryOrDep.unsubscribe = void 0;\r\n unsubscribe();\r\n }\r\n}\n\nvar emptySetPool = [];\r\nvar POOL_TARGET_SIZE = 100;\r\n// Since this package might be used browsers, we should avoid using the\r\n// Node built-in assert module.\r\nfunction assert(condition, optionalMessage) {\r\n if (!condition) {\r\n throw new Error(optionalMessage || \"assertion failure\");\r\n }\r\n}\r\nfunction valueIs(a, b) {\r\n var len = a.length;\r\n return (\r\n // Unknown values are not equal to each other.\r\n len > 0 &&\r\n // Both values must be ordinary (or both exceptional) to be equal.\r\n len === b.length &&\r\n // The underlying value or exception must be the same.\r\n a[len - 1] === b[len - 1]);\r\n}\r\nfunction valueGet(value) {\r\n switch (value.length) {\r\n case 0: throw new Error(\"unknown value\");\r\n case 1: return value[0];\r\n case 2: throw value[1];\r\n }\r\n}\r\nfunction valueCopy(value) {\r\n return value.slice(0);\r\n}\r\nvar Entry = /** @class */ (function () {\r\n function Entry(fn) {\r\n this.fn = fn;\r\n this.parents = new Set();\r\n this.childValues = new Map();\r\n // When this Entry has children that are dirty, this property becomes\r\n // a Set containing other Entry objects, borrowed from emptySetPool.\r\n // When the set becomes empty, it gets recycled back to emptySetPool.\r\n this.dirtyChildren = null;\r\n this.dirty = true;\r\n this.recomputing = false;\r\n this.value = [];\r\n this.deps = null;\r\n ++Entry.count;\r\n }\r\n Entry.prototype.peek = function () {\r\n if (this.value.length === 1 && !mightBeDirty(this)) {\r\n return this.value[0];\r\n }\r\n };\r\n // This is the most important method of the Entry API, because it\r\n // determines whether the cached this.value can be returned immediately,\r\n // or must be recomputed. The overall performance of the caching system\r\n // depends on the truth of the following observations: (1) this.dirty is\r\n // usually false, (2) this.dirtyChildren is usually null/empty, and thus\r\n // (3) valueGet(this.value) is usually returned without recomputation.\r\n Entry.prototype.recompute = function (args) {\r\n assert(!this.recomputing, \"already recomputing\");\r\n rememberParent(this);\r\n return mightBeDirty(this)\r\n ? reallyRecompute(this, args)\r\n : valueGet(this.value);\r\n };\r\n Entry.prototype.setDirty = function () {\r\n if (this.dirty)\r\n return;\r\n this.dirty = true;\r\n this.value.length = 0;\r\n reportDirty(this);\r\n forgetChildren(this);\r\n // We can go ahead and unsubscribe here, since any further dirty\r\n // notifications we receive will be redundant, and unsubscribing may\r\n // free up some resources, e.g. file watchers.\r\n maybeUnsubscribe(this);\r\n };\r\n Entry.prototype.dispose = function () {\r\n var _this = this;\r\n forgetChildren(this);\r\n maybeUnsubscribe(this);\r\n // Because this entry has been kicked out of the cache (in index.js),\r\n // we've lost the ability to find out if/when this entry becomes dirty,\r\n // whether that happens through a subscription, because of a direct call\r\n // to entry.setDirty(), or because one of its children becomes dirty.\r\n // Because of this loss of future information, we have to assume the\r\n // worst (that this entry might have become dirty very soon), so we must\r\n // immediately mark this entry's parents as dirty. Normally we could\r\n // just call entry.setDirty() rather than calling parent.setDirty() for\r\n // each parent, but that would leave this entry in parent.childValues\r\n // and parent.dirtyChildren, which would prevent the child from being\r\n // truly forgotten.\r\n this.parents.forEach(function (parent) {\r\n parent.setDirty();\r\n forgetChild(parent, _this);\r\n });\r\n };\r\n Entry.prototype.dependOn = function (dep) {\r\n dep.add(this);\r\n if (!this.deps) {\r\n this.deps = emptySetPool.pop() || new Set();\r\n }\r\n this.deps.add(dep);\r\n };\r\n Entry.prototype.forgetDeps = function () {\r\n var _this = this;\r\n if (this.deps) {\r\n this.deps.forEach(function (dep) { return dep.delete(_this); });\r\n this.deps.clear();\r\n emptySetPool.push(this.deps);\r\n this.deps = null;\r\n }\r\n };\r\n Entry.count = 0;\r\n return Entry;\r\n}());\r\nfunction rememberParent(child) {\r\n var parent = parentEntrySlot.getValue();\r\n if (parent) {\r\n child.parents.add(parent);\r\n if (!parent.childValues.has(child)) {\r\n parent.childValues.set(child, []);\r\n }\r\n if (mightBeDirty(child)) {\r\n reportDirtyChild(parent, child);\r\n }\r\n else {\r\n reportCleanChild(parent, child);\r\n }\r\n return parent;\r\n }\r\n}\r\nfunction reallyRecompute(entry, args) {\r\n forgetChildren(entry);\r\n // Set entry as the parent entry while calling recomputeNewValue(entry).\r\n parentEntrySlot.withValue(entry, recomputeNewValue, [entry, args]);\r\n if (maybeSubscribe(entry, args)) {\r\n // If we successfully recomputed entry.value and did not fail to\r\n // (re)subscribe, then this Entry is no longer explicitly dirty.\r\n setClean(entry);\r\n }\r\n return valueGet(entry.value);\r\n}\r\nfunction recomputeNewValue(entry, args) {\r\n entry.recomputing = true;\r\n // Set entry.value as unknown.\r\n entry.value.length = 0;\r\n try {\r\n // If entry.fn succeeds, entry.value will become a normal Value.\r\n entry.value[0] = entry.fn.apply(null, args);\r\n }\r\n catch (e) {\r\n // If entry.fn throws, entry.value will become exceptional.\r\n entry.value[1] = e;\r\n }\r\n // Either way, this line is always reached.\r\n entry.recomputing = false;\r\n}\r\nfunction mightBeDirty(entry) {\r\n return entry.dirty || !!(entry.dirtyChildren && entry.dirtyChildren.size);\r\n}\r\nfunction setClean(entry) {\r\n entry.dirty = false;\r\n if (mightBeDirty(entry)) {\r\n // This Entry may still have dirty children, in which case we can't\r\n // let our parents know we're clean just yet.\r\n return;\r\n }\r\n reportClean(entry);\r\n}\r\nfunction reportDirty(child) {\r\n child.parents.forEach(function (parent) { return reportDirtyChild(parent, child); });\r\n}\r\nfunction reportClean(child) {\r\n child.parents.forEach(function (parent) { return reportCleanChild(parent, child); });\r\n}\r\n// Let a parent Entry know that one of its children may be dirty.\r\nfunction reportDirtyChild(parent, child) {\r\n // Must have called rememberParent(child) before calling\r\n // reportDirtyChild(parent, child).\r\n assert(parent.childValues.has(child));\r\n assert(mightBeDirty(child));\r\n if (!parent.dirtyChildren) {\r\n parent.dirtyChildren = emptySetPool.pop() || new Set;\r\n }\r\n else if (parent.dirtyChildren.has(child)) {\r\n // If we already know this child is dirty, then we must have already\r\n // informed our own parents that we are dirty, so we can terminate\r\n // the recursion early.\r\n return;\r\n }\r\n parent.dirtyChildren.add(child);\r\n reportDirty(parent);\r\n}\r\n// Let a parent Entry know that one of its children is no longer dirty.\r\nfunction reportCleanChild(parent, child) {\r\n // Must have called rememberChild(child) before calling\r\n // reportCleanChild(parent, child).\r\n assert(parent.childValues.has(child));\r\n assert(!mightBeDirty(child));\r\n var childValue = parent.childValues.get(child);\r\n if (childValue.length === 0) {\r\n parent.childValues.set(child, valueCopy(child.value));\r\n }\r\n else if (!valueIs(childValue, child.value)) {\r\n parent.setDirty();\r\n }\r\n removeDirtyChild(parent, child);\r\n if (mightBeDirty(parent)) {\r\n return;\r\n }\r\n reportClean(parent);\r\n}\r\nfunction removeDirtyChild(parent, child) {\r\n var dc = parent.dirtyChildren;\r\n if (dc) {\r\n dc.delete(child);\r\n if (dc.size === 0) {\r\n if (emptySetPool.length < POOL_TARGET_SIZE) {\r\n emptySetPool.push(dc);\r\n }\r\n parent.dirtyChildren = null;\r\n }\r\n }\r\n}\r\n// Removes all children from this entry and returns an array of the\r\n// removed children.\r\nfunction forgetChildren(parent) {\r\n if (parent.childValues.size > 0) {\r\n parent.childValues.forEach(function (_value, child) {\r\n forgetChild(parent, child);\r\n });\r\n }\r\n // Remove this parent Entry from any sets to which it was added by the\r\n // addToSet method.\r\n parent.forgetDeps();\r\n // After we forget all our children, this.dirtyChildren must be empty\r\n // and therefore must have been reset to null.\r\n assert(parent.dirtyChildren === null);\r\n}\r\nfunction forgetChild(parent, child) {\r\n child.parents.delete(parent);\r\n parent.childValues.delete(child);\r\n removeDirtyChild(parent, child);\r\n}\r\nfunction maybeSubscribe(entry, args) {\r\n if (typeof entry.subscribe === \"function\") {\r\n try {\r\n maybeUnsubscribe(entry); // Prevent double subscriptions.\r\n entry.unsubscribe = entry.subscribe.apply(null, args);\r\n }\r\n catch (e) {\r\n // If this Entry has a subscribe function and it threw an exception\r\n // (or an unsubscribe function it previously returned now throws),\r\n // return false to indicate that we were not able to subscribe (or\r\n // unsubscribe), and this Entry should remain dirty.\r\n entry.setDirty();\r\n return false;\r\n }\r\n }\r\n // Returning true indicates either that there was no entry.subscribe\r\n // function or that it succeeded.\r\n return true;\r\n}\n\nfunction dep(options) {\r\n var depsByKey = new Map();\r\n var subscribe = options && options.subscribe;\r\n function depend(key) {\r\n var parent = parentEntrySlot.getValue();\r\n if (parent) {\r\n var dep_1 = depsByKey.get(key);\r\n if (!dep_1) {\r\n depsByKey.set(key, dep_1 = new Set);\r\n }\r\n parent.dependOn(dep_1);\r\n if (typeof subscribe === \"function\") {\r\n maybeUnsubscribe(dep_1);\r\n dep_1.unsubscribe = subscribe(key);\r\n }\r\n }\r\n }\r\n depend.dirty = function dirty(key) {\r\n var dep = depsByKey.get(key);\r\n if (dep) {\r\n dep.forEach(function (entry) { return entry.setDirty(); });\r\n depsByKey.delete(key);\r\n maybeUnsubscribe(dep);\r\n }\r\n };\r\n return depend;\r\n}\n\n// The defaultMakeCacheKey function is remarkably powerful, because it gives\r\n// a unique object for any shallow-identical list of arguments. If you need\r\n// to implement a custom makeCacheKey function, you may find it helpful to\r\n// delegate the final work to defaultMakeCacheKey, which is why we export it\r\n// here. However, you may want to avoid defaultMakeCacheKey if your runtime\r\n// does not support WeakMap, or you have the ability to return a string key.\r\n// In those cases, just write your own custom makeCacheKey functions.\r\nvar keyTrie = new Trie(typeof WeakMap === \"function\");\r\nfunction defaultMakeCacheKey() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n return keyTrie.lookupArray(args);\r\n}\r\nvar caches = new Set();\r\nfunction wrap(originalFunction, options) {\r\n if (options === void 0) { options = Object.create(null); }\r\n var cache = new Cache(options.max || Math.pow(2, 16), function (entry) { return entry.dispose(); });\r\n var keyArgs = options.keyArgs;\r\n var makeCacheKey = options.makeCacheKey || defaultMakeCacheKey;\r\n function optimistic() {\r\n var key = makeCacheKey.apply(null, keyArgs ? keyArgs.apply(null, arguments) : arguments);\r\n if (key === void 0) {\r\n return originalFunction.apply(null, arguments);\r\n }\r\n var entry = cache.get(key);\r\n if (!entry) {\r\n cache.set(key, entry = new Entry(originalFunction));\r\n entry.subscribe = options.subscribe;\r\n }\r\n var value = entry.recompute(Array.prototype.slice.call(arguments));\r\n // Move this entry to the front of the least-recently used queue,\r\n // since we just finished computing its value.\r\n cache.set(key, entry);\r\n caches.add(cache);\r\n // Clean up any excess entries in the cache, but only if there is no\r\n // active parent entry, meaning we're not in the middle of a larger\r\n // computation that might be flummoxed by the cleaning.\r\n if (!parentEntrySlot.hasValue()) {\r\n caches.forEach(function (cache) { return cache.clean(); });\r\n caches.clear();\r\n }\r\n return value;\r\n }\r\n function lookup() {\r\n var key = makeCacheKey.apply(null, arguments);\r\n if (key !== void 0) {\r\n return cache.get(key);\r\n }\r\n }\r\n optimistic.dirty = function () {\r\n var entry = lookup.apply(null, arguments);\r\n if (entry) {\r\n entry.setDirty();\r\n }\r\n };\r\n optimistic.peek = function () {\r\n var entry = lookup.apply(null, arguments);\r\n if (entry) {\r\n return entry.peek();\r\n }\r\n };\r\n optimistic.forget = function () {\r\n var key = makeCacheKey.apply(null, arguments);\r\n return key !== void 0 && cache.delete(key);\r\n };\r\n return optimistic;\r\n}\n\nexport { defaultMakeCacheKey, dep, wrap };\n//# sourceMappingURL=bundle.esm.js.map\n","interface Node {\n key: K;\n value: V;\n newer: Node | null;\n older: Node | null;\n}\n\nfunction defaultDispose() {}\n\nexport class Cache {\n private map = new Map>();\n private newest: Node | null = null;\n private oldest: Node | null = null;\n\n constructor(\n private max = Infinity,\n public dispose: (value: V, key: K) => void = defaultDispose,\n ) {}\n\n public has(key: K): boolean {\n return this.map.has(key);\n }\n\n public get(key: K): V | undefined {\n const node = this.getNode(key);\n return node && node.value;\n }\n\n private getNode(key: K): Node | undefined {\n const node = this.map.get(key);\n\n if (node && node !== this.newest) {\n const { older, newer } = node;\n\n if (newer) {\n newer.older = older;\n }\n\n if (older) {\n older.newer = newer;\n }\n\n node.older = this.newest;\n node.older!.newer = node;\n\n node.newer = null;\n this.newest = node;\n\n if (node === this.oldest) {\n this.oldest = newer;\n }\n }\n\n return node;\n }\n\n public set(key: K, value: V): V {\n let node = this.getNode(key);\n if (node) {\n return node.value = value;\n }\n\n node = {\n key,\n value,\n newer: null,\n older: this.newest\n };\n\n if (this.newest) {\n this.newest.newer = node;\n }\n\n this.newest = node;\n this.oldest = this.oldest || node;\n\n this.map.set(key, node);\n\n return node.value;\n }\n\n public clean() {\n while (this.oldest && this.map.size > this.max) {\n this.delete(this.oldest.key);\n }\n }\n\n public delete(key: K): boolean {\n const node = this.map.get(key);\n if (node) {\n if (node === this.newest) {\n this.newest = node.older;\n }\n\n if (node === this.oldest) {\n this.oldest = node.newer;\n }\n\n if (node.newer) {\n node.newer.older = node.older;\n }\n\n if (node.older) {\n node.older.newer = node.newer;\n }\n\n this.map.delete(key);\n this.dispose(node.value, key);\n\n return true;\n }\n\n return false;\n }\n}\n","import { AnyEntry } from \"./entry\";\nimport { Slot } from \"@wry/context\";\n\nexport const parentEntrySlot = new Slot();\n\nexport {\n bind as bindContext,\n noContext,\n setTimeout,\n asyncFromGen,\n} from \"@wry/context\";\n","export type Unsubscribable = {\n unsubscribe?: void | (() => any);\n}\n\nexport function maybeUnsubscribe(entryOrDep: Unsubscribable) {\n const { unsubscribe } = entryOrDep;\n if (typeof unsubscribe === \"function\") {\n entryOrDep.unsubscribe = void 0;\n unsubscribe();\n }\n}\n","import { parentEntrySlot } from \"./context\";\nimport { OptimisticWrapOptions } from \"./index\";\nimport { Dep } from \"./dep\";\nimport { maybeUnsubscribe, Unsubscribable } from \"./helpers\";\n\nconst emptySetPool: Set[] = [];\nconst POOL_TARGET_SIZE = 100;\n\n// Since this package might be used browsers, we should avoid using the\n// Node built-in assert module.\nfunction assert(condition: any, optionalMessage?: string) {\n if (! condition) {\n throw new Error(optionalMessage || \"assertion failure\");\n }\n}\n\n// Since exceptions are cached just like normal values, we need an efficient\n// way of representing unknown, ordinary, and exceptional values.\ntype Value =\n | [] // unknown\n | [T] // known value\n | [void, any]; // known exception\n\nfunction valueIs(a: Value, b: Value) {\n const len = a.length;\n return (\n // Unknown values are not equal to each other.\n len > 0 &&\n // Both values must be ordinary (or both exceptional) to be equal.\n len === b.length &&\n // The underlying value or exception must be the same.\n a[len - 1] === b[len - 1]\n );\n}\n\nfunction valueGet(value: Value): T {\n switch (value.length) {\n case 0: throw new Error(\"unknown value\");\n case 1: return value[0];\n case 2: throw value[1];\n }\n}\n\nfunction valueCopy(value: Value): Value {\n return value.slice(0) as Value;\n}\n\nexport type AnyEntry = Entry;\n\nexport class Entry {\n public static count = 0;\n\n public subscribe: OptimisticWrapOptions[\"subscribe\"];\n public unsubscribe: Unsubscribable[\"unsubscribe\"];\n\n public readonly parents = new Set();\n public readonly childValues = new Map>();\n\n // When this Entry has children that are dirty, this property becomes\n // a Set containing other Entry objects, borrowed from emptySetPool.\n // When the set becomes empty, it gets recycled back to emptySetPool.\n public dirtyChildren: Set | null = null;\n\n public dirty = true;\n public recomputing = false;\n public readonly value: Value = [];\n\n constructor(\n public readonly fn: (...args: TArgs) => TValue,\n ) {\n ++Entry.count;\n }\n\n public peek(): TValue | undefined {\n if (this.value.length === 1 && !mightBeDirty(this)) {\n return this.value[0];\n }\n }\n\n // This is the most important method of the Entry API, because it\n // determines whether the cached this.value can be returned immediately,\n // or must be recomputed. The overall performance of the caching system\n // depends on the truth of the following observations: (1) this.dirty is\n // usually false, (2) this.dirtyChildren is usually null/empty, and thus\n // (3) valueGet(this.value) is usually returned without recomputation.\n public recompute(args: TArgs): TValue {\n assert(! this.recomputing, \"already recomputing\");\n rememberParent(this);\n return mightBeDirty(this)\n ? reallyRecompute(this, args)\n : valueGet(this.value);\n }\n\n public setDirty() {\n if (this.dirty) return;\n this.dirty = true;\n this.value.length = 0;\n reportDirty(this);\n forgetChildren(this);\n // We can go ahead and unsubscribe here, since any further dirty\n // notifications we receive will be redundant, and unsubscribing may\n // free up some resources, e.g. file watchers.\n maybeUnsubscribe(this);\n }\n\n public dispose() {\n forgetChildren(this);\n maybeUnsubscribe(this);\n\n // Because this entry has been kicked out of the cache (in index.js),\n // we've lost the ability to find out if/when this entry becomes dirty,\n // whether that happens through a subscription, because of a direct call\n // to entry.setDirty(), or because one of its children becomes dirty.\n // Because of this loss of future information, we have to assume the\n // worst (that this entry might have become dirty very soon), so we must\n // immediately mark this entry's parents as dirty. Normally we could\n // just call entry.setDirty() rather than calling parent.setDirty() for\n // each parent, but that would leave this entry in parent.childValues\n // and parent.dirtyChildren, which would prevent the child from being\n // truly forgotten.\n this.parents.forEach(parent => {\n parent.setDirty();\n forgetChild(parent, this);\n });\n }\n\n private deps: Set> | null = null;\n\n public dependOn(dep: Dep) {\n dep.add(this);\n if (! this.deps) {\n this.deps = emptySetPool.pop() || new Set>();\n }\n this.deps.add(dep);\n }\n\n public forgetDeps() {\n if (this.deps) {\n this.deps.forEach(dep => dep.delete(this));\n this.deps.clear();\n emptySetPool.push(this.deps);\n this.deps = null;\n }\n }\n}\n\nfunction rememberParent(child: AnyEntry) {\n const parent = parentEntrySlot.getValue();\n if (parent) {\n child.parents.add(parent);\n\n if (! parent.childValues.has(child)) {\n parent.childValues.set(child, []);\n }\n\n if (mightBeDirty(child)) {\n reportDirtyChild(parent, child);\n } else {\n reportCleanChild(parent, child);\n }\n\n return parent;\n }\n}\n\nfunction reallyRecompute(entry: AnyEntry, args: any[]) {\n forgetChildren(entry);\n\n // Set entry as the parent entry while calling recomputeNewValue(entry).\n parentEntrySlot.withValue(entry, recomputeNewValue, [entry, args]);\n\n if (maybeSubscribe(entry, args)) {\n // If we successfully recomputed entry.value and did not fail to\n // (re)subscribe, then this Entry is no longer explicitly dirty.\n setClean(entry);\n }\n\n return valueGet(entry.value);\n}\n\nfunction recomputeNewValue(entry: AnyEntry, args: any[]) {\n entry.recomputing = true;\n // Set entry.value as unknown.\n entry.value.length = 0;\n try {\n // If entry.fn succeeds, entry.value will become a normal Value.\n entry.value[0] = entry.fn.apply(null, args);\n } catch (e) {\n // If entry.fn throws, entry.value will become exceptional.\n entry.value[1] = e;\n }\n // Either way, this line is always reached.\n entry.recomputing = false;\n}\n\nfunction mightBeDirty(entry: AnyEntry) {\n return entry.dirty || !!(entry.dirtyChildren && entry.dirtyChildren.size);\n}\n\nfunction setClean(entry: AnyEntry) {\n entry.dirty = false;\n\n if (mightBeDirty(entry)) {\n // This Entry may still have dirty children, in which case we can't\n // let our parents know we're clean just yet.\n return;\n }\n\n reportClean(entry);\n}\n\nfunction reportDirty(child: AnyEntry) {\n child.parents.forEach(parent => reportDirtyChild(parent, child));\n}\n\nfunction reportClean(child: AnyEntry) {\n child.parents.forEach(parent => reportCleanChild(parent, child));\n}\n\n// Let a parent Entry know that one of its children may be dirty.\nfunction reportDirtyChild(parent: AnyEntry, child: AnyEntry) {\n // Must have called rememberParent(child) before calling\n // reportDirtyChild(parent, child).\n assert(parent.childValues.has(child));\n assert(mightBeDirty(child));\n\n if (! parent.dirtyChildren) {\n parent.dirtyChildren = emptySetPool.pop() || new Set;\n\n } else if (parent.dirtyChildren.has(child)) {\n // If we already know this child is dirty, then we must have already\n // informed our own parents that we are dirty, so we can terminate\n // the recursion early.\n return;\n }\n\n parent.dirtyChildren.add(child);\n reportDirty(parent);\n}\n\n// Let a parent Entry know that one of its children is no longer dirty.\nfunction reportCleanChild(parent: AnyEntry, child: AnyEntry) {\n // Must have called rememberChild(child) before calling\n // reportCleanChild(parent, child).\n assert(parent.childValues.has(child));\n assert(! mightBeDirty(child));\n\n const childValue = parent.childValues.get(child)!;\n if (childValue.length === 0) {\n parent.childValues.set(child, valueCopy(child.value));\n } else if (! valueIs(childValue, child.value)) {\n parent.setDirty();\n }\n\n removeDirtyChild(parent, child);\n\n if (mightBeDirty(parent)) {\n return;\n }\n\n reportClean(parent);\n}\n\nfunction removeDirtyChild(parent: AnyEntry, child: AnyEntry) {\n const dc = parent.dirtyChildren;\n if (dc) {\n dc.delete(child);\n if (dc.size === 0) {\n if (emptySetPool.length < POOL_TARGET_SIZE) {\n emptySetPool.push(dc);\n }\n parent.dirtyChildren = null;\n }\n }\n}\n\n// Removes all children from this entry and returns an array of the\n// removed children.\nfunction forgetChildren(parent: AnyEntry) {\n if (parent.childValues.size > 0) {\n parent.childValues.forEach((_value, child) => {\n forgetChild(parent, child);\n });\n }\n\n // Remove this parent Entry from any sets to which it was added by the\n // addToSet method.\n parent.forgetDeps();\n\n // After we forget all our children, this.dirtyChildren must be empty\n // and therefore must have been reset to null.\n assert(parent.dirtyChildren === null);\n}\n\nfunction forgetChild(parent: AnyEntry, child: AnyEntry) {\n child.parents.delete(parent);\n parent.childValues.delete(child);\n removeDirtyChild(parent, child);\n}\n\nfunction maybeSubscribe(entry: AnyEntry, args: any[]) {\n if (typeof entry.subscribe === \"function\") {\n try {\n maybeUnsubscribe(entry); // Prevent double subscriptions.\n entry.unsubscribe = entry.subscribe.apply(null, args);\n } catch (e) {\n // If this Entry has a subscribe function and it threw an exception\n // (or an unsubscribe function it previously returned now throws),\n // return false to indicate that we were not able to subscribe (or\n // unsubscribe), and this Entry should remain dirty.\n entry.setDirty();\n return false;\n }\n }\n\n // Returning true indicates either that there was no entry.subscribe\n // function or that it succeeded.\n return true;\n}\n","import { AnyEntry } from \"./entry\";\nimport { OptimisticWrapOptions } from \"./index\";\nimport { parentEntrySlot } from \"./context\";\nimport { Unsubscribable, maybeUnsubscribe } from \"./helpers\";\n\nexport type OptimisticDependencyFunction =\n ((key: TKey) => void) & {\n dirty: (key: TKey) => void;\n };\n\nexport type Dep = Set & {\n subscribe: OptimisticWrapOptions<[TKey]>[\"subscribe\"];\n} & Unsubscribable;\n\nexport function dep(options?: {\n subscribe: Dep[\"subscribe\"];\n}) {\n const depsByKey = new Map>();\n const subscribe = options && options.subscribe;\n\n function depend(key: TKey) {\n const parent = parentEntrySlot.getValue();\n if (parent) {\n let dep = depsByKey.get(key);\n if (!dep) {\n depsByKey.set(key, dep = new Set as Dep);\n }\n parent.dependOn(dep);\n if (typeof subscribe === \"function\") {\n maybeUnsubscribe(dep);\n dep.unsubscribe = subscribe(key);\n }\n }\n }\n\n depend.dirty = function dirty(key: TKey) {\n const dep = depsByKey.get(key);\n if (dep) {\n dep.forEach(entry => entry.setDirty());\n depsByKey.delete(key);\n maybeUnsubscribe(dep);\n }\n };\n\n return depend as OptimisticDependencyFunction;\n}\n","import { Trie } from \"@wry/trie\";\n\nimport { Cache } from \"./cache\";\nimport { Entry, AnyEntry } from \"./entry\";\nimport { parentEntrySlot } from \"./context\";\n\n// These helper functions are important for making optimism work with\n// asynchronous code. In order to register parent-child dependencies,\n// optimism needs to know about any currently active parent computations.\n// In ordinary synchronous code, the parent context is implicit in the\n// execution stack, but asynchronous code requires some extra guidance in\n// order to propagate context from one async task segment to the next.\nexport {\n bindContext,\n noContext,\n setTimeout,\n asyncFromGen,\n} from \"./context\";\n\n// A lighter-weight dependency, similar to OptimisticWrapperFunction, except\n// with only one argument, no makeCacheKey, no wrapped function to recompute,\n// and no result value. Useful for representing dependency leaves in the graph\n// of computation. Subscriptions are supported.\nexport { dep, OptimisticDependencyFunction } from \"./dep\";\n\n// Since the Cache uses a Map internally, any value or object reference can\n// be safely used as a key, though common types include object and string.\nexport type TCacheKey = any;\n\n// The defaultMakeCacheKey function is remarkably powerful, because it gives\n// a unique object for any shallow-identical list of arguments. If you need\n// to implement a custom makeCacheKey function, you may find it helpful to\n// delegate the final work to defaultMakeCacheKey, which is why we export it\n// here. However, you may want to avoid defaultMakeCacheKey if your runtime\n// does not support WeakMap, or you have the ability to return a string key.\n// In those cases, just write your own custom makeCacheKey functions.\nconst keyTrie = new Trie(typeof WeakMap === \"function\");\nexport function defaultMakeCacheKey(...args: any[]) {\n return keyTrie.lookupArray(args);\n}\n\n// If you're paranoid about memory leaks, or you want to avoid using WeakMap\n// under the hood, but you still need the behavior of defaultMakeCacheKey,\n// import this constructor to create your own tries.\nexport { Trie as KeyTrie }\n\nexport type OptimisticWrapperFunction<\n TArgs extends any[],\n TResult,\n TKeyArgs extends any[] = TArgs,\n> = ((...args: TArgs) => TResult) & {\n // The .dirty(...) method of an optimistic function takes exactly the\n // same parameter types as the original function.\n dirty: (...args: TKeyArgs) => void;\n // Examine the current value without recomputing it.\n peek: (...args: TKeyArgs) => TResult | undefined;\n // Remove the entry from the cache, dirtying any parent entries.\n forget: (...args: TKeyArgs) => boolean;\n};\n\nexport type OptimisticWrapOptions<\n TArgs extends any[],\n TKeyArgs extends any[] = TArgs,\n> = {\n // The maximum number of cache entries that should be retained before the\n // cache begins evicting the oldest ones.\n max?: number;\n // Transform the raw arguments to some other type of array, which will then\n // be passed to makeCacheKey.\n keyArgs?: (...args: TArgs) => TKeyArgs;\n // The makeCacheKey function takes the same arguments that were passed to\n // the wrapper function and returns a single value that can be used as a key\n // in a Map to identify the cached result.\n makeCacheKey?: (...args: TKeyArgs) => TCacheKey;\n // If provided, the subscribe function should either return an unsubscribe\n // function or return nothing.\n subscribe?: (...args: TArgs) => void | (() => any);\n};\n\nconst caches = new Set>();\n\nexport function wrap<\n TArgs extends any[],\n TResult,\n TKeyArgs extends any[] = TArgs,\n>(\n originalFunction: (...args: TArgs) => TResult,\n options: OptimisticWrapOptions = Object.create(null),\n) {\n const cache = new Cache>(\n options.max || Math.pow(2, 16),\n entry => entry.dispose(),\n );\n\n const keyArgs = options.keyArgs;\n const makeCacheKey = options.makeCacheKey || defaultMakeCacheKey;\n\n function optimistic(): TResult {\n const key = makeCacheKey.apply(\n null,\n keyArgs ? keyArgs.apply(null, arguments as any) : arguments as any\n );\n\n if (key === void 0) {\n return originalFunction.apply(null, arguments as any);\n }\n\n let entry = cache.get(key)!;\n if (!entry) {\n cache.set(key, entry = new Entry(originalFunction));\n entry.subscribe = options.subscribe;\n }\n\n const value = entry.recompute(\n Array.prototype.slice.call(arguments) as TArgs,\n );\n\n // Move this entry to the front of the least-recently used queue,\n // since we just finished computing its value.\n cache.set(key, entry);\n\n caches.add(cache);\n\n // Clean up any excess entries in the cache, but only if there is no\n // active parent entry, meaning we're not in the middle of a larger\n // computation that might be flummoxed by the cleaning.\n if (! parentEntrySlot.hasValue()) {\n caches.forEach(cache => cache.clean());\n caches.clear();\n }\n\n return value;\n }\n\n function lookup(): Entry | undefined {\n const key = makeCacheKey.apply(null, arguments as any);\n if (key !== void 0) {\n return cache.get(key);\n }\n }\n\n optimistic.dirty = function () {\n const entry = lookup.apply(null, arguments as any);\n if (entry) {\n entry.setDirty();\n }\n };\n\n optimistic.peek = function () {\n const entry = lookup.apply(null, arguments as any);\n if (entry) {\n return entry.peek();\n }\n };\n\n optimistic.forget = function () {\n const key = makeCacheKey.apply(null, arguments as any);\n return key !== void 0 && cache.delete(key);\n };\n\n return optimistic as OptimisticWrapperFunction;\n}\n","// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\r\n// object keys weakly, yet can also hold non-object keys, unlike the\r\n// native `WeakMap`.\r\n// If no makeData function is supplied, the looked-up data will be an empty,\r\n// null-prototype Object.\r\nvar defaultMakeData = function () { return Object.create(null); };\r\n// Useful for processing arguments objects as well as arrays.\r\nvar _a = Array.prototype, forEach = _a.forEach, slice = _a.slice;\r\nvar Trie = /** @class */ (function () {\r\n function Trie(weakness, makeData) {\r\n if (weakness === void 0) { weakness = true; }\r\n if (makeData === void 0) { makeData = defaultMakeData; }\r\n this.weakness = weakness;\r\n this.makeData = makeData;\r\n }\r\n Trie.prototype.lookup = function () {\r\n var array = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n array[_i] = arguments[_i];\r\n }\r\n return this.lookupArray(array);\r\n };\r\n Trie.prototype.lookupArray = function (array) {\r\n var node = this;\r\n forEach.call(array, function (key) { return node = node.getChildTrie(key); });\r\n return node.data || (node.data = this.makeData(slice.call(array)));\r\n };\r\n Trie.prototype.getChildTrie = function (key) {\r\n var map = this.weakness && isObjRef(key)\r\n ? this.weak || (this.weak = new WeakMap())\r\n : this.strong || (this.strong = new Map());\r\n var child = map.get(key);\r\n if (!child)\r\n map.set(key, child = new Trie(this.weakness, this.makeData));\r\n return child;\r\n };\r\n return Trie;\r\n}());\r\nfunction isObjRef(value) {\r\n switch (typeof value) {\r\n case \"object\":\r\n if (value === null)\r\n break;\r\n // Fall through to return true...\r\n case \"function\":\r\n return true;\r\n }\r\n return false;\r\n}\n\nexport { Trie };\n//# sourceMappingURL=trie.esm.js.map\n","// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\n// object keys weakly, yet can also hold non-object keys, unlike the\n// native `WeakMap`.\n\n// If no makeData function is supplied, the looked-up data will be an empty,\n// null-prototype Object.\nconst defaultMakeData = () => Object.create(null);\n\n// Useful for processing arguments objects as well as arrays.\nconst { forEach, slice } = Array.prototype;\n\nexport class Trie {\n // Since a `WeakMap` cannot hold primitive values as keys, we need a\n // backup `Map` instance to hold primitive keys. Both `this._weakMap`\n // and `this._strongMap` are lazily initialized.\n private weak?: WeakMap>;\n private strong?: Map>;\n private data?: Data;\n\n constructor(\n private weakness = true,\n private makeData: (array: any[]) => Data = defaultMakeData,\n ) {}\n\n public lookup(...array: T): Data {\n return this.lookupArray(array);\n }\n\n public lookupArray(array: T): Data {\n let node: Trie = this;\n forEach.call(array, key => node = node.getChildTrie(key));\n return node.data || (node.data = this.makeData(slice.call(array)));\n }\n\n private getChildTrie(key: any) {\n const map = this.weakness && isObjRef(key)\n ? this.weak || (this.weak = new WeakMap>())\n : this.strong || (this.strong = new Map>());\n let child = map.get(key);\n if (!child) map.set(key, child = new Trie(this.weakness, this.makeData));\n return child;\n }\n}\n\nfunction isObjRef(value: any) {\n switch (typeof value) {\n case \"object\":\n if (value === null) break;\n // Fall through to return true...\n case \"function\":\n return true;\n }\n return false;\n}\n","// This currentContext variable will only be used if the makeSlotClass\r\n// function is called, which happens only if this is the first copy of the\r\n// @wry/context package to be imported.\r\nvar currentContext = null;\r\n// This unique internal object is used to denote the absence of a value\r\n// for a given Slot, and is never exposed to outside code.\r\nvar MISSING_VALUE = {};\r\nvar idCounter = 1;\r\n// Although we can't do anything about the cost of duplicated code from\r\n// accidentally bundling multiple copies of the @wry/context package, we can\r\n// avoid creating the Slot class more than once using makeSlotClass.\r\nvar makeSlotClass = function () { return /** @class */ (function () {\r\n function Slot() {\r\n // If you have a Slot object, you can find out its slot.id, but you cannot\r\n // guess the slot.id of a Slot you don't have access to, thanks to the\r\n // randomized suffix.\r\n this.id = [\r\n \"slot\",\r\n idCounter++,\r\n Date.now(),\r\n Math.random().toString(36).slice(2),\r\n ].join(\":\");\r\n }\r\n Slot.prototype.hasValue = function () {\r\n for (var context_1 = currentContext; context_1; context_1 = context_1.parent) {\r\n // We use the Slot object iself as a key to its value, which means the\r\n // value cannot be obtained without a reference to the Slot object.\r\n if (this.id in context_1.slots) {\r\n var value = context_1.slots[this.id];\r\n if (value === MISSING_VALUE)\r\n break;\r\n if (context_1 !== currentContext) {\r\n // Cache the value in currentContext.slots so the next lookup will\r\n // be faster. This caching is safe because the tree of contexts and\r\n // the values of the slots are logically immutable.\r\n currentContext.slots[this.id] = value;\r\n }\r\n return true;\r\n }\r\n }\r\n if (currentContext) {\r\n // If a value was not found for this Slot, it's never going to be found\r\n // no matter how many times we look it up, so we might as well cache\r\n // the absence of the value, too.\r\n currentContext.slots[this.id] = MISSING_VALUE;\r\n }\r\n return false;\r\n };\r\n Slot.prototype.getValue = function () {\r\n if (this.hasValue()) {\r\n return currentContext.slots[this.id];\r\n }\r\n };\r\n Slot.prototype.withValue = function (value, callback, \r\n // Given the prevalence of arrow functions, specifying arguments is likely\r\n // to be much more common than specifying `this`, hence this ordering:\r\n args, thisArg) {\r\n var _a;\r\n var slots = (_a = {\r\n __proto__: null\r\n },\r\n _a[this.id] = value,\r\n _a);\r\n var parent = currentContext;\r\n currentContext = { parent: parent, slots: slots };\r\n try {\r\n // Function.prototype.apply allows the arguments array argument to be\r\n // omitted or undefined, so args! is fine here.\r\n return callback.apply(thisArg, args);\r\n }\r\n finally {\r\n currentContext = parent;\r\n }\r\n };\r\n // Capture the current context and wrap a callback function so that it\r\n // reestablishes the captured context when called.\r\n Slot.bind = function (callback) {\r\n var context = currentContext;\r\n return function () {\r\n var saved = currentContext;\r\n try {\r\n currentContext = context;\r\n return callback.apply(this, arguments);\r\n }\r\n finally {\r\n currentContext = saved;\r\n }\r\n };\r\n };\r\n // Immediately run a callback function without any captured context.\r\n Slot.noContext = function (callback, \r\n // Given the prevalence of arrow functions, specifying arguments is likely\r\n // to be much more common than specifying `this`, hence this ordering:\r\n args, thisArg) {\r\n if (currentContext) {\r\n var saved = currentContext;\r\n try {\r\n currentContext = null;\r\n // Function.prototype.apply allows the arguments array argument to be\r\n // omitted or undefined, so args! is fine here.\r\n return callback.apply(thisArg, args);\r\n }\r\n finally {\r\n currentContext = saved;\r\n }\r\n }\r\n else {\r\n return callback.apply(thisArg, args);\r\n }\r\n };\r\n return Slot;\r\n}()); };\r\n// We store a single global implementation of the Slot class as a permanent\r\n// non-enumerable symbol property of the Array constructor. This obfuscation\r\n// does nothing to prevent access to the Slot class, but at least it ensures\r\n// the implementation (i.e. currentContext) cannot be tampered with, and all\r\n// copies of the @wry/context package (hopefully just one) will share the\r\n// same Slot implementation. Since the first copy of the @wry/context package\r\n// to be imported wins, this technique imposes a very high cost for any\r\n// future breaking changes to the Slot class.\r\nvar globalKey = \"@wry/context:Slot\";\r\nvar host = Array;\r\nvar Slot = host[globalKey] || function () {\r\n var Slot = makeSlotClass();\r\n try {\r\n Object.defineProperty(host, globalKey, {\r\n value: host[globalKey] = Slot,\r\n enumerable: false,\r\n writable: false,\r\n configurable: false,\r\n });\r\n }\r\n finally {\r\n return Slot;\r\n }\r\n}();\n\nvar bind = Slot.bind, noContext = Slot.noContext;\r\nfunction setTimeoutWithContext(callback, delay) {\r\n return setTimeout(bind(callback), delay);\r\n}\r\n// Turn any generator function into an async function (using yield instead\r\n// of await), with context automatically preserved across yields.\r\nfunction asyncFromGen(genFn) {\r\n return function () {\r\n var gen = genFn.apply(this, arguments);\r\n var boundNext = bind(gen.next);\r\n var boundThrow = bind(gen.throw);\r\n return new Promise(function (resolve, reject) {\r\n function invoke(method, argument) {\r\n try {\r\n var result = method.call(gen, argument);\r\n }\r\n catch (error) {\r\n return reject(error);\r\n }\r\n var next = result.done ? resolve : invokeNext;\r\n if (isPromiseLike(result.value)) {\r\n result.value.then(next, result.done ? reject : invokeThrow);\r\n }\r\n else {\r\n next(result.value);\r\n }\r\n }\r\n var invokeNext = function (value) { return invoke(boundNext, value); };\r\n var invokeThrow = function (error) { return invoke(boundThrow, error); };\r\n invokeNext();\r\n });\r\n };\r\n}\r\nfunction isPromiseLike(value) {\r\n return value && typeof value.then === \"function\";\r\n}\r\n// If you use the fibers npm package to implement coroutines in Node.js,\r\n// you should call this function at least once to ensure context management\r\n// remains coherent across any yields.\r\nvar wrappedFibers = [];\r\nfunction wrapYieldingFiberMethods(Fiber) {\r\n // There can be only one implementation of Fiber per process, so this array\r\n // should never grow longer than one element.\r\n if (wrappedFibers.indexOf(Fiber) < 0) {\r\n var wrap = function (obj, method) {\r\n var fn = obj[method];\r\n obj[method] = function () {\r\n return noContext(fn, arguments, this);\r\n };\r\n };\r\n // These methods can yield, according to\r\n // https://github.com/laverdet/node-fibers/blob/ddebed9b8ae3883e57f822e2108e6943e5c8d2a8/fibers.js#L97-L100\r\n wrap(Fiber, \"yield\");\r\n wrap(Fiber.prototype, \"run\");\r\n wrap(Fiber.prototype, \"throwInto\");\r\n wrappedFibers.push(Fiber);\r\n }\r\n return Fiber;\r\n}\n\nexport { Slot, asyncFromGen, bind, noContext, setTimeoutWithContext as setTimeout, wrapYieldingFiberMethods };\n//# sourceMappingURL=context.esm.js.map\n","type Context = {\n parent: Context | null;\n slots: { [slotId: string]: any };\n}\n\n// This currentContext variable will only be used if the makeSlotClass\n// function is called, which happens only if this is the first copy of the\n// @wry/context package to be imported.\nlet currentContext: Context | null = null;\n\n// This unique internal object is used to denote the absence of a value\n// for a given Slot, and is never exposed to outside code.\nconst MISSING_VALUE: any = {};\n\nlet idCounter = 1;\n\n// Although we can't do anything about the cost of duplicated code from\n// accidentally bundling multiple copies of the @wry/context package, we can\n// avoid creating the Slot class more than once using makeSlotClass.\nconst makeSlotClass = () => class Slot {\n // If you have a Slot object, you can find out its slot.id, but you cannot\n // guess the slot.id of a Slot you don't have access to, thanks to the\n // randomized suffix.\n public readonly id = [\n \"slot\",\n idCounter++,\n Date.now(),\n Math.random().toString(36).slice(2),\n ].join(\":\");\n\n public hasValue() {\n for (let context = currentContext; context; context = context.parent) {\n // We use the Slot object iself as a key to its value, which means the\n // value cannot be obtained without a reference to the Slot object.\n if (this.id in context.slots) {\n const value = context.slots[this.id];\n if (value === MISSING_VALUE) break;\n if (context !== currentContext) {\n // Cache the value in currentContext.slots so the next lookup will\n // be faster. This caching is safe because the tree of contexts and\n // the values of the slots are logically immutable.\n currentContext!.slots[this.id] = value;\n }\n return true;\n }\n }\n if (currentContext) {\n // If a value was not found for this Slot, it's never going to be found\n // no matter how many times we look it up, so we might as well cache\n // the absence of the value, too.\n currentContext.slots[this.id] = MISSING_VALUE;\n }\n return false;\n }\n\n public getValue(): TValue | undefined {\n if (this.hasValue()) {\n return currentContext!.slots[this.id] as TValue;\n }\n }\n\n public withValue(\n value: TValue,\n callback: (this: TThis, ...args: TArgs) => TResult,\n // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args?: TArgs,\n thisArg?: TThis,\n ): TResult {\n const slots = {\n __proto__: null,\n [this.id]: value,\n };\n const parent = currentContext;\n currentContext = { parent, slots };\n try {\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg!, args!);\n } finally {\n currentContext = parent;\n }\n }\n\n // Capture the current context and wrap a callback function so that it\n // reestablishes the captured context when called.\n static bind(\n callback: (...args: TArgs) => TResult,\n ) {\n const context = currentContext;\n return function (this: any) {\n const saved = currentContext;\n try {\n currentContext = context;\n return callback.apply(this, arguments as any);\n } finally {\n currentContext = saved;\n }\n } as typeof callback;\n }\n\n // Immediately run a callback function without any captured context.\n static noContext(\n callback: (this: TThis, ...args: TArgs) => TResult,\n // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args?: TArgs,\n thisArg?: TThis,\n ) {\n if (currentContext) {\n const saved = currentContext;\n try {\n currentContext = null;\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg!, args!);\n } finally {\n currentContext = saved;\n }\n } else {\n return callback.apply(thisArg!, args!);\n }\n }\n};\n\n// We store a single global implementation of the Slot class as a permanent\n// non-enumerable symbol property of the Array constructor. This obfuscation\n// does nothing to prevent access to the Slot class, but at least it ensures\n// the implementation (i.e. currentContext) cannot be tampered with, and all\n// copies of the @wry/context package (hopefully just one) will share the\n// same Slot implementation. Since the first copy of the @wry/context package\n// to be imported wins, this technique imposes a very high cost for any\n// future breaking changes to the Slot class.\nconst globalKey = \"@wry/context:Slot\";\nconst host = Array as any;\n\nexport const Slot: ReturnType = host[globalKey] || function () {\n const Slot = makeSlotClass();\n try {\n Object.defineProperty(host, globalKey, {\n value: host[globalKey] = Slot,\n enumerable: false,\n writable: false,\n configurable: false,\n });\n } finally {\n return Slot;\n }\n}();\n","import { Slot } from \"./slot\";\nexport { Slot }\nexport const { bind, noContext } = Slot;\n\n// Relying on the @types/node declaration of global.setTimeout can make\n// things tricky for dowstream projects (see PR #7).\ndeclare function setTimeout(\n callback: (...args: any[]) => any,\n ms?: number,\n ...args: any[]\n): any;\n\n// Like global.setTimeout, except the callback runs with captured context.\nexport { setTimeoutWithContext as setTimeout };\nfunction setTimeoutWithContext(callback: () => any, delay: number) {\n return setTimeout(bind(callback), delay);\n}\n\n// Turn any generator function into an async function (using yield instead\n// of await), with context automatically preserved across yields.\nexport function asyncFromGen(\n genFn: (...args: TArgs) => any\n) {\n return function (this: any) {\n const gen = genFn.apply(this, arguments as any);\n const boundNext = bind(gen.next);\n const boundThrow = bind(gen.throw!);\n type Method = typeof boundNext | typeof boundThrow;\n\n return new Promise((resolve, reject) => {\n function invoke(method: Method, argument: any) {\n try {\n var result: any = method.call(gen, argument);\n } catch (error) {\n return reject(error);\n }\n const next = result.done ? resolve : invokeNext;\n if (isPromiseLike(result.value)) {\n result.value.then(next, result.done ? reject : invokeThrow);\n } else {\n next(result.value);\n }\n }\n const invokeNext = (value?: any) => invoke(boundNext, value);\n const invokeThrow = (error: any) => invoke(boundThrow, error);\n invokeNext();\n });\n } as (...args: TArgs) => Promise;\n}\n\nfunction isPromiseLike(value: any): value is PromiseLike {\n return value && typeof value.then === \"function\";\n}\n\n// If you use the fibers npm package to implement coroutines in Node.js,\n// you should call this function at least once to ensure context management\n// remains coherent across any yields.\nconst wrappedFibers: Function[] = [];\nexport function wrapYieldingFiberMethods(Fiber: F): F {\n // There can be only one implementation of Fiber per process, so this array\n // should never grow longer than one element.\n if (wrappedFibers.indexOf(Fiber) < 0) {\n const wrap = (obj: any, method: string) => {\n const fn = obj[method];\n obj[method] = function () {\n return noContext(fn, arguments as any, this);\n };\n }\n // These methods can yield, according to\n // https://github.com/laverdet/node-fibers/blob/ddebed9b8ae3883e57f822e2108e6943e5c8d2a8/fibers.js#L97-L100\n wrap(Fiber, \"yield\");\n wrap(Fiber.prototype, \"run\");\n wrap(Fiber.prototype, \"throwInto\");\n wrappedFibers.push(Fiber);\n }\n return Fiber;\n}\n","export var Cache;\n(function (Cache) {\n})(Cache || (Cache = {}));\n//# sourceMappingURL=Cache.js.map","import { DataProxy } from './DataProxy';\nimport { Modifier, Modifiers } from './common';\n\nexport namespace Cache {\n export type WatchCallback = (diff: Cache.DiffResult) => void;\n\n export interface ReadOptions\n extends DataProxy.Query {\n rootId?: string;\n previousResult?: any;\n optimistic: boolean;\n returnPartialData?: boolean;\n }\n\n export interface WriteOptions\n extends DataProxy.Query {\n dataId?: string;\n result: TResult;\n broadcast?: boolean;\n }\n\n export interface DiffOptions extends ReadOptions {\n // The DiffOptions interface is currently just an alias for\n // ReadOptions, though DiffOptions used to be responsible for\n // declaring the returnPartialData option.\n }\n\n export interface WatchOptions extends ReadOptions {\n immediate?: boolean;\n callback: WatchCallback;\n }\n\n export interface EvictOptions {\n id?: string;\n fieldName?: string;\n args?: Record;\n broadcast?: boolean;\n }\n\n export interface ModifyOptions {\n id?: string;\n fields: Modifiers | Modifier;\n optimistic?: boolean;\n broadcast?: boolean;\n }\n\n export import DiffResult = DataProxy.DiffResult;\n export import ReadQueryOptions = DataProxy.ReadQueryOptions;\n export import ReadFragmentOptions = DataProxy.ReadFragmentOptions;\n export import WriteQueryOptions = DataProxy.WriteQueryOptions;\n export import WriteFragmentOptions = DataProxy.WriteFragmentOptions;\n export import Fragment = DataProxy.Fragment;\n}\n","var MissingFieldError = (function () {\n function MissingFieldError(message, path, query, clientOnly, variables) {\n this.message = message;\n this.path = path;\n this.query = query;\n this.clientOnly = clientOnly;\n this.variables = variables;\n }\n return MissingFieldError;\n}());\nexport { MissingFieldError };\n//# sourceMappingURL=common.js.map","import { FieldNode } from 'graphql';\n\nimport {\n Reference,\n StoreObject,\n StoreValue,\n isReference,\n} from '../../../utilities';\n\nimport { StorageType } from '../../inmemory/policies';\n\n// The Readonly type only really works for object types, since it marks\n// all of the object's properties as readonly, but there are many cases when\n// a generic type parameter like TExisting might be a string or some other\n// primitive type, in which case we need to avoid wrapping it with Readonly.\n// SafeReadonly collapses to just string, which makes string\n// assignable to SafeReadonly, whereas string is not assignable to\n// Readonly, somewhat surprisingly.\nexport type SafeReadonly = T extends object ? Readonly : T;\n\nexport class MissingFieldError {\n constructor(\n public readonly message: string,\n public readonly path: (string | number)[],\n public readonly query: import('graphql').DocumentNode,\n public readonly clientOnly: boolean,\n public readonly variables?: Record,\n ) {}\n}\n\nexport interface FieldSpecifier {\n typename?: string;\n fieldName: string;\n field?: FieldNode;\n args?: Record;\n variables?: Record;\n}\n\nexport interface ReadFieldOptions extends FieldSpecifier {\n from?: StoreObject | Reference;\n}\n\nexport interface ReadFieldFunction {\n (options: ReadFieldOptions): SafeReadonly | undefined;\n (\n fieldName: string,\n from?: StoreObject | Reference,\n ): SafeReadonly | undefined;\n}\n\nexport type ToReferenceFunction = (\n objOrIdOrRef: StoreObject | string | Reference,\n mergeIntoStore?: boolean,\n) => Reference | undefined;\n\nexport type CanReadFunction = (value: StoreValue) => boolean;\n\nexport type Modifier = (value: T, details: {\n DELETE: any;\n INVALIDATE: any;\n fieldName: string;\n storeFieldName: string;\n readField: ReadFieldFunction;\n canRead: CanReadFunction;\n isReference: typeof isReference;\n toReference: ToReferenceFunction;\n storage: StorageType;\n}) => T;\n\nexport type Modifiers = {\n [fieldName: string]: Modifier;\n};\n","import { __assign, __extends } from \"tslib\";\nimport \"./fixPolyfills.js\";\nimport { dep, wrap } from 'optimism';\nimport { ApolloCache } from \"../core/cache.js\";\nimport { MissingFieldError } from \"../core/types/common.js\";\nimport { addTypenameToDocument, isReference, } from \"../../utilities/index.js\";\nimport { StoreReader } from \"./readFromStore.js\";\nimport { StoreWriter } from \"./writeToStore.js\";\nimport { EntityStore, supportsResultCaching } from \"./entityStore.js\";\nimport { makeVar, forgetCache, recallCache } from \"./reactiveVars.js\";\nimport { defaultDataIdFromObject, Policies, } from \"./policies.js\";\nimport { hasOwn } from \"./helpers.js\";\nvar defaultConfig = {\n dataIdFromObject: defaultDataIdFromObject,\n addTypename: true,\n resultCaching: true,\n typePolicies: {},\n};\nvar InMemoryCache = (function (_super) {\n __extends(InMemoryCache, _super);\n function InMemoryCache(config) {\n if (config === void 0) { config = {}; }\n var _this = _super.call(this) || this;\n _this.watches = new Set();\n _this.typenameDocumentCache = new Map();\n _this.makeVar = makeVar;\n _this.txCount = 0;\n _this.maybeBroadcastWatch = wrap(function (c, fromOptimisticTransaction) {\n return _this.broadcastWatch.call(_this, c, !!fromOptimisticTransaction);\n }, {\n makeCacheKey: function (c) {\n var store = c.optimistic ? _this.optimisticData : _this.data;\n if (supportsResultCaching(store)) {\n var optimistic = c.optimistic, rootId = c.rootId, variables = c.variables;\n return store.makeCacheKey(c.query, c.callback, JSON.stringify({ optimistic: optimistic, rootId: rootId, variables: variables }));\n }\n }\n });\n _this.watchDep = dep();\n _this.config = __assign(__assign({}, defaultConfig), config);\n _this.addTypename = !!_this.config.addTypename;\n _this.policies = new Policies({\n cache: _this,\n dataIdFromObject: _this.config.dataIdFromObject,\n possibleTypes: _this.config.possibleTypes,\n typePolicies: _this.config.typePolicies,\n });\n _this.data = new EntityStore.Root({\n policies: _this.policies,\n resultCaching: _this.config.resultCaching,\n });\n _this.optimisticData = _this.data;\n _this.storeWriter = new StoreWriter(_this, _this.storeReader = new StoreReader({\n cache: _this,\n addTypename: _this.addTypename,\n }));\n return _this;\n }\n InMemoryCache.prototype.restore = function (data) {\n if (data)\n this.data.replace(data);\n return this;\n };\n InMemoryCache.prototype.extract = function (optimistic) {\n if (optimistic === void 0) { optimistic = false; }\n return (optimistic ? this.optimisticData : this.data).extract();\n };\n InMemoryCache.prototype.read = function (options) {\n var _a = options.returnPartialData, returnPartialData = _a === void 0 ? false : _a;\n try {\n return this.storeReader.diffQueryAgainstStore({\n store: options.optimistic ? this.optimisticData : this.data,\n query: options.query,\n variables: options.variables,\n rootId: options.rootId,\n config: this.config,\n returnPartialData: returnPartialData,\n }).result || null;\n }\n catch (e) {\n if (e instanceof MissingFieldError) {\n return null;\n }\n throw e;\n }\n };\n InMemoryCache.prototype.write = function (options) {\n try {\n ++this.txCount;\n return this.storeWriter.writeToStore({\n store: this.data,\n query: options.query,\n result: options.result,\n dataId: options.dataId,\n variables: options.variables,\n });\n }\n finally {\n if (!--this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n };\n InMemoryCache.prototype.modify = function (options) {\n if (hasOwn.call(options, \"id\") && !options.id) {\n return false;\n }\n var store = options.optimistic\n ? this.optimisticData\n : this.data;\n try {\n ++this.txCount;\n return store.modify(options.id || \"ROOT_QUERY\", options.fields);\n }\n finally {\n if (!--this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n };\n InMemoryCache.prototype.diff = function (options) {\n return this.storeReader.diffQueryAgainstStore({\n store: options.optimistic ? this.optimisticData : this.data,\n rootId: options.id || \"ROOT_QUERY\",\n query: options.query,\n variables: options.variables,\n returnPartialData: options.returnPartialData,\n config: this.config,\n });\n };\n InMemoryCache.prototype.watch = function (watch) {\n var _this = this;\n if (!this.watches.size) {\n recallCache(this);\n }\n this.watches.add(watch);\n if (watch.immediate) {\n this.maybeBroadcastWatch(watch);\n }\n return function () {\n if (_this.watches.delete(watch) && !_this.watches.size) {\n forgetCache(_this);\n }\n _this.watchDep.dirty(watch);\n _this.maybeBroadcastWatch.forget(watch);\n };\n };\n InMemoryCache.prototype.gc = function () {\n return this.optimisticData.gc();\n };\n InMemoryCache.prototype.retain = function (rootId, optimistic) {\n return (optimistic ? this.optimisticData : this.data).retain(rootId);\n };\n InMemoryCache.prototype.release = function (rootId, optimistic) {\n return (optimistic ? this.optimisticData : this.data).release(rootId);\n };\n InMemoryCache.prototype.identify = function (object) {\n return isReference(object) ? object.__ref :\n this.policies.identify(object)[0];\n };\n InMemoryCache.prototype.evict = function (options) {\n if (!options.id) {\n if (hasOwn.call(options, \"id\")) {\n return false;\n }\n options = __assign(__assign({}, options), { id: \"ROOT_QUERY\" });\n }\n try {\n ++this.txCount;\n return this.optimisticData.evict(options);\n }\n finally {\n if (!--this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n };\n InMemoryCache.prototype.reset = function () {\n this.data.clear();\n this.optimisticData = this.data;\n this.broadcastWatches();\n return Promise.resolve();\n };\n InMemoryCache.prototype.removeOptimistic = function (idToRemove) {\n var newOptimisticData = this.optimisticData.removeLayer(idToRemove);\n if (newOptimisticData !== this.optimisticData) {\n this.optimisticData = newOptimisticData;\n this.broadcastWatches();\n }\n };\n InMemoryCache.prototype.performTransaction = function (transaction, optimisticId) {\n var _this = this;\n var perform = function (layer) {\n var _a = _this, data = _a.data, optimisticData = _a.optimisticData;\n ++_this.txCount;\n if (layer) {\n _this.data = _this.optimisticData = layer;\n }\n try {\n transaction(_this);\n }\n finally {\n --_this.txCount;\n _this.data = data;\n _this.optimisticData = optimisticData;\n }\n };\n var fromOptimisticTransaction = false;\n if (typeof optimisticId === 'string') {\n this.optimisticData = this.optimisticData.addLayer(optimisticId, perform);\n fromOptimisticTransaction = true;\n }\n else if (optimisticId === null) {\n perform(this.data);\n }\n else {\n perform();\n }\n this.broadcastWatches(fromOptimisticTransaction);\n };\n InMemoryCache.prototype.transformDocument = function (document) {\n if (this.addTypename) {\n var result = this.typenameDocumentCache.get(document);\n if (!result) {\n result = addTypenameToDocument(document);\n this.typenameDocumentCache.set(document, result);\n this.typenameDocumentCache.set(result, result);\n }\n return result;\n }\n return document;\n };\n InMemoryCache.prototype.broadcastWatches = function (fromOptimisticTransaction) {\n var _this = this;\n if (!this.txCount) {\n this.watches.forEach(function (c) { return _this.maybeBroadcastWatch(c, fromOptimisticTransaction); });\n }\n };\n InMemoryCache.prototype.broadcastWatch = function (c, fromOptimisticTransaction) {\n this.watchDep.dirty(c);\n this.watchDep(c);\n var diff = this.diff({\n query: c.query,\n variables: c.variables,\n optimistic: c.optimistic,\n });\n if (c.optimistic && fromOptimisticTransaction) {\n diff.fromOptimisticTransaction = true;\n }\n c.callback(diff);\n };\n return InMemoryCache;\n}(ApolloCache));\nexport { InMemoryCache };\n//# sourceMappingURL=inMemoryCache.js.map","// Make builtins like Map and Set safe to use with non-extensible objects.\nimport './fixPolyfills';\n\nimport { DocumentNode } from 'graphql';\nimport { dep, wrap } from 'optimism';\n\nimport { ApolloCache } from '../core/cache';\nimport { Cache } from '../core/types/Cache';\nimport { MissingFieldError } from '../core/types/common';\nimport {\n addTypenameToDocument,\n StoreObject,\n Reference,\n isReference,\n} from '../../utilities';\nimport {\n ApolloReducerConfig,\n NormalizedCacheObject,\n} from './types';\nimport { StoreReader } from './readFromStore';\nimport { StoreWriter } from './writeToStore';\nimport { EntityStore, supportsResultCaching } from './entityStore';\nimport { makeVar, forgetCache, recallCache } from './reactiveVars';\nimport {\n defaultDataIdFromObject,\n PossibleTypesMap,\n Policies,\n TypePolicies,\n} from './policies';\nimport { hasOwn } from './helpers';\n\nexport interface InMemoryCacheConfig extends ApolloReducerConfig {\n resultCaching?: boolean;\n possibleTypes?: PossibleTypesMap;\n typePolicies?: TypePolicies;\n}\n\nconst defaultConfig: InMemoryCacheConfig = {\n dataIdFromObject: defaultDataIdFromObject,\n addTypename: true,\n resultCaching: true,\n typePolicies: {},\n};\n\nexport class InMemoryCache extends ApolloCache {\n private data: EntityStore;\n private optimisticData: EntityStore;\n\n protected config: InMemoryCacheConfig;\n private watches = new Set();\n private addTypename: boolean;\n\n private typenameDocumentCache = new Map();\n private storeReader: StoreReader;\n private storeWriter: StoreWriter;\n\n // Dynamically imported code can augment existing typePolicies or\n // possibleTypes by calling cache.policies.addTypePolicies or\n // cache.policies.addPossibletypes.\n public readonly policies: Policies;\n\n public readonly makeVar = makeVar;\n\n constructor(config: InMemoryCacheConfig = {}) {\n super();\n this.config = { ...defaultConfig, ...config };\n this.addTypename = !!this.config.addTypename;\n\n this.policies = new Policies({\n cache: this,\n dataIdFromObject: this.config.dataIdFromObject,\n possibleTypes: this.config.possibleTypes,\n typePolicies: this.config.typePolicies,\n });\n\n // Passing { resultCaching: false } in the InMemoryCache constructor options\n // will completely disable dependency tracking, which will improve memory\n // usage but worsen the performance of repeated reads.\n this.data = new EntityStore.Root({\n policies: this.policies,\n resultCaching: this.config.resultCaching,\n });\n\n // When no optimistic writes are currently active, cache.optimisticData ===\n // cache.data, so there are no additional layers on top of the actual data.\n // When an optimistic update happens, this.optimisticData will become a\n // linked list of OptimisticCacheLayer objects that terminates with the\n // original this.data cache object.\n this.optimisticData = this.data;\n\n this.storeWriter = new StoreWriter(\n this,\n this.storeReader = new StoreReader({\n cache: this,\n addTypename: this.addTypename,\n }),\n );\n }\n\n public restore(data: NormalizedCacheObject): this {\n if (data) this.data.replace(data);\n return this;\n }\n\n public extract(optimistic: boolean = false): NormalizedCacheObject {\n return (optimistic ? this.optimisticData : this.data).extract();\n }\n\n public read(options: Cache.ReadOptions): T | null {\n const {\n // Since read returns data or null, without any additional metadata\n // about whether/where there might have been missing fields, the\n // default behavior cannot be returnPartialData = true (like it is\n // for the diff method), since defaulting to true would violate the\n // integrity of the T in the return type. However, partial data may\n // be useful in some cases, so returnPartialData:true may be\n // specified explicitly.\n returnPartialData = false,\n } = options;\n try {\n return this.storeReader.diffQueryAgainstStore({\n store: options.optimistic ? this.optimisticData : this.data,\n query: options.query,\n variables: options.variables,\n rootId: options.rootId,\n config: this.config,\n returnPartialData,\n }).result || null;\n } catch (e) {\n if (e instanceof MissingFieldError) {\n // Swallow MissingFieldError and return null, so callers do not\n // need to worry about catching \"normal\" exceptions resulting from\n // incomplete cache data. Unexpected errors will be re-thrown. If\n // you need more information about which fields were missing, use\n // cache.diff instead, and examine diffResult.missing.\n return null;\n }\n throw e;\n }\n }\n\n public write(options: Cache.WriteOptions): Reference | undefined {\n try {\n ++this.txCount;\n return this.storeWriter.writeToStore({\n store: this.data,\n query: options.query,\n result: options.result,\n dataId: options.dataId,\n variables: options.variables,\n });\n } finally {\n if (!--this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n }\n\n public modify(options: Cache.ModifyOptions): boolean {\n if (hasOwn.call(options, \"id\") && !options.id) {\n // To my knowledge, TypeScript does not currently provide a way to\n // enforce that an optional property?:type must *not* be undefined\n // when present. That ability would be useful here, because we want\n // options.id to default to ROOT_QUERY only when no options.id was\n // provided. If the caller attempts to pass options.id with a\n // falsy/undefined value (perhaps because cache.identify failed), we\n // should not assume the goal was to modify the ROOT_QUERY object.\n // We could throw, but it seems natural to return false to indicate\n // that nothing was modified.\n return false;\n }\n const store = options.optimistic // Defaults to false.\n ? this.optimisticData\n : this.data;\n try {\n ++this.txCount;\n return store.modify(options.id || \"ROOT_QUERY\", options.fields);\n } finally {\n if (!--this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n }\n\n public diff(options: Cache.DiffOptions): Cache.DiffResult {\n return this.storeReader.diffQueryAgainstStore({\n store: options.optimistic ? this.optimisticData : this.data,\n rootId: options.id || \"ROOT_QUERY\",\n query: options.query,\n variables: options.variables,\n returnPartialData: options.returnPartialData,\n config: this.config,\n });\n }\n\n public watch(watch: Cache.WatchOptions): () => void {\n if (!this.watches.size) {\n // In case we previously called forgetCache(this) because\n // this.watches became empty (see below), reattach this cache to any\n // reactive variables on which it previously depended. It might seem\n // paradoxical that we're able to recall something we supposedly\n // forgot, but the point of calling forgetCache(this) is to silence\n // useless broadcasts while this.watches is empty, and to allow the\n // cache to be garbage collected. If, however, we manage to call\n // recallCache(this) here, this cache object must not have been\n // garbage collected yet, and should resume receiving updates from\n // reactive variables, now that it has a watcher to notify.\n recallCache(this);\n }\n this.watches.add(watch);\n if (watch.immediate) {\n this.maybeBroadcastWatch(watch);\n }\n return () => {\n // Once we remove the last watch from this.watches, cache.broadcastWatches\n // no longer does anything, so we preemptively tell the reactive variable\n // system to exclude this cache from future broadcasts.\n if (this.watches.delete(watch) && !this.watches.size) {\n forgetCache(this);\n }\n this.watchDep.dirty(watch);\n // Remove this watch from the LRU cache managed by the\n // maybeBroadcastWatch OptimisticWrapperFunction, to prevent memory\n // leaks involving the closure of watch.callback.\n this.maybeBroadcastWatch.forget(watch);\n };\n }\n\n // Request garbage collection of unreachable normalized entities.\n public gc() {\n return this.optimisticData.gc();\n }\n\n // Call this method to ensure the given root ID remains in the cache after\n // garbage collection, along with its transitive child entities. Note that\n // the cache automatically retains all directly written entities. By default,\n // the retainment persists after optimistic updates are removed. Pass true\n // for the optimistic argument if you would prefer for the retainment to be\n // discarded when the top-most optimistic layer is removed. Returns the\n // resulting (non-negative) retainment count.\n public retain(rootId: string, optimistic?: boolean): number {\n return (optimistic ? this.optimisticData : this.data).retain(rootId);\n }\n\n // Call this method to undo the effect of the retain method, above. Once the\n // retainment count falls to zero, the given ID will no longer be preserved\n // during garbage collection, though it may still be preserved by other safe\n // entities that refer to it. Returns the resulting (non-negative) retainment\n // count, in case that's useful.\n public release(rootId: string, optimistic?: boolean): number {\n return (optimistic ? this.optimisticData : this.data).release(rootId);\n }\n\n // Returns the canonical ID for a given StoreObject, obeying typePolicies\n // and keyFields (and dataIdFromObject, if you still use that). At minimum,\n // the object must contain a __typename and any primary key fields required\n // to identify entities of that type. If you pass a query result object, be\n // sure that none of the primary key fields have been renamed by aliasing.\n // If you pass a Reference object, its __ref ID string will be returned.\n public identify(object: StoreObject | Reference): string | undefined {\n return isReference(object) ? object.__ref :\n this.policies.identify(object)[0];\n }\n\n public evict(options: Cache.EvictOptions): boolean {\n if (!options.id) {\n if (hasOwn.call(options, \"id\")) {\n // See comment in modify method about why we return false when\n // options.id exists but is falsy/undefined.\n return false;\n }\n options = { ...options, id: \"ROOT_QUERY\" };\n }\n try {\n // It's unlikely that the eviction will end up invoking any other\n // cache update operations while it's running, but {in,de}crementing\n // this.txCount still seems like a good idea, for uniformity with\n // the other update methods.\n ++this.txCount;\n return this.optimisticData.evict(options);\n } finally {\n if (!--this.txCount && options.broadcast !== false) {\n this.broadcastWatches();\n }\n }\n }\n\n public reset(): Promise {\n this.data.clear();\n this.optimisticData = this.data;\n this.broadcastWatches();\n return Promise.resolve();\n }\n\n public removeOptimistic(idToRemove: string) {\n const newOptimisticData = this.optimisticData.removeLayer(idToRemove);\n if (newOptimisticData !== this.optimisticData) {\n this.optimisticData = newOptimisticData;\n this.broadcastWatches();\n }\n }\n\n private txCount = 0;\n\n public performTransaction(\n transaction: (cache: InMemoryCache) => any,\n optimisticId?: string | null,\n ) {\n const perform = (layer?: EntityStore) => {\n const { data, optimisticData } = this;\n ++this.txCount;\n if (layer) {\n this.data = this.optimisticData = layer;\n }\n try {\n transaction(this);\n } finally {\n --this.txCount;\n this.data = data;\n this.optimisticData = optimisticData;\n }\n };\n\n let fromOptimisticTransaction = false;\n\n if (typeof optimisticId === 'string') {\n // Note that there can be multiple layers with the same optimisticId.\n // When removeOptimistic(id) is called for that id, all matching layers\n // will be removed, and the remaining layers will be reapplied.\n this.optimisticData = this.optimisticData.addLayer(optimisticId, perform);\n fromOptimisticTransaction = true;\n } else if (optimisticId === null) {\n // Ensure both this.data and this.optimisticData refer to the root\n // (non-optimistic) layer of the cache during the transaction. Note\n // that this.data could be a Layer if we are currently executing an\n // optimistic transaction function, but otherwise will always be an\n // EntityStore.Root instance.\n perform(this.data);\n } else {\n // Otherwise, leave this.data and this.optimisticData unchanged and\n // run the transaction with broadcast batching.\n perform();\n }\n\n // This broadcast does nothing if this.txCount > 0.\n this.broadcastWatches(fromOptimisticTransaction);\n }\n\n public transformDocument(document: DocumentNode): DocumentNode {\n if (this.addTypename) {\n let result = this.typenameDocumentCache.get(document);\n if (!result) {\n result = addTypenameToDocument(document);\n this.typenameDocumentCache.set(document, result);\n // If someone calls transformDocument and then mistakenly passes the\n // result back into an API that also calls transformDocument, make sure\n // we don't keep creating new query documents.\n this.typenameDocumentCache.set(result, result);\n }\n return result;\n }\n return document;\n }\n\n protected broadcastWatches(fromOptimisticTransaction?: boolean) {\n if (!this.txCount) {\n this.watches.forEach(c => this.maybeBroadcastWatch(c, fromOptimisticTransaction));\n }\n }\n\n private maybeBroadcastWatch = wrap((\n c: Cache.WatchOptions,\n fromOptimisticTransaction?: boolean,\n ) => {\n return this.broadcastWatch.call(this, c, !!fromOptimisticTransaction);\n }, {\n makeCacheKey: (c: Cache.WatchOptions) => {\n // Return a cache key (thus enabling result caching) only if we're\n // currently using a data store that can track cache dependencies.\n const store = c.optimistic ? this.optimisticData : this.data;\n if (supportsResultCaching(store)) {\n const { optimistic, rootId, variables } = c;\n return store.makeCacheKey(\n c.query,\n // Different watches can have the same query, optimistic\n // status, rootId, and variables, but if their callbacks are\n // different, the (identical) result needs to be delivered to\n // each distinct callback. The easiest way to achieve that\n // separation is to include c.callback in the cache key for\n // maybeBroadcastWatch calls. See issue #5733.\n c.callback,\n JSON.stringify({ optimistic, rootId, variables }),\n );\n }\n }\n });\n\n private watchDep = dep();\n\n // This method is wrapped by maybeBroadcastWatch, which is called by\n // broadcastWatches, so that we compute and broadcast results only when\n // the data that would be broadcast might have changed. It would be\n // simpler to check for changes after recomputing a result but before\n // broadcasting it, but this wrapping approach allows us to skip both\n // the recomputation and the broadcast, in most cases.\n private broadcastWatch(\n c: Cache.WatchOptions,\n fromOptimisticTransaction: boolean,\n ) {\n // First, invalidate any other maybeBroadcastWatch wrapper functions\n // currently depending on this Cache.WatchOptions object (including\n // the one currently calling broadcastWatch), so they will be included\n // in the next broadcast, even if the result they receive is the same\n // as the previous result they received. This is important because we\n // are about to deliver a different result to c.callback, so any\n // previous results should have a chance to be redelivered.\n this.watchDep.dirty(c);\n\n // Next, re-depend on this.watchDep for just this invocation of\n // maybeBroadcastWatch (this is a no-op if broadcastWatch was not\n // called by maybeBroadcastWatch). This allows only the most recent\n // maybeBroadcastWatch invocation for this watcher to remain cached,\n // enabling re-broadcast of previous results even if they have not\n // changed since they were previously delivered.\n this.watchDep(c);\n\n const diff = this.diff({\n query: c.query,\n variables: c.variables,\n optimistic: c.optimistic,\n });\n\n if (c.optimistic && fromOptimisticTransaction) {\n diff.fromOptimisticTransaction = true;\n }\n\n c.callback(diff);\n }\n}\n","// Most JavaScript environments do not need the workarounds implemented in\n// fixPolyfills.native.ts, so importing fixPolyfills.ts merely imports\n// this empty module, adding nothing to bundle sizes or execution times.\n// When bundling for React Native, we substitute fixPolyfills.native.js\n// for fixPolyfills.js (see the \"react-native\" section of package.json),\n// to work around problems with Map and Set polyfills in older versions of\n// React Native (which should have been fixed in react-native@0.59.0):\n// https://github.com/apollographql/apollo-client/pull/5962\n","import { __assign } from \"tslib\";\nimport { wrap } from 'optimism';\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { isField, resultKeyNameFromField, isReference, makeReference, createFragmentMap, shouldInclude, addTypenameToDocument, getDefaultValues, getFragmentDefinitions, getMainDefinition, getQueryDefinition, maybeDeepFreeze, mergeDeepArray, getFragmentFromSelection, } from \"../../utilities/index.js\";\nimport { supportsResultCaching } from \"./entityStore.js\";\nimport { getTypenameFromStoreObject } from \"./helpers.js\";\nimport { MissingFieldError } from \"../core/types/common.js\";\n;\nfunction missingFromInvariant(err, context) {\n return new MissingFieldError(err.message, context.path.slice(), context.query, context.clientOnly, context.variables);\n}\nvar StoreReader = (function () {\n function StoreReader(config) {\n var _this = this;\n this.config = config;\n this.executeSelectionSet = wrap(function (options) { return _this.execSelectionSetImpl(options); }, {\n keyArgs: function (options) {\n return [\n options.selectionSet,\n options.objectOrReference,\n options.context,\n ];\n },\n makeCacheKey: function (selectionSet, parent, context) {\n if (supportsResultCaching(context.store)) {\n return context.store.makeCacheKey(selectionSet, isReference(parent) ? parent.__ref : parent, context.varString);\n }\n }\n });\n this.knownResults = new WeakMap();\n this.executeSubSelectedArray = wrap(function (options) {\n return _this.execSubSelectedArrayImpl(options);\n }, {\n makeCacheKey: function (_a) {\n var field = _a.field, array = _a.array, context = _a.context;\n if (supportsResultCaching(context.store)) {\n return context.store.makeCacheKey(field, array, context.varString);\n }\n }\n });\n this.config = __assign({ addTypename: true }, config);\n }\n StoreReader.prototype.diffQueryAgainstStore = function (_a) {\n var store = _a.store, query = _a.query, _b = _a.rootId, rootId = _b === void 0 ? 'ROOT_QUERY' : _b, variables = _a.variables, _c = _a.returnPartialData, returnPartialData = _c === void 0 ? true : _c;\n var policies = this.config.cache.policies;\n variables = __assign(__assign({}, getDefaultValues(getQueryDefinition(query))), variables);\n var execResult = this.executeSelectionSet({\n selectionSet: getMainDefinition(query).selectionSet,\n objectOrReference: makeReference(rootId),\n context: {\n store: store,\n query: query,\n policies: policies,\n variables: variables,\n varString: JSON.stringify(variables),\n fragmentMap: createFragmentMap(getFragmentDefinitions(query)),\n path: [],\n clientOnly: false,\n },\n });\n var hasMissingFields = execResult.missing && execResult.missing.length > 0;\n if (hasMissingFields && !returnPartialData) {\n throw execResult.missing[0];\n }\n return {\n result: execResult.result,\n missing: execResult.missing,\n complete: !hasMissingFields,\n };\n };\n StoreReader.prototype.isFresh = function (result, parent, selectionSet, context) {\n if (supportsResultCaching(context.store) &&\n this.knownResults.get(result) === selectionSet) {\n var latest = this.executeSelectionSet.peek(selectionSet, parent, context);\n if (latest && result === latest.result) {\n return true;\n }\n }\n return false;\n };\n StoreReader.prototype.execSelectionSetImpl = function (_a) {\n var _this = this;\n var selectionSet = _a.selectionSet, objectOrReference = _a.objectOrReference, context = _a.context;\n if (isReference(objectOrReference) &&\n !context.policies.rootTypenamesById[objectOrReference.__ref] &&\n !context.store.has(objectOrReference.__ref)) {\n return {\n result: {},\n missing: [missingFromInvariant(process.env.NODE_ENV === \"production\" ? new InvariantError(4) : new InvariantError(\"Dangling reference to missing \" + objectOrReference.__ref + \" object\"), context)],\n };\n }\n var variables = context.variables, policies = context.policies, store = context.store;\n var objectsToMerge = [];\n var finalResult = { result: null };\n var typename = store.getFieldValue(objectOrReference, \"__typename\");\n if (this.config.addTypename &&\n typeof typename === \"string\" &&\n !policies.rootIdsByTypename[typename]) {\n objectsToMerge.push({ __typename: typename });\n }\n function getMissing() {\n return finalResult.missing || (finalResult.missing = []);\n }\n function handleMissing(result) {\n var _a;\n if (result.missing)\n (_a = getMissing()).push.apply(_a, result.missing);\n return result.result;\n }\n var workSet = new Set(selectionSet.selections);\n workSet.forEach(function (selection) {\n var _a;\n if (!shouldInclude(selection, variables))\n return;\n if (isField(selection)) {\n var fieldValue = policies.readField({\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables,\n from: objectOrReference,\n }, context);\n var resultName = resultKeyNameFromField(selection);\n context.path.push(resultName);\n var wasClientOnly = context.clientOnly;\n context.clientOnly = wasClientOnly || !!(selection.directives &&\n selection.directives.some(function (d) { return d.name.value === \"client\"; }));\n if (fieldValue === void 0) {\n if (!addTypenameToDocument.added(selection)) {\n getMissing().push(missingFromInvariant(process.env.NODE_ENV === \"production\" ? new InvariantError(5) : new InvariantError(\"Can't find field '\" + selection.name.value + \"' on \" + (isReference(objectOrReference)\n ? objectOrReference.__ref + \" object\"\n : \"object \" + JSON.stringify(objectOrReference, null, 2))), context));\n }\n }\n else if (Array.isArray(fieldValue)) {\n fieldValue = handleMissing(_this.executeSubSelectedArray({\n field: selection,\n array: fieldValue,\n context: context,\n }));\n }\n else if (!selection.selectionSet) {\n if (process.env.NODE_ENV !== 'production') {\n assertSelectionSetForIdValue(context.store, selection, fieldValue);\n maybeDeepFreeze(fieldValue);\n }\n }\n else if (fieldValue != null) {\n fieldValue = handleMissing(_this.executeSelectionSet({\n selectionSet: selection.selectionSet,\n objectOrReference: fieldValue,\n context: context,\n }));\n }\n if (fieldValue !== void 0) {\n objectsToMerge.push((_a = {}, _a[resultName] = fieldValue, _a));\n }\n context.clientOnly = wasClientOnly;\n invariant(context.path.pop() === resultName);\n }\n else {\n var fragment = getFragmentFromSelection(selection, context.fragmentMap);\n if (fragment && policies.fragmentMatches(fragment, typename)) {\n fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n }\n });\n finalResult.result = mergeDeepArray(objectsToMerge);\n if (process.env.NODE_ENV !== 'production') {\n Object.freeze(finalResult.result);\n }\n this.knownResults.set(finalResult.result, selectionSet);\n return finalResult;\n };\n StoreReader.prototype.execSubSelectedArrayImpl = function (_a) {\n var _this = this;\n var field = _a.field, array = _a.array, context = _a.context;\n var missing;\n function handleMissing(childResult, i) {\n if (childResult.missing) {\n missing = missing || [];\n missing.push.apply(missing, childResult.missing);\n }\n invariant(context.path.pop() === i);\n return childResult.result;\n }\n if (field.selectionSet) {\n array = array.filter(context.store.canRead);\n }\n array = array.map(function (item, i) {\n if (item === null) {\n return null;\n }\n context.path.push(i);\n if (Array.isArray(item)) {\n return handleMissing(_this.executeSubSelectedArray({\n field: field,\n array: item,\n context: context,\n }), i);\n }\n if (field.selectionSet) {\n return handleMissing(_this.executeSelectionSet({\n selectionSet: field.selectionSet,\n objectOrReference: item,\n context: context,\n }), i);\n }\n if (process.env.NODE_ENV !== 'production') {\n assertSelectionSetForIdValue(context.store, field, item);\n }\n invariant(context.path.pop() === i);\n return item;\n });\n if (process.env.NODE_ENV !== 'production') {\n Object.freeze(array);\n }\n return { result: array, missing: missing };\n };\n return StoreReader;\n}());\nexport { StoreReader };\nfunction assertSelectionSetForIdValue(store, field, fieldValue) {\n if (!field.selectionSet) {\n var workSet_1 = new Set([fieldValue]);\n workSet_1.forEach(function (value) {\n if (value && typeof value === \"object\") {\n process.env.NODE_ENV === \"production\" ? invariant(!isReference(value), 6) : invariant(!isReference(value), \"Missing selection set for object of type \" + getTypenameFromStoreObject(store, value) + \" returned for query field \" + field.name.value);\n Object.values(value).forEach(workSet_1.add, workSet_1);\n }\n });\n }\n}\n//# sourceMappingURL=readFromStore.js.map","import {\n DocumentNode,\n FieldNode,\n SelectionSetNode,\n} from 'graphql';\nimport { wrap, OptimisticWrapperFunction } from 'optimism';\nimport { invariant, InvariantError } from 'ts-invariant';\n\nimport {\n isField,\n resultKeyNameFromField,\n Reference,\n isReference,\n makeReference,\n StoreObject,\n createFragmentMap,\n FragmentMap,\n shouldInclude,\n addTypenameToDocument,\n getDefaultValues,\n getFragmentDefinitions,\n getMainDefinition,\n getQueryDefinition,\n maybeDeepFreeze,\n mergeDeepArray,\n getFragmentFromSelection,\n} from '../../utilities';\nimport { Cache } from '../core/types/Cache';\nimport {\n DiffQueryAgainstStoreOptions,\n NormalizedCache,\n ReadMergeModifyContext,\n} from './types';\nimport { supportsResultCaching } from './entityStore';\nimport { getTypenameFromStoreObject } from './helpers';\nimport { Policies } from './policies';\nimport { InMemoryCache } from './inMemoryCache';\nimport { MissingFieldError } from '../core/types/common';\n\nexport type VariableMap = { [name: string]: any };\n\ninterface ReadContext extends ReadMergeModifyContext {\n query: DocumentNode;\n policies: Policies;\n fragmentMap: FragmentMap;\n path: (string | number)[];\n clientOnly: boolean;\n};\n\nexport type ExecResult = {\n result: R;\n missing?: MissingFieldError[];\n};\n\nfunction missingFromInvariant(\n err: InvariantError,\n context: ReadContext,\n) {\n return new MissingFieldError(\n err.message,\n context.path.slice(),\n context.query,\n context.clientOnly,\n context.variables,\n );\n}\n\ntype ExecSelectionSetOptions = {\n selectionSet: SelectionSetNode;\n objectOrReference: StoreObject | Reference;\n context: ReadContext;\n};\n\ntype ExecSubSelectedArrayOptions = {\n field: FieldNode;\n array: any[];\n context: ReadContext;\n};\n\nexport interface StoreReaderConfig {\n cache: InMemoryCache,\n addTypename?: boolean;\n}\n\nexport class StoreReader {\n constructor(private config: StoreReaderConfig) {\n this.config = { addTypename: true, ...config };\n }\n\n /**\n * Given a store and a query, return as much of the result as possible and\n * identify if any data was missing from the store.\n * @param {DocumentNode} query A parsed GraphQL query document\n * @param {Store} store The Apollo Client store object\n * @return {result: Object, complete: [boolean]}\n */\n public diffQueryAgainstStore({\n store,\n query,\n rootId = 'ROOT_QUERY',\n variables,\n returnPartialData = true,\n }: DiffQueryAgainstStoreOptions): Cache.DiffResult {\n const policies = this.config.cache.policies;\n\n variables = {\n ...getDefaultValues(getQueryDefinition(query)),\n ...variables,\n };\n\n const execResult = this.executeSelectionSet({\n selectionSet: getMainDefinition(query).selectionSet,\n objectOrReference: makeReference(rootId),\n context: {\n store,\n query,\n policies,\n variables,\n varString: JSON.stringify(variables),\n fragmentMap: createFragmentMap(getFragmentDefinitions(query)),\n path: [],\n clientOnly: false,\n },\n });\n\n const hasMissingFields =\n execResult.missing && execResult.missing.length > 0;\n if (hasMissingFields && !returnPartialData) {\n throw execResult.missing![0];\n }\n\n return {\n result: execResult.result,\n missing: execResult.missing,\n complete: !hasMissingFields,\n };\n }\n\n public isFresh(\n result: Record,\n parent: StoreObject | Reference,\n selectionSet: SelectionSetNode,\n context: ReadMergeModifyContext,\n ): boolean {\n if (supportsResultCaching(context.store) &&\n this.knownResults.get(result) === selectionSet) {\n const latest = this.executeSelectionSet.peek(selectionSet, parent, context);\n if (latest && result === latest.result) {\n return true;\n }\n }\n return false;\n }\n\n // Cached version of execSelectionSetImpl.\n private executeSelectionSet: OptimisticWrapperFunction<\n [ExecSelectionSetOptions], // Actual arguments tuple type.\n ExecResult, // Actual return type.\n // Arguments type after keyArgs translation.\n [SelectionSetNode, StoreObject | Reference, ReadMergeModifyContext]\n > = wrap(options => this.execSelectionSetImpl(options), {\n keyArgs(options) {\n return [\n options.selectionSet,\n options.objectOrReference,\n options.context,\n ];\n },\n // Note that the parameters of makeCacheKey are determined by the\n // array returned by keyArgs.\n makeCacheKey(selectionSet, parent, context) {\n if (supportsResultCaching(context.store)) {\n return context.store.makeCacheKey(\n selectionSet,\n isReference(parent) ? parent.__ref : parent,\n context.varString,\n );\n }\n }\n });\n\n // Uncached version of executeSelectionSet.\n private execSelectionSetImpl({\n selectionSet,\n objectOrReference,\n context,\n }: ExecSelectionSetOptions): ExecResult {\n if (isReference(objectOrReference) &&\n !context.policies.rootTypenamesById[objectOrReference.__ref] &&\n !context.store.has(objectOrReference.__ref)) {\n return {\n result: {},\n missing: [missingFromInvariant(\n new InvariantError(\n `Dangling reference to missing ${objectOrReference.__ref} object`\n ),\n context,\n )],\n };\n }\n\n const { variables, policies, store } = context;\n const objectsToMerge: { [key: string]: any }[] = [];\n const finalResult: ExecResult = { result: null };\n const typename = store.getFieldValue(objectOrReference, \"__typename\");\n\n if (this.config.addTypename &&\n typeof typename === \"string\" &&\n !policies.rootIdsByTypename[typename]) {\n // Ensure we always include a default value for the __typename\n // field, if we have one, and this.config.addTypename is true. Note\n // that this field can be overridden by other merged objects.\n objectsToMerge.push({ __typename: typename });\n }\n\n function getMissing() {\n return finalResult.missing || (finalResult.missing = []);\n }\n\n function handleMissing(result: ExecResult): T {\n if (result.missing) getMissing().push(...result.missing);\n return result.result;\n }\n\n const workSet = new Set(selectionSet.selections);\n\n workSet.forEach(selection => {\n // Omit fields with directives @skip(if: ) or\n // @include(if: ).\n if (!shouldInclude(selection, variables)) return;\n\n if (isField(selection)) {\n let fieldValue = policies.readField({\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables,\n from: objectOrReference,\n }, context);\n\n const resultName = resultKeyNameFromField(selection);\n context.path.push(resultName);\n\n // If this field has an @client directive, then the field and\n // everything beneath it is client-only, meaning it will never be\n // sent to the server.\n const wasClientOnly = context.clientOnly;\n // Once we enter a client-only subtree of the query, we can avoid\n // repeatedly checking selection.directives.\n context.clientOnly = wasClientOnly || !!(\n // We don't use the hasDirectives helper here, because it looks\n // for directives anywhere inside the AST node, whereas we only\n // care about directives directly attached to this field.\n selection.directives &&\n selection.directives.some(d => d.name.value === \"client\")\n );\n\n if (fieldValue === void 0) {\n if (!addTypenameToDocument.added(selection)) {\n getMissing().push(\n missingFromInvariant(\n new InvariantError(`Can't find field '${\n selection.name.value\n }' on ${\n isReference(objectOrReference)\n ? objectOrReference.__ref + \" object\"\n : \"object \" + JSON.stringify(objectOrReference, null, 2)\n }`),\n context,\n ),\n );\n }\n\n } else if (Array.isArray(fieldValue)) {\n fieldValue = handleMissing(this.executeSubSelectedArray({\n field: selection,\n array: fieldValue,\n context,\n }));\n\n } else if (!selection.selectionSet) {\n // If the field does not have a selection set, then we handle it\n // as a scalar value. However, that value should not contain any\n // Reference objects, and should be frozen in development, if it\n // happens to be an object that is mutable.\n if (process.env.NODE_ENV !== 'production') {\n assertSelectionSetForIdValue(\n context.store,\n selection,\n fieldValue,\n );\n maybeDeepFreeze(fieldValue);\n }\n\n } else if (fieldValue != null) {\n // In this case, because we know the field has a selection set,\n // it must be trying to query a GraphQLObjectType, which is why\n // fieldValue must be != null.\n fieldValue = handleMissing(this.executeSelectionSet({\n selectionSet: selection.selectionSet,\n objectOrReference: fieldValue as StoreObject | Reference,\n context,\n }));\n }\n\n if (fieldValue !== void 0) {\n objectsToMerge.push({ [resultName]: fieldValue });\n }\n\n context.clientOnly = wasClientOnly;\n\n invariant(context.path.pop() === resultName);\n\n } else {\n const fragment = getFragmentFromSelection(\n selection,\n context.fragmentMap,\n );\n\n if (fragment && policies.fragmentMatches(fragment, typename)) {\n fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n }\n });\n\n // Perform a single merge at the end so that we can avoid making more\n // defensive shallow copies than necessary.\n finalResult.result = mergeDeepArray(objectsToMerge);\n\n if (process.env.NODE_ENV !== 'production') {\n Object.freeze(finalResult.result);\n }\n\n // Store this result with its selection set so that we can quickly\n // recognize it again in the StoreReader#isFresh method.\n this.knownResults.set(finalResult.result, selectionSet);\n\n return finalResult;\n }\n\n private knownResults = new WeakMap, SelectionSetNode>();\n\n // Cached version of execSubSelectedArrayImpl.\n private executeSubSelectedArray = wrap((options: ExecSubSelectedArrayOptions) => {\n return this.execSubSelectedArrayImpl(options);\n }, {\n makeCacheKey({ field, array, context }) {\n if (supportsResultCaching(context.store)) {\n return context.store.makeCacheKey(\n field,\n array,\n context.varString,\n );\n }\n }\n });\n\n // Uncached version of executeSubSelectedArray.\n private execSubSelectedArrayImpl({\n field,\n array,\n context,\n }: ExecSubSelectedArrayOptions): ExecResult {\n let missing: MissingFieldError[] | undefined;\n\n function handleMissing(childResult: ExecResult, i: number): T {\n if (childResult.missing) {\n missing = missing || [];\n missing.push(...childResult.missing);\n }\n\n invariant(context.path.pop() === i);\n\n return childResult.result;\n }\n\n if (field.selectionSet) {\n array = array.filter(context.store.canRead);\n }\n\n array = array.map((item, i) => {\n // null value in array\n if (item === null) {\n return null;\n }\n\n context.path.push(i);\n\n // This is a nested array, recurse\n if (Array.isArray(item)) {\n return handleMissing(this.executeSubSelectedArray({\n field,\n array: item,\n context,\n }), i);\n }\n\n // This is an object, run the selection set on it\n if (field.selectionSet) {\n return handleMissing(this.executeSelectionSet({\n selectionSet: field.selectionSet,\n objectOrReference: item,\n context,\n }), i);\n }\n\n if (process.env.NODE_ENV !== 'production') {\n assertSelectionSetForIdValue(context.store, field, item);\n }\n\n invariant(context.path.pop() === i);\n\n return item;\n });\n\n if (process.env.NODE_ENV !== 'production') {\n Object.freeze(array);\n }\n\n return { result: array, missing };\n }\n}\n\nfunction assertSelectionSetForIdValue(\n store: NormalizedCache,\n field: FieldNode,\n fieldValue: any,\n) {\n if (!field.selectionSet) {\n const workSet = new Set([fieldValue]);\n workSet.forEach(value => {\n if (value && typeof value === \"object\") {\n invariant(\n !isReference(value),\n `Missing selection set for object of type ${\n getTypenameFromStoreObject(store, value)\n } returned for query field ${field.name.value}`,\n );\n Object.values(value).forEach(workSet.add, workSet);\n }\n });\n }\n}\n","import { __assign, __extends, __rest } from \"tslib\";\nimport { dep, KeyTrie } from 'optimism';\nimport { equal } from '@wry/equality';\nimport { isReference, makeReference, DeepMerger, maybeDeepFreeze, canUseWeakMap, } from \"../../utilities/index.js\";\nimport { hasOwn, fieldNameFromStoreName } from \"./helpers.js\";\nvar DELETE = Object.create(null);\nvar delModifier = function () { return DELETE; };\nvar INVALIDATE = Object.create(null);\nvar EntityStore = (function () {\n function EntityStore(policies, group) {\n var _this = this;\n this.policies = policies;\n this.group = group;\n this.data = Object.create(null);\n this.rootIds = Object.create(null);\n this.refs = Object.create(null);\n this.getFieldValue = function (objectOrReference, storeFieldName) { return maybeDeepFreeze(isReference(objectOrReference)\n ? _this.get(objectOrReference.__ref, storeFieldName)\n : objectOrReference && objectOrReference[storeFieldName]); };\n this.canRead = function (objOrRef) {\n return isReference(objOrRef)\n ? _this.has(objOrRef.__ref)\n : typeof objOrRef === \"object\";\n };\n this.toReference = function (objOrIdOrRef, mergeIntoStore) {\n if (typeof objOrIdOrRef === \"string\") {\n return makeReference(objOrIdOrRef);\n }\n if (isReference(objOrIdOrRef)) {\n return objOrIdOrRef;\n }\n var id = _this.policies.identify(objOrIdOrRef)[0];\n if (id) {\n var ref = makeReference(id);\n if (mergeIntoStore) {\n _this.merge(id, objOrIdOrRef);\n }\n return ref;\n }\n };\n }\n EntityStore.prototype.toObject = function () {\n return __assign({}, this.data);\n };\n EntityStore.prototype.has = function (dataId) {\n return this.lookup(dataId, true) !== void 0;\n };\n EntityStore.prototype.get = function (dataId, fieldName) {\n this.group.depend(dataId, fieldName);\n if (hasOwn.call(this.data, dataId)) {\n var storeObject = this.data[dataId];\n if (storeObject && hasOwn.call(storeObject, fieldName)) {\n return storeObject[fieldName];\n }\n }\n if (fieldName === \"__typename\" &&\n hasOwn.call(this.policies.rootTypenamesById, dataId)) {\n return this.policies.rootTypenamesById[dataId];\n }\n if (this instanceof Layer) {\n return this.parent.get(dataId, fieldName);\n }\n };\n EntityStore.prototype.lookup = function (dataId, dependOnExistence) {\n if (dependOnExistence)\n this.group.depend(dataId, \"__exists\");\n if (hasOwn.call(this.data, dataId)) {\n return this.data[dataId];\n }\n if (this instanceof Layer) {\n return this.parent.lookup(dataId, dependOnExistence);\n }\n if (this.policies.rootTypenamesById[dataId]) {\n return Object.create(null);\n }\n };\n EntityStore.prototype.merge = function (dataId, incoming) {\n var _this = this;\n var existing = this.lookup(dataId);\n var merged = new DeepMerger(storeObjectReconciler).merge(existing, incoming);\n this.data[dataId] = merged;\n if (merged !== existing) {\n delete this.refs[dataId];\n if (this.group.caching) {\n var fieldsToDirty_1 = Object.create(null);\n if (!existing)\n fieldsToDirty_1.__exists = 1;\n Object.keys(incoming).forEach(function (storeFieldName) {\n if (!existing || existing[storeFieldName] !== merged[storeFieldName]) {\n fieldsToDirty_1[storeFieldName] = 1;\n var fieldName = fieldNameFromStoreName(storeFieldName);\n if (fieldName !== storeFieldName &&\n !_this.policies.hasKeyArgs(merged.__typename, fieldName)) {\n fieldsToDirty_1[fieldName] = 1;\n }\n if (merged[storeFieldName] === void 0 && !(_this instanceof Layer)) {\n delete merged[storeFieldName];\n }\n }\n });\n Object.keys(fieldsToDirty_1).forEach(function (fieldName) { return _this.group.dirty(dataId, fieldName); });\n }\n }\n };\n EntityStore.prototype.modify = function (dataId, fields) {\n var _this = this;\n var storeObject = this.lookup(dataId);\n if (storeObject) {\n var changedFields_1 = Object.create(null);\n var needToMerge_1 = false;\n var allDeleted_1 = true;\n var sharedDetails_1 = {\n DELETE: DELETE,\n INVALIDATE: INVALIDATE,\n isReference: isReference,\n toReference: this.toReference,\n canRead: this.canRead,\n readField: function (fieldNameOrOptions, from) { return _this.policies.readField(typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from: from || makeReference(dataId),\n } : fieldNameOrOptions, { store: _this }); },\n };\n Object.keys(storeObject).forEach(function (storeFieldName) {\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var fieldValue = storeObject[storeFieldName];\n if (fieldValue === void 0)\n return;\n var modify = typeof fields === \"function\"\n ? fields\n : fields[storeFieldName] || fields[fieldName];\n if (modify) {\n var newValue = modify === delModifier ? DELETE :\n modify(maybeDeepFreeze(fieldValue), __assign(__assign({}, sharedDetails_1), { fieldName: fieldName,\n storeFieldName: storeFieldName, storage: _this.getStorage(dataId, storeFieldName) }));\n if (newValue === INVALIDATE) {\n _this.group.dirty(dataId, storeFieldName);\n }\n else {\n if (newValue === DELETE)\n newValue = void 0;\n if (newValue !== fieldValue) {\n changedFields_1[storeFieldName] = newValue;\n needToMerge_1 = true;\n fieldValue = newValue;\n }\n }\n }\n if (fieldValue !== void 0) {\n allDeleted_1 = false;\n }\n });\n if (needToMerge_1) {\n this.merge(dataId, changedFields_1);\n if (allDeleted_1) {\n if (this instanceof Layer) {\n this.data[dataId] = void 0;\n }\n else {\n delete this.data[dataId];\n }\n this.group.dirty(dataId, \"__exists\");\n }\n return true;\n }\n }\n return false;\n };\n EntityStore.prototype.delete = function (dataId, fieldName, args) {\n var _a;\n var storeObject = this.lookup(dataId);\n if (storeObject) {\n var typename = this.getFieldValue(storeObject, \"__typename\");\n var storeFieldName = fieldName && args\n ? this.policies.getStoreFieldName({ typename: typename, fieldName: fieldName, args: args })\n : fieldName;\n return this.modify(dataId, storeFieldName ? (_a = {},\n _a[storeFieldName] = delModifier,\n _a) : delModifier);\n }\n return false;\n };\n EntityStore.prototype.evict = function (options) {\n var evicted = false;\n if (options.id) {\n if (hasOwn.call(this.data, options.id)) {\n evicted = this.delete(options.id, options.fieldName, options.args);\n }\n if (this instanceof Layer) {\n evicted = this.parent.evict(options) || evicted;\n }\n if (options.fieldName || evicted) {\n this.group.dirty(options.id, options.fieldName || \"__exists\");\n }\n }\n return evicted;\n };\n EntityStore.prototype.clear = function () {\n this.replace(null);\n };\n EntityStore.prototype.extract = function () {\n var _this = this;\n var obj = this.toObject();\n var extraRootIds = [];\n this.getRootIdSet().forEach(function (id) {\n if (!hasOwn.call(_this.policies.rootTypenamesById, id)) {\n extraRootIds.push(id);\n }\n });\n if (extraRootIds.length) {\n obj.__META = { extraRootIds: extraRootIds.sort() };\n }\n return obj;\n };\n EntityStore.prototype.replace = function (newData) {\n var _this = this;\n Object.keys(this.data).forEach(function (dataId) {\n if (!(newData && hasOwn.call(newData, dataId))) {\n _this.delete(dataId);\n }\n });\n if (newData) {\n var __META = newData.__META, rest_1 = __rest(newData, [\"__META\"]);\n Object.keys(rest_1).forEach(function (dataId) {\n _this.merge(dataId, rest_1[dataId]);\n });\n if (__META) {\n __META.extraRootIds.forEach(this.retain, this);\n }\n }\n };\n EntityStore.prototype.retain = function (rootId) {\n return this.rootIds[rootId] = (this.rootIds[rootId] || 0) + 1;\n };\n EntityStore.prototype.release = function (rootId) {\n if (this.rootIds[rootId] > 0) {\n var count = --this.rootIds[rootId];\n if (!count)\n delete this.rootIds[rootId];\n return count;\n }\n return 0;\n };\n EntityStore.prototype.getRootIdSet = function (ids) {\n if (ids === void 0) { ids = new Set(); }\n Object.keys(this.rootIds).forEach(ids.add, ids);\n if (this instanceof Layer) {\n this.parent.getRootIdSet(ids);\n }\n else {\n Object.keys(this.policies.rootTypenamesById).forEach(ids.add, ids);\n }\n return ids;\n };\n EntityStore.prototype.gc = function () {\n var _this = this;\n var ids = this.getRootIdSet();\n var snapshot = this.toObject();\n ids.forEach(function (id) {\n if (hasOwn.call(snapshot, id)) {\n Object.keys(_this.findChildRefIds(id)).forEach(ids.add, ids);\n delete snapshot[id];\n }\n });\n var idsToRemove = Object.keys(snapshot);\n if (idsToRemove.length) {\n var root_1 = this;\n while (root_1 instanceof Layer)\n root_1 = root_1.parent;\n idsToRemove.forEach(function (id) { return root_1.delete(id); });\n }\n return idsToRemove;\n };\n EntityStore.prototype.findChildRefIds = function (dataId) {\n if (!hasOwn.call(this.refs, dataId)) {\n var found_1 = this.refs[dataId] = Object.create(null);\n var workSet_1 = new Set([this.data[dataId]]);\n var canTraverse_1 = function (obj) { return obj !== null && typeof obj === 'object'; };\n workSet_1.forEach(function (obj) {\n if (isReference(obj)) {\n found_1[obj.__ref] = true;\n }\n else if (canTraverse_1(obj)) {\n Object.values(obj)\n .filter(canTraverse_1)\n .forEach(workSet_1.add, workSet_1);\n }\n });\n }\n return this.refs[dataId];\n };\n EntityStore.prototype.makeCacheKey = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return this.group.keyMaker.lookupArray(args);\n };\n return EntityStore;\n}());\nexport { EntityStore };\nvar CacheGroup = (function () {\n function CacheGroup(caching) {\n this.caching = caching;\n this.d = null;\n this.keyMaker = new KeyTrie(canUseWeakMap);\n this.d = caching ? dep() : null;\n }\n CacheGroup.prototype.depend = function (dataId, storeFieldName) {\n if (this.d) {\n this.d(makeDepKey(dataId, storeFieldName));\n var fieldName = fieldNameFromStoreName(storeFieldName);\n if (fieldName !== storeFieldName) {\n this.d(makeDepKey(dataId, fieldName));\n }\n }\n };\n CacheGroup.prototype.dirty = function (dataId, storeFieldName) {\n if (this.d) {\n this.d.dirty(makeDepKey(dataId, storeFieldName));\n }\n };\n return CacheGroup;\n}());\nfunction makeDepKey(dataId, storeFieldName) {\n return storeFieldName + '#' + dataId;\n}\n(function (EntityStore) {\n var Root = (function (_super) {\n __extends(Root, _super);\n function Root(_a) {\n var policies = _a.policies, _b = _a.resultCaching, resultCaching = _b === void 0 ? true : _b, seed = _a.seed;\n var _this = _super.call(this, policies, new CacheGroup(resultCaching)) || this;\n _this.storageTrie = new KeyTrie(canUseWeakMap);\n _this.sharedLayerGroup = new CacheGroup(resultCaching);\n if (seed)\n _this.replace(seed);\n return _this;\n }\n Root.prototype.addLayer = function (layerId, replay) {\n return new Layer(layerId, this, replay, this.sharedLayerGroup);\n };\n Root.prototype.removeLayer = function () {\n return this;\n };\n Root.prototype.getStorage = function () {\n return this.storageTrie.lookupArray(arguments);\n };\n return Root;\n }(EntityStore));\n EntityStore.Root = Root;\n})(EntityStore || (EntityStore = {}));\nvar Layer = (function (_super) {\n __extends(Layer, _super);\n function Layer(id, parent, replay, group) {\n var _this = _super.call(this, parent.policies, group) || this;\n _this.id = id;\n _this.parent = parent;\n _this.replay = replay;\n _this.group = group;\n replay(_this);\n return _this;\n }\n Layer.prototype.addLayer = function (layerId, replay) {\n return new Layer(layerId, this, replay, this.group);\n };\n Layer.prototype.removeLayer = function (layerId) {\n var _this = this;\n var parent = this.parent.removeLayer(layerId);\n if (layerId === this.id) {\n if (this.group.caching) {\n Object.keys(this.data).forEach(function (dataId) {\n if (_this.data[dataId] !== parent.lookup(dataId)) {\n _this.delete(dataId);\n }\n });\n }\n return parent;\n }\n if (parent === this.parent)\n return this;\n return parent.addLayer(this.id, this.replay);\n };\n Layer.prototype.toObject = function () {\n return __assign(__assign({}, this.parent.toObject()), this.data);\n };\n Layer.prototype.findChildRefIds = function (dataId) {\n var fromParent = this.parent.findChildRefIds(dataId);\n return hasOwn.call(this.data, dataId) ? __assign(__assign({}, fromParent), _super.prototype.findChildRefIds.call(this, dataId)) : fromParent;\n };\n Layer.prototype.getStorage = function () {\n var p = this.parent;\n while (p.parent)\n p = p.parent;\n return p.getStorage.apply(p, arguments);\n };\n return Layer;\n}(EntityStore));\nfunction storeObjectReconciler(existingObject, incomingObject, property) {\n var existingValue = existingObject[property];\n var incomingValue = incomingObject[property];\n return equal(existingValue, incomingValue) ? existingValue : incomingValue;\n}\nexport function supportsResultCaching(store) {\n return !!(store instanceof EntityStore && store.group.caching);\n}\n//# sourceMappingURL=entityStore.js.map","import { dep, OptimisticDependencyFunction, KeyTrie } from 'optimism';\nimport { equal } from '@wry/equality';\n\nimport {\n isReference,\n StoreValue,\n StoreObject,\n Reference,\n makeReference,\n DeepMerger,\n maybeDeepFreeze,\n canUseWeakMap,\n} from '../../utilities';\nimport { NormalizedCache, NormalizedCacheObject } from './types';\nimport { hasOwn, fieldNameFromStoreName } from './helpers';\nimport { Policies, StorageType } from './policies';\nimport { Cache } from '../core/types/Cache';\nimport {\n SafeReadonly,\n Modifier,\n Modifiers,\n ReadFieldOptions,\n ToReferenceFunction,\n CanReadFunction,\n} from '../core/types/common';\n\nconst DELETE: any = Object.create(null);\nconst delModifier: Modifier = () => DELETE;\nconst INVALIDATE: any = Object.create(null);\n\nexport abstract class EntityStore implements NormalizedCache {\n protected data: NormalizedCacheObject = Object.create(null);\n\n constructor(\n public readonly policies: Policies,\n public readonly group: CacheGroup,\n ) {}\n\n public abstract addLayer(\n layerId: string,\n replay: (layer: EntityStore) => any,\n ): Layer;\n\n public abstract removeLayer(layerId: string): EntityStore;\n\n // Although the EntityStore class is abstract, it contains concrete\n // implementations of the various NormalizedCache interface methods that\n // are inherited by the Root and Layer subclasses.\n\n public toObject(): NormalizedCacheObject {\n return { ...this.data };\n }\n\n public has(dataId: string): boolean {\n return this.lookup(dataId, true) !== void 0;\n }\n\n public get(dataId: string, fieldName: string): StoreValue {\n this.group.depend(dataId, fieldName);\n if (hasOwn.call(this.data, dataId)) {\n const storeObject = this.data[dataId];\n if (storeObject && hasOwn.call(storeObject, fieldName)) {\n return storeObject[fieldName];\n }\n }\n if (fieldName === \"__typename\" &&\n hasOwn.call(this.policies.rootTypenamesById, dataId)) {\n return this.policies.rootTypenamesById[dataId];\n }\n if (this instanceof Layer) {\n return this.parent.get(dataId, fieldName);\n }\n }\n\n protected lookup(dataId: string, dependOnExistence?: boolean): StoreObject | undefined {\n // The has method (above) calls lookup with dependOnExistence = true, so\n // that it can later be invalidated when we add or remove a StoreObject for\n // this dataId. Any consumer who cares about the contents of the StoreObject\n // should not rely on this dependency, since the contents could change\n // without the object being added or removed.\n if (dependOnExistence) this.group.depend(dataId, \"__exists\");\n\n if (hasOwn.call(this.data, dataId)) {\n return this.data[dataId];\n }\n\n if (this instanceof Layer) {\n return this.parent.lookup(dataId, dependOnExistence);\n }\n\n if (this.policies.rootTypenamesById[dataId]) {\n return Object.create(null);\n }\n }\n\n public merge(dataId: string, incoming: StoreObject): void {\n const existing = this.lookup(dataId);\n const merged: StoreObject =\n new DeepMerger(storeObjectReconciler).merge(existing, incoming);\n // Even if merged === existing, existing may have come from a lower\n // layer, so we always need to set this.data[dataId] on this level.\n this.data[dataId] = merged;\n if (merged !== existing) {\n delete this.refs[dataId];\n if (this.group.caching) {\n const fieldsToDirty: Record = Object.create(null);\n\n // If we added a new StoreObject where there was previously none, dirty\n // anything that depended on the existence of this dataId, such as the\n // EntityStore#has method.\n if (!existing) fieldsToDirty.__exists = 1;\n\n // Now invalidate dependents who called getFieldValue for any fields\n // that are changing as a result of this merge.\n Object.keys(incoming).forEach(storeFieldName => {\n if (!existing || existing[storeFieldName] !== merged[storeFieldName]) {\n // Always dirty the full storeFieldName, which may include\n // serialized arguments following the fieldName prefix.\n fieldsToDirty[storeFieldName] = 1;\n\n // Also dirty fieldNameFromStoreName(storeFieldName) if it's\n // different from storeFieldName and this field does not have\n // keyArgs configured, because that means the cache can't make\n // any assumptions about how field values with the same field\n // name but different arguments might be interrelated, so it\n // must err on the side of invalidating all field values that\n // share the same short fieldName, regardless of arguments.\n const fieldName = fieldNameFromStoreName(storeFieldName);\n if (fieldName !== storeFieldName &&\n !this.policies.hasKeyArgs(merged.__typename, fieldName)) {\n fieldsToDirty[fieldName] = 1;\n }\n\n // If merged[storeFieldName] has become undefined, and this is the\n // Root layer, actually delete the property from the merged object,\n // which is guaranteed to have been created fresh in this method.\n if (merged[storeFieldName] === void 0 && !(this instanceof Layer)) {\n delete merged[storeFieldName];\n }\n }\n });\n\n Object.keys(fieldsToDirty).forEach(\n fieldName => this.group.dirty(dataId, fieldName));\n }\n }\n }\n\n public modify(\n dataId: string,\n fields: Modifier | Modifiers,\n ): boolean {\n const storeObject = this.lookup(dataId);\n\n if (storeObject) {\n const changedFields: Record = Object.create(null);\n let needToMerge = false;\n let allDeleted = true;\n\n const sharedDetails = {\n DELETE,\n INVALIDATE,\n isReference,\n toReference: this.toReference,\n canRead: this.canRead,\n readField: (\n fieldNameOrOptions: string | ReadFieldOptions,\n from?: StoreObject | Reference,\n ) => this.policies.readField(\n typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from: from || makeReference(dataId),\n } : fieldNameOrOptions,\n { store: this },\n ),\n };\n\n Object.keys(storeObject).forEach(storeFieldName => {\n const fieldName = fieldNameFromStoreName(storeFieldName);\n let fieldValue = storeObject[storeFieldName];\n if (fieldValue === void 0) return;\n const modify: Modifier = typeof fields === \"function\"\n ? fields\n : fields[storeFieldName] || fields[fieldName];\n if (modify) {\n let newValue = modify === delModifier ? DELETE :\n modify(maybeDeepFreeze(fieldValue), {\n ...sharedDetails,\n fieldName,\n storeFieldName,\n storage: this.getStorage(dataId, storeFieldName),\n });\n if (newValue === INVALIDATE) {\n this.group.dirty(dataId, storeFieldName);\n } else {\n if (newValue === DELETE) newValue = void 0;\n if (newValue !== fieldValue) {\n changedFields[storeFieldName] = newValue;\n needToMerge = true;\n fieldValue = newValue;\n }\n }\n }\n if (fieldValue !== void 0) {\n allDeleted = false;\n }\n });\n\n if (needToMerge) {\n this.merge(dataId, changedFields);\n\n if (allDeleted) {\n if (this instanceof Layer) {\n this.data[dataId] = void 0;\n } else {\n delete this.data[dataId];\n }\n this.group.dirty(dataId, \"__exists\");\n }\n\n return true;\n }\n }\n\n return false;\n }\n\n // If called with only one argument, removes the entire entity\n // identified by dataId. If called with a fieldName as well, removes all\n // fields of that entity whose names match fieldName according to the\n // fieldNameFromStoreName helper function. If called with a fieldName\n // and variables, removes all fields of that entity whose names match fieldName\n // and whose arguments when cached exactly match the variables passed.\n public delete(\n dataId: string,\n fieldName?: string,\n args?: Record,\n ) {\n const storeObject = this.lookup(dataId);\n if (storeObject) {\n const typename = this.getFieldValue(storeObject, \"__typename\");\n const storeFieldName = fieldName && args\n ? this.policies.getStoreFieldName({ typename, fieldName, args })\n : fieldName;\n return this.modify(dataId, storeFieldName ? {\n [storeFieldName]: delModifier,\n } : delModifier);\n }\n return false;\n }\n\n public evict(options: Cache.EvictOptions): boolean {\n let evicted = false;\n if (options.id) {\n if (hasOwn.call(this.data, options.id)) {\n evicted = this.delete(options.id, options.fieldName, options.args);\n }\n if (this instanceof Layer) {\n evicted = this.parent.evict(options) || evicted;\n }\n // Always invalidate the field to trigger rereading of watched\n // queries, even if no cache data was modified by the eviction,\n // because queries may depend on computed fields with custom read\n // functions, whose values are not stored in the EntityStore.\n if (options.fieldName || evicted) {\n this.group.dirty(options.id, options.fieldName || \"__exists\");\n }\n }\n return evicted;\n }\n\n public clear(): void {\n this.replace(null);\n }\n\n public extract(): NormalizedCacheObject {\n const obj = this.toObject();\n const extraRootIds: string[] = [];\n this.getRootIdSet().forEach(id => {\n if (!hasOwn.call(this.policies.rootTypenamesById, id)) {\n extraRootIds.push(id);\n }\n });\n if (extraRootIds.length) {\n obj.__META = { extraRootIds: extraRootIds.sort() };\n }\n return obj;\n }\n\n public replace(newData: NormalizedCacheObject | null): void {\n Object.keys(this.data).forEach(dataId => {\n if (!(newData && hasOwn.call(newData, dataId))) {\n this.delete(dataId);\n }\n });\n if (newData) {\n const { __META, ...rest } = newData;\n Object.keys(rest).forEach(dataId => {\n this.merge(dataId, rest[dataId] as StoreObject);\n });\n if (__META) {\n __META.extraRootIds.forEach(this.retain, this);\n }\n }\n }\n\n public abstract getStorage(\n idOrObj: string | StoreObject,\n ...storeFieldNames: (string | number)[]\n ): StorageType;\n\n // Maps root entity IDs to the number of times they have been retained, minus\n // the number of times they have been released. Retained entities keep other\n // entities they reference (even indirectly) from being garbage collected.\n private rootIds: {\n [rootId: string]: number;\n } = Object.create(null);\n\n public retain(rootId: string): number {\n return this.rootIds[rootId] = (this.rootIds[rootId] || 0) + 1;\n }\n\n public release(rootId: string): number {\n if (this.rootIds[rootId] > 0) {\n const count = --this.rootIds[rootId];\n if (!count) delete this.rootIds[rootId];\n return count;\n }\n return 0;\n }\n\n // Return a Set of all the ID strings that have been retained by\n // this layer/root *and* any layers/roots beneath it.\n public getRootIdSet(ids = new Set()) {\n Object.keys(this.rootIds).forEach(ids.add, ids);\n if (this instanceof Layer) {\n this.parent.getRootIdSet(ids);\n } else {\n // Official singleton IDs like ROOT_QUERY and ROOT_MUTATION are\n // always considered roots for garbage collection, regardless of\n // their retainment counts in this.rootIds.\n Object.keys(this.policies.rootTypenamesById).forEach(ids.add, ids);\n }\n return ids;\n }\n\n // The goal of garbage collection is to remove IDs from the Root layer of the\n // store that are no longer reachable starting from any IDs that have been\n // explicitly retained (see retain and release, above). Returns an array of\n // dataId strings that were removed from the store.\n public gc() {\n const ids = this.getRootIdSet();\n const snapshot = this.toObject();\n ids.forEach(id => {\n if (hasOwn.call(snapshot, id)) {\n // Because we are iterating over an ECMAScript Set, the IDs we add here\n // will be visited in later iterations of the forEach loop only if they\n // were not previously contained by the Set.\n Object.keys(this.findChildRefIds(id)).forEach(ids.add, ids);\n // By removing IDs from the snapshot object here, we protect them from\n // getting removed from the root store layer below.\n delete snapshot[id];\n }\n });\n const idsToRemove = Object.keys(snapshot);\n if (idsToRemove.length) {\n let root: EntityStore = this;\n while (root instanceof Layer) root = root.parent;\n idsToRemove.forEach(id => root.delete(id));\n }\n return idsToRemove;\n }\n\n // Lazily tracks { __ref: } strings contained by this.data[dataId].\n private refs: {\n [dataId: string]: Record;\n } = Object.create(null);\n\n public findChildRefIds(dataId: string): Record {\n if (!hasOwn.call(this.refs, dataId)) {\n const found = this.refs[dataId] = Object.create(null);\n const workSet = new Set([this.data[dataId]]);\n // Within the store, only arrays and objects can contain child entity\n // references, so we can prune the traversal using this predicate:\n const canTraverse = (obj: any) => obj !== null && typeof obj === 'object';\n workSet.forEach(obj => {\n if (isReference(obj)) {\n found[obj.__ref] = true;\n } else if (canTraverse(obj)) {\n Object.values(obj!)\n // No need to add primitive values to the workSet, since they cannot\n // contain reference objects.\n .filter(canTraverse)\n .forEach(workSet.add, workSet);\n }\n });\n }\n return this.refs[dataId];\n }\n\n // Used to compute cache keys specific to this.group.\n public makeCacheKey(...args: any[]) {\n return this.group.keyMaker.lookupArray(args);\n }\n\n // Bound function that can be passed around to provide easy access to fields\n // of Reference objects as well as ordinary objects.\n public getFieldValue = (\n objectOrReference: StoreObject | Reference | undefined,\n storeFieldName: string,\n ) => maybeDeepFreeze(\n isReference(objectOrReference)\n ? this.get(objectOrReference.__ref, storeFieldName)\n : objectOrReference && objectOrReference[storeFieldName]\n ) as SafeReadonly;\n\n // Returns true for non-normalized StoreObjects and non-dangling\n // References, indicating that readField(name, objOrRef) has a chance of\n // working. Useful for filtering out dangling references from lists.\n public canRead: CanReadFunction = objOrRef => {\n return isReference(objOrRef)\n ? this.has(objOrRef.__ref)\n : typeof objOrRef === \"object\";\n };\n\n // Bound function that converts an id or an object with a __typename and\n // primary key fields to a Reference object. If called with a Reference object,\n // that same Reference object is returned. Pass true for mergeIntoStore to persist\n // an object into the store.\n public toReference: ToReferenceFunction = (\n objOrIdOrRef,\n mergeIntoStore,\n ) => {\n if (typeof objOrIdOrRef === \"string\") {\n return makeReference(objOrIdOrRef);\n }\n\n if (isReference(objOrIdOrRef)) {\n return objOrIdOrRef;\n }\n\n const [id] = this.policies.identify(objOrIdOrRef);\n\n if (id) {\n const ref = makeReference(id);\n if (mergeIntoStore) {\n this.merge(id, objOrIdOrRef);\n }\n return ref;\n }\n };\n}\n\nexport type FieldValueGetter = EntityStore[\"getFieldValue\"];\n\n// A single CacheGroup represents a set of one or more EntityStore objects,\n// typically the Root store in a CacheGroup by itself, and all active Layer\n// stores in a group together. A single EntityStore object belongs to only\n// one CacheGroup, store.group. The CacheGroup is responsible for tracking\n// dependencies, so store.group is helpful for generating unique keys for\n// cached results that need to be invalidated when/if those dependencies\n// change. If we used the EntityStore objects themselves as cache keys (that\n// is, store rather than store.group), the cache would become unnecessarily\n// fragmented by all the different Layer objects. Instead, the CacheGroup\n// approach allows all optimistic Layer objects in the same linked list to\n// belong to one CacheGroup, with the non-optimistic Root object belonging\n// to another CacheGroup, allowing resultCaching dependencies to be tracked\n// separately for optimistic and non-optimistic entity data.\nclass CacheGroup {\n private d: OptimisticDependencyFunction | null = null;\n\n constructor(public readonly caching: boolean) {\n this.d = caching ? dep() : null;\n }\n\n public depend(dataId: string, storeFieldName: string) {\n if (this.d) {\n this.d(makeDepKey(dataId, storeFieldName));\n const fieldName = fieldNameFromStoreName(storeFieldName);\n if (fieldName !== storeFieldName) {\n // Fields with arguments that contribute extra identifying\n // information to the fieldName (thus forming the storeFieldName)\n // depend not only on the full storeFieldName but also on the\n // short fieldName, so the field can be invalidated using either\n // level of specificity.\n this.d(makeDepKey(dataId, fieldName));\n }\n }\n }\n\n public dirty(dataId: string, storeFieldName: string) {\n if (this.d) {\n this.d.dirty(makeDepKey(dataId, storeFieldName));\n }\n }\n\n // Used by the EntityStore#makeCacheKey method to compute cache keys\n // specific to this CacheGroup.\n public readonly keyMaker = new KeyTrie(canUseWeakMap);\n}\n\nfunction makeDepKey(dataId: string, storeFieldName: string) {\n // Since field names cannot have '#' characters in them, this method\n // of joining the field name and the ID should be unambiguous, and much\n // cheaper than JSON.stringify([dataId, fieldName]).\n return storeFieldName + '#' + dataId;\n}\n\nexport namespace EntityStore {\n // Refer to this class as EntityStore.Root outside this namespace.\n export class Root extends EntityStore {\n // Although each Root instance gets its own unique CacheGroup object,\n // any Layer instances created by calling addLayer need to share a\n // single distinct CacheGroup object. Since this shared object must\n // outlast the Layer instances themselves, it needs to be created and\n // owned by the Root instance.\n private sharedLayerGroup: CacheGroup;\n\n constructor({\n policies,\n resultCaching = true,\n seed,\n }: {\n policies: Policies;\n resultCaching?: boolean;\n seed?: NormalizedCacheObject;\n }) {\n super(policies, new CacheGroup(resultCaching));\n this.sharedLayerGroup = new CacheGroup(resultCaching);\n if (seed) this.replace(seed);\n }\n\n public addLayer(\n layerId: string,\n replay: (layer: EntityStore) => any,\n ): Layer {\n // The replay function will be called in the Layer constructor.\n return new Layer(layerId, this, replay, this.sharedLayerGroup);\n }\n\n public removeLayer(): Root {\n // Never remove the root layer.\n return this;\n }\n\n public readonly storageTrie = new KeyTrie(canUseWeakMap);\n public getStorage(): StorageType {\n return this.storageTrie.lookupArray(arguments);\n }\n }\n}\n\n// Not exported, since all Layer instances are created by the addLayer method\n// of the EntityStore.Root class.\nclass Layer extends EntityStore {\n constructor(\n public readonly id: string,\n public readonly parent: EntityStore,\n public readonly replay: (layer: EntityStore) => any,\n public readonly group: CacheGroup,\n ) {\n super(parent.policies, group);\n replay(this);\n }\n\n public addLayer(\n layerId: string,\n replay: (layer: EntityStore) => any,\n ): Layer {\n return new Layer(layerId, this, replay, this.group);\n }\n\n public removeLayer(layerId: string): EntityStore {\n // Remove all instances of the given id, not just the first one.\n const parent = this.parent.removeLayer(layerId);\n\n if (layerId === this.id) {\n // Dirty every ID we're removing.\n if (this.group.caching) {\n Object.keys(this.data).forEach(dataId => {\n // If this.data[dataId] contains nothing different from what\n // lies beneath, we can avoid dirtying this dataId and all of\n // its fields, and simply discard this Layer. The only reason we\n // call this.delete here is to dirty the removed fields.\n if (this.data[dataId] !== (parent as Layer).lookup(dataId)) {\n this.delete(dataId);\n }\n });\n }\n return parent;\n }\n\n // No changes are necessary if the parent chain remains identical.\n if (parent === this.parent) return this;\n\n // Recreate this layer on top of the new parent.\n return parent.addLayer(this.id, this.replay);\n }\n\n public toObject(): NormalizedCacheObject {\n return {\n ...this.parent.toObject(),\n ...this.data,\n };\n }\n\n public findChildRefIds(dataId: string): Record {\n const fromParent = this.parent.findChildRefIds(dataId);\n return hasOwn.call(this.data, dataId) ? {\n ...fromParent,\n ...super.findChildRefIds(dataId),\n } : fromParent;\n }\n\n public getStorage(): StorageType {\n let p: EntityStore = this.parent;\n while ((p as Layer).parent) p = (p as Layer).parent;\n return p.getStorage.apply(p, arguments);\n }\n}\n\nfunction storeObjectReconciler(\n existingObject: StoreObject,\n incomingObject: StoreObject,\n property: string,\n): StoreValue {\n const existingValue = existingObject[property];\n const incomingValue = incomingObject[property];\n // Wherever there is a key collision, prefer the incoming value, unless\n // it is deeply equal to the existing value. It's worth checking deep\n // equality here (even though blindly returning incoming would be\n // logically correct) because preserving the referential identity of\n // existing data can prevent needless rereading and rerendering.\n return equal(existingValue, incomingValue) ? existingValue : incomingValue;\n}\n\nexport function supportsResultCaching(store: any): store is EntityStore {\n // When result caching is disabled, store.depend will be null.\n return !!(store instanceof EntityStore && store.group.caching);\n}\n","import { isReference, isField, DeepMerger, resultKeyNameFromField, shouldInclude, } from \"../../utilities/index.js\";\nexport var hasOwn = Object.prototype.hasOwnProperty;\nexport function getTypenameFromStoreObject(store, objectOrReference) {\n return isReference(objectOrReference)\n ? store.get(objectOrReference.__ref, \"__typename\")\n : objectOrReference && objectOrReference.__typename;\n}\nexport var TypeOrFieldNameRegExp = /^[_a-z][_0-9a-z]*/i;\nexport function fieldNameFromStoreName(storeFieldName) {\n var match = storeFieldName.match(TypeOrFieldNameRegExp);\n return match ? match[0] : storeFieldName;\n}\nexport function selectionSetMatchesResult(selectionSet, result, variables) {\n if (result && typeof result === \"object\") {\n return Array.isArray(result)\n ? result.every(function (item) { return selectionSetMatchesResult(selectionSet, item, variables); })\n : selectionSet.selections.every(function (field) {\n if (isField(field) && shouldInclude(field, variables)) {\n var key = resultKeyNameFromField(field);\n return hasOwn.call(result, key) &&\n (!field.selectionSet ||\n selectionSetMatchesResult(field.selectionSet, result[key], variables));\n }\n return true;\n });\n }\n return false;\n}\nexport function storeValueIsStoreObject(value) {\n return value !== null &&\n typeof value === \"object\" &&\n !isReference(value) &&\n !Array.isArray(value);\n}\nexport function makeProcessedFieldsMerger() {\n return new DeepMerger;\n}\n//# sourceMappingURL=helpers.js.map","import { SelectionSetNode } from 'graphql';\n\nimport { NormalizedCache } from './types';\nimport {\n Reference,\n isReference,\n StoreValue,\n StoreObject,\n isField,\n DeepMerger,\n resultKeyNameFromField,\n shouldInclude,\n} from '../../utilities';\n\nexport const hasOwn = Object.prototype.hasOwnProperty;\n\nexport function getTypenameFromStoreObject(\n store: NormalizedCache,\n objectOrReference: StoreObject | Reference,\n): string | undefined {\n return isReference(objectOrReference)\n ? store.get(objectOrReference.__ref, \"__typename\") as string\n : objectOrReference && objectOrReference.__typename;\n}\n\nexport const TypeOrFieldNameRegExp = /^[_a-z][_0-9a-z]*/i;\n\nexport function fieldNameFromStoreName(storeFieldName: string): string {\n const match = storeFieldName.match(TypeOrFieldNameRegExp);\n return match ? match[0] : storeFieldName;\n}\n\nexport function selectionSetMatchesResult(\n selectionSet: SelectionSetNode,\n result: Record,\n variables?: Record,\n): boolean {\n if (result && typeof result === \"object\") {\n return Array.isArray(result)\n ? result.every(item => selectionSetMatchesResult(selectionSet, item, variables))\n : selectionSet.selections.every(field => {\n if (isField(field) && shouldInclude(field, variables)) {\n const key = resultKeyNameFromField(field);\n return hasOwn.call(result, key) &&\n (!field.selectionSet ||\n selectionSetMatchesResult(field.selectionSet, result[key], variables));\n }\n // If the selection has been skipped with @skip(true) or\n // @include(false), it should not count against the matching. If\n // the selection is not a field, it must be a fragment (inline or\n // named). We will determine if selectionSetMatchesResult for that\n // fragment when we get to it, so for now we return true.\n return true;\n });\n }\n return false;\n}\n\nexport function storeValueIsStoreObject(\n value: StoreValue,\n): value is StoreObject {\n return value !== null &&\n typeof value === \"object\" &&\n !isReference(value) &&\n !Array.isArray(value);\n}\n\nexport function makeProcessedFieldsMerger() {\n return new DeepMerger;\n}\n","import { __assign } from \"tslib\";\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { equal } from '@wry/equality';\nimport { createFragmentMap, getFragmentFromSelection, getDefaultValues, getFragmentDefinitions, getOperationDefinition, getTypenameFromResult, makeReference, isField, resultKeyNameFromField, isReference, shouldInclude, hasDirectives, cloneDeep, } from \"../../utilities/index.js\";\nimport { makeProcessedFieldsMerger, fieldNameFromStoreName, storeValueIsStoreObject } from \"./helpers.js\";\n;\nvar StoreWriter = (function () {\n function StoreWriter(cache, reader) {\n this.cache = cache;\n this.reader = reader;\n }\n StoreWriter.prototype.writeToStore = function (_a) {\n var query = _a.query, result = _a.result, dataId = _a.dataId, store = _a.store, variables = _a.variables;\n var operationDefinition = getOperationDefinition(query);\n var merger = makeProcessedFieldsMerger();\n variables = __assign(__assign({}, getDefaultValues(operationDefinition)), variables);\n var ref = this.processSelectionSet({\n result: result || Object.create(null),\n dataId: dataId,\n selectionSet: operationDefinition.selectionSet,\n mergeTree: { map: new Map },\n context: {\n store: store,\n written: Object.create(null),\n merge: function (existing, incoming) {\n return merger.merge(existing, incoming);\n },\n variables: variables,\n varString: JSON.stringify(variables),\n fragmentMap: createFragmentMap(getFragmentDefinitions(query)),\n },\n });\n if (!isReference(ref)) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(7) : new InvariantError(\"Could not identify object \" + JSON.stringify(result));\n }\n store.retain(ref.__ref);\n return ref;\n };\n StoreWriter.prototype.processSelectionSet = function (_a) {\n var _this = this;\n var dataId = _a.dataId, result = _a.result, selectionSet = _a.selectionSet, context = _a.context, mergeTree = _a.mergeTree;\n var policies = this.cache.policies;\n var _b = policies.identify(result, selectionSet, context.fragmentMap), id = _b[0], keyObject = _b[1];\n dataId = dataId || id;\n if (\"string\" === typeof dataId) {\n var sets = context.written[dataId] || (context.written[dataId] = []);\n var ref = makeReference(dataId);\n if (sets.indexOf(selectionSet) >= 0)\n return ref;\n sets.push(selectionSet);\n if (this.reader && this.reader.isFresh(result, ref, selectionSet, context)) {\n return ref;\n }\n }\n var incomingFields = Object.create(null);\n if (keyObject) {\n incomingFields = context.merge(incomingFields, keyObject);\n }\n var typename = (dataId && policies.rootTypenamesById[dataId]) ||\n getTypenameFromResult(result, selectionSet, context.fragmentMap) ||\n (dataId && context.store.get(dataId, \"__typename\"));\n if (\"string\" === typeof typename) {\n incomingFields.__typename = typename;\n }\n var workSet = new Set(selectionSet.selections);\n workSet.forEach(function (selection) {\n var _a;\n if (!shouldInclude(selection, context.variables))\n return;\n if (isField(selection)) {\n var resultFieldKey = resultKeyNameFromField(selection);\n var value = result[resultFieldKey];\n if (typeof value !== 'undefined') {\n var storeFieldName = policies.getStoreFieldName({\n typename: typename,\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables,\n });\n var childTree = getChildMergeTree(mergeTree, storeFieldName);\n var incomingValue = _this.processFieldValue(value, selection, context, childTree);\n var childTypename = selection.selectionSet\n && context.store.getFieldValue(incomingValue, \"__typename\")\n || void 0;\n var merge = policies.getMergeFunction(typename, selection.name.value, childTypename);\n if (merge) {\n childTree.info = {\n field: selection,\n typename: typename,\n merge: merge,\n };\n }\n else {\n maybeRecycleChildMergeTree(mergeTree, storeFieldName);\n }\n incomingFields = context.merge(incomingFields, (_a = {},\n _a[storeFieldName] = incomingValue,\n _a));\n }\n else if (policies.usingPossibleTypes &&\n !hasDirectives([\"defer\", \"client\"], selection)) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(8) : new InvariantError(\"Missing field '\" + resultFieldKey + \"' in \" + JSON.stringify(result, null, 2).substring(0, 100));\n }\n }\n else {\n var fragment = getFragmentFromSelection(selection, context.fragmentMap);\n if (fragment &&\n policies.fragmentMatches(fragment, typename, result, context.variables)) {\n fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n }\n });\n if (\"string\" === typeof dataId) {\n var entityRef_1 = makeReference(dataId);\n if (mergeTree.map.size) {\n incomingFields = this.applyMerges(mergeTree, entityRef_1, incomingFields, context);\n }\n if (process.env.NODE_ENV !== \"production\") {\n var hasSelectionSet_1 = function (storeFieldName) {\n return fieldsWithSelectionSets_1.has(fieldNameFromStoreName(storeFieldName));\n };\n var fieldsWithSelectionSets_1 = new Set();\n workSet.forEach(function (selection) {\n if (isField(selection) && selection.selectionSet) {\n fieldsWithSelectionSets_1.add(selection.name.value);\n }\n });\n var hasMergeFunction_1 = function (storeFieldName) {\n var childTree = mergeTree.map.get(storeFieldName);\n return Boolean(childTree && childTree.info && childTree.info.merge);\n };\n Object.keys(incomingFields).forEach(function (storeFieldName) {\n if (hasSelectionSet_1(storeFieldName) &&\n !hasMergeFunction_1(storeFieldName)) {\n warnAboutDataLoss(entityRef_1, incomingFields, storeFieldName, context.store);\n }\n });\n }\n context.store.merge(dataId, incomingFields);\n return entityRef_1;\n }\n return incomingFields;\n };\n StoreWriter.prototype.processFieldValue = function (value, field, context, mergeTree) {\n var _this = this;\n if (!field.selectionSet || value === null) {\n return process.env.NODE_ENV === 'production' ? value : cloneDeep(value);\n }\n if (Array.isArray(value)) {\n return value.map(function (item, i) {\n var value = _this.processFieldValue(item, field, context, getChildMergeTree(mergeTree, i));\n maybeRecycleChildMergeTree(mergeTree, i);\n return value;\n });\n }\n return this.processSelectionSet({\n result: value,\n selectionSet: field.selectionSet,\n context: context,\n mergeTree: mergeTree,\n });\n };\n StoreWriter.prototype.applyMerges = function (mergeTree, existing, incoming, context, getStorageArgs) {\n var _a;\n var _this = this;\n if (mergeTree.map.size && !isReference(incoming)) {\n var e_1 = (!Array.isArray(incoming) &&\n (isReference(existing) || storeValueIsStoreObject(existing))) ? existing : void 0;\n var i_1 = incoming;\n if (e_1 && !getStorageArgs) {\n getStorageArgs = [isReference(e_1) ? e_1.__ref : e_1];\n }\n var changedFields_1;\n var getValue_1 = function (from, name) {\n return Array.isArray(from)\n ? (typeof name === \"number\" ? from[name] : void 0)\n : context.store.getFieldValue(from, String(name));\n };\n mergeTree.map.forEach(function (childTree, storeFieldName) {\n if (getStorageArgs) {\n getStorageArgs.push(storeFieldName);\n }\n var eVal = getValue_1(e_1, storeFieldName);\n var iVal = getValue_1(i_1, storeFieldName);\n var aVal = _this.applyMerges(childTree, eVal, iVal, context, getStorageArgs);\n if (aVal !== iVal) {\n changedFields_1 = changedFields_1 || new Map;\n changedFields_1.set(storeFieldName, aVal);\n }\n if (getStorageArgs) {\n invariant(getStorageArgs.pop() === storeFieldName);\n }\n });\n if (changedFields_1) {\n incoming = (Array.isArray(i_1) ? i_1.slice(0) : __assign({}, i_1));\n changedFields_1.forEach(function (value, name) {\n incoming[name] = value;\n });\n }\n }\n if (mergeTree.info) {\n return this.cache.policies.runMergeFunction(existing, incoming, mergeTree.info, context, getStorageArgs && (_a = context.store).getStorage.apply(_a, getStorageArgs));\n }\n return incoming;\n };\n return StoreWriter;\n}());\nexport { StoreWriter };\nvar emptyMergeTreePool = [];\nfunction getChildMergeTree(_a, name) {\n var map = _a.map;\n if (!map.has(name)) {\n map.set(name, emptyMergeTreePool.pop() || { map: new Map });\n }\n return map.get(name);\n}\nfunction maybeRecycleChildMergeTree(_a, name) {\n var map = _a.map;\n var childTree = map.get(name);\n if (childTree &&\n !childTree.info &&\n !childTree.map.size) {\n emptyMergeTreePool.push(childTree);\n map.delete(name);\n }\n}\nvar warnings = new Set();\nfunction warnAboutDataLoss(existingRef, incomingObj, storeFieldName, store) {\n var getChild = function (objOrRef) {\n var child = store.getFieldValue(objOrRef, storeFieldName);\n return typeof child === \"object\" && child;\n };\n var existing = getChild(existingRef);\n if (!existing)\n return;\n var incoming = getChild(incomingObj);\n if (!incoming)\n return;\n if (isReference(existing))\n return;\n if (equal(existing, incoming))\n return;\n if (Object.keys(existing).every(function (key) { return store.getFieldValue(incoming, key) !== void 0; })) {\n return;\n }\n var parentType = store.getFieldValue(existingRef, \"__typename\") ||\n store.getFieldValue(incomingObj, \"__typename\");\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var typeDotName = parentType + \".\" + fieldName;\n if (warnings.has(typeDotName))\n return;\n warnings.add(typeDotName);\n var childTypenames = [];\n if (!Array.isArray(existing) &&\n !Array.isArray(incoming)) {\n [existing, incoming].forEach(function (child) {\n var typename = store.getFieldValue(child, \"__typename\");\n if (typeof typename === \"string\" &&\n !childTypenames.includes(typename)) {\n childTypenames.push(typename);\n }\n });\n }\n process.env.NODE_ENV === \"production\" || invariant.warn(\"Cache data may be lost when replacing the \" + fieldName + \" field of a \" + parentType + \" object.\\n\\nTo address this problem (which is not a bug in Apollo Client), \" + (childTypenames.length\n ? \"either ensure all objects of type \" +\n childTypenames.join(\" and \") + \" have an ID or a custom merge function, or \"\n : \"\") + \"define a custom merge function for the \" + typeDotName + \" field, so InMemoryCache can safely merge these objects:\\n\\n existing: \" + JSON.stringify(existing).slice(0, 1000) + \"\\n incoming: \" + JSON.stringify(incoming).slice(0, 1000) + \"\\n\\nFor more information about these options, please refer to the documentation:\\n\\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\\n\");\n}\n//# sourceMappingURL=writeToStore.js.map","import { SelectionSetNode, FieldNode, DocumentNode } from 'graphql';\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { equal } from '@wry/equality';\n\nimport {\n createFragmentMap,\n FragmentMap,\n getFragmentFromSelection,\n getDefaultValues,\n getFragmentDefinitions,\n getOperationDefinition,\n getTypenameFromResult,\n makeReference,\n isField,\n resultKeyNameFromField,\n StoreValue,\n StoreObject,\n Reference,\n isReference,\n shouldInclude,\n hasDirectives,\n cloneDeep,\n} from '../../utilities';\n\nimport { NormalizedCache, ReadMergeModifyContext, MergeTree } from './types';\nimport { makeProcessedFieldsMerger, fieldNameFromStoreName, storeValueIsStoreObject } from './helpers';\nimport { StoreReader } from './readFromStore';\nimport { InMemoryCache } from './inMemoryCache';\nimport { EntityStore } from './entityStore';\n\nexport interface WriteContext extends ReadMergeModifyContext {\n readonly written: {\n [dataId: string]: SelectionSetNode[];\n };\n readonly fragmentMap?: FragmentMap;\n // General-purpose deep-merge function for use during writes.\n merge(existing: T, incoming: T): T;\n};\n\ninterface ProcessSelectionSetOptions {\n dataId?: string,\n result: Record;\n selectionSet: SelectionSetNode;\n context: WriteContext;\n mergeTree: MergeTree;\n}\n\nexport interface WriteToStoreOptions {\n query: DocumentNode;\n result: Object;\n dataId?: string;\n store: NormalizedCache;\n variables?: Object;\n}\n\nexport class StoreWriter {\n constructor(\n public readonly cache: InMemoryCache,\n private reader?: StoreReader,\n ) {}\n\n /**\n * Writes the result of a query to the store.\n *\n * @param result The result object returned for the query document.\n *\n * @param query The query document whose result we are writing to the store.\n *\n * @param store The {@link NormalizedCache} used by Apollo for the `data` portion of the store.\n *\n * @param variables A map from the name of a variable to its value. These variables can be\n * referenced by the query document.\n *\n * @return A `Reference` to the written object.\n */\n public writeToStore({\n query,\n result,\n dataId,\n store,\n variables,\n }: WriteToStoreOptions): Reference | undefined {\n const operationDefinition = getOperationDefinition(query)!;\n const merger = makeProcessedFieldsMerger();\n\n variables = {\n ...getDefaultValues(operationDefinition),\n ...variables!,\n };\n\n const ref = this.processSelectionSet({\n result: result || Object.create(null),\n dataId,\n selectionSet: operationDefinition.selectionSet,\n mergeTree: { map: new Map },\n context: {\n store,\n written: Object.create(null),\n merge(existing: T, incoming: T) {\n return merger.merge(existing, incoming) as T;\n },\n variables,\n varString: JSON.stringify(variables),\n fragmentMap: createFragmentMap(getFragmentDefinitions(query)),\n },\n });\n\n if (!isReference(ref)) {\n throw new InvariantError(`Could not identify object ${JSON.stringify(result)}`);\n }\n\n // Any IDs written explicitly to the cache will be retained as\n // reachable root IDs for garbage collection purposes. Although this\n // logic includes root IDs like ROOT_QUERY and ROOT_MUTATION, their\n // retainment counts are effectively ignored because cache.gc() always\n // includes them in its root ID set.\n store.retain(ref.__ref);\n\n return ref;\n }\n\n private processSelectionSet({\n dataId,\n result,\n selectionSet,\n context,\n // This object allows processSelectionSet to report useful information\n // to its callers without explicitly returning that information.\n mergeTree,\n }: ProcessSelectionSetOptions): StoreObject | Reference {\n const { policies } = this.cache;\n\n // Identify the result object, even if dataId was already provided,\n // since we always need keyObject below.\n const [id, keyObject] = policies.identify(\n result, selectionSet, context.fragmentMap);\n\n // If dataId was not provided, fall back to the id just generated by\n // policies.identify.\n dataId = dataId || id;\n\n if (\"string\" === typeof dataId) {\n // Avoid processing the same entity object using the same selection\n // set more than once. We use an array instead of a Set since most\n // entity IDs will be written using only one selection set, so the\n // size of this array is likely to be very small, meaning indexOf is\n // likely to be faster than Set.prototype.has.\n const sets = context.written[dataId] || (context.written[dataId] = []);\n const ref = makeReference(dataId);\n if (sets.indexOf(selectionSet) >= 0) return ref;\n sets.push(selectionSet);\n\n // If we're about to write a result object into the store, but we\n // happen to know that the exact same (===) result object would be\n // returned if we were to reread the result with the same inputs,\n // then we can skip the rest of the processSelectionSet work for\n // this object, and immediately return a Reference to it.\n if (this.reader && this.reader.isFresh(\n result,\n ref,\n selectionSet,\n context,\n )) {\n return ref;\n }\n }\n\n // This variable will be repeatedly updated using context.merge to\n // accumulate all fields that need to be written into the store.\n let incomingFields: StoreObject = Object.create(null);\n\n // Write any key fields that were used during identification, even if\n // they were not mentioned in the original query.\n if (keyObject) {\n incomingFields = context.merge(incomingFields, keyObject);\n }\n\n // If typename was not passed in, infer it. Note that typename is\n // always passed in for tricky-to-infer cases such as \"Query\" for\n // ROOT_QUERY.\n const typename: string | undefined =\n (dataId && policies.rootTypenamesById[dataId]) ||\n getTypenameFromResult(result, selectionSet, context.fragmentMap) ||\n (dataId && context.store.get(dataId, \"__typename\") as string);\n\n if (\"string\" === typeof typename) {\n incomingFields.__typename = typename;\n }\n\n const workSet = new Set(selectionSet.selections);\n\n workSet.forEach(selection => {\n if (!shouldInclude(selection, context.variables)) return;\n\n if (isField(selection)) {\n const resultFieldKey = resultKeyNameFromField(selection);\n const value = result[resultFieldKey];\n\n if (typeof value !== 'undefined') {\n const storeFieldName = policies.getStoreFieldName({\n typename,\n fieldName: selection.name.value,\n field: selection,\n variables: context.variables,\n });\n\n const childTree = getChildMergeTree(mergeTree, storeFieldName);\n\n let incomingValue =\n this.processFieldValue(value, selection, context, childTree);\n\n const childTypename = selection.selectionSet\n && context.store.getFieldValue(incomingValue as StoreObject, \"__typename\")\n || void 0;\n\n const merge = policies.getMergeFunction(\n typename,\n selection.name.value,\n childTypename,\n );\n\n if (merge) {\n childTree.info = {\n // TODO Check compatibility against any existing\n // childTree.field?\n field: selection,\n typename,\n merge,\n };\n } else {\n maybeRecycleChildMergeTree(mergeTree, storeFieldName);\n }\n\n incomingFields = context.merge(incomingFields, {\n [storeFieldName]: incomingValue,\n });\n\n } else if (\n policies.usingPossibleTypes &&\n !hasDirectives([\"defer\", \"client\"], selection)\n ) {\n throw new InvariantError(\n `Missing field '${resultFieldKey}' in ${JSON.stringify(\n result,\n null,\n 2,\n ).substring(0, 100)}`,\n );\n }\n } else {\n // This is not a field, so it must be a fragment, either inline or named\n const fragment = getFragmentFromSelection(\n selection,\n context.fragmentMap,\n );\n\n if (fragment &&\n // By passing result and context.variables, we enable\n // policies.fragmentMatches to bend the rules when typename is\n // not a known subtype of the fragment type condition, but the\n // result object contains all the keys requested by the\n // fragment, which strongly suggests the fragment probably\n // matched. This fuzzy matching behavior must be enabled by\n // including a regular expression string (such as \".*\" or\n // \"Prefix.*\" or \".*Suffix\") in the possibleTypes array for\n // specific supertypes; otherwise, all matching remains exact.\n // Fuzzy matches are remembered by the Policies object and\n // later used when reading from the cache. Since there is no\n // incoming result object to check when reading, reading does\n // not involve the same fuzzy inference, so the StoreReader\n // class calls policies.fragmentMatches without passing result\n // or context.variables. The flexibility of fuzzy matching\n // allows existing clients to accommodate previously unknown\n // __typename strings produced by server/schema changes, which\n // would otherwise be breaking changes.\n policies.fragmentMatches(fragment, typename, result, context.variables)) {\n fragment.selectionSet.selections.forEach(workSet.add, workSet);\n }\n }\n });\n\n if (\"string\" === typeof dataId) {\n const entityRef = makeReference(dataId);\n\n if (mergeTree.map.size) {\n incomingFields = this.applyMerges(mergeTree, entityRef, incomingFields, context);\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n const hasSelectionSet = (storeFieldName: string) =>\n fieldsWithSelectionSets.has(fieldNameFromStoreName(storeFieldName));\n const fieldsWithSelectionSets = new Set();\n workSet.forEach(selection => {\n if (isField(selection) && selection.selectionSet) {\n fieldsWithSelectionSets.add(selection.name.value);\n }\n });\n\n const hasMergeFunction = (storeFieldName: string) => {\n const childTree = mergeTree.map.get(storeFieldName);\n return Boolean(childTree && childTree.info && childTree.info.merge);\n };\n\n Object.keys(incomingFields).forEach(storeFieldName => {\n // If a merge function was defined for this field, trust that it\n // did the right thing about (not) clobbering data. If the field\n // has no selection set, it's a scalar field, so it doesn't need\n // a merge function (even if it's an object, like JSON data).\n if (hasSelectionSet(storeFieldName) &&\n !hasMergeFunction(storeFieldName)) {\n warnAboutDataLoss(\n entityRef,\n incomingFields,\n storeFieldName,\n context.store,\n );\n }\n });\n }\n\n context.store.merge(dataId, incomingFields);\n\n return entityRef;\n }\n\n return incomingFields;\n }\n\n private processFieldValue(\n value: any,\n field: FieldNode,\n context: WriteContext,\n mergeTree: MergeTree,\n ): StoreValue {\n if (!field.selectionSet || value === null) {\n // In development, we need to clone scalar values so that they can be\n // safely frozen with maybeDeepFreeze in readFromStore.ts. In production,\n // it's cheaper to store the scalar values directly in the cache.\n return process.env.NODE_ENV === 'production' ? value : cloneDeep(value);\n }\n\n if (Array.isArray(value)) {\n return value.map((item, i) => {\n const value = this.processFieldValue(\n item, field, context, getChildMergeTree(mergeTree, i));\n maybeRecycleChildMergeTree(mergeTree, i);\n return value;\n });\n }\n\n return this.processSelectionSet({\n result: value,\n selectionSet: field.selectionSet,\n context,\n mergeTree,\n });\n }\n\n private applyMerges(\n mergeTree: MergeTree,\n existing: StoreValue,\n incoming: T,\n context: ReadMergeModifyContext,\n getStorageArgs?: Parameters,\n ): T {\n if (mergeTree.map.size && !isReference(incoming)) {\n const e: StoreObject | Reference | undefined = (\n // Items in the same position in different arrays are not\n // necessarily related to each other, so when incoming is an array\n // we process its elements as if there was no existing data.\n !Array.isArray(incoming) &&\n // Likewise, existing must be either a Reference or a StoreObject\n // in order for its fields to be safe to merge with the fields of\n // the incoming object.\n (isReference(existing) || storeValueIsStoreObject(existing))\n ) ? existing : void 0;\n\n // This narrowing is implied by mergeTree.map.size > 0 and\n // !isReference(incoming), though TypeScript understandably cannot\n // hope to infer this type.\n const i = incoming as StoreObject | StoreValue[];\n\n // The options.storage objects provided to read and merge functions\n // are derived from the identity of the parent object plus a\n // sequence of storeFieldName strings/numbers identifying the nested\n // field name path of each field value to be merged.\n if (e && !getStorageArgs) {\n getStorageArgs = [isReference(e) ? e.__ref : e];\n }\n\n // It's possible that applying merge functions to this subtree will\n // not change the incoming data, so this variable tracks the fields\n // that did change, so we can create a new incoming object when (and\n // only when) at least one incoming field has changed. We use a Map\n // to preserve the type of numeric keys.\n let changedFields: Map | undefined;\n\n const getValue = (\n from: typeof e | typeof i,\n name: string | number,\n ): StoreValue => {\n return Array.isArray(from)\n ? (typeof name === \"number\" ? from[name] : void 0)\n : context.store.getFieldValue(from, String(name))\n };\n\n mergeTree.map.forEach((childTree, storeFieldName) => {\n if (getStorageArgs) {\n getStorageArgs.push(storeFieldName);\n }\n const eVal = getValue(e, storeFieldName);\n const iVal = getValue(i, storeFieldName);\n const aVal = this.applyMerges(\n childTree,\n eVal,\n iVal,\n context,\n getStorageArgs,\n );\n if (aVal !== iVal) {\n changedFields = changedFields || new Map;\n changedFields.set(storeFieldName, aVal);\n }\n if (getStorageArgs) {\n invariant(getStorageArgs.pop() === storeFieldName);\n }\n });\n\n if (changedFields) {\n // Shallow clone i so we can add changed fields to it.\n incoming = (Array.isArray(i) ? i.slice(0) : { ...i }) as T;\n changedFields.forEach((value, name) => {\n (incoming as any)[name] = value;\n });\n }\n }\n\n if (mergeTree.info) {\n return this.cache.policies.runMergeFunction(\n existing,\n incoming,\n mergeTree.info,\n context,\n getStorageArgs && context.store.getStorage(...getStorageArgs),\n );\n }\n\n return incoming;\n }\n}\n\nconst emptyMergeTreePool: MergeTree[] = [];\n\nfunction getChildMergeTree(\n { map }: MergeTree,\n name: string | number,\n): MergeTree {\n if (!map.has(name)) {\n map.set(name, emptyMergeTreePool.pop() || { map: new Map });\n }\n return map.get(name)!;\n}\n\nfunction maybeRecycleChildMergeTree(\n { map }: MergeTree,\n name: string | number,\n) {\n const childTree = map.get(name);\n if (childTree &&\n !childTree.info &&\n !childTree.map.size) {\n emptyMergeTreePool.push(childTree);\n map.delete(name);\n }\n}\n\nconst warnings = new Set();\n\n// Note that this function is unused in production, and thus should be\n// pruned by any well-configured minifier.\nfunction warnAboutDataLoss(\n existingRef: Reference,\n incomingObj: StoreObject,\n storeFieldName: string,\n store: NormalizedCache,\n) {\n const getChild = (objOrRef: StoreObject | Reference): StoreObject | false => {\n const child = store.getFieldValue(objOrRef, storeFieldName);\n return typeof child === \"object\" && child;\n };\n\n const existing = getChild(existingRef);\n if (!existing) return;\n\n const incoming = getChild(incomingObj);\n if (!incoming) return;\n\n // It's always safe to replace a reference, since it refers to data\n // safely stored elsewhere.\n if (isReference(existing)) return;\n\n // If the values are structurally equivalent, we do not need to worry\n // about incoming replacing existing.\n if (equal(existing, incoming)) return;\n\n // If we're replacing every key of the existing object, then the\n // existing data would be overwritten even if the objects were\n // normalized, so warning would not be helpful here.\n if (Object.keys(existing).every(\n key => store.getFieldValue(incoming, key) !== void 0)) {\n return;\n }\n\n const parentType =\n store.getFieldValue(existingRef, \"__typename\") ||\n store.getFieldValue(incomingObj, \"__typename\");\n const fieldName = fieldNameFromStoreName(storeFieldName);\n const typeDotName = `${parentType}.${fieldName}`;\n // Avoid warning more than once for the same type and field name.\n if (warnings.has(typeDotName)) return;\n warnings.add(typeDotName);\n\n const childTypenames: string[] = [];\n // Arrays do not have __typename fields, and always need a custom merge\n // function, even if their elements are normalized entities.\n if (!Array.isArray(existing) &&\n !Array.isArray(incoming)) {\n [existing, incoming].forEach(child => {\n const typename = store.getFieldValue(child, \"__typename\");\n if (typeof typename === \"string\" &&\n !childTypenames.includes(typename)) {\n childTypenames.push(typename);\n }\n });\n }\n\n invariant.warn(\n`Cache data may be lost when replacing the ${fieldName} field of a ${parentType} object.\n\nTo address this problem (which is not a bug in Apollo Client), ${\n childTypenames.length\n ? \"either ensure all objects of type \" +\n childTypenames.join(\" and \") + \" have an ID or a custom merge function, or \"\n : \"\"\n}define a custom merge function for the ${\n typeDotName\n} field, so InMemoryCache can safely merge these objects:\n\n existing: ${JSON.stringify(existing).slice(0, 1000)}\n incoming: ${JSON.stringify(incoming).slice(0, 1000)}\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n`);\n}\n","import { dep } from \"optimism\";\nimport { Slot } from \"@wry/context\";\nexport var cacheSlot = new Slot();\nfunction consumeAndIterate(set, callback) {\n if (set.size) {\n var items_1 = [];\n set.forEach(function (item) { return items_1.push(item); });\n set.clear();\n items_1.forEach(callback);\n }\n}\nvar cacheInfoMap = new WeakMap();\nfunction getCacheInfo(cache) {\n var info = cacheInfoMap.get(cache);\n if (!info) {\n cacheInfoMap.set(cache, info = {\n vars: new Set,\n dep: dep(),\n });\n }\n return info;\n}\nexport function forgetCache(cache) {\n getCacheInfo(cache).vars.forEach(function (rv) { return rv.forgetCache(cache); });\n}\nexport function recallCache(cache) {\n getCacheInfo(cache).vars.forEach(function (rv) { return rv.attachCache(cache); });\n}\nexport function makeVar(value) {\n var caches = new Set();\n var listeners = new Set();\n var rv = function (newValue) {\n if (arguments.length > 0) {\n if (value !== newValue) {\n value = newValue;\n caches.forEach(function (cache) {\n getCacheInfo(cache).dep.dirty(rv);\n broadcast(cache);\n });\n consumeAndIterate(listeners, function (listener) { return listener(value); });\n }\n }\n else {\n var cache = cacheSlot.getValue();\n if (cache) {\n attach(cache);\n getCacheInfo(cache).dep(rv);\n }\n }\n return value;\n };\n rv.onNextChange = function (listener) {\n listeners.add(listener);\n return function () {\n listeners.delete(listener);\n };\n };\n var attach = rv.attachCache = function (cache) {\n caches.add(cache);\n getCacheInfo(cache).vars.add(rv);\n return rv;\n };\n rv.forgetCache = function (cache) { return caches.delete(cache); };\n return rv;\n}\nfunction broadcast(cache) {\n if (cache.broadcastWatches) {\n cache.broadcastWatches();\n }\n}\n//# sourceMappingURL=reactiveVars.js.map","import { dep, OptimisticDependencyFunction } from \"optimism\";\nimport { Slot } from \"@wry/context\";\nimport { InMemoryCache } from \"./inMemoryCache\";\nimport { ApolloCache } from '../../core';\n\nexport interface ReactiveVar {\n (newValue?: T): T;\n onNextChange(listener: ReactiveListener): () => void;\n attachCache(cache: ApolloCache): this;\n forgetCache(cache: ApolloCache): boolean;\n}\n\nexport type ReactiveListener = (value: T) => any;\n\n// Contextual Slot that acquires its value when custom read functions are\n// called in Policies#readField.\nexport const cacheSlot = new Slot>();\n\n// A listener function could in theory cause another listener to be added\n// to the set while we're iterating over it, so it's important to commit\n// to the original elements of the set before we begin iterating. See\n// iterateObserversSafely for another example of this pattern.\nfunction consumeAndIterate(set: Set, callback: (item: T) => any) {\n if (set.size) {\n const items: T[] = [];\n set.forEach(item => items.push(item));\n set.clear();\n items.forEach(callback);\n }\n}\n\nconst cacheInfoMap = new WeakMap, {\n vars: Set>;\n dep: OptimisticDependencyFunction>;\n}>();\n\nfunction getCacheInfo(cache: ApolloCache) {\n let info = cacheInfoMap.get(cache)!;\n if (!info) {\n cacheInfoMap.set(cache, info = {\n vars: new Set,\n dep: dep(),\n });\n }\n return info;\n}\n\nexport function forgetCache(cache: ApolloCache) {\n getCacheInfo(cache).vars.forEach(rv => rv.forgetCache(cache));\n}\n\n// Calling forgetCache(cache) serves to silence broadcasts and allows the\n// cache to be garbage collected. However, the varsByCache WeakMap\n// preserves the set of reactive variables that were previously associated\n// with this cache, which makes it possible to \"recall\" the cache at a\n// later time, by reattaching it to those variables. If the cache has been\n// garbage collected in the meantime, because it is no longer reachable,\n// you won't be able to call recallCache(cache), and the cache will\n// automatically disappear from the varsByCache WeakMap.\nexport function recallCache(cache: ApolloCache) {\n getCacheInfo(cache).vars.forEach(rv => rv.attachCache(cache));\n}\n\nexport function makeVar(value: T): ReactiveVar {\n const caches = new Set>();\n const listeners = new Set>();\n\n const rv: ReactiveVar = function (newValue) {\n if (arguments.length > 0) {\n if (value !== newValue) {\n value = newValue!;\n caches.forEach(cache => {\n // Invalidate any fields with custom read functions that\n // consumed this variable, so query results involving those\n // fields will be recomputed the next time we read them.\n getCacheInfo(cache).dep.dirty(rv);\n // Broadcast changes to any caches that have previously read\n // from this variable.\n broadcast(cache);\n });\n // Finally, notify any listeners added via rv.onNextChange.\n consumeAndIterate(listeners, listener => listener(value));\n }\n } else {\n // When reading from the variable, obtain the current cache from\n // context via cacheSlot. This isn't entirely foolproof, but it's\n // the same system that powers varDep.\n const cache = cacheSlot.getValue();\n if (cache) {\n attach(cache);\n getCacheInfo(cache).dep(rv);\n }\n }\n\n return value;\n };\n\n rv.onNextChange = listener => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n };\n\n const attach = rv.attachCache = cache => {\n caches.add(cache);\n getCacheInfo(cache).vars.add(rv);\n return rv;\n };\n\n rv.forgetCache = cache => caches.delete(cache);\n\n return rv;\n}\n\ntype Broadcastable = ApolloCache & {\n // This method is protected in InMemoryCache, which we are ignoring, but\n // we still want some semblance of type safety when we call it.\n broadcastWatches?: InMemoryCache[\"broadcastWatches\"];\n};\n\nfunction broadcast(cache: Broadcastable) {\n if (cache.broadcastWatches) {\n cache.broadcastWatches();\n }\n}\n","import { __assign, __rest } from \"tslib\";\nimport { KeyTrie } from 'optimism';\nimport { invariant, InvariantError } from 'ts-invariant';\nimport { getFragmentFromSelection, isField, getTypenameFromResult, storeKeyNameFromField, argumentsObjectFromField, isReference, getStoreKeyName, canUseWeakMap, compact, } from \"../../utilities/index.js\";\nimport { hasOwn, fieldNameFromStoreName, storeValueIsStoreObject, selectionSetMatchesResult, TypeOrFieldNameRegExp, } from \"./helpers.js\";\nimport { cacheSlot } from \"./reactiveVars.js\";\nfunction argsFromFieldSpecifier(spec) {\n return spec.args !== void 0 ? spec.args :\n spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;\n}\nexport var defaultDataIdFromObject = function (_a, context) {\n var __typename = _a.__typename, id = _a.id, _id = _a._id;\n if (typeof __typename === \"string\") {\n if (context) {\n context.keyObject =\n id !== void 0 ? { id: id } :\n _id !== void 0 ? { _id: _id } :\n void 0;\n }\n if (id === void 0)\n id = _id;\n if (id !== void 0) {\n return __typename + \":\" + ((typeof id === \"number\" ||\n typeof id === \"string\") ? id : JSON.stringify(id));\n }\n }\n};\nvar nullKeyFieldsFn = function () { return void 0; };\nvar simpleKeyArgsFn = function (_args, context) { return context.fieldName; };\nvar mergeTrueFn = function (existing, incoming, _a) {\n var mergeObjects = _a.mergeObjects;\n return mergeObjects(existing, incoming);\n};\nvar mergeFalseFn = function (_, incoming) { return incoming; };\nvar Policies = (function () {\n function Policies(config) {\n this.config = config;\n this.typePolicies = Object.create(null);\n this.toBeAdded = Object.create(null);\n this.supertypeMap = new Map();\n this.fuzzySubtypes = new Map();\n this.rootIdsByTypename = Object.create(null);\n this.rootTypenamesById = Object.create(null);\n this.usingPossibleTypes = false;\n this.config = __assign({ dataIdFromObject: defaultDataIdFromObject }, config);\n this.cache = this.config.cache;\n this.setRootTypename(\"Query\");\n this.setRootTypename(\"Mutation\");\n this.setRootTypename(\"Subscription\");\n if (config.possibleTypes) {\n this.addPossibleTypes(config.possibleTypes);\n }\n if (config.typePolicies) {\n this.addTypePolicies(config.typePolicies);\n }\n }\n Policies.prototype.identify = function (object, selectionSet, fragmentMap) {\n var typename = selectionSet && fragmentMap\n ? getTypenameFromResult(object, selectionSet, fragmentMap)\n : object.__typename;\n if (typename === this.rootTypenamesById.ROOT_QUERY) {\n return [\"ROOT_QUERY\"];\n }\n var context = {\n typename: typename,\n selectionSet: selectionSet,\n fragmentMap: fragmentMap,\n };\n var id;\n var policy = typename && this.getTypePolicy(typename);\n var keyFn = policy && policy.keyFn || this.config.dataIdFromObject;\n while (keyFn) {\n var specifierOrId = keyFn(object, context);\n if (Array.isArray(specifierOrId)) {\n keyFn = keyFieldsFnFromSpecifier(specifierOrId);\n }\n else {\n id = specifierOrId;\n break;\n }\n }\n id = id ? String(id) : void 0;\n return context.keyObject ? [id, context.keyObject] : [id];\n };\n Policies.prototype.addTypePolicies = function (typePolicies) {\n var _this = this;\n Object.keys(typePolicies).forEach(function (typename) {\n var _a = typePolicies[typename], queryType = _a.queryType, mutationType = _a.mutationType, subscriptionType = _a.subscriptionType, incoming = __rest(_a, [\"queryType\", \"mutationType\", \"subscriptionType\"]);\n if (queryType)\n _this.setRootTypename(\"Query\", typename);\n if (mutationType)\n _this.setRootTypename(\"Mutation\", typename);\n if (subscriptionType)\n _this.setRootTypename(\"Subscription\", typename);\n if (hasOwn.call(_this.toBeAdded, typename)) {\n _this.toBeAdded[typename].push(incoming);\n }\n else {\n _this.toBeAdded[typename] = [incoming];\n }\n });\n };\n Policies.prototype.updateTypePolicy = function (typename, incoming) {\n var _this = this;\n var existing = this.getTypePolicy(typename);\n var keyFields = incoming.keyFields, fields = incoming.fields;\n function setMerge(existing, merge) {\n existing.merge =\n typeof merge === \"function\" ? merge :\n merge === true ? mergeTrueFn :\n merge === false ? mergeFalseFn :\n existing.merge;\n }\n setMerge(existing, incoming.merge);\n existing.keyFn =\n keyFields === false ? nullKeyFieldsFn :\n Array.isArray(keyFields) ? keyFieldsFnFromSpecifier(keyFields) :\n typeof keyFields === \"function\" ? keyFields :\n existing.keyFn;\n if (fields) {\n Object.keys(fields).forEach(function (fieldName) {\n var existing = _this.getFieldPolicy(typename, fieldName, true);\n var incoming = fields[fieldName];\n if (typeof incoming === \"function\") {\n existing.read = incoming;\n }\n else {\n var keyArgs = incoming.keyArgs, read = incoming.read, merge = incoming.merge;\n existing.keyFn =\n keyArgs === false ? simpleKeyArgsFn :\n Array.isArray(keyArgs) ? keyArgsFnFromSpecifier(keyArgs) :\n typeof keyArgs === \"function\" ? keyArgs :\n existing.keyFn;\n if (typeof read === \"function\") {\n existing.read = read;\n }\n setMerge(existing, merge);\n }\n if (existing.read && existing.merge) {\n existing.keyFn = existing.keyFn || simpleKeyArgsFn;\n }\n });\n }\n };\n Policies.prototype.setRootTypename = function (which, typename) {\n if (typename === void 0) { typename = which; }\n var rootId = \"ROOT_\" + which.toUpperCase();\n var old = this.rootTypenamesById[rootId];\n if (typename !== old) {\n process.env.NODE_ENV === \"production\" ? invariant(!old || old === which, 1) : invariant(!old || old === which, \"Cannot change root \" + which + \" __typename more than once\");\n if (old)\n delete this.rootIdsByTypename[old];\n this.rootIdsByTypename[typename] = rootId;\n this.rootTypenamesById[rootId] = typename;\n }\n };\n Policies.prototype.addPossibleTypes = function (possibleTypes) {\n var _this = this;\n this.usingPossibleTypes = true;\n Object.keys(possibleTypes).forEach(function (supertype) {\n _this.getSupertypeSet(supertype, true);\n possibleTypes[supertype].forEach(function (subtype) {\n _this.getSupertypeSet(subtype, true).add(supertype);\n var match = subtype.match(TypeOrFieldNameRegExp);\n if (!match || match[0] !== subtype) {\n _this.fuzzySubtypes.set(subtype, new RegExp(subtype));\n }\n });\n });\n };\n Policies.prototype.getTypePolicy = function (typename) {\n var _this = this;\n if (!hasOwn.call(this.typePolicies, typename)) {\n var policy_1 = this.typePolicies[typename] = Object.create(null);\n policy_1.fields = Object.create(null);\n var supertypes = this.supertypeMap.get(typename);\n if (supertypes && supertypes.size) {\n supertypes.forEach(function (supertype) {\n var _a = _this.getTypePolicy(supertype), fields = _a.fields, rest = __rest(_a, [\"fields\"]);\n Object.assign(policy_1, rest);\n Object.assign(policy_1.fields, fields);\n });\n }\n }\n var inbox = this.toBeAdded[typename];\n if (inbox && inbox.length) {\n this.updateTypePolicy(typename, compact.apply(void 0, inbox.splice(0)));\n }\n return this.typePolicies[typename];\n };\n Policies.prototype.getFieldPolicy = function (typename, fieldName, createIfMissing) {\n if (typename) {\n var fieldPolicies = this.getTypePolicy(typename).fields;\n return fieldPolicies[fieldName] || (createIfMissing && (fieldPolicies[fieldName] = Object.create(null)));\n }\n };\n Policies.prototype.getSupertypeSet = function (subtype, createIfMissing) {\n var supertypeSet = this.supertypeMap.get(subtype);\n if (!supertypeSet && createIfMissing) {\n this.supertypeMap.set(subtype, supertypeSet = new Set());\n }\n return supertypeSet;\n };\n Policies.prototype.fragmentMatches = function (fragment, typename, result, variables) {\n var _this = this;\n if (!fragment.typeCondition)\n return true;\n if (!typename)\n return false;\n var supertype = fragment.typeCondition.name.value;\n if (typename === supertype)\n return true;\n if (this.usingPossibleTypes &&\n this.supertypeMap.has(supertype)) {\n var typenameSupertypeSet = this.getSupertypeSet(typename, true);\n var workQueue_1 = [typenameSupertypeSet];\n var maybeEnqueue_1 = function (subtype) {\n var supertypeSet = _this.getSupertypeSet(subtype, false);\n if (supertypeSet &&\n supertypeSet.size &&\n workQueue_1.indexOf(supertypeSet) < 0) {\n workQueue_1.push(supertypeSet);\n }\n };\n var needToCheckFuzzySubtypes = !!(result && this.fuzzySubtypes.size);\n var checkingFuzzySubtypes = false;\n for (var i = 0; i < workQueue_1.length; ++i) {\n var supertypeSet = workQueue_1[i];\n if (supertypeSet.has(supertype)) {\n if (!typenameSupertypeSet.has(supertype)) {\n if (checkingFuzzySubtypes) {\n process.env.NODE_ENV === \"production\" || invariant.warn(\"Inferring subtype \" + typename + \" of supertype \" + supertype);\n }\n typenameSupertypeSet.add(supertype);\n }\n return true;\n }\n supertypeSet.forEach(maybeEnqueue_1);\n if (needToCheckFuzzySubtypes &&\n i === workQueue_1.length - 1 &&\n selectionSetMatchesResult(fragment.selectionSet, result, variables)) {\n needToCheckFuzzySubtypes = false;\n checkingFuzzySubtypes = true;\n this.fuzzySubtypes.forEach(function (regExp, fuzzyString) {\n var match = typename.match(regExp);\n if (match && match[0] === typename) {\n maybeEnqueue_1(fuzzyString);\n }\n });\n }\n }\n }\n return false;\n };\n Policies.prototype.hasKeyArgs = function (typename, fieldName) {\n var policy = this.getFieldPolicy(typename, fieldName, false);\n return !!(policy && policy.keyFn);\n };\n Policies.prototype.getStoreFieldName = function (fieldSpec) {\n var typename = fieldSpec.typename, fieldName = fieldSpec.fieldName;\n var policy = this.getFieldPolicy(typename, fieldName, false);\n var storeFieldName;\n var keyFn = policy && policy.keyFn;\n if (keyFn && typename) {\n var context = {\n typename: typename,\n fieldName: fieldName,\n field: fieldSpec.field || null,\n variables: fieldSpec.variables,\n };\n var args = argsFromFieldSpecifier(fieldSpec);\n while (keyFn) {\n var specifierOrString = keyFn(args, context);\n if (Array.isArray(specifierOrString)) {\n keyFn = keyArgsFnFromSpecifier(specifierOrString);\n }\n else {\n storeFieldName = specifierOrString || fieldName;\n break;\n }\n }\n }\n if (storeFieldName === void 0) {\n storeFieldName = fieldSpec.field\n ? storeKeyNameFromField(fieldSpec.field, fieldSpec.variables)\n : getStoreKeyName(fieldName, argsFromFieldSpecifier(fieldSpec));\n }\n if (storeFieldName === false) {\n return fieldName;\n }\n return fieldName === fieldNameFromStoreName(storeFieldName)\n ? storeFieldName\n : fieldName + \":\" + storeFieldName;\n };\n Policies.prototype.readField = function (options, context) {\n var objectOrReference = options.from;\n if (!objectOrReference)\n return;\n var nameOrField = options.field || options.fieldName;\n if (!nameOrField)\n return;\n if (options.typename === void 0) {\n var typename = context.store.getFieldValue(objectOrReference, \"__typename\");\n if (typename)\n options.typename = typename;\n }\n var storeFieldName = this.getStoreFieldName(options);\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var existing = context.store.getFieldValue(objectOrReference, storeFieldName);\n var policy = this.getFieldPolicy(options.typename, fieldName, false);\n var read = policy && policy.read;\n if (read) {\n var readOptions = makeFieldFunctionOptions(this, objectOrReference, options, context, context.store.getStorage(isReference(objectOrReference)\n ? objectOrReference.__ref\n : objectOrReference, storeFieldName));\n return cacheSlot.withValue(this.cache, read, [existing, readOptions]);\n }\n return existing;\n };\n Policies.prototype.getMergeFunction = function (parentTypename, fieldName, childTypename) {\n var policy = this.getFieldPolicy(parentTypename, fieldName, false);\n var merge = policy && policy.merge;\n if (!merge && childTypename) {\n policy = this.getTypePolicy(childTypename);\n merge = policy && policy.merge;\n }\n return merge;\n };\n Policies.prototype.runMergeFunction = function (existing, incoming, _a, context, storage) {\n var field = _a.field, typename = _a.typename, merge = _a.merge;\n if (merge === mergeTrueFn) {\n return makeMergeObjectsFunction(context.store.getFieldValue)(existing, incoming);\n }\n if (merge === mergeFalseFn) {\n return incoming;\n }\n return merge(existing, incoming, makeFieldFunctionOptions(this, void 0, { typename: typename, fieldName: field.name.value, field: field, variables: context.variables }, context, storage || Object.create(null)));\n };\n return Policies;\n}());\nexport { Policies };\nfunction makeFieldFunctionOptions(policies, objectOrReference, fieldSpec, context, storage) {\n var storeFieldName = policies.getStoreFieldName(fieldSpec);\n var fieldName = fieldNameFromStoreName(storeFieldName);\n var variables = fieldSpec.variables || context.variables;\n var _a = context.store, getFieldValue = _a.getFieldValue, toReference = _a.toReference, canRead = _a.canRead;\n return {\n args: argsFromFieldSpecifier(fieldSpec),\n field: fieldSpec.field || null,\n fieldName: fieldName,\n storeFieldName: storeFieldName,\n variables: variables,\n isReference: isReference,\n toReference: toReference,\n storage: storage,\n cache: policies.cache,\n canRead: canRead,\n readField: function (fieldNameOrOptions, from) {\n var options = typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from: from,\n } : __assign({}, fieldNameOrOptions);\n if (void 0 === options.from) {\n options.from = objectOrReference;\n }\n if (void 0 === options.variables) {\n options.variables = variables;\n }\n return policies.readField(options, context);\n },\n mergeObjects: makeMergeObjectsFunction(getFieldValue),\n };\n}\nfunction makeMergeObjectsFunction(getFieldValue) {\n return function mergeObjects(existing, incoming) {\n if (Array.isArray(existing) || Array.isArray(incoming)) {\n throw process.env.NODE_ENV === \"production\" ? new InvariantError(2) : new InvariantError(\"Cannot automatically merge arrays\");\n }\n if (existing && typeof existing === \"object\" &&\n incoming && typeof incoming === \"object\") {\n var eType = getFieldValue(existing, \"__typename\");\n var iType = getFieldValue(incoming, \"__typename\");\n var typesDiffer = eType && iType && eType !== iType;\n if (typesDiffer ||\n !storeValueIsStoreObject(existing) ||\n !storeValueIsStoreObject(incoming)) {\n return incoming;\n }\n return __assign(__assign({}, existing), incoming);\n }\n return incoming;\n };\n}\nfunction keyArgsFnFromSpecifier(specifier) {\n return function (args, context) {\n return args ? context.fieldName + \":\" + JSON.stringify(computeKeyObject(args, specifier, false)) : context.fieldName;\n };\n}\nfunction keyFieldsFnFromSpecifier(specifier) {\n var trie = new KeyTrie(canUseWeakMap);\n return function (object, context) {\n var aliasMap;\n if (context.selectionSet && context.fragmentMap) {\n var info = trie.lookupArray([\n context.selectionSet,\n context.fragmentMap,\n ]);\n aliasMap = info.aliasMap || (info.aliasMap = makeAliasMap(context.selectionSet, context.fragmentMap));\n }\n var keyObject = context.keyObject =\n computeKeyObject(object, specifier, true, aliasMap);\n return context.typename + \":\" + JSON.stringify(keyObject);\n };\n}\nfunction makeAliasMap(selectionSet, fragmentMap) {\n var map = Object.create(null);\n var workQueue = new Set([selectionSet]);\n workQueue.forEach(function (selectionSet) {\n selectionSet.selections.forEach(function (selection) {\n if (isField(selection)) {\n if (selection.alias) {\n var responseKey = selection.alias.value;\n var storeKey = selection.name.value;\n if (storeKey !== responseKey) {\n var aliases = map.aliases || (map.aliases = Object.create(null));\n aliases[storeKey] = responseKey;\n }\n }\n if (selection.selectionSet) {\n var subsets = map.subsets || (map.subsets = Object.create(null));\n subsets[selection.name.value] =\n makeAliasMap(selection.selectionSet, fragmentMap);\n }\n }\n else {\n var fragment = getFragmentFromSelection(selection, fragmentMap);\n if (fragment) {\n workQueue.add(fragment.selectionSet);\n }\n }\n });\n });\n return map;\n}\nfunction computeKeyObject(response, specifier, strict, aliasMap) {\n var keyObj = Object.create(null);\n var prevKey;\n specifier.forEach(function (s) {\n if (Array.isArray(s)) {\n if (typeof prevKey === \"string\") {\n var subsets = aliasMap && aliasMap.subsets;\n var subset = subsets && subsets[prevKey];\n keyObj[prevKey] = computeKeyObject(response[prevKey], s, strict, subset);\n }\n }\n else {\n var aliases = aliasMap && aliasMap.aliases;\n var responseName = aliases && aliases[s] || s;\n if (hasOwn.call(response, responseName)) {\n keyObj[prevKey = s] = response[responseName];\n }\n else {\n process.env.NODE_ENV === \"production\" ? invariant(!strict, 3) : invariant(!strict, \"Missing field '\" + responseName + \"' while computing key fields\");\n prevKey = void 0;\n }\n }\n });\n return keyObj;\n}\n//# sourceMappingURL=policies.js.map","import {\n InlineFragmentNode,\n FragmentDefinitionNode,\n SelectionSetNode,\n FieldNode,\n} from 'graphql';\n\nimport { KeyTrie } from 'optimism';\nimport { invariant, InvariantError } from 'ts-invariant';\n\nimport {\n FragmentMap,\n getFragmentFromSelection,\n isField,\n getTypenameFromResult,\n storeKeyNameFromField,\n StoreValue,\n StoreObject,\n argumentsObjectFromField,\n Reference,\n isReference,\n getStoreKeyName,\n canUseWeakMap,\n compact,\n} from '../../utilities';\nimport { IdGetter, ReadMergeModifyContext, MergeInfo } from \"./types\";\nimport {\n hasOwn,\n fieldNameFromStoreName,\n storeValueIsStoreObject,\n selectionSetMatchesResult,\n TypeOrFieldNameRegExp,\n} from './helpers';\nimport { cacheSlot } from './reactiveVars';\nimport { InMemoryCache } from './inMemoryCache';\nimport {\n SafeReadonly,\n FieldSpecifier,\n ToReferenceFunction,\n ReadFieldFunction,\n ReadFieldOptions,\n CanReadFunction,\n} from '../core/types/common';\nimport { FieldValueGetter } from './entityStore';\n\nexport type TypePolicies = {\n [__typename: string]: TypePolicy;\n}\n\n// TypeScript 3.7 will allow recursive type aliases, so this should work:\n// type KeySpecifier = (string | KeySpecifier)[]\ntype KeySpecifier = (string | any[])[];\n\ntype KeyFieldsContext = {\n typename?: string;\n selectionSet?: SelectionSetNode;\n fragmentMap?: FragmentMap;\n // May be set by the KeyFieldsFunction to report fields that were involved\n // in computing the ID. Never passed in by the caller.\n keyObject?: Record;\n};\n\nexport type KeyFieldsFunction = (\n object: Readonly,\n context: KeyFieldsContext,\n) => KeySpecifier | false | ReturnType;\n\ntype KeyFieldsResult = Exclude, KeySpecifier>;\n\n// TODO Should TypePolicy be a generic type, with a TObject or TEntity\n// type parameter?\nexport type TypePolicy = {\n // Allows defining the primary key fields for this type, either using an\n // array of field names or a function that returns an arbitrary string.\n keyFields?: KeySpecifier | KeyFieldsFunction | false;\n\n // Allows defining a merge function (or merge:true/false shorthand) to\n // be used for merging objects of this type wherever they appear, unless\n // the parent field also defines a merge function/boolean (that is,\n // parent field merge functions take precedence over type policy merge\n // functions). In many cases, defining merge:true for a given type\n // policy can save you from specifying merge:true for all the field\n // policies where that type might be encountered.\n merge?: FieldMergeFunction | boolean;\n\n // In the rare event that your schema happens to use a different\n // __typename for the root Query, Mutation, and/or Schema types, you can\n // express your deviant preferences by enabling one of these options.\n queryType?: true,\n mutationType?: true,\n subscriptionType?: true,\n\n fields?: {\n [fieldName: string]:\n | FieldPolicy\n | FieldReadFunction;\n }\n};\n\nexport type KeyArgsFunction = (\n args: Record | null,\n context: {\n typename: string;\n fieldName: string;\n field: FieldNode | null;\n variables?: Record;\n },\n) => KeySpecifier | false | ReturnType;\n\ntype KeyArgsResult = Exclude, KeySpecifier>;\n\nexport type FieldPolicy<\n // The internal representation used to store the field's data in the\n // cache. Must be JSON-serializable if you plan to serialize the result\n // of cache.extract() using JSON.\n TExisting = any,\n // The type of the incoming parameter passed to the merge function,\n // typically matching the GraphQL response format, but with Reference\n // objects substituted for any identifiable child objects. Often the\n // same as TExisting, but not necessarily.\n TIncoming = TExisting,\n // The type that the read function actually returns, using TExisting\n // data and options.args as input. Usually the same as TIncoming.\n TReadResult = TIncoming,\n> = {\n keyArgs?: KeySpecifier | KeyArgsFunction | false;\n read?: FieldReadFunction;\n merge?: FieldMergeFunction | boolean;\n};\n\nexport type StorageType = Record;\n\nfunction argsFromFieldSpecifier(spec: FieldSpecifier) {\n return spec.args !== void 0 ? spec.args :\n spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;\n}\n\nexport interface FieldFunctionOptions<\n TArgs = Record,\n TVars = Record,\n> {\n args: TArgs | null;\n\n // The name of the field, equal to options.field.name.value when\n // options.field is available. Useful if you reuse the same function for\n // multiple fields, and you need to know which field you're currently\n // processing. Always a string, even when options.field is null.\n fieldName: string;\n\n // The full field key used internally, including serialized key arguments.\n storeFieldName: string;\n\n // The FieldNode object used to read this field. Useful if you need to\n // know about other attributes of the field, such as its directives. This\n // option will be null when a string was passed to options.readField.\n field: FieldNode | null;\n\n variables?: TVars;\n\n // Utilities for dealing with { __ref } objects.\n isReference: typeof isReference;\n toReference: ToReferenceFunction;\n\n // A handy place to put field-specific data that you want to survive\n // across multiple read function calls. Useful for field-level caching,\n // if your read function does any expensive work.\n storage: StorageType;\n\n cache: InMemoryCache;\n\n // Helper function for reading other fields within the current object.\n // If a foreign object or reference is provided, the field will be read\n // from that object instead of the current object, so this function can\n // be used (together with isReference) to examine the cache outside the\n // current object. If a FieldNode is passed instead of a string, and\n // that FieldNode has arguments, the same options.variables will be used\n // to compute the argument values. Note that this function will invoke\n // custom read functions for other fields, if defined. Always returns\n // immutable data (enforced with Object.freeze in development).\n readField: ReadFieldFunction;\n\n // Returns true for non-normalized StoreObjects and non-dangling\n // References, indicating that readField(name, objOrRef) has a chance of\n // working. Useful for filtering out dangling references from lists.\n canRead: CanReadFunction;\n\n // Instead of just merging objects with { ...existing, ...incoming }, this\n // helper function can be used to merge objects in a way that respects any\n // custom merge functions defined for their fields.\n mergeObjects: MergeObjectsFunction;\n}\n\ntype MergeObjectsFunction = (\n existing: T,\n incoming: T,\n) => T;\n\nexport type FieldReadFunction = (\n // When reading a field, one often needs to know about any existing\n // value stored for that field. If the field is read before any value\n // has been written to the cache, this existing parameter will be\n // undefined, which makes it easy to use a default parameter expression\n // to supply the initial value. This parameter is positional (rather\n // than one of the named options) because that makes it possible for the\n // developer to annotate it with a type, without also having to provide\n // a whole new type for the options object.\n existing: SafeReadonly | undefined,\n options: FieldFunctionOptions,\n) => TReadResult | undefined;\n\nexport type FieldMergeFunction = (\n existing: SafeReadonly | undefined,\n // The incoming parameter needs to be positional as well, for the same\n // reasons discussed in FieldReadFunction above.\n incoming: SafeReadonly,\n options: FieldFunctionOptions,\n) => SafeReadonly;\n\nexport const defaultDataIdFromObject = (\n { __typename, id, _id }: Readonly,\n context?: KeyFieldsContext,\n) => {\n if (typeof __typename === \"string\") {\n if (context) {\n context.keyObject =\n id !== void 0 ? { id } :\n _id !== void 0 ? { _id } :\n void 0;\n }\n // If there is no object.id, fall back to object._id.\n if (id === void 0) id = _id;\n if (id !== void 0) {\n return `${__typename}:${(\n typeof id === \"number\" ||\n typeof id === \"string\"\n ) ? id : JSON.stringify(id)}`;\n }\n }\n};\n\nconst nullKeyFieldsFn: KeyFieldsFunction = () => void 0;\nconst simpleKeyArgsFn: KeyArgsFunction = (_args, context) => context.fieldName;\n\n// These merge functions can be selected by specifying merge:true or\n// merge:false in a field policy.\nconst mergeTrueFn: FieldMergeFunction =\n (existing, incoming, { mergeObjects }) => mergeObjects(existing, incoming);\nconst mergeFalseFn: FieldMergeFunction = (_, incoming) => incoming;\n\nexport type PossibleTypesMap = {\n [supertype: string]: string[];\n};\n\nexport class Policies {\n private typePolicies: {\n [__typename: string]: {\n keyFn?: KeyFieldsFunction;\n merge?: FieldMergeFunction;\n fields: {\n [fieldName: string]: {\n keyFn?: KeyArgsFunction;\n read?: FieldReadFunction;\n merge?: FieldMergeFunction;\n };\n };\n };\n } = Object.create(null);\n\n private toBeAdded: {\n [__typename: string]: TypePolicy[];\n } = Object.create(null);\n\n // Map from subtype names to sets of supertype names. Note that this\n // representation inverts the structure of possibleTypes (whose keys are\n // supertypes and whose values are arrays of subtypes) because it tends\n // to be much more efficient to search upwards than downwards.\n private supertypeMap = new Map>();\n\n // Any fuzzy subtypes specified by possibleTypes will be converted to\n // RegExp objects and recorded here. Every key of this map can also be\n // found in supertypeMap. In many cases this Map will be empty, which\n // means no fuzzy subtype checking will happen in fragmentMatches.\n private fuzzySubtypes = new Map();\n\n public readonly cache: InMemoryCache;\n\n public readonly rootIdsByTypename: Record = Object.create(null);\n public readonly rootTypenamesById: Record = Object.create(null);\n\n public readonly usingPossibleTypes = false;\n\n constructor(private config: {\n cache: InMemoryCache;\n dataIdFromObject?: KeyFieldsFunction;\n possibleTypes?: PossibleTypesMap;\n typePolicies?: TypePolicies;\n }) {\n this.config = {\n dataIdFromObject: defaultDataIdFromObject,\n ...config,\n };\n\n this.cache = this.config.cache;\n\n this.setRootTypename(\"Query\");\n this.setRootTypename(\"Mutation\");\n this.setRootTypename(\"Subscription\");\n\n if (config.possibleTypes) {\n this.addPossibleTypes(config.possibleTypes);\n }\n\n if (config.typePolicies) {\n this.addTypePolicies(config.typePolicies);\n }\n }\n\n public identify(\n object: StoreObject,\n selectionSet?: SelectionSetNode,\n fragmentMap?: FragmentMap,\n ): [string?, StoreObject?] {\n // TODO Use an AliasMap here?\n const typename = selectionSet && fragmentMap\n ? getTypenameFromResult(object, selectionSet, fragmentMap)\n : object.__typename;\n\n // It should be possible to write root Query fields with\n // writeFragment, using { __typename: \"Query\", ... } as the data, but\n // it does not make sense to allow the same identification behavior\n // for the Mutation and Subscription types, since application code\n // should never be writing directly to (or reading directly from)\n // those root objects.\n if (typename === this.rootTypenamesById.ROOT_QUERY) {\n return [\"ROOT_QUERY\"];\n }\n\n const context: KeyFieldsContext = {\n typename,\n selectionSet,\n fragmentMap,\n };\n\n let id: KeyFieldsResult;\n\n const policy = typename && this.getTypePolicy(typename);\n let keyFn = policy && policy.keyFn || this.config.dataIdFromObject;\n while (keyFn) {\n const specifierOrId = keyFn(object, context);\n if (Array.isArray(specifierOrId)) {\n keyFn = keyFieldsFnFromSpecifier(specifierOrId);\n } else {\n id = specifierOrId;\n break;\n }\n }\n\n id = id ? String(id) : void 0;\n return context.keyObject ? [id, context.keyObject] : [id];\n }\n\n public addTypePolicies(typePolicies: TypePolicies) {\n Object.keys(typePolicies).forEach(typename => {\n const {\n queryType,\n mutationType,\n subscriptionType,\n ...incoming\n } = typePolicies[typename];\n\n // Though {query,mutation,subscription}Type configurations are rare,\n // it's important to call setRootTypename as early as possible,\n // since these configurations should apply consistently for the\n // entire lifetime of the cache. Also, since only one __typename can\n // qualify as one of these root types, these three properties cannot\n // be inherited, unlike the rest of the incoming properties. That\n // restriction is convenient, because the purpose of this.toBeAdded\n // is to delay the processing of type/field policies until the first\n // time they're used, allowing policies to be added in any order as\n // long as all relevant policies (including policies for supertypes)\n // have been added by the time a given policy is used for the first\n // time. In other words, since inheritance doesn't matter for these\n // properties, there's also no need to delay their processing using\n // the this.toBeAdded queue.\n if (queryType) this.setRootTypename(\"Query\", typename);\n if (mutationType) this.setRootTypename(\"Mutation\", typename);\n if (subscriptionType) this.setRootTypename(\"Subscription\", typename);\n\n if (hasOwn.call(this.toBeAdded, typename)) {\n this.toBeAdded[typename].push(incoming);\n } else {\n this.toBeAdded[typename] = [incoming];\n }\n });\n }\n\n private updateTypePolicy(typename: string, incoming: TypePolicy) {\n const existing = this.getTypePolicy(typename);\n const { keyFields, fields } = incoming;\n\n function setMerge(\n existing: { merge?: FieldMergeFunction | boolean; },\n merge?: FieldMergeFunction | boolean,\n ) {\n existing.merge =\n typeof merge === \"function\" ? merge :\n // Pass merge:true as a shorthand for a merge implementation\n // that returns options.mergeObjects(existing, incoming).\n merge === true ? mergeTrueFn :\n // Pass merge:false to make incoming always replace existing\n // without any warnings about data clobbering.\n merge === false ? mergeFalseFn :\n existing.merge;\n }\n\n // Type policies can define merge functions, as an alternative to\n // using field policies to merge child objects.\n setMerge(existing, incoming.merge);\n\n existing.keyFn =\n // Pass false to disable normalization for this typename.\n keyFields === false ? nullKeyFieldsFn :\n // Pass an array of strings to use those fields to compute a\n // composite ID for objects of this typename.\n Array.isArray(keyFields) ? keyFieldsFnFromSpecifier(keyFields) :\n // Pass a function to take full control over identification.\n typeof keyFields === \"function\" ? keyFields :\n // Leave existing.keyFn unchanged if above cases fail.\n existing.keyFn;\n\n if (fields) {\n Object.keys(fields).forEach(fieldName => {\n const existing = this.getFieldPolicy(typename, fieldName, true)!;\n const incoming = fields[fieldName];\n\n if (typeof incoming === \"function\") {\n existing.read = incoming;\n } else {\n const { keyArgs, read, merge } = incoming;\n\n existing.keyFn =\n // Pass false to disable argument-based differentiation of\n // field identities.\n keyArgs === false ? simpleKeyArgsFn :\n // Pass an array of strings to use named arguments to\n // compute a composite identity for the field.\n Array.isArray(keyArgs) ? keyArgsFnFromSpecifier(keyArgs) :\n // Pass a function to take full control over field identity.\n typeof keyArgs === \"function\" ? keyArgs :\n // Leave existing.keyFn unchanged if above cases fail.\n existing.keyFn;\n\n if (typeof read === \"function\") {\n existing.read = read;\n }\n\n setMerge(existing, merge);\n }\n\n if (existing.read && existing.merge) {\n // If we have both a read and a merge function, assume\n // keyArgs:false, because read and merge together can take\n // responsibility for interpreting arguments in and out. This\n // default assumption can always be overridden by specifying\n // keyArgs explicitly in the FieldPolicy.\n existing.keyFn = existing.keyFn || simpleKeyArgsFn;\n }\n });\n }\n }\n\n private setRootTypename(\n which: \"Query\" | \"Mutation\" | \"Subscription\",\n typename: string = which,\n ) {\n const rootId = \"ROOT_\" + which.toUpperCase();\n const old = this.rootTypenamesById[rootId];\n if (typename !== old) {\n invariant(!old || old === which, `Cannot change root ${which} __typename more than once`);\n // First, delete any old __typename associated with this rootId from\n // rootIdsByTypename.\n if (old) delete this.rootIdsByTypename[old];\n // Now make this the only __typename that maps to this rootId.\n this.rootIdsByTypename[typename] = rootId;\n // Finally, update the __typename associated with this rootId.\n this.rootTypenamesById[rootId] = typename;\n }\n }\n\n public addPossibleTypes(possibleTypes: PossibleTypesMap) {\n (this.usingPossibleTypes as boolean) = true;\n Object.keys(possibleTypes).forEach(supertype => {\n // Make sure all types have an entry in this.supertypeMap, even if\n // their supertype set is empty, so we can return false immediately\n // from policies.fragmentMatches for unknown supertypes.\n this.getSupertypeSet(supertype, true);\n\n possibleTypes[supertype].forEach(subtype => {\n this.getSupertypeSet(subtype, true)!.add(supertype);\n const match = subtype.match(TypeOrFieldNameRegExp);\n if (!match || match[0] !== subtype) {\n // TODO Don't interpret just any invalid typename as a RegExp.\n this.fuzzySubtypes.set(subtype, new RegExp(subtype));\n }\n });\n });\n }\n\n private getTypePolicy(typename: string): Policies[\"typePolicies\"][string] {\n if (!hasOwn.call(this.typePolicies, typename)) {\n const policy: Policies[\"typePolicies\"][string] =\n this.typePolicies[typename] = Object.create(null);\n policy.fields = Object.create(null);\n\n // When the TypePolicy for typename is first accessed, instead of\n // starting with an empty policy object, inherit any properties or\n // fields from the type policies of the supertypes of typename.\n //\n // Any properties or fields defined explicitly within the TypePolicy\n // for typename will take precedence, and if there are multiple\n // supertypes, the properties of policies whose types were added\n // later via addPossibleTypes will take precedence over those of\n // earlier supertypes. TODO Perhaps we should warn about these\n // conflicts in development, and recommend defining the property\n // explicitly in the subtype policy?\n //\n // Field policy inheritance is atomic/shallow: you can't inherit a\n // field policy and then override just its read function, since read\n // and merge functions often need to cooperate, so changing only one\n // of them would be a recipe for inconsistency.\n //\n // Once the TypePolicy for typename has been accessed, its\n // properties can still be updated directly using addTypePolicies,\n // but future changes to supertype policies will not be reflected in\n // this policy, because this code runs at most once per typename.\n const supertypes = this.supertypeMap.get(typename);\n if (supertypes && supertypes.size) {\n supertypes.forEach(supertype => {\n const { fields, ...rest } = this.getTypePolicy(supertype);\n Object.assign(policy, rest);\n Object.assign(policy.fields, fields);\n });\n }\n }\n\n const inbox = this.toBeAdded[typename];\n if (inbox && inbox.length) {\n this.updateTypePolicy(typename, compact(...inbox.splice(0)));\n }\n\n return this.typePolicies[typename];\n }\n\n private getFieldPolicy(\n typename: string | undefined,\n fieldName: string,\n createIfMissing: boolean,\n ): {\n keyFn?: KeyArgsFunction;\n read?: FieldReadFunction;\n merge?: FieldMergeFunction;\n } | undefined {\n if (typename) {\n const fieldPolicies = this.getTypePolicy(typename).fields;\n return fieldPolicies[fieldName] || (\n createIfMissing && (fieldPolicies[fieldName] = Object.create(null)));\n }\n }\n\n private getSupertypeSet(\n subtype: string,\n createIfMissing: boolean,\n ): Set | undefined {\n let supertypeSet = this.supertypeMap.get(subtype);\n if (!supertypeSet && createIfMissing) {\n this.supertypeMap.set(subtype, supertypeSet = new Set());\n }\n return supertypeSet;\n }\n\n public fragmentMatches(\n fragment: InlineFragmentNode | FragmentDefinitionNode,\n typename: string | undefined,\n result?: Record,\n variables?: Record,\n ): boolean {\n if (!fragment.typeCondition) return true;\n\n // If the fragment has a type condition but the object we're matching\n // against does not have a __typename, the fragment cannot match.\n if (!typename) return false;\n\n const supertype = fragment.typeCondition.name.value;\n // Common case: fragment type condition and __typename are the same.\n if (typename === supertype) return true;\n\n if (this.usingPossibleTypes &&\n this.supertypeMap.has(supertype)) {\n const typenameSupertypeSet = this.getSupertypeSet(typename, true)!;\n const workQueue = [typenameSupertypeSet];\n const maybeEnqueue = (subtype: string) => {\n const supertypeSet = this.getSupertypeSet(subtype, false);\n if (supertypeSet &&\n supertypeSet.size &&\n workQueue.indexOf(supertypeSet) < 0) {\n workQueue.push(supertypeSet);\n }\n };\n\n // We need to check fuzzy subtypes only if we encountered fuzzy\n // subtype strings in addPossibleTypes, and only while writing to\n // the cache, since that's when selectionSetMatchesResult gives a\n // strong signal of fragment matching. The StoreReader class calls\n // policies.fragmentMatches without passing a result object, so\n // needToCheckFuzzySubtypes is always false while reading.\n let needToCheckFuzzySubtypes = !!(result && this.fuzzySubtypes.size);\n let checkingFuzzySubtypes = false;\n\n // It's important to keep evaluating workQueue.length each time through\n // the loop, because the queue can grow while we're iterating over it.\n for (let i = 0; i < workQueue.length; ++i) {\n const supertypeSet = workQueue[i];\n\n if (supertypeSet.has(supertype)) {\n if (!typenameSupertypeSet.has(supertype)) {\n if (checkingFuzzySubtypes) {\n invariant.warn(`Inferring subtype ${typename} of supertype ${supertype}`);\n }\n // Record positive results for faster future lookup.\n // Unfortunately, we cannot safely cache negative results,\n // because new possibleTypes data could always be added to the\n // Policies class.\n typenameSupertypeSet.add(supertype);\n }\n return true;\n }\n\n supertypeSet.forEach(maybeEnqueue);\n\n if (needToCheckFuzzySubtypes &&\n // Start checking fuzzy subtypes only after exhausting all\n // non-fuzzy subtypes (after the final iteration of the loop).\n i === workQueue.length - 1 &&\n // We could wait to compare fragment.selectionSet to result\n // after we verify the supertype, but this check is often less\n // expensive than that search, and we will have to do the\n // comparison anyway whenever we find a potential match.\n selectionSetMatchesResult(fragment.selectionSet, result!, variables)) {\n // We don't always need to check fuzzy subtypes (if no result\n // was provided, or !this.fuzzySubtypes.size), but, when we do,\n // we only want to check them once.\n needToCheckFuzzySubtypes = false;\n checkingFuzzySubtypes = true;\n\n // If we find any fuzzy subtypes that match typename, extend the\n // workQueue to search through the supertypes of those fuzzy\n // subtypes. Otherwise the for-loop will terminate and we'll\n // return false below.\n this.fuzzySubtypes.forEach((regExp, fuzzyString) => {\n const match = typename.match(regExp);\n if (match && match[0] === typename) {\n maybeEnqueue(fuzzyString);\n }\n });\n }\n }\n }\n\n return false;\n }\n\n public hasKeyArgs(typename: string | undefined, fieldName: string) {\n const policy = this.getFieldPolicy(typename, fieldName, false);\n return !!(policy && policy.keyFn);\n }\n\n public getStoreFieldName(fieldSpec: FieldSpecifier): string {\n const { typename, fieldName } = fieldSpec;\n const policy = this.getFieldPolicy(typename, fieldName, false);\n let storeFieldName: KeyArgsResult;\n\n let keyFn = policy && policy.keyFn;\n if (keyFn && typename) {\n const context: Parameters[1] = {\n typename,\n fieldName,\n field: fieldSpec.field || null,\n variables: fieldSpec.variables,\n };\n const args = argsFromFieldSpecifier(fieldSpec);\n while (keyFn) {\n const specifierOrString = keyFn(args, context);\n if (Array.isArray(specifierOrString)) {\n keyFn = keyArgsFnFromSpecifier(specifierOrString);\n } else {\n // If the custom keyFn returns a falsy value, fall back to\n // fieldName instead.\n storeFieldName = specifierOrString || fieldName;\n break;\n }\n }\n }\n\n if (storeFieldName === void 0) {\n storeFieldName = fieldSpec.field\n ? storeKeyNameFromField(fieldSpec.field, fieldSpec.variables)\n : getStoreKeyName(fieldName, argsFromFieldSpecifier(fieldSpec));\n }\n\n // Returning false from a keyArgs function is like configuring\n // keyArgs: false, but more dynamic.\n if (storeFieldName === false) {\n return fieldName;\n }\n\n // Make sure custom field names start with the actual field.name.value\n // of the field, so we can always figure out which properties of a\n // StoreObject correspond to which original field names.\n return fieldName === fieldNameFromStoreName(storeFieldName)\n ? storeFieldName\n : fieldName + \":\" + storeFieldName;\n }\n\n public readField(\n options: ReadFieldOptions,\n context: ReadMergeModifyContext,\n ): SafeReadonly | undefined {\n const objectOrReference = options.from;\n if (!objectOrReference) return;\n\n const nameOrField = options.field || options.fieldName;\n if (!nameOrField) return;\n\n if (options.typename === void 0) {\n const typename = context.store.getFieldValue(objectOrReference, \"__typename\");\n if (typename) options.typename = typename;\n }\n\n const storeFieldName = this.getStoreFieldName(options);\n const fieldName = fieldNameFromStoreName(storeFieldName);\n const existing = context.store.getFieldValue(objectOrReference, storeFieldName);\n const policy = this.getFieldPolicy(options.typename, fieldName, false);\n const read = policy && policy.read;\n\n if (read) {\n const readOptions = makeFieldFunctionOptions(\n this,\n objectOrReference,\n options,\n context,\n context.store.getStorage(\n isReference(objectOrReference)\n ? objectOrReference.__ref\n : objectOrReference,\n storeFieldName,\n ),\n );\n\n // Call read(existing, readOptions) with cacheSlot holding this.cache.\n return cacheSlot.withValue(\n this.cache,\n read,\n [existing, readOptions],\n ) as SafeReadonly;\n }\n\n return existing;\n }\n\n public getMergeFunction(\n parentTypename: string | undefined,\n fieldName: string,\n childTypename: string | undefined,\n ): FieldMergeFunction | undefined {\n let policy:\n | Policies[\"typePolicies\"][string]\n | Policies[\"typePolicies\"][string][\"fields\"][string]\n | undefined =\n this.getFieldPolicy(parentTypename, fieldName, false);\n let merge = policy && policy.merge;\n if (!merge && childTypename) {\n policy = this.getTypePolicy(childTypename);\n merge = policy && policy.merge;\n }\n return merge;\n }\n\n public runMergeFunction(\n existing: StoreValue,\n incoming: StoreValue,\n { field, typename, merge }: MergeInfo,\n context: ReadMergeModifyContext,\n storage?: StorageType,\n ) {\n if (merge === mergeTrueFn) {\n // Instead of going to the trouble of creating a full\n // FieldFunctionOptions object and calling mergeTrueFn, we can\n // simply call mergeObjects, as mergeTrueFn would.\n return makeMergeObjectsFunction(\n context.store.getFieldValue\n )(existing as StoreObject,\n incoming as StoreObject);\n }\n\n if (merge === mergeFalseFn) {\n // Likewise for mergeFalseFn, whose implementation is even simpler.\n return incoming;\n }\n\n return merge(existing, incoming, makeFieldFunctionOptions(\n this,\n // Unlike options.readField for read functions, we do not fall\n // back to the current object if no foreignObjOrRef is provided,\n // because it's not clear what the current object should be for\n // merge functions: the (possibly undefined) existing object, or\n // the incoming object? If you think your merge function needs\n // to read sibling fields in order to produce a new value for\n // the current field, you might want to rethink your strategy,\n // because that's a recipe for making merge behavior sensitive\n // to the order in which fields are written into the cache.\n // However, readField(name, ref) is useful for merge functions\n // that need to deduplicate child objects and references.\n void 0,\n { typename,\n fieldName: field.name.value,\n field,\n variables: context.variables },\n context,\n storage || Object.create(null),\n ));\n }\n}\n\nfunction makeFieldFunctionOptions(\n policies: Policies,\n objectOrReference: StoreObject | Reference | undefined,\n fieldSpec: FieldSpecifier,\n context: ReadMergeModifyContext,\n storage: StorageType,\n): FieldFunctionOptions {\n const storeFieldName = policies.getStoreFieldName(fieldSpec);\n const fieldName = fieldNameFromStoreName(storeFieldName);\n const variables = fieldSpec.variables || context.variables;\n const { getFieldValue, toReference, canRead } = context.store;\n\n return {\n args: argsFromFieldSpecifier(fieldSpec),\n field: fieldSpec.field || null,\n fieldName,\n storeFieldName,\n variables,\n isReference,\n toReference,\n storage,\n cache: policies.cache,\n canRead,\n\n readField(\n fieldNameOrOptions: string | ReadFieldOptions,\n from?: StoreObject | Reference,\n ) {\n const options: ReadFieldOptions =\n typeof fieldNameOrOptions === \"string\" ? {\n fieldName: fieldNameOrOptions,\n from,\n } : { ...fieldNameOrOptions };\n\n if (void 0 === options.from) {\n options.from = objectOrReference;\n }\n\n if (void 0 === options.variables) {\n options.variables = variables;\n }\n\n return policies.readField(options, context);\n },\n\n mergeObjects: makeMergeObjectsFunction(getFieldValue),\n };\n}\n\nfunction makeMergeObjectsFunction(\n getFieldValue: FieldValueGetter,\n): MergeObjectsFunction {\n return function mergeObjects(existing, incoming) {\n if (Array.isArray(existing) || Array.isArray(incoming)) {\n throw new InvariantError(\"Cannot automatically merge arrays\");\n }\n\n // These dynamic checks are necessary because the parameters of a\n // custom merge function can easily have the any type, so the type\n // system cannot always enforce the StoreObject | Reference parameter\n // types of options.mergeObjects.\n if (existing && typeof existing === \"object\" &&\n incoming && typeof incoming === \"object\") {\n const eType = getFieldValue(existing, \"__typename\");\n const iType = getFieldValue(incoming, \"__typename\");\n const typesDiffer = eType && iType && eType !== iType;\n\n if (typesDiffer ||\n !storeValueIsStoreObject(existing) ||\n !storeValueIsStoreObject(incoming)) {\n return incoming;\n }\n\n return { ...existing, ...incoming };\n }\n\n return incoming;\n };\n}\n\nfunction keyArgsFnFromSpecifier(\n specifier: KeySpecifier,\n): KeyArgsFunction {\n return (args, context) => {\n return args ? `${context.fieldName}:${\n JSON.stringify(computeKeyObject(args, specifier, false))\n }` : context.fieldName;\n };\n}\n\nfunction keyFieldsFnFromSpecifier(\n specifier: KeySpecifier,\n): KeyFieldsFunction {\n const trie = new KeyTrie<{\n aliasMap?: AliasMap;\n }>(canUseWeakMap);\n\n return (object, context) => {\n let aliasMap: AliasMap | undefined;\n if (context.selectionSet && context.fragmentMap) {\n const info = trie.lookupArray([\n context.selectionSet,\n context.fragmentMap,\n ]);\n aliasMap = info.aliasMap || (\n info.aliasMap = makeAliasMap(context.selectionSet, context.fragmentMap)\n );\n }\n\n const keyObject = context.keyObject =\n computeKeyObject(object, specifier, true, aliasMap);\n\n return `${context.typename}:${JSON.stringify(keyObject)}`;\n };\n}\n\ntype AliasMap = {\n // Map from store key to corresponding response key. Undefined when there are\n // no aliased fields in this selection set.\n aliases?: Record;\n // Map from store key to AliasMap correponding to a child selection set.\n // Undefined when there are no child selection sets.\n subsets?: Record;\n};\n\nfunction makeAliasMap(\n selectionSet: SelectionSetNode,\n fragmentMap: FragmentMap,\n): AliasMap {\n let map: AliasMap = Object.create(null);\n // TODO Cache this work, perhaps by storing selectionSet._aliasMap?\n const workQueue = new Set([selectionSet]);\n workQueue.forEach(selectionSet => {\n selectionSet.selections.forEach(selection => {\n if (isField(selection)) {\n if (selection.alias) {\n const responseKey = selection.alias.value;\n const storeKey = selection.name.value;\n if (storeKey !== responseKey) {\n const aliases = map.aliases || (map.aliases = Object.create(null));\n aliases[storeKey] = responseKey;\n }\n }\n if (selection.selectionSet) {\n const subsets = map.subsets || (map.subsets = Object.create(null));\n subsets[selection.name.value] =\n makeAliasMap(selection.selectionSet, fragmentMap);\n }\n } else {\n const fragment = getFragmentFromSelection(selection, fragmentMap);\n if (fragment) {\n workQueue.add(fragment.selectionSet);\n }\n }\n });\n });\n return map;\n}\n\nfunction computeKeyObject(\n response: Record,\n specifier: KeySpecifier,\n strict: boolean,\n aliasMap?: AliasMap,\n): Record {\n // The order of adding properties to keyObj affects its JSON serialization,\n // so we are careful to build keyObj in the order of keys given in\n // specifier.\n const keyObj = Object.create(null);\n let prevKey: string | undefined;\n specifier.forEach(s => {\n if (Array.isArray(s)) {\n if (typeof prevKey === \"string\") {\n const subsets = aliasMap && aliasMap.subsets;\n const subset = subsets && subsets[prevKey];\n keyObj[prevKey] = computeKeyObject(response[prevKey], s, strict, subset);\n }\n } else {\n const aliases = aliasMap && aliasMap.aliases;\n const responseName = aliases && aliases[s] || s;\n if (hasOwn.call(response, responseName)) {\n keyObj[prevKey = s] = response[responseName];\n } else {\n invariant(!strict, `Missing field '${responseName}' while computing key fields`);\n prevKey = void 0;\n }\n }\n });\n return keyObj;\n}\n","import { DocumentNode, FieldNode } from 'graphql';\n\nimport { Transaction } from '../core/cache';\nimport {\n StoreObject,\n StoreValue,\n Reference,\n} from '../../utilities';\nimport { FieldValueGetter } from './entityStore';\nimport { KeyFieldsFunction, StorageType, FieldMergeFunction } from './policies';\nimport {\n Modifier,\n Modifiers,\n ToReferenceFunction,\n CanReadFunction,\n} from '../core/types/common';\nexport { StoreObject, StoreValue, Reference }\n\nexport interface IdGetterObj extends Object {\n __typename?: string;\n id?: string;\n _id?: string;\n}\n\nexport declare type IdGetter = (\n value: IdGetterObj,\n) => string | undefined;\n\n/**\n * This is an interface used to access, set and remove\n * StoreObjects from the cache\n */\nexport interface NormalizedCache {\n has(dataId: string): boolean;\n get(dataId: string, fieldName: string): StoreValue;\n merge(dataId: string, incoming: StoreObject): void;\n modify(dataId: string, fields: Modifiers | Modifier): boolean;\n delete(dataId: string, fieldName?: string): boolean;\n clear(): void;\n\n // non-Map elements:\n /**\n * returns an Object with key-value pairs matching the contents of the store\n */\n toObject(): NormalizedCacheObject;\n /**\n * replace the state of the store\n */\n replace(newData: NormalizedCacheObject): void;\n\n /**\n * Retain (or release) a given root ID to protect (or expose) it and its\n * transitive child entities from (or to) garbage collection. The current\n * retainment count is returned by both methods. Note that releasing a root\n * ID does not cause that entity to be garbage collected, but merely removes\n * it from the set of root IDs that will be considered during the next\n * mark-and-sweep collection.\n */\n retain(rootId: string): number;\n release(rootId: string): number;\n\n getFieldValue: FieldValueGetter;\n toReference: ToReferenceFunction;\n canRead: CanReadFunction;\n\n getStorage(\n idOrObj: string | StoreObject,\n ...storeFieldNames: (string | number)[]\n ): StorageType;\n}\n\n/**\n * This is a normalized representation of the Apollo query result cache. It consists of\n * a flattened representation of query result trees.\n */\nexport interface NormalizedCacheObject {\n __META?: {\n // Well-known singleton IDs like ROOT_QUERY and ROOT_MUTATION are\n // always considered to be root IDs during cache.gc garbage\n // collection, but other IDs can become roots if they are written\n // directly with cache.writeFragment or retained explicitly with\n // cache.retain. When such IDs exist, we include them in the __META\n // section so that they can survive cache.{extract,restore}.\n extraRootIds: string[];\n };\n [dataId: string]: StoreObject | undefined;\n}\n\nexport type OptimisticStoreItem = {\n id: string;\n data: NormalizedCacheObject;\n transaction: Transaction;\n};\n\nexport type ReadQueryOptions = {\n store: NormalizedCache;\n query: DocumentNode;\n variables?: Object;\n previousResult?: any;\n rootId?: string;\n config?: ApolloReducerConfig;\n};\n\nexport type DiffQueryAgainstStoreOptions = ReadQueryOptions & {\n returnPartialData?: boolean;\n};\n\nexport type ApolloReducerConfig = {\n dataIdFromObject?: KeyFieldsFunction;\n addTypename?: boolean;\n};\n\nexport interface MergeInfo {\n field: FieldNode;\n typename: string | undefined;\n merge: FieldMergeFunction;\n};\n\nexport interface MergeTree {\n info?: MergeInfo;\n map: Map;\n};\n\nexport interface ReadMergeModifyContext {\n store: NormalizedCache;\n variables?: Record;\n // A JSON.stringify-serialized version of context.variables.\n varString?: string;\n}\n","import { equal } from \"@wry/equality\";\nimport { isNonEmptyArray, graphQLResultHasError, canUseWeakMap, } from \"../utilities/index.js\";\nimport { NetworkStatus, isNetworkRequestInFlight, } from \"./networkStatus.js\";\nvar destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();\nfunction wrapDestructiveCacheMethod(cache, methodName) {\n var original = cache[methodName];\n if (typeof original === \"function\") {\n cache[methodName] = function () {\n destructiveMethodCounts.set(cache, (destructiveMethodCounts.get(cache) + 1) % 1e15);\n return original.apply(this, arguments);\n };\n }\n}\nfunction cancelNotifyTimeout(info) {\n if (info[\"notifyTimeout\"]) {\n clearTimeout(info[\"notifyTimeout\"]);\n info[\"notifyTimeout\"] = void 0;\n }\n}\nvar QueryInfo = (function () {\n function QueryInfo(cache) {\n this.cache = cache;\n this.listeners = new Set();\n this.document = null;\n this.lastRequestId = 1;\n this.subscriptions = new Set();\n this.stopped = false;\n this.dirty = false;\n this.diff = null;\n this.observableQuery = null;\n if (!destructiveMethodCounts.has(cache)) {\n destructiveMethodCounts.set(cache, 0);\n wrapDestructiveCacheMethod(cache, \"evict\");\n wrapDestructiveCacheMethod(cache, \"modify\");\n wrapDestructiveCacheMethod(cache, \"reset\");\n }\n }\n QueryInfo.prototype.init = function (query) {\n var networkStatus = query.networkStatus || NetworkStatus.loading;\n if (this.variables &&\n this.networkStatus !== NetworkStatus.loading &&\n !equal(this.variables, query.variables)) {\n networkStatus = NetworkStatus.setVariables;\n }\n if (!equal(query.variables, this.variables)) {\n this.diff = null;\n }\n Object.assign(this, {\n document: query.document,\n variables: query.variables,\n networkError: null,\n graphQLErrors: this.graphQLErrors || [],\n networkStatus: networkStatus,\n });\n if (query.observableQuery) {\n this.setObservableQuery(query.observableQuery);\n }\n if (query.lastRequestId) {\n this.lastRequestId = query.lastRequestId;\n }\n return this;\n };\n QueryInfo.prototype.reset = function () {\n cancelNotifyTimeout(this);\n this.diff = null;\n this.dirty = false;\n };\n QueryInfo.prototype.getDiff = function (variables) {\n if (variables === void 0) { variables = this.variables; }\n if (this.diff && equal(variables, this.variables)) {\n return this.diff;\n }\n this.updateWatch(this.variables = variables);\n return this.diff = this.cache.diff({\n query: this.document,\n variables: variables,\n returnPartialData: true,\n optimistic: true,\n });\n };\n QueryInfo.prototype.setDiff = function (diff) {\n var _this = this;\n var oldDiff = this.diff;\n this.diff = diff;\n if (!this.dirty &&\n (diff && diff.result) !== (oldDiff && oldDiff.result)) {\n this.dirty = true;\n if (!this.notifyTimeout) {\n this.notifyTimeout = setTimeout(function () { return _this.notify(); }, 0);\n }\n }\n };\n QueryInfo.prototype.setObservableQuery = function (oq) {\n var _this = this;\n if (oq === this.observableQuery)\n return;\n if (this.oqListener) {\n this.listeners.delete(this.oqListener);\n }\n this.observableQuery = oq;\n if (oq) {\n oq[\"queryInfo\"] = this;\n this.listeners.add(this.oqListener = function () {\n if (_this.getDiff().fromOptimisticTransaction) {\n oq[\"observe\"]();\n }\n else {\n oq.reobserve();\n }\n });\n }\n else {\n delete this.oqListener;\n }\n };\n QueryInfo.prototype.notify = function () {\n var _this = this;\n cancelNotifyTimeout(this);\n if (this.shouldNotify()) {\n this.listeners.forEach(function (listener) { return listener(_this); });\n }\n this.dirty = false;\n };\n QueryInfo.prototype.shouldNotify = function () {\n if (!this.dirty || !this.listeners.size) {\n return false;\n }\n if (isNetworkRequestInFlight(this.networkStatus) &&\n this.observableQuery) {\n var fetchPolicy = this.observableQuery.options.fetchPolicy;\n if (fetchPolicy !== \"cache-only\" &&\n fetchPolicy !== \"cache-and-network\") {\n return false;\n }\n }\n return true;\n };\n QueryInfo.prototype.stop = function () {\n if (!this.stopped) {\n this.stopped = true;\n this.reset();\n this.cancel();\n delete this.cancel;\n this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });\n var oq = this.observableQuery;\n if (oq)\n oq.stopPolling();\n }\n };\n QueryInfo.prototype.cancel = function () { };\n QueryInfo.prototype.updateWatch = function (variables) {\n var _this = this;\n if (variables === void 0) { variables = this.variables; }\n var oq = this.observableQuery;\n if (oq && oq.options.fetchPolicy === \"no-cache\") {\n return;\n }\n if (!this.lastWatch ||\n this.lastWatch.query !== this.document ||\n !equal(variables, this.lastWatch.variables)) {\n this.cancel();\n this.cancel = this.cache.watch(this.lastWatch = {\n query: this.document,\n variables: variables,\n optimistic: true,\n callback: function (diff) { return _this.setDiff(diff); },\n });\n }\n };\n QueryInfo.prototype.shouldWrite = function (result, variables) {\n var lastWrite = this.lastWrite;\n return !(lastWrite &&\n lastWrite.dmCount === destructiveMethodCounts.get(this.cache) &&\n equal(variables, lastWrite.variables) &&\n equal(result.data, lastWrite.result.data));\n };\n QueryInfo.prototype.markResult = function (result, options, allowCacheWrite) {\n var _this = this;\n this.graphQLErrors = isNonEmptyArray(result.errors) ? result.errors : [];\n this.reset();\n if (options.fetchPolicy === 'no-cache') {\n this.diff = { result: result.data, complete: true };\n }\n else if (!this.stopped && allowCacheWrite) {\n if (shouldWriteResult(result, options.errorPolicy)) {\n this.cache.performTransaction(function (cache) {\n if (_this.shouldWrite(result, options.variables)) {\n cache.writeQuery({\n query: _this.document,\n data: result.data,\n variables: options.variables,\n });\n _this.lastWrite = {\n result: result,\n variables: options.variables,\n dmCount: destructiveMethodCounts.get(_this.cache),\n };\n }\n else {\n if (_this.diff && _this.diff.complete) {\n result.data = _this.diff.result;\n return;\n }\n }\n var diff = cache.diff({\n query: _this.document,\n variables: options.variables,\n returnPartialData: true,\n optimistic: true,\n });\n if (!_this.stopped) {\n _this.updateWatch(options.variables);\n }\n _this.diff = diff;\n if (diff.complete) {\n result.data = diff.result;\n }\n });\n }\n else {\n this.lastWrite = void 0;\n }\n }\n };\n QueryInfo.prototype.markReady = function () {\n this.networkError = null;\n return this.networkStatus = NetworkStatus.ready;\n };\n QueryInfo.prototype.markError = function (error) {\n this.networkStatus = NetworkStatus.error;\n this.lastWrite = void 0;\n this.reset();\n if (error.graphQLErrors) {\n this.graphQLErrors = error.graphQLErrors;\n }\n if (error.networkError) {\n this.networkError = error.networkError;\n }\n return error;\n };\n return QueryInfo;\n}());\nexport { QueryInfo };\nexport function shouldWriteResult(result, errorPolicy) {\n if (errorPolicy === void 0) { errorPolicy = \"none\"; }\n var ignoreErrors = errorPolicy === \"ignore\" ||\n errorPolicy === \"all\";\n var writeWithErrors = !graphQLResultHasError(result);\n if (!writeWithErrors && ignoreErrors && result.data) {\n writeWithErrors = true;\n }\n return writeWithErrors;\n}\n//# sourceMappingURL=QueryInfo.js.map","import { DocumentNode, GraphQLError } from 'graphql';\nimport { equal } from \"@wry/equality\";\n\nimport { Cache, ApolloCache } from '../cache';\nimport { WatchQueryOptions, ErrorPolicy } from './watchQueryOptions';\nimport { ObservableQuery } from './ObservableQuery';\nimport { QueryListener } from './types';\nimport { FetchResult } from '../link/core';\nimport {\n ObservableSubscription,\n isNonEmptyArray,\n graphQLResultHasError,\n canUseWeakMap,\n} from '../utilities';\nimport {\n NetworkStatus,\n isNetworkRequestInFlight,\n} from './networkStatus';\nimport { ApolloError } from '../errors';\n\nexport type QueryStoreValue = Pick;\n\nconst destructiveMethodCounts = new (\n canUseWeakMap ? WeakMap : Map\n), number>();\n\nfunction wrapDestructiveCacheMethod(\n cache: ApolloCache,\n methodName: keyof ApolloCache,\n) {\n const original = cache[methodName];\n if (typeof original === \"function\") {\n cache[methodName] = function () {\n destructiveMethodCounts.set(\n cache,\n // The %1e15 allows the count to wrap around to 0 safely every\n // quadrillion evictions, so there's no risk of overflow. To be\n // clear, this is more of a pedantic principle than something\n // that matters in any conceivable practical scenario.\n (destructiveMethodCounts.get(cache)! + 1) % 1e15,\n );\n return original.apply(this, arguments);\n };\n }\n}\n\nfunction cancelNotifyTimeout(info: QueryInfo) {\n if (info[\"notifyTimeout\"]) {\n clearTimeout(info[\"notifyTimeout\"]);\n info[\"notifyTimeout\"] = void 0;\n }\n}\n\n// A QueryInfo object represents a single query managed by the\n// QueryManager, which tracks all QueryInfo objects by queryId in its\n// this.queries Map. QueryInfo objects store the latest results and errors\n// for the given query, and are responsible for reporting those results to\n// the corresponding ObservableQuery, via the QueryInfo.notify method.\n// Results are reported asynchronously whenever setDiff marks the\n// QueryInfo object as dirty, though a call to the QueryManager's\n// broadcastQueries method may trigger the notification before it happens\n// automatically. This class used to be a simple interface type without\n// any field privacy or meaningful methods, which is why it still has so\n// many public fields. The effort to lock down and simplify the QueryInfo\n// interface is ongoing, and further improvements are welcome.\nexport class QueryInfo {\n listeners = new Set();\n document: DocumentNode | null = null;\n lastRequestId = 1;\n subscriptions = new Set();\n variables?: Record;\n networkStatus?: NetworkStatus;\n networkError?: Error | null;\n graphQLErrors?: ReadonlyArray;\n stopped = false;\n\n constructor(private cache: ApolloCache) {\n // Track how often cache.evict is called, since we want eviction to\n // override the feud-stopping logic in the markResult method, by\n // causing shouldWrite to return true. Wrapping the cache.evict method\n // is a bit of a hack, but it saves us from having to make eviction\n // counting an official part of the ApolloCache API.\n if (!destructiveMethodCounts.has(cache)) {\n destructiveMethodCounts.set(cache, 0);\n wrapDestructiveCacheMethod(cache, \"evict\");\n wrapDestructiveCacheMethod(cache, \"modify\");\n wrapDestructiveCacheMethod(cache, \"reset\");\n }\n }\n\n public init(query: {\n document: DocumentNode;\n variables: Record | undefined,\n // The initial networkStatus for this fetch, most often\n // NetworkStatus.loading, but also possibly fetchMore, poll, refetch,\n // or setVariables.\n networkStatus?: NetworkStatus,\n observableQuery?: ObservableQuery;\n lastRequestId?: number;\n }): this {\n let networkStatus = query.networkStatus || NetworkStatus.loading;\n if (this.variables &&\n this.networkStatus !== NetworkStatus.loading &&\n !equal(this.variables, query.variables)) {\n networkStatus = NetworkStatus.setVariables;\n }\n\n if (!equal(query.variables, this.variables)) {\n this.diff = null;\n }\n\n Object.assign(this, {\n document: query.document,\n variables: query.variables,\n networkError: null,\n graphQLErrors: this.graphQLErrors || [],\n networkStatus,\n });\n\n if (query.observableQuery) {\n this.setObservableQuery(query.observableQuery);\n }\n\n if (query.lastRequestId) {\n this.lastRequestId = query.lastRequestId;\n }\n\n return this;\n }\n\n private dirty: boolean = false;\n\n private notifyTimeout?: ReturnType;\n\n private diff: Cache.DiffResult | null = null;\n\n reset() {\n cancelNotifyTimeout(this);\n this.diff = null;\n this.dirty = false;\n }\n\n getDiff(variables = this.variables): Cache.DiffResult {\n if (this.diff && equal(variables, this.variables)) {\n return this.diff;\n }\n\n this.updateWatch(this.variables = variables);\n\n return this.diff = this.cache.diff({\n query: this.document!,\n variables,\n returnPartialData: true,\n optimistic: true,\n });\n }\n\n setDiff(diff: Cache.DiffResult | null) {\n const oldDiff = this.diff;\n this.diff = diff;\n if (!this.dirty &&\n (diff && diff.result) !== (oldDiff && oldDiff.result)) {\n this.dirty = true;\n if (!this.notifyTimeout) {\n this.notifyTimeout = setTimeout(() => this.notify(), 0);\n }\n }\n }\n\n public readonly observableQuery: ObservableQuery | null = null;\n private oqListener?: QueryListener;\n\n setObservableQuery(oq: ObservableQuery | null) {\n if (oq === this.observableQuery) return;\n\n if (this.oqListener) {\n this.listeners.delete(this.oqListener);\n }\n\n (this as any).observableQuery = oq;\n\n if (oq) {\n oq[\"queryInfo\"] = this;\n this.listeners.add(this.oqListener = () => {\n // If this.diff came from an optimistic transaction, deliver the\n // current cache data to the ObservableQuery, but don't perform a\n // full reobservation, since oq.reobserve might make a network\n // request, and we don't want to trigger network requests for\n // optimistic updates.\n if (this.getDiff().fromOptimisticTransaction) {\n oq[\"observe\"]();\n } else {\n oq.reobserve();\n }\n });\n } else {\n delete this.oqListener;\n }\n }\n\n notify() {\n cancelNotifyTimeout(this);\n\n if (this.shouldNotify()) {\n this.listeners.forEach(listener => listener(this));\n }\n\n this.dirty = false;\n }\n\n private shouldNotify() {\n if (!this.dirty || !this.listeners.size) {\n return false;\n }\n\n if (isNetworkRequestInFlight(this.networkStatus) &&\n this.observableQuery) {\n const { fetchPolicy } = this.observableQuery.options;\n if (fetchPolicy !== \"cache-only\" &&\n fetchPolicy !== \"cache-and-network\") {\n return false;\n }\n }\n\n return true;\n }\n\n public stop() {\n if (!this.stopped) {\n this.stopped = true;\n\n // Cancel the pending notify timeout\n this.reset();\n \n this.cancel();\n // Revert back to the no-op version of cancel inherited from\n // QueryInfo.prototype.\n delete this.cancel;\n\n this.subscriptions.forEach(sub => sub.unsubscribe());\n\n const oq = this.observableQuery;\n if (oq) oq.stopPolling();\n }\n }\n\n // This method is a no-op by default, until/unless overridden by the\n // updateWatch method.\n private cancel() {}\n\n private lastWatch?: Cache.WatchOptions;\n\n private updateWatch(variables = this.variables) {\n const oq = this.observableQuery;\n if (oq && oq.options.fetchPolicy === \"no-cache\") {\n return;\n }\n if (!this.lastWatch ||\n this.lastWatch.query !== this.document ||\n !equal(variables, this.lastWatch.variables)) {\n this.cancel();\n this.cancel = this.cache.watch(this.lastWatch = {\n query: this.document!,\n variables,\n optimistic: true,\n callback: diff => this.setDiff(diff),\n });\n }\n }\n\n private lastWrite?: {\n result: FetchResult;\n variables: WatchQueryOptions[\"variables\"];\n dmCount: number | undefined;\n };\n\n private shouldWrite(\n result: FetchResult,\n variables: WatchQueryOptions[\"variables\"],\n ) {\n const { lastWrite } = this;\n return !(\n lastWrite &&\n // If cache.evict has been called since the last time we wrote this\n // data into the cache, there's a chance writing this result into\n // the cache will repair what was evicted.\n lastWrite.dmCount === destructiveMethodCounts.get(this.cache) &&\n equal(variables, lastWrite.variables) &&\n equal(result.data, lastWrite.result.data)\n );\n }\n\n public markResult(\n result: FetchResult,\n options: Pick,\n allowCacheWrite: boolean,\n ) {\n this.graphQLErrors = isNonEmptyArray(result.errors) ? result.errors : [];\n\n // Cancel the pending notify timeout (if it exists) to prevent extraneous network\n // requests. To allow future notify timeouts, diff and dirty are reset as well.\n this.reset();\n\n if (options.fetchPolicy === 'no-cache') {\n this.diff = { result: result.data, complete: true };\n\n } else if (!this.stopped && allowCacheWrite) {\n if (shouldWriteResult(result, options.errorPolicy)) {\n // Using a transaction here so we have a chance to read the result\n // back from the cache before the watch callback fires as a result\n // of writeQuery, so we can store the new diff quietly and ignore\n // it when we receive it redundantly from the watch callback.\n this.cache.performTransaction(cache => {\n if (this.shouldWrite(result, options.variables)) {\n cache.writeQuery({\n query: this.document!,\n data: result.data as T,\n variables: options.variables,\n });\n\n this.lastWrite = {\n result,\n variables: options.variables,\n dmCount: destructiveMethodCounts.get(this.cache),\n };\n } else {\n // If result is the same as the last result we received from\n // the network (and the variables match too), avoid writing\n // result into the cache again. The wisdom of skipping this\n // cache write is far from obvious, since any cache write\n // could be the one that puts the cache back into a desired\n // state, fixing corruption or missing data. However, if we\n // always write every network result into the cache, we enable\n // feuds between queries competing to update the same data in\n // incompatible ways, which can lead to an endless cycle of\n // cache broadcasts and useless network requests. As with any\n // feud, eventually one side must step back from the brink,\n // letting the other side(s) have the last word(s). There may\n // be other points where we could break this cycle, such as\n // silencing the broadcast for cache.writeQuery (not a good\n // idea, since it just delays the feud a bit) or somehow\n // avoiding the network request that just happened (also bad,\n // because the server could return useful new data). All\n // options considered, skipping this cache write seems to be\n // the least damaging place to break the cycle, because it\n // reflects the intuition that we recently wrote this exact\n // result into the cache, so the cache *should* already/still\n // contain this data. If some other query has clobbered that\n // data in the meantime, that's too bad, but there will be no\n // winners if every query blindly reverts to its own version\n // of the data. This approach also gives the network a chance\n // to return new data, which will be written into the cache as\n // usual, notifying only those queries that are directly\n // affected by the cache updates, as usual. In the future, an\n // even more sophisticated cache could perhaps prevent or\n // mitigate the clobbering somehow, but that would make this\n // particular cache write even less important, and thus\n // skipping it would be even safer than it is today.\n if (this.diff && this.diff.complete) {\n // Reuse data from the last good (complete) diff that we\n // received, when possible.\n result.data = this.diff.result;\n return;\n }\n // If the previous this.diff was incomplete, fall through to\n // re-reading the latest data with cache.diff, below.\n }\n\n const diff = cache.diff({\n query: this.document!,\n variables: options.variables,\n returnPartialData: true,\n optimistic: true,\n });\n\n // In case the QueryManager stops this QueryInfo before its\n // results are delivered, it's important to avoid restarting the\n // cache watch when markResult is called.\n if (!this.stopped) {\n // Any time we're about to update this.diff, we need to make\n // sure we've started watching the cache.\n this.updateWatch(options.variables);\n }\n\n // If we're allowed to write to the cache, and we can read a\n // complete result from the cache, update result.data to be the\n // result from the cache, rather than the raw network result.\n // Set without setDiff to avoid triggering a notify call, since\n // we have other ways of notifying for this result.\n this.diff = diff;\n if (diff.complete) {\n result.data = diff.result;\n }\n });\n\n } else {\n this.lastWrite = void 0;\n }\n }\n }\n\n public markReady() {\n this.networkError = null;\n return this.networkStatus = NetworkStatus.ready;\n }\n\n public markError(error: ApolloError) {\n this.networkStatus = NetworkStatus.error;\n this.lastWrite = void 0;\n\n this.reset();\n\n if (error.graphQLErrors) {\n this.graphQLErrors = error.graphQLErrors;\n }\n\n if (error.networkError) {\n this.networkError = error.networkError;\n }\n\n return error;\n }\n}\n\nexport function shouldWriteResult(\n result: FetchResult,\n errorPolicy: ErrorPolicy = \"none\",\n) {\n const ignoreErrors =\n errorPolicy === \"ignore\" ||\n errorPolicy === \"all\";\n let writeWithErrors = !graphQLResultHasError(result);\n if (!writeWithErrors && ignoreErrors && result.data) {\n writeWithErrors = true;\n }\n return writeWithErrors;\n}\n","import { DocumentNode, GraphQLError } from 'graphql';\n\nimport { FetchResult } from '../link/core';\nimport { ApolloError } from '../errors';\nimport { QueryInfo } from './QueryInfo';\nimport { NetworkStatus } from './networkStatus';\nimport { Resolver } from './LocalState';\n\nexport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nexport type QueryListener = (queryInfo: QueryInfo) => void;\n\nexport type OperationVariables = Record;\n\nexport type PureQueryOptions = {\n query: DocumentNode;\n variables?: { [key: string]: any };\n context?: any;\n};\n\nexport type ApolloQueryResult = {\n data: T;\n errors?: ReadonlyArray;\n error?: ApolloError;\n loading: boolean;\n networkStatus: NetworkStatus;\n // If result.data was read from the cache with missing fields,\n // result.partial will be true. Otherwise, result.partial will be falsy\n // (usually because the property is absent from the result object).\n partial?: boolean;\n};\n\n// This is part of the public API, people write these functions in `updateQueries`.\nexport type MutationQueryReducer = (\n previousResult: Record,\n options: {\n mutationResult: FetchResult;\n queryName: string | undefined;\n queryVariables: Record;\n },\n) => Record;\n\nexport type MutationQueryReducersMap = {\n [queryName: string]: MutationQueryReducer;\n};\n\nexport interface Resolvers {\n [key: string]: {\n [ field: string ]: Resolver;\n };\n}\n","import { __assign } from \"tslib\";\nimport { parse } from 'graphql';\nvar docCache = new Map();\nvar fragmentSourceMap = new Map();\nvar printFragmentWarnings = true;\nvar experimentalFragmentVariables = false;\nfunction normalize(string) {\n return string.replace(/[\\s,]+/g, ' ').trim();\n}\nfunction cacheKeyFromLoc(loc) {\n return normalize(loc.source.body.substring(loc.start, loc.end));\n}\nfunction processFragments(ast) {\n var seenKeys = new Set();\n var definitions = [];\n ast.definitions.forEach(function (fragmentDefinition) {\n if (fragmentDefinition.kind === 'FragmentDefinition') {\n var fragmentName = fragmentDefinition.name.value;\n var sourceKey = cacheKeyFromLoc(fragmentDefinition.loc);\n var sourceKeySet = fragmentSourceMap.get(fragmentName);\n if (sourceKeySet && !sourceKeySet.has(sourceKey)) {\n if (printFragmentWarnings) {\n console.warn(\"Warning: fragment with name \" + fragmentName + \" already exists.\\n\"\n + \"graphql-tag enforces all fragment names across your application to be unique; read more about\\n\"\n + \"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names\");\n }\n }\n else if (!sourceKeySet) {\n fragmentSourceMap.set(fragmentName, sourceKeySet = new Set);\n }\n sourceKeySet.add(sourceKey);\n if (!seenKeys.has(sourceKey)) {\n seenKeys.add(sourceKey);\n definitions.push(fragmentDefinition);\n }\n }\n else {\n definitions.push(fragmentDefinition);\n }\n });\n return __assign(__assign({}, ast), { definitions: definitions });\n}\nfunction stripLoc(doc) {\n var workSet = new Set(doc.definitions);\n workSet.forEach(function (node) {\n if (node.loc)\n delete node.loc;\n Object.keys(node).forEach(function (key) {\n var value = node[key];\n if (value && typeof value === 'object') {\n workSet.add(value);\n }\n });\n });\n var loc = doc.loc;\n if (loc) {\n delete loc.startToken;\n delete loc.endToken;\n }\n return doc;\n}\nfunction parseDocument(source) {\n var cacheKey = normalize(source);\n if (!docCache.has(cacheKey)) {\n var parsed = parse(source, {\n experimentalFragmentVariables: experimentalFragmentVariables\n });\n if (!parsed || parsed.kind !== 'Document') {\n throw new Error('Not a valid GraphQL document.');\n }\n docCache.set(cacheKey, stripLoc(processFragments(parsed)));\n }\n return docCache.get(cacheKey);\n}\nexport function gql(literals) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (typeof literals === 'string') {\n literals = [literals];\n }\n var result = literals[0];\n args.forEach(function (arg, i) {\n if (arg && arg.kind === 'Document') {\n result += arg.loc.source.body;\n }\n else {\n result += arg;\n }\n result += literals[i + 1];\n });\n return parseDocument(result);\n}\nexport function resetCaches() {\n docCache.clear();\n fragmentSourceMap.clear();\n}\nexport function disableFragmentWarnings() {\n printFragmentWarnings = false;\n}\nexport function enableExperimentalFragmentVariables() {\n experimentalFragmentVariables = true;\n}\nexport function disableExperimentalFragmentVariables() {\n experimentalFragmentVariables = false;\n}\nvar extras = {\n gql: gql,\n resetCaches: resetCaches,\n disableFragmentWarnings: disableFragmentWarnings,\n enableExperimentalFragmentVariables: enableExperimentalFragmentVariables,\n disableExperimentalFragmentVariables: disableExperimentalFragmentVariables\n};\n(function (gql_1) {\n gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables;\n})(gql || (gql = {}));\ngql[\"default\"] = gql;\nexport default gql;\n//# sourceMappingURL=index.js.map",null,"/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","export { ApolloProvider, ApolloConsumer, getApolloContext, resetApolloContext } from \"./context/index.js\";\nexport * from \"./hooks/index.js\";\nexport { DocumentType, operationName, parser } from \"./parser/index.js\";\nexport * from \"./types/types.js\";\n//# sourceMappingURL=index.js.map","export {\n ApolloProvider,\n ApolloConsumer,\n getApolloContext,\n resetApolloContext,\n ApolloContextValue\n} from './context';\n\nexport * from './hooks';\n\nexport {\n DocumentType,\n IDocumentDefinition,\n operationName,\n parser\n} from './parser';\n\nexport * from './types/types';\n","export * from \"./ApolloConsumer.js\";\nexport * from \"./ApolloContext.js\";\nexport * from \"./ApolloProvider.js\";\n//# sourceMappingURL=index.js.map","export * from './ApolloConsumer';\nexport * from './ApolloContext';\nexport * from './ApolloProvider';\n","import React from 'react';\nimport { invariant } from 'ts-invariant';\nimport { getApolloContext } from \"./ApolloContext.js\";\nexport var ApolloConsumer = function (props) {\n var ApolloContext = getApolloContext();\n return React.createElement(ApolloContext.Consumer, null, function (context) {\n process.env.NODE_ENV === \"production\" ? invariant(context && context.client, 27) : invariant(context && context.client, 'Could not find \"client\" in the context of ApolloConsumer. ' +\n 'Wrap the root component in an .');\n return props.children(context.client);\n });\n};\n//# sourceMappingURL=ApolloConsumer.js.map","import React from 'react';\nimport { invariant } from 'ts-invariant';\n\nimport { ApolloClient } from '../../core';\nimport { getApolloContext } from './ApolloContext';\n\nexport interface ApolloConsumerProps {\n children: (client: ApolloClient) => React.ReactChild | null;\n}\n\nexport const ApolloConsumer: React.FC = props => {\n const ApolloContext = getApolloContext();\n return (\n \n {(context: any) => {\n invariant(\n context && context.client,\n 'Could not find \"client\" in the context of ApolloConsumer. ' +\n 'Wrap the root component in an .'\n );\n return props.children(context.client);\n }}\n \n );\n};\n","import React from 'react';\nimport { canUseWeakMap } from \"../../utilities/index.js\";\nvar cache = new (canUseWeakMap ? WeakMap : Map)();\nexport function getApolloContext() {\n var context = cache.get(React.createContext);\n if (!context) {\n context = React.createContext({});\n context.displayName = 'ApolloContext';\n cache.set(React.createContext, context);\n }\n return context;\n}\nexport { getApolloContext as resetApolloContext };\n//# sourceMappingURL=ApolloContext.js.map","import React from 'react';\nimport { ApolloClient } from '../../core';\nimport { canUseWeakMap } from '../../utilities';\n\nexport interface ApolloContextValue {\n client?: ApolloClient;\n renderPromises?: Record;\n}\n\n// To make sure Apollo Client doesn't create more than one React context\n// (which can lead to problems like having an Apollo Client instance added\n// in one context, then attempting to retrieve it from another different\n// context), a single Apollo context is created and tracked in global state.\n// We use React.createContext as the key instead of just React to avoid\n// ambiguities between default and namespace React imports.\n\nconst cache = new (canUseWeakMap ? WeakMap : Map)<\n typeof React.createContext,\n React.Context\n>();\n\nexport function getApolloContext() {\n let context = cache.get(React.createContext)!;\n if (!context) {\n context = React.createContext({});\n context.displayName = 'ApolloContext';\n cache.set(React.createContext, context);\n }\n return context;\n}\n\nexport { getApolloContext as resetApolloContext }\n","import React from 'react';\nimport { invariant } from 'ts-invariant';\nimport { getApolloContext } from \"./ApolloContext.js\";\nexport var ApolloProvider = function (_a) {\n var client = _a.client, children = _a.children;\n var ApolloContext = getApolloContext();\n return React.createElement(ApolloContext.Consumer, null, function (context) {\n if (context === void 0) { context = {}; }\n if (client && context.client !== client) {\n context = Object.assign({}, context, { client: client });\n }\n process.env.NODE_ENV === \"production\" ? invariant(context.client, 28) : invariant(context.client, 'ApolloProvider was not passed a client instance. Make ' +\n 'sure you pass in your client via the \"client\" prop.');\n return (React.createElement(ApolloContext.Provider, { value: context }, children));\n });\n};\n//# sourceMappingURL=ApolloProvider.js.map","import React from 'react';\nimport { invariant } from 'ts-invariant';\n\nimport { ApolloClient } from '../../core';\nimport { getApolloContext } from './ApolloContext';\n\nexport interface ApolloProviderProps {\n client: ApolloClient;\n children: React.ReactNode | React.ReactNode[] | null;\n}\n\nexport const ApolloProvider: React.FC> = ({\n client,\n children\n}) => {\n const ApolloContext = getApolloContext();\n return (\n \n {(context: any = {}) => {\n if (client && context.client !== client) {\n context = Object.assign({}, context, { client });\n }\n\n invariant(\n context.client,\n 'ApolloProvider was not passed a client instance. Make ' +\n 'sure you pass in your client via the \"client\" prop.'\n );\n\n return (\n \n {children}\n \n );\n }}\n \n );\n};\n","export * from \"./useApolloClient.js\";\nexport * from \"./useLazyQuery.js\";\nexport * from \"./useMutation.js\";\nexport * from \"./useQuery.js\";\nexport * from \"./useSubscription.js\";\nexport * from \"./useReactiveVar.js\";\n//# sourceMappingURL=index.js.map","export * from './useApolloClient';\nexport * from './useLazyQuery';\nexport * from './useMutation';\nexport * from './useQuery';\nexport * from './useSubscription';\nexport * from './useReactiveVar';\n","import React from 'react';\nimport { invariant } from 'ts-invariant';\nimport { getApolloContext } from \"../context/index.js\";\nexport function useApolloClient() {\n var client = React.useContext(getApolloContext()).client;\n process.env.NODE_ENV === \"production\" ? invariant(client, 33) : invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' +\n 'have called `ApolloProvider` higher up in your tree.');\n return client;\n}\n//# sourceMappingURL=useApolloClient.js.map","import React from 'react';\nimport { invariant } from 'ts-invariant';\n\nimport { ApolloClient } from '../../core';\nimport { getApolloContext } from '../context';\n\nexport function useApolloClient(): ApolloClient {\n const { client } = React.useContext(getApolloContext());\n invariant(\n client,\n 'No Apollo Client instance can be found. Please ensure that you ' +\n 'have called `ApolloProvider` higher up in your tree.'\n );\n return client!;\n}\n","import { useBaseQuery } from \"./utils/useBaseQuery.js\";\nexport function useLazyQuery(query, options) {\n return useBaseQuery(query, options, true);\n}\n//# sourceMappingURL=useLazyQuery.js.map","import { DocumentNode } from 'graphql';\nimport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport { LazyQueryHookOptions, QueryTuple } from '../types/types';\nimport { useBaseQuery } from './utils/useBaseQuery';\nimport { OperationVariables } from '../../core';\n\nexport function useLazyQuery(\n query: DocumentNode | TypedDocumentNode,\n options?: LazyQueryHookOptions\n) {\n return useBaseQuery(query, options, true) as QueryTuple<\n TData,\n TVariables\n >;\n}\n","import { __assign } from \"tslib\";\nimport { useContext, useEffect, useReducer, useRef } from 'react';\nimport { QueryData } from \"../../data/index.js\";\nimport { useDeepMemo } from \"./useDeepMemo.js\";\nimport { getApolloContext } from \"../../context/index.js\";\nexport function useBaseQuery(query, options, lazy) {\n if (lazy === void 0) { lazy = false; }\n var context = useContext(getApolloContext());\n var _a = useReducer(function (x) { return x + 1; }, 0), tick = _a[0], forceUpdate = _a[1];\n var updatedOptions = options ? __assign(__assign({}, options), { query: query }) : { query: query };\n var queryDataRef = useRef();\n var queryData = queryDataRef.current || (queryDataRef.current = new QueryData({\n options: updatedOptions,\n context: context,\n onNewData: function () {\n if (!queryData.ssrInitiated()) {\n Promise.resolve().then(function () { return queryDataRef.current && forceUpdate(); });\n }\n else {\n forceUpdate();\n }\n }\n }));\n queryData.setOptions(updatedOptions);\n queryData.context = context;\n var memo = {\n options: __assign(__assign({}, updatedOptions), { onError: undefined, onCompleted: undefined }),\n context: context,\n tick: tick\n };\n var result = useDeepMemo(function () { return (lazy ? queryData.executeLazy() : queryData.execute()); }, memo);\n var queryResult = lazy\n ? result[1]\n : result;\n useEffect(function () {\n return function () { return queryData.cleanup(); };\n }, []);\n useEffect(function () { return queryData.afterExecute({ lazy: lazy }); }, [\n queryResult.loading,\n queryResult.networkStatus,\n queryResult.error,\n queryResult.data,\n ]);\n return result;\n}\n//# sourceMappingURL=useBaseQuery.js.map","import { useContext, useEffect, useReducer, useRef } from 'react';\nimport { DocumentNode } from 'graphql';\nimport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport {\n QueryHookOptions,\n QueryDataOptions,\n QueryTuple,\n QueryResult,\n} from '../../types/types';\nimport { QueryData } from '../../data';\nimport { useDeepMemo } from './useDeepMemo';\nimport { OperationVariables } from '../../../core';\nimport { getApolloContext } from '../../context';\n\nexport function useBaseQuery(\n query: DocumentNode | TypedDocumentNode,\n options?: QueryHookOptions,\n lazy = false\n) {\n const context = useContext(getApolloContext());\n const [tick, forceUpdate] = useReducer(x => x + 1, 0);\n const updatedOptions = options ? { ...options, query } : { query };\n\n const queryDataRef = useRef>();\n const queryData = queryDataRef.current || (\n queryDataRef.current = new QueryData({\n options: updatedOptions as QueryDataOptions,\n context,\n onNewData() {\n if (!queryData.ssrInitiated()) {\n // When new data is received from the `QueryData` object, we want to\n // force a re-render to make sure the new data is displayed. We can't\n // force that re-render if we're already rendering however so to be\n // safe we'll trigger the re-render in a microtask. In case the\n // component gets unmounted before this callback fires, we re-check\n // queryDataRef.current before calling forceUpdate().\n Promise.resolve().then(() => queryDataRef.current && forceUpdate());\n } else {\n // If we're rendering on the server side we can force an update at\n // any point.\n forceUpdate();\n }\n }\n })\n );\n\n queryData.setOptions(updatedOptions);\n queryData.context = context;\n\n // `onError` and `onCompleted` callback functions will not always have a\n // stable identity, so we'll exclude them from the memoization key to\n // prevent `afterExecute` from being triggered un-necessarily.\n const memo = {\n options: {\n ...updatedOptions,\n onError: undefined,\n onCompleted: undefined\n } as QueryHookOptions,\n context,\n tick\n };\n\n const result = useDeepMemo(\n () => (lazy ? queryData.executeLazy() : queryData.execute()),\n memo\n );\n\n const queryResult = lazy\n ? (result as QueryTuple)[1]\n : (result as QueryResult);\n\n useEffect(() => {\n return () => queryData.cleanup();\n }, []);\n\n useEffect(() => queryData.afterExecute({ lazy }), [\n queryResult.loading,\n queryResult.networkStatus,\n queryResult.error,\n queryResult.data,\n ]);\n\n return result;\n}\n","export { SubscriptionData } from \"./SubscriptionData.js\";\nexport { OperationData } from \"./OperationData.js\";\nexport { MutationData } from \"./MutationData.js\";\nexport { QueryData } from \"./QueryData.js\";\n//# sourceMappingURL=index.js.map","export { SubscriptionData } from './SubscriptionData';\nexport { OperationData } from './OperationData';\nexport { MutationData } from './MutationData';\nexport { QueryData } from './QueryData';\n","import { __assign, __extends } from \"tslib\";\nimport { equal } from '@wry/equality';\nimport { OperationData } from \"./OperationData.js\";\nvar SubscriptionData = (function (_super) {\n __extends(SubscriptionData, _super);\n function SubscriptionData(_a) {\n var options = _a.options, context = _a.context, setResult = _a.setResult;\n var _this = _super.call(this, options, context) || this;\n _this.currentObservable = {};\n _this.setResult = setResult;\n _this.initialize(options);\n return _this;\n }\n SubscriptionData.prototype.execute = function (result) {\n if (this.getOptions().skip === true) {\n this.cleanup();\n return {\n loading: false,\n error: undefined,\n data: undefined,\n variables: this.getOptions().variables\n };\n }\n var currentResult = result;\n if (this.refreshClient().isNew) {\n currentResult = this.getLoadingResult();\n }\n var shouldResubscribe = this.getOptions().shouldResubscribe;\n if (typeof shouldResubscribe === 'function') {\n shouldResubscribe = !!shouldResubscribe(this.getOptions());\n }\n if (shouldResubscribe !== false &&\n this.previousOptions &&\n Object.keys(this.previousOptions).length > 0 &&\n (this.previousOptions.subscription !== this.getOptions().subscription ||\n !equal(this.previousOptions.variables, this.getOptions().variables) ||\n this.previousOptions.skip !== this.getOptions().skip)) {\n this.cleanup();\n currentResult = this.getLoadingResult();\n }\n this.initialize(this.getOptions());\n this.startSubscription();\n this.previousOptions = this.getOptions();\n return __assign(__assign({}, currentResult), { variables: this.getOptions().variables });\n };\n SubscriptionData.prototype.afterExecute = function () {\n this.isMounted = true;\n };\n SubscriptionData.prototype.cleanup = function () {\n this.endSubscription();\n delete this.currentObservable.query;\n };\n SubscriptionData.prototype.initialize = function (options) {\n if (this.currentObservable.query || this.getOptions().skip === true)\n return;\n this.currentObservable.query = this.refreshClient().client.subscribe({\n query: options.subscription,\n variables: options.variables,\n fetchPolicy: options.fetchPolicy,\n context: options.context,\n });\n };\n SubscriptionData.prototype.startSubscription = function () {\n if (this.currentObservable.subscription)\n return;\n this.currentObservable.subscription = this.currentObservable.query.subscribe({\n next: this.updateCurrentData.bind(this),\n error: this.updateError.bind(this),\n complete: this.completeSubscription.bind(this)\n });\n };\n SubscriptionData.prototype.getLoadingResult = function () {\n return {\n loading: true,\n error: undefined,\n data: undefined\n };\n };\n SubscriptionData.prototype.updateResult = function (result) {\n if (this.isMounted) {\n this.setResult(result);\n }\n };\n SubscriptionData.prototype.updateCurrentData = function (result) {\n var onSubscriptionData = this.getOptions().onSubscriptionData;\n this.updateResult({\n data: result.data,\n loading: false,\n error: undefined\n });\n if (onSubscriptionData) {\n onSubscriptionData({\n client: this.refreshClient().client,\n subscriptionData: result\n });\n }\n };\n SubscriptionData.prototype.updateError = function (error) {\n this.updateResult({\n error: error,\n loading: false\n });\n };\n SubscriptionData.prototype.completeSubscription = function () {\n var _this = this;\n Promise.resolve().then(function () {\n var onSubscriptionComplete = _this.getOptions().onSubscriptionComplete;\n if (onSubscriptionComplete)\n onSubscriptionComplete();\n _this.endSubscription();\n });\n };\n SubscriptionData.prototype.endSubscription = function () {\n if (this.currentObservable.subscription) {\n this.currentObservable.subscription.unsubscribe();\n delete this.currentObservable.subscription;\n }\n };\n return SubscriptionData;\n}(OperationData));\nexport { SubscriptionData };\n//# sourceMappingURL=SubscriptionData.js.map","import { equal } from '@wry/equality';\n\nimport { OperationData } from './OperationData';\nimport {\n SubscriptionCurrentObservable,\n SubscriptionDataOptions,\n SubscriptionResult\n} from '../types/types';\n\nexport class SubscriptionData<\n TData = any,\n TVariables = any\n> extends OperationData> {\n private setResult: any;\n private currentObservable: SubscriptionCurrentObservable = {};\n\n constructor({\n options,\n context,\n setResult\n }: {\n options: SubscriptionDataOptions;\n context: any;\n setResult: any;\n }) {\n super(options, context);\n this.setResult = setResult;\n this.initialize(options);\n }\n\n public execute(result: SubscriptionResult) {\n if (this.getOptions().skip === true) {\n this.cleanup();\n return {\n loading: false,\n error: undefined,\n data: undefined,\n variables: this.getOptions().variables\n };\n }\n\n let currentResult = result;\n if (this.refreshClient().isNew) {\n currentResult = this.getLoadingResult();\n }\n\n let { shouldResubscribe } = this.getOptions();\n if (typeof shouldResubscribe === 'function') {\n shouldResubscribe = !!shouldResubscribe(this.getOptions());\n }\n\n if (\n shouldResubscribe !== false &&\n this.previousOptions &&\n Object.keys(this.previousOptions).length > 0 &&\n (this.previousOptions.subscription !== this.getOptions().subscription ||\n !equal(this.previousOptions.variables, this.getOptions().variables) ||\n this.previousOptions.skip !== this.getOptions().skip)\n ) {\n this.cleanup();\n currentResult = this.getLoadingResult();\n }\n\n this.initialize(this.getOptions());\n this.startSubscription();\n\n this.previousOptions = this.getOptions();\n return { ...currentResult, variables: this.getOptions().variables };\n }\n\n public afterExecute() {\n this.isMounted = true;\n }\n\n public cleanup() {\n this.endSubscription();\n delete this.currentObservable.query;\n }\n\n private initialize(options: SubscriptionDataOptions) {\n if (this.currentObservable.query || this.getOptions().skip === true) return;\n this.currentObservable.query = this.refreshClient().client.subscribe({\n query: options.subscription,\n variables: options.variables,\n fetchPolicy: options.fetchPolicy,\n context: options.context,\n });\n }\n\n private startSubscription() {\n if (this.currentObservable.subscription) return;\n this.currentObservable.subscription = this.currentObservable.query!.subscribe(\n {\n next: this.updateCurrentData.bind(this),\n error: this.updateError.bind(this),\n complete: this.completeSubscription.bind(this)\n }\n );\n }\n\n private getLoadingResult() {\n return {\n loading: true,\n error: undefined,\n data: undefined\n } as SubscriptionResult;\n }\n\n private updateResult(result: SubscriptionResult) {\n if (this.isMounted) {\n this.setResult(result);\n }\n }\n\n private updateCurrentData(result: SubscriptionResult) {\n const { onSubscriptionData } = this.getOptions();\n\n this.updateResult({\n data: result.data,\n loading: false,\n error: undefined\n });\n\n if (onSubscriptionData) {\n onSubscriptionData({\n client: this.refreshClient().client,\n subscriptionData: result\n });\n }\n }\n\n private updateError(error: any) {\n this.updateResult({\n error,\n loading: false\n });\n }\n\n private completeSubscription() {\n // We have to defer this endSubscription call, because otherwise multiple\n // subscriptions for the same component will cause infinite rendering.\n // See https://github.com/apollographql/apollo-client/pull/7917\n Promise.resolve().then(() => {\n const { onSubscriptionComplete } = this.getOptions();\n if (onSubscriptionComplete) onSubscriptionComplete();\n this.endSubscription();\n });\n }\n\n private endSubscription() {\n if (this.currentObservable.subscription) {\n this.currentObservable.subscription.unsubscribe();\n delete this.currentObservable.subscription;\n }\n }\n}\n","import { equal } from '@wry/equality';\nimport { invariant } from 'ts-invariant';\nimport { parser, operationName } from \"../parser/index.js\";\nvar OperationData = (function () {\n function OperationData(options, context) {\n this.isMounted = false;\n this.previousOptions = {};\n this.context = {};\n this.options = {};\n this.options = options || {};\n this.context = context || {};\n }\n OperationData.prototype.getOptions = function () {\n return this.options;\n };\n OperationData.prototype.setOptions = function (newOptions, storePrevious) {\n if (storePrevious === void 0) { storePrevious = false; }\n if (storePrevious && !equal(this.options, newOptions)) {\n this.previousOptions = this.options;\n }\n this.options = newOptions;\n };\n OperationData.prototype.unmount = function () {\n this.isMounted = false;\n };\n OperationData.prototype.refreshClient = function () {\n var client = (this.options && this.options.client) ||\n (this.context && this.context.client);\n process.env.NODE_ENV === \"production\" ? invariant(!!client, 29) : invariant(!!client, 'Could not find \"client\" in the context or passed in as an option. ' +\n 'Wrap the root component in an , or pass an ' +\n 'ApolloClient instance in via options.');\n var isNew = false;\n if (client !== this.client) {\n isNew = true;\n this.client = client;\n this.cleanup();\n }\n return {\n client: this.client,\n isNew: isNew\n };\n };\n OperationData.prototype.verifyDocumentType = function (document, type) {\n var operation = parser(document);\n var requiredOperationName = operationName(type);\n var usedOperationName = operationName(operation.type);\n process.env.NODE_ENV === \"production\" ? invariant(operation.type === type, 30) : invariant(operation.type === type, \"Running a \" + requiredOperationName + \" requires a graphql \" +\n (requiredOperationName + \", but a \" + usedOperationName + \" was used instead.\"));\n };\n return OperationData;\n}());\nexport { OperationData };\n//# sourceMappingURL=OperationData.js.map","import { DocumentNode } from 'graphql';\nimport { equal } from '@wry/equality';\nimport { invariant } from 'ts-invariant';\n\nimport { ApolloClient } from '../../core';\nimport { DocumentType, parser, operationName } from '../parser';\nimport { CommonOptions } from '../types/types';\n\nexport abstract class OperationData {\n public isMounted: boolean = false;\n public previousOptions: CommonOptions = {} as CommonOptions<\n TOptions\n >;\n public context: any = {};\n public client: ApolloClient;\n\n private options: CommonOptions = {} as CommonOptions;\n\n constructor(options?: CommonOptions, context?: any) {\n this.options = options || ({} as CommonOptions);\n this.context = context || {};\n }\n\n public getOptions(): CommonOptions {\n return this.options;\n }\n\n public setOptions(\n newOptions: CommonOptions,\n storePrevious: boolean = false\n ) {\n if (storePrevious && !equal(this.options, newOptions)) {\n this.previousOptions = this.options;\n }\n this.options = newOptions;\n }\n\n public abstract execute(...args: any): any;\n public abstract afterExecute(...args: any): void | (() => void);\n public abstract cleanup(): void;\n\n protected unmount() {\n this.isMounted = false;\n }\n\n protected refreshClient() {\n const client =\n (this.options && this.options.client) ||\n (this.context && this.context.client);\n\n invariant(\n !!client,\n 'Could not find \"client\" in the context or passed in as an option. ' +\n 'Wrap the root component in an , or pass an ' +\n 'ApolloClient instance in via options.'\n );\n\n let isNew = false;\n if (client !== this.client) {\n isNew = true;\n this.client = client;\n this.cleanup();\n }\n return {\n client: this.client as ApolloClient,\n isNew\n };\n }\n\n protected verifyDocumentType(document: DocumentNode, type: DocumentType) {\n const operation = parser(document);\n const requiredOperationName = operationName(type);\n const usedOperationName = operationName(operation.type);\n invariant(\n operation.type === type,\n `Running a ${requiredOperationName} requires a graphql ` +\n `${requiredOperationName}, but a ${usedOperationName} was used instead.`\n );\n }\n}\n","import { invariant } from 'ts-invariant';\nexport var DocumentType;\n(function (DocumentType) {\n DocumentType[DocumentType[\"Query\"] = 0] = \"Query\";\n DocumentType[DocumentType[\"Mutation\"] = 1] = \"Mutation\";\n DocumentType[DocumentType[\"Subscription\"] = 2] = \"Subscription\";\n})(DocumentType || (DocumentType = {}));\nvar cache = new Map();\nexport function operationName(type) {\n var name;\n switch (type) {\n case DocumentType.Query:\n name = 'Query';\n break;\n case DocumentType.Mutation:\n name = 'Mutation';\n break;\n case DocumentType.Subscription:\n name = 'Subscription';\n break;\n }\n return name;\n}\nexport function parser(document) {\n var cached = cache.get(document);\n if (cached)\n return cached;\n var variables, type, name;\n process.env.NODE_ENV === \"production\" ? invariant(!!document && !!document.kind, 34) : invariant(!!document && !!document.kind, \"Argument of \" + document + \" passed to parser was not a valid GraphQL \" +\n \"DocumentNode. You may need to use 'graphql-tag' or another method \" +\n \"to convert your operation into a document\");\n var fragments = document.definitions.filter(function (x) { return x.kind === 'FragmentDefinition'; });\n var queries = document.definitions.filter(function (x) {\n return x.kind === 'OperationDefinition' && x.operation === 'query';\n });\n var mutations = document.definitions.filter(function (x) {\n return x.kind === 'OperationDefinition' && x.operation === 'mutation';\n });\n var subscriptions = document.definitions.filter(function (x) {\n return x.kind === 'OperationDefinition' && x.operation === 'subscription';\n });\n process.env.NODE_ENV === \"production\" ? invariant(!fragments.length ||\n (queries.length || mutations.length || subscriptions.length), 35) : invariant(!fragments.length ||\n (queries.length || mutations.length || subscriptions.length), \"Passing only a fragment to 'graphql' is not yet supported. \" +\n \"You must include a query, subscription or mutation as well\");\n process.env.NODE_ENV === \"production\" ? invariant(queries.length + mutations.length + subscriptions.length <= 1, 36) : invariant(queries.length + mutations.length + subscriptions.length <= 1, \"react-apollo only supports a query, subscription, or a mutation per HOC. \" +\n (document + \" had \" + queries.length + \" queries, \" + subscriptions.length + \" \") +\n (\"subscriptions and \" + mutations.length + \" mutations. \") +\n \"You can use 'compose' to join multiple operation types to a component\");\n type = queries.length ? DocumentType.Query : DocumentType.Mutation;\n if (!queries.length && !mutations.length)\n type = DocumentType.Subscription;\n var definitions = queries.length\n ? queries\n : mutations.length\n ? mutations\n : subscriptions;\n process.env.NODE_ENV === \"production\" ? invariant(definitions.length === 1, 37) : invariant(definitions.length === 1, \"react-apollo only supports one definition per HOC. \" + document + \" had \" +\n (definitions.length + \" definitions. \") +\n \"You can use 'compose' to join multiple operation types to a component\");\n var definition = definitions[0];\n variables = definition.variableDefinitions || [];\n if (definition.name && definition.name.kind === 'Name') {\n name = definition.name.value;\n }\n else {\n name = 'data';\n }\n var payload = { name: name, type: type, variables: variables };\n cache.set(document, payload);\n return payload;\n}\n//# sourceMappingURL=index.js.map","import {\n DocumentNode,\n DefinitionNode,\n VariableDefinitionNode,\n OperationDefinitionNode\n} from 'graphql';\nimport { invariant } from 'ts-invariant';\n\nexport enum DocumentType {\n Query,\n Mutation,\n Subscription\n}\n\nexport interface IDocumentDefinition {\n type: DocumentType;\n name: string;\n variables: ReadonlyArray;\n}\n\nconst cache = new Map();\n\nexport function operationName(type: DocumentType) {\n let name;\n switch (type) {\n case DocumentType.Query:\n name = 'Query';\n break;\n case DocumentType.Mutation:\n name = 'Mutation';\n break;\n case DocumentType.Subscription:\n name = 'Subscription';\n break;\n }\n return name;\n}\n\n// This parser is mostly used to saftey check incoming documents.\nexport function parser(document: DocumentNode): IDocumentDefinition {\n const cached = cache.get(document);\n if (cached) return cached;\n\n let variables, type, name;\n\n invariant(\n !!document && !!document.kind,\n `Argument of ${document} passed to parser was not a valid GraphQL ` +\n `DocumentNode. You may need to use 'graphql-tag' or another method ` +\n `to convert your operation into a document`\n );\n\n const fragments = document.definitions.filter(\n (x: DefinitionNode) => x.kind === 'FragmentDefinition'\n );\n\n const queries = document.definitions.filter(\n (x: DefinitionNode) =>\n x.kind === 'OperationDefinition' && x.operation === 'query'\n );\n\n const mutations = document.definitions.filter(\n (x: DefinitionNode) =>\n x.kind === 'OperationDefinition' && x.operation === 'mutation'\n );\n\n const subscriptions = document.definitions.filter(\n (x: DefinitionNode) =>\n x.kind === 'OperationDefinition' && x.operation === 'subscription'\n );\n\n invariant(\n !fragments.length ||\n (queries.length || mutations.length || subscriptions.length),\n `Passing only a fragment to 'graphql' is not yet supported. ` +\n `You must include a query, subscription or mutation as well`\n );\n\n invariant(\n queries.length + mutations.length + subscriptions.length <= 1,\n `react-apollo only supports a query, subscription, or a mutation per HOC. ` +\n `${document} had ${queries.length} queries, ${subscriptions.length} ` +\n `subscriptions and ${mutations.length} mutations. ` +\n `You can use 'compose' to join multiple operation types to a component`\n );\n\n type = queries.length ? DocumentType.Query : DocumentType.Mutation;\n if (!queries.length && !mutations.length) type = DocumentType.Subscription;\n\n const definitions = queries.length\n ? queries\n : mutations.length\n ? mutations\n : subscriptions;\n\n invariant(\n definitions.length === 1,\n `react-apollo only supports one definition per HOC. ${document} had ` +\n `${definitions.length} definitions. ` +\n `You can use 'compose' to join multiple operation types to a component`\n );\n\n const definition = definitions[0] as OperationDefinitionNode;\n variables = definition.variableDefinitions || [];\n\n if (definition.name && definition.name.kind === 'Name') {\n name = definition.name.value;\n } else {\n name = 'data'; // fallback to using data if no name\n }\n\n const payload = { name, type, variables };\n cache.set(document, payload);\n return payload;\n}\n","import { __assign, __extends } from \"tslib\";\nimport { equal } from '@wry/equality';\nimport { DocumentType } from \"../parser/index.js\";\nimport { ApolloError } from \"../../errors/index.js\";\nimport { OperationData } from \"./OperationData.js\";\nimport { mergeOptions } from \"../../core/index.js\";\nvar MutationData = (function (_super) {\n __extends(MutationData, _super);\n function MutationData(_a) {\n var options = _a.options, context = _a.context, result = _a.result, setResult = _a.setResult;\n var _this = _super.call(this, options, context) || this;\n _this.runMutation = function (mutationFunctionOptions) {\n if (mutationFunctionOptions === void 0) { mutationFunctionOptions = {}; }\n _this.onMutationStart();\n var mutationId = _this.generateNewMutationId();\n return _this.mutate(mutationFunctionOptions)\n .then(function (response) {\n _this.onMutationCompleted(response, mutationId);\n return response;\n })\n .catch(function (error) {\n _this.onMutationError(error, mutationId);\n if (!_this.getOptions().onError)\n throw error;\n });\n };\n _this.verifyDocumentType(options.mutation, DocumentType.Mutation);\n _this.result = result;\n _this.setResult = setResult;\n _this.mostRecentMutationId = 0;\n return _this;\n }\n MutationData.prototype.execute = function (result) {\n this.isMounted = true;\n this.verifyDocumentType(this.getOptions().mutation, DocumentType.Mutation);\n return [\n this.runMutation,\n __assign(__assign({}, result), { client: this.refreshClient().client })\n ];\n };\n MutationData.prototype.afterExecute = function () {\n this.isMounted = true;\n return this.unmount.bind(this);\n };\n MutationData.prototype.cleanup = function () {\n };\n MutationData.prototype.mutate = function (options) {\n return this.refreshClient().client.mutate(mergeOptions(this.getOptions(), options));\n };\n MutationData.prototype.onMutationStart = function () {\n if (!this.result.loading && !this.getOptions().ignoreResults) {\n this.updateResult({\n loading: true,\n error: undefined,\n data: undefined,\n called: true\n });\n }\n };\n MutationData.prototype.onMutationCompleted = function (response, mutationId) {\n var _a = this.getOptions(), onCompleted = _a.onCompleted, ignoreResults = _a.ignoreResults;\n var data = response.data, errors = response.errors;\n var error = errors && errors.length > 0\n ? new ApolloError({ graphQLErrors: errors })\n : undefined;\n var callOncomplete = function () {\n return onCompleted ? onCompleted(data) : null;\n };\n if (this.isMostRecentMutation(mutationId) && !ignoreResults) {\n this.updateResult({\n called: true,\n loading: false,\n data: data,\n error: error\n });\n }\n callOncomplete();\n };\n MutationData.prototype.onMutationError = function (error, mutationId) {\n var onError = this.getOptions().onError;\n if (this.isMostRecentMutation(mutationId)) {\n this.updateResult({\n loading: false,\n error: error,\n data: undefined,\n called: true\n });\n }\n if (onError) {\n onError(error);\n }\n };\n MutationData.prototype.generateNewMutationId = function () {\n return ++this.mostRecentMutationId;\n };\n MutationData.prototype.isMostRecentMutation = function (mutationId) {\n return this.mostRecentMutationId === mutationId;\n };\n MutationData.prototype.updateResult = function (result) {\n if (this.isMounted &&\n (!this.previousResult || !equal(this.previousResult, result))) {\n this.setResult(result);\n this.previousResult = result;\n }\n };\n return MutationData;\n}(OperationData));\nexport { MutationData };\n//# sourceMappingURL=MutationData.js.map","import { equal } from '@wry/equality';\n\nimport { DocumentType } from '../parser';\nimport { ApolloError } from '../../errors';\nimport {\n MutationDataOptions,\n MutationTuple,\n MutationFunctionOptions,\n MutationResult,\n} from '../types/types';\nimport { OperationData } from './OperationData';\nimport { OperationVariables, MutationOptions, mergeOptions } from '../../core';\nimport { FetchResult } from '../../link/core';\n\ntype MutationResultWithoutClient = Omit, 'client'>;\n\nexport class MutationData<\n TData = any,\n TVariables = OperationVariables\n> extends OperationData> {\n private mostRecentMutationId: number;\n private result: MutationResultWithoutClient;\n private previousResult?: MutationResultWithoutClient;\n private setResult: (result: MutationResultWithoutClient) => any;\n\n constructor({\n options,\n context,\n result,\n setResult\n }: {\n options: MutationDataOptions;\n context: any;\n result: MutationResultWithoutClient;\n setResult: (result: MutationResultWithoutClient) => any;\n }) {\n super(options, context);\n this.verifyDocumentType(options.mutation, DocumentType.Mutation);\n this.result = result;\n this.setResult = setResult;\n this.mostRecentMutationId = 0;\n }\n\n public execute(result: MutationResultWithoutClient): MutationTuple {\n this.isMounted = true;\n this.verifyDocumentType(this.getOptions().mutation, DocumentType.Mutation);\n return [\n this.runMutation,\n { ...result, client: this.refreshClient().client }\n ] as MutationTuple;\n }\n\n public afterExecute() {\n this.isMounted = true;\n return this.unmount.bind(this);\n }\n\n public cleanup() {\n // No cleanup required.\n }\n\n private runMutation = (\n mutationFunctionOptions: MutationFunctionOptions<\n TData,\n TVariables\n > = {} as MutationFunctionOptions\n ) => {\n this.onMutationStart();\n const mutationId = this.generateNewMutationId();\n\n return this.mutate(mutationFunctionOptions)\n .then((response: FetchResult) => {\n this.onMutationCompleted(response, mutationId);\n return response;\n })\n .catch((error: ApolloError) => {\n this.onMutationError(error, mutationId);\n if (!this.getOptions().onError) throw error;\n });\n };\n\n private mutate(\n options: MutationFunctionOptions\n ) {\n return this.refreshClient().client.mutate(\n mergeOptions(\n this.getOptions(),\n options as MutationOptions,\n ),\n );\n }\n\n private onMutationStart() {\n if (!this.result.loading && !this.getOptions().ignoreResults) {\n this.updateResult({\n loading: true,\n error: undefined,\n data: undefined,\n called: true\n });\n }\n }\n\n private onMutationCompleted(\n response: FetchResult,\n mutationId: number\n ) {\n const { onCompleted, ignoreResults } = this.getOptions();\n\n const { data, errors } = response;\n const error =\n errors && errors.length > 0\n ? new ApolloError({ graphQLErrors: errors })\n : undefined;\n\n const callOncomplete = () =>\n onCompleted ? onCompleted(data as TData) : null;\n\n if (this.isMostRecentMutation(mutationId) && !ignoreResults) {\n this.updateResult({\n called: true,\n loading: false,\n data,\n error\n });\n }\n callOncomplete();\n }\n\n private onMutationError(error: ApolloError, mutationId: number) {\n const { onError } = this.getOptions();\n\n if (this.isMostRecentMutation(mutationId)) {\n this.updateResult({\n loading: false,\n error,\n data: undefined,\n called: true\n });\n }\n\n if (onError) {\n onError(error);\n }\n }\n\n private generateNewMutationId(): number {\n return ++this.mostRecentMutationId;\n }\n\n private isMostRecentMutation(mutationId: number) {\n return this.mostRecentMutationId === mutationId;\n }\n\n private updateResult(result: MutationResultWithoutClient) {\n if (\n this.isMounted &&\n (!this.previousResult || !equal(this.previousResult, result))\n ) {\n this.setResult(result);\n this.previousResult = result;\n }\n }\n}\n","import { __assign, __extends } from \"tslib\";\nimport { equal } from '@wry/equality';\nimport { ApolloError } from \"../../errors/index.js\";\nimport { NetworkStatus } from \"../../core/index.js\";\nimport { DocumentType } from \"../parser/index.js\";\nimport { OperationData } from \"./OperationData.js\";\nvar QueryData = (function (_super) {\n __extends(QueryData, _super);\n function QueryData(_a) {\n var options = _a.options, context = _a.context, onNewData = _a.onNewData;\n var _this = _super.call(this, options, context) || this;\n _this.runLazy = false;\n _this.previous = Object.create(null);\n _this.runLazyQuery = function (options) {\n _this.cleanup();\n _this.runLazy = true;\n _this.lazyOptions = options;\n _this.onNewData();\n };\n _this.getQueryResult = function () {\n var result = _this.observableQueryFields();\n var options = _this.getOptions();\n if (options.skip) {\n result = __assign(__assign({}, result), { data: undefined, error: undefined, loading: false, networkStatus: NetworkStatus.ready, called: true });\n }\n else if (_this.currentObservable) {\n var currentResult = _this.currentObservable.getCurrentResult();\n var data = currentResult.data, loading = currentResult.loading, partial = currentResult.partial, networkStatus = currentResult.networkStatus, errors = currentResult.errors;\n var error = currentResult.error;\n if (errors && errors.length > 0) {\n error = new ApolloError({ graphQLErrors: errors });\n }\n result = __assign(__assign({}, result), { data: data,\n loading: loading,\n networkStatus: networkStatus,\n error: error, called: true });\n if (loading) {\n }\n else if (error) {\n Object.assign(result, {\n data: (_this.currentObservable.getLastResult() || {})\n .data\n });\n }\n else {\n var fetchPolicy = _this.currentObservable.options.fetchPolicy;\n var partialRefetch = options.partialRefetch;\n if (partialRefetch &&\n partial &&\n (!data || Object.keys(data).length === 0) &&\n fetchPolicy !== 'cache-only') {\n Object.assign(result, {\n loading: true,\n networkStatus: NetworkStatus.loading\n });\n result.refetch();\n return result;\n }\n }\n }\n result.client = _this.client;\n _this.setOptions(options, true);\n var previousResult = _this.previous.result;\n _this.previous.loading =\n previousResult && previousResult.loading || false;\n result.previousData = previousResult &&\n (previousResult.data || previousResult.previousData);\n _this.previous.result = result;\n _this.currentObservable && _this.currentObservable.resetQueryStoreErrors();\n return result;\n };\n _this.obsRefetch = function (variables) { var _a; return (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.refetch(variables); };\n _this.obsFetchMore = function (fetchMoreOptions) { return _this.currentObservable.fetchMore(fetchMoreOptions); };\n _this.obsUpdateQuery = function (mapFn) { return _this.currentObservable.updateQuery(mapFn); };\n _this.obsStartPolling = function (pollInterval) {\n var _a;\n (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.startPolling(pollInterval);\n };\n _this.obsStopPolling = function () {\n var _a;\n (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.stopPolling();\n };\n _this.obsSubscribeToMore = function (options) { return _this.currentObservable.subscribeToMore(options); };\n _this.onNewData = onNewData;\n return _this;\n }\n QueryData.prototype.execute = function () {\n this.refreshClient();\n var _a = this.getOptions(), skip = _a.skip, query = _a.query;\n if (skip || query !== this.previous.query) {\n this.removeQuerySubscription();\n this.removeObservable(!skip);\n this.previous.query = query;\n }\n this.updateObservableQuery();\n if (this.isMounted)\n this.startQuerySubscription();\n return this.getExecuteSsrResult() || this.getExecuteResult();\n };\n QueryData.prototype.executeLazy = function () {\n return !this.runLazy\n ? [\n this.runLazyQuery,\n {\n loading: false,\n networkStatus: NetworkStatus.ready,\n called: false,\n data: undefined\n }\n ]\n : [this.runLazyQuery, this.execute()];\n };\n QueryData.prototype.fetchData = function () {\n var _this = this;\n var options = this.getOptions();\n if (options.skip || options.ssr === false)\n return false;\n return new Promise(function (resolve) { return _this.startQuerySubscription(resolve); });\n };\n QueryData.prototype.afterExecute = function (_a) {\n var _b = (_a === void 0 ? {} : _a).lazy, lazy = _b === void 0 ? false : _b;\n this.isMounted = true;\n if (!lazy || this.runLazy) {\n this.handleErrorOrCompleted();\n }\n this.previousOptions = this.getOptions();\n return this.unmount.bind(this);\n };\n QueryData.prototype.cleanup = function () {\n this.removeQuerySubscription();\n this.removeObservable(true);\n delete this.previous.result;\n };\n QueryData.prototype.getOptions = function () {\n var options = _super.prototype.getOptions.call(this);\n if (this.lazyOptions) {\n options.variables = __assign(__assign({}, options.variables), this.lazyOptions.variables);\n options.context = __assign(__assign({}, options.context), this.lazyOptions.context);\n }\n if (this.runLazy) {\n delete options.skip;\n }\n return options;\n };\n QueryData.prototype.ssrInitiated = function () {\n return this.context && this.context.renderPromises;\n };\n QueryData.prototype.getExecuteResult = function () {\n var result = this.getQueryResult();\n this.startQuerySubscription();\n return result;\n };\n ;\n QueryData.prototype.getExecuteSsrResult = function () {\n var _a = this.getOptions(), ssr = _a.ssr, skip = _a.skip;\n var ssrDisabled = ssr === false;\n var fetchDisabled = this.refreshClient().client.disableNetworkFetches;\n var ssrLoading = __assign({ loading: true, networkStatus: NetworkStatus.loading, called: true, data: undefined, stale: false, client: this.client }, this.observableQueryFields());\n if (ssrDisabled && (this.ssrInitiated() || fetchDisabled)) {\n this.previous.result = ssrLoading;\n return ssrLoading;\n }\n if (this.ssrInitiated()) {\n var result = this.getQueryResult() || ssrLoading;\n if (result.loading && !skip) {\n this.context.renderPromises.addQueryPromise(this, function () { return null; });\n }\n return result;\n }\n };\n QueryData.prototype.prepareObservableQueryOptions = function () {\n var options = this.getOptions();\n this.verifyDocumentType(options.query, DocumentType.Query);\n var displayName = options.displayName || 'Query';\n if (this.ssrInitiated() &&\n (options.fetchPolicy === 'network-only' ||\n options.fetchPolicy === 'cache-and-network')) {\n options.fetchPolicy = 'cache-first';\n }\n return __assign(__assign({}, options), { displayName: displayName, context: options.context });\n };\n QueryData.prototype.initializeObservableQuery = function () {\n if (this.ssrInitiated()) {\n this.currentObservable = this.context.renderPromises.getSSRObservable(this.getOptions());\n }\n if (!this.currentObservable) {\n var observableQueryOptions = this.prepareObservableQueryOptions();\n this.previous.observableQueryOptions = __assign(__assign({}, observableQueryOptions), { children: null });\n this.currentObservable = this.refreshClient().client.watchQuery(__assign({}, observableQueryOptions));\n if (this.ssrInitiated()) {\n this.context.renderPromises.registerSSRObservable(this.currentObservable, observableQueryOptions);\n }\n }\n };\n QueryData.prototype.updateObservableQuery = function () {\n if (!this.currentObservable) {\n this.initializeObservableQuery();\n return;\n }\n if (this.getOptions().skip)\n return;\n var newObservableQueryOptions = __assign(__assign({}, this.prepareObservableQueryOptions()), { children: null });\n if (!equal(newObservableQueryOptions, this.previous.observableQueryOptions)) {\n this.previous.observableQueryOptions = newObservableQueryOptions;\n this.currentObservable\n .setOptions(newObservableQueryOptions)\n .catch(function () { });\n }\n };\n QueryData.prototype.startQuerySubscription = function (onNewData) {\n var _this = this;\n if (onNewData === void 0) { onNewData = this.onNewData; }\n if (this.currentSubscription || this.getOptions().skip)\n return;\n this.currentSubscription = this.currentObservable.subscribe({\n next: function (_a) {\n var loading = _a.loading, networkStatus = _a.networkStatus, data = _a.data;\n var previousResult = _this.previous.result;\n if (previousResult &&\n previousResult.loading === loading &&\n previousResult.networkStatus === networkStatus &&\n equal(previousResult.data, data)) {\n return;\n }\n onNewData();\n },\n error: function (error) {\n _this.resubscribeToQuery();\n if (!error.hasOwnProperty('graphQLErrors'))\n throw error;\n var previousResult = _this.previous.result;\n if ((previousResult && previousResult.loading) ||\n !equal(error, _this.previous.error)) {\n _this.previous.error = error;\n onNewData();\n }\n }\n });\n };\n QueryData.prototype.resubscribeToQuery = function () {\n this.removeQuerySubscription();\n var currentObservable = this.currentObservable;\n if (currentObservable) {\n var lastError = currentObservable.getLastError();\n var lastResult = currentObservable.getLastResult();\n currentObservable.resetLastResults();\n this.startQuerySubscription();\n Object.assign(currentObservable, {\n lastError: lastError,\n lastResult: lastResult\n });\n }\n };\n QueryData.prototype.handleErrorOrCompleted = function () {\n if (!this.currentObservable || !this.previous.result)\n return;\n var _a = this.previous.result, data = _a.data, loading = _a.loading, error = _a.error;\n if (!loading) {\n var _b = this.getOptions(), query = _b.query, variables = _b.variables, onCompleted = _b.onCompleted, onError = _b.onError, skip = _b.skip;\n if (this.previousOptions &&\n !this.previous.loading &&\n equal(this.previousOptions.query, query) &&\n equal(this.previousOptions.variables, variables)) {\n return;\n }\n if (onCompleted && !error && !skip) {\n onCompleted(data);\n }\n else if (onError && error) {\n onError(error);\n }\n }\n };\n QueryData.prototype.removeQuerySubscription = function () {\n if (this.currentSubscription) {\n this.currentSubscription.unsubscribe();\n delete this.currentSubscription;\n }\n };\n QueryData.prototype.removeObservable = function (andDelete) {\n if (this.currentObservable) {\n this.currentObservable[\"tearDownQuery\"]();\n if (andDelete) {\n delete this.currentObservable;\n }\n }\n };\n QueryData.prototype.observableQueryFields = function () {\n var _a;\n return {\n variables: (_a = this.currentObservable) === null || _a === void 0 ? void 0 : _a.variables,\n refetch: this.obsRefetch,\n fetchMore: this.obsFetchMore,\n updateQuery: this.obsUpdateQuery,\n startPolling: this.obsStartPolling,\n stopPolling: this.obsStopPolling,\n subscribeToMore: this.obsSubscribeToMore\n };\n };\n return QueryData;\n}(OperationData));\nexport { QueryData };\n//# sourceMappingURL=QueryData.js.map","import { equal } from '@wry/equality';\n\nimport { ApolloError } from '../../errors';\n\nimport {\n ApolloClient,\n NetworkStatus,\n FetchMoreQueryOptions,\n SubscribeToMoreOptions,\n ObservableQuery,\n FetchMoreOptions,\n UpdateQueryOptions,\n DocumentNode,\n TypedDocumentNode\n} from '../../core';\n\nimport {\n ObservableSubscription\n} from '../../utilities';\n\nimport { DocumentType } from '../parser';\nimport {\n QueryResult,\n QueryDataOptions,\n QueryTuple,\n QueryLazyOptions,\n ObservableQueryFields,\n} from '../types/types';\nimport { OperationData } from './OperationData';\n\nexport class QueryData extends OperationData<\n QueryDataOptions\n> {\n public onNewData: () => void;\n private currentObservable?: ObservableQuery;\n private currentSubscription?: ObservableSubscription;\n private runLazy: boolean = false;\n private lazyOptions?: QueryLazyOptions;\n private previous: {\n client?: ApolloClient;\n query?: DocumentNode | TypedDocumentNode;\n observableQueryOptions?: {};\n result?: QueryResult;\n loading?: boolean;\n options?: QueryDataOptions;\n error?: ApolloError;\n } = Object.create(null);\n\n constructor({\n options,\n context,\n onNewData\n }: {\n options: QueryDataOptions;\n context: any;\n onNewData: () => void;\n }) {\n super(options, context);\n this.onNewData = onNewData;\n }\n\n public execute(): QueryResult {\n this.refreshClient();\n\n const { skip, query } = this.getOptions();\n if (skip || query !== this.previous.query) {\n this.removeQuerySubscription();\n this.removeObservable(!skip);\n this.previous.query = query;\n }\n\n this.updateObservableQuery();\n\n if (this.isMounted) this.startQuerySubscription();\n\n return this.getExecuteSsrResult() || this.getExecuteResult();\n }\n\n public executeLazy(): QueryTuple {\n return !this.runLazy\n ? [\n this.runLazyQuery,\n {\n loading: false,\n networkStatus: NetworkStatus.ready,\n called: false,\n data: undefined\n }\n ]\n : [this.runLazyQuery, this.execute()];\n }\n\n // For server-side rendering\n public fetchData(): Promise | boolean {\n const options = this.getOptions();\n if (options.skip || options.ssr === false) return false;\n return new Promise(resolve => this.startQuerySubscription(resolve));\n }\n\n public afterExecute({ lazy = false }: { lazy?: boolean } = {}) {\n this.isMounted = true;\n\n if (!lazy || this.runLazy) {\n this.handleErrorOrCompleted();\n }\n\n this.previousOptions = this.getOptions();\n return this.unmount.bind(this);\n }\n\n public cleanup() {\n this.removeQuerySubscription();\n this.removeObservable(true);\n delete this.previous.result;\n }\n\n public getOptions() {\n const options = super.getOptions();\n\n if (this.lazyOptions) {\n options.variables = {\n ...options.variables,\n ...this.lazyOptions.variables\n } as TVariables;\n options.context = {\n ...options.context,\n ...this.lazyOptions.context\n };\n }\n\n // skip is not supported when using lazy query execution.\n if (this.runLazy) {\n delete options.skip;\n }\n\n return options;\n }\n\n public ssrInitiated() {\n return this.context && this.context.renderPromises;\n }\n\n private runLazyQuery = (options?: QueryLazyOptions) => {\n this.cleanup();\n this.runLazy = true;\n this.lazyOptions = options;\n this.onNewData();\n };\n\n private getExecuteResult(): QueryResult {\n const result = this.getQueryResult();\n this.startQuerySubscription();\n return result;\n };\n\n private getExecuteSsrResult() {\n const { ssr, skip } = this.getOptions();\n const ssrDisabled = ssr === false;\n const fetchDisabled = this.refreshClient().client.disableNetworkFetches;\n\n const ssrLoading = {\n loading: true,\n networkStatus: NetworkStatus.loading,\n called: true,\n data: undefined,\n stale: false,\n client: this.client,\n ...this.observableQueryFields(),\n } as QueryResult;\n\n // If SSR has been explicitly disabled, and this function has been called\n // on the server side, return the default loading state.\n if (ssrDisabled && (this.ssrInitiated() || fetchDisabled)) {\n this.previous.result = ssrLoading;\n return ssrLoading;\n }\n\n if (this.ssrInitiated()) {\n const result = this.getQueryResult() || ssrLoading;\n if (result.loading && !skip) {\n this.context.renderPromises!.addQueryPromise(this, () => null);\n }\n return result;\n }\n }\n\n private prepareObservableQueryOptions() {\n const options = this.getOptions();\n this.verifyDocumentType(options.query, DocumentType.Query);\n const displayName = options.displayName || 'Query';\n\n // Set the fetchPolicy to cache-first for network-only and cache-and-network\n // fetches for server side renders.\n if (\n this.ssrInitiated() &&\n (options.fetchPolicy === 'network-only' ||\n options.fetchPolicy === 'cache-and-network')\n ) {\n options.fetchPolicy = 'cache-first';\n }\n\n return {\n ...options,\n displayName,\n context: options.context,\n };\n }\n\n private initializeObservableQuery() {\n // See if there is an existing observable that was used to fetch the same\n // data and if so, use it instead since it will contain the proper queryId\n // to fetch the result set. This is used during SSR.\n if (this.ssrInitiated()) {\n this.currentObservable = this.context!.renderPromises!.getSSRObservable(\n this.getOptions()\n );\n }\n\n if (!this.currentObservable) {\n const observableQueryOptions = this.prepareObservableQueryOptions();\n\n this.previous.observableQueryOptions = {\n ...observableQueryOptions,\n children: null\n };\n this.currentObservable = this.refreshClient().client.watchQuery({\n ...observableQueryOptions\n });\n\n if (this.ssrInitiated()) {\n this.context!.renderPromises!.registerSSRObservable(\n this.currentObservable,\n observableQueryOptions\n );\n }\n }\n }\n\n private updateObservableQuery() {\n // If we skipped initially, we may not have yet created the observable\n if (!this.currentObservable) {\n this.initializeObservableQuery();\n return;\n }\n\n if (this.getOptions().skip) return;\n\n const newObservableQueryOptions = {\n ...this.prepareObservableQueryOptions(),\n children: null\n };\n\n if (\n !equal(\n newObservableQueryOptions,\n this.previous.observableQueryOptions\n )\n ) {\n this.previous.observableQueryOptions = newObservableQueryOptions;\n this.currentObservable\n .setOptions(newObservableQueryOptions)\n // The error will be passed to the child container, so we don't\n // need to log it here. We could conceivably log something if\n // an option was set. OTOH we don't log errors w/ the original\n // query. See https://github.com/apollostack/react-apollo/issues/404\n .catch(() => {});\n }\n }\n\n // Setup a subscription to watch for Apollo Client `ObservableQuery` changes.\n // When new data is received, and it doesn't match the data that was used\n // during the last `QueryData.execute` call (and ultimately the last query\n // component render), trigger the `onNewData` callback. If not specified,\n // `onNewData` will fallback to the default `QueryData.onNewData` function\n // (which usually leads to a query component re-render).\n private startQuerySubscription(onNewData: () => void = this.onNewData) {\n if (this.currentSubscription || this.getOptions().skip) return;\n\n this.currentSubscription = this.currentObservable!.subscribe({\n next: ({ loading, networkStatus, data }) => {\n const previousResult = this.previous.result;\n\n // Make sure we're not attempting to re-render similar results\n if (\n previousResult &&\n previousResult.loading === loading &&\n previousResult.networkStatus === networkStatus &&\n equal(previousResult.data, data)\n ) {\n return;\n }\n\n onNewData();\n },\n error: error => {\n this.resubscribeToQuery();\n if (!error.hasOwnProperty('graphQLErrors')) throw error;\n\n const previousResult = this.previous.result;\n if (\n (previousResult && previousResult.loading) ||\n !equal(error, this.previous.error)\n ) {\n this.previous.error = error;\n onNewData();\n }\n }\n });\n }\n\n private resubscribeToQuery() {\n this.removeQuerySubscription();\n\n // Unfortunately, if `lastError` is set in the current\n // `observableQuery` when the subscription is re-created,\n // the subscription will immediately receive the error, which will\n // cause it to terminate again. To avoid this, we first clear\n // the last error/result from the `observableQuery` before re-starting\n // the subscription, and restore it afterwards (so the subscription\n // has a chance to stay open).\n const { currentObservable } = this;\n if (currentObservable) {\n const lastError = currentObservable.getLastError();\n const lastResult = currentObservable.getLastResult();\n currentObservable.resetLastResults();\n this.startQuerySubscription();\n Object.assign(currentObservable, {\n lastError,\n lastResult\n });\n }\n }\n\n private getQueryResult = (): QueryResult => {\n let result = this.observableQueryFields() as QueryResult;\n const options = this.getOptions();\n\n // When skipping a query (ie. we're not querying for data but still want\n // to render children), make sure the `data` is cleared out and\n // `loading` is set to `false` (since we aren't loading anything).\n //\n // NOTE: We no longer think this is the correct behavior. Skipping should\n // not automatically set `data` to `undefined`, but instead leave the\n // previous data in place. In other words, skipping should not mandate\n // that previously received data is all of a sudden removed. Unfortunately,\n // changing this is breaking, so we'll have to wait until Apollo Client\n // 4.0 to address this.\n if (options.skip) {\n result = {\n ...result,\n data: undefined,\n error: undefined,\n loading: false,\n networkStatus: NetworkStatus.ready,\n called: true,\n };\n } else if (this.currentObservable) {\n // Fetch the current result (if any) from the store.\n const currentResult = this.currentObservable.getCurrentResult();\n const { data, loading, partial, networkStatus, errors } = currentResult;\n let { error } = currentResult;\n\n // Until a set naming convention for networkError and graphQLErrors is\n // decided upon, we map errors (graphQLErrors) to the error options.\n if (errors && errors.length > 0) {\n error = new ApolloError({ graphQLErrors: errors });\n }\n\n result = {\n ...result,\n data,\n loading,\n networkStatus,\n error,\n called: true\n };\n\n if (loading) {\n // Fall through without modifying result...\n } else if (error) {\n Object.assign(result, {\n data: (this.currentObservable.getLastResult() || ({} as any))\n .data\n });\n } else {\n const { fetchPolicy } = this.currentObservable.options;\n const { partialRefetch } = options;\n if (\n partialRefetch &&\n partial &&\n (!data || Object.keys(data).length === 0) &&\n fetchPolicy !== 'cache-only'\n ) {\n // When a `Query` component is mounted, and a mutation is executed\n // that returns the same ID as the mounted `Query`, but has less\n // fields in its result, Apollo Client's `QueryManager` returns the\n // data as `undefined` since a hit can't be found in the cache.\n // This can lead to application errors when the UI elements rendered by\n // the original `Query` component are expecting certain data values to\n // exist, and they're all of a sudden stripped away. To help avoid\n // this we'll attempt to refetch the `Query` data.\n Object.assign(result, {\n loading: true,\n networkStatus: NetworkStatus.loading\n });\n result.refetch();\n return result;\n }\n }\n }\n\n result.client = this.client;\n // Store options as this.previousOptions.\n this.setOptions(options, true);\n\n const previousResult = this.previous.result;\n\n this.previous.loading =\n previousResult && previousResult.loading || false;\n\n // Ensure the returned result contains previousData as a separate\n // property, to give developers the flexibility of leveraging outdated\n // data while new data is loading from the network. Falling back to\n // previousResult.previousData when previousResult.data is falsy here\n // allows result.previousData to persist across multiple results.\n result.previousData = previousResult &&\n (previousResult.data || previousResult.previousData);\n\n this.previous.result = result;\n\n // Any query errors that exist are now available in `result`, so we'll\n // remove the original errors from the `ObservableQuery` query store to\n // make sure they aren't re-displayed on subsequent (potentially error\n // free) requests/responses.\n this.currentObservable && this.currentObservable.resetQueryStoreErrors();\n\n return result;\n }\n\n private handleErrorOrCompleted() {\n if (!this.currentObservable || !this.previous.result) return;\n\n const { data, loading, error } = this.previous.result;\n\n if (!loading) {\n const {\n query,\n variables,\n onCompleted,\n onError,\n skip\n } = this.getOptions();\n\n // No changes, so we won't call onError/onCompleted.\n if (\n this.previousOptions &&\n !this.previous.loading &&\n equal(this.previousOptions.query, query) &&\n equal(this.previousOptions.variables, variables)\n ) {\n return;\n }\n\n if (onCompleted && !error && !skip) {\n onCompleted(data as TData);\n } else if (onError && error) {\n onError(error);\n }\n }\n }\n\n private removeQuerySubscription() {\n if (this.currentSubscription) {\n this.currentSubscription.unsubscribe();\n delete this.currentSubscription;\n }\n }\n\n private removeObservable(andDelete: boolean) {\n if (this.currentObservable) {\n this.currentObservable[\"tearDownQuery\"]();\n if (andDelete) {\n delete this.currentObservable;\n }\n }\n }\n\n private obsRefetch = (variables?: Partial) =>\n this.currentObservable?.refetch(variables);\n\n private obsFetchMore = (\n fetchMoreOptions: FetchMoreQueryOptions &\n FetchMoreOptions\n ) => this.currentObservable!.fetchMore(fetchMoreOptions);\n\n private obsUpdateQuery = (\n mapFn: (\n previousQueryResult: TData,\n options: UpdateQueryOptions\n ) => TData\n ) => this.currentObservable!.updateQuery(mapFn);\n\n private obsStartPolling = (pollInterval: number) => {\n this.currentObservable?.startPolling(pollInterval);\n };\n\n private obsStopPolling = () => {\n this.currentObservable?.stopPolling();\n };\n\n private obsSubscribeToMore = <\n TSubscriptionData = TData,\n TSubscriptionVariables = TVariables\n >(\n options: SubscribeToMoreOptions<\n TData,\n TSubscriptionVariables,\n TSubscriptionData\n >\n ) => this.currentObservable!.subscribeToMore(options);\n\n private observableQueryFields() {\n return {\n variables: this.currentObservable?.variables,\n refetch: this.obsRefetch,\n fetchMore: this.obsFetchMore,\n updateQuery: this.obsUpdateQuery,\n startPolling: this.obsStartPolling,\n stopPolling: this.obsStopPolling,\n subscribeToMore: this.obsSubscribeToMore\n } as ObservableQueryFields;\n }\n}\n","import { useRef } from 'react';\nimport { equal } from '@wry/equality';\nexport function useDeepMemo(memoFn, key) {\n var ref = useRef();\n if (!ref.current || !equal(key, ref.current.key)) {\n ref.current = { key: key, value: memoFn() };\n }\n return ref.current.value;\n}\n//# sourceMappingURL=useDeepMemo.js.map","import { useRef } from 'react';\nimport { equal } from '@wry/equality';\n\n/**\n * Memoize a result using deep equality. This hook has two advantages over\n * React.useMemo: it uses deep equality to compare memo keys, and it guarantees\n * that the memo function will only be called if the keys are unequal.\n * React.useMemo cannot be relied on to do this, since it is only a performance\n * optimization (see https://reactjs.org/docs/hooks-reference.html#usememo).\n */\nexport function useDeepMemo(\n memoFn: () => TValue,\n key: TKey\n): TValue {\n const ref = useRef<{ key: TKey; value: TValue }>();\n\n if (!ref.current || !equal(key, ref.current.key)) {\n ref.current = { key, value: memoFn() };\n }\n\n return ref.current.value;\n}\n","import { __assign } from \"tslib\";\nimport { useContext, useState, useRef, useEffect } from 'react';\nimport { MutationData } from \"../data/index.js\";\nimport { getApolloContext } from \"../context/index.js\";\nexport function useMutation(mutation, options) {\n var context = useContext(getApolloContext());\n var _a = useState({ called: false, loading: false }), result = _a[0], setResult = _a[1];\n var updatedOptions = options ? __assign(__assign({}, options), { mutation: mutation }) : { mutation: mutation };\n var mutationDataRef = useRef();\n function getMutationDataRef() {\n if (!mutationDataRef.current) {\n mutationDataRef.current = new MutationData({\n options: updatedOptions,\n context: context,\n result: result,\n setResult: setResult\n });\n }\n return mutationDataRef.current;\n }\n var mutationData = getMutationDataRef();\n mutationData.setOptions(updatedOptions);\n mutationData.context = context;\n useEffect(function () { return mutationData.afterExecute(); });\n return mutationData.execute(result);\n}\n//# sourceMappingURL=useMutation.js.map","import { useContext, useState, useRef, useEffect } from 'react';\nimport { DocumentNode } from 'graphql';\nimport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport { MutationHookOptions, MutationTuple } from '../types/types';\nimport { MutationData } from '../data';\nimport { OperationVariables } from '../../core';\nimport { getApolloContext } from '../context';\n\nexport function useMutation(\n mutation: DocumentNode | TypedDocumentNode,\n options?: MutationHookOptions\n): MutationTuple {\n const context = useContext(getApolloContext());\n const [result, setResult] = useState({ called: false, loading: false });\n const updatedOptions = options ? { ...options, mutation } : { mutation };\n\n const mutationDataRef = useRef>();\n function getMutationDataRef() {\n if (!mutationDataRef.current) {\n mutationDataRef.current = new MutationData({\n options: updatedOptions,\n context,\n result,\n setResult\n });\n }\n return mutationDataRef.current;\n }\n\n const mutationData = getMutationDataRef();\n mutationData.setOptions(updatedOptions);\n mutationData.context = context;\n\n useEffect(() => mutationData.afterExecute());\n\n return mutationData.execute(result);\n}\n","import { useBaseQuery } from \"./utils/useBaseQuery.js\";\nexport function useQuery(query, options) {\n return useBaseQuery(query, options, false);\n}\n//# sourceMappingURL=useQuery.js.map","import { DocumentNode } from 'graphql';\nimport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport { QueryHookOptions, QueryResult } from '../types/types';\nimport { useBaseQuery } from './utils/useBaseQuery';\nimport { OperationVariables } from '../../core';\n\nexport function useQuery(\n query: DocumentNode | TypedDocumentNode,\n options?: QueryHookOptions\n) {\n return useBaseQuery(query, options, false) as QueryResult<\n TData,\n TVariables\n >;\n}\n","import { __assign } from \"tslib\";\nimport { useContext, useState, useRef, useEffect } from 'react';\nimport { SubscriptionData } from \"../data/index.js\";\nimport { getApolloContext } from \"../context/index.js\";\nexport function useSubscription(subscription, options) {\n var context = useContext(getApolloContext());\n var updatedOptions = options\n ? __assign(__assign({}, options), { subscription: subscription }) : { subscription: subscription };\n var _a = useState({\n loading: !updatedOptions.skip,\n error: undefined,\n data: undefined\n }), result = _a[0], setResult = _a[1];\n var subscriptionDataRef = useRef();\n function getSubscriptionDataRef() {\n if (!subscriptionDataRef.current) {\n subscriptionDataRef.current = new SubscriptionData({\n options: updatedOptions,\n context: context,\n setResult: setResult\n });\n }\n return subscriptionDataRef.current;\n }\n var subscriptionData = getSubscriptionDataRef();\n subscriptionData.setOptions(updatedOptions, true);\n subscriptionData.context = context;\n useEffect(function () { return subscriptionData.afterExecute(); });\n useEffect(function () { return subscriptionData.cleanup.bind(subscriptionData); }, []);\n return subscriptionData.execute(result);\n}\n//# sourceMappingURL=useSubscription.js.map","import { useContext, useState, useRef, useEffect } from 'react';\nimport { DocumentNode } from 'graphql';\nimport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport { SubscriptionHookOptions } from '../types/types';\nimport { SubscriptionData } from '../data';\nimport { OperationVariables } from '../../core';\nimport { getApolloContext } from '../context';\n\nexport function useSubscription(\n subscription: DocumentNode | TypedDocumentNode,\n options?: SubscriptionHookOptions\n) {\n const context = useContext(getApolloContext());\n const updatedOptions = options\n ? { ...options, subscription }\n : { subscription };\n const [result, setResult] = useState({\n loading: !updatedOptions.skip,\n error: undefined,\n data: undefined\n });\n\n const subscriptionDataRef = useRef>();\n function getSubscriptionDataRef() {\n if (!subscriptionDataRef.current) {\n subscriptionDataRef.current = new SubscriptionData({\n options: updatedOptions,\n context,\n setResult\n });\n }\n return subscriptionDataRef.current;\n }\n\n const subscriptionData = getSubscriptionDataRef();\n subscriptionData.setOptions(updatedOptions, true);\n subscriptionData.context = context;\n\n useEffect(() => subscriptionData.afterExecute());\n useEffect(() => subscriptionData.cleanup.bind(subscriptionData), []);\n\n return subscriptionData.execute(result);\n}\n","import { useState, useEffect } from 'react';\nexport function useReactiveVar(rv) {\n var value = rv();\n var _a = useState(value), setValue = _a[1];\n useEffect(function () { return rv.onNextChange(setValue); }, [value]);\n useEffect(function () {\n setValue(rv());\n }, []);\n return value;\n}\n//# sourceMappingURL=useReactiveVar.js.map","import { useState, useEffect } from 'react';\nimport { ReactiveVar } from '../../core';\n\nexport function useReactiveVar(rv: ReactiveVar): T {\n const value = rv();\n // We don't actually care what useState thinks the value of the variable\n // is, so we take only the update function from the returned array.\n const [, setValue] = useState(value);\n // We subscribe to variable updates on initial mount and when the value has\n // changed. This avoids a subtle bug in React.StrictMode where multiple listeners\n // are added, leading to inconsistent updates.\n useEffect(() => rv.onNextChange(setValue), [value]);\n // Once the component is unmounted, ignore future updates. Note that the\n // above useEffect function returns a mute function without calling it,\n // allowing it to be called when the component unmounts. This is\n // equivalent to the following, but shorter:\n // useEffect(() => {\n // const mute = rv.onNextChange(setValue);\n // return () => mute();\n // }, [value])\n\n // We check the variable's value in this useEffect and schedule an update if\n // the value has changed. This check occurs once, on the initial render, to avoid\n // a useEffect higher in the component tree changing a variable's value\n // before the above useEffect can set the onNextChange handler. Note that React\n // will not schedule an update if setState is called with the same value as before.\n useEffect(() => {\n setValue(rv())\n }, []);\n\n return value;\n}\n","import { ReactNode } from 'react';\nimport { DocumentNode } from 'graphql';\nimport { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport { Observable } from '../../utilities';\nimport { FetchResult } from '../../link/core';\nimport { ApolloClient } from '../../core';\nimport { ApolloError } from '../../errors';\nimport {\n ApolloQueryResult,\n ErrorPolicy,\n FetchMoreOptions,\n FetchMoreQueryOptions,\n FetchPolicy,\n MutationUpdaterFn,\n NetworkStatus,\n ObservableQuery,\n OperationVariables,\n PureQueryOptions,\n WatchQueryFetchPolicy,\n} from '../../core';\n\n/* Common types */\n\nexport type Context = Record;\n\nexport type CommonOptions = TOptions & {\n client?: ApolloClient;\n};\n\n/* Query types */\n\nexport interface BaseQueryOptions {\n ssr?: boolean;\n variables?: TVariables;\n fetchPolicy?: WatchQueryFetchPolicy;\n nextFetchPolicy?: WatchQueryFetchPolicy;\n errorPolicy?: ErrorPolicy;\n pollInterval?: number;\n client?: ApolloClient;\n notifyOnNetworkStatusChange?: boolean;\n context?: Context;\n partialRefetch?: boolean;\n returnPartialData?: boolean;\n}\n\nexport interface QueryFunctionOptions<\n TData = any,\n TVariables = OperationVariables\n> extends BaseQueryOptions {\n displayName?: string;\n skip?: boolean;\n onCompleted?: (data: TData) => void;\n onError?: (error: ApolloError) => void;\n}\n\nexport type ObservableQueryFields = Pick<\n ObservableQuery,\n | 'startPolling'\n | 'stopPolling'\n | 'subscribeToMore'\n | 'updateQuery'\n | 'refetch'\n | 'variables'\n> & {\n fetchMore: ((\n fetchMoreOptions: FetchMoreQueryOptions &\n FetchMoreOptions\n ) => Promise>) &\n ((\n fetchMoreOptions: { query?: DocumentNode | TypedDocumentNode } & FetchMoreQueryOptions<\n TVariables2,\n K,\n TData\n > &\n FetchMoreOptions\n ) => Promise>);\n};\n\nexport interface QueryResult\n extends ObservableQueryFields {\n client: ApolloClient;\n data: TData | undefined;\n previousData?: TData;\n error?: ApolloError;\n loading: boolean;\n networkStatus: NetworkStatus;\n called: true;\n}\n\nexport interface QueryDataOptions\n extends QueryFunctionOptions {\n children?: (result: QueryResult) => ReactNode;\n query: DocumentNode | TypedDocumentNode;\n}\n\nexport interface QueryHookOptions\n extends QueryFunctionOptions {\n query?: DocumentNode | TypedDocumentNode;\n}\n\nexport interface LazyQueryHookOptions<\n TData = any,\n TVariables = OperationVariables\n> extends Omit, 'skip'> {\n query?: DocumentNode | TypedDocumentNode;\n}\n\nexport interface QueryLazyOptions {\n variables?: TVariables;\n context?: Context;\n}\n\ntype UnexecutedLazyFields = {\n loading: false;\n networkStatus: NetworkStatus.ready;\n called: false;\n data: undefined;\n previousData?: undefined;\n}\n\ntype Impartial = {\n [P in keyof T]?: never;\n}\n\ntype AbsentLazyResultFields =\n Omit<\n Impartial>,\n keyof UnexecutedLazyFields>\n\ntype UnexecutedLazyResult =\n UnexecutedLazyFields & AbsentLazyResultFields\n\nexport type LazyQueryResult =\n | UnexecutedLazyResult\n | QueryResult;\n\nexport type QueryTuple = [\n (options?: QueryLazyOptions) => void,\n LazyQueryResult\n];\n\n/* Mutation types */\n\nexport type RefetchQueriesFunction = (\n ...args: any[]\n) => Array;\n\nexport interface BaseMutationOptions<\n TData = any,\n TVariables = OperationVariables\n> {\n variables?: TVariables;\n optimisticResponse?: TData | ((vars: TVariables) => TData);\n refetchQueries?: Array | RefetchQueriesFunction;\n awaitRefetchQueries?: boolean;\n errorPolicy?: ErrorPolicy;\n update?: MutationUpdaterFn;\n client?: ApolloClient;\n notifyOnNetworkStatusChange?: boolean;\n context?: Context;\n onCompleted?: (data: TData) => void;\n onError?: (error: ApolloError) => void;\n fetchPolicy?: Extract;\n ignoreResults?: boolean;\n}\n\nexport interface MutationFunctionOptions<\n TData = any,\n TVariables = OperationVariables\n> {\n variables?: TVariables;\n optimisticResponse?: TData | ((vars: TVariables) => TData);\n refetchQueries?: Array | RefetchQueriesFunction;\n awaitRefetchQueries?: boolean;\n update?: MutationUpdaterFn;\n context?: Context;\n fetchPolicy?: WatchQueryFetchPolicy;\n}\n\nexport interface MutationResult {\n data?: TData | null;\n error?: ApolloError;\n loading: boolean;\n called: boolean;\n client: ApolloClient;\n}\n\nexport declare type MutationFunction<\n TData = any,\n TVariables = OperationVariables\n> = (\n options?: MutationFunctionOptions\n) => Promise>;\n\nexport interface MutationHookOptions<\n TData = any,\n TVariables = OperationVariables\n> extends BaseMutationOptions {\n mutation?: DocumentNode | TypedDocumentNode;\n}\n\nexport interface MutationDataOptions\n extends BaseMutationOptions {\n mutation: DocumentNode | TypedDocumentNode;\n}\n\nexport type MutationTuple = [\n (\n options?: MutationFunctionOptions\n ) => Promise>,\n MutationResult\n];\n\n/* Subscription types */\n\nexport interface OnSubscriptionDataOptions {\n client: ApolloClient;\n subscriptionData: SubscriptionResult;\n}\n\nexport interface BaseSubscriptionOptions<\n TData = any,\n TVariables = OperationVariables\n> {\n variables?: TVariables;\n fetchPolicy?: FetchPolicy;\n shouldResubscribe?:\n | boolean\n | ((options: BaseSubscriptionOptions) => boolean);\n client?: ApolloClient;\n skip?: boolean;\n context?: Context;\n onSubscriptionData?: (options: OnSubscriptionDataOptions) => any;\n onSubscriptionComplete?: () => void;\n}\n\nexport interface SubscriptionResult {\n loading: boolean;\n data?: TData;\n error?: ApolloError;\n}\n\nexport interface SubscriptionHookOptions<\n TData = any,\n TVariables = OperationVariables\n> extends BaseSubscriptionOptions {\n subscription?: DocumentNode | TypedDocumentNode;\n}\n\nexport interface SubscriptionDataOptions<\n TData = any,\n TVariables = OperationVariables\n> extends BaseSubscriptionOptions {\n subscription: DocumentNode | TypedDocumentNode;\n children?: null | ((result: SubscriptionResult) => JSX.Element | null);\n}\n\nexport interface SubscriptionCurrentObservable {\n query?: Observable;\n subscription?: ZenObservable.Subscription;\n}\n","export { default as createUploadLink } from './createUploadLink.js';\nexport { default as formDataAppendFile } from './formDataAppendFile.js';\nexport { default as isExtractableFile } from './isExtractableFile.js';\nexport { default as ReactNativeFile } from './ReactNativeFile.js';\n","'use strict';\n\nvar _extends = require('@babel/runtime/helpers/extends');\n\nvar _require = require('@apollo/client/core'),\n ApolloLink = _require.ApolloLink,\n Observable = _require.Observable;\n\nvar _require2 = require('@apollo/client/link/http'),\n createSignalIfSupported = _require2.createSignalIfSupported,\n fallbackHttpConfig = _require2.fallbackHttpConfig,\n parseAndCheckHttpResponse = _require2.parseAndCheckHttpResponse,\n rewriteURIForGET = _require2.rewriteURIForGET,\n selectHttpOptionsAndBody = _require2.selectHttpOptionsAndBody,\n selectURI = _require2.selectURI,\n serializeFetchParameter = _require2.serializeFetchParameter;\n\nvar extractFiles = require('extract-files/public/extractFiles');\n\nvar formDataAppendFile = require('./formDataAppendFile');\n\nvar isExtractableFile = require('./isExtractableFile');\n\nmodule.exports = function createUploadLink(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$uri = _ref.uri,\n fetchUri = _ref$uri === void 0 ? '/graphql' : _ref$uri,\n useGETForQueries = _ref.useGETForQueries,\n _ref$isExtractableFil = _ref.isExtractableFile,\n customIsExtractableFile =\n _ref$isExtractableFil === void 0\n ? isExtractableFile\n : _ref$isExtractableFil,\n CustomFormData = _ref.FormData,\n _ref$formDataAppendFi = _ref.formDataAppendFile,\n customFormDataAppendFile =\n _ref$formDataAppendFi === void 0\n ? formDataAppendFile\n : _ref$formDataAppendFi,\n customFetch = _ref.fetch,\n fetchOptions = _ref.fetchOptions,\n credentials = _ref.credentials,\n headers = _ref.headers,\n includeExtensions = _ref.includeExtensions;\n\n var linkConfig = {\n http: {\n includeExtensions: includeExtensions,\n },\n options: fetchOptions,\n credentials: credentials,\n headers: headers,\n };\n return new ApolloLink(function (operation) {\n var context = operation.getContext();\n var _context$clientAwaren = context.clientAwareness;\n _context$clientAwaren =\n _context$clientAwaren === void 0 ? {} : _context$clientAwaren;\n var name = _context$clientAwaren.name,\n version = _context$clientAwaren.version,\n headers = context.headers;\n var contextConfig = {\n http: context.http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: _extends(\n {},\n name && {\n 'apollographql-client-name': name,\n },\n version && {\n 'apollographql-client-version': version,\n },\n headers\n ),\n };\n\n var _selectHttpOptionsAnd = selectHttpOptionsAndBody(\n operation,\n fallbackHttpConfig,\n linkConfig,\n contextConfig\n ),\n options = _selectHttpOptionsAnd.options,\n body = _selectHttpOptionsAnd.body;\n\n var _extractFiles = extractFiles(body, '', customIsExtractableFile),\n clone = _extractFiles.clone,\n files = _extractFiles.files;\n\n var uri = selectURI(operation, fetchUri);\n\n if (files.size) {\n delete options.headers['content-type'];\n var RuntimeFormData = CustomFormData || FormData;\n var form = new RuntimeFormData();\n form.append('operations', serializeFetchParameter(clone, 'Payload'));\n var map = {};\n var i = 0;\n files.forEach(function (paths) {\n map[++i] = paths;\n });\n form.append('map', JSON.stringify(map));\n i = 0;\n files.forEach(function (paths, file) {\n customFormDataAppendFile(form, ++i, file);\n });\n options.body = form;\n } else {\n if (\n useGETForQueries &&\n !operation.query.definitions.some(function (definition) {\n return (\n definition.kind === 'OperationDefinition' &&\n definition.operation === 'mutation'\n );\n })\n )\n options.method = 'GET';\n\n if (options.method === 'GET') {\n var _rewriteURIForGET = rewriteURIForGET(uri, body),\n newURI = _rewriteURIForGET.newURI,\n parseError = _rewriteURIForGET.parseError;\n\n if (parseError)\n return new Observable(function (observer) {\n observer.error(parseError);\n });\n uri = newURI;\n } else options.body = serializeFetchParameter(clone, 'Payload');\n }\n\n var _createSignalIfSuppor = createSignalIfSupported(),\n controller = _createSignalIfSuppor.controller;\n\n if (controller) {\n if (options.signal)\n options.signal.addEventListener('abort', function () {\n controller.abort();\n });\n options.signal = controller.signal;\n }\n\n var runtimeFetch = customFetch || fetch;\n return new Observable(function (observer) {\n var cleaningUp;\n runtimeFetch(uri, options)\n .then(function (response) {\n operation.setContext({\n response: response,\n });\n return response;\n })\n .then(parseAndCheckHttpResponse(operation))\n .then(function (result) {\n observer.next(result);\n observer.complete();\n })\n .catch(function (error) {\n if (!cleaningUp) {\n if (error.result && error.result.errors && error.result.data)\n observer.next(error.result);\n observer.error(error);\n }\n });\n return function () {\n cleaningUp = true;\n if (controller) controller.abort();\n };\n });\n });\n};\n","function _extends() {\n module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _extends.apply(this, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nvar defaultIsExtractableFile = require('./isExtractableFile');\n\nmodule.exports = function extractFiles(value, path, isExtractableFile) {\n if (path === void 0) {\n path = '';\n }\n\n if (isExtractableFile === void 0) {\n isExtractableFile = defaultIsExtractableFile;\n }\n\n var clone;\n var files = new Map();\n\n function addFile(paths, file) {\n var storedPaths = files.get(file);\n if (storedPaths) storedPaths.push.apply(storedPaths, paths);\n else files.set(file, paths);\n }\n\n if (isExtractableFile(value)) {\n clone = null;\n addFile([path], value);\n } else {\n var prefix = path ? path + '.' : '';\n if (typeof FileList !== 'undefined' && value instanceof FileList)\n clone = Array.prototype.map.call(value, function (file, i) {\n addFile(['' + prefix + i], file);\n return null;\n });\n else if (Array.isArray(value))\n clone = value.map(function (child, i) {\n var result = extractFiles(child, '' + prefix + i, isExtractableFile);\n result.files.forEach(addFile);\n return result.clone;\n });\n else if (value && value.constructor === Object) {\n clone = {};\n\n for (var i in value) {\n var result = extractFiles(value[i], '' + prefix + i, isExtractableFile);\n result.files.forEach(addFile);\n clone[i] = result.clone;\n }\n } else clone = value;\n }\n\n return {\n clone: clone,\n files: files,\n };\n};\n","'use strict';\n\nvar ReactNativeFile = require('./ReactNativeFile');\n\nmodule.exports = function isExtractableFile(value) {\n return (\n (typeof File !== 'undefined' && value instanceof File) ||\n (typeof Blob !== 'undefined' && value instanceof Blob) ||\n value instanceof ReactNativeFile\n );\n};\n","'use strict';\n\nmodule.exports = function ReactNativeFile(_ref) {\n var uri = _ref.uri,\n name = _ref.name,\n type = _ref.type;\n this.uri = uri;\n this.name = name;\n this.type = type;\n};\n","'use strict';\n\nmodule.exports = function formDataAppendFile(formData, fieldName, file) {\n formData.append(fieldName, file, file.name);\n};\n","'use strict';\n\nmodule.exports = require('extract-files/public/isExtractableFile');\n","export {\n IntlProvider,\n InteractionProvider,\n InteractionDialogRenderer,\n MediaUiProvider,\n NotifyProvider,\n useIntl,\n useInteraction,\n useMediaUi,\n useNotify,\n} from './provider';\nexport { typeDefs } from './typeDefs';\n\nimport * as Events from './events';\nimport * as Components from './components';\nimport * as Helper from './helper';\n\nexport { Components, Events, Helper };\n","import { NotifyProvider, useNotify } from './Notify';\nimport { MediaUiProvider, useMediaUi } from './MediaUiProvider';\nimport { IntlProvider, useIntl } from './Intl';\nimport { Interaction, InteractionProvider, InteractionDialogRenderer, useInteraction } from './Interaction';\n\nexport {\n IntlProvider,\n Interaction,\n InteractionProvider,\n InteractionDialogRenderer,\n MediaUiProvider,\n NotifyProvider,\n useIntl,\n useInteraction,\n useMediaUi,\n useNotify,\n};\n","import * as React from 'react';\nimport { createContext, useContext } from 'react';\n\ninterface ProviderProps {\n notificationApi: NeosNotification;\n children: React.ReactElement;\n}\n\nexport const NotifyContext = createContext(null);\nexport const useNotify = (): NeosNotification => useContext(NotifyContext);\n\nexport function NotifyProvider({ children, notificationApi }: ProviderProps) {\n const error = (title: string, message = '') => notificationApi['error'](title, message);\n const warning = (title: string, message = '') => notificationApi['warning'](title, message);\n const ok = (title: string) => notificationApi['ok'](title);\n const info = (title: string) => notificationApi['info'](title);\n const notice = (title: string) => notificationApi['notice'](title);\n\n return {children};\n}\n","import React, { createContext, useCallback, useContext, useMemo } from 'react';\nimport { gql, useApolloClient } from '@apollo/client';\nimport { isMatch } from 'matcher';\n\nimport { useImportAsset } from '../hooks';\nimport { useNotify } from './Notify';\nimport { useIntl } from './Intl';\nimport { useInteraction } from './Interaction';\nimport { ASSET_FRAGMENT } from '../fragments/asset';\nimport {\n ApprovalAttainmentStrategy,\n ApprovalAttainmentStrategyFactory,\n DefaultApprovalAttainmentStrategyFactory,\n} from '../strategy';\nimport { useRecoilValue } from 'recoil';\nimport { constraintsState } from '../state';\n\ninterface MediaUiProviderProps {\n children: React.ReactElement;\n dummyImage: string;\n selectionMode?: boolean;\n isInNodeCreationDialog?: boolean;\n containerRef: React.RefObject;\n onAssetSelection?: (localAssetIdentifier: string) => void;\n approvalAttainmentStrategyFactory?: ApprovalAttainmentStrategyFactory;\n}\n\ninterface MediaUiProviderValues {\n containerRef: React.RefObject;\n dummyImage: string;\n handleSelectAsset: (assetIdentity: AssetIdentity) => void;\n // TODO: Turn view variants into a single view Enum\n selectionMode: boolean;\n isInNodeCreationDialog: boolean;\n isAssetSelectable: (asset: Asset) => boolean;\n approvalAttainmentStrategy: ApprovalAttainmentStrategy;\n}\n\nexport const MediaUiContext = createContext({} as MediaUiProviderValues);\nexport const useMediaUi = (): MediaUiProviderValues => useContext(MediaUiContext);\n\nexport function MediaUiProvider({\n children,\n dummyImage,\n selectionMode = false,\n isInNodeCreationDialog = false,\n onAssetSelection = null,\n containerRef,\n approvalAttainmentStrategyFactory = DefaultApprovalAttainmentStrategyFactory,\n}: MediaUiProviderProps) {\n const { translate } = useIntl();\n const Notify = useNotify();\n const Interaction = useInteraction();\n const client = useApolloClient();\n const { importAsset } = useImportAsset();\n const constraints = useRecoilValue(constraintsState);\n const approvalAttainmentStrategy = useMemo(\n () =>\n approvalAttainmentStrategyFactory({\n interaction: Interaction,\n intl: { translate },\n }),\n [approvalAttainmentStrategyFactory, Interaction, translate]\n );\n\n // TODO: This can properly be optimised by turning it into a recoil readonly selector family\n const isAssetSelectable = useCallback(\n (asset: Asset) => {\n if (constraints.mediaTypes?.length > 0) {\n if (!isMatch(asset.file.mediaType, constraints.mediaTypes)) {\n return false;\n }\n }\n if (constraints.assetSources?.length > 0) {\n if (!isMatch(asset.assetSource.id, constraints.assetSources)) {\n return false;\n }\n }\n return true;\n },\n [constraints]\n );\n\n // TODO: Move into select asset hook, as it's the only place using this method\n const handleSelectAsset = useCallback(\n (assetIdentity: AssetIdentity) => {\n if (!onAssetSelection || !assetIdentity) {\n return;\n }\n\n // Read local asset data from cache as the asset editor and the constraint check require it\n const asset = client.readFragment({\n fragment: gql`\n fragment LocalAssetData on Asset {\n ...AssetProps\n }\n ${ASSET_FRAGMENT}\n `,\n fragmentName: 'LocalAssetData',\n variables: {\n includeUsage: false,\n },\n id: client.cache.identify({ __typename: 'Asset', id: assetIdentity.assetId }),\n });\n\n if (!isAssetSelectable(asset)) {\n Notify.notice(\n translate(\n 'action.selectAsset.invalidType.message',\n 'You can only select any of the following types: {types}',\n {\n types: constraints.mediaTypes.join(', '),\n }\n )\n );\n return;\n }\n\n if (asset.localId) {\n onAssetSelection(asset.localId);\n } else {\n // If no local id is present, we first need to import the asset from its remote source\n importAsset(assetIdentity).then(({ data }) => {\n onAssetSelection(data.importAsset.localId);\n });\n }\n },\n [client, importAsset, onAssetSelection, isAssetSelectable, translate, Notify, constraints.mediaTypes]\n );\n\n return (\n \n {children}\n \n );\n}\n","import escapeStringRegexp from 'escape-string-regexp';\n\nconst regexpCache = new Map();\n\nconst sanitizeArray = (input, inputName) => {\n\tif (!Array.isArray(input)) {\n\t\tswitch (typeof input) {\n\t\t\tcase 'string':\n\t\t\t\tinput = [input];\n\t\t\t\tbreak;\n\t\t\tcase 'undefined':\n\t\t\t\tinput = [];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new TypeError(`Expected '${inputName}' to be a string or an array, but got a type of '${typeof input}'`);\n\t\t}\n\t}\n\n\treturn input.filter(string => {\n\t\tif (typeof string !== 'string') {\n\t\t\tif (typeof string === 'undefined') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthrow new TypeError(`Expected '${inputName}' to be an array of strings, but found a type of '${typeof string}' in the array`);\n\t\t}\n\n\t\treturn true;\n\t});\n};\n\nconst makeRegexp = (pattern, options) => {\n\toptions = {\n\t\tcaseSensitive: false,\n\t\t...options,\n\t};\n\n\tconst cacheKey = pattern + JSON.stringify(options);\n\n\tif (regexpCache.has(cacheKey)) {\n\t\treturn regexpCache.get(cacheKey);\n\t}\n\n\tconst negated = pattern[0] === '!';\n\n\tif (negated) {\n\t\tpattern = pattern.slice(1);\n\t}\n\n\tpattern = escapeStringRegexp(pattern).replace(/\\\\\\*/g, '[\\\\s\\\\S]*');\n\n\tconst regexp = new RegExp(`^${pattern}$`, options.caseSensitive ? '' : 'i');\n\tregexp.negated = negated;\n\tregexpCache.set(cacheKey, regexp);\n\n\treturn regexp;\n};\n\nconst baseMatcher = (inputs, patterns, options, firstMatchOnly) => {\n\tinputs = sanitizeArray(inputs, 'inputs');\n\tpatterns = sanitizeArray(patterns, 'patterns');\n\n\tif (patterns.length === 0) {\n\t\treturn [];\n\t}\n\n\tpatterns = patterns.map(pattern => makeRegexp(pattern, options));\n\n\tconst {allPatterns} = options || {};\n\tconst result = [];\n\n\tfor (const input of inputs) {\n\t\t// String is included only if it matches at least one non-negated pattern supplied.\n\t\t// Note: the `allPatterns` option requires every non-negated pattern to be matched once.\n\t\t// Matching a negated pattern excludes the string.\n\t\tlet matches;\n\t\tconst didFit = [...patterns].fill(false);\n\n\t\tfor (const [index, pattern] of patterns.entries()) {\n\t\t\tif (pattern.test(input)) {\n\t\t\t\tdidFit[index] = true;\n\t\t\t\tmatches = !pattern.negated;\n\n\t\t\t\tif (!matches) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!(\n\t\t\t\tmatches === false\n\t\t\t\t|| (matches === undefined && patterns.some(pattern => !pattern.negated))\n\t\t\t\t|| (allPatterns && didFit.some((yes, index) => !yes && !patterns[index].negated))\n\t\t\t)\n\t\t) {\n\t\t\tresult.push(input);\n\n\t\t\tif (firstMatchOnly) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n};\n\nexport function matcher(inputs, patterns, options) {\n\treturn baseMatcher(inputs, patterns, options, false);\n}\n\nexport function isMatch(inputs, patterns, options) {\n\treturn baseMatcher(inputs, patterns, options, true).length > 0;\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","export { default as useAssetCountQuery } from './useAssetCountQuery';\nexport { default as useAssetQuery } from './useAssetQuery';\nexport { default as useAssetsQuery } from './useAssetsQuery';\nexport { default as useConfigQuery } from './useConfigQuery';\nexport { default as useDeleteAsset } from './useDeleteAsset';\nexport { default as useEvent } from './useEvent';\nexport { default as useImportAsset } from './useImportAsset';\nexport { default as useSelectAsset } from './useSelectAsset';\nexport { default as useSelectedAsset } from './useSelectedAsset';\nexport { default as useSetAssetCollections } from './useSetAssetCollections';\nexport { default as useSetAssetTags } from './useSetAssetTags';\nexport { default as useUntagAsset } from './useUntagAsset';\nexport { default as useUpdateAsset } from './useUpdateAsset';\n","import { useQuery } from '@apollo/client';\nimport { useRecoilValue } from 'recoil';\n\nimport { selectedAssetSourceState } from '@media-ui/feature-asset-sources';\n\nimport { ASSET_COUNT } from '../queries';\nimport {\n searchTermState,\n selectedAssetCollectionAndTagState,\n selectedAssetTypeState,\n selectedMediaTypeState,\n} from '../state';\n\ninterface AssetCountQueryResult {\n assetCount: number;\n}\n\ninterface AssetCountVariables {\n assetCollectionId?: string;\n assetSourceId?: string;\n tagId?: string;\n mediaType?: MediaType | '';\n assetType?: AssetType | '';\n searchTerm?: string;\n}\n\nexport default function useAssetCountQuery(total = false) {\n const searchTerm = useRecoilValue(searchTermState);\n const { tagId, assetCollectionId } = useRecoilValue(selectedAssetCollectionAndTagState);\n const assetSourceId = useRecoilValue(selectedAssetSourceState);\n const mediaType = useRecoilValue(selectedMediaTypeState);\n const assetType = useRecoilValue(selectedAssetTypeState);\n const { data, loading } = useQuery(ASSET_COUNT, {\n variables: {\n assetCollectionId: total ? undefined : assetCollectionId,\n assetSourceId,\n mediaType,\n assetType,\n tagId: total ? undefined : tagId,\n searchTerm: searchTerm.toString(),\n },\n });\n return { assetCount: data?.assetCount || 0, loading };\n}\n","import react from 'react';\nimport reactDom from 'react-dom';\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction err(message) {\n const error = new Error(message); // In V8, Error objects keep the closure scope chain alive until the\n // err.stack property is accessed.\n\n if (error.stack === undefined) {\n // IE sets the stack only if error is thrown\n try {\n throw error;\n } catch (_) {} // eslint-disable-line fb-www/no-unused-catch-bindings, no-empty\n\n }\n\n return error;\n}\n\nvar err_1 = err;\n\n// @oss-only\n\n\nvar Recoil_err = err_1;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\n// Split declaration and implementation to allow this function to pretend to\n// check for actual instance of Promise instead of something with a `then`\n// method.\n// eslint-disable-next-line no-redeclare\nfunction isPromise(p) {\n return !!p && typeof p.then === 'function';\n}\n\nvar Recoil_isPromise = isPromise;\n\nfunction nullthrows(x, message) {\n if (x != null) {\n return x;\n }\n\n throw Recoil_err(message !== null && message !== void 0 ? message : 'Got unexpected null or undefined');\n}\n\nvar Recoil_nullthrows = nullthrows;\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nclass BaseLoadable {\n getValue() {\n throw Recoil_err('BaseLoadable');\n }\n\n toPromise() {\n throw Recoil_err('BaseLoadable');\n }\n\n valueMaybe() {\n throw Recoil_err('BaseLoadable');\n }\n\n valueOrThrow() {\n // $FlowFixMe[prop-missing]\n throw Recoil_err(`Loadable expected value, but in \"${this.state}\" state`);\n }\n\n promiseMaybe() {\n throw Recoil_err('BaseLoadable');\n }\n\n promiseOrThrow() {\n // $FlowFixMe[prop-missing]\n throw Recoil_err(`Loadable expected promise, but in \"${this.state}\" state`);\n }\n\n errorMaybe() {\n throw Recoil_err('BaseLoadable');\n }\n\n errorOrThrow() {\n // $FlowFixMe[prop-missing]\n throw Recoil_err(`Loadable expected error, but in \"${this.state}\" state`);\n }\n\n is(other) {\n // $FlowFixMe[prop-missing]\n return other.state === this.state && other.contents === this.contents;\n }\n\n map(_map) {\n throw Recoil_err('BaseLoadable');\n }\n\n}\n\nclass ValueLoadable extends BaseLoadable {\n constructor(value) {\n super();\n\n _defineProperty(this, \"state\", 'hasValue');\n\n _defineProperty(this, \"contents\", void 0);\n\n this.contents = value;\n }\n\n getValue() {\n return this.contents;\n }\n\n toPromise() {\n return Promise.resolve(this.contents);\n }\n\n valueMaybe() {\n return this.contents;\n }\n\n valueOrThrow() {\n return this.contents;\n }\n\n promiseMaybe() {\n return undefined;\n }\n\n errorMaybe() {\n return undefined;\n }\n\n map(map) {\n try {\n const next = map(this.contents);\n return Recoil_isPromise(next) ? loadableWithPromise(next) : isLoadable(next) ? next : loadableWithValue(next);\n } catch (e) {\n return Recoil_isPromise(e) ? // If we \"suspended\", then try again.\n // errors and subsequent retries will be handled in 'loading' case\n // $FlowFixMe[prop-missing]\n loadableWithPromise(e.next(() => this.map(map))) : loadableWithError(e);\n }\n }\n\n}\n\nclass ErrorLoadable extends BaseLoadable {\n constructor(error) {\n super();\n\n _defineProperty(this, \"state\", 'hasError');\n\n _defineProperty(this, \"contents\", void 0);\n\n this.contents = error;\n }\n\n getValue() {\n throw this.contents;\n }\n\n toPromise() {\n return Promise.reject(this.contents);\n }\n\n valueMaybe() {\n return undefined;\n }\n\n promiseMaybe() {\n return undefined;\n }\n\n errorMaybe() {\n return this.contents;\n }\n\n errorOrThrow() {\n return this.contents;\n }\n\n map(_map) {\n // $FlowIssue[incompatible-return]\n return this;\n }\n\n}\n\nclass LoadingLoadable extends BaseLoadable {\n constructor(promise) {\n super();\n\n _defineProperty(this, \"state\", 'loading');\n\n _defineProperty(this, \"contents\", void 0);\n\n this.contents = promise;\n }\n\n getValue() {\n throw this.contents;\n }\n\n toPromise() {\n return this.contents;\n }\n\n valueMaybe() {\n return undefined;\n }\n\n promiseMaybe() {\n return this.contents;\n }\n\n promiseOrThrow() {\n return this.contents;\n }\n\n errorMaybe() {\n return undefined;\n }\n\n map(map) {\n return loadableWithPromise(this.contents.then(value => {\n const next = map(value);\n\n if (isLoadable(next)) {\n const nextLoadable = next;\n\n switch (nextLoadable.state) {\n case 'hasValue':\n return nextLoadable.contents;\n\n case 'hasError':\n throw nextLoadable.contents;\n\n case 'loading':\n return nextLoadable.contents;\n }\n } // $FlowIssue[incompatible-return]\n\n\n return next;\n }) // $FlowFixMe[incompatible-call]\n .catch(e => {\n if (Recoil_isPromise(e)) {\n // we were \"suspended,\" try again\n return e.then(() => this.map(map).contents);\n }\n\n throw e;\n }));\n }\n\n}\n\nfunction loadableWithValue(value) {\n return Object.freeze(new ValueLoadable(value));\n}\n\nfunction loadableWithError(error) {\n return Object.freeze(new ErrorLoadable(error));\n}\n\nfunction loadableWithPromise(promise) {\n return Object.freeze(new LoadingLoadable(promise));\n}\n\nfunction loadableLoading() {\n return Object.freeze(new LoadingLoadable(new Promise(() => {})));\n}\n\nfunction loadableAllArray(inputs) {\n return inputs.every(i => i.state === 'hasValue') ? loadableWithValue(inputs.map(i => i.contents)) : inputs.some(i => i.state === 'hasError') ? loadableWithError(Recoil_nullthrows(inputs.find(i => i.state === 'hasError'), 'Invalid loadable passed to loadableAll').contents) : loadableWithPromise(Promise.all(inputs.map(i => i.contents)));\n}\n\nfunction loadableAll(inputs) {\n const unwrapedInputs = Array.isArray(inputs) ? inputs : Object.getOwnPropertyNames(inputs).map(key => inputs[key]);\n const normalizedInputs = unwrapedInputs.map(x => isLoadable(x) ? x : Recoil_isPromise(x) ? loadableWithPromise(x) : loadableWithValue(x));\n const output = loadableAllArray(normalizedInputs);\n return Array.isArray(inputs) ? // $FlowIssue[incompatible-return]\n output : // Object.getOwnPropertyNames() has consistent key ordering with ES6\n // $FlowIssue[incompatible-call]\n output.map(outputs => Object.getOwnPropertyNames(inputs).reduce( // $FlowFixMe[invalid-computed-prop]\n (out, key, idx) => ({ ...out,\n [key]: outputs[idx]\n }), {}));\n}\n\nfunction isLoadable(x) {\n return x instanceof BaseLoadable;\n}\n\nconst LoadableStaticInterface = {\n of: value => Recoil_isPromise(value) ? loadableWithPromise(value) : isLoadable(value) ? value : loadableWithValue(value),\n error: error => loadableWithError(error),\n // $FlowIssue[incompatible-return]\n loading: () => loadableLoading(),\n // $FlowIssue[unclear-type]\n all: loadableAll,\n isLoadable\n};\nvar Recoil_Loadable = {\n loadableWithValue,\n loadableWithError,\n loadableWithPromise,\n loadableLoading,\n loadableAll,\n isLoadable,\n RecoilLoadable: LoadableStaticInterface\n};\n\nvar Recoil_Loadable_1 = Recoil_Loadable.loadableWithValue;\nvar Recoil_Loadable_2 = Recoil_Loadable.loadableWithError;\nvar Recoil_Loadable_3 = Recoil_Loadable.loadableWithPromise;\nvar Recoil_Loadable_4 = Recoil_Loadable.loadableLoading;\nvar Recoil_Loadable_5 = Recoil_Loadable.loadableAll;\nvar Recoil_Loadable_6 = Recoil_Loadable.isLoadable;\nvar Recoil_Loadable_7 = Recoil_Loadable.RecoilLoadable;\n\nvar Recoil_Loadable$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n loadableWithValue: Recoil_Loadable_1,\n loadableWithError: Recoil_Loadable_2,\n loadableWithPromise: Recoil_Loadable_3,\n loadableLoading: Recoil_Loadable_4,\n loadableAll: Recoil_Loadable_5,\n isLoadable: Recoil_Loadable_6,\n RecoilLoadable: Recoil_Loadable_7\n});\n\nconst env = {\n RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED: true,\n // Note: RECOIL_GKS_ENABLED settings will only be honored in OSS builds of Recoil\n RECOIL_GKS_ENABLED: new Set(['recoil_hamt_2020', 'recoil_sync_external_store', 'recoil_suppress_rerender_in_callback', 'recoil_memory_managament_2020'])\n};\n\nfunction readProcessEnvBooleanFlag(name, set) {\n var _process$env$name, _process$env$name$toL;\n\n const sanitizedValue = (_process$env$name = process.env[name]) === null || _process$env$name === void 0 ? void 0 : (_process$env$name$toL = _process$env$name.toLowerCase()) === null || _process$env$name$toL === void 0 ? void 0 : _process$env$name$toL.trim();\n\n if (sanitizedValue == null || sanitizedValue === '') {\n return;\n }\n\n const allowedValues = ['true', 'false'];\n\n if (!allowedValues.includes(sanitizedValue)) {\n throw Recoil_err(`process.env.${name} value must be 'true', 'false', or empty: ${sanitizedValue}`);\n }\n\n set(sanitizedValue === 'true');\n}\n\nfunction readProcessEnvStringArrayFlag(name, set) {\n var _process$env$name2;\n\n const sanitizedValue = (_process$env$name2 = process.env[name]) === null || _process$env$name2 === void 0 ? void 0 : _process$env$name2.trim();\n\n if (sanitizedValue == null || sanitizedValue === '') {\n return;\n }\n\n set(sanitizedValue.split(/\\s*,\\s*|\\s+/));\n}\n/**\n * Allow NodeJS/NextJS/etc to set the initial state through process.env variable\n * Note: we don't assume 'process' is available in all runtime environments\n *\n * @see https://github.com/facebookexperimental/Recoil/issues/733\n */\n\n\nfunction applyProcessEnvFlagOverrides() {\n var _process;\n\n // note: this check is needed in addition to the check below, runtime error will occur without it!\n // eslint-disable-next-line fb-www/typeof-undefined\n if (typeof process === 'undefined') {\n return;\n }\n\n if (((_process = process) === null || _process === void 0 ? void 0 : _process.env) == null) {\n return;\n }\n\n readProcessEnvBooleanFlag('RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED', value => {\n env.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED = value;\n });\n readProcessEnvStringArrayFlag('RECOIL_GKS_ENABLED', value => {\n value.forEach(gk => {\n env.RECOIL_GKS_ENABLED.add(gk);\n });\n });\n}\n\napplyProcessEnvFlagOverrides();\nvar Recoil_RecoilEnv = env;\n\nfunction Recoil_gkx_OSS(gk) {\n return Recoil_RecoilEnv.RECOIL_GKS_ENABLED.has(gk);\n}\n\nRecoil_gkx_OSS.setPass = gk => {\n Recoil_RecoilEnv.RECOIL_GKS_ENABLED.add(gk);\n};\n\nRecoil_gkx_OSS.setFail = gk => {\n Recoil_RecoilEnv.RECOIL_GKS_ENABLED.delete(gk);\n};\n\nRecoil_gkx_OSS.clear = () => {\n Recoil_RecoilEnv.RECOIL_GKS_ENABLED.clear();\n};\n\nvar Recoil_gkx = Recoil_gkx_OSS; // @oss-only\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction recoverableViolation(message, _projectName, {\n error\n} = {}) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(message, error);\n }\n\n return null;\n}\n\nvar recoverableViolation_1 = recoverableViolation;\n\n// @oss-only\n\n\nvar Recoil_recoverableViolation = recoverableViolation_1;\n\nvar _createMutableSource, _useMutableSource, _useSyncExternalStore;\n\n\n\n\n\n\n\nconst createMutableSource = // flowlint-next-line unclear-type:off\n(_createMutableSource = react.createMutableSource) !== null && _createMutableSource !== void 0 ? _createMutableSource : react.unstable_createMutableSource;\nconst useMutableSource = // flowlint-next-line unclear-type:off\n(_useMutableSource = react.useMutableSource) !== null && _useMutableSource !== void 0 ? _useMutableSource : react.unstable_useMutableSource; // https://github.com/reactwg/react-18/discussions/86\n\nconst useSyncExternalStore = // flowlint-next-line unclear-type:off\n(_useSyncExternalStore = react.useSyncExternalStore) !== null && _useSyncExternalStore !== void 0 ? _useSyncExternalStore : // flowlint-next-line unclear-type:off\nreact.unstable_useSyncExternalStore;\nlet ReactRendererVersionMismatchWarnOnce = false; // Check if the current renderer supports `useSyncExternalStore()`.\n// Since React goes through a proxy dispatcher and the current renderer can\n// change we can't simply check if `React.useSyncExternalStore()` is defined.\n\nfunction currentRendererSupportsUseSyncExternalStore() {\n var _ReactCurrentDispatch;\n\n // $FlowFixMe[incompatible-use]\n const {\n ReactCurrentDispatcher,\n ReactCurrentOwner\n } =\n /* $FlowFixMe[prop-missing] This workaround was approved as a safer mechanism\n * to detect if the current renderer supports useSyncExternalStore()\n * https://fb.workplace.com/groups/reactjs/posts/9558682330846963/ */\n react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n const dispatcher = (_ReactCurrentDispatch = ReactCurrentDispatcher === null || ReactCurrentDispatcher === void 0 ? void 0 : ReactCurrentDispatcher.current) !== null && _ReactCurrentDispatch !== void 0 ? _ReactCurrentDispatch : ReactCurrentOwner.currentDispatcher;\n const isUseSyncExternalStoreSupported = dispatcher.useSyncExternalStore != null;\n\n if (useSyncExternalStore && !isUseSyncExternalStoreSupported && !ReactRendererVersionMismatchWarnOnce) {\n ReactRendererVersionMismatchWarnOnce = true;\n Recoil_recoverableViolation('A React renderer without React 18+ API support is being used with React 18+.');\n }\n\n return isUseSyncExternalStoreSupported;\n}\n\n/**\n * mode: The React API and approach to use for syncing state with React\n * early: Re-renders from Recoil updates occur:\n * 1) earlier\n * 2) in sync with React updates in the same batch\n * 3) before transaction observers instead of after.\n * concurrent: Is the current mode compatible with Concurrent Mode and useTransition()\n */\nfunction reactMode() {\n // NOTE: This mode is currently broken with some Suspense cases\n // see Recoil_selector-test.js\n if (Recoil_gkx('recoil_transition_support')) {\n return {\n mode: 'TRANSITION_SUPPORT',\n early: true,\n concurrent: true\n };\n }\n\n if (Recoil_gkx('recoil_sync_external_store') && useSyncExternalStore != null) {\n return {\n mode: 'SYNC_EXTERNAL_STORE',\n early: true,\n concurrent: false\n };\n }\n\n if (Recoil_gkx('recoil_mutable_source') && useMutableSource != null && typeof window !== 'undefined' && !window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE) {\n return Recoil_gkx('recoil_suppress_rerender_in_callback') ? {\n mode: 'MUTABLE_SOURCE',\n early: true,\n concurrent: true\n } : {\n mode: 'MUTABLE_SOURCE',\n early: false,\n concurrent: false\n };\n }\n\n return Recoil_gkx('recoil_suppress_rerender_in_callback') ? {\n mode: 'LEGACY',\n early: true,\n concurrent: false\n } : {\n mode: 'LEGACY',\n early: false,\n concurrent: false\n };\n} // TODO Need to figure out if there is a standard/open-source equivalent to see if hot module replacement is happening:\n\n\nfunction isFastRefreshEnabled() {\n // @fb-only: const {isAcceptingUpdate} = require('__debug');\n // @fb-only: return typeof isAcceptingUpdate === 'function' && isAcceptingUpdate();\n return false; // @oss-only\n}\n\nvar Recoil_ReactMode = {\n createMutableSource,\n useMutableSource,\n useSyncExternalStore,\n currentRendererSupportsUseSyncExternalStore,\n reactMode,\n isFastRefreshEnabled\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\n// eslint-disable-next-line no-unused-vars\nclass AbstractRecoilValue {\n constructor(newKey) {\n _defineProperty(this, \"key\", void 0);\n\n this.key = newKey;\n }\n\n toJSON() {\n return {\n key: this.key\n };\n }\n\n}\n\nclass RecoilState extends AbstractRecoilValue {}\n\nclass RecoilValueReadOnly extends AbstractRecoilValue {}\n\nfunction isRecoilValue(x) {\n return x instanceof RecoilState || x instanceof RecoilValueReadOnly;\n}\n\nvar Recoil_RecoilValue = {\n AbstractRecoilValue,\n RecoilState,\n RecoilValueReadOnly,\n isRecoilValue\n};\n\nvar Recoil_RecoilValue_1 = Recoil_RecoilValue.AbstractRecoilValue;\nvar Recoil_RecoilValue_2 = Recoil_RecoilValue.RecoilState;\nvar Recoil_RecoilValue_3 = Recoil_RecoilValue.RecoilValueReadOnly;\nvar Recoil_RecoilValue_4 = Recoil_RecoilValue.isRecoilValue;\n\nvar Recoil_RecoilValue$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n AbstractRecoilValue: Recoil_RecoilValue_1,\n RecoilState: Recoil_RecoilValue_2,\n RecoilValueReadOnly: Recoil_RecoilValue_3,\n isRecoilValue: Recoil_RecoilValue_4\n});\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction sprintf(format, ...args) {\n let index = 0;\n return format.replace(/%s/g, () => String(args[index++]));\n}\n\nvar sprintf_1 = sprintf;\n\nfunction expectationViolation(format, ...args) {\n if (process.env.NODE_ENV !== \"production\") {\n const message = sprintf_1.call(null, format, ...args);\n const error = new Error(message);\n error.name = 'Expectation Violation';\n console.error(error);\n }\n}\n\nvar expectationViolation_1 = expectationViolation;\n\n// @oss-only\n\n\nvar Recoil_expectationViolation = expectationViolation_1;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Creates a new iterable whose output is generated by passing the input\n * iterable's values through the mapper function.\n */\n\nfunction mapIterable(iterable, callback) {\n // Use generator to create iterable/iterator\n return function* () {\n let index = 0;\n\n for (const value of iterable) {\n yield callback(value, index++);\n }\n }();\n}\n\nvar Recoil_mapIterable = mapIterable;\n\nconst {\n isFastRefreshEnabled: isFastRefreshEnabled$1\n} = Recoil_ReactMode;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass DefaultValue {}\n\nconst DEFAULT_VALUE = new DefaultValue();\n// flowlint-next-line unclear-type:off\nconst nodes = new Map(); // flowlint-next-line unclear-type:off\n\nconst recoilValues = new Map();\n/* eslint-disable no-redeclare */\n\nfunction recoilValuesForKeys(keys) {\n return Recoil_mapIterable(keys, key => Recoil_nullthrows(recoilValues.get(key)));\n}\n\nfunction checkForDuplicateAtomKey(key) {\n if (nodes.has(key)) {\n const message = `Duplicate atom key \"${key}\". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;\n\n if (process.env.NODE_ENV !== \"production\") {\n // TODO Figure this out for open-source\n if (!isFastRefreshEnabled$1()) {\n Recoil_expectationViolation(message, 'recoil');\n }\n } else {\n // @fb-only: recoverableViolation(message, 'recoil');\n console.warn(message); // @oss-only\n }\n }\n}\n\nfunction registerNode(node) {\n if (Recoil_RecoilEnv.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED) {\n checkForDuplicateAtomKey(node.key);\n }\n\n nodes.set(node.key, node);\n const recoilValue = node.set == null ? new Recoil_RecoilValue$1.RecoilValueReadOnly(node.key) : new Recoil_RecoilValue$1.RecoilState(node.key);\n recoilValues.set(node.key, recoilValue);\n return recoilValue;\n}\n/* eslint-enable no-redeclare */\n\n\nclass NodeMissingError extends Error {} // flowlint-next-line unclear-type:off\n\n\nfunction getNode(key) {\n const node = nodes.get(key);\n\n if (node == null) {\n throw new NodeMissingError(`Missing definition for RecoilValue: \"${key}\"\"`);\n }\n\n return node;\n} // flowlint-next-line unclear-type:off\n\n\nfunction getNodeMaybe(key) {\n return nodes.get(key);\n}\n\nconst configDeletionHandlers = new Map();\n\nfunction deleteNodeConfigIfPossible(key) {\n var _node$shouldDeleteCon;\n\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n const node = nodes.get(key);\n\n if (node !== null && node !== void 0 && (_node$shouldDeleteCon = node.shouldDeleteConfigOnRelease) !== null && _node$shouldDeleteCon !== void 0 && _node$shouldDeleteCon.call(node)) {\n var _getConfigDeletionHan;\n\n nodes.delete(key);\n (_getConfigDeletionHan = getConfigDeletionHandler(key)) === null || _getConfigDeletionHan === void 0 ? void 0 : _getConfigDeletionHan();\n configDeletionHandlers.delete(key);\n }\n}\n\nfunction setConfigDeletionHandler(key, fn) {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n if (fn === undefined) {\n configDeletionHandlers.delete(key);\n } else {\n configDeletionHandlers.set(key, fn);\n }\n}\n\nfunction getConfigDeletionHandler(key) {\n return configDeletionHandlers.get(key);\n}\n\nvar Recoil_Node = {\n nodes,\n recoilValues,\n registerNode,\n getNode,\n getNodeMaybe,\n deleteNodeConfigIfPossible,\n setConfigDeletionHandler,\n getConfigDeletionHandler,\n recoilValuesForKeys,\n NodeMissingError,\n DefaultValue,\n DEFAULT_VALUE\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction enqueueExecution(s, f) {\n f();\n}\n\nvar Recoil_Queue = {\n enqueueExecution\n};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar hamt_1 = createCommonjsModule(function (module) {\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n/**\n @fileOverview Hash Array Mapped Trie.\n\n Code based on: https://github.com/exclipy/pdata\n*/\n\n\nvar hamt = {}; // export\n\n/* Configuration\n ******************************************************************************/\n\nvar SIZE = 5;\nvar BUCKET_SIZE = Math.pow(2, SIZE);\nvar MASK = BUCKET_SIZE - 1;\nvar MAX_INDEX_NODE = BUCKET_SIZE / 2;\nvar MIN_ARRAY_NODE = BUCKET_SIZE / 4;\n/*\n ******************************************************************************/\n\nvar nothing = {};\n\nvar constant = function constant(x) {\n return function () {\n return x;\n };\n};\n/**\n Get 32 bit hash of string.\n\n Based on:\n http://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery\n*/\n\n\nvar hash = hamt.hash = function (str) {\n var type = typeof str === 'undefined' ? 'undefined' : _typeof(str);\n if (type === 'number') return str;\n if (type !== 'string') str += '';\n var hash = 0;\n\n for (var i = 0, len = str.length; i < len; ++i) {\n var c = str.charCodeAt(i);\n hash = (hash << 5) - hash + c | 0;\n }\n\n return hash;\n};\n/* Bit Ops\n ******************************************************************************/\n\n/**\n Hamming weight.\n\n Taken from: http://jsperf.com/hamming-weight\n*/\n\n\nvar popcount = function popcount(x) {\n x -= x >> 1 & 0x55555555;\n x = (x & 0x33333333) + (x >> 2 & 0x33333333);\n x = x + (x >> 4) & 0x0f0f0f0f;\n x += x >> 8;\n x += x >> 16;\n return x & 0x7f;\n};\n\nvar hashFragment = function hashFragment(shift, h) {\n return h >>> shift & MASK;\n};\n\nvar toBitmap = function toBitmap(x) {\n return 1 << x;\n};\n\nvar fromBitmap = function fromBitmap(bitmap, bit) {\n return popcount(bitmap & bit - 1);\n};\n/* Array Ops\n ******************************************************************************/\n\n/**\n Set a value in an array.\n\n @param mutate Should the input array be mutated?\n @param at Index to change.\n @param v New value\n @param arr Array.\n*/\n\n\nvar arrayUpdate = function arrayUpdate(mutate, at, v, arr) {\n var out = arr;\n\n if (!mutate) {\n var len = arr.length;\n out = new Array(len);\n\n for (var i = 0; i < len; ++i) {\n out[i] = arr[i];\n }\n }\n\n out[at] = v;\n return out;\n};\n/**\n Remove a value from an array.\n\n @param mutate Should the input array be mutated?\n @param at Index to remove.\n @param arr Array.\n*/\n\n\nvar arraySpliceOut = function arraySpliceOut(mutate, at, arr) {\n var newLen = arr.length - 1;\n var i = 0;\n var g = 0;\n var out = arr;\n\n if (mutate) {\n i = g = at;\n } else {\n out = new Array(newLen);\n\n while (i < at) {\n out[g++] = arr[i++];\n }\n }\n\n ++i;\n\n while (i <= newLen) {\n out[g++] = arr[i++];\n }\n\n if (mutate) {\n out.length = newLen;\n }\n\n return out;\n};\n/**\n Insert a value into an array.\n\n @param mutate Should the input array be mutated?\n @param at Index to insert at.\n @param v Value to insert,\n @param arr Array.\n*/\n\n\nvar arraySpliceIn = function arraySpliceIn(mutate, at, v, arr) {\n var len = arr.length;\n\n if (mutate) {\n var _i = len;\n\n while (_i >= at) {\n arr[_i--] = arr[_i];\n }\n\n arr[at] = v;\n return arr;\n }\n\n var i = 0,\n g = 0;\n var out = new Array(len + 1);\n\n while (i < at) {\n out[g++] = arr[i++];\n }\n\n out[at] = v;\n\n while (i < len) {\n out[++g] = arr[i++];\n }\n\n return out;\n};\n/* Node Structures\n ******************************************************************************/\n\n\nvar LEAF = 1;\nvar COLLISION = 2;\nvar INDEX = 3;\nvar ARRAY = 4;\n/**\n Empty node.\n*/\n\nvar empty = {\n __hamt_isEmpty: true\n};\n\nvar isEmptyNode = function isEmptyNode(x) {\n return x === empty || x && x.__hamt_isEmpty;\n};\n/**\n Leaf holding a value.\n\n @member edit Edit of the node.\n @member hash Hash of key.\n @member key Key.\n @member value Value stored.\n*/\n\n\nvar Leaf = function Leaf(edit, hash, key, value) {\n return {\n type: LEAF,\n edit: edit,\n hash: hash,\n key: key,\n value: value,\n _modify: Leaf__modify\n };\n};\n/**\n Leaf holding multiple values with the same hash but different keys.\n\n @member edit Edit of the node.\n @member hash Hash of key.\n @member children Array of collision children node.\n*/\n\n\nvar Collision = function Collision(edit, hash, children) {\n return {\n type: COLLISION,\n edit: edit,\n hash: hash,\n children: children,\n _modify: Collision__modify\n };\n};\n/**\n Internal node with a sparse set of children.\n\n Uses a bitmap and array to pack children.\n\n @member edit Edit of the node.\n @member mask Bitmap that encode the positions of children in the array.\n @member children Array of child nodes.\n*/\n\n\nvar IndexedNode = function IndexedNode(edit, mask, children) {\n return {\n type: INDEX,\n edit: edit,\n mask: mask,\n children: children,\n _modify: IndexedNode__modify\n };\n};\n/**\n Internal node with many children.\n\n @member edit Edit of the node.\n @member size Number of children.\n @member children Array of child nodes.\n*/\n\n\nvar ArrayNode = function ArrayNode(edit, size, children) {\n return {\n type: ARRAY,\n edit: edit,\n size: size,\n children: children,\n _modify: ArrayNode__modify\n };\n};\n/**\n Is `node` a leaf node?\n*/\n\n\nvar isLeaf = function isLeaf(node) {\n return node === empty || node.type === LEAF || node.type === COLLISION;\n};\n/* Internal node operations.\n ******************************************************************************/\n\n/**\n Expand an indexed node into an array node.\n\n @param edit Current edit.\n @param frag Index of added child.\n @param child Added child.\n @param mask Index node mask before child added.\n @param subNodes Index node children before child added.\n*/\n\n\nvar expand = function expand(edit, frag, child, bitmap, subNodes) {\n var arr = [];\n var bit = bitmap;\n var count = 0;\n\n for (var i = 0; bit; ++i) {\n if (bit & 1) arr[i] = subNodes[count++];\n bit >>>= 1;\n }\n\n arr[frag] = child;\n return ArrayNode(edit, count + 1, arr);\n};\n/**\n Collapse an array node into a indexed node.\n\n @param edit Current edit.\n @param count Number of elements in new array.\n @param removed Index of removed element.\n @param elements Array node children before remove.\n*/\n\n\nvar pack = function pack(edit, count, removed, elements) {\n var children = new Array(count - 1);\n var g = 0;\n var bitmap = 0;\n\n for (var i = 0, len = elements.length; i < len; ++i) {\n if (i !== removed) {\n var elem = elements[i];\n\n if (elem && !isEmptyNode(elem)) {\n children[g++] = elem;\n bitmap |= 1 << i;\n }\n }\n }\n\n return IndexedNode(edit, bitmap, children);\n};\n/**\n Merge two leaf nodes.\n\n @param shift Current shift.\n @param h1 Node 1 hash.\n @param n1 Node 1.\n @param h2 Node 2 hash.\n @param n2 Node 2.\n*/\n\n\nvar mergeLeaves = function mergeLeaves(edit, shift, h1, n1, h2, n2) {\n if (h1 === h2) return Collision(edit, h1, [n2, n1]);\n var subH1 = hashFragment(shift, h1);\n var subH2 = hashFragment(shift, h2);\n return IndexedNode(edit, toBitmap(subH1) | toBitmap(subH2), subH1 === subH2 ? [mergeLeaves(edit, shift + SIZE, h1, n1, h2, n2)] : subH1 < subH2 ? [n1, n2] : [n2, n1]);\n};\n/**\n Update an entry in a collision list.\n\n @param mutate Should mutation be used?\n @param edit Current edit.\n @param keyEq Key compare function.\n @param hash Hash of collision.\n @param list Collision list.\n @param f Update function.\n @param k Key to update.\n @param size Size ref.\n*/\n\n\nvar updateCollisionList = function updateCollisionList(mutate, edit, keyEq, h, list, f, k, size) {\n var len = list.length;\n\n for (var i = 0; i < len; ++i) {\n var child = list[i];\n\n if (keyEq(k, child.key)) {\n var value = child.value;\n\n var _newValue = f(value);\n\n if (_newValue === value) return list;\n\n if (_newValue === nothing) {\n --size.value;\n return arraySpliceOut(mutate, i, list);\n }\n\n return arrayUpdate(mutate, i, Leaf(edit, h, k, _newValue), list);\n }\n }\n\n var newValue = f();\n if (newValue === nothing) return list;\n ++size.value;\n return arrayUpdate(mutate, len, Leaf(edit, h, k, newValue), list);\n};\n\nvar canEditNode = function canEditNode(edit, node) {\n return edit === node.edit;\n};\n/* Editing\n ******************************************************************************/\n\n\nvar Leaf__modify = function Leaf__modify(edit, keyEq, shift, f, h, k, size) {\n if (keyEq(k, this.key)) {\n var _v = f(this.value);\n\n if (_v === this.value) return this;else if (_v === nothing) {\n --size.value;\n return empty;\n }\n\n if (canEditNode(edit, this)) {\n this.value = _v;\n return this;\n }\n\n return Leaf(edit, h, k, _v);\n }\n\n var v = f();\n if (v === nothing) return this;\n ++size.value;\n return mergeLeaves(edit, shift, this.hash, this, h, Leaf(edit, h, k, v));\n};\n\nvar Collision__modify = function Collision__modify(edit, keyEq, shift, f, h, k, size) {\n if (h === this.hash) {\n var canEdit = canEditNode(edit, this);\n var list = updateCollisionList(canEdit, edit, keyEq, this.hash, this.children, f, k, size);\n if (list === this.children) return this;\n return list.length > 1 ? Collision(edit, this.hash, list) : list[0]; // collapse single element collision list\n }\n\n var v = f();\n if (v === nothing) return this;\n ++size.value;\n return mergeLeaves(edit, shift, this.hash, this, h, Leaf(edit, h, k, v));\n};\n\nvar IndexedNode__modify = function IndexedNode__modify(edit, keyEq, shift, f, h, k, size) {\n var mask = this.mask;\n var children = this.children;\n var frag = hashFragment(shift, h);\n var bit = toBitmap(frag);\n var indx = fromBitmap(mask, bit);\n var exists = mask & bit;\n var current = exists ? children[indx] : empty;\n\n var child = current._modify(edit, keyEq, shift + SIZE, f, h, k, size);\n\n if (current === child) return this;\n var canEdit = canEditNode(edit, this);\n var bitmap = mask;\n var newChildren = void 0;\n\n if (exists && isEmptyNode(child)) {\n // remove\n bitmap &= ~bit;\n if (!bitmap) return empty;\n if (children.length <= 2 && isLeaf(children[indx ^ 1])) return children[indx ^ 1]; // collapse\n\n newChildren = arraySpliceOut(canEdit, indx, children);\n } else if (!exists && !isEmptyNode(child)) {\n // add\n if (children.length >= MAX_INDEX_NODE) return expand(edit, frag, child, mask, children);\n bitmap |= bit;\n newChildren = arraySpliceIn(canEdit, indx, child, children);\n } else {\n // modify\n newChildren = arrayUpdate(canEdit, indx, child, children);\n }\n\n if (canEdit) {\n this.mask = bitmap;\n this.children = newChildren;\n return this;\n }\n\n return IndexedNode(edit, bitmap, newChildren);\n};\n\nvar ArrayNode__modify = function ArrayNode__modify(edit, keyEq, shift, f, h, k, size) {\n var count = this.size;\n var children = this.children;\n var frag = hashFragment(shift, h);\n var child = children[frag];\n\n var newChild = (child || empty)._modify(edit, keyEq, shift + SIZE, f, h, k, size);\n\n if (child === newChild) return this;\n var canEdit = canEditNode(edit, this);\n var newChildren = void 0;\n\n if (isEmptyNode(child) && !isEmptyNode(newChild)) {\n // add\n ++count;\n newChildren = arrayUpdate(canEdit, frag, newChild, children);\n } else if (!isEmptyNode(child) && isEmptyNode(newChild)) {\n // remove\n --count;\n if (count <= MIN_ARRAY_NODE) return pack(edit, count, frag, children);\n newChildren = arrayUpdate(canEdit, frag, empty, children);\n } else {\n // modify\n newChildren = arrayUpdate(canEdit, frag, newChild, children);\n }\n\n if (canEdit) {\n this.size = count;\n this.children = newChildren;\n return this;\n }\n\n return ArrayNode(edit, count, newChildren);\n};\n\nempty._modify = function (edit, keyEq, shift, f, h, k, size) {\n var v = f();\n if (v === nothing) return empty;\n ++size.value;\n return Leaf(edit, h, k, v);\n};\n/*\n ******************************************************************************/\n\n\nfunction Map(editable, edit, config, root, size) {\n this._editable = editable;\n this._edit = edit;\n this._config = config;\n this._root = root;\n this._size = size;\n}\n\nMap.prototype.setTree = function (newRoot, newSize) {\n if (this._editable) {\n this._root = newRoot;\n this._size = newSize;\n return this;\n }\n\n return newRoot === this._root ? this : new Map(this._editable, this._edit, this._config, newRoot, newSize);\n};\n/* Queries\n ******************************************************************************/\n\n/**\n Lookup the value for `key` in `map` using a custom `hash`.\n\n Returns the value or `alt` if none.\n*/\n\n\nvar tryGetHash = hamt.tryGetHash = function (alt, hash, key, map) {\n var node = map._root;\n var shift = 0;\n var keyEq = map._config.keyEq;\n\n while (true) {\n switch (node.type) {\n case LEAF:\n {\n return keyEq(key, node.key) ? node.value : alt;\n }\n\n case COLLISION:\n {\n if (hash === node.hash) {\n var children = node.children;\n\n for (var i = 0, len = children.length; i < len; ++i) {\n var child = children[i];\n if (keyEq(key, child.key)) return child.value;\n }\n }\n\n return alt;\n }\n\n case INDEX:\n {\n var frag = hashFragment(shift, hash);\n var bit = toBitmap(frag);\n\n if (node.mask & bit) {\n node = node.children[fromBitmap(node.mask, bit)];\n shift += SIZE;\n break;\n }\n\n return alt;\n }\n\n case ARRAY:\n {\n node = node.children[hashFragment(shift, hash)];\n\n if (node) {\n shift += SIZE;\n break;\n }\n\n return alt;\n }\n\n default:\n return alt;\n }\n }\n};\n\nMap.prototype.tryGetHash = function (alt, hash, key) {\n return tryGetHash(alt, hash, key, this);\n};\n/**\n Lookup the value for `key` in `map` using internal hash function.\n\n @see `tryGetHash`\n*/\n\n\nvar tryGet = hamt.tryGet = function (alt, key, map) {\n return tryGetHash(alt, map._config.hash(key), key, map);\n};\n\nMap.prototype.tryGet = function (alt, key) {\n return tryGet(alt, key, this);\n};\n/**\n Lookup the value for `key` in `map` using a custom `hash`.\n\n Returns the value or `undefined` if none.\n*/\n\n\nvar getHash = hamt.getHash = function (hash, key, map) {\n return tryGetHash(undefined, hash, key, map);\n};\n\nMap.prototype.getHash = function (hash, key) {\n return getHash(hash, key, this);\n};\n/**\n Lookup the value for `key` in `map` using internal hash function.\n\n @see `get`\n*/\n\n\nvar get = hamt.get = function (key, map) {\n return tryGetHash(undefined, map._config.hash(key), key, map);\n};\n\nMap.prototype.get = function (key, alt) {\n return tryGet(alt, key, this);\n};\n/**\n Does an entry exist for `key` in `map`? Uses custom `hash`.\n*/\n\n\nvar hasHash = hamt.has = function (hash, key, map) {\n return tryGetHash(nothing, hash, key, map) !== nothing;\n};\n\nMap.prototype.hasHash = function (hash, key) {\n return hasHash(hash, key, this);\n};\n/**\n Does an entry exist for `key` in `map`? Uses internal hash function.\n*/\n\n\nvar has = hamt.has = function (key, map) {\n return hasHash(map._config.hash(key), key, map);\n};\n\nMap.prototype.has = function (key) {\n return has(key, this);\n};\n\nvar defKeyCompare = function defKeyCompare(x, y) {\n return x === y;\n};\n/**\n Create an empty map.\n\n @param config Configuration.\n*/\n\n\nhamt.make = function (config) {\n return new Map(0, 0, {\n keyEq: config && config.keyEq || defKeyCompare,\n hash: config && config.hash || hash\n }, empty, 0);\n};\n/**\n Empty map.\n*/\n\n\nhamt.empty = hamt.make();\n/**\n Does `map` contain any elements?\n*/\n\nvar isEmpty = hamt.isEmpty = function (map) {\n return map && !!isEmptyNode(map._root);\n};\n\nMap.prototype.isEmpty = function () {\n return isEmpty(this);\n};\n/* Updates\n ******************************************************************************/\n\n/**\n Alter the value stored for `key` in `map` using function `f` using\n custom hash.\n\n `f` is invoked with the current value for `k` if it exists,\n or no arguments if no such value exists. `modify` will always either\n update or insert a value into the map.\n\n Returns a map with the modified value. Does not alter `map`.\n*/\n\n\nvar modifyHash = hamt.modifyHash = function (f, hash, key, map) {\n var size = {\n value: map._size\n };\n\n var newRoot = map._root._modify(map._editable ? map._edit : NaN, map._config.keyEq, 0, f, hash, key, size);\n\n return map.setTree(newRoot, size.value);\n};\n\nMap.prototype.modifyHash = function (hash, key, f) {\n return modifyHash(f, hash, key, this);\n};\n/**\n Alter the value stored for `key` in `map` using function `f` using\n internal hash function.\n\n @see `modifyHash`\n*/\n\n\nvar modify = hamt.modify = function (f, key, map) {\n return modifyHash(f, map._config.hash(key), key, map);\n};\n\nMap.prototype.modify = function (key, f) {\n return modify(f, key, this);\n};\n/**\n Store `value` for `key` in `map` using custom `hash`.\n\n Returns a map with the modified value. Does not alter `map`.\n*/\n\n\nvar setHash = hamt.setHash = function (hash, key, value, map) {\n return modifyHash(constant(value), hash, key, map);\n};\n\nMap.prototype.setHash = function (hash, key, value) {\n return setHash(hash, key, value, this);\n};\n/**\n Store `value` for `key` in `map` using internal hash function.\n\n @see `setHash`\n*/\n\n\nvar set = hamt.set = function (key, value, map) {\n return setHash(map._config.hash(key), key, value, map);\n};\n\nMap.prototype.set = function (key, value) {\n return set(key, value, this);\n};\n/**\n Remove the entry for `key` in `map`.\n\n Returns a map with the value removed. Does not alter `map`.\n*/\n\n\nvar del = constant(nothing);\n\nvar removeHash = hamt.removeHash = function (hash, key, map) {\n return modifyHash(del, hash, key, map);\n};\n\nMap.prototype.removeHash = Map.prototype.deleteHash = function (hash, key) {\n return removeHash(hash, key, this);\n};\n/**\n Remove the entry for `key` in `map` using internal hash function.\n\n @see `removeHash`\n*/\n\n\nvar remove = hamt.remove = function (key, map) {\n return removeHash(map._config.hash(key), key, map);\n};\n\nMap.prototype.remove = Map.prototype.delete = function (key) {\n return remove(key, this);\n};\n/* Mutation\n ******************************************************************************/\n\n/**\n Mark `map` as mutable.\n */\n\n\nvar beginMutation = hamt.beginMutation = function (map) {\n return new Map(map._editable + 1, map._edit + 1, map._config, map._root, map._size);\n};\n\nMap.prototype.beginMutation = function () {\n return beginMutation(this);\n};\n/**\n Mark `map` as immutable.\n */\n\n\nvar endMutation = hamt.endMutation = function (map) {\n map._editable = map._editable && map._editable - 1;\n return map;\n};\n\nMap.prototype.endMutation = function () {\n return endMutation(this);\n};\n/**\n Mutate `map` within the context of `f`.\n @param f\n @param map HAMT\n*/\n\n\nvar mutate = hamt.mutate = function (f, map) {\n var transient = beginMutation(map);\n f(transient);\n return endMutation(transient);\n};\n\nMap.prototype.mutate = function (f) {\n return mutate(f, this);\n};\n/* Traversal\n ******************************************************************************/\n\n/**\n Apply a continuation.\n*/\n\n\nvar appk = function appk(k) {\n return k && lazyVisitChildren(k[0], k[1], k[2], k[3], k[4]);\n};\n/**\n Recursively visit all values stored in an array of nodes lazily.\n*/\n\n\nvar lazyVisitChildren = function lazyVisitChildren(len, children, i, f, k) {\n while (i < len) {\n var child = children[i++];\n if (child && !isEmptyNode(child)) return lazyVisit(child, f, [len, children, i, f, k]);\n }\n\n return appk(k);\n};\n/**\n Recursively visit all values stored in `node` lazily.\n*/\n\n\nvar lazyVisit = function lazyVisit(node, f, k) {\n switch (node.type) {\n case LEAF:\n return {\n value: f(node),\n rest: k\n };\n\n case COLLISION:\n case ARRAY:\n case INDEX:\n var children = node.children;\n return lazyVisitChildren(children.length, children, 0, f, k);\n\n default:\n return appk(k);\n }\n};\n\nvar DONE = {\n done: true\n};\n/**\n Javascript iterator over a map.\n*/\n\nfunction MapIterator(v) {\n this.v = v;\n}\n\nMapIterator.prototype.next = function () {\n if (!this.v) return DONE;\n var v0 = this.v;\n this.v = appk(v0.rest);\n return v0;\n};\n\nMapIterator.prototype[Symbol.iterator] = function () {\n return this;\n};\n/**\n Lazily visit each value in map with function `f`.\n*/\n\n\nvar visit = function visit(map, f) {\n return new MapIterator(lazyVisit(map._root, f));\n};\n/**\n Get a Javascsript iterator of `map`.\n\n Iterates over `[key, value]` arrays.\n*/\n\n\nvar buildPairs = function buildPairs(x) {\n return [x.key, x.value];\n};\n\nvar entries = hamt.entries = function (map) {\n return visit(map, buildPairs);\n};\n\nMap.prototype.entries = Map.prototype[Symbol.iterator] = function () {\n return entries(this);\n};\n/**\n Get array of all keys in `map`.\n\n Order is not guaranteed.\n*/\n\n\nvar buildKeys = function buildKeys(x) {\n return x.key;\n};\n\nvar keys = hamt.keys = function (map) {\n return visit(map, buildKeys);\n};\n\nMap.prototype.keys = function () {\n return keys(this);\n};\n/**\n Get array of all values in `map`.\n\n Order is not guaranteed, duplicates are preserved.\n*/\n\n\nvar buildValues = function buildValues(x) {\n return x.value;\n};\n\nvar values = hamt.values = Map.prototype.values = function (map) {\n return visit(map, buildValues);\n};\n\nMap.prototype.values = function () {\n return values(this);\n};\n/* Fold\n ******************************************************************************/\n\n/**\n Visit every entry in the map, aggregating data.\n\n Order of nodes is not guaranteed.\n\n @param f Function mapping accumulated value, value, and key to new value.\n @param z Starting value.\n @param m HAMT\n*/\n\n\nvar fold = hamt.fold = function (f, z, m) {\n var root = m._root;\n if (root.type === LEAF) return f(z, root.value, root.key);\n var toVisit = [root.children];\n var children = void 0;\n\n while (children = toVisit.pop()) {\n for (var i = 0, len = children.length; i < len;) {\n var child = children[i++];\n\n if (child && child.type) {\n if (child.type === LEAF) z = f(z, child.value, child.key);else toVisit.push(child.children);\n }\n }\n }\n\n return z;\n};\n\nMap.prototype.fold = function (f, z) {\n return fold(f, z, this);\n};\n/**\n Visit every entry in the map, aggregating data.\n\n Order of nodes is not guaranteed.\n\n @param f Function invoked with value and key\n @param map HAMT\n*/\n\n\nvar forEach = hamt.forEach = function (f, map) {\n return fold(function (_, value, key) {\n return f(value, key, map);\n }, null, map);\n};\n\nMap.prototype.forEach = function (f) {\n return forEach(f, this);\n};\n/* Aggregate\n ******************************************************************************/\n\n/**\n Get the number of entries in `map`.\n*/\n\n\nvar count = hamt.count = function (map) {\n return map._size;\n};\n\nMap.prototype.count = function () {\n return count(this);\n};\n\nObject.defineProperty(Map.prototype, 'size', {\n get: Map.prototype.count\n});\n/* Export\n ******************************************************************************/\n\nif ( module.exports) {\n module.exports = hamt;\n} else {\n undefined.hamt = hamt;\n}\n});\n\nclass BuiltInMap {\n constructor(existing) {\n _defineProperty(this, \"_map\", void 0);\n\n this._map = new Map(existing === null || existing === void 0 ? void 0 : existing.entries());\n }\n\n keys() {\n return this._map.keys();\n }\n\n entries() {\n return this._map.entries();\n }\n\n get(k) {\n return this._map.get(k);\n }\n\n has(k) {\n return this._map.has(k);\n }\n\n set(k, v) {\n this._map.set(k, v);\n\n return this;\n }\n\n delete(k) {\n this._map.delete(k);\n\n return this;\n }\n\n clone() {\n return persistentMap(this);\n }\n\n toMap() {\n return new Map(this._map);\n }\n\n}\n\nclass HashArrayMappedTrieMap {\n // Because hamt.empty is not a function there is no way to introduce type\n // parameters on it, so empty is typed as HAMTPlusMap.\n // $FlowIssue\n constructor(existing) {\n _defineProperty(this, \"_hamt\", hamt_1.empty.beginMutation());\n\n if (existing instanceof HashArrayMappedTrieMap) {\n const h = existing._hamt.endMutation();\n\n existing._hamt = h.beginMutation();\n this._hamt = h.beginMutation();\n } else if (existing) {\n for (const [k, v] of existing.entries()) {\n this._hamt.set(k, v);\n }\n }\n }\n\n keys() {\n return this._hamt.keys();\n }\n\n entries() {\n return this._hamt.entries();\n }\n\n get(k) {\n return this._hamt.get(k);\n }\n\n has(k) {\n return this._hamt.has(k);\n }\n\n set(k, v) {\n this._hamt.set(k, v);\n\n return this;\n }\n\n delete(k) {\n this._hamt.delete(k);\n\n return this;\n }\n\n clone() {\n return persistentMap(this);\n }\n\n toMap() {\n return new Map(this._hamt);\n }\n\n}\n\nfunction persistentMap(existing) {\n if (Recoil_gkx('recoil_hamt_2020')) {\n return new HashArrayMappedTrieMap(existing);\n } else {\n return new BuiltInMap(existing);\n }\n}\n\nvar Recoil_PersistentMap = {\n persistentMap\n};\n\nvar Recoil_PersistentMap_1 = Recoil_PersistentMap.persistentMap;\n\nvar Recoil_PersistentMap$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n persistentMap: Recoil_PersistentMap_1\n});\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Returns a set containing all of the values from the first set that are not\n * present in any of the subsequent sets.\n *\n * Note: this is written procedurally (i.e., without filterSet) for performant\n * use in tight loops.\n */\n\nfunction differenceSets(set, ...setsWithValuesToRemove) {\n const ret = new Set();\n\n FIRST: for (const value of set) {\n for (const otherSet of setsWithValuesToRemove) {\n if (otherSet.has(value)) {\n continue FIRST;\n }\n }\n\n ret.add(value);\n }\n\n return ret;\n}\n\nvar Recoil_differenceSets = differenceSets;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Returns a new Map object with the same keys as the original, but with the\n * values replaced with the output of the given callback function.\n */\n\nfunction mapMap(map, callback) {\n const result = new Map();\n map.forEach((value, key) => {\n result.set(key, callback(value, key));\n });\n return result;\n}\n\nvar Recoil_mapMap = mapMap;\n\nfunction makeGraph() {\n return {\n nodeDeps: new Map(),\n nodeToNodeSubscriptions: new Map()\n };\n}\n\nfunction cloneGraph(graph) {\n return {\n nodeDeps: Recoil_mapMap(graph.nodeDeps, s => new Set(s)),\n nodeToNodeSubscriptions: Recoil_mapMap(graph.nodeToNodeSubscriptions, s => new Set(s))\n };\n} // Note that this overwrites the deps of existing nodes, rather than unioning\n// the new deps with the old deps.\n\n\nfunction mergeDepsIntoGraph(key, newDeps, graph, // If olderGraph is given then we will not overwrite changes made to the given\n// graph compared with olderGraph:\nolderGraph) {\n const {\n nodeDeps,\n nodeToNodeSubscriptions\n } = graph;\n const oldDeps = nodeDeps.get(key);\n\n if (oldDeps && olderGraph && oldDeps !== olderGraph.nodeDeps.get(key)) {\n return;\n } // Update nodeDeps:\n\n\n nodeDeps.set(key, newDeps); // Add new deps to nodeToNodeSubscriptions:\n\n const addedDeps = oldDeps == null ? newDeps : Recoil_differenceSets(newDeps, oldDeps);\n\n for (const dep of addedDeps) {\n if (!nodeToNodeSubscriptions.has(dep)) {\n nodeToNodeSubscriptions.set(dep, new Set());\n }\n\n const existing = Recoil_nullthrows(nodeToNodeSubscriptions.get(dep));\n existing.add(key);\n } // Remove removed deps from nodeToNodeSubscriptions:\n\n\n if (oldDeps) {\n const removedDeps = Recoil_differenceSets(oldDeps, newDeps);\n\n for (const dep of removedDeps) {\n if (!nodeToNodeSubscriptions.has(dep)) {\n return;\n }\n\n const existing = Recoil_nullthrows(nodeToNodeSubscriptions.get(dep));\n existing.delete(key);\n\n if (existing.size === 0) {\n nodeToNodeSubscriptions.delete(dep);\n }\n }\n }\n}\n\nfunction saveDepsToStore(key, deps, store, version) {\n var _storeState$nextTree, _storeState$previousT, _storeState$previousT2, _storeState$previousT3;\n\n const storeState = store.getState();\n\n if (!(version === storeState.currentTree.version || version === ((_storeState$nextTree = storeState.nextTree) === null || _storeState$nextTree === void 0 ? void 0 : _storeState$nextTree.version) || version === ((_storeState$previousT = storeState.previousTree) === null || _storeState$previousT === void 0 ? void 0 : _storeState$previousT.version))) {\n Recoil_recoverableViolation('Tried to save dependencies to a discarded tree');\n } // Merge the dependencies discovered into the store's dependency map\n // for the version that was read:\n\n\n const graph = store.getGraph(version);\n mergeDepsIntoGraph(key, deps, graph); // If this version is not the latest version, also write these dependencies\n // into later versions if they don't already have their own:\n\n if (version === ((_storeState$previousT2 = storeState.previousTree) === null || _storeState$previousT2 === void 0 ? void 0 : _storeState$previousT2.version)) {\n const currentGraph = store.getGraph(storeState.currentTree.version);\n mergeDepsIntoGraph(key, deps, currentGraph, graph);\n }\n\n if (version === ((_storeState$previousT3 = storeState.previousTree) === null || _storeState$previousT3 === void 0 ? void 0 : _storeState$previousT3.version) || version === storeState.currentTree.version) {\n var _storeState$nextTree2;\n\n const nextVersion = (_storeState$nextTree2 = storeState.nextTree) === null || _storeState$nextTree2 === void 0 ? void 0 : _storeState$nextTree2.version;\n\n if (nextVersion !== undefined) {\n const nextGraph = store.getGraph(nextVersion);\n mergeDepsIntoGraph(key, deps, nextGraph, graph);\n }\n }\n}\n\nvar Recoil_Graph = {\n cloneGraph,\n graph: makeGraph,\n saveDepsToStore\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nlet nextTreeStateVersion = 0;\n\nconst getNextTreeStateVersion = () => nextTreeStateVersion++;\n\nlet nextStoreID = 0;\n\nconst getNextStoreID = () => nextStoreID++;\n\nlet nextComponentID = 0;\n\nconst getNextComponentID = () => nextComponentID++;\n\nvar Recoil_Keys = {\n getNextTreeStateVersion,\n getNextStoreID,\n getNextComponentID\n};\n\nconst {\n persistentMap: persistentMap$1\n} = Recoil_PersistentMap$1;\n\nconst {\n graph\n} = Recoil_Graph;\n\nconst {\n getNextTreeStateVersion: getNextTreeStateVersion$1\n} = Recoil_Keys;\n\nfunction makeEmptyTreeState() {\n const version = getNextTreeStateVersion$1();\n return {\n version,\n stateID: version,\n transactionMetadata: {},\n dirtyAtoms: new Set(),\n atomValues: persistentMap$1(),\n nonvalidatedAtoms: persistentMap$1()\n };\n}\n\nfunction makeEmptyStoreState() {\n const currentTree = makeEmptyTreeState();\n return {\n currentTree,\n nextTree: null,\n previousTree: null,\n commitDepth: 0,\n knownAtoms: new Set(),\n knownSelectors: new Set(),\n transactionSubscriptions: new Map(),\n nodeTransactionSubscriptions: new Map(),\n nodeToComponentSubscriptions: new Map(),\n queuedComponentCallbacks_DEPRECATED: [],\n suspendedComponentResolvers: new Set(),\n graphsByVersion: new Map().set(currentTree.version, graph()),\n retention: {\n referenceCounts: new Map(),\n nodesRetainedByZone: new Map(),\n retainablesToCheckForRelease: new Set()\n },\n nodeCleanupFunctions: new Map()\n };\n}\n\nvar Recoil_State = {\n makeEmptyTreeState,\n makeEmptyStoreState,\n getNextTreeStateVersion: getNextTreeStateVersion$1\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nclass RetentionZone {}\n\nfunction retentionZone() {\n return new RetentionZone();\n}\n\nvar Recoil_RetentionZone = {\n RetentionZone,\n retentionZone\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Utilities for working with built-in Maps and Sets without mutating them.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction setByAddingToSet(set, v) {\n const next = new Set(set);\n next.add(v);\n return next;\n}\n\nfunction setByDeletingFromSet(set, v) {\n const next = new Set(set);\n next.delete(v);\n return next;\n}\n\nfunction mapBySettingInMap(map, k, v) {\n const next = new Map(map);\n next.set(k, v);\n return next;\n}\n\nfunction mapByUpdatingInMap(map, k, updater) {\n const next = new Map(map);\n next.set(k, updater(next.get(k)));\n return next;\n}\n\nfunction mapByDeletingFromMap(map, k) {\n const next = new Map(map);\n next.delete(k);\n return next;\n}\n\nfunction mapByDeletingMultipleFromMap(map, ks) {\n const next = new Map(map);\n ks.forEach(k => next.delete(k));\n return next;\n}\n\nvar Recoil_CopyOnWrite = {\n setByAddingToSet,\n setByDeletingFromSet,\n mapBySettingInMap,\n mapByUpdatingInMap,\n mapByDeletingFromMap,\n mapByDeletingMultipleFromMap\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Creates a new iterable whose output is generated by passing the input\n * iterable's values through the filter function.\n */\n\nfunction* filterIterable(iterable, predicate) {\n // Use generator to create iterable/iterator\n let index = 0;\n\n for (const value of iterable) {\n if (predicate(value, index++)) {\n yield value;\n }\n }\n}\n\nvar Recoil_filterIterable = filterIterable;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Return a proxy object based on the provided base and factories objects.\n * The proxy will include all properties of the base object as-is.\n * The factories object contains callbacks to obtain the values of the properies\n * for its keys.\n *\n * This is useful for providing users an object where some properties may be\n * lazily computed only on first access.\n */\n// $FlowIssue[unclear-type]\n\nfunction lazyProxy(base, factories) {\n const proxy = new Proxy(base, {\n // Compute and cache lazy property if not already done.\n get: (target, prop) => {\n if (!(prop in target) && prop in factories) {\n target[prop] = factories[prop]();\n }\n\n return target[prop];\n },\n // This method allows user to iterate keys as normal\n ownKeys: target => {\n\n return Object.keys(target);\n }\n }); // $FlowIssue[incompatible-return]\n\n return proxy;\n}\n\nvar Recoil_lazyProxy = lazyProxy;\n\nconst {\n getNode: getNode$1,\n getNodeMaybe: getNodeMaybe$1,\n recoilValuesForKeys: recoilValuesForKeys$1\n} = Recoil_Node;\n\nconst {\n RetentionZone: RetentionZone$1\n} = Recoil_RetentionZone;\n\nconst {\n setByAddingToSet: setByAddingToSet$1\n} = Recoil_CopyOnWrite;\n\n\n\n\n\n\n\n // flowlint-next-line unclear-type:off\n\n\nconst emptySet = Object.freeze(new Set());\n\nclass ReadOnlyRecoilValueError extends Error {}\n\nfunction initializeRetentionForNode(store, nodeKey, retainedBy) {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return () => undefined;\n }\n\n const {\n nodesRetainedByZone\n } = store.getState().retention;\n\n function addToZone(zone) {\n let set = nodesRetainedByZone.get(zone);\n\n if (!set) {\n nodesRetainedByZone.set(zone, set = new Set());\n }\n\n set.add(nodeKey);\n }\n\n if (retainedBy instanceof RetentionZone$1) {\n addToZone(retainedBy);\n } else if (Array.isArray(retainedBy)) {\n for (const zone of retainedBy) {\n addToZone(zone);\n }\n }\n\n return () => {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n const {\n retention\n } = store.getState();\n\n function deleteFromZone(zone) {\n const set = retention.nodesRetainedByZone.get(zone);\n set === null || set === void 0 ? void 0 : set.delete(nodeKey);\n\n if (set && set.size === 0) {\n retention.nodesRetainedByZone.delete(zone);\n }\n }\n\n if (retainedBy instanceof RetentionZone$1) {\n deleteFromZone(retainedBy);\n } else if (Array.isArray(retainedBy)) {\n for (const zone of retainedBy) {\n deleteFromZone(zone);\n }\n }\n };\n}\n\nfunction initializeNodeIfNewToStore(store, treeState, key, trigger) {\n const storeState = store.getState();\n\n if (storeState.nodeCleanupFunctions.has(key)) {\n return;\n }\n\n const node = getNode$1(key);\n const retentionCleanup = initializeRetentionForNode(store, key, node.retainedBy);\n const nodeCleanup = node.init(store, treeState, trigger);\n storeState.nodeCleanupFunctions.set(key, () => {\n nodeCleanup();\n retentionCleanup();\n });\n}\n\nfunction initializeNode(store, key, trigger) {\n initializeNodeIfNewToStore(store, store.getState().currentTree, key, trigger);\n}\n\nfunction cleanUpNode(store, key) {\n var _state$nodeCleanupFun;\n\n const state = store.getState();\n (_state$nodeCleanupFun = state.nodeCleanupFunctions.get(key)) === null || _state$nodeCleanupFun === void 0 ? void 0 : _state$nodeCleanupFun();\n state.nodeCleanupFunctions.delete(key);\n} // Get the current value loadable of a node and update the state.\n// Update dependencies and subscriptions for selectors.\n// Update saved value validation for atoms.\n\n\nfunction getNodeLoadable(store, state, key) {\n initializeNodeIfNewToStore(store, state, key, 'get');\n return getNode$1(key).get(store, state);\n} // Peek at the current value loadable for a node without any evaluation or state change\n\n\nfunction peekNodeLoadable(store, state, key) {\n return getNode$1(key).peek(store, state);\n} // Write value directly to state bypassing the Node interface as the node\n// definitions may not have been loaded yet when processing the initial snapshot.\n\n\nfunction setUnvalidatedAtomValue_DEPRECATED(state, key, newValue) {\n var _node$invalidate;\n\n const node = getNodeMaybe$1(key);\n node === null || node === void 0 ? void 0 : (_node$invalidate = node.invalidate) === null || _node$invalidate === void 0 ? void 0 : _node$invalidate.call(node, state);\n return { ...state,\n atomValues: state.atomValues.clone().delete(key),\n nonvalidatedAtoms: state.nonvalidatedAtoms.clone().set(key, newValue),\n dirtyAtoms: setByAddingToSet$1(state.dirtyAtoms, key)\n };\n} // Return the discovered dependencies and values to be written by setting\n// a node value. (Multiple values may be written due to selectors getting to\n// set upstreams; deps may be discovered because of reads in updater functions.)\n\n\nfunction setNodeValue(store, state, key, newValue) {\n const node = getNode$1(key);\n\n if (node.set == null) {\n throw new ReadOnlyRecoilValueError(`Attempt to set read-only RecoilValue: ${key}`);\n }\n\n const set = node.set; // so flow doesn't lose the above refinement.\n\n initializeNodeIfNewToStore(store, state, key, 'set');\n return set(store, state, newValue);\n}\n\nfunction peekNodeInfo(store, state, key) {\n const storeState = store.getState();\n const graph = store.getGraph(state.version);\n const type = getNode$1(key).nodeType;\n return Recoil_lazyProxy({\n type\n }, {\n // $FlowFixMe[underconstrained-implicit-instantiation]\n loadable: () => peekNodeLoadable(store, state, key),\n isActive: () => storeState.knownAtoms.has(key) || storeState.knownSelectors.has(key),\n isSet: () => type === 'selector' ? false : state.atomValues.has(key),\n isModified: () => state.dirtyAtoms.has(key),\n // Report current dependencies. If the node hasn't been evaluated, then\n // dependencies may be missing based on the current state.\n deps: () => {\n var _graph$nodeDeps$get;\n\n return recoilValuesForKeys$1((_graph$nodeDeps$get = graph.nodeDeps.get(key)) !== null && _graph$nodeDeps$get !== void 0 ? _graph$nodeDeps$get : []);\n },\n // Reports all \"current\" subscribers. Evaluating other nodes or\n // previous in-progress async evaluations may introduce new subscribers.\n subscribers: () => {\n var _storeState$nodeToCom, _storeState$nodeToCom2;\n\n return {\n nodes: recoilValuesForKeys$1(Recoil_filterIterable(getDownstreamNodes(store, state, new Set([key])), nodeKey => nodeKey !== key)),\n components: Recoil_mapIterable((_storeState$nodeToCom = (_storeState$nodeToCom2 = storeState.nodeToComponentSubscriptions.get(key)) === null || _storeState$nodeToCom2 === void 0 ? void 0 : _storeState$nodeToCom2.values()) !== null && _storeState$nodeToCom !== void 0 ? _storeState$nodeToCom : [], ([name]) => ({\n name\n }))\n };\n }\n });\n} // Find all of the recursively dependent nodes\n\n\nfunction getDownstreamNodes(store, state, keys) {\n const visitedNodes = new Set();\n const visitingNodes = Array.from(keys);\n const graph = store.getGraph(state.version);\n\n for (let key = visitingNodes.pop(); key; key = visitingNodes.pop()) {\n var _graph$nodeToNodeSubs;\n\n visitedNodes.add(key);\n const subscribedNodes = (_graph$nodeToNodeSubs = graph.nodeToNodeSubscriptions.get(key)) !== null && _graph$nodeToNodeSubs !== void 0 ? _graph$nodeToNodeSubs : emptySet;\n\n for (const downstreamNode of subscribedNodes) {\n if (!visitedNodes.has(downstreamNode)) {\n visitingNodes.push(downstreamNode);\n }\n }\n }\n\n return visitedNodes;\n}\n\nvar Recoil_FunctionalCore = {\n getNodeLoadable,\n peekNodeLoadable,\n setNodeValue,\n initializeNode,\n cleanUpNode,\n setUnvalidatedAtomValue_DEPRECATED,\n peekNodeInfo,\n getDownstreamNodes\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nlet _invalidateMemoizedSnapshot = null;\n\nfunction setInvalidateMemoizedSnapshot(invalidate) {\n _invalidateMemoizedSnapshot = invalidate;\n}\n\nfunction invalidateMemoizedSnapshot() {\n var _invalidateMemoizedSn;\n\n (_invalidateMemoizedSn = _invalidateMemoizedSnapshot) === null || _invalidateMemoizedSn === void 0 ? void 0 : _invalidateMemoizedSn();\n}\n\nvar Recoil_SnapshotCache = {\n setInvalidateMemoizedSnapshot,\n invalidateMemoizedSnapshot\n};\n\nconst {\n getDownstreamNodes: getDownstreamNodes$1,\n getNodeLoadable: getNodeLoadable$1,\n setNodeValue: setNodeValue$1\n} = Recoil_FunctionalCore;\n\nconst {\n getNextComponentID: getNextComponentID$1\n} = Recoil_Keys;\n\nconst {\n getNode: getNode$2,\n getNodeMaybe: getNodeMaybe$2\n} = Recoil_Node;\n\nconst {\n DefaultValue: DefaultValue$1\n} = Recoil_Node;\n\nconst {\n reactMode: reactMode$1\n} = Recoil_ReactMode;\n\nconst {\n AbstractRecoilValue: AbstractRecoilValue$1,\n RecoilState: RecoilState$1,\n RecoilValueReadOnly: RecoilValueReadOnly$1,\n isRecoilValue: isRecoilValue$1\n} = Recoil_RecoilValue$1;\n\nconst {\n invalidateMemoizedSnapshot: invalidateMemoizedSnapshot$1\n} = Recoil_SnapshotCache;\n\n\n\n\n\n\n\nfunction getRecoilValueAsLoadable(store, {\n key\n}, treeState = store.getState().currentTree) {\n var _storeState$nextTree, _storeState$previousT;\n\n // Reading from an older tree can cause bugs because the dependencies that we\n // discover during the read are lost.\n const storeState = store.getState();\n\n if (!(treeState.version === storeState.currentTree.version || treeState.version === ((_storeState$nextTree = storeState.nextTree) === null || _storeState$nextTree === void 0 ? void 0 : _storeState$nextTree.version) || treeState.version === ((_storeState$previousT = storeState.previousTree) === null || _storeState$previousT === void 0 ? void 0 : _storeState$previousT.version))) {\n Recoil_recoverableViolation('Tried to read from a discarded tree');\n }\n\n const loadable = getNodeLoadable$1(store, treeState, key);\n\n if (loadable.state === 'loading') {\n loadable.contents.catch(() => {\n /**\n * HACK: intercept thrown error here to prevent an uncaught promise exception. Ideally this would happen closer to selector\n * execution (perhaps introducing a new ERROR class to be resolved by async selectors that are in an error state)\n */\n return;\n });\n }\n\n return loadable;\n}\n\nfunction applyAtomValueWrites(atomValues, writes) {\n const result = atomValues.clone();\n writes.forEach((v, k) => {\n if (v.state === 'hasValue' && v.contents instanceof DefaultValue$1) {\n result.delete(k);\n } else {\n result.set(k, v);\n }\n });\n return result;\n}\n\nfunction valueFromValueOrUpdater(store, state, {\n key\n}, valueOrUpdater) {\n if (typeof valueOrUpdater === 'function') {\n // Updater form: pass in the current value. Throw if the current value\n // is unavailable (namely when updating an async selector that's\n // pending or errored):\n const current = getNodeLoadable$1(store, state, key);\n\n if (current.state === 'loading') {\n const msg = `Tried to set atom or selector \"${key}\" using an updater function while the current state is pending, this is not currently supported.`;\n Recoil_recoverableViolation(msg);\n throw Recoil_err(msg);\n } else if (current.state === 'hasError') {\n throw current.contents;\n } // T itself may be a function, so our refinement is not sufficient:\n\n\n return valueOrUpdater(current.contents); // flowlint-line unclear-type:off\n } else {\n return valueOrUpdater;\n }\n}\n\nfunction applyAction(store, state, action) {\n if (action.type === 'set') {\n const {\n recoilValue,\n valueOrUpdater\n } = action;\n const newValue = valueFromValueOrUpdater(store, state, recoilValue, valueOrUpdater);\n const writes = setNodeValue$1(store, state, recoilValue.key, newValue);\n\n for (const [key, loadable] of writes.entries()) {\n writeLoadableToTreeState(state, key, loadable);\n }\n } else if (action.type === 'setLoadable') {\n const {\n recoilValue: {\n key\n },\n loadable\n } = action;\n writeLoadableToTreeState(state, key, loadable);\n } else if (action.type === 'markModified') {\n const {\n recoilValue: {\n key\n }\n } = action;\n state.dirtyAtoms.add(key);\n } else if (action.type === 'setUnvalidated') {\n var _node$invalidate;\n\n // Write value directly to state bypassing the Node interface as the node\n // definitions may not have been loaded yet when processing the initial snapshot.\n const {\n recoilValue: {\n key\n },\n unvalidatedValue\n } = action;\n const node = getNodeMaybe$2(key);\n node === null || node === void 0 ? void 0 : (_node$invalidate = node.invalidate) === null || _node$invalidate === void 0 ? void 0 : _node$invalidate.call(node, state);\n state.atomValues.delete(key);\n state.nonvalidatedAtoms.set(key, unvalidatedValue);\n state.dirtyAtoms.add(key);\n } else {\n Recoil_recoverableViolation(`Unknown action ${action.type}`);\n }\n}\n\nfunction writeLoadableToTreeState(state, key, loadable) {\n if (loadable.state === 'hasValue' && loadable.contents instanceof DefaultValue$1) {\n state.atomValues.delete(key);\n } else {\n state.atomValues.set(key, loadable);\n }\n\n state.dirtyAtoms.add(key);\n state.nonvalidatedAtoms.delete(key);\n}\n\nfunction applyActionsToStore(store, actions) {\n store.replaceState(state => {\n const newState = copyTreeState(state);\n\n for (const action of actions) {\n applyAction(store, newState, action);\n }\n\n invalidateDownstreams(store, newState);\n invalidateMemoizedSnapshot$1();\n return newState;\n });\n}\n\nfunction queueOrPerformStateUpdate(store, action) {\n if (batchStack.length) {\n const actionsByStore = batchStack[batchStack.length - 1];\n let actions = actionsByStore.get(store);\n\n if (!actions) {\n actionsByStore.set(store, actions = []);\n }\n\n actions.push(action);\n } else {\n applyActionsToStore(store, [action]);\n }\n}\n\nconst batchStack = [];\n\nfunction batchStart() {\n const actionsByStore = new Map();\n batchStack.push(actionsByStore);\n return () => {\n for (const [store, actions] of actionsByStore) {\n applyActionsToStore(store, actions);\n }\n\n const popped = batchStack.pop();\n\n if (popped !== actionsByStore) {\n Recoil_recoverableViolation('Incorrect order of batch popping');\n }\n };\n}\n\nfunction copyTreeState(state) {\n return { ...state,\n atomValues: state.atomValues.clone(),\n nonvalidatedAtoms: state.nonvalidatedAtoms.clone(),\n dirtyAtoms: new Set(state.dirtyAtoms)\n };\n}\n\nfunction invalidateDownstreams(store, state) {\n // Inform any nodes that were changed or downstream of changes so that they\n // can clear out any caches as needed due to the update:\n const downstreams = getDownstreamNodes$1(store, state, state.dirtyAtoms);\n\n for (const key of downstreams) {\n var _getNodeMaybe, _getNodeMaybe$invalid;\n\n (_getNodeMaybe = getNodeMaybe$2(key)) === null || _getNodeMaybe === void 0 ? void 0 : (_getNodeMaybe$invalid = _getNodeMaybe.invalidate) === null || _getNodeMaybe$invalid === void 0 ? void 0 : _getNodeMaybe$invalid.call(_getNodeMaybe, state);\n }\n}\n\nfunction setRecoilValue(store, recoilValue, valueOrUpdater) {\n queueOrPerformStateUpdate(store, {\n type: 'set',\n recoilValue,\n valueOrUpdater\n });\n}\n\nfunction setRecoilValueLoadable(store, recoilValue, loadable) {\n if (loadable instanceof DefaultValue$1) {\n return setRecoilValue(store, recoilValue, loadable);\n }\n\n queueOrPerformStateUpdate(store, {\n type: 'setLoadable',\n recoilValue,\n loadable: loadable\n });\n}\n\nfunction markRecoilValueModified(store, recoilValue) {\n queueOrPerformStateUpdate(store, {\n type: 'markModified',\n recoilValue\n });\n}\n\nfunction setUnvalidatedRecoilValue(store, recoilValue, unvalidatedValue) {\n queueOrPerformStateUpdate(store, {\n type: 'setUnvalidated',\n recoilValue,\n unvalidatedValue\n });\n}\n\nfunction subscribeToRecoilValue(store, {\n key\n}, callback, componentDebugName = null) {\n const subID = getNextComponentID$1();\n const storeState = store.getState();\n\n if (!storeState.nodeToComponentSubscriptions.has(key)) {\n storeState.nodeToComponentSubscriptions.set(key, new Map());\n }\n\n Recoil_nullthrows(storeState.nodeToComponentSubscriptions.get(key)).set(subID, [componentDebugName !== null && componentDebugName !== void 0 ? componentDebugName : '', callback]); // Handle the case that, during the same tick that we are subscribing, an atom\n // has been updated by some effect handler. Otherwise we will miss the update.\n\n const mode = reactMode$1();\n\n if (mode.early && (mode.mode === 'LEGACY' || mode.mode === 'MUTABLE_SOURCE')) {\n const nextTree = store.getState().nextTree;\n\n if (nextTree && nextTree.dirtyAtoms.has(key)) {\n callback(nextTree);\n }\n }\n\n return {\n release: () => {\n const releaseStoreState = store.getState();\n const subs = releaseStoreState.nodeToComponentSubscriptions.get(key);\n\n if (subs === undefined || !subs.has(subID)) {\n Recoil_recoverableViolation(`Subscription missing at release time for atom ${key}. This is a bug in Recoil.`);\n return;\n }\n\n subs.delete(subID);\n\n if (subs.size === 0) {\n releaseStoreState.nodeToComponentSubscriptions.delete(key);\n }\n }\n };\n}\n\nfunction refreshRecoilValue(store, recoilValue) {\n var _node$clearCache;\n\n const {\n currentTree\n } = store.getState();\n const node = getNode$2(recoilValue.key);\n (_node$clearCache = node.clearCache) === null || _node$clearCache === void 0 ? void 0 : _node$clearCache.call(node, store, currentTree);\n}\n\nvar Recoil_RecoilValueInterface = {\n RecoilValueReadOnly: RecoilValueReadOnly$1,\n AbstractRecoilValue: AbstractRecoilValue$1,\n RecoilState: RecoilState$1,\n getRecoilValueAsLoadable,\n setRecoilValue,\n setRecoilValueLoadable,\n markRecoilValueModified,\n setUnvalidatedRecoilValue,\n subscribeToRecoilValue,\n isRecoilValue: isRecoilValue$1,\n applyAtomValueWrites,\n // TODO Remove export when deprecating initialStoreState_DEPRECATED in RecoilRoot\n batchStart,\n writeLoadableToTreeState,\n invalidateDownstreams,\n copyTreeState,\n refreshRecoilValue\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * The someSet() method tests whether some elements in the given Set pass the\n * test implemented by the provided function.\n */\n\nfunction someSet(set, callback, context) {\n const iterator = set.entries();\n let current = iterator.next();\n\n while (!current.done) {\n const entry = current.value;\n\n if (callback.call(context, entry[1], entry[0], set)) {\n return true;\n }\n\n current = iterator.next();\n }\n\n return false;\n}\n\nvar Recoil_someSet = someSet;\n\nconst {\n cleanUpNode: cleanUpNode$1\n} = Recoil_FunctionalCore;\n\nconst {\n deleteNodeConfigIfPossible: deleteNodeConfigIfPossible$1,\n getNode: getNode$3\n} = Recoil_Node;\n\nconst {\n RetentionZone: RetentionZone$2\n} = Recoil_RetentionZone;\n\n\n\n\n\n\n\n // Components that aren't mounted after suspending for this long will be assumed\n// to be discarded and their resources released.\n\n\nconst SUSPENSE_TIMEOUT_MS = 120000;\nconst emptySet$1 = new Set();\n\nfunction releaseRetainablesNowOnCurrentTree(store, retainables) {\n const storeState = store.getState();\n const treeState = storeState.currentTree;\n\n if (storeState.nextTree) {\n Recoil_recoverableViolation('releaseNodesNowOnCurrentTree should only be called at the end of a batch');\n return; // leak memory rather than erase something that's about to be used.\n }\n\n const nodes = new Set();\n\n for (const r of retainables) {\n if (r instanceof RetentionZone$2) {\n for (const n of nodesRetainedByZone(storeState, r)) {\n nodes.add(n);\n }\n } else {\n nodes.add(r);\n }\n }\n\n const releasableNodes = findReleasableNodes(store, nodes);\n\n for (const node of releasableNodes) {\n releaseNode(store, treeState, node);\n }\n}\n\nfunction findReleasableNodes(store, searchFromNodes) {\n const storeState = store.getState();\n const treeState = storeState.currentTree;\n const graph = store.getGraph(treeState.version);\n const releasableNodes = new Set(); // mutated to collect answer\n\n const nonReleasableNodes = new Set();\n findReleasableNodesInner(searchFromNodes);\n return releasableNodes;\n\n function findReleasableNodesInner(searchFromNodes) {\n const releasableNodesFoundThisIteration = new Set();\n const downstreams = getDownstreamNodesInTopologicalOrder(store, treeState, searchFromNodes, releasableNodes, // don't descend into these\n nonReleasableNodes // don't descend into these\n ); // Find which of the downstream nodes are releasable and which are not:\n\n for (const node of downstreams) {\n var _storeState$retention;\n\n // Not releasable if configured to be retained forever:\n if (getNode$3(node).retainedBy === 'recoilRoot') {\n nonReleasableNodes.add(node);\n continue;\n } // Not releasable if retained directly by a component:\n\n\n if (((_storeState$retention = storeState.retention.referenceCounts.get(node)) !== null && _storeState$retention !== void 0 ? _storeState$retention : 0) > 0) {\n nonReleasableNodes.add(node);\n continue;\n } // Not releasable if retained by a zone:\n\n\n if (zonesThatCouldRetainNode(node).some(z => storeState.retention.referenceCounts.get(z))) {\n nonReleasableNodes.add(node);\n continue;\n } // Not releasable if it has a non-releasable child (which will already be in\n // nonReleasableNodes because we are going in topological order):\n\n\n const nodeChildren = graph.nodeToNodeSubscriptions.get(node);\n\n if (nodeChildren && Recoil_someSet(nodeChildren, child => nonReleasableNodes.has(child))) {\n nonReleasableNodes.add(node);\n continue;\n }\n\n releasableNodes.add(node);\n releasableNodesFoundThisIteration.add(node);\n } // If we found any releasable nodes, we need to walk UP from those nodes to\n // find whether their parents can now be released as well:\n\n\n const parents = new Set();\n\n for (const node of releasableNodesFoundThisIteration) {\n for (const parent of (_graph$nodeDeps$get = graph.nodeDeps.get(node)) !== null && _graph$nodeDeps$get !== void 0 ? _graph$nodeDeps$get : emptySet$1) {\n var _graph$nodeDeps$get;\n\n if (!releasableNodes.has(parent)) {\n parents.add(parent);\n }\n }\n }\n\n if (parents.size) {\n findReleasableNodesInner(parents);\n }\n }\n} // Children before parents\n\n\nfunction getDownstreamNodesInTopologicalOrder(store, treeState, nodes, // Mutable set is destroyed in place\ndoNotDescendInto1, doNotDescendInto2) {\n const graph = store.getGraph(treeState.version);\n const answer = [];\n const visited = new Set();\n\n while (nodes.size > 0) {\n visit(Recoil_nullthrows(nodes.values().next().value));\n }\n\n return answer;\n\n function visit(node) {\n if (doNotDescendInto1.has(node) || doNotDescendInto2.has(node)) {\n nodes.delete(node);\n return;\n }\n\n if (visited.has(node)) {\n return;\n }\n\n const children = graph.nodeToNodeSubscriptions.get(node);\n\n if (children) {\n for (const child of children) {\n visit(child);\n }\n }\n\n visited.add(node);\n nodes.delete(node);\n answer.push(node);\n }\n}\n\nfunction releaseNode(store, treeState, node) {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n } // Atom effects, in-closure caches, etc.:\n\n\n cleanUpNode$1(store, node); // Delete from store state:\n\n const storeState = store.getState();\n storeState.knownAtoms.delete(node);\n storeState.knownSelectors.delete(node);\n storeState.nodeTransactionSubscriptions.delete(node);\n storeState.retention.referenceCounts.delete(node);\n const zones = zonesThatCouldRetainNode(node);\n\n for (const zone of zones) {\n var _storeState$retention2;\n\n (_storeState$retention2 = storeState.retention.nodesRetainedByZone.get(zone)) === null || _storeState$retention2 === void 0 ? void 0 : _storeState$retention2.delete(node);\n } // Note that we DO NOT delete from nodeToComponentSubscriptions because this\n // already happens when the last component that was retaining the node unmounts,\n // and this could happen either before or after that.\n // Delete from TreeState and dep graph:\n\n\n treeState.atomValues.delete(node);\n treeState.dirtyAtoms.delete(node);\n treeState.nonvalidatedAtoms.delete(node);\n const graph = storeState.graphsByVersion.get(treeState.version);\n\n if (graph) {\n const deps = graph.nodeDeps.get(node);\n\n if (deps !== undefined) {\n graph.nodeDeps.delete(node);\n\n for (const dep of deps) {\n var _graph$nodeToNodeSubs;\n\n (_graph$nodeToNodeSubs = graph.nodeToNodeSubscriptions.get(dep)) === null || _graph$nodeToNodeSubs === void 0 ? void 0 : _graph$nodeToNodeSubs.delete(node);\n }\n } // No need to delete sub's deps as there should be no subs at this point.\n // But an invariant would require deleting nodes in topological order.\n\n\n graph.nodeToNodeSubscriptions.delete(node);\n } // Node config (for family members only as their configs can be recreated, and\n // only if they are not retained within any other Stores):\n\n\n deleteNodeConfigIfPossible$1(node);\n}\n\nfunction nodesRetainedByZone(storeState, zone) {\n var _storeState$retention3;\n\n return (_storeState$retention3 = storeState.retention.nodesRetainedByZone.get(zone)) !== null && _storeState$retention3 !== void 0 ? _storeState$retention3 : emptySet$1;\n}\n\nfunction zonesThatCouldRetainNode(node) {\n const retainedBy = getNode$3(node).retainedBy;\n\n if (retainedBy === undefined || retainedBy === 'components' || retainedBy === 'recoilRoot') {\n return [];\n } else if (retainedBy instanceof RetentionZone$2) {\n return [retainedBy];\n } else {\n return retainedBy; // it's an array of zones\n }\n}\n\nfunction scheduleOrPerformPossibleReleaseOfRetainable(store, retainable) {\n const state = store.getState();\n\n if (state.nextTree) {\n state.retention.retainablesToCheckForRelease.add(retainable);\n } else {\n releaseRetainablesNowOnCurrentTree(store, new Set([retainable]));\n }\n}\n\nfunction updateRetainCount(store, retainable, delta) {\n var _map$get;\n\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n const map = store.getState().retention.referenceCounts;\n const newCount = ((_map$get = map.get(retainable)) !== null && _map$get !== void 0 ? _map$get : 0) + delta;\n\n if (newCount === 0) {\n updateRetainCountToZero(store, retainable);\n } else {\n map.set(retainable, newCount);\n }\n}\n\nfunction updateRetainCountToZero(store, retainable) {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n const map = store.getState().retention.referenceCounts;\n map.delete(retainable);\n scheduleOrPerformPossibleReleaseOfRetainable(store, retainable);\n}\n\nfunction releaseScheduledRetainablesNow(store) {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n const state = store.getState();\n releaseRetainablesNowOnCurrentTree(store, state.retention.retainablesToCheckForRelease);\n state.retention.retainablesToCheckForRelease.clear();\n}\n\nfunction retainedByOptionWithDefault(r) {\n // The default will change from 'recoilRoot' to 'components' in the future.\n return r === undefined ? 'recoilRoot' : r;\n}\n\nvar Recoil_Retention = {\n SUSPENSE_TIMEOUT_MS,\n updateRetainCount,\n updateRetainCountToZero,\n releaseScheduledRetainablesNow,\n retainedByOptionWithDefault\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This is to export esstiential functions from react-dom\n * for our web build\n *\n * \n * @format\n * @oncall recoil\n */\nconst {\n unstable_batchedUpdates\n} = reactDom;\n\nvar ReactBatchedUpdates = {\n unstable_batchedUpdates\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This is to export esstiential functions from react-dom\n * for our web build\n *\n * \n * @format\n * @oncall recoil\n */\n// @fb-only: const {unstable_batchedUpdates} = require('ReactDOMComet');\n// prettier-ignore\nconst {\n unstable_batchedUpdates: unstable_batchedUpdates$1\n} = ReactBatchedUpdates; // @oss-only\n\n\nvar Recoil_ReactBatchedUpdates = {\n unstable_batchedUpdates: unstable_batchedUpdates$1\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\nconst {\n batchStart: batchStart$1\n} = Recoil_RecoilValueInterface;\n\nconst {\n unstable_batchedUpdates: unstable_batchedUpdates$2\n} = Recoil_ReactBatchedUpdates; // flowlint-next-line unclear-type:off\n\n\n/*\n * During SSR, unstable_batchedUpdates may be undefined so this\n * falls back to a basic function that executes the batch\n */\nlet batcher = unstable_batchedUpdates$2 || (batchFn => batchFn());\n/**\n * Sets the provided batcher function as the batcher function used by Recoil.\n *\n * Set the batcher to a custom batcher for your renderer,\n * if you use a renderer other than React DOM or React Native.\n */\n\n\nconst setBatcher = newBatcher => {\n batcher = newBatcher;\n};\n/**\n * Returns the current batcher function.\n */\n\n\nconst getBatcher = () => batcher;\n/**\n * Calls the current batcher function and passes the\n * provided callback function.\n */\n\n\nconst batchUpdates = callback => {\n batcher(() => {\n let batchEnd = () => undefined;\n\n try {\n batchEnd = batchStart$1();\n callback();\n } finally {\n batchEnd();\n }\n });\n};\n\nvar Recoil_Batching = {\n getBatcher,\n setBatcher,\n batchUpdates\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Combines multiple Iterables into a single Iterable.\n * Traverses the input Iterables in the order provided and maintains the order\n * of their elements.\n *\n * Example:\n * ```\n * const r = Array.from(concatIterables(['a', 'b'], ['c'], ['d', 'e', 'f']));\n * r == ['a', 'b', 'c', 'd', 'e', 'f'];\n * ```\n */\n\nfunction* concatIterables(iters) {\n for (const iter of iters) {\n for (const val of iter) {\n yield val;\n }\n }\n}\n\nvar Recoil_concatIterables = concatIterables;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/* eslint-disable fb-www/typeof-undefined */\n\nconst isSSR = // $FlowFixMe(site=recoil) Window does not have a FlowType definition https://github.com/facebook/flow/issues/6709\ntypeof Window === 'undefined' || typeof window === 'undefined';\n/* eslint-enable fb-www/typeof-undefined */\n\nconst isWindow = value => !isSSR && ( // $FlowFixMe(site=recoil) Window does not have a FlowType definition https://github.com/facebook/flow/issues/6709\nvalue === window || value instanceof Window);\n\nconst isReactNative = typeof navigator !== 'undefined' && navigator.product === 'ReactNative'; // eslint-disable-line fb-www/typeof-undefined\n\nvar Recoil_Environment = {\n isSSR,\n isReactNative,\n isWindow\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Caches a function's results based on the key returned by the passed\n * hashFunction.\n */\n\nfunction memoizeWithArgsHash(fn, hashFunction) {\n let cache;\n return (...args) => {\n if (!cache) {\n cache = {};\n }\n\n const key = hashFunction(...args);\n\n if (!Object.hasOwnProperty.call(cache, key)) {\n cache[key] = fn(...args);\n }\n\n return cache[key];\n };\n}\n/**\n * Caches a function's results based on a comparison of the arguments.\n * Only caches the last return of the function.\n * Defaults to reference equality\n */\n\n\nfunction memoizeOneWithArgsHash(fn, hashFunction) {\n let lastKey;\n let lastResult; // breaking cache when arguments change\n\n return (...args) => {\n const key = hashFunction(...args);\n\n if (lastKey === key) {\n return lastResult;\n }\n\n lastKey = key;\n lastResult = fn(...args);\n return lastResult;\n };\n}\n/**\n * Caches a function's results based on a comparison of the arguments.\n * Only caches the last return of the function.\n * Defaults to reference equality\n */\n\n\nfunction memoizeOneWithArgsHashAndInvalidation(fn, hashFunction) {\n let lastKey;\n let lastResult; // breaking cache when arguments change\n\n const memoizedFn = (...args) => {\n const key = hashFunction(...args);\n\n if (lastKey === key) {\n return lastResult;\n }\n\n lastKey = key;\n lastResult = fn(...args);\n return lastResult;\n };\n\n const invalidate = () => {\n lastKey = null;\n };\n\n return [memoizedFn, invalidate];\n}\n\nvar Recoil_Memoize = {\n memoizeWithArgsHash,\n memoizeOneWithArgsHash,\n memoizeOneWithArgsHashAndInvalidation\n};\n\nconst {\n batchUpdates: batchUpdates$1\n} = Recoil_Batching;\n\nconst {\n initializeNode: initializeNode$1,\n peekNodeInfo: peekNodeInfo$1\n} = Recoil_FunctionalCore;\n\nconst {\n graph: graph$1\n} = Recoil_Graph;\n\nconst {\n getNextStoreID: getNextStoreID$1\n} = Recoil_Keys;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$1,\n recoilValues: recoilValues$1,\n recoilValuesForKeys: recoilValuesForKeys$2\n} = Recoil_Node;\n\nconst {\n AbstractRecoilValue: AbstractRecoilValue$2,\n getRecoilValueAsLoadable: getRecoilValueAsLoadable$1,\n setRecoilValue: setRecoilValue$1,\n setUnvalidatedRecoilValue: setUnvalidatedRecoilValue$1\n} = Recoil_RecoilValueInterface;\n\nconst {\n updateRetainCount: updateRetainCount$1\n} = Recoil_Retention;\n\nconst {\n setInvalidateMemoizedSnapshot: setInvalidateMemoizedSnapshot$1\n} = Recoil_SnapshotCache;\n\nconst {\n getNextTreeStateVersion: getNextTreeStateVersion$2,\n makeEmptyStoreState: makeEmptyStoreState$1\n} = Recoil_State;\n\n\n\nconst {\n isSSR: isSSR$1\n} = Recoil_Environment;\n\n\n\n\n\n\n\n\n\nconst {\n memoizeOneWithArgsHashAndInvalidation: memoizeOneWithArgsHashAndInvalidation$1\n} = Recoil_Memoize;\n\n\n\n // Opaque at this surface because it's part of the public API from here.\n\n\nconst retainWarning = `\nRecoil Snapshots only last for the duration of the callback they are provided to. To keep a Snapshot longer, do this:\n\n const release = snapshot.retain();\n try {\n await doSomethingWithSnapshot(snapshot);\n } finally {\n release();\n }\n\nThis is currently a DEV-only warning but will become a thrown exception in the next release of Recoil.\n`; // A \"Snapshot\" is \"read-only\" and captures a specific set of values of atoms.\n// However, the data-flow-graph and selector values may evolve as selector\n// evaluation functions are executed and async selectors resolve.\n\nclass Snapshot {\n // eslint-disable-next-line fb-www/no-uninitialized-properties\n constructor(storeState, parentStoreID) {\n _defineProperty(this, \"_store\", void 0);\n\n _defineProperty(this, \"_refCount\", 1);\n\n _defineProperty(this, \"getLoadable\", recoilValue => {\n this.checkRefCount_INTERNAL();\n return getRecoilValueAsLoadable$1(this._store, recoilValue);\n });\n\n _defineProperty(this, \"getPromise\", recoilValue => {\n this.checkRefCount_INTERNAL();\n return this.getLoadable(recoilValue).toPromise();\n });\n\n _defineProperty(this, \"getNodes_UNSTABLE\", opt => {\n this.checkRefCount_INTERNAL(); // TODO Deal with modified selectors\n\n if ((opt === null || opt === void 0 ? void 0 : opt.isModified) === true) {\n if ((opt === null || opt === void 0 ? void 0 : opt.isInitialized) === false) {\n return [];\n }\n\n const state = this._store.getState().currentTree;\n\n return recoilValuesForKeys$2(state.dirtyAtoms);\n }\n\n const knownAtoms = this._store.getState().knownAtoms;\n\n const knownSelectors = this._store.getState().knownSelectors;\n\n return (opt === null || opt === void 0 ? void 0 : opt.isInitialized) == null ? recoilValues$1.values() : opt.isInitialized === true ? recoilValuesForKeys$2(Recoil_concatIterables([knownAtoms, knownSelectors])) : Recoil_filterIterable(recoilValues$1.values(), ({\n key\n }) => !knownAtoms.has(key) && !knownSelectors.has(key));\n });\n\n _defineProperty(this, \"getInfo_UNSTABLE\", ({\n key\n }) => {\n this.checkRefCount_INTERNAL();\n return peekNodeInfo$1(this._store, this._store.getState().currentTree, key);\n });\n\n _defineProperty(this, \"map\", mapper => {\n this.checkRefCount_INTERNAL();\n const mutableSnapshot = new MutableSnapshot(this, batchUpdates$1);\n mapper(mutableSnapshot); // if removing batchUpdates from `set` add it here\n\n return mutableSnapshot;\n });\n\n _defineProperty(this, \"asyncMap\", async mapper => {\n this.checkRefCount_INTERNAL();\n const mutableSnapshot = new MutableSnapshot(this, batchUpdates$1);\n mutableSnapshot.retain(); // Retain new snapshot during async mapper\n\n await mapper(mutableSnapshot); // Continue to retain the new snapshot for the user, but auto-release it\n // after the next tick, the same as a new synchronous snapshot.\n\n mutableSnapshot.autoRelease_INTERNAL();\n return mutableSnapshot;\n });\n\n this._store = {\n storeID: getNextStoreID$1(),\n parentStoreID,\n getState: () => storeState,\n replaceState: replacer => {\n // no batching, so nextTree is never active\n storeState.currentTree = replacer(storeState.currentTree);\n },\n getGraph: version => {\n const graphs = storeState.graphsByVersion;\n\n if (graphs.has(version)) {\n return Recoil_nullthrows(graphs.get(version));\n }\n\n const newGraph = graph$1();\n graphs.set(version, newGraph);\n return newGraph;\n },\n subscribeToTransactions: () => ({\n release: () => {}\n }),\n addTransactionMetadata: () => {\n throw Recoil_err('Cannot subscribe to Snapshots');\n }\n }; // Initialize any nodes that are live in the parent store (primarily so that\n // this snapshot gets counted towards the node's live stores count).\n // TODO Optimize this when cloning snapshots for callbacks\n\n for (const nodeKey of this._store.getState().knownAtoms) {\n initializeNode$1(this._store, nodeKey, 'get');\n updateRetainCount$1(this._store, nodeKey, 1);\n }\n\n this.autoRelease_INTERNAL();\n }\n\n retain() {\n if (this._refCount <= 0) {\n if (process.env.NODE_ENV !== \"production\") {\n throw Recoil_err('Snapshot has already been released.');\n } else {\n Recoil_recoverableViolation('Attempt to retain() Snapshot that was already released.');\n }\n }\n\n this._refCount++;\n let released = false;\n return () => {\n if (!released) {\n released = true;\n\n this._release();\n }\n };\n }\n /**\n * Release the snapshot on the next tick. This means the snapshot is retained\n * during the execution of the current function using it.\n */\n\n\n autoRelease_INTERNAL() {\n if (!isSSR$1) {\n // Use timeout of 10 to workaround Firefox issue: https://github.com/facebookexperimental/Recoil/issues/1936\n window.setTimeout(() => this._release(), 10);\n }\n }\n\n _release() {\n this._refCount--;\n\n if (this._refCount === 0) {\n this._store.getState().nodeCleanupFunctions.forEach(cleanup => cleanup());\n\n this._store.getState().nodeCleanupFunctions.clear();\n\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n } // Temporarily nerfing this to allow us to find broken call sites without\n // actually breaking anybody yet.\n // for (const k of this._store.getState().knownAtoms) {\n // updateRetainCountToZero(this._store, k);\n // }\n\n } else if (this._refCount < 0) {\n if (process.env.NODE_ENV !== \"production\") {\n Recoil_recoverableViolation('Snapshot released an extra time.');\n }\n }\n }\n\n isRetained() {\n return this._refCount > 0;\n }\n\n checkRefCount_INTERNAL() {\n if (Recoil_gkx('recoil_memory_managament_2020') && this._refCount <= 0) {\n if (process.env.NODE_ENV !== \"production\") {\n Recoil_recoverableViolation(retainWarning);\n } // What we will ship later:\n // throw err(retainWarning);\n\n }\n }\n\n getStore_INTERNAL() {\n this.checkRefCount_INTERNAL();\n return this._store;\n }\n\n getID() {\n this.checkRefCount_INTERNAL();\n return this._store.getState().currentTree.stateID;\n }\n\n getStoreID() {\n this.checkRefCount_INTERNAL();\n return this._store.storeID;\n } // We want to allow the methods to be destructured and used as accessors\n\n /* eslint-disable fb-www/extra-arrow-initializer */\n\n /* eslint-enable fb-www/extra-arrow-initializer */\n\n\n}\n\nfunction cloneStoreState(store, treeState, bumpVersion = false) {\n const storeState = store.getState();\n const version = bumpVersion ? getNextTreeStateVersion$2() : treeState.version;\n return {\n // Always clone the TreeState to isolate stores from accidental mutations.\n // For example, reading a selector from a cloned snapshot shouldn't cache\n // in the original treestate which may cause the original to skip\n // initialization of upstream atoms.\n currentTree: {\n // TODO snapshots shouldn't really have versions because a new version number\n // is always assigned when the snapshot is gone to.\n version: bumpVersion ? version : treeState.version,\n stateID: bumpVersion ? version : treeState.stateID,\n transactionMetadata: { ...treeState.transactionMetadata\n },\n dirtyAtoms: new Set(treeState.dirtyAtoms),\n atomValues: treeState.atomValues.clone(),\n nonvalidatedAtoms: treeState.nonvalidatedAtoms.clone()\n },\n commitDepth: 0,\n nextTree: null,\n previousTree: null,\n knownAtoms: new Set(storeState.knownAtoms),\n // FIXME here's a copy\n knownSelectors: new Set(storeState.knownSelectors),\n // FIXME here's a copy\n transactionSubscriptions: new Map(),\n nodeTransactionSubscriptions: new Map(),\n nodeToComponentSubscriptions: new Map(),\n queuedComponentCallbacks_DEPRECATED: [],\n suspendedComponentResolvers: new Set(),\n graphsByVersion: new Map().set(version, store.getGraph(treeState.version)),\n retention: {\n referenceCounts: new Map(),\n nodesRetainedByZone: new Map(),\n retainablesToCheckForRelease: new Set()\n },\n // FIXME here's a copy\n // Create blank cleanup handlers for atoms so snapshots don't re-run\n // atom effects.\n nodeCleanupFunctions: new Map(Recoil_mapIterable(storeState.nodeCleanupFunctions.entries(), ([key]) => [key, () => {}]))\n };\n} // Factory to build a fresh snapshot\n\n\nfunction freshSnapshot(initializeState) {\n const snapshot = new Snapshot(makeEmptyStoreState$1());\n return initializeState != null ? snapshot.map(initializeState) : snapshot;\n} // Factory to clone a snapshot state\n\n\nconst [memoizedCloneSnapshot, invalidateMemoizedSnapshot$2] = memoizeOneWithArgsHashAndInvalidation$1( // $FlowFixMe[missing-local-annot]\n(store, version) => {\n var _storeState$nextTree;\n\n const storeState = store.getState();\n const treeState = version === 'latest' ? (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree : Recoil_nullthrows(storeState.previousTree);\n return new Snapshot(cloneStoreState(store, treeState), store.storeID);\n}, (store, version) => {\n var _store$getState$nextT, _store$getState$previ;\n\n return String(version) + String(store.storeID) + String((_store$getState$nextT = store.getState().nextTree) === null || _store$getState$nextT === void 0 ? void 0 : _store$getState$nextT.version) + String(store.getState().currentTree.version) + String((_store$getState$previ = store.getState().previousTree) === null || _store$getState$previ === void 0 ? void 0 : _store$getState$previ.version);\n}); // Avoid circular dependencies\n\nsetInvalidateMemoizedSnapshot$1(invalidateMemoizedSnapshot$2);\n\nfunction cloneSnapshot(store, version = 'latest') {\n const snapshot = memoizedCloneSnapshot(store, version);\n\n if (!snapshot.isRetained()) {\n invalidateMemoizedSnapshot$2();\n return memoizedCloneSnapshot(store, version);\n }\n\n return snapshot;\n}\n\nclass MutableSnapshot extends Snapshot {\n constructor(snapshot, batch) {\n super(cloneStoreState(snapshot.getStore_INTERNAL(), snapshot.getStore_INTERNAL().getState().currentTree, true), snapshot.getStoreID());\n\n _defineProperty(this, \"_batch\", void 0);\n\n _defineProperty(this, \"set\", (recoilState, newValueOrUpdater) => {\n this.checkRefCount_INTERNAL();\n const store = this.getStore_INTERNAL(); // This batchUpdates ensures this `set` is applied immediately and you can\n // read the written value after calling `set`. I would like to remove this\n // behavior and only batch in `Snapshot.map`, but this would be a breaking\n // change potentially.\n\n this._batch(() => {\n updateRetainCount$1(store, recoilState.key, 1);\n setRecoilValue$1(this.getStore_INTERNAL(), recoilState, newValueOrUpdater);\n });\n });\n\n _defineProperty(this, \"reset\", recoilState => {\n this.checkRefCount_INTERNAL();\n const store = this.getStore_INTERNAL(); // See note at `set` about batched updates.\n\n this._batch(() => {\n updateRetainCount$1(store, recoilState.key, 1);\n setRecoilValue$1(this.getStore_INTERNAL(), recoilState, DEFAULT_VALUE$1);\n });\n });\n\n _defineProperty(this, \"setUnvalidatedAtomValues_DEPRECATED\", values => {\n this.checkRefCount_INTERNAL();\n const store = this.getStore_INTERNAL(); // See note at `set` about batched updates.\n\n batchUpdates$1(() => {\n for (const [k, v] of values.entries()) {\n updateRetainCount$1(store, k, 1);\n setUnvalidatedRecoilValue$1(store, new AbstractRecoilValue$2(k), v);\n }\n });\n });\n\n this._batch = batch;\n }\n\n}\n\nvar Recoil_Snapshot = {\n Snapshot,\n MutableSnapshot,\n freshSnapshot,\n cloneSnapshot\n};\n\nvar Recoil_Snapshot_1 = Recoil_Snapshot.Snapshot;\nvar Recoil_Snapshot_2 = Recoil_Snapshot.MutableSnapshot;\nvar Recoil_Snapshot_3 = Recoil_Snapshot.freshSnapshot;\nvar Recoil_Snapshot_4 = Recoil_Snapshot.cloneSnapshot;\n\nvar Recoil_Snapshot$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n Snapshot: Recoil_Snapshot_1,\n MutableSnapshot: Recoil_Snapshot_2,\n freshSnapshot: Recoil_Snapshot_3,\n cloneSnapshot: Recoil_Snapshot_4\n});\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction unionSets(...sets) {\n const result = new Set();\n\n for (const set of sets) {\n for (const value of set) {\n result.add(value);\n }\n }\n\n return result;\n}\n\nvar Recoil_unionSets = unionSets;\n\nconst {\n useRef\n} = react;\n/**\n * The same as `useRef()` except that if a function is specified then it will\n * call that function to get the value to initialize the reference with.\n * This is similar to how `useState()` behaves when given a function. It allows\n * the user to avoid generating the initial value for subsequent renders.\n * The tradeoff is that to set the reference to a function itself you need to\n * nest it: useRefInitOnce(() => () => {...});\n */\n\n\nfunction useRefInitOnce(initialValue) {\n // $FlowExpectedError[incompatible-call]\n const ref = useRef(initialValue);\n\n if (ref.current === initialValue && typeof initialValue === 'function') {\n // $FlowExpectedError[incompatible-use]\n ref.current = initialValue();\n }\n\n return ref;\n}\n\nvar Recoil_useRefInitOnce = useRefInitOnce;\n\n// @fb-only: const RecoilusagelogEvent = require('RecoilusagelogEvent');\n// @fb-only: const RecoilUsageLogFalcoEvent = require('RecoilUsageLogFalcoEvent');\n// @fb-only: const URI = require('URI');\n\n\nconst {\n getNextTreeStateVersion: getNextTreeStateVersion$3,\n makeEmptyStoreState: makeEmptyStoreState$2\n} = Recoil_State;\n\nconst {\n cleanUpNode: cleanUpNode$2,\n getDownstreamNodes: getDownstreamNodes$2,\n initializeNode: initializeNode$2,\n setNodeValue: setNodeValue$2,\n setUnvalidatedAtomValue_DEPRECATED: setUnvalidatedAtomValue_DEPRECATED$1\n} = Recoil_FunctionalCore;\n\nconst {\n graph: graph$2\n} = Recoil_Graph;\n\nconst {\n cloneGraph: cloneGraph$1\n} = Recoil_Graph;\n\nconst {\n getNextStoreID: getNextStoreID$2\n} = Recoil_Keys;\n\nconst {\n createMutableSource: createMutableSource$1,\n reactMode: reactMode$2\n} = Recoil_ReactMode;\n\nconst {\n applyAtomValueWrites: applyAtomValueWrites$1\n} = Recoil_RecoilValueInterface;\n\nconst {\n releaseScheduledRetainablesNow: releaseScheduledRetainablesNow$1\n} = Recoil_Retention;\n\nconst {\n freshSnapshot: freshSnapshot$1\n} = Recoil_Snapshot$1;\n\n\n\nconst {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef: useRef$1,\n useState\n} = react;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction notInAContext() {\n throw Recoil_err('This component must be used inside a component.');\n}\n\nconst defaultStore = Object.freeze({\n storeID: getNextStoreID$2(),\n getState: notInAContext,\n replaceState: notInAContext,\n getGraph: notInAContext,\n subscribeToTransactions: notInAContext,\n addTransactionMetadata: notInAContext\n});\nlet stateReplacerIsBeingExecuted = false;\n\nfunction startNextTreeIfNeeded(store) {\n if (stateReplacerIsBeingExecuted) {\n throw Recoil_err('An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.');\n }\n\n const storeState = store.getState();\n\n if (storeState.nextTree === null) {\n if (Recoil_gkx('recoil_memory_managament_2020') && Recoil_gkx('recoil_release_on_cascading_update_killswitch_2021')) {\n // If this is a cascading update (that is, rendering due to one state change\n // invokes a second state change), we won't have cleaned up retainables yet\n // because this normally happens after notifying components. Do it before\n // proceeding with the cascading update so that it remains predictable:\n if (storeState.commitDepth > 0) {\n releaseScheduledRetainablesNow$1(store);\n }\n }\n\n const version = storeState.currentTree.version;\n const nextVersion = getNextTreeStateVersion$3();\n storeState.nextTree = { ...storeState.currentTree,\n version: nextVersion,\n stateID: nextVersion,\n dirtyAtoms: new Set(),\n transactionMetadata: {}\n };\n storeState.graphsByVersion.set(nextVersion, cloneGraph$1(Recoil_nullthrows(storeState.graphsByVersion.get(version))));\n }\n}\n\nconst AppContext = react.createContext({\n current: defaultStore\n});\n\nconst useStoreRef = () => useContext(AppContext); // $FlowExpectedError[incompatible-call]\n\n\nconst MutableSourceContext = react.createContext(null);\n\nfunction useRecoilMutableSource() {\n const mutableSource = useContext(MutableSourceContext);\n\n if (mutableSource == null) {\n Recoil_expectationViolation('Attempted to use a Recoil hook outside of a . ' + ' must be an ancestor of any component that uses ' + 'Recoil hooks.');\n }\n\n return mutableSource;\n}\n\nfunction notifyComponents(store, storeState, treeState) {\n const dependentNodes = getDownstreamNodes$2(store, treeState, treeState.dirtyAtoms);\n\n for (const key of dependentNodes) {\n const comps = storeState.nodeToComponentSubscriptions.get(key);\n\n if (comps) {\n for (const [_subID, [_debugName, callback]] of comps) {\n callback(treeState);\n }\n }\n }\n}\n\nfunction sendEndOfBatchNotifications(store) {\n const storeState = store.getState();\n const treeState = storeState.currentTree; // Inform transaction subscribers of the transaction:\n\n const dirtyAtoms = treeState.dirtyAtoms;\n\n if (dirtyAtoms.size) {\n // Execute Node-specific subscribers before global subscribers\n for (const [key, subscriptions] of storeState.nodeTransactionSubscriptions) {\n if (dirtyAtoms.has(key)) {\n for (const [_, subscription] of subscriptions) {\n subscription(store);\n }\n }\n }\n\n for (const [_, subscription] of storeState.transactionSubscriptions) {\n subscription(store);\n }\n\n if (!reactMode$2().early || storeState.suspendedComponentResolvers.size > 0) {\n // Notifying components is needed to wake from suspense, even when using\n // early rendering.\n notifyComponents(store, storeState, treeState); // Wake all suspended components so the right one(s) can try to re-render.\n // We need to wake up components not just when some asynchronous selector\n // resolved, but also when changing synchronous values because this may cause\n // a selector to change from asynchronous to synchronous, in which case there\n // would be no follow-up asynchronous resolution to wake us up.\n // TODO OPTIMIZATION Only wake up related downstream components\n\n storeState.suspendedComponentResolvers.forEach(cb => cb());\n storeState.suspendedComponentResolvers.clear();\n }\n } // Special behavior ONLY invoked by useInterface.\n // FIXME delete queuedComponentCallbacks_DEPRECATED when deleting useInterface.\n\n\n storeState.queuedComponentCallbacks_DEPRECATED.forEach(cb => cb(treeState));\n storeState.queuedComponentCallbacks_DEPRECATED.splice(0, storeState.queuedComponentCallbacks_DEPRECATED.length);\n}\n\nfunction endBatch(store) {\n const storeState = store.getState();\n storeState.commitDepth++;\n\n try {\n const {\n nextTree\n } = storeState; // Ignore commits that are not because of Recoil transactions -- namely,\n // because something above RecoilRoot re-rendered:\n\n if (nextTree == null) {\n return;\n } // nextTree is now committed -- note that copying and reset occurs when\n // a transaction begins, in startNextTreeIfNeeded:\n\n\n storeState.previousTree = storeState.currentTree;\n storeState.currentTree = nextTree;\n storeState.nextTree = null;\n sendEndOfBatchNotifications(store);\n\n if (storeState.previousTree != null) {\n storeState.graphsByVersion.delete(storeState.previousTree.version);\n } else {\n Recoil_recoverableViolation('Ended batch with no previous state, which is unexpected', 'recoil');\n }\n\n storeState.previousTree = null;\n\n if (Recoil_gkx('recoil_memory_managament_2020')) {\n // Only release retainables if there were no writes during the end of the\n // batch. This avoids releasing something we might be about to use.\n if (nextTree == null) {\n releaseScheduledRetainablesNow$1(store);\n }\n }\n } finally {\n storeState.commitDepth--;\n }\n}\n/*\n * The purpose of the Batcher is to observe when React batches end so that\n * Recoil state changes can be batched. Whenever Recoil state changes, we call\n * setState on the batcher. Then we wait for that change to be committed, which\n * signifies the end of the batch. That's when we respond to the Recoil change.\n */\n\n\nfunction Batcher({\n setNotifyBatcherOfChange\n}) {\n const storeRef = useStoreRef();\n const [, setState] = useState([]); // $FlowFixMe[incompatible-call]\n\n setNotifyBatcherOfChange(() => setState({}));\n useEffect(() => {\n // $FlowFixMe[incompatible-call]\n setNotifyBatcherOfChange(() => setState({})); // If an asynchronous selector resolves after the Batcher is unmounted,\n // notifyBatcherOfChange will still be called. An error gets thrown whenever\n // setState is called after a component is already unmounted, so this sets\n // notifyBatcherOfChange to be a no-op.\n\n return () => {\n setNotifyBatcherOfChange(() => {});\n };\n }, [setNotifyBatcherOfChange]);\n useEffect(() => {\n // enqueueExecution runs this function immediately; it is only used to\n // manipulate the order of useEffects during tests, since React seems to\n // call useEffect in an unpredictable order sometimes.\n Recoil_Queue.enqueueExecution('Batcher', () => {\n endBatch(storeRef.current);\n });\n });\n return null;\n}\n\nif (process.env.NODE_ENV !== \"production\") {\n if (typeof window !== 'undefined' && !window.$recoilDebugStates) {\n window.$recoilDebugStates = [];\n }\n} // When removing this deprecated function, remove stateBySettingRecoilValue\n// which will no longer be needed.\n\n\nfunction initialStoreState_DEPRECATED(store, initializeState) {\n const initial = makeEmptyStoreState$2();\n initializeState({\n set: (atom, value) => {\n const state = initial.currentTree;\n const writes = setNodeValue$2(store, state, atom.key, value);\n const writtenNodes = new Set(writes.keys());\n const nonvalidatedAtoms = state.nonvalidatedAtoms.clone();\n\n for (const n of writtenNodes) {\n nonvalidatedAtoms.delete(n);\n }\n\n initial.currentTree = { ...state,\n dirtyAtoms: Recoil_unionSets(state.dirtyAtoms, writtenNodes),\n atomValues: applyAtomValueWrites$1(state.atomValues, writes),\n // NB: PLEASE un-export applyAtomValueWrites when deleting this code\n nonvalidatedAtoms\n };\n },\n setUnvalidatedAtomValues: atomValues => {\n // FIXME replace this with a mutative loop\n atomValues.forEach((v, k) => {\n initial.currentTree = setUnvalidatedAtomValue_DEPRECATED$1(initial.currentTree, k, v);\n });\n }\n });\n return initial;\n} // Initialize state snapshot for for the initializeState prop.\n// Atom effect initialization takes precedence over this prop.\n// Any atom effects will be run before initialization, but then cleaned up,\n// they are then re-run when used as part of rendering. These semantics are\n// compatible with React StrictMode where effects may be re-run multiple times\n// but state initialization only happens once the first time.\n\n\nfunction initialStoreState(initializeState) {\n // Initialize a snapshot and get its store\n const snapshot = freshSnapshot$1(initializeState);\n const storeState = snapshot.getStore_INTERNAL().getState(); // Counteract the snapshot auto-release\n\n snapshot.retain(); // Cleanup any effects run during initialization and clear the handlers so\n // they will re-initialize if used during rendering. This allows atom effect\n // initialization to take precedence over initializeState and be compatible\n // with StrictMode semantics.\n\n storeState.nodeCleanupFunctions.forEach(cleanup => cleanup());\n storeState.nodeCleanupFunctions.clear();\n return storeState;\n}\n\nlet nextID = 0;\n\nfunction RecoilRoot_INTERNAL({\n initializeState_DEPRECATED,\n initializeState,\n store_INTERNAL: storeProp,\n // For use with React \"context bridging\"\n children\n}) {\n // prettier-ignore\n // @fb-only: useEffect(() => {\n // @fb-only: if (gkx('recoil_usage_logging')) {\n // @fb-only: try {\n // @fb-only: RecoilUsageLogFalcoEvent.log(() => ({\n // @fb-only: type: RecoilusagelogEvent.RECOIL_ROOT_MOUNTED,\n // @fb-only: path: URI.getRequestURI().getPath(),\n // @fb-only: }));\n // @fb-only: } catch {\n // @fb-only: recoverableViolation(\n // @fb-only: 'Error when logging Recoil Usage event',\n // @fb-only: 'recoil',\n // @fb-only: );\n // @fb-only: }\n // @fb-only: }\n // @fb-only: }, []);\n let storeStateRef; // eslint-disable-line prefer-const\n\n const getGraph = version => {\n const graphs = storeStateRef.current.graphsByVersion;\n\n if (graphs.has(version)) {\n return Recoil_nullthrows(graphs.get(version));\n }\n\n const newGraph = graph$2();\n graphs.set(version, newGraph);\n return newGraph;\n };\n\n const subscribeToTransactions = (callback, key) => {\n if (key == null) {\n // Global transaction subscriptions\n const {\n transactionSubscriptions\n } = storeRef.current.getState();\n const id = nextID++;\n transactionSubscriptions.set(id, callback);\n return {\n release: () => {\n transactionSubscriptions.delete(id);\n }\n };\n } else {\n // Node-specific transaction subscriptions:\n const {\n nodeTransactionSubscriptions\n } = storeRef.current.getState();\n\n if (!nodeTransactionSubscriptions.has(key)) {\n nodeTransactionSubscriptions.set(key, new Map());\n }\n\n const id = nextID++;\n Recoil_nullthrows(nodeTransactionSubscriptions.get(key)).set(id, callback);\n return {\n release: () => {\n const subs = nodeTransactionSubscriptions.get(key);\n\n if (subs) {\n subs.delete(id);\n\n if (subs.size === 0) {\n nodeTransactionSubscriptions.delete(key);\n }\n }\n }\n };\n }\n };\n\n const addTransactionMetadata = metadata => {\n startNextTreeIfNeeded(storeRef.current);\n\n for (const k of Object.keys(metadata)) {\n Recoil_nullthrows(storeRef.current.getState().nextTree).transactionMetadata[k] = metadata[k];\n }\n };\n\n const replaceState = replacer => {\n startNextTreeIfNeeded(storeRef.current); // Use replacer to get the next state:\n\n const nextTree = Recoil_nullthrows(storeStateRef.current.nextTree);\n let replaced;\n\n try {\n stateReplacerIsBeingExecuted = true;\n replaced = replacer(nextTree);\n } finally {\n stateReplacerIsBeingExecuted = false;\n }\n\n if (replaced === nextTree) {\n return;\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof window !== 'undefined') {\n window.$recoilDebugStates.push(replaced); // TODO this shouldn't happen here because it's not batched\n }\n } // Save changes to nextTree and schedule a React update:\n\n\n storeStateRef.current.nextTree = replaced;\n\n if (reactMode$2().early) {\n notifyComponents(storeRef.current, storeStateRef.current, replaced);\n }\n\n Recoil_nullthrows(notifyBatcherOfChange.current)();\n };\n\n const notifyBatcherOfChange = useRef$1(null);\n const setNotifyBatcherOfChange = useCallback(x => {\n notifyBatcherOfChange.current = x;\n }, [notifyBatcherOfChange]);\n const storeRef = Recoil_useRefInitOnce(() => storeProp !== null && storeProp !== void 0 ? storeProp : {\n storeID: getNextStoreID$2(),\n getState: () => storeStateRef.current,\n replaceState,\n getGraph,\n subscribeToTransactions,\n addTransactionMetadata\n });\n\n if (storeProp != null) {\n storeRef.current = storeProp;\n }\n\n storeStateRef = Recoil_useRefInitOnce(() => initializeState_DEPRECATED != null ? initialStoreState_DEPRECATED(storeRef.current, initializeState_DEPRECATED) : initializeState != null ? initialStoreState(initializeState) : makeEmptyStoreState$2());\n const mutableSource = useMemo(() => createMutableSource$1 === null || createMutableSource$1 === void 0 ? void 0 : createMutableSource$1(storeStateRef, () => storeStateRef.current.currentTree.version), [storeStateRef]); // Cleanup when the is unmounted\n\n useEffect(() => {\n // React is free to call effect cleanup handlers and effects at will, the\n // deps array is only an optimization. For example, React strict mode\n // will execute each effect twice for testing. Therefore, we need symmetry\n // to re-initialize all known atoms after they were cleaned up.\n const store = storeRef.current;\n\n for (const atomKey of new Set(store.getState().knownAtoms)) {\n initializeNode$2(store, atomKey, 'get');\n }\n\n return () => {\n for (const atomKey of store.getState().knownAtoms) {\n cleanUpNode$2(store, atomKey);\n }\n };\n }, [storeRef]);\n return /*#__PURE__*/react.createElement(AppContext.Provider, {\n value: storeRef\n }, /*#__PURE__*/react.createElement(MutableSourceContext.Provider, {\n value: mutableSource\n }, /*#__PURE__*/react.createElement(Batcher, {\n setNotifyBatcherOfChange: setNotifyBatcherOfChange\n }), children));\n}\n\nfunction RecoilRoot(props) {\n const {\n override,\n ...propsExceptOverride\n } = props;\n const ancestorStoreRef = useStoreRef();\n\n if (override === false && ancestorStoreRef.current !== defaultStore) {\n // If ancestorStoreRef.current !== defaultStore, it means that this\n // RecoilRoot is not nested within another.\n return props.children;\n }\n\n return /*#__PURE__*/react.createElement(RecoilRoot_INTERNAL, propsExceptOverride);\n}\n\nfunction useRecoilStoreID() {\n return useStoreRef().current.storeID;\n}\n\nvar Recoil_RecoilRoot = {\n RecoilRoot,\n useStoreRef,\n useRecoilMutableSource,\n useRecoilStoreID,\n notifyComponents_FOR_TESTING: notifyComponents,\n sendEndOfBatchNotifications_FOR_TESTING: sendEndOfBatchNotifications\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction shallowArrayEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (let i = 0, l = a.length; i < l; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nvar Recoil_shallowArrayEqual = shallowArrayEqual;\n\nconst {\n useEffect: useEffect$1,\n useRef: useRef$2\n} = react;\n\nfunction usePrevious(value) {\n const ref = useRef$2();\n useEffect$1(() => {\n // $FlowFixMe[incompatible-type]\n ref.current = value;\n });\n return ref.current;\n}\n\nvar Recoil_usePrevious = usePrevious;\n\nconst {\n useStoreRef: useStoreRef$1\n} = Recoil_RecoilRoot;\n\nconst {\n SUSPENSE_TIMEOUT_MS: SUSPENSE_TIMEOUT_MS$1\n} = Recoil_Retention;\n\nconst {\n updateRetainCount: updateRetainCount$2\n} = Recoil_Retention;\n\nconst {\n RetentionZone: RetentionZone$3\n} = Recoil_RetentionZone;\n\nconst {\n useEffect: useEffect$2,\n useRef: useRef$3\n} = react;\n\nconst {\n isSSR: isSSR$2\n} = Recoil_Environment;\n\n\n\n\n\n // I don't see a way to avoid the any type here because we want to accept readable\n// and writable values with any type parameter, but normally with writable ones\n// RecoilState is not a subtype of RecoilState.\n\n\n// flowlint-line unclear-type:off\nfunction useRetain(toRetain) {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n } // eslint-disable-next-line fb-www/react-hooks\n\n\n return useRetain_ACTUAL(toRetain);\n}\n\nfunction useRetain_ACTUAL(toRetain) {\n const array = Array.isArray(toRetain) ? toRetain : [toRetain];\n const retainables = array.map(a => a instanceof RetentionZone$3 ? a : a.key);\n const storeRef = useStoreRef$1();\n useEffect$2(() => {\n if (!Recoil_gkx('recoil_memory_managament_2020')) {\n return;\n }\n\n const store = storeRef.current;\n\n if (timeoutID.current && !isSSR$2) {\n // Already performed a temporary retain on render, simply cancel the release\n // of that temporary retain.\n window.clearTimeout(timeoutID.current);\n timeoutID.current = null;\n } else {\n for (const r of retainables) {\n updateRetainCount$2(store, r, 1);\n }\n }\n\n return () => {\n for (const r of retainables) {\n updateRetainCount$2(store, r, -1);\n }\n }; // eslint-disable-next-line fb-www/react-hooks-deps\n }, [storeRef, ...retainables]); // We want to retain if the component suspends. This is terrible but the Suspense\n // API affords us no better option. If we suspend and never commit after some\n // seconds, then release. The 'actual' retain/release in the effect above\n // cancels this.\n\n const timeoutID = useRef$3();\n const previousRetainables = Recoil_usePrevious(retainables);\n\n if (!isSSR$2 && (previousRetainables === undefined || !Recoil_shallowArrayEqual(previousRetainables, retainables))) {\n const store = storeRef.current;\n\n for (const r of retainables) {\n updateRetainCount$2(store, r, 1);\n }\n\n if (previousRetainables) {\n for (const r of previousRetainables) {\n updateRetainCount$2(store, r, -1);\n }\n }\n\n if (timeoutID.current) {\n window.clearTimeout(timeoutID.current);\n }\n\n timeoutID.current = window.setTimeout(() => {\n timeoutID.current = null;\n\n for (const r of retainables) {\n updateRetainCount$2(store, r, -1);\n }\n }, SUSPENSE_TIMEOUT_MS$1);\n }\n}\n\nvar Recoil_useRetain = useRetain;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * THIS CODE HAS BEEN COMMENTED OUT INTENTIONALLY\n *\n * This technique of getting the component name is imperfect, since it both only\n * works in a non-minified code base, and more importantly introduces performance\n * problems since it relies in throwing errors which is an expensive operation.\n *\n * At some point we may want to reevaluate this technique hence why we have commented\n * this code out, rather than delete it all together.\n */\n// const {useRef} = require('react');\n// const gkx = require('recoil-shared/util/Recoil_gkx');\n// const stackTraceParser = require('recoil-shared/util/Recoil_stackTraceParser');\n\nfunction useComponentName() {\n // const nameRef = useRef();\n // if (__DEV__) {\n // if (gkx('recoil_infer_component_names')) {\n // if (nameRef.current === undefined) {\n // // There is no blessed way to determine the calling React component from\n // // within a hook. This hack uses the fact that hooks must start with 'use'\n // // and that hooks are either called by React Components or other hooks. It\n // // follows therefore, that to find the calling component, you simply need\n // // to look down the stack and find the first function which doesn't start\n // // with 'use'. We are only enabling this in dev for now, since once the\n // // codebase is minified, the naming assumptions no longer hold true.\n // // eslint-disable-next-line fb-www/no-new-error\n // const frames = stackTraceParser(new Error().stack);\n // for (const {methodName} of frames) {\n // // I observed cases where the frame was of the form 'Object.useXXX'\n // // hence why I'm searching for hooks following a word boundary\n // if (!methodName.match(/\\buse[^\\b]+$/)) {\n // return (nameRef.current = methodName);\n // }\n // }\n // nameRef.current = null;\n // }\n // return nameRef.current ?? '';\n // }\n // }\n // @fb-only: return \"\";\n return ''; // @oss-only\n}\n\nvar Recoil_useComponentName = useComponentName;\n\nconst {\n batchUpdates: batchUpdates$2\n} = Recoil_Batching;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$2\n} = Recoil_Node;\n\nconst {\n currentRendererSupportsUseSyncExternalStore: currentRendererSupportsUseSyncExternalStore$1,\n reactMode: reactMode$3,\n useMutableSource: useMutableSource$1,\n useSyncExternalStore: useSyncExternalStore$1\n} = Recoil_ReactMode;\n\nconst {\n useRecoilMutableSource: useRecoilMutableSource$1,\n useStoreRef: useStoreRef$2\n} = Recoil_RecoilRoot;\n\nconst {\n isRecoilValue: isRecoilValue$2\n} = Recoil_RecoilValue$1;\n\nconst {\n AbstractRecoilValue: AbstractRecoilValue$3,\n getRecoilValueAsLoadable: getRecoilValueAsLoadable$2,\n setRecoilValue: setRecoilValue$2,\n setUnvalidatedRecoilValue: setUnvalidatedRecoilValue$2,\n subscribeToRecoilValue: subscribeToRecoilValue$1\n} = Recoil_RecoilValueInterface;\n\n\n\nconst {\n useCallback: useCallback$1,\n useEffect: useEffect$3,\n useMemo: useMemo$1,\n useRef: useRef$4,\n useState: useState$1\n} = react;\n\nconst {\n setByAddingToSet: setByAddingToSet$2\n} = Recoil_CopyOnWrite;\n\n\n\nconst {\n isSSR: isSSR$3\n} = Recoil_Environment;\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction handleLoadable(loadable, recoilValue, storeRef) {\n // We can't just throw the promise we are waiting on to Suspense. If the\n // upstream dependencies change it may produce a state in which the component\n // can render, but it would still be suspended on a Promise that may never resolve.\n if (loadable.state === 'hasValue') {\n return loadable.contents;\n } else if (loadable.state === 'loading') {\n const promise = new Promise(resolve => {\n const suspendedComponentResolvers = storeRef.current.getState().suspendedComponentResolvers;\n suspendedComponentResolvers.add(resolve); // SSR should clear out the wake-up resolver if the Promise is resolved\n // to avoid infinite loops. (See https://github.com/facebookexperimental/Recoil/pull/2073)\n\n if (isSSR$3 && Recoil_isPromise(loadable.contents)) {\n loadable.contents.finally(() => {\n suspendedComponentResolvers.delete(resolve);\n });\n }\n }); // $FlowExpectedError Flow(prop-missing) for integrating with tools that inspect thrown promises @fb-only\n // @fb-only: promise.displayName = `Recoil State: ${recoilValue.key}`;\n\n throw promise;\n } else if (loadable.state === 'hasError') {\n throw loadable.contents;\n } else {\n throw Recoil_err(`Invalid value of loadable atom \"${recoilValue.key}\"`);\n }\n}\n\nfunction validateRecoilValue(recoilValue, hookName // $FlowFixMe[missing-local-annot]\n) {\n if (!isRecoilValue$2(recoilValue)) {\n throw Recoil_err(`Invalid argument to ${hookName}: expected an atom or selector but got ${String(recoilValue)}`);\n }\n}\n\n/**\n * Various things are broken with useRecoilInterface, particularly concurrent\n * mode, React strict mode, and memory management. They will not be fixed.\n * */\nfunction useRecoilInterface_DEPRECATED() {\n const componentName = Recoil_useComponentName();\n const storeRef = useStoreRef$2(); // eslint-disable-next-line fb-www/react-no-unused-state-hook\n\n const [, forceUpdate] = useState$1([]);\n const recoilValuesUsed = useRef$4(new Set());\n recoilValuesUsed.current = new Set(); // Track the RecoilValues used just during this render\n\n const previousSubscriptions = useRef$4(new Set());\n const subscriptions = useRef$4(new Map());\n const unsubscribeFrom = useCallback$1(key => {\n const sub = subscriptions.current.get(key);\n\n if (sub) {\n sub.release();\n subscriptions.current.delete(key);\n }\n }, [subscriptions]);\n const updateState = useCallback$1((_state, key) => {\n if (subscriptions.current.has(key)) {\n forceUpdate([]);\n }\n }, []); // Effect to add/remove subscriptions as nodes are used\n\n useEffect$3(() => {\n const store = storeRef.current;\n Recoil_differenceSets(recoilValuesUsed.current, previousSubscriptions.current).forEach(key => {\n if (subscriptions.current.has(key)) {\n Recoil_expectationViolation(`Double subscription to RecoilValue \"${key}\"`);\n return;\n }\n\n const sub = subscribeToRecoilValue$1(store, new AbstractRecoilValue$3(key), state => updateState(state, key), componentName);\n subscriptions.current.set(key, sub);\n /**\n * Since we're subscribing in an effect we need to update to the latest\n * value of the atom since it may have changed since we rendered. We can\n * go ahead and do that now, unless we're in the middle of a batch --\n * in which case we should do it at the end of the batch, due to the\n * following edge case: Suppose an atom is updated in another useEffect\n * of this same component. Then the following sequence of events occur:\n * 1. Atom is updated and subs fired (but we may not be subscribed\n * yet depending on order of effects, so we miss this) Updated value\n * is now in nextTree, but not currentTree.\n * 2. This effect happens. We subscribe and update.\n * 3. From the update we re-render and read currentTree, with old value.\n * 4. Batcher's effect sets currentTree to nextTree.\n * In this sequence we miss the update. To avoid that, add the update\n * to queuedComponentCallback if a batch is in progress.\n */\n // FIXME delete queuedComponentCallbacks_DEPRECATED when deleting useInterface.\n\n const state = store.getState();\n\n if (state.nextTree) {\n store.getState().queuedComponentCallbacks_DEPRECATED.push(() => {\n updateState(store.getState(), key);\n });\n } else {\n updateState(store.getState(), key);\n }\n });\n Recoil_differenceSets(previousSubscriptions.current, recoilValuesUsed.current).forEach(key => {\n unsubscribeFrom(key);\n });\n previousSubscriptions.current = recoilValuesUsed.current;\n }); // Effect to unsubscribe from all when unmounting\n\n useEffect$3(() => {\n const currentSubscriptions = subscriptions.current; // Restore subscriptions that were cleared due to StrictMode running this effect twice\n\n Recoil_differenceSets(recoilValuesUsed.current, new Set(currentSubscriptions.keys())).forEach(key => {\n const sub = subscribeToRecoilValue$1(storeRef.current, new AbstractRecoilValue$3(key), state => updateState(state, key), componentName);\n currentSubscriptions.set(key, sub);\n });\n return () => currentSubscriptions.forEach((_, key) => unsubscribeFrom(key));\n }, [componentName, storeRef, unsubscribeFrom, updateState]);\n return useMemo$1(() => {\n // eslint-disable-next-line no-shadow\n function useSetRecoilState(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useSetRecoilState');\n }\n\n return newValueOrUpdater => {\n setRecoilValue$2(storeRef.current, recoilState, newValueOrUpdater);\n };\n } // eslint-disable-next-line no-shadow\n\n\n function useResetRecoilState(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useResetRecoilState');\n }\n\n return () => setRecoilValue$2(storeRef.current, recoilState, DEFAULT_VALUE$2);\n } // eslint-disable-next-line no-shadow\n\n\n function useRecoilValueLoadable(recoilValue) {\n var _storeState$nextTree;\n\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilValue, 'useRecoilValueLoadable');\n }\n\n if (!recoilValuesUsed.current.has(recoilValue.key)) {\n recoilValuesUsed.current = setByAddingToSet$2(recoilValuesUsed.current, recoilValue.key);\n } // TODO Restore optimization to memoize lookup\n\n\n const storeState = storeRef.current.getState();\n return getRecoilValueAsLoadable$2(storeRef.current, recoilValue, reactMode$3().early ? (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree : storeState.currentTree);\n } // eslint-disable-next-line no-shadow\n\n\n function useRecoilValue(recoilValue) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilValue, 'useRecoilValue');\n }\n\n const loadable = useRecoilValueLoadable(recoilValue);\n return handleLoadable(loadable, recoilValue, storeRef);\n } // eslint-disable-next-line no-shadow\n\n\n function useRecoilState(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useRecoilState');\n }\n\n return [useRecoilValue(recoilState), useSetRecoilState(recoilState)];\n } // eslint-disable-next-line no-shadow\n\n\n function useRecoilStateLoadable(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useRecoilStateLoadable');\n }\n\n return [useRecoilValueLoadable(recoilState), useSetRecoilState(recoilState)];\n }\n\n return {\n getRecoilValue: useRecoilValue,\n getRecoilValueLoadable: useRecoilValueLoadable,\n getRecoilState: useRecoilState,\n getRecoilStateLoadable: useRecoilStateLoadable,\n getSetRecoilState: useSetRecoilState,\n getResetRecoilState: useResetRecoilState\n };\n }, [recoilValuesUsed, storeRef]);\n}\n\nconst recoilComponentGetRecoilValueCount_FOR_TESTING = {\n current: 0\n};\n\nfunction useRecoilValueLoadable_SYNC_EXTERNAL_STORE(recoilValue) {\n const storeRef = useStoreRef$2();\n const componentName = Recoil_useComponentName();\n const getSnapshot = useCallback$1(() => {\n var _storeState$nextTree2;\n\n if (process.env.NODE_ENV !== \"production\") {\n recoilComponentGetRecoilValueCount_FOR_TESTING.current++;\n }\n\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree2 = storeState.nextTree) !== null && _storeState$nextTree2 !== void 0 ? _storeState$nextTree2 : storeState.currentTree : storeState.currentTree;\n const loadable = getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n return {\n loadable,\n key: recoilValue.key\n };\n }, [storeRef, recoilValue]); // Memoize the state to avoid unnecessary rerenders\n\n const memoizePreviousSnapshot = useCallback$1(getState => {\n let prevState;\n return () => {\n var _prevState, _prevState2;\n\n const nextState = getState();\n\n if ((_prevState = prevState) !== null && _prevState !== void 0 && _prevState.loadable.is(nextState.loadable) && ((_prevState2 = prevState) === null || _prevState2 === void 0 ? void 0 : _prevState2.key) === nextState.key) {\n return prevState;\n }\n\n prevState = nextState;\n return nextState;\n };\n }, []);\n const getMemoizedSnapshot = useMemo$1(() => memoizePreviousSnapshot(getSnapshot), [getSnapshot, memoizePreviousSnapshot]);\n const subscribe = useCallback$1(notify => {\n const store = storeRef.current;\n const subscription = subscribeToRecoilValue$1(store, recoilValue, notify, componentName);\n return subscription.release;\n }, [storeRef, recoilValue, componentName]);\n return useSyncExternalStore$1(subscribe, getMemoizedSnapshot, // getSnapshot()\n getMemoizedSnapshot // getServerSnapshot() for SSR support\n ).loadable;\n}\n\nfunction useRecoilValueLoadable_MUTABLE_SOURCE(recoilValue) {\n const storeRef = useStoreRef$2();\n const getLoadable = useCallback$1(() => {\n var _storeState$nextTree3;\n\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree3 = storeState.nextTree) !== null && _storeState$nextTree3 !== void 0 ? _storeState$nextTree3 : storeState.currentTree : storeState.currentTree;\n return getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n }, [storeRef, recoilValue]);\n const getLoadableWithTesting = useCallback$1(() => {\n if (process.env.NODE_ENV !== \"production\") {\n recoilComponentGetRecoilValueCount_FOR_TESTING.current++;\n }\n\n return getLoadable();\n }, [getLoadable]);\n const componentName = Recoil_useComponentName();\n const subscribe = useCallback$1((_storeState, notify) => {\n const store = storeRef.current;\n const subscription = subscribeToRecoilValue$1(store, recoilValue, () => {\n if (!Recoil_gkx('recoil_suppress_rerender_in_callback')) {\n return notify();\n } // Only re-render if the value has changed.\n // This will evaluate the atom/selector now as well as when the\n // component renders, but that may help with prefetching.\n\n\n const newLoadable = getLoadable();\n\n if (!prevLoadableRef.current.is(newLoadable)) {\n notify();\n } // If the component is suspended then the effect setting prevLoadableRef\n // will not run. So, set the previous value here when its subscription\n // is fired to wake it up. We can't just rely on this, though, because\n // this only executes when an atom/selector is dirty and the atom/selector\n // passed to the hook can dynamically change.\n\n\n prevLoadableRef.current = newLoadable;\n }, componentName);\n return subscription.release;\n }, [storeRef, recoilValue, componentName, getLoadable]);\n const source = useRecoilMutableSource$1();\n\n if (source == null) {\n throw Recoil_err('Recoil hooks must be used in components contained within a component.');\n }\n\n const loadable = useMutableSource$1(source, getLoadableWithTesting, subscribe);\n const prevLoadableRef = useRef$4(loadable);\n useEffect$3(() => {\n prevLoadableRef.current = loadable;\n });\n return loadable;\n}\n\nfunction useRecoilValueLoadable_TRANSITION_SUPPORT(recoilValue) {\n const storeRef = useStoreRef$2();\n const componentName = Recoil_useComponentName(); // Accessors to get the current state\n\n const getLoadable = useCallback$1(() => {\n var _storeState$nextTree4;\n\n if (process.env.NODE_ENV !== \"production\") {\n recoilComponentGetRecoilValueCount_FOR_TESTING.current++;\n }\n\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree4 = storeState.nextTree) !== null && _storeState$nextTree4 !== void 0 ? _storeState$nextTree4 : storeState.currentTree : storeState.currentTree;\n return getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n }, [storeRef, recoilValue]);\n const getState = useCallback$1(() => ({\n loadable: getLoadable(),\n key: recoilValue.key\n }), [getLoadable, recoilValue.key]); // Memoize state snapshots\n\n const updateState = useCallback$1(prevState => {\n const nextState = getState();\n return prevState.loadable.is(nextState.loadable) && prevState.key === nextState.key ? prevState : nextState;\n }, [getState]); // Subscribe to Recoil state changes\n\n useEffect$3(() => {\n const subscription = subscribeToRecoilValue$1(storeRef.current, recoilValue, _state => {\n setState(updateState);\n }, componentName); // Update state in case we are using a different key\n\n setState(updateState);\n return subscription.release;\n }, [componentName, recoilValue, storeRef, updateState]); // Get the current state\n\n const [state, setState] = useState$1(getState); // If we changed keys, then return the state for the new key.\n // This is important in case the old key would cause the component to suspend.\n // We don't have to set the new state here since the subscribing effect above\n // will do that.\n\n return state.key !== recoilValue.key ? getState().loadable : state.loadable;\n}\n\nfunction useRecoilValueLoadable_LEGACY(recoilValue) {\n const storeRef = useStoreRef$2(); // eslint-disable-next-line fb-www/react-no-unused-state-hook\n\n const [, forceUpdate] = useState$1([]);\n const componentName = Recoil_useComponentName();\n const getLoadable = useCallback$1(() => {\n var _storeState$nextTree5;\n\n if (process.env.NODE_ENV !== \"production\") {\n recoilComponentGetRecoilValueCount_FOR_TESTING.current++;\n }\n\n const store = storeRef.current;\n const storeState = store.getState();\n const treeState = reactMode$3().early ? (_storeState$nextTree5 = storeState.nextTree) !== null && _storeState$nextTree5 !== void 0 ? _storeState$nextTree5 : storeState.currentTree : storeState.currentTree;\n return getRecoilValueAsLoadable$2(store, recoilValue, treeState);\n }, [storeRef, recoilValue]);\n const loadable = getLoadable();\n const prevLoadableRef = useRef$4(loadable);\n useEffect$3(() => {\n prevLoadableRef.current = loadable;\n });\n useEffect$3(() => {\n const store = storeRef.current;\n const storeState = store.getState();\n const subscription = subscribeToRecoilValue$1(store, recoilValue, _state => {\n var _prevLoadableRef$curr;\n\n if (!Recoil_gkx('recoil_suppress_rerender_in_callback')) {\n return forceUpdate([]);\n }\n\n const newLoadable = getLoadable();\n\n if (!((_prevLoadableRef$curr = prevLoadableRef.current) !== null && _prevLoadableRef$curr !== void 0 && _prevLoadableRef$curr.is(newLoadable))) {\n // $FlowFixMe[incompatible-call]\n forceUpdate(newLoadable);\n }\n\n prevLoadableRef.current = newLoadable;\n }, componentName);\n /**\n * Since we're subscribing in an effect we need to update to the latest\n * value of the atom since it may have changed since we rendered. We can\n * go ahead and do that now, unless we're in the middle of a batch --\n * in which case we should do it at the end of the batch, due to the\n * following edge case: Suppose an atom is updated in another useEffect\n * of this same component. Then the following sequence of events occur:\n * 1. Atom is updated and subs fired (but we may not be subscribed\n * yet depending on order of effects, so we miss this) Updated value\n * is now in nextTree, but not currentTree.\n * 2. This effect happens. We subscribe and update.\n * 3. From the update we re-render and read currentTree, with old value.\n * 4. Batcher's effect sets currentTree to nextTree.\n * In this sequence we miss the update. To avoid that, add the update\n * to queuedComponentCallback if a batch is in progress.\n */\n\n if (storeState.nextTree) {\n store.getState().queuedComponentCallbacks_DEPRECATED.push(() => {\n // $FlowFixMe[incompatible-type]\n prevLoadableRef.current = null;\n forceUpdate([]);\n });\n } else {\n var _prevLoadableRef$curr2;\n\n if (!Recoil_gkx('recoil_suppress_rerender_in_callback')) {\n return forceUpdate([]);\n }\n\n const newLoadable = getLoadable();\n\n if (!((_prevLoadableRef$curr2 = prevLoadableRef.current) !== null && _prevLoadableRef$curr2 !== void 0 && _prevLoadableRef$curr2.is(newLoadable))) {\n // $FlowFixMe[incompatible-call]\n forceUpdate(newLoadable);\n }\n\n prevLoadableRef.current = newLoadable;\n }\n\n return subscription.release;\n }, [componentName, getLoadable, recoilValue, storeRef]);\n return loadable;\n}\n/**\n Like useRecoilValue(), but either returns the value if available or\n just undefined if not available for any reason, such as pending or error.\n*/\n\n\nfunction useRecoilValueLoadable(recoilValue) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilValue, 'useRecoilValueLoadable');\n }\n\n if (Recoil_gkx('recoil_memory_managament_2020')) {\n // eslint-disable-next-line fb-www/react-hooks\n Recoil_useRetain(recoilValue);\n }\n\n return {\n TRANSITION_SUPPORT: useRecoilValueLoadable_TRANSITION_SUPPORT,\n // Recoil will attemp to detect if `useSyncExternalStore()` is supported with\n // `reactMode()` before calling it. However, sometimes the host React\n // environment supports it but uses additional React renderers (such as with\n // `react-three-fiber`) which do not. While this is technically a user issue\n // by using a renderer with React 18+ that doesn't fully support React 18 we\n // don't want to break users if it can be avoided. As the current renderer can\n // change at runtime, we need to dynamically check and fallback if necessary.\n SYNC_EXTERNAL_STORE: currentRendererSupportsUseSyncExternalStore$1() ? useRecoilValueLoadable_SYNC_EXTERNAL_STORE : useRecoilValueLoadable_TRANSITION_SUPPORT,\n MUTABLE_SOURCE: useRecoilValueLoadable_MUTABLE_SOURCE,\n LEGACY: useRecoilValueLoadable_LEGACY\n }[reactMode$3().mode](recoilValue);\n}\n/**\n Returns the value represented by the RecoilValue.\n If the value is pending, it will throw a Promise to suspend the component,\n if the value is an error it will throw it for the nearest React error boundary.\n This will also subscribe the component for any updates in the value.\n */\n\n\nfunction useRecoilValue(recoilValue) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilValue, 'useRecoilValue');\n }\n\n const storeRef = useStoreRef$2();\n const loadable = useRecoilValueLoadable(recoilValue);\n return handleLoadable(loadable, recoilValue, storeRef);\n}\n/**\n Returns a function that allows the value of a RecoilState to be updated, but does\n not subscribe the component to changes to that RecoilState.\n*/\n\n\nfunction useSetRecoilState(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useSetRecoilState');\n }\n\n const storeRef = useStoreRef$2();\n return useCallback$1(newValueOrUpdater => {\n setRecoilValue$2(storeRef.current, recoilState, newValueOrUpdater);\n }, [storeRef, recoilState]);\n}\n/**\n Returns a function that will reset the value of a RecoilState to its default\n*/\n\n\nfunction useResetRecoilState(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useResetRecoilState');\n }\n\n const storeRef = useStoreRef$2();\n return useCallback$1(() => {\n setRecoilValue$2(storeRef.current, recoilState, DEFAULT_VALUE$2);\n }, [storeRef, recoilState]);\n}\n/**\n Equivalent to useState(). Allows the value of the RecoilState to be read and written.\n Subsequent updates to the RecoilState will cause the component to re-render. If the\n RecoilState is pending, this will suspend the component and initiate the\n retrieval of the value. If evaluating the RecoilState resulted in an error, this will\n throw the error so that the nearest React error boundary can catch it.\n*/\n\n\nfunction useRecoilState(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useRecoilState');\n }\n\n return [useRecoilValue(recoilState), useSetRecoilState(recoilState)];\n}\n/**\n Like useRecoilState(), but does not cause Suspense or React error handling. Returns\n an object that indicates whether the RecoilState is available, pending, or\n unavailable due to an error.\n*/\n\n\nfunction useRecoilStateLoadable(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useRecoilStateLoadable');\n }\n\n return [useRecoilValueLoadable(recoilState), useSetRecoilState(recoilState)];\n}\n\nfunction useSetUnvalidatedAtomValues() {\n const storeRef = useStoreRef$2();\n return (values, transactionMetadata = {}) => {\n batchUpdates$2(() => {\n storeRef.current.addTransactionMetadata(transactionMetadata);\n values.forEach((value, key) => setUnvalidatedRecoilValue$2(storeRef.current, new AbstractRecoilValue$3(key), value));\n });\n };\n}\n/**\n * Experimental variants of hooks with support for useTransition()\n */\n\n\nfunction useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE(recoilValue) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilValue, 'useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE');\n\n if (!reactMode$3().early) {\n Recoil_recoverableViolation('Attepmt to use a hook with UNSTABLE_TRANSITION_SUPPORT in a rendering mode incompatible with concurrent rendering. Try enabling the recoil_sync_external_store or recoil_transition_support GKs.');\n }\n }\n\n if (Recoil_gkx('recoil_memory_managament_2020')) {\n // eslint-disable-next-line fb-www/react-hooks\n Recoil_useRetain(recoilValue);\n }\n\n return useRecoilValueLoadable_TRANSITION_SUPPORT(recoilValue);\n}\n\nfunction useRecoilValue_TRANSITION_SUPPORT_UNSTABLE(recoilValue) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilValue, 'useRecoilValue_TRANSITION_SUPPORT_UNSTABLE');\n }\n\n const storeRef = useStoreRef$2();\n const loadable = useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE(recoilValue);\n return handleLoadable(loadable, recoilValue, storeRef);\n}\n\nfunction useRecoilState_TRANSITION_SUPPORT_UNSTABLE(recoilState) {\n if (process.env.NODE_ENV !== \"production\") {\n validateRecoilValue(recoilState, 'useRecoilState_TRANSITION_SUPPORT_UNSTABLE');\n }\n\n return [useRecoilValue_TRANSITION_SUPPORT_UNSTABLE(recoilState), useSetRecoilState(recoilState)];\n}\n\nvar Recoil_Hooks = {\n recoilComponentGetRecoilValueCount_FOR_TESTING,\n useRecoilInterface: useRecoilInterface_DEPRECATED,\n useRecoilState,\n useRecoilStateLoadable,\n useRecoilValue,\n useRecoilValueLoadable,\n useResetRecoilState,\n useSetRecoilState,\n useSetUnvalidatedAtomValues,\n useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE,\n useRecoilValue_TRANSITION_SUPPORT_UNSTABLE,\n useRecoilState_TRANSITION_SUPPORT_UNSTABLE\n};\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Returns a map containing all of the keys + values from the original map where\n * the given callback returned true.\n */\n\nfunction filterMap(map, callback) {\n const result = new Map();\n\n for (const [key, value] of map) {\n if (callback(value, key)) {\n result.set(key, value);\n }\n }\n\n return result;\n}\n\nvar Recoil_filterMap = filterMap;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n/**\n * Returns a set containing all of the values from the original set where\n * the given callback returned true.\n */\n\nfunction filterSet(set, callback) {\n const result = new Set();\n\n for (const value of set) {\n if (callback(value)) {\n result.add(value);\n }\n }\n\n return result;\n}\n\nvar Recoil_filterSet = filterSet;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction mergeMaps(...maps) {\n const result = new Map();\n\n for (let i = 0; i < maps.length; i++) {\n const iterator = maps[i].keys();\n let nextKey;\n\n while (!(nextKey = iterator.next()).done) {\n // $FlowIssue[incompatible-call] - map/iterator knows nothing about flow types\n result.set(nextKey.value, maps[i].get(nextKey.value));\n }\n }\n\n return result;\n}\n\nvar Recoil_mergeMaps = mergeMaps;\n\nconst {\n batchUpdates: batchUpdates$3\n} = Recoil_Batching;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$3,\n getNode: getNode$4,\n nodes: nodes$1\n} = Recoil_Node;\n\nconst {\n useStoreRef: useStoreRef$3\n} = Recoil_RecoilRoot;\n\nconst {\n AbstractRecoilValue: AbstractRecoilValue$4,\n setRecoilValueLoadable: setRecoilValueLoadable$1\n} = Recoil_RecoilValueInterface;\n\nconst {\n SUSPENSE_TIMEOUT_MS: SUSPENSE_TIMEOUT_MS$2\n} = Recoil_Retention;\n\nconst {\n cloneSnapshot: cloneSnapshot$1\n} = Recoil_Snapshot$1;\n\nconst {\n useCallback: useCallback$2,\n useEffect: useEffect$4,\n useRef: useRef$5,\n useState: useState$2\n} = react;\n\nconst {\n isSSR: isSSR$4\n} = Recoil_Environment;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction useTransactionSubscription(callback) {\n const storeRef = useStoreRef$3();\n useEffect$4(() => {\n const sub = storeRef.current.subscribeToTransactions(callback);\n return sub.release;\n }, [callback, storeRef]);\n}\n\nfunction externallyVisibleAtomValuesInState(state) {\n const atomValues = state.atomValues.toMap();\n const persistedAtomContentsValues = Recoil_mapMap(Recoil_filterMap(atomValues, (v, k) => {\n const node = getNode$4(k);\n const persistence = node.persistence_UNSTABLE;\n return persistence != null && persistence.type !== 'none' && v.state === 'hasValue';\n }), v => v.contents); // Merge in nonvalidated atoms; we may not have defs for them but they will\n // all have persistence on or they wouldn't be there in the first place.\n\n return Recoil_mergeMaps(state.nonvalidatedAtoms.toMap(), persistedAtomContentsValues);\n}\n\n/**\n Calls the given callback after any atoms have been modified and the consequent\n component re-renders have been committed. This is intended for persisting\n the values of the atoms to storage. The stored values can then be restored\n using the useSetUnvalidatedAtomValues hook.\n\n The callback receives the following info:\n\n atomValues: The current value of every atom that is both persistable (persistence\n type not set to 'none') and whose value is available (not in an\n error or loading state).\n\n previousAtomValues: The value of every persistable and available atom before\n the transaction began.\n\n atomInfo: A map containing the persistence settings for each atom. Every key\n that exists in atomValues will also exist in atomInfo.\n\n modifiedAtoms: The set of atoms that were written to during the transaction.\n\n transactionMetadata: Arbitrary information that was added via the\n useSetUnvalidatedAtomValues hook. Useful for ignoring the useSetUnvalidatedAtomValues\n transaction, to avoid loops.\n*/\nfunction useTransactionObservation_DEPRECATED(callback) {\n useTransactionSubscription(useCallback$2(store => {\n let previousTree = store.getState().previousTree;\n const currentTree = store.getState().currentTree;\n\n if (!previousTree) {\n Recoil_recoverableViolation('Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil');\n previousTree = store.getState().currentTree; // attempt to trundle on\n }\n\n const atomValues = externallyVisibleAtomValuesInState(currentTree);\n const previousAtomValues = externallyVisibleAtomValuesInState(previousTree);\n const atomInfo = Recoil_mapMap(nodes$1, node => {\n var _node$persistence_UNS, _node$persistence_UNS2, _node$persistence_UNS3, _node$persistence_UNS4;\n\n return {\n persistence_UNSTABLE: {\n type: (_node$persistence_UNS = (_node$persistence_UNS2 = node.persistence_UNSTABLE) === null || _node$persistence_UNS2 === void 0 ? void 0 : _node$persistence_UNS2.type) !== null && _node$persistence_UNS !== void 0 ? _node$persistence_UNS : 'none',\n backButton: (_node$persistence_UNS3 = (_node$persistence_UNS4 = node.persistence_UNSTABLE) === null || _node$persistence_UNS4 === void 0 ? void 0 : _node$persistence_UNS4.backButton) !== null && _node$persistence_UNS3 !== void 0 ? _node$persistence_UNS3 : false\n }\n };\n }); // Filter on existance in atomValues so that externally-visible rules\n // are also applied to modified atoms (specifically exclude selectors):\n\n const modifiedAtoms = Recoil_filterSet(currentTree.dirtyAtoms, k => atomValues.has(k) || previousAtomValues.has(k));\n callback({\n atomValues,\n previousAtomValues,\n atomInfo,\n modifiedAtoms,\n transactionMetadata: { ...currentTree.transactionMetadata\n }\n });\n }, [callback]));\n}\n\nfunction useRecoilTransactionObserver(callback) {\n useTransactionSubscription(useCallback$2(store => {\n const snapshot = cloneSnapshot$1(store, 'latest');\n const previousSnapshot = cloneSnapshot$1(store, 'previous');\n callback({\n snapshot,\n previousSnapshot\n });\n }, [callback]));\n} // Return a snapshot of the current state and subscribe to all state changes\n\n\nfunction useRecoilSnapshot() {\n const storeRef = useStoreRef$3();\n const [snapshot, setSnapshot] = useState$2(() => cloneSnapshot$1(storeRef.current));\n const previousSnapshot = Recoil_usePrevious(snapshot);\n const timeoutID = useRef$5();\n const releaseRef = useRef$5();\n useTransactionSubscription(useCallback$2(store => setSnapshot(cloneSnapshot$1(store)), [])); // Retain snapshot for duration component is mounted\n\n useEffect$4(() => {\n const release = snapshot.retain(); // Release the retain from the rendering call\n\n if (timeoutID.current && !isSSR$4) {\n var _releaseRef$current;\n\n window.clearTimeout(timeoutID.current);\n timeoutID.current = null;\n (_releaseRef$current = releaseRef.current) === null || _releaseRef$current === void 0 ? void 0 : _releaseRef$current.call(releaseRef);\n releaseRef.current = null;\n }\n\n return () => {\n // Defer the release. If \"Fast Refresh\"\" is used then the component may\n // re-render with the same state. The previous cleanup will then run and\n // then the new effect will run. We don't want the snapshot to be released\n // by that cleanup before the new effect has a chance to retain it again.\n // Use timeout of 10 to workaround Firefox issue: https://github.com/facebookexperimental/Recoil/issues/1936\n window.setTimeout(release, 10);\n };\n }, [snapshot]); // Retain snapshot until above effect is run.\n // Release after a threshold in case component is suspended.\n\n if (previousSnapshot !== snapshot && !isSSR$4) {\n // Release the previous snapshot\n if (timeoutID.current) {\n var _releaseRef$current2;\n\n window.clearTimeout(timeoutID.current);\n timeoutID.current = null;\n (_releaseRef$current2 = releaseRef.current) === null || _releaseRef$current2 === void 0 ? void 0 : _releaseRef$current2.call(releaseRef);\n releaseRef.current = null;\n }\n\n releaseRef.current = snapshot.retain();\n timeoutID.current = window.setTimeout(() => {\n var _releaseRef$current3;\n\n timeoutID.current = null;\n (_releaseRef$current3 = releaseRef.current) === null || _releaseRef$current3 === void 0 ? void 0 : _releaseRef$current3.call(releaseRef);\n releaseRef.current = null;\n }, SUSPENSE_TIMEOUT_MS$2);\n }\n\n return snapshot;\n}\n\nfunction gotoSnapshot(store, snapshot) {\n var _storeState$nextTree;\n\n const storeState = store.getState();\n const prev = (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree;\n const next = snapshot.getStore_INTERNAL().getState().currentTree;\n batchUpdates$3(() => {\n const keysToUpdate = new Set();\n\n for (const keys of [prev.atomValues.keys(), next.atomValues.keys()]) {\n for (const key of keys) {\n var _prev$atomValues$get, _next$atomValues$get;\n\n if (((_prev$atomValues$get = prev.atomValues.get(key)) === null || _prev$atomValues$get === void 0 ? void 0 : _prev$atomValues$get.contents) !== ((_next$atomValues$get = next.atomValues.get(key)) === null || _next$atomValues$get === void 0 ? void 0 : _next$atomValues$get.contents) && getNode$4(key).shouldRestoreFromSnapshots) {\n keysToUpdate.add(key);\n }\n }\n }\n\n keysToUpdate.forEach(key => {\n setRecoilValueLoadable$1(store, new AbstractRecoilValue$4(key), next.atomValues.has(key) ? Recoil_nullthrows(next.atomValues.get(key)) : DEFAULT_VALUE$3);\n });\n store.replaceState(state => ({ ...state,\n stateID: snapshot.getID()\n }));\n });\n}\n\nfunction useGotoRecoilSnapshot() {\n const storeRef = useStoreRef$3();\n return useCallback$2(snapshot => gotoSnapshot(storeRef.current, snapshot), [storeRef]);\n}\n\nvar Recoil_SnapshotHooks = {\n useRecoilSnapshot,\n gotoSnapshot,\n useGotoRecoilSnapshot,\n useRecoilTransactionObserver,\n useTransactionObservation_DEPRECATED,\n useTransactionSubscription_DEPRECATED: useTransactionSubscription\n};\n\nconst {\n peekNodeInfo: peekNodeInfo$2\n} = Recoil_FunctionalCore;\n\nconst {\n useStoreRef: useStoreRef$4\n} = Recoil_RecoilRoot;\n\nfunction useGetRecoilValueInfo() {\n const storeRef = useStoreRef$4(); // $FlowFixMe[incompatible-return]\n\n return ({\n key\n }) => peekNodeInfo$2(storeRef.current, storeRef.current.getState().currentTree, key);\n}\n\nvar Recoil_useGetRecoilValueInfo = useGetRecoilValueInfo;\n\nconst {\n reactMode: reactMode$4\n} = Recoil_ReactMode;\n\nconst {\n RecoilRoot: RecoilRoot$1,\n useStoreRef: useStoreRef$5\n} = Recoil_RecoilRoot;\n\n\n\nconst {\n useMemo: useMemo$2\n} = react;\n\nfunction useRecoilBridgeAcrossReactRoots() {\n // The test fails when using useMutableSource(), but only if act() is used\n // for the nested root. So, this may only be a testing environment issue.\n if (reactMode$4().mode === 'MUTABLE_SOURCE') {\n // eslint-disable-next-line fb-www/no-console\n console.warn('Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.');\n }\n\n const store = useStoreRef$5().current;\n return useMemo$2(() => {\n // eslint-disable-next-line no-shadow\n function RecoilBridge({\n children\n }) {\n return /*#__PURE__*/react.createElement(RecoilRoot$1, {\n store_INTERNAL: store\n }, children);\n }\n\n return RecoilBridge;\n }, [store]);\n}\n\nvar Recoil_useRecoilBridgeAcrossReactRoots = useRecoilBridgeAcrossReactRoots;\n\nconst {\n loadableWithValue: loadableWithValue$1\n} = Recoil_Loadable$1;\n\nconst {\n initializeNode: initializeNode$3\n} = Recoil_FunctionalCore;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$4,\n getNode: getNode$5\n} = Recoil_Node;\n\nconst {\n copyTreeState: copyTreeState$1,\n getRecoilValueAsLoadable: getRecoilValueAsLoadable$3,\n invalidateDownstreams: invalidateDownstreams$1,\n writeLoadableToTreeState: writeLoadableToTreeState$1\n} = Recoil_RecoilValueInterface;\n\n\n\nfunction isAtom(recoilValue) {\n return getNode$5(recoilValue.key).nodeType === 'atom';\n}\n\nclass TransactionInterfaceImpl {\n constructor(store, treeState) {\n _defineProperty(this, \"_store\", void 0);\n\n _defineProperty(this, \"_treeState\", void 0);\n\n _defineProperty(this, \"_changes\", void 0);\n\n _defineProperty(this, \"get\", recoilValue => {\n if (this._changes.has(recoilValue.key)) {\n // $FlowIssue[incompatible-return]\n return this._changes.get(recoilValue.key);\n }\n\n if (!isAtom(recoilValue)) {\n throw Recoil_err('Reading selectors within atomicUpdate is not supported');\n }\n\n const loadable = getRecoilValueAsLoadable$3(this._store, recoilValue, this._treeState);\n\n if (loadable.state === 'hasValue') {\n return loadable.contents;\n } else if (loadable.state === 'hasError') {\n throw loadable.contents;\n } else {\n throw Recoil_err(`Expected Recoil atom ${recoilValue.key} to have a value, but it is in a loading state.`);\n }\n });\n\n _defineProperty(this, \"set\", (recoilState, valueOrUpdater) => {\n if (!isAtom(recoilState)) {\n throw Recoil_err('Setting selectors within atomicUpdate is not supported');\n }\n\n if (typeof valueOrUpdater === 'function') {\n const current = this.get(recoilState);\n\n this._changes.set(recoilState.key, valueOrUpdater(current)); // flowlint-line unclear-type:off\n\n } else {\n // Initialize atom and run effects if not initialized yet\n initializeNode$3(this._store, recoilState.key, 'set');\n\n this._changes.set(recoilState.key, valueOrUpdater);\n }\n });\n\n _defineProperty(this, \"reset\", recoilState => {\n this.set(recoilState, DEFAULT_VALUE$4);\n });\n\n this._store = store;\n this._treeState = treeState;\n this._changes = new Map();\n } // Allow destructing\n // eslint-disable-next-line fb-www/extra-arrow-initializer\n\n\n newTreeState_INTERNAL() {\n if (this._changes.size === 0) {\n return this._treeState;\n }\n\n const newState = copyTreeState$1(this._treeState);\n\n for (const [k, v] of this._changes) {\n writeLoadableToTreeState$1(newState, k, loadableWithValue$1(v));\n }\n\n invalidateDownstreams$1(this._store, newState);\n return newState;\n }\n\n}\n\nfunction atomicUpdater(store) {\n return fn => {\n store.replaceState(treeState => {\n const changeset = new TransactionInterfaceImpl(store, treeState);\n fn(changeset);\n return changeset.newTreeState_INTERNAL();\n });\n };\n}\n\nvar Recoil_AtomicUpdates = {\n atomicUpdater\n};\n\nvar Recoil_AtomicUpdates_1 = Recoil_AtomicUpdates.atomicUpdater;\n\nvar Recoil_AtomicUpdates$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n atomicUpdater: Recoil_AtomicUpdates_1\n});\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction invariant(condition, message) {\n if (!condition) {\n throw new Error(message);\n }\n}\n\nvar invariant_1 = invariant;\n\n// @oss-only\n\n\nvar Recoil_invariant = invariant_1;\n\nconst {\n atomicUpdater: atomicUpdater$1\n} = Recoil_AtomicUpdates$1;\n\nconst {\n batchUpdates: batchUpdates$4\n} = Recoil_Batching;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$5\n} = Recoil_Node;\n\nconst {\n useStoreRef: useStoreRef$6\n} = Recoil_RecoilRoot;\n\nconst {\n refreshRecoilValue: refreshRecoilValue$1,\n setRecoilValue: setRecoilValue$3\n} = Recoil_RecoilValueInterface;\n\nconst {\n cloneSnapshot: cloneSnapshot$2\n} = Recoil_Snapshot$1;\n\nconst {\n gotoSnapshot: gotoSnapshot$1\n} = Recoil_SnapshotHooks;\n\nconst {\n useCallback: useCallback$3\n} = react;\n\n\n\n\n\n\n\n\n\nclass Sentinel {}\n\nconst SENTINEL = new Sentinel();\n\nfunction recoilCallback(store, fn, args, extraInterface) {\n let ret = SENTINEL;\n let releaseSnapshot;\n batchUpdates$4(() => {\n const errMsg = 'useRecoilCallback() expects a function that returns a function: ' + 'it accepts a function of the type (RecoilInterface) => (Args) => ReturnType ' + 'and returns a callback function (Args) => ReturnType, where RecoilInterface is ' + 'an object {snapshot, set, ...} and Args and ReturnType are the argument and return ' + 'types of the callback you want to create. Please see the docs ' + 'at recoiljs.org for details.';\n\n if (typeof fn !== 'function') {\n throw Recoil_err(errMsg);\n } // Clone the snapshot lazily to avoid overhead if the callback does not use it.\n // Note that this means the snapshot may represent later state from when\n // the callback was called if it first accesses the snapshot asynchronously.\n\n\n const callbackInterface = Recoil_lazyProxy({ ...(extraInterface !== null && extraInterface !== void 0 ? extraInterface : {}),\n // flowlint-line unclear-type:off\n // $FlowFixMe[missing-local-annot]\n set: (node, newValue) => setRecoilValue$3(store, node, newValue),\n // $FlowFixMe[missing-local-annot]\n reset: node => setRecoilValue$3(store, node, DEFAULT_VALUE$5),\n // $FlowFixMe[missing-local-annot]\n refresh: node => refreshRecoilValue$1(store, node),\n gotoSnapshot: snapshot => gotoSnapshot$1(store, snapshot),\n transact_UNSTABLE: transaction => atomicUpdater$1(store)(transaction)\n }, {\n snapshot: () => {\n const snapshot = cloneSnapshot$2(store);\n releaseSnapshot = snapshot.retain();\n return snapshot;\n }\n });\n const callback = fn(callbackInterface);\n\n if (typeof callback !== 'function') {\n throw Recoil_err(errMsg);\n }\n\n ret = callback(...args);\n });\n !!(ret instanceof Sentinel) ? process.env.NODE_ENV !== \"production\" ? Recoil_invariant(false, 'batchUpdates should return immediately') : Recoil_invariant(false) : void 0;\n\n if (Recoil_isPromise(ret)) {\n ret = ret.finally(() => {\n var _releaseSnapshot;\n\n (_releaseSnapshot = releaseSnapshot) === null || _releaseSnapshot === void 0 ? void 0 : _releaseSnapshot();\n });\n } else {\n var _releaseSnapshot2;\n\n (_releaseSnapshot2 = releaseSnapshot) === null || _releaseSnapshot2 === void 0 ? void 0 : _releaseSnapshot2();\n }\n\n return ret;\n}\n\nfunction useRecoilCallback(fn, deps) {\n const storeRef = useStoreRef$6();\n return useCallback$3( // $FlowIssue[incompatible-call]\n (...args) => {\n return recoilCallback(storeRef.current, fn, args);\n }, deps != null ? [...deps, storeRef] : undefined // eslint-disable-line fb-www/react-hooks-deps\n );\n}\n\nvar Recoil_useRecoilCallback = {\n recoilCallback,\n useRecoilCallback\n};\n\nconst {\n useStoreRef: useStoreRef$7\n} = Recoil_RecoilRoot;\n\nconst {\n refreshRecoilValue: refreshRecoilValue$2\n} = Recoil_RecoilValueInterface;\n\nconst {\n useCallback: useCallback$4\n} = react;\n\nfunction useRecoilRefresher(recoilValue) {\n const storeRef = useStoreRef$7();\n return useCallback$4(() => {\n const store = storeRef.current;\n refreshRecoilValue$2(store, recoilValue);\n }, [recoilValue, storeRef]);\n}\n\nvar Recoil_useRecoilRefresher = useRecoilRefresher;\n\nconst {\n atomicUpdater: atomicUpdater$2\n} = Recoil_AtomicUpdates$1;\n\nconst {\n useStoreRef: useStoreRef$8\n} = Recoil_RecoilRoot;\n\nconst {\n useMemo: useMemo$3\n} = react;\n\nfunction useRecoilTransaction(fn, deps) {\n const storeRef = useStoreRef$8();\n return useMemo$3(() => (...args) => {\n const atomicUpdate = atomicUpdater$2(storeRef.current);\n atomicUpdate(transactionInterface => {\n fn(transactionInterface)(...args);\n });\n }, deps != null ? [...deps, storeRef] : undefined // eslint-disable-line fb-www/react-hooks-deps\n );\n}\n\nvar Recoil_useRecoilTransaction = useRecoilTransaction;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nclass WrappedValue {\n constructor(value) {\n _defineProperty(this, \"value\", void 0);\n\n this.value = value;\n }\n\n}\n\nvar Recoil_Wrapper = {\n WrappedValue\n};\n\nvar Recoil_Wrapper_1 = Recoil_Wrapper.WrappedValue;\n\nvar Recoil_Wrapper$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n WrappedValue: Recoil_Wrapper_1\n});\n\nconst {\n isFastRefreshEnabled: isFastRefreshEnabled$2\n} = Recoil_ReactMode;\n\n\n\nclass ChangedPathError extends Error {}\n\nclass TreeCache {\n // $FlowIssue[unclear-type]\n constructor(options) {\n var _options$onHit, _options$onSet, _options$mapNodeValue;\n\n _defineProperty(this, \"_name\", void 0);\n\n _defineProperty(this, \"_numLeafs\", void 0);\n\n _defineProperty(this, \"_root\", void 0);\n\n _defineProperty(this, \"_onHit\", void 0);\n\n _defineProperty(this, \"_onSet\", void 0);\n\n _defineProperty(this, \"_mapNodeValue\", void 0);\n\n this._name = options === null || options === void 0 ? void 0 : options.name;\n this._numLeafs = 0;\n this._root = null;\n this._onHit = (_options$onHit = options === null || options === void 0 ? void 0 : options.onHit) !== null && _options$onHit !== void 0 ? _options$onHit : () => {};\n this._onSet = (_options$onSet = options === null || options === void 0 ? void 0 : options.onSet) !== null && _options$onSet !== void 0 ? _options$onSet : () => {};\n this._mapNodeValue = (_options$mapNodeValue = options === null || options === void 0 ? void 0 : options.mapNodeValue) !== null && _options$mapNodeValue !== void 0 ? _options$mapNodeValue : val => val;\n }\n\n size() {\n return this._numLeafs;\n } // $FlowIssue[unclear-type]\n\n\n root() {\n return this._root;\n }\n\n get(getNodeValue, handlers) {\n var _this$getLeafNode;\n\n return (_this$getLeafNode = this.getLeafNode(getNodeValue, handlers)) === null || _this$getLeafNode === void 0 ? void 0 : _this$getLeafNode.value;\n }\n\n getLeafNode(getNodeValue, handlers) {\n if (this._root == null) {\n return undefined;\n } // Iterate down the tree based on the current node values until we hit a leaf\n // $FlowIssue[unclear-type]\n\n\n let node = this._root;\n\n while (node) {\n handlers === null || handlers === void 0 ? void 0 : handlers.onNodeVisit(node);\n\n if (node.type === 'leaf') {\n this._onHit(node);\n\n return node;\n }\n\n const nodeValue = this._mapNodeValue(getNodeValue(node.nodeKey));\n\n node = node.branches.get(nodeValue);\n }\n\n return undefined;\n }\n\n set(route, value, handlers) {\n const addLeaf = () => {\n var _node2, _node3, _this$_root2, _handlers$onNodeVisit2;\n\n // First, setup the branch nodes for the route:\n // Iterate down the tree to find or add branch nodes following the route\n let node;\n let branchKey;\n\n for (const [nodeKey, nodeValue] of route) {\n var _node, _handlers$onNodeVisit, _this$_root;\n\n // If the previous root was a leaf, while we not have a get(), it means\n // the selector has inconsistent values or implementation changed.\n const root = this._root;\n\n if ((root === null || root === void 0 ? void 0 : root.type) === 'leaf') {\n throw this.invalidCacheError();\n } // node now refers to the next node down in the tree\n\n\n const parent = node; // $FlowFixMe[prop-missing]\n // $FlowFixMe[incompatible-type]\n\n node = parent ? parent.branches.get(branchKey) : root; // $FlowFixMe[prop-missing]\n // $FlowFixMe[incompatible-type]\n\n node = (_node = node) !== null && _node !== void 0 ? _node : {\n type: 'branch',\n nodeKey,\n parent,\n branches: new Map(),\n branchKey\n }; // If we found an existing node, confirm it has a consistent value\n\n if (node.type !== 'branch' || node.nodeKey !== nodeKey) {\n throw this.invalidCacheError();\n } // Add the branch node to the tree\n\n\n parent === null || parent === void 0 ? void 0 : parent.branches.set(branchKey, node);\n handlers === null || handlers === void 0 ? void 0 : (_handlers$onNodeVisit = handlers.onNodeVisit) === null || _handlers$onNodeVisit === void 0 ? void 0 : _handlers$onNodeVisit.call(handlers, node); // Prepare for next iteration and install root if it is new.\n\n branchKey = this._mapNodeValue(nodeValue);\n this._root = (_this$_root = this._root) !== null && _this$_root !== void 0 ? _this$_root : node;\n } // Second, setup the leaf node:\n // If there is an existing leaf for this route confirm it is consistent\n\n\n const oldLeaf = node ? (_node2 = node) === null || _node2 === void 0 ? void 0 : _node2.branches.get(branchKey) : this._root;\n\n if (oldLeaf != null && (oldLeaf.type !== 'leaf' || oldLeaf.branchKey !== branchKey)) {\n throw this.invalidCacheError();\n } // Create a new or replacement leaf.\n\n\n const leafNode = {\n type: 'leaf',\n value,\n parent: node,\n branchKey\n }; // Install the leaf and call handlers\n\n (_node3 = node) === null || _node3 === void 0 ? void 0 : _node3.branches.set(branchKey, leafNode);\n this._root = (_this$_root2 = this._root) !== null && _this$_root2 !== void 0 ? _this$_root2 : leafNode;\n this._numLeafs++;\n\n this._onSet(leafNode);\n\n handlers === null || handlers === void 0 ? void 0 : (_handlers$onNodeVisit2 = handlers.onNodeVisit) === null || _handlers$onNodeVisit2 === void 0 ? void 0 : _handlers$onNodeVisit2.call(handlers, leafNode);\n };\n\n try {\n addLeaf();\n } catch (error) {\n // If the cache was stale or observed inconsistent values, such as with\n // Fast Refresh, then clear it and rebuild with the new values.\n if (error instanceof ChangedPathError) {\n this.clear();\n addLeaf();\n } else {\n throw error;\n }\n }\n } // Returns true if leaf was actually deleted from the tree\n\n\n delete(leaf) {\n const root = this.root();\n\n if (!root) {\n return false;\n }\n\n if (leaf === root) {\n this._root = null;\n this._numLeafs = 0;\n return true;\n } // Iterate up from the leaf deleteing it from it's parent's branches.\n\n\n let node = leaf.parent;\n let branchKey = leaf.branchKey;\n\n while (node) {\n var _node4;\n\n node.branches.delete(branchKey); // Stop iterating if we hit the root.\n\n if (node === root) {\n if (node.branches.size === 0) {\n this._root = null;\n this._numLeafs = 0;\n } else {\n this._numLeafs--;\n }\n\n return true;\n } // Stop iterating if there are other branches since we don't need to\n // remove any more nodes.\n\n\n if (node.branches.size > 0) {\n break;\n } // Iterate up to our parent\n\n\n branchKey = (_node4 = node) === null || _node4 === void 0 ? void 0 : _node4.branchKey;\n node = node.parent;\n } // Confirm that the leaf we are deleting is actually attached to our tree\n\n\n for (; node !== root; node = node.parent) {\n if (node == null) {\n return false;\n }\n }\n\n this._numLeafs--;\n return true;\n }\n\n clear() {\n this._numLeafs = 0;\n this._root = null;\n }\n\n invalidCacheError() {\n const CHANGED_PATH_ERROR_MESSAGE = isFastRefreshEnabled$2() ? 'Possible Fast Refresh module reload detected. ' + 'This may also be caused by an selector returning inconsistent values. ' + 'Resetting cache.' : 'Invalid cache values. This happens when selectors do not return ' + 'consistent values for the same input dependency values. That may also ' + 'be caused when using Fast Refresh to change a selector implementation. ' + 'Resetting cache.';\n Recoil_recoverableViolation(CHANGED_PATH_ERROR_MESSAGE + (this._name != null ? ` - ${this._name}` : ''));\n throw new ChangedPathError();\n }\n\n}\n\nvar Recoil_TreeCache = {\n TreeCache\n};\n\nvar Recoil_TreeCache_1 = Recoil_TreeCache.TreeCache;\n\nvar Recoil_TreeCache$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n TreeCache: Recoil_TreeCache_1\n});\n\nclass LRUCache {\n constructor(options) {\n var _options$mapKey;\n\n _defineProperty(this, \"_maxSize\", void 0);\n\n _defineProperty(this, \"_size\", void 0);\n\n _defineProperty(this, \"_head\", void 0);\n\n _defineProperty(this, \"_tail\", void 0);\n\n _defineProperty(this, \"_map\", void 0);\n\n _defineProperty(this, \"_keyMapper\", void 0);\n\n this._maxSize = options.maxSize;\n this._size = 0;\n this._head = null;\n this._tail = null;\n this._map = new Map();\n this._keyMapper = (_options$mapKey = options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : v => v;\n }\n\n head() {\n return this._head;\n }\n\n tail() {\n return this._tail;\n }\n\n size() {\n return this._size;\n }\n\n maxSize() {\n return this._maxSize;\n }\n\n has(key) {\n return this._map.has(this._keyMapper(key));\n }\n\n get(key) {\n const mappedKey = this._keyMapper(key);\n\n const node = this._map.get(mappedKey);\n\n if (!node) {\n return undefined;\n }\n\n this.set(key, node.value);\n return node.value;\n }\n\n set(key, val) {\n const mappedKey = this._keyMapper(key);\n\n const existingNode = this._map.get(mappedKey);\n\n if (existingNode) {\n this.delete(key);\n }\n\n const head = this.head();\n const node = {\n key,\n right: head,\n left: null,\n value: val\n };\n\n if (head) {\n head.left = node;\n } else {\n this._tail = node;\n }\n\n this._map.set(mappedKey, node);\n\n this._head = node;\n this._size++;\n\n this._maybeDeleteLRU();\n }\n\n _maybeDeleteLRU() {\n if (this.size() > this.maxSize()) {\n this.deleteLru();\n }\n }\n\n deleteLru() {\n const tail = this.tail();\n\n if (tail) {\n this.delete(tail.key);\n }\n }\n\n delete(key) {\n const mappedKey = this._keyMapper(key);\n\n if (!this._size || !this._map.has(mappedKey)) {\n return;\n }\n\n const node = Recoil_nullthrows(this._map.get(mappedKey));\n const right = node.right;\n const left = node.left;\n\n if (right) {\n right.left = node.left;\n }\n\n if (left) {\n left.right = node.right;\n }\n\n if (node === this.head()) {\n this._head = right;\n }\n\n if (node === this.tail()) {\n this._tail = left;\n }\n\n this._map.delete(mappedKey);\n\n this._size--;\n }\n\n clear() {\n this._size = 0;\n this._head = null;\n this._tail = null;\n this._map = new Map();\n }\n\n}\n\nvar Recoil_LRUCache = {\n LRUCache\n};\n\nvar Recoil_LRUCache_1 = Recoil_LRUCache.LRUCache;\n\nvar Recoil_LRUCache$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n LRUCache: Recoil_LRUCache_1\n});\n\nconst {\n LRUCache: LRUCache$1\n} = Recoil_LRUCache$1;\n\nconst {\n TreeCache: TreeCache$1\n} = Recoil_TreeCache$1;\n\nfunction treeCacheLRU({\n name,\n maxSize,\n mapNodeValue = v => v\n}) {\n const lruCache = new LRUCache$1({\n maxSize\n });\n const cache = new TreeCache$1({\n name,\n mapNodeValue,\n onHit: node => {\n lruCache.set(node, true);\n },\n onSet: node => {\n const lruNode = lruCache.tail();\n lruCache.set(node, true);\n\n if (lruNode && cache.size() > maxSize) {\n // $FlowFixMe[incompatible-call]\n cache.delete(lruNode.key);\n }\n }\n });\n return cache;\n}\n\nvar Recoil_treeCacheLRU = treeCacheLRU;\n\nconst TIME_WARNING_THRESHOLD_MS = 15;\n\nfunction stringify(x, opt, key) {\n // A optimization to avoid the more expensive JSON.stringify() for simple strings\n // This may lose protection for u2028 and u2029, though.\n if (typeof x === 'string' && !x.includes('\"') && !x.includes('\\\\')) {\n return `\"${x}\"`;\n } // Handle primitive types\n\n\n switch (typeof x) {\n case 'undefined':\n return '';\n // JSON.stringify(undefined) returns undefined, but we always want to return a string\n\n case 'boolean':\n return x ? 'true' : 'false';\n\n case 'number':\n case 'symbol':\n // case 'bigint': // BigInt is not supported in www\n return String(x);\n\n case 'string':\n // Add surrounding quotes and escape internal quotes\n return JSON.stringify(x);\n\n case 'function':\n if ((opt === null || opt === void 0 ? void 0 : opt.allowFunctions) !== true) {\n throw Recoil_err('Attempt to serialize function in a Recoil cache key');\n }\n\n return `__FUNCTION(${x.name})__`;\n }\n\n if (x === null) {\n return 'null';\n } // Fallback case for unknown types\n\n\n if (typeof x !== 'object') {\n var _JSON$stringify;\n\n return (_JSON$stringify = JSON.stringify(x)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : '';\n } // Deal with all promises as equivalent for now.\n\n\n if (Recoil_isPromise(x)) {\n return '__PROMISE__';\n } // Arrays handle recursive stringification\n\n\n if (Array.isArray(x)) {\n // $FlowFixMe[missing-local-annot]\n return `[${x.map((v, i) => stringify(v, opt, i.toString()))}]`;\n } // If an object defines a toJSON() method, then use that to override the\n // serialization. This matches the behavior of JSON.stringify().\n // Pass the key for compatibility.\n // Immutable.js collections define this method to allow us to serialize them.\n\n\n if (typeof x.toJSON === 'function') {\n // flowlint-next-line unclear-type: off\n return stringify(x.toJSON(key), opt, key);\n } // For built-in Maps, sort the keys in a stable order instead of the\n // default insertion order. Support non-string keys.\n\n\n if (x instanceof Map) {\n const obj = {};\n\n for (const [k, v] of x) {\n // Stringify will escape any nested quotes\n obj[typeof k === 'string' ? k : stringify(k, opt)] = v;\n }\n\n return stringify(obj, opt, key);\n } // For built-in Sets, sort the keys in a stable order instead of the\n // default insertion order.\n\n\n if (x instanceof Set) {\n return stringify( // $FlowFixMe[missing-local-annot]\n Array.from(x).sort((a, b) => stringify(a, opt).localeCompare(stringify(b, opt))), opt, key);\n } // Anything else that is iterable serialize as an Array.\n\n\n if (Symbol !== undefined && x[Symbol.iterator] != null && typeof x[Symbol.iterator] === 'function') {\n // flowlint-next-line unclear-type: off\n return stringify(Array.from(x), opt, key);\n } // For all other Objects, sort the keys in a stable order.\n\n\n return `{${Object.keys(x).filter(k => x[k] !== undefined).sort() // stringify the key to add quotes and escape any nested slashes or quotes.\n .map(k => `${stringify(k, opt)}:${stringify(x[k], opt, k)}`).join(',')}}`;\n} // Utility similar to JSON.stringify() except:\n// * Serialize built-in Sets as an Array\n// * Serialize built-in Maps as an Object. Supports non-string keys.\n// * Serialize other iterables as arrays\n// * Sort the keys of Objects and Maps to have a stable order based on string conversion.\n// This overrides their default insertion order.\n// * Still uses toJSON() of any object to override serialization\n// * Support Symbols (though don't guarantee uniqueness)\n// * We could support BigInt, but Flow doesn't seem to like it.\n// See Recoil_stableStringify-test.js for examples\n\n\nfunction stableStringify(x, opt = {\n allowFunctions: false\n}) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof window !== 'undefined') {\n const startTime = window.performance ? window.performance.now() : 0;\n const str = stringify(x, opt);\n const endTime = window.performance ? window.performance.now() : 0;\n\n if (endTime - startTime > TIME_WARNING_THRESHOLD_MS) {\n /* eslint-disable fb-www/no-console */\n console.groupCollapsed(`Recoil: Spent ${endTime - startTime}ms computing a cache key`);\n console.warn(x, str);\n console.groupEnd();\n /* eslint-enable fb-www/no-console */\n }\n\n return str;\n }\n }\n\n return stringify(x, opt);\n}\n\nvar Recoil_stableStringify = stableStringify;\n\nconst {\n TreeCache: TreeCache$2\n} = Recoil_TreeCache$1;\n\n\n\n\n\n\n\n\n\nconst defaultPolicy = {\n equality: 'reference',\n eviction: 'keep-all',\n maxSize: Infinity\n};\n\nfunction treeCacheFromPolicy({\n equality = defaultPolicy.equality,\n eviction = defaultPolicy.eviction,\n maxSize = defaultPolicy.maxSize\n} = defaultPolicy, name) {\n const valueMapper = getValueMapper(equality);\n return getTreeCache(eviction, maxSize, valueMapper, name);\n}\n\nfunction getValueMapper(equality) {\n switch (equality) {\n case 'reference':\n return val => val;\n\n case 'value':\n return val => Recoil_stableStringify(val);\n }\n\n throw Recoil_err(`Unrecognized equality policy ${equality}`);\n}\n\nfunction getTreeCache(eviction, maxSize, mapNodeValue, name) {\n switch (eviction) {\n case 'keep-all':\n return new TreeCache$2({\n name,\n mapNodeValue\n });\n\n case 'lru':\n return Recoil_treeCacheLRU({\n name,\n maxSize: Recoil_nullthrows(maxSize),\n mapNodeValue\n });\n\n case 'most-recent':\n return Recoil_treeCacheLRU({\n name,\n maxSize: 1,\n mapNodeValue\n });\n }\n\n throw Recoil_err(`Unrecognized eviction policy ${eviction}`);\n}\n\nvar Recoil_treeCacheFromPolicy = treeCacheFromPolicy;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction isNode(object) {\n var _ownerDocument, _doc$defaultView;\n\n if (typeof window === 'undefined') {\n return false;\n }\n\n const doc = object != null ? (_ownerDocument = object.ownerDocument) !== null && _ownerDocument !== void 0 ? _ownerDocument : object : document;\n const defaultView = (_doc$defaultView = doc.defaultView) !== null && _doc$defaultView !== void 0 ? _doc$defaultView : window;\n return !!(object != null && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));\n}\n\nvar Recoil_isNode = isNode;\n\nconst {\n isReactNative: isReactNative$1,\n isWindow: isWindow$1\n} = Recoil_Environment;\n\n\n\n\n\nfunction shouldNotBeFrozen(value) {\n // Primitives and functions:\n if (value === null || typeof value !== 'object') {\n return true;\n } // React elements:\n\n\n switch (typeof value.$$typeof) {\n case 'symbol':\n return true;\n\n case 'number':\n return true;\n } // Immutable structures:\n\n\n if (value['@@__IMMUTABLE_ITERABLE__@@'] != null || value['@@__IMMUTABLE_KEYED__@@'] != null || value['@@__IMMUTABLE_INDEXED__@@'] != null || value['@@__IMMUTABLE_ORDERED__@@'] != null || value['@@__IMMUTABLE_RECORD__@@'] != null) {\n return true;\n } // DOM nodes:\n\n\n if (Recoil_isNode(value)) {\n return true;\n }\n\n if (Recoil_isPromise(value)) {\n return true;\n }\n\n if (value instanceof Error) {\n return true;\n }\n\n if (ArrayBuffer.isView(value)) {\n return true;\n } // Some environments, just as Jest, don't work with the instanceof check\n\n\n if (!isReactNative$1 && isWindow$1(value)) {\n return true;\n }\n\n return false;\n} // Recursively freeze a value to enforce it is read-only.\n// This may also have minimal performance improvements for enumerating\n// objects (based on browser implementations, of course)\n\n\nfunction deepFreezeValue(value) {\n if (typeof value !== 'object' || shouldNotBeFrozen(value)) {\n return;\n }\n\n Object.freeze(value); // Make all properties read-only\n\n for (const key in value) {\n // $FlowIssue[method-unbinding] added when improving typing for this parameters\n if (Object.prototype.hasOwnProperty.call(value, key)) {\n const prop = value[key]; // Prevent infinite recurssion for circular references.\n\n if (typeof prop === 'object' && prop != null && !Object.isFrozen(prop)) {\n deepFreezeValue(prop);\n }\n }\n }\n\n Object.seal(value); // This also makes existing properties non-configurable.\n}\n\nvar Recoil_deepFreezeValue = deepFreezeValue;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This is a stub for some integration into FB internal stuff\n *\n * \n * @format\n * @oncall recoil\n */\nfunction startPerfBlock(_id) {\n return () => null;\n}\n\nvar Recoil_PerformanceTimings = {\n startPerfBlock\n};\n\nconst {\n isLoadable: isLoadable$1,\n loadableWithError: loadableWithError$1,\n loadableWithPromise: loadableWithPromise$1,\n loadableWithValue: loadableWithValue$2\n} = Recoil_Loadable$1;\n\nconst {\n WrappedValue: WrappedValue$1\n} = Recoil_Wrapper$1;\n\n\n\nconst {\n getNodeLoadable: getNodeLoadable$2,\n peekNodeLoadable: peekNodeLoadable$1,\n setNodeValue: setNodeValue$3\n} = Recoil_FunctionalCore;\n\nconst {\n saveDepsToStore: saveDepsToStore$1\n} = Recoil_Graph;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$6,\n getConfigDeletionHandler: getConfigDeletionHandler$1,\n getNode: getNode$6,\n registerNode: registerNode$1\n} = Recoil_Node;\n\nconst {\n isRecoilValue: isRecoilValue$3\n} = Recoil_RecoilValue$1;\n\nconst {\n markRecoilValueModified: markRecoilValueModified$1\n} = Recoil_RecoilValueInterface;\n\nconst {\n retainedByOptionWithDefault: retainedByOptionWithDefault$1\n} = Recoil_Retention;\n\nconst {\n recoilCallback: recoilCallback$1\n} = Recoil_useRecoilCallback;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst {\n startPerfBlock: startPerfBlock$1\n} = Recoil_PerformanceTimings;\n\n\n\nclass Canceled {}\n\nconst CANCELED = new Canceled();\n/**\n * An ExecutionID is an arbitrary ID that lets us distinguish executions from\n * each other. This is necessary as we need a way of solving this problem:\n * \"given 3 async executions, only update state for the 'latest' execution when\n * it finishes running regardless of when the other 2 finish\". ExecutionIDs\n * provide a convenient way of identifying executions so that we can track and\n * manage them over time.\n */\n\nconst dependencyStack = []; // for detecting circular dependencies.\n\nconst waitingStores = new Map();\n\nconst getNewExecutionID = (() => {\n let executionID = 0;\n return () => executionID++;\n})();\n/* eslint-disable no-redeclare */\n\n\nfunction selector(options) {\n let recoilValue = null;\n const {\n key,\n get,\n cachePolicy_UNSTABLE: cachePolicy\n } = options;\n const set = options.set != null ? options.set : undefined; // flow\n\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof key !== 'string') {\n throw Recoil_err('A key option with a unique string value must be provided when creating a selector.');\n }\n\n if (typeof get !== 'function') {\n throw Recoil_err('Selectors must specify a get callback option to get the selector value.');\n }\n } // This is every discovered dependency across all executions\n\n\n const discoveredDependencyNodeKeys = new Set();\n const cache = Recoil_treeCacheFromPolicy(cachePolicy !== null && cachePolicy !== void 0 ? cachePolicy : {\n equality: 'reference',\n eviction: 'keep-all'\n }, key);\n const retainedBy = retainedByOptionWithDefault$1(options.retainedBy_UNSTABLE);\n const executionInfoMap = new Map();\n let liveStoresCount = 0;\n\n function selectorIsLive() {\n return !Recoil_gkx('recoil_memory_managament_2020') || liveStoresCount > 0;\n }\n\n function selectorInit(store) {\n store.getState().knownSelectors.add(key);\n liveStoresCount++;\n return () => {\n liveStoresCount--;\n };\n }\n\n function selectorShouldDeleteConfigOnRelease() {\n return getConfigDeletionHandler$1(key) !== undefined && !selectorIsLive();\n }\n\n function resolveAsync(store, state, executionID, loadable, depValues) {\n setCache(state, loadable, depValues);\n notifyStoresOfResolvedAsync(store, executionID);\n }\n\n function notifyStoresOfResolvedAsync(store, executionID) {\n if (isLatestExecution(store, executionID)) {\n clearExecutionInfo(store);\n }\n\n notifyWaitingStores(executionID, true);\n }\n /**\n * Notify stores to pull the selector again if a new async dep was discovered.\n * 1) Async selector adds a new dep but doesn't resolve yet.\n * Note that deps for an async selector are based on the state when the\n * evaluation started, in order to provide a consistent picture of state.\n * 2) But, new value of dep based on the current state might cause the selector\n * to resolve or resolve differently.\n * 3) Therefore, this notification will pull the selector based on the current\n * state for the components\n */\n\n\n function notifyStoresOfNewAsyncDep(store, executionID) {\n if (isLatestExecution(store, executionID)) {\n const executionInfo = Recoil_nullthrows(getExecutionInfo(store));\n executionInfo.stateVersions.clear();\n notifyWaitingStores(executionID, false);\n }\n }\n\n function notifyWaitingStores(executionID, clearWaitlist) {\n const stores = waitingStores.get(executionID);\n\n if (stores != null) {\n for (const waitingStore of stores) {\n markRecoilValueModified$1(waitingStore, Recoil_nullthrows(recoilValue));\n }\n\n if (clearWaitlist) {\n waitingStores.delete(executionID);\n }\n }\n }\n\n function markStoreWaitingForResolvedAsync(store, executionID) {\n let stores = waitingStores.get(executionID);\n\n if (stores == null) {\n waitingStores.set(executionID, stores = new Set());\n }\n\n stores.add(store);\n }\n /**\n * This function attaches a then() and a catch() to a promise that was\n * returned from a selector's get() (either explicitly or implicitly by\n * running a function that uses the \"async\" keyword). If a selector's get()\n * returns a promise, we have two possibilities:\n *\n * 1. The promise will resolve, in which case it will have completely finished\n * executing without any remaining pending dependencies. No more retries\n * are needed and we can proceed with updating the cache and notifying\n * subscribers (if it is the latest execution, otherwise only the cache\n * will be updated and subscriptions will not be fired). This is the case\n * handled by the attached then() handler.\n *\n * 2. The promise will throw because it either has an error or it came across\n * an async dependency that has not yet resolved, in which case we will\n * call wrapDepdencyPromise(), whose responsibility is to handle dependency\n * promises. This case is handled by the attached catch() handler.\n *\n * Both branches will eventually resolve to the final result of the selector\n * (or an error if a real error occurred).\n *\n * The execution will run to completion even if it is stale, and its value\n * will be cached. But stale executions will not update global state or update\n * executionInfo as that is the responsibility of the 'latest' execution.\n *\n * Note this function should not be passed a promise that was thrown--AKA a\n * dependency promise. Dependency promises should be passed to\n * wrapPendingDependencyPromise()).\n */\n\n\n function wrapResultPromise(store, promise, state, depValues, executionID, loadingDepsState) {\n return promise.then(value => {\n if (!selectorIsLive()) {\n // The selector was released since the request began; ignore the response.\n clearExecutionInfo(store);\n throw CANCELED;\n }\n\n const loadable = loadableWithValue$2(value);\n resolveAsync(store, state, executionID, loadable, depValues);\n return value;\n }).catch(errorOrPromise => {\n if (!selectorIsLive()) {\n // The selector was released since the request began; ignore the response.\n clearExecutionInfo(store);\n throw CANCELED;\n }\n\n if (Recoil_isPromise(errorOrPromise)) {\n return wrapPendingDependencyPromise(store, errorOrPromise, state, depValues, executionID, loadingDepsState);\n }\n\n const loadable = loadableWithError$1(errorOrPromise);\n resolveAsync(store, state, executionID, loadable, depValues);\n throw errorOrPromise;\n });\n }\n /**\n * This function attaches a then() and a catch() to a promise that was\n * thrown from a selector's get(). If a selector's get() throws a promise,\n * we have two possibilities:\n *\n * 1. The promise will resolve, meaning one of our selector's dependencies is\n * now available and we should \"retry\" our get() by running it again. This\n * is the case handled by the attached then() handler.\n *\n * 2. The promise will throw because something went wrong with the dependency\n * promise (in other words a real error occurred). This case is handled by\n * the attached catch() handler. If the dependency promise throws, it is\n * _always_ a real error and not another dependency promise (any dependency\n * promises would have been handled upstream).\n *\n * The then() branch will eventually resolve to the final result of the\n * selector (or an error if a real error occurs), and the catch() will always\n * resolve to an error because the dependency promise is a promise that was\n * wrapped upstream, meaning it will only resolve to its real value or to a\n * real error.\n *\n * The execution will run to completion even if it is stale, and its value\n * will be cached. But stale executions will not update global state or update\n * executionInfo as that is the responsibility of the 'latest' execution.\n *\n * Note this function should not be passed a promise that was returned from\n * get(). The intention is that this function is only passed promises that\n * were thrown due to a pending dependency. Promises returned by get() should\n * be passed to wrapResultPromise() instead.\n */\n\n\n function wrapPendingDependencyPromise(store, promise, state, existingDeps, executionID, loadingDepsState) {\n return promise.then(resolvedDep => {\n if (!selectorIsLive()) {\n // The selector was released since the request began; ignore the response.\n clearExecutionInfo(store);\n throw CANCELED;\n } // Check if we are handling a pending Recoil dependency or if the user\n // threw their own Promise to \"suspend\" a selector evaluation. We need\n // to check that the loadingDepPromise actually matches the promise that\n // we caught in case the selector happened to catch the promise we threw\n // for a pending Recoil dependency from `getRecoilValue()` and threw\n // their own promise instead.\n\n\n if (loadingDepsState.loadingDepKey != null && loadingDepsState.loadingDepPromise === promise) {\n /**\n * Note for async atoms, this means we are changing the atom's value\n * in the store for the given version. This should be alright because\n * the version of state is now stale and a new version will have\n * already been triggered by the atom being resolved (see this logic\n * in Recoil_atom.js)\n */\n state.atomValues.set(loadingDepsState.loadingDepKey, loadableWithValue$2(resolvedDep));\n } else {\n /**\n * If resolvedDepKey is not defined, the promise was a user-thrown\n * promise. User-thrown promises are an advanced feature and they\n * should be avoided in almost all cases. Using `loadable.map()` inside\n * of selectors for loading loadables and then throwing that mapped\n * loadable's promise is an example of a user-thrown promise.\n *\n * When we hit a user-thrown promise, we have to bail out of an optimization\n * where we bypass calculating selector cache keys for selectors that\n * have been previously seen for a given state (these selectors are saved in\n * state.atomValues) to avoid stale state as we have no way of knowing\n * what state changes happened (if any) in result to the promise resolving.\n *\n * Ideally we would only bail out selectors that are in the chain of\n * dependencies for this selector, but there's currently no way to get\n * a full list of a selector's downstream nodes because the state that\n * is executing may be a discarded tree (so store.getGraph(state.version)\n * will be empty), and the full dep tree may not be in the selector\n * caches in the case where the selector's cache was cleared. To solve\n * for this we would have to keep track of all running selector\n * executions and their downstream deps. Because this only covers edge\n * cases, that complexity might not be justifyable.\n */\n store.getState().knownSelectors.forEach(nodeKey => {\n state.atomValues.delete(nodeKey);\n });\n }\n /**\n * Optimization: Now that the dependency has resolved, let's try hitting\n * the cache in case the dep resolved to a value we have previously seen.\n *\n * TODO:\n * Note this optimization is not perfect because it only prevents re-executions\n * _after_ the point where an async dependency is found. Any code leading\n * up to the async dependency may have run unnecessarily. The ideal case\n * would be to wait for the async dependency to resolve first, check the\n * cache, and prevent _any_ execution of the selector if the resulting\n * value of the dependency leads to a path that is found in the cache.\n * The ideal case is more difficult to implement as it would require that\n * we capture and wait for the the async dependency right after checking\n * the cache. The current approach takes advantage of the fact that running\n * the selector already has a code path that lets us exit early when\n * an async dep resolves.\n */\n\n\n const cachedLoadable = getLoadableFromCacheAndUpdateDeps(store, state);\n\n if (cachedLoadable && cachedLoadable.state !== 'loading') {\n /**\n * This has to notify stores of a resolved async, even if there is no\n * current pending execution for the following case:\n * 1) A component renders with this pending loadable.\n * 2) The upstream dependency resolves.\n * 3) While processing some other selector it reads this one, such as\n * while traversing its dependencies. At this point it gets the\n * new resolved value synchronously and clears the current\n * execution ID. The component wasn't getting the value itself,\n * though, so it still has the pending loadable.\n * 4) When this code executes the current execution id was cleared\n * and it wouldn't notify the component of the new value.\n *\n * I think this is only an issue with \"early\" rendering since the\n * components got their value using the in-progress execution.\n * We don't have a unit test for this case yet. I'm not sure it is\n * necessary with recoil_transition_support mode.\n */\n if (isLatestExecution(store, executionID) || getExecutionInfo(store) == null) {\n notifyStoresOfResolvedAsync(store, executionID);\n }\n\n if (cachedLoadable.state === 'hasValue') {\n return cachedLoadable.contents;\n } else {\n throw cachedLoadable.contents;\n }\n }\n /**\n * If this execution is stale, let's check to see if there is some in\n * progress execution with a matching state. If we find a match, then\n * we can take the value from that in-progress execution. Note this may\n * sound like an edge case, but may be very common in cases where a\n * loading dependency resolves from loading to having a value (thus\n * possibly triggering a re-render), and React re-renders before the\n * chained .then() functions run, thus starting a new execution as the\n * dep has changed value. Without this check we will run the selector\n * twice (once in the new execution and once again in this .then(), so\n * this check is necessary to keep unnecessary re-executions to a\n * minimum).\n *\n * Also note this code does not check across all executions that may be\n * running. It only optimizes for the _latest_ execution per store as\n * we currently do not maintain a list of all currently running executions.\n * This means in some cases we may run selectors more than strictly\n * necessary when there are multiple executions running for the same\n * selector. This may be a valid tradeoff as checking for dep changes\n * across all in-progress executions may take longer than just\n * re-running the selector. This will be app-dependent, and maybe in the\n * future we can make the behavior configurable. An ideal fix may be\n * to extend the tree cache to support caching loading states.\n */\n\n\n if (!isLatestExecution(store, executionID)) {\n const executionInfo = getInProgressExecutionInfo(store, state);\n\n if (executionInfo != null) {\n /**\n * Returning promise here without wrapping as the wrapper logic was\n * already done upstream when this promise was generated.\n */\n return executionInfo.loadingLoadable.contents;\n }\n } // Retry the selector evaluation now that the dependency has resolved\n\n\n const [loadable, depValues] = evaluateSelectorGetter(store, state, executionID);\n\n if (loadable.state !== 'loading') {\n resolveAsync(store, state, executionID, loadable, depValues);\n }\n\n if (loadable.state === 'hasError') {\n throw loadable.contents;\n }\n\n return loadable.contents;\n }).catch(error => {\n // The selector was released since the request began; ignore the response.\n if (error instanceof Canceled) {\n throw CANCELED;\n }\n\n if (!selectorIsLive()) {\n clearExecutionInfo(store);\n throw CANCELED;\n }\n\n const loadable = loadableWithError$1(error);\n resolveAsync(store, state, executionID, loadable, existingDeps);\n throw error;\n });\n }\n\n function updateDeps(store, state, deps, executionID) {\n var _store$getState, _store$getState$curre, _store$getState2, _store$getState2$next;\n\n if (isLatestExecution(store, executionID) || state.version === ((_store$getState = store.getState()) === null || _store$getState === void 0 ? void 0 : (_store$getState$curre = _store$getState.currentTree) === null || _store$getState$curre === void 0 ? void 0 : _store$getState$curre.version) || state.version === ((_store$getState2 = store.getState()) === null || _store$getState2 === void 0 ? void 0 : (_store$getState2$next = _store$getState2.nextTree) === null || _store$getState2$next === void 0 ? void 0 : _store$getState2$next.version)) {\n var _store$getState$nextT, _store$getState3, _store$getState3$next;\n\n saveDepsToStore$1(key, deps, store, (_store$getState$nextT = (_store$getState3 = store.getState()) === null || _store$getState3 === void 0 ? void 0 : (_store$getState3$next = _store$getState3.nextTree) === null || _store$getState3$next === void 0 ? void 0 : _store$getState3$next.version) !== null && _store$getState$nextT !== void 0 ? _store$getState$nextT : store.getState().currentTree.version);\n }\n\n for (const nodeKey of deps) {\n discoveredDependencyNodeKeys.add(nodeKey);\n }\n }\n\n function evaluateSelectorGetter(store, state, executionID) {\n const endPerfBlock = startPerfBlock$1(key); // TODO T63965866: use execution ID here\n\n let duringSynchronousExecution = true;\n let duringAsynchronousExecution = true;\n\n const finishEvaluation = () => {\n endPerfBlock();\n duringAsynchronousExecution = false;\n };\n\n let result;\n let resultIsError = false;\n let loadable;\n const loadingDepsState = {\n loadingDepKey: null,\n loadingDepPromise: null\n };\n /**\n * Starting a fresh set of deps that we'll be using to update state. We're\n * starting a new set versus adding it in existing state deps because\n * the version of state that we update deps for may be a more recent version\n * than the version the selector was called with. This is because the latest\n * execution will update the deps of the current/latest version of state\n * (This is safe to do because the fact that the selector is the latest\n * execution means the deps we discover below are our best guess at the\n * deps for the current/latest state in the store)\n */\n\n const depValues = new Map();\n\n function getRecoilValue({\n key: depKey\n }) {\n const depLoadable = getNodeLoadable$2(store, state, depKey);\n depValues.set(depKey, depLoadable); // We need to update asynchronous dependencies as we go so the selector\n // knows if it has to restart evaluation if one of them is updated before\n // the asynchronous selector completely resolves.\n\n if (!duringSynchronousExecution) {\n updateDeps(store, state, new Set(depValues.keys()), executionID);\n notifyStoresOfNewAsyncDep(store, executionID);\n }\n\n switch (depLoadable.state) {\n case 'hasValue':\n return depLoadable.contents;\n\n case 'hasError':\n throw depLoadable.contents;\n\n case 'loading':\n loadingDepsState.loadingDepKey = depKey;\n loadingDepsState.loadingDepPromise = depLoadable.contents;\n throw depLoadable.contents;\n }\n\n throw Recoil_err('Invalid Loadable state');\n }\n\n const getCallback = fn => {\n return (...args) => {\n if (duringAsynchronousExecution) {\n throw Recoil_err('Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.');\n }\n\n !(recoilValue != null) ? process.env.NODE_ENV !== \"production\" ? Recoil_invariant(false, 'Recoil Value can never be null') : Recoil_invariant(false) : void 0;\n return recoilCallback$1(store, fn, args, {\n node: recoilValue\n } // flowlint-line unclear-type:off\n );\n };\n };\n\n try {\n result = get({\n get: getRecoilValue,\n getCallback\n });\n result = isRecoilValue$3(result) ? getRecoilValue(result) : result;\n\n if (isLoadable$1(result)) {\n if (result.state === 'hasError') {\n resultIsError = true;\n }\n\n result = result.contents;\n }\n\n if (Recoil_isPromise(result)) {\n result = wrapResultPromise(store, result, state, depValues, executionID, loadingDepsState).finally(finishEvaluation);\n } else {\n finishEvaluation();\n }\n\n result = result instanceof WrappedValue$1 ? result.value : result;\n } catch (errorOrDepPromise) {\n result = errorOrDepPromise;\n\n if (Recoil_isPromise(result)) {\n result = wrapPendingDependencyPromise(store, result, state, depValues, executionID, loadingDepsState).finally(finishEvaluation);\n } else {\n resultIsError = true;\n finishEvaluation();\n }\n }\n\n if (resultIsError) {\n loadable = loadableWithError$1(result);\n } else if (Recoil_isPromise(result)) {\n loadable = loadableWithPromise$1(result);\n } else {\n loadable = loadableWithValue$2(result);\n }\n\n duringSynchronousExecution = false;\n updateExecutionInfoDepValues(store, executionID, depValues);\n updateDeps(store, state, new Set(depValues.keys()), executionID);\n return [loadable, depValues];\n }\n\n function getLoadableFromCacheAndUpdateDeps(store, state) {\n // First, look up in the state cache\n // If it's here, then the deps in the store should already be valid.\n let cachedLoadable = state.atomValues.get(key);\n\n if (cachedLoadable != null) {\n return cachedLoadable;\n } // Second, look up in the selector cache and update the deps in the store\n\n\n const depsAfterCacheLookup = new Set();\n\n try {\n cachedLoadable = cache.get(nodeKey => {\n !(typeof nodeKey === 'string') ? process.env.NODE_ENV !== \"production\" ? Recoil_invariant(false, 'Cache nodeKey is type string') : Recoil_invariant(false) : void 0;\n return getNodeLoadable$2(store, state, nodeKey).contents;\n }, {\n onNodeVisit: node => {\n if (node.type === 'branch' && node.nodeKey !== key) {\n depsAfterCacheLookup.add(node.nodeKey);\n }\n }\n });\n } catch (error) {\n throw Recoil_err(`Problem with cache lookup for selector \"${key}\": ${error.message}`);\n }\n\n if (cachedLoadable) {\n var _getExecutionInfo;\n\n // Cache the results in the state to allow for cheaper lookup than\n // iterating the tree cache of dependencies.\n state.atomValues.set(key, cachedLoadable);\n /**\n * Ensure store contains correct dependencies if we hit the cache so that\n * the store deps and cache are in sync for a given state. This is important\n * because store deps are normally updated when new executions are created,\n * but cache hits don't trigger new executions but they still _may_ signify\n * a change in deps in the store if the store deps for this state are empty\n * or stale.\n */\n\n updateDeps(store, state, depsAfterCacheLookup, (_getExecutionInfo = getExecutionInfo(store)) === null || _getExecutionInfo === void 0 ? void 0 : _getExecutionInfo.executionID);\n }\n\n return cachedLoadable;\n }\n /**\n * Given a tree state, this function returns a Loadable of the current state.\n *\n * The selector's get() function will only be re-evaluated if _both_ of the\n * following statements are true:\n *\n * 1. The current dep values from the given state produced a cache key that\n * was not found in the cache.\n * 2. There is no currently running async execution OR there is an\n * async execution that is running, but after comparing the dep values in\n * the given state with the dep values that the execution has discovered so\n * far we find that at least one dep value has changed, in which case we\n * start a new execution (the previously running execution will continue to\n * run to completion, but only the new execution will be deemed the\n * 'latest' execution, meaning it will be the only execution that will\n * update global state when it is finished. Any non-latest executions will\n * run to completion and update the selector cache but not global state).\n */\n\n\n function getSelectorLoadableAndUpdateDeps(store, state) {\n // First, see if our current state is cached\n const cachedVal = getLoadableFromCacheAndUpdateDeps(store, state);\n\n if (cachedVal != null) {\n clearExecutionInfo(store);\n return cachedVal;\n } // Second, check if there is already an ongoing execution based on the current state\n\n\n const inProgressExecutionInfo = getInProgressExecutionInfo(store, state);\n\n if (inProgressExecutionInfo != null) {\n var _inProgressExecutionI;\n\n if (((_inProgressExecutionI = inProgressExecutionInfo.loadingLoadable) === null || _inProgressExecutionI === void 0 ? void 0 : _inProgressExecutionI.state) === 'loading') {\n markStoreWaitingForResolvedAsync(store, inProgressExecutionInfo.executionID);\n } // FIXME: check after the fact to see if we made the right choice by waiting\n\n\n return inProgressExecutionInfo.loadingLoadable;\n } // Third, start a new evaluation of the selector\n\n\n const newExecutionID = getNewExecutionID();\n const [loadable, newDepValues] = evaluateSelectorGetter(store, state, newExecutionID);\n /**\n * Conditionally updates the cache with a given loadable.\n *\n * We only cache loadables that are not loading because our cache keys are\n * based on dep values, which are in an unfinished state for loadables that\n * have a 'loading' state (new deps may be discovered while the selector\n * runs its async code). We never want to cache partial dependencies b/c it\n * could lead to errors, such as prematurely returning the result based on a\n * partial list of deps-- we need the full list of deps to ensure that we\n * are returning the correct result from cache.\n */\n\n if (loadable.state === 'loading') {\n setExecutionInfo(store, newExecutionID, loadable, newDepValues, state);\n markStoreWaitingForResolvedAsync(store, newExecutionID);\n } else {\n clearExecutionInfo(store);\n setCache(state, loadable, newDepValues);\n }\n\n return loadable;\n }\n /**\n * Searches execution info across all stores to see if there is an in-progress\n * execution whose dependency values match the values of the requesting store.\n */\n\n\n function getInProgressExecutionInfo(store, state) {\n // Sort the pending executions so that our current store is checked first.\n const pendingExecutions = Recoil_concatIterables([executionInfoMap.has(store) ? [Recoil_nullthrows(executionInfoMap.get(store))] : [], Recoil_mapIterable(Recoil_filterIterable(executionInfoMap, ([s]) => s !== store), ([, execInfo]) => execInfo)]);\n\n function anyDepChanged(execDepValues) {\n for (const [depKey, execLoadable] of execDepValues) {\n if (!getNodeLoadable$2(store, state, depKey).is(execLoadable)) {\n return true;\n }\n }\n\n return false;\n }\n\n for (const execInfo of pendingExecutions) {\n if ( // If this execution was already checked to be valid with this version\n // of state, then let's use it!\n execInfo.stateVersions.get(state.version) || // If the deps for the execution match our current state, then it's valid\n !anyDepChanged(execInfo.depValuesDiscoveredSoFarDuringAsyncWork)) {\n execInfo.stateVersions.set(state.version, true);\n return execInfo;\n } else {\n execInfo.stateVersions.set(state.version, false);\n }\n }\n\n return undefined;\n }\n\n function getExecutionInfo(store) {\n return executionInfoMap.get(store);\n }\n /**\n * This function will update the selector's execution info when the selector\n * has either finished running an execution or has started a new execution. If\n * the given loadable is in a 'loading' state, the intention is that a new\n * execution has started. Otherwise, the intention is that an execution has\n * just finished.\n */\n\n\n function setExecutionInfo(store, newExecutionID, loadable, depValues, state) {\n executionInfoMap.set(store, {\n depValuesDiscoveredSoFarDuringAsyncWork: depValues,\n executionID: newExecutionID,\n loadingLoadable: loadable,\n stateVersions: new Map([[state.version, true]])\n });\n }\n\n function updateExecutionInfoDepValues(store, executionID, depValues) {\n // We only need to bother updating the deps for the latest execution because\n // that's all getInProgressExecutionInfo() will be looking for.\n if (isLatestExecution(store, executionID)) {\n const executionInfo = getExecutionInfo(store);\n\n if (executionInfo != null) {\n executionInfo.depValuesDiscoveredSoFarDuringAsyncWork = depValues;\n }\n }\n }\n\n function clearExecutionInfo(store) {\n executionInfoMap.delete(store);\n }\n\n function isLatestExecution(store, executionID) {\n var _getExecutionInfo2;\n\n return executionID === ((_getExecutionInfo2 = getExecutionInfo(store)) === null || _getExecutionInfo2 === void 0 ? void 0 : _getExecutionInfo2.executionID);\n }\n /**\n * FIXME: dep keys should take into account the state of the loadable to\n * prevent the edge case where a loadable with an error and a loadable with\n * an error as a value are treated as the same thing incorrectly. For example\n * these two should be treated differently:\n *\n * selector({key: '', get: () => new Error('hi')});\n * selector({key: '', get () => {throw new Error('hi')}});\n *\n * With current implementation they are treated the same\n */\n\n\n function depValuesToDepRoute(depValues) {\n return Array.from(depValues.entries()).map(([depKey, valLoadable]) => [depKey, valLoadable.contents]);\n }\n\n function setCache(state, loadable, depValues) {\n if (process.env.NODE_ENV !== \"production\") {\n if (loadable.state !== 'loading' && Boolean(options.dangerouslyAllowMutability) === false) {\n Recoil_deepFreezeValue(loadable.contents);\n }\n }\n\n state.atomValues.set(key, loadable);\n\n try {\n cache.set(depValuesToDepRoute(depValues), loadable);\n } catch (error) {\n throw Recoil_err(`Problem with setting cache for selector \"${key}\": ${error.message}`);\n }\n }\n\n function detectCircularDependencies(fn) {\n if (dependencyStack.includes(key)) {\n const message = `Recoil selector has circular dependencies: ${dependencyStack.slice(dependencyStack.indexOf(key)).join(' \\u2192 ')}`;\n return loadableWithError$1(Recoil_err(message));\n }\n\n dependencyStack.push(key);\n\n try {\n return fn();\n } finally {\n dependencyStack.pop();\n }\n }\n\n function selectorPeek(store, state) {\n const cachedLoadable = state.atomValues.get(key);\n\n if (cachedLoadable != null) {\n return cachedLoadable;\n }\n\n return cache.get(nodeKey => {\n var _peekNodeLoadable;\n\n !(typeof nodeKey === 'string') ? process.env.NODE_ENV !== \"production\" ? Recoil_invariant(false, 'Cache nodeKey is type string') : Recoil_invariant(false) : void 0;\n return (_peekNodeLoadable = peekNodeLoadable$1(store, state, nodeKey)) === null || _peekNodeLoadable === void 0 ? void 0 : _peekNodeLoadable.contents;\n });\n }\n\n function selectorGet(store, state) {\n return detectCircularDependencies(() => getSelectorLoadableAndUpdateDeps(store, state));\n }\n\n function invalidateSelector(state) {\n state.atomValues.delete(key);\n }\n\n function clearSelectorCache(store, treeState) {\n !(recoilValue != null) ? process.env.NODE_ENV !== \"production\" ? Recoil_invariant(false, 'Recoil Value can never be null') : Recoil_invariant(false) : void 0;\n\n for (const nodeKey of discoveredDependencyNodeKeys) {\n var _node$clearCache;\n\n const node = getNode$6(nodeKey);\n (_node$clearCache = node.clearCache) === null || _node$clearCache === void 0 ? void 0 : _node$clearCache.call(node, store, treeState);\n }\n\n discoveredDependencyNodeKeys.clear();\n invalidateSelector(treeState);\n cache.clear();\n markRecoilValueModified$1(store, recoilValue);\n }\n\n if (set != null) {\n /**\n * ES5 strict mode prohibits defining non-top-level function declarations,\n * so don't use function declaration syntax here\n */\n const selectorSet = (store, state, newValue) => {\n let syncSelectorSetFinished = false;\n const writes = new Map();\n\n function getRecoilValue({\n key: depKey\n }) {\n if (syncSelectorSetFinished) {\n throw Recoil_err('Recoil: Async selector sets are not currently supported.');\n }\n\n const loadable = getNodeLoadable$2(store, state, depKey);\n\n if (loadable.state === 'hasValue') {\n return loadable.contents;\n } else if (loadable.state === 'loading') {\n const msg = `Getting value of asynchronous atom or selector \"${depKey}\" in a pending state while setting selector \"${key}\" is not yet supported.`;\n Recoil_recoverableViolation(msg);\n throw Recoil_err(msg);\n } else {\n throw loadable.contents;\n }\n }\n\n function setRecoilState(recoilState, valueOrUpdater // $FlowFixMe[missing-local-annot]\n ) {\n if (syncSelectorSetFinished) {\n const msg = 'Recoil: Async selector sets are not currently supported.';\n Recoil_recoverableViolation(msg);\n throw Recoil_err(msg);\n }\n\n const setValue = typeof valueOrUpdater === 'function' ? // cast to any because we can't restrict type S from being a function itself without losing support for opaque types\n // flowlint-next-line unclear-type:off\n valueOrUpdater(getRecoilValue(recoilState)) : valueOrUpdater;\n const upstreamWrites = setNodeValue$3(store, state, recoilState.key, setValue);\n upstreamWrites.forEach((v, k) => writes.set(k, v));\n }\n\n function resetRecoilState(recoilState) {\n setRecoilState(recoilState, DEFAULT_VALUE$6);\n }\n\n const ret = set({\n set: setRecoilState,\n get: getRecoilValue,\n reset: resetRecoilState\n }, newValue); // set should be a void method, but if the user makes it `async`, then it\n // will return a Promise, which we don't currently support.\n\n if (ret !== undefined) {\n throw Recoil_isPromise(ret) ? Recoil_err('Recoil: Async selector sets are not currently supported.') : Recoil_err('Recoil: selector set should be a void function.');\n }\n\n syncSelectorSetFinished = true;\n return writes;\n };\n\n return recoilValue = registerNode$1({\n key,\n nodeType: 'selector',\n peek: selectorPeek,\n get: selectorGet,\n set: selectorSet,\n init: selectorInit,\n invalidate: invalidateSelector,\n clearCache: clearSelectorCache,\n shouldDeleteConfigOnRelease: selectorShouldDeleteConfigOnRelease,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n shouldRestoreFromSnapshots: false,\n retainedBy\n });\n } else {\n return recoilValue = registerNode$1({\n key,\n nodeType: 'selector',\n peek: selectorPeek,\n get: selectorGet,\n init: selectorInit,\n invalidate: invalidateSelector,\n clearCache: clearSelectorCache,\n shouldDeleteConfigOnRelease: selectorShouldDeleteConfigOnRelease,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n shouldRestoreFromSnapshots: false,\n retainedBy\n });\n }\n}\n/* eslint-enable no-redeclare */\n// $FlowIssue[incompatible-use]\n// $FlowFixMe[missing-local-annot]\n\n\nselector.value = value => new WrappedValue$1(value);\n\nvar Recoil_selector = selector;\n\n// @fb-only: import type {ScopeRules} from 'Recoil_ScopedAtom';\n// @fb-only: const {scopedAtom} = require('Recoil_ScopedAtom');\nconst {\n isLoadable: isLoadable$2,\n loadableWithError: loadableWithError$2,\n loadableWithPromise: loadableWithPromise$2,\n loadableWithValue: loadableWithValue$3\n} = Recoil_Loadable$1;\n\nconst {\n WrappedValue: WrappedValue$2\n} = Recoil_Wrapper$1;\n\nconst {\n peekNodeInfo: peekNodeInfo$3\n} = Recoil_FunctionalCore;\n\nconst {\n DEFAULT_VALUE: DEFAULT_VALUE$7,\n DefaultValue: DefaultValue$2,\n getConfigDeletionHandler: getConfigDeletionHandler$2,\n registerNode: registerNode$2,\n setConfigDeletionHandler: setConfigDeletionHandler$1\n} = Recoil_Node;\n\nconst {\n isRecoilValue: isRecoilValue$4\n} = Recoil_RecoilValue$1;\n\nconst {\n getRecoilValueAsLoadable: getRecoilValueAsLoadable$4,\n markRecoilValueModified: markRecoilValueModified$2,\n setRecoilValue: setRecoilValue$4,\n setRecoilValueLoadable: setRecoilValueLoadable$2\n} = Recoil_RecoilValueInterface;\n\nconst {\n retainedByOptionWithDefault: retainedByOptionWithDefault$2\n} = Recoil_Retention;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst unwrap = x => x instanceof WrappedValue$2 ? x.value : x;\n\nfunction baseAtom(options) {\n const {\n key,\n persistence_UNSTABLE: persistence\n } = options;\n const retainedBy = retainedByOptionWithDefault$2(options.retainedBy_UNSTABLE);\n let liveStoresCount = 0;\n\n function unwrapPromise(promise) {\n return loadableWithPromise$2(promise.then(value => {\n defaultLoadable = loadableWithValue$3(value);\n return value;\n }).catch(error => {\n defaultLoadable = loadableWithError$2(error);\n throw error;\n }));\n }\n\n let defaultLoadable = Recoil_isPromise(options.default) ? unwrapPromise(options.default) : isLoadable$2(options.default) ? options.default.state === 'loading' ? unwrapPromise(options.default.contents) : options.default : // $FlowFixMe[incompatible-call]\n loadableWithValue$3(unwrap(options.default));\n maybeFreezeValueOrPromise(defaultLoadable.contents);\n let cachedAnswerForUnvalidatedValue = undefined; // Cleanup handlers for this atom\n // Rely on stable reference equality of the store to use it as a key per \n\n const cleanupEffectsByStore = new Map();\n\n function maybeFreezeValueOrPromise(valueOrPromise) {\n if (process.env.NODE_ENV !== \"production\") {\n if (options.dangerouslyAllowMutability !== true) {\n if (Recoil_isPromise(valueOrPromise)) {\n return valueOrPromise.then(value => {\n Recoil_deepFreezeValue(value);\n return value;\n });\n } else {\n Recoil_deepFreezeValue(valueOrPromise);\n return valueOrPromise;\n }\n }\n }\n\n return valueOrPromise;\n }\n\n function wrapPendingPromise(store, promise) {\n const wrappedPromise = promise.then(value => {\n var _store$getState$nextT, _state$atomValues$get;\n\n const state = (_store$getState$nextT = store.getState().nextTree) !== null && _store$getState$nextT !== void 0 ? _store$getState$nextT : store.getState().currentTree;\n\n if (((_state$atomValues$get = state.atomValues.get(key)) === null || _state$atomValues$get === void 0 ? void 0 : _state$atomValues$get.contents) === wrappedPromise) {\n setRecoilValue$4(store, node, value);\n }\n\n return value;\n }).catch(error => {\n var _store$getState$nextT2, _state$atomValues$get2;\n\n const state = (_store$getState$nextT2 = store.getState().nextTree) !== null && _store$getState$nextT2 !== void 0 ? _store$getState$nextT2 : store.getState().currentTree;\n\n if (((_state$atomValues$get2 = state.atomValues.get(key)) === null || _state$atomValues$get2 === void 0 ? void 0 : _state$atomValues$get2.contents) === wrappedPromise) {\n setRecoilValueLoadable$2(store, node, loadableWithError$2(error));\n }\n\n throw error;\n });\n return wrappedPromise;\n }\n\n function initAtom(store, initState, trigger) {\n var _options$effects;\n\n liveStoresCount++;\n\n const cleanupAtom = () => {\n var _cleanupEffectsByStor;\n\n liveStoresCount--;\n (_cleanupEffectsByStor = cleanupEffectsByStore.get(store)) === null || _cleanupEffectsByStor === void 0 ? void 0 : _cleanupEffectsByStor.forEach(cleanup => cleanup());\n cleanupEffectsByStore.delete(store);\n };\n\n store.getState().knownAtoms.add(key); // Setup async defaults to notify subscribers when they resolve\n\n if (defaultLoadable.state === 'loading') {\n const notifyDefaultSubscribers = () => {\n var _store$getState$nextT3;\n\n const state = (_store$getState$nextT3 = store.getState().nextTree) !== null && _store$getState$nextT3 !== void 0 ? _store$getState$nextT3 : store.getState().currentTree;\n\n if (!state.atomValues.has(key)) {\n markRecoilValueModified$2(store, node);\n }\n };\n\n defaultLoadable.contents.finally(notifyDefaultSubscribers);\n } ///////////////////\n // Run Atom Effects\n ///////////////////\n\n\n const effects = (_options$effects = options.effects) !== null && _options$effects !== void 0 ? _options$effects : options.effects_UNSTABLE;\n\n if (effects != null) {\n // This state is scoped by Store, since this is in the initAtom() closure\n let initValue = DEFAULT_VALUE$7;\n let isDuringInit = true;\n let isInitError = false;\n let pendingSetSelf = null;\n\n function getLoadable(recoilValue) {\n // Normally we can just get the current value of another atom.\n // But for our own value we need to check if there is a pending\n // initialized value or get the fallback default value.\n if (isDuringInit && recoilValue.key === key) {\n // Cast T to S\n const retValue = initValue; // flowlint-line unclear-type:off\n\n return retValue instanceof DefaultValue$2 ? peekAtom(store, initState) // flowlint-line unclear-type:off\n : Recoil_isPromise(retValue) ? loadableWithPromise$2(retValue.then(v => v instanceof DefaultValue$2 ? // Cast T to S\n defaultLoadable.toPromise() // flowlint-line unclear-type:off\n : v)) : // $FlowFixMe[incompatible-call]\n loadableWithValue$3(retValue);\n }\n\n return getRecoilValueAsLoadable$4(store, recoilValue);\n }\n\n function getPromise(recoilValue) {\n return getLoadable(recoilValue).toPromise();\n }\n\n function getInfo_UNSTABLE(recoilValue) {\n var _store$getState$nextT4;\n\n const info = peekNodeInfo$3(store, (_store$getState$nextT4 = store.getState().nextTree) !== null && _store$getState$nextT4 !== void 0 ? _store$getState$nextT4 : store.getState().currentTree, recoilValue.key);\n return isDuringInit && recoilValue.key === key && !(initValue instanceof DefaultValue$2) ? { ...info,\n isSet: true,\n loadable: getLoadable(recoilValue)\n } : info;\n }\n\n const setSelf = effect => valueOrUpdater => {\n if (isDuringInit) {\n const currentLoadable = getLoadable(node);\n const currentValue = currentLoadable.state === 'hasValue' ? currentLoadable.contents : DEFAULT_VALUE$7;\n initValue = typeof valueOrUpdater === 'function' ? // cast to any because we can't restrict T from being a function without losing support for opaque types\n valueOrUpdater(currentValue) // flowlint-line unclear-type:off\n : valueOrUpdater;\n\n if (Recoil_isPromise(initValue)) {\n initValue = initValue.then(value => {\n // Avoid calling onSet() when setSelf() initializes with a Promise\n pendingSetSelf = {\n effect,\n value\n };\n return value;\n });\n }\n } else {\n if (Recoil_isPromise(valueOrUpdater)) {\n throw Recoil_err('Setting atoms to async values is not implemented.');\n }\n\n if (typeof valueOrUpdater !== 'function') {\n pendingSetSelf = {\n effect,\n value: unwrap(valueOrUpdater)\n };\n }\n\n setRecoilValue$4(store, node, typeof valueOrUpdater === 'function' ? currentValue => {\n const newValue = unwrap( // cast to any because we can't restrict T from being a function without losing support for opaque types\n valueOrUpdater(currentValue) // flowlint-line unclear-type:off\n ); // $FlowFixMe[incompatible-type]\n\n pendingSetSelf = {\n effect,\n value: newValue\n };\n return newValue;\n } : unwrap(valueOrUpdater));\n }\n };\n\n const resetSelf = effect => () => setSelf(effect)(DEFAULT_VALUE$7);\n\n const onSet = effect => handler => {\n var _cleanupEffectsByStor2;\n\n const {\n release\n } = store.subscribeToTransactions(currentStore => {\n var _currentTree$atomValu;\n\n // eslint-disable-next-line prefer-const\n let {\n currentTree,\n previousTree\n } = currentStore.getState();\n\n if (!previousTree) {\n Recoil_recoverableViolation('Transaction subscribers notified without a next tree being present -- this is a bug in Recoil');\n previousTree = currentTree; // attempt to trundle on\n }\n\n const newLoadable = (_currentTree$atomValu = currentTree.atomValues.get(key)) !== null && _currentTree$atomValu !== void 0 ? _currentTree$atomValu : defaultLoadable;\n\n if (newLoadable.state === 'hasValue') {\n var _previousTree$atomVal, _pendingSetSelf, _pendingSetSelf2, _pendingSetSelf3;\n\n const newValue = newLoadable.contents;\n const oldLoadable = (_previousTree$atomVal = previousTree.atomValues.get(key)) !== null && _previousTree$atomVal !== void 0 ? _previousTree$atomVal : defaultLoadable;\n const oldValue = oldLoadable.state === 'hasValue' ? oldLoadable.contents : DEFAULT_VALUE$7; // TODO This isn't actually valid, use as a placeholder for now.\n // Ignore atom value changes that were set via setSelf() in the same effect.\n // We will still properly call the handler if there was a subsequent\n // set from something other than an atom effect which was batched\n // with the `setSelf()` call. However, we may incorrectly ignore\n // the handler if the subsequent batched call happens to set the\n // atom to the exact same value as the `setSelf()`. But, in that\n // case, it was kind of a noop, so the semantics are debatable..\n\n if (((_pendingSetSelf = pendingSetSelf) === null || _pendingSetSelf === void 0 ? void 0 : _pendingSetSelf.effect) !== effect || ((_pendingSetSelf2 = pendingSetSelf) === null || _pendingSetSelf2 === void 0 ? void 0 : _pendingSetSelf2.value) !== newValue) {\n handler(newValue, oldValue, !currentTree.atomValues.has(key));\n } else if (((_pendingSetSelf3 = pendingSetSelf) === null || _pendingSetSelf3 === void 0 ? void 0 : _pendingSetSelf3.effect) === effect) {\n pendingSetSelf = null;\n }\n }\n }, key);\n cleanupEffectsByStore.set(store, [...((_cleanupEffectsByStor2 = cleanupEffectsByStore.get(store)) !== null && _cleanupEffectsByStor2 !== void 0 ? _cleanupEffectsByStor2 : []), release]);\n };\n\n for (const effect of effects) {\n try {\n const cleanup = effect({\n node,\n storeID: store.storeID,\n parentStoreID_UNSTABLE: store.parentStoreID,\n trigger,\n setSelf: setSelf(effect),\n resetSelf: resetSelf(effect),\n onSet: onSet(effect),\n getPromise,\n getLoadable,\n getInfo_UNSTABLE\n });\n\n if (cleanup != null) {\n var _cleanupEffectsByStor3;\n\n cleanupEffectsByStore.set(store, [...((_cleanupEffectsByStor3 = cleanupEffectsByStore.get(store)) !== null && _cleanupEffectsByStor3 !== void 0 ? _cleanupEffectsByStor3 : []), cleanup]);\n }\n } catch (error) {\n initValue = error;\n isInitError = true;\n }\n }\n\n isDuringInit = false; // Mutate initial state in place since we know there are no other subscribers\n // since we are the ones initializing on first use.\n\n if (!(initValue instanceof DefaultValue$2)) {\n var _store$getState$nextT5;\n\n const initLoadable = isInitError ? loadableWithError$2(initValue) : Recoil_isPromise(initValue) ? loadableWithPromise$2(wrapPendingPromise(store, initValue)) : loadableWithValue$3(unwrap(initValue));\n maybeFreezeValueOrPromise(initLoadable.contents);\n initState.atomValues.set(key, initLoadable); // If there is a pending transaction, then also mutate the next state tree.\n // This could happen if the atom was first initialized in an action that\n // also updated some other atom's state.\n\n (_store$getState$nextT5 = store.getState().nextTree) === null || _store$getState$nextT5 === void 0 ? void 0 : _store$getState$nextT5.atomValues.set(key, initLoadable);\n }\n }\n\n return cleanupAtom;\n }\n\n function peekAtom(_store, state) {\n var _ref, _state$atomValues$get3;\n\n return (_ref = (_state$atomValues$get3 = state.atomValues.get(key)) !== null && _state$atomValues$get3 !== void 0 ? _state$atomValues$get3 : cachedAnswerForUnvalidatedValue) !== null && _ref !== void 0 ? _ref : defaultLoadable;\n }\n\n function getAtom(_store, state) {\n if (state.atomValues.has(key)) {\n // Atom value is stored in state:\n return Recoil_nullthrows(state.atomValues.get(key));\n } else if (state.nonvalidatedAtoms.has(key)) {\n // Atom value is stored but needs validation before use.\n // We might have already validated it and have a cached validated value:\n if (cachedAnswerForUnvalidatedValue != null) {\n return cachedAnswerForUnvalidatedValue;\n }\n\n if (persistence == null) {\n Recoil_expectationViolation(`Tried to restore a persisted value for atom ${key} but it has no persistence settings.`);\n return defaultLoadable;\n }\n\n const nonvalidatedValue = state.nonvalidatedAtoms.get(key);\n const validatorResult = persistence.validator(nonvalidatedValue, DEFAULT_VALUE$7);\n const validatedValueLoadable = validatorResult instanceof DefaultValue$2 ? defaultLoadable : loadableWithValue$3(validatorResult);\n cachedAnswerForUnvalidatedValue = validatedValueLoadable;\n return cachedAnswerForUnvalidatedValue;\n } else {\n return defaultLoadable;\n }\n }\n\n function invalidateAtom() {\n cachedAnswerForUnvalidatedValue = undefined;\n }\n\n function setAtom(_store, state, newValue) {\n // Bail out if we're being set to the existing value, or if we're being\n // reset but have no stored value (validated or unvalidated) to reset from:\n if (state.atomValues.has(key)) {\n const existing = Recoil_nullthrows(state.atomValues.get(key));\n\n if (existing.state === 'hasValue' && newValue === existing.contents) {\n return new Map();\n }\n } else if (!state.nonvalidatedAtoms.has(key) && newValue instanceof DefaultValue$2) {\n return new Map();\n }\n\n maybeFreezeValueOrPromise(newValue);\n cachedAnswerForUnvalidatedValue = undefined; // can be released now if it was previously in use\n\n return new Map().set(key, loadableWithValue$3(newValue));\n }\n\n function shouldDeleteConfigOnReleaseAtom() {\n return getConfigDeletionHandler$2(key) !== undefined && liveStoresCount <= 0;\n }\n\n const node = registerNode$2({\n key,\n nodeType: 'atom',\n peek: peekAtom,\n get: getAtom,\n set: setAtom,\n init: initAtom,\n invalidate: invalidateAtom,\n shouldDeleteConfigOnRelease: shouldDeleteConfigOnReleaseAtom,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n persistence_UNSTABLE: options.persistence_UNSTABLE ? {\n type: options.persistence_UNSTABLE.type,\n backButton: options.persistence_UNSTABLE.backButton\n } : undefined,\n shouldRestoreFromSnapshots: true,\n retainedBy\n });\n return node;\n} // prettier-ignore\n\n\nfunction atom(options) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof options.key !== 'string') {\n throw Recoil_err('A key option with a unique string value must be provided when creating an atom.');\n }\n }\n\n const { // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,\n ...restOptions\n } = options;\n const optionsDefault = 'default' in options ? // $FlowIssue[incompatible-type] No way to refine in Flow that property is not defined\n options.default : new Promise(() => {});\n\n if (isRecoilValue$4(optionsDefault) // Continue to use atomWithFallback for promise defaults for scoped atoms\n // for now, since scoped atoms don't support async defaults\n // @fb-only: || (isPromise(optionsDefault) && scopeRules_APPEND_ONLY_READ_THE_DOCS)\n // @fb-only: || (isLoadable(optionsDefault) && scopeRules_APPEND_ONLY_READ_THE_DOCS)\n ) {\n return atomWithFallback({ ...restOptions,\n default: optionsDefault // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,\n\n }); // @fb-only: } else if (scopeRules_APPEND_ONLY_READ_THE_DOCS\n // @fb-only: && !isPromise(optionsDefault)\n // @fb-only: && !isLoadable(optionsDefault)\n // @fb-only: ) {\n // @fb-only: return scopedAtom({\n // @fb-only: ...restOptions,\n // @fb-only: default: unwrap(optionsDefault),\n // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,\n // @fb-only: });\n } else {\n return baseAtom({ ...restOptions,\n default: optionsDefault\n });\n }\n}\n\nfunction atomWithFallback(options) {\n const base = atom({ ...options,\n default: DEFAULT_VALUE$7,\n persistence_UNSTABLE: options.persistence_UNSTABLE === undefined ? undefined : { ...options.persistence_UNSTABLE,\n validator: storedValue => storedValue instanceof DefaultValue$2 ? storedValue : Recoil_nullthrows(options.persistence_UNSTABLE).validator(storedValue, DEFAULT_VALUE$7)\n },\n // TODO Hack for now.\n effects: options.effects,\n // flowlint-line unclear-type: off\n effects_UNSTABLE: options.effects_UNSTABLE // flowlint-line unclear-type: off\n\n }); // $FlowFixMe[incompatible-call]\n\n const sel = Recoil_selector({\n key: `${options.key}__withFallback`,\n get: ({\n get\n }) => {\n const baseValue = get(base);\n return baseValue instanceof DefaultValue$2 ? options.default : baseValue;\n },\n // $FlowFixMe[incompatible-call]\n set: ({\n set\n }, newValue) => set(base, newValue),\n // This selector does not need to cache as it is a wrapper selector\n // and the selector within the wrapper selector will have a cache\n // option by default\n cachePolicy_UNSTABLE: {\n eviction: 'most-recent'\n },\n dangerouslyAllowMutability: options.dangerouslyAllowMutability\n });\n setConfigDeletionHandler$1(sel.key, getConfigDeletionHandler$2(options.key));\n return sel;\n} // $FlowFixMe[missing-local-annot]\n\n\natom.value = value => new WrappedValue$2(value);\n\nvar Recoil_atom = atom;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n * @oncall recoil\n */\n\nclass MapCache {\n constructor(options) {\n var _options$mapKey;\n\n _defineProperty(this, \"_map\", void 0);\n\n _defineProperty(this, \"_keyMapper\", void 0);\n\n this._map = new Map();\n this._keyMapper = (_options$mapKey = options === null || options === void 0 ? void 0 : options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : v => v;\n }\n\n size() {\n return this._map.size;\n }\n\n has(key) {\n return this._map.has(this._keyMapper(key));\n }\n\n get(key) {\n return this._map.get(this._keyMapper(key));\n }\n\n set(key, val) {\n this._map.set(this._keyMapper(key), val);\n }\n\n delete(key) {\n this._map.delete(this._keyMapper(key));\n }\n\n clear() {\n this._map.clear();\n }\n\n}\n\nvar Recoil_MapCache = {\n MapCache\n};\n\nvar Recoil_MapCache_1 = Recoil_MapCache.MapCache;\n\nvar Recoil_MapCache$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MapCache: Recoil_MapCache_1\n});\n\nconst {\n LRUCache: LRUCache$2\n} = Recoil_LRUCache$1;\n\nconst {\n MapCache: MapCache$1\n} = Recoil_MapCache$1;\n\n\n\n\n\n\n\nconst defaultPolicy$1 = {\n equality: 'reference',\n eviction: 'none',\n maxSize: Infinity\n};\n\nfunction cacheFromPolicy({\n equality = defaultPolicy$1.equality,\n eviction = defaultPolicy$1.eviction,\n maxSize = defaultPolicy$1.maxSize\n} = defaultPolicy$1) {\n const valueMapper = getValueMapper$1(equality);\n const cache = getCache(eviction, maxSize, valueMapper);\n return cache;\n}\n\nfunction getValueMapper$1(equality) {\n switch (equality) {\n case 'reference':\n return val => val;\n\n case 'value':\n return val => Recoil_stableStringify(val);\n }\n\n throw Recoil_err(`Unrecognized equality policy ${equality}`);\n}\n\nfunction getCache(eviction, maxSize, mapKey) {\n switch (eviction) {\n case 'keep-all':\n return new MapCache$1({\n mapKey\n });\n\n case 'lru':\n return new LRUCache$2({\n mapKey,\n maxSize: Recoil_nullthrows(maxSize)\n });\n\n case 'most-recent':\n return new LRUCache$2({\n mapKey,\n maxSize: 1\n });\n }\n\n throw Recoil_err(`Unrecognized eviction policy ${eviction}`);\n}\n\nvar Recoil_cacheFromPolicy = cacheFromPolicy;\n\n// @fb-only: import type {ScopeRules} from 'Recoil_ScopedAtom';\n\n\nconst {\n setConfigDeletionHandler: setConfigDeletionHandler$2\n} = Recoil_Node;\n\n\n\n\n\n// Process scopeRules to handle any entries which are functions taking parameters\n// prettier-ignore\n// @fb-only: function mapScopeRules

    (\n// @fb-only: scopeRules?: ParameterizedScopeRules

    ,\n// @fb-only: param: P,\n// @fb-only: ): ScopeRules | void {\n// @fb-only: return scopeRules?.map(rule =>\n// @fb-only: Array.isArray(rule)\n// @fb-only: ? rule.map(entry => (typeof entry === 'function' ? entry(param) : entry))\n// @fb-only: : rule,\n// @fb-only: );\n// @fb-only: }\n\n/*\nA function which returns an atom based on the input parameter.\n\nEach unique parameter returns a unique atom. E.g.,\n\n const f = atomFamily(...);\n f({a: 1}) => an atom\n f({a: 2}) => a different atom\n\nThis allows components to persist local, private state using atoms. Each\ninstance of the component may have a different key, which it uses as the\nparameter for a family of atoms; in this way, each component will have\nits own atom not shared by other instances. These state keys may be composed\ninto children's state keys as well.\n*/\nfunction atomFamily(options) {\n var _options$cachePolicyF, _options$cachePolicyF2;\n\n const atomCache = Recoil_cacheFromPolicy({\n equality: (_options$cachePolicyF = (_options$cachePolicyF2 = options.cachePolicyForParams_UNSTABLE) === null || _options$cachePolicyF2 === void 0 ? void 0 : _options$cachePolicyF2.equality) !== null && _options$cachePolicyF !== void 0 ? _options$cachePolicyF : 'value',\n eviction: 'keep-all'\n }); // Simple atomFamily implementation to cache individual atoms based\n // on the parameter value equality.\n\n return params => {\n var _stableStringify, _options$effects;\n\n const cachedAtom = atomCache.get(params);\n\n if (cachedAtom != null) {\n return cachedAtom;\n }\n\n const {\n cachePolicyForParams_UNSTABLE,\n ...atomOptions\n } = options;\n const optionsDefault = 'default' in options ? // $FlowIssue[incompatible-type] No way to refine in Flow that property is not defined\n options.default : new Promise(() => {});\n const newAtom = Recoil_atom({ ...atomOptions,\n key: `${options.key}__${(_stableStringify = Recoil_stableStringify(params)) !== null && _stableStringify !== void 0 ? _stableStringify : 'void'}`,\n default: typeof optionsDefault === 'function' ? // The default was parameterized\n // Flow doesn't know that T isn't a function, so we need to case to any\n // $FlowIssue[incompatible-use]\n optionsDefault(params) : // Default may be a static value, promise, or RecoilValue\n optionsDefault,\n retainedBy_UNSTABLE: typeof options.retainedBy_UNSTABLE === 'function' ? options.retainedBy_UNSTABLE(params) : options.retainedBy_UNSTABLE,\n effects: typeof options.effects === 'function' ? options.effects(params) : typeof options.effects_UNSTABLE === 'function' ? options.effects_UNSTABLE(params) : (_options$effects = options.effects) !== null && _options$effects !== void 0 ? _options$effects : options.effects_UNSTABLE // prettier-ignore\n // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS: mapScopeRules(\n // @fb-only: options.scopeRules_APPEND_ONLY_READ_THE_DOCS,\n // @fb-only: params,\n // @fb-only: ),\n\n });\n atomCache.set(params, newAtom);\n setConfigDeletionHandler$2(newAtom.key, () => {\n atomCache.delete(params);\n });\n return newAtom;\n };\n}\n\nvar Recoil_atomFamily = atomFamily;\n\nconst {\n setConfigDeletionHandler: setConfigDeletionHandler$3\n} = Recoil_Node;\n\n\n\n\n\n // Keep in mind the parameter needs to be serializable as a cahche key\n// using Recoil_stableStringify\n\n\n// Add a unique index to each selector in case the cache implementation allows\n// duplicate keys based on equivalent stringified parameters\nlet nextIndex = 0;\n/* eslint-disable no-redeclare */\n\n// Return a function that returns members of a family of selectors of the same type\n// E.g.,\n//\n// const s = selectorFamily(...);\n// s({a: 1}) => a selector\n// s({a: 2}) => a different selector\n//\n// By default, the selectors are distinguished by distinct values of the\n// parameter based on value equality, not reference equality. This allows using\n// object literals or other equivalent objects at callsites to not create\n// duplicate cache entries. This behavior may be overridden with the\n// cacheImplementationForParams option.\nfunction selectorFamily(options) {\n var _options$cachePolicyF, _options$cachePolicyF2;\n\n const selectorCache = Recoil_cacheFromPolicy({\n equality: (_options$cachePolicyF = (_options$cachePolicyF2 = options.cachePolicyForParams_UNSTABLE) === null || _options$cachePolicyF2 === void 0 ? void 0 : _options$cachePolicyF2.equality) !== null && _options$cachePolicyF !== void 0 ? _options$cachePolicyF : 'value',\n eviction: 'keep-all'\n });\n return params => {\n var _stableStringify;\n\n // Throw an error with selector key so that it is clear which\n // selector is causing an error\n let cachedSelector;\n\n try {\n cachedSelector = selectorCache.get(params);\n } catch (error) {\n throw Recoil_err(`Problem with cache lookup for selector ${options.key}: ${error.message}`);\n }\n\n if (cachedSelector != null) {\n return cachedSelector;\n }\n\n const myKey = `${options.key}__selectorFamily/${(_stableStringify = Recoil_stableStringify(params, {\n // It is possible to use functions in parameters if the user uses\n // a cache with reference equality thanks to the incrementing index.\n allowFunctions: true\n })) !== null && _stableStringify !== void 0 ? _stableStringify : 'void'}/${nextIndex++}`; // Append index in case values serialize to the same key string\n\n const myGet = callbacks => options.get(params)(callbacks);\n\n const myCachePolicy = options.cachePolicy_UNSTABLE;\n const retainedBy = typeof options.retainedBy_UNSTABLE === 'function' ? options.retainedBy_UNSTABLE(params) : options.retainedBy_UNSTABLE;\n let newSelector;\n\n if (options.set != null) {\n const set = options.set;\n\n const mySet = (callbacks, newValue) => set(params)(callbacks, newValue);\n\n newSelector = Recoil_selector({\n key: myKey,\n get: myGet,\n set: mySet,\n cachePolicy_UNSTABLE: myCachePolicy,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n retainedBy_UNSTABLE: retainedBy\n });\n } else {\n newSelector = Recoil_selector({\n key: myKey,\n get: myGet,\n cachePolicy_UNSTABLE: myCachePolicy,\n dangerouslyAllowMutability: options.dangerouslyAllowMutability,\n retainedBy_UNSTABLE: retainedBy\n });\n }\n\n selectorCache.set(params, newSelector);\n setConfigDeletionHandler$3(newSelector.key, () => {\n selectorCache.delete(params);\n });\n return newSelector;\n };\n}\n/* eslint-enable no-redeclare */\n\n\nvar Recoil_selectorFamily = selectorFamily;\n\n// flowlint-next-line unclear-type:off\n\n\nconst constantSelector = Recoil_selectorFamily({\n key: '__constant',\n get: constant => () => constant,\n cachePolicyForParams_UNSTABLE: {\n equality: 'reference'\n }\n}); // Function that returns a selector which always produces the\n// same constant value. It may be called multiple times with the\n// same value, based on reference equality, and will provide the\n// same selector.\n\nfunction constSelector(constant) {\n return constantSelector(constant);\n}\n\nvar Recoil_constSelector = constSelector;\n\n// flowlint-next-line unclear-type:off\n\n\nconst throwingSelector = Recoil_selectorFamily({\n key: '__error',\n get: message => () => {\n throw Recoil_err(message);\n },\n // TODO Why?\n cachePolicyForParams_UNSTABLE: {\n equality: 'reference'\n }\n}); // Function that returns a selector which always throws an error\n// with the provided message.\n\nfunction errorSelector(message) {\n return throwingSelector(message);\n}\n\nvar Recoil_errorSelector = errorSelector;\n\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Wraps another recoil value and prevents writing to it.\n *\n * \n * @format\n * @oncall recoil\n */\n\nfunction readOnlySelector(atom) {\n // flowlint-next-line unclear-type: off\n return atom;\n}\n\nvar Recoil_readOnlySelector = readOnlySelector;\n\nconst {\n loadableWithError: loadableWithError$3,\n loadableWithPromise: loadableWithPromise$3,\n loadableWithValue: loadableWithValue$4\n} = Recoil_Loadable$1;\n\n\n\n\n\n /////////////////\n// TRUTH TABLE\n/////////////////\n// Dependencies waitForNone waitForAny waitForAll waitForAllSettled\n// [loading, loading] [Promise, Promise] Promise Promise Promise\n// [value, loading] [value, Promise] [value, Promise] Promise Promise\n// [value, value] [value, value] [value, value] [value, value] [value, value]\n//\n// [error, loading] [Error, Promise] [Error, Promise] Error Promise\n// [error, error] [Error, Error] [Error, Error] Error [error, error]\n// [value, error] [value, Error] [value, Error] Error [value, error]\n// Issue parallel requests for all dependencies and return the current\n// status if they have results, have some error, or are still pending.\n\n\nfunction concurrentRequests(getRecoilValue, deps) {\n const results = Array(deps.length).fill(undefined);\n const exceptions = Array(deps.length).fill(undefined);\n\n for (const [i, dep] of deps.entries()) {\n try {\n results[i] = getRecoilValue(dep);\n } catch (e) {\n // exceptions can either be Promises of pending results or real errors\n exceptions[i] = e;\n }\n }\n\n return [results, exceptions];\n}\n\nfunction isError(exp) {\n return exp != null && !Recoil_isPromise(exp);\n}\n\nfunction unwrapDependencies(dependencies) {\n return Array.isArray(dependencies) ? dependencies : Object.getOwnPropertyNames(dependencies).map(key => dependencies[key]);\n}\n\nfunction wrapResults(dependencies,\n/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\nresults) {\n return Array.isArray(dependencies) ? results : // Object.getOwnPropertyNames() has consistent key ordering with ES6\n Object.getOwnPropertyNames(dependencies).reduce((out, key, idx) => ({ ...out,\n [key]: results[idx]\n }), {});\n}\n\nfunction wrapLoadables(dependencies, results, exceptions) {\n const output = exceptions.map((exception, idx) => exception == null ? loadableWithValue$4(results[idx]) : Recoil_isPromise(exception) ? loadableWithPromise$3(exception) : loadableWithError$3(exception));\n return wrapResults(dependencies, output);\n}\n\nfunction combineAsyncResultsWithSyncResults(syncResults, asyncResults) {\n return asyncResults.map((result, idx) =>\n /**\n * it's important we use === undefined as opposed to == null, because the\n * resolved value of the async promise could be `null`, in which case we\n * don't want to use syncResults[idx], which would be undefined. If async\n * promise resolves to `undefined`, that's ok because `syncResults[idx]`\n * will also be `undefined`. That's a little hacky, but it works.\n */\n result === undefined ? syncResults[idx] : result);\n} // Selector that requests all dependencies in parallel and immediately returns\n// current results without waiting.\n\n\nconst waitForNone = Recoil_selectorFamily({\n key: '__waitForNone',\n get: dependencies => ({\n get\n }) => {\n // Issue requests for all dependencies in parallel.\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // Always return the current status of the results; never block.\n\n return wrapLoadables(dependencies, results, exceptions);\n },\n dangerouslyAllowMutability: true\n}); // Selector that requests all dependencies in parallel and waits for at least\n// one to be available before returning results. It will only error if all\n// dependencies have errors.\n\nconst waitForAny = Recoil_selectorFamily({\n key: '__waitForAny',\n get: dependencies => ({\n get\n }) => {\n // Issue requests for all dependencies in parallel.\n // Exceptions can either be Promises of pending results or real errors\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // If any results are available, value or error, return the current status\n\n if (exceptions.some(exp => !Recoil_isPromise(exp))) {\n return wrapLoadables(dependencies, results, exceptions);\n } // Otherwise, return a promise that will resolve when the next result is\n // available, whichever one happens to be next. But, if all pending\n // dependencies end up with errors, then reject the promise.\n\n\n return new Promise(resolve => {\n for (const [i, exp] of exceptions.entries()) {\n if (Recoil_isPromise(exp)) {\n exp.then(result => {\n results[i] = result;\n exceptions[i] = undefined;\n resolve(wrapLoadables(dependencies, results, exceptions));\n }).catch(error => {\n exceptions[i] = error;\n resolve(wrapLoadables(dependencies, results, exceptions));\n });\n }\n }\n });\n },\n dangerouslyAllowMutability: true\n}); // Selector that requests all dependencies in parallel and waits for all to be\n// available before returning a value. It will error if any dependencies error.\n\nconst waitForAll = Recoil_selectorFamily({\n key: '__waitForAll',\n get: dependencies => ({\n get\n }) => {\n // Issue requests for all dependencies in parallel.\n // Exceptions can either be Promises of pending results or real errors\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // If all results are available, return the results\n\n if (exceptions.every(exp => exp == null)) {\n return wrapResults(dependencies, results);\n } // If we have any errors, throw the first error\n\n\n const error = exceptions.find(isError);\n\n if (error != null) {\n throw error;\n } // Otherwise, return a promise that will resolve when all results are available\n\n\n return Promise.all(exceptions).then(exceptionResults => wrapResults(dependencies, combineAsyncResultsWithSyncResults(results, exceptionResults)));\n },\n dangerouslyAllowMutability: true\n});\nconst waitForAllSettled = Recoil_selectorFamily({\n key: '__waitForAllSettled',\n get: dependencies => ({\n get\n }) => {\n // Issue requests for all dependencies in parallel.\n // Exceptions can either be Promises of pending results or real errors\n const deps = unwrapDependencies(dependencies);\n const [results, exceptions] = concurrentRequests(get, deps); // If all results are available, return the results\n\n if (exceptions.every(exp => !Recoil_isPromise(exp))) {\n return wrapLoadables(dependencies, results, exceptions);\n } // Wait for all results to settle\n\n\n return Promise.all(exceptions.map((exp, i) => Recoil_isPromise(exp) ? exp.then(result => {\n results[i] = result;\n exceptions[i] = undefined;\n }).catch(error => {\n results[i] = undefined;\n exceptions[i] = error;\n }) : null)) // Then wrap them as loadables\n .then(() => wrapLoadables(dependencies, results, exceptions));\n },\n dangerouslyAllowMutability: true\n});\nconst noWait = Recoil_selectorFamily({\n key: '__noWait',\n get: dependency => ({\n get\n }) => {\n try {\n return Recoil_selector.value(loadableWithValue$4(get(dependency)));\n } catch (exception) {\n return Recoil_selector.value(Recoil_isPromise(exception) ? loadableWithPromise$3(exception) : loadableWithError$3(exception));\n }\n },\n dangerouslyAllowMutability: true\n});\nvar Recoil_WaitFor = {\n waitForNone,\n waitForAny,\n waitForAll,\n waitForAllSettled,\n noWait\n};\n\nconst {\n RecoilLoadable\n} = Recoil_Loadable$1;\n\nconst {\n DefaultValue: DefaultValue$3\n} = Recoil_Node;\n\nconst {\n RecoilRoot: RecoilRoot$2,\n useRecoilStoreID: useRecoilStoreID$1\n} = Recoil_RecoilRoot;\n\nconst {\n isRecoilValue: isRecoilValue$5\n} = Recoil_RecoilValue$1;\n\nconst {\n retentionZone: retentionZone$1\n} = Recoil_RetentionZone;\n\nconst {\n freshSnapshot: freshSnapshot$2\n} = Recoil_Snapshot$1;\n\nconst {\n useRecoilState: useRecoilState$1,\n useRecoilState_TRANSITION_SUPPORT_UNSTABLE: useRecoilState_TRANSITION_SUPPORT_UNSTABLE$1,\n useRecoilStateLoadable: useRecoilStateLoadable$1,\n useRecoilValue: useRecoilValue$1,\n useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: useRecoilValue_TRANSITION_SUPPORT_UNSTABLE$1,\n useRecoilValueLoadable: useRecoilValueLoadable$1,\n useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE$1,\n useResetRecoilState: useResetRecoilState$1,\n useSetRecoilState: useSetRecoilState$1\n} = Recoil_Hooks;\n\nconst {\n useGotoRecoilSnapshot: useGotoRecoilSnapshot$1,\n useRecoilSnapshot: useRecoilSnapshot$1,\n useRecoilTransactionObserver: useRecoilTransactionObserver$1\n} = Recoil_SnapshotHooks;\n\n\n\n\n\nconst {\n useRecoilCallback: useRecoilCallback$1\n} = Recoil_useRecoilCallback;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst {\n noWait: noWait$1,\n waitForAll: waitForAll$1,\n waitForAllSettled: waitForAllSettled$1,\n waitForAny: waitForAny$1,\n waitForNone: waitForNone$1\n} = Recoil_WaitFor;\n\n\n\nvar Recoil_index = {\n // Types\n DefaultValue: DefaultValue$3,\n isRecoilValue: isRecoilValue$5,\n RecoilLoadable,\n // Global Recoil environment settiongs\n RecoilEnv: Recoil_RecoilEnv,\n // Recoil Root\n RecoilRoot: RecoilRoot$2,\n useRecoilStoreID: useRecoilStoreID$1,\n useRecoilBridgeAcrossReactRoots_UNSTABLE: Recoil_useRecoilBridgeAcrossReactRoots,\n // Atoms/Selectors\n atom: Recoil_atom,\n selector: Recoil_selector,\n // Convenience Atoms/Selectors\n atomFamily: Recoil_atomFamily,\n selectorFamily: Recoil_selectorFamily,\n constSelector: Recoil_constSelector,\n errorSelector: Recoil_errorSelector,\n readOnlySelector: Recoil_readOnlySelector,\n // Concurrency Helpers for Atoms/Selectors\n noWait: noWait$1,\n waitForNone: waitForNone$1,\n waitForAny: waitForAny$1,\n waitForAll: waitForAll$1,\n waitForAllSettled: waitForAllSettled$1,\n // Hooks for Atoms/Selectors\n useRecoilValue: useRecoilValue$1,\n useRecoilValueLoadable: useRecoilValueLoadable$1,\n useRecoilState: useRecoilState$1,\n useRecoilStateLoadable: useRecoilStateLoadable$1,\n useSetRecoilState: useSetRecoilState$1,\n useResetRecoilState: useResetRecoilState$1,\n useGetRecoilValueInfo_UNSTABLE: Recoil_useGetRecoilValueInfo,\n useRecoilRefresher_UNSTABLE: Recoil_useRecoilRefresher,\n useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE$1,\n useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: useRecoilValue_TRANSITION_SUPPORT_UNSTABLE$1,\n useRecoilState_TRANSITION_SUPPORT_UNSTABLE: useRecoilState_TRANSITION_SUPPORT_UNSTABLE$1,\n // Hooks for complex operations\n useRecoilCallback: useRecoilCallback$1,\n useRecoilTransaction_UNSTABLE: Recoil_useRecoilTransaction,\n // Snapshots\n useGotoRecoilSnapshot: useGotoRecoilSnapshot$1,\n useRecoilSnapshot: useRecoilSnapshot$1,\n useRecoilTransactionObserver_UNSTABLE: useRecoilTransactionObserver$1,\n snapshot_UNSTABLE: freshSnapshot$2,\n // Memory Management\n useRetain: Recoil_useRetain,\n retentionZone: retentionZone$1\n};\nvar Recoil_index_1 = Recoil_index.DefaultValue;\nvar Recoil_index_2 = Recoil_index.isRecoilValue;\nvar Recoil_index_3 = Recoil_index.RecoilLoadable;\nvar Recoil_index_4 = Recoil_index.RecoilEnv;\nvar Recoil_index_5 = Recoil_index.RecoilRoot;\nvar Recoil_index_6 = Recoil_index.useRecoilStoreID;\nvar Recoil_index_7 = Recoil_index.useRecoilBridgeAcrossReactRoots_UNSTABLE;\nvar Recoil_index_8 = Recoil_index.atom;\nvar Recoil_index_9 = Recoil_index.selector;\nvar Recoil_index_10 = Recoil_index.atomFamily;\nvar Recoil_index_11 = Recoil_index.selectorFamily;\nvar Recoil_index_12 = Recoil_index.constSelector;\nvar Recoil_index_13 = Recoil_index.errorSelector;\nvar Recoil_index_14 = Recoil_index.readOnlySelector;\nvar Recoil_index_15 = Recoil_index.noWait;\nvar Recoil_index_16 = Recoil_index.waitForNone;\nvar Recoil_index_17 = Recoil_index.waitForAny;\nvar Recoil_index_18 = Recoil_index.waitForAll;\nvar Recoil_index_19 = Recoil_index.waitForAllSettled;\nvar Recoil_index_20 = Recoil_index.useRecoilValue;\nvar Recoil_index_21 = Recoil_index.useRecoilValueLoadable;\nvar Recoil_index_22 = Recoil_index.useRecoilState;\nvar Recoil_index_23 = Recoil_index.useRecoilStateLoadable;\nvar Recoil_index_24 = Recoil_index.useSetRecoilState;\nvar Recoil_index_25 = Recoil_index.useResetRecoilState;\nvar Recoil_index_26 = Recoil_index.useGetRecoilValueInfo_UNSTABLE;\nvar Recoil_index_27 = Recoil_index.useRecoilRefresher_UNSTABLE;\nvar Recoil_index_28 = Recoil_index.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE;\nvar Recoil_index_29 = Recoil_index.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE;\nvar Recoil_index_30 = Recoil_index.useRecoilState_TRANSITION_SUPPORT_UNSTABLE;\nvar Recoil_index_31 = Recoil_index.useRecoilCallback;\nvar Recoil_index_32 = Recoil_index.useRecoilTransaction_UNSTABLE;\nvar Recoil_index_33 = Recoil_index.useGotoRecoilSnapshot;\nvar Recoil_index_34 = Recoil_index.useRecoilSnapshot;\nvar Recoil_index_35 = Recoil_index.useRecoilTransactionObserver_UNSTABLE;\nvar Recoil_index_36 = Recoil_index.snapshot_UNSTABLE;\nvar Recoil_index_37 = Recoil_index.useRetain;\nvar Recoil_index_38 = Recoil_index.retentionZone;\n\nexport default Recoil_index;\nexport { Recoil_index_1 as DefaultValue, Recoil_index_4 as RecoilEnv, Recoil_index_3 as RecoilLoadable, Recoil_index_5 as RecoilRoot, Recoil_index_8 as atom, Recoil_index_10 as atomFamily, Recoil_index_12 as constSelector, Recoil_index_13 as errorSelector, Recoil_index_2 as isRecoilValue, Recoil_index_15 as noWait, Recoil_index_14 as readOnlySelector, Recoil_index_38 as retentionZone, Recoil_index_9 as selector, Recoil_index_11 as selectorFamily, Recoil_index_36 as snapshot_UNSTABLE, Recoil_index_26 as useGetRecoilValueInfo_UNSTABLE, Recoil_index_33 as useGotoRecoilSnapshot, Recoil_index_7 as useRecoilBridgeAcrossReactRoots_UNSTABLE, Recoil_index_31 as useRecoilCallback, Recoil_index_27 as useRecoilRefresher_UNSTABLE, Recoil_index_34 as useRecoilSnapshot, Recoil_index_22 as useRecoilState, Recoil_index_23 as useRecoilStateLoadable, Recoil_index_30 as useRecoilState_TRANSITION_SUPPORT_UNSTABLE, Recoil_index_6 as useRecoilStoreID, Recoil_index_35 as useRecoilTransactionObserver_UNSTABLE, Recoil_index_32 as useRecoilTransaction_UNSTABLE, Recoil_index_20 as useRecoilValue, Recoil_index_21 as useRecoilValueLoadable, Recoil_index_28 as useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE, Recoil_index_29 as useRecoilValue_TRANSITION_SUPPORT_UNSTABLE, Recoil_index_25 as useResetRecoilState, Recoil_index_37 as useRetain, Recoil_index_24 as useSetRecoilState, Recoil_index_18 as waitForAll, Recoil_index_19 as waitForAllSettled, Recoil_index_17 as waitForAny, Recoil_index_16 as waitForNone };\n","export { default as AssetSourceDescription } from './components/AssetSourceDescription';\nexport { default as AssetSourceList } from './components/AssetSourceList';\nexport { ASSET_SOURCE_FRAGMENT } from './fragments/assetSource';\nexport { useAssetSourcesQuery } from './hooks/useAssetSourcesQuery';\nexport { useSelectedAssetSource } from './hooks/useSelectedAssetSource';\nexport { selectedAssetSourceState, NEOS_ASSET_SOURCE } from './state/selectedAssetSourceState';\n","import React from 'react';\n\nimport { ToggablePanel } from '@neos-project/react-ui-components';\n\nimport { useIntl } from '@media-ui/core';\nimport { IconLabel } from '@media-ui/core/src/components';\nimport { useSelectedAssetSource } from '../hooks/useSelectedAssetSource';\n\nimport classes from './AssetSourceDescription.module.css';\n\nconst AssetSourceDescription: React.FC = () => {\n const { translate } = useIntl();\n const selectedAssetSource = useSelectedAssetSource();\n\n if (!selectedAssetSource?.description) return null;\n\n return (\n \n \n \n \n \n

    {selectedAssetSource.description}

    \n \n \n );\n};\n\nexport default React.memo(AssetSourceDescription);\n","// src/index.ts\nimport { default as default2 } from \"./enhanceWithClickOutside\";\nimport { default as default3 } from \"./Badge\";\nimport { default as default4 } from \"./Bar\";\nimport { default as default5 } from \"./Button\";\nimport { default as default6 } from \"./ButtonGroup\";\nimport { default as default7 } from \"./CheckBox\";\nimport { default as default8 } from \"./DateInput\";\nimport { default as default9 } from \"./Dialog\";\nimport { default as default10 } from \"./DropDown\";\nimport { default as default11 } from \"./Frame\";\nimport { default as default12 } from \"./Headline\";\nimport { default as default13 } from \"./Icon\";\nimport { default as default14 } from \"./IconButton\";\nimport { default as default15 } from \"./IconButtonDropDown\";\nimport { default as default16 } from \"./Label\";\nimport { default as default17 } from \"./Logo\";\nimport { default as default18 } from \"./SelectBox\";\nimport { default as default19 } from \"./SideBar\";\nimport { default as default20 } from \"./Tabs\";\nimport { default as default21 } from \"./TextArea\";\nimport { default as default22 } from \"./TextInput\";\nimport { default as default23 } from \"./ToggablePanel\";\nimport { default as default24 } from \"./Tooltip\";\nimport { default as default25 } from \"./Tree\";\nimport { default as default26 } from \"./MultiSelectBox\";\nimport { default as default27 } from \"./MultiSelectBox_ListPreviewSortable\";\nimport { default as default28 } from \"./SelectBox_Option_SingleLine\";\nimport { default as default29 } from \"./SelectBox_Option_MultiLineWithThumbnail\";\nexport {\n default3 as Badge,\n default4 as Bar,\n default5 as Button,\n default6 as ButtonGroup,\n default7 as CheckBox,\n default8 as DateInput,\n default9 as Dialog,\n default10 as DropDown,\n default11 as Frame,\n default12 as Headline,\n default13 as Icon,\n default14 as IconButton,\n default15 as IconButtonDropDown,\n default16 as Label,\n default17 as Logo,\n default26 as MultiSelectBox,\n default27 as MultiSelectBox_ListPreviewSortable,\n default18 as SelectBox,\n default29 as SelectBox_Option_MultiLineWithThumbnail,\n default28 as SelectBox_Option_SingleLine,\n default19 as SideBar,\n default20 as Tabs,\n default21 as TextArea,\n default22 as TextInput,\n default23 as ToggablePanel,\n default24 as Tooltip,\n default25 as Tree,\n default2 as enhanceWithClickOutside\n};\n//# sourceMappingURL=index.js.map\n","/* eslint-disable camelcase, react/jsx-pascal-case */\nexport {default as enhanceWithClickOutside} from './enhanceWithClickOutside';\nexport {default as Badge} from './Badge';\nexport {default as Bar} from './Bar';\nexport {default as Button} from './Button';\nexport {default as ButtonGroup} from './ButtonGroup';\nexport {default as CheckBox} from './CheckBox';\nexport {default as DateInput} from './DateInput';\nexport {default as Dialog} from './Dialog';\nexport {default as DropDown} from './DropDown';\nexport {default as Frame} from './Frame';\nexport {default as Headline} from './Headline';\nexport {default as Icon} from './Icon';\nexport {default as IconButton} from './IconButton';\nexport {default as IconButtonDropDown} from './IconButtonDropDown';\nexport {default as Label} from './Label';\n// @ts-expect-error\nexport {default as Logo} from './Logo';\n// @ts-expect-error\nexport {default as SelectBox} from './SelectBox';\nexport {default as SideBar} from './SideBar';\nexport {default as Tabs} from './Tabs';\nexport {default as TextArea} from './TextArea';\nexport {default as TextInput} from './TextInput';\n// @ts-expect-error\nexport {default as ToggablePanel} from './ToggablePanel';\nexport {default as Tooltip} from './Tooltip';\n// @ts-expect-error\nexport {default as Tree} from './Tree';\n// @ts-expect-error\nexport {default as MultiSelectBox} from './MultiSelectBox';\n// @ts-expect-error\nexport {default as MultiSelectBox_ListPreviewSortable} from './MultiSelectBox_ListPreviewSortable';\n// @ts-expect-error\nexport {default as SelectBox_Option_SingleLine} from './SelectBox_Option_SingleLine';\n// @ts-expect-error\nexport {default as SelectBox_Option_MultiLineWithThumbnail} from './SelectBox_Option_MultiLineWithThumbnail';\n","// src/enhanceWithClickOutside/index.tsx\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nvar isTargetExcludedForClickOutside = (el) => {\n if (!el) {\n return false;\n }\n return el.dataset && el.dataset.ignore_click_outside ? true : isTargetExcludedForClickOutside(el.parentNode);\n};\nvar enhanceWithClickOutside = (Component) => {\n class EnhancedComponent extends React.Component {\n constructor() {\n super(...arguments);\n this.wrappedInstanceRef = React.createRef();\n this.handleClickOutside = (e) => {\n if (this.wrappedInstanceRef.current && (e.target instanceof HTMLElement || e.target instanceof HTMLDocument)) {\n const domNode = ReactDOM.findDOMNode(this.wrappedInstanceRef.current);\n const target = e.iframeTarget || e.target;\n if (isTargetExcludedForClickOutside(target)) {\n return;\n }\n if ((!domNode || !domNode.contains(target)) && this.wrappedInstanceRef && this.wrappedInstanceRef.current && typeof this.wrappedInstanceRef.current.handleClickOutside === \"function\") {\n this.wrappedInstanceRef.current.handleClickOutside(e);\n }\n }\n };\n }\n componentDidMount() {\n document.addEventListener(\"click\", this.handleClickOutside, true);\n }\n componentWillUnmount() {\n document.removeEventListener(\"click\", this.handleClickOutside, true);\n }\n render() {\n return /* @__PURE__ */ React.createElement(\n Component,\n {\n ...this.props,\n ref: this.wrappedInstanceRef\n }\n );\n }\n }\n EnhancedComponent.displayName = `clickOutside(${Component.displayName || Component.name})`;\n return EnhancedComponent;\n};\nvar enhanceWithClickOutside_default = enhanceWithClickOutside;\nexport {\n enhanceWithClickOutside_default as default\n};\n//# sourceMappingURL=index.js.map\n","import React from 'react';\nimport ReactDOM from 'react-dom';\n\ninterface InnerComponent

    extends React.Component

    {\n readonly handleClickOutside?: (e: MouseEvent | TouchEvent) => void;\n}\n\nconst isTargetExcludedForClickOutside : (el: any) => boolean = el => {\n if (!el) {\n // top level: the targt is not excluded\n return false;\n }\n\n return (el.dataset && el.dataset.ignore_click_outside) ? true : isTargetExcludedForClickOutside(el.parentNode);\n};\n\nconst enhanceWithClickOutside =

    (Component: React.ComponentClass

    ): React.ComponentClass

    => {\n class EnhancedComponent extends React.Component

    {\n private wrappedInstanceRef = React.createRef>();\n\n public componentDidMount(): void {\n document.addEventListener('click', this.handleClickOutside, true);\n }\n\n public componentWillUnmount(): void {\n document.removeEventListener('click', this.handleClickOutside, true);\n }\n\n private handleClickOutside = (e: any) => {\n if (\n this.wrappedInstanceRef.current &&\n (e.target instanceof HTMLElement || e.target instanceof HTMLDocument)\n ) {\n const domNode = ReactDOM.findDOMNode(this.wrappedInstanceRef.current);\n\n // if the iframeTarget is set, we ignore the event's target, as there might\n // be rubbish in there.\n const target = e.iframeTarget || e.target;\n\n /**\n * Ignore target if it has the data attribute data-ignore_click_outside\n * with value true. We skip the click outside handling. For further information\n *\n * What happend:\n *\n * When you create a new node that has an empty renderedContent in RenderContentOutOfBand\n * response, the UI throw an error and reloads the GuestFrame.\n * This behavior is intended but lead to the error that it was not possible to use the NodeToolBar\n * after that reload on each node without reloading the whole window or changing the preview mode.\n *\n * Problem:\n *\n * We found out that we have an issue with the reload of the guestframe when it is triggered from\n * inside the guest frame. The events are all fired, but not in the right order.\n * So we want to handle the \"click outside handling\" when you click on the \"add Node\" Button to close\n * dropdowns like the publishing. But now we have the issue that the that the saga for the\n * nodeCreationWorkflow is fired to early and we close the dialog we just opened with\n * the \"click outside handling\" of the \"add node\" button.\n * We did not find a proper way to change the event order, yet. At the moment we add a\n * data-attribute to detect that we triggered the \"click outside handling\" from the NodeToolBar inside the\n * GuestFrame and skip the event.\n *\n * So it can happen that you have a opened publish drop down and it does not close when you open the\n * node creation dialog. But when you select the node type in the dialog the drop down will close.\n * And in general the drop down is opened before you click the \"add node\" button. Because you need\n * to click on the node to get the NodeToolBar and then the dialog will close.\n */\n if (isTargetExcludedForClickOutside(target)) {\n return;\n }\n\n if (\n (!domNode || !domNode.contains(target)) &&\n this.wrappedInstanceRef &&\n this.wrappedInstanceRef.current &&\n typeof this.wrappedInstanceRef.current.handleClickOutside === 'function'\n ) {\n this.wrappedInstanceRef.current.handleClickOutside(e);\n }\n }\n }\n\n public render(): JSX.Element {\n return (\n \n );\n }\n }\n\n (EnhancedComponent as any).displayName = `clickOutside(${Component.displayName || Component.name})`;\n\n return EnhancedComponent;\n};\n\nexport default enhanceWithClickOutside;\n","// src/Button/index.ts\nimport { themr } from \"@friendsofreactjs/react-css-themr\";\nimport identifiers from \"../identifiers\";\nimport Button from \"./button\";\n\n// src/reset.module.css\nimport \"../_css/M2GX4SZL.css\";\nvar reset_module_default = { \"reset\": \"neos-iiR9VW_reset\" };\n\n// src/Button/style.module.css\nimport \"../_css/6KVBML2I.css\";\nvar style_module_default = { \"btn--darkenHover\": \"neos-6Mnuzq_btn--darkenHover\", \"btn--isPressed\": \"neos-6Mnuzq_btn--isPressed\", \"btn--size-small\": \"neos-6Mnuzq_btn--size-small\", \"btn--lighter\": \"neos-6Mnuzq_btn--lighter\", \"btn--success\": \"neos-6Mnuzq_btn--success\", \"btn--warn\": \"neos-6Mnuzq_btn--warn\", \"btn--cleanHover\": \"neos-6Mnuzq_btn--cleanHover\", \"btn--successHover\": \"neos-6Mnuzq_btn--successHover\", \"btn--brandHover\": \"neos-6Mnuzq_btn--brandHover\", \"btn--errorHover\": \"neos-6Mnuzq_btn--errorHover\", \"btn--warnHover\": \"neos-6Mnuzq_btn--warnHover\", \"btn\": \"neos-6Mnuzq_btn \" + reset_module_default[\"reset\"], \"btn--clean\": \"neos-6Mnuzq_btn--clean\", \"btn--brandActive\": \"neos-6Mnuzq_btn--brandActive\", \"btn--transparent\": \"neos-6Mnuzq_btn--transparent\", \"btn--brand\": \"neos-6Mnuzq_btn--brand\", \"btn--neutral\": \"neos-6Mnuzq_btn--neutral\", \"btn--error\": \"neos-6Mnuzq_btn--error\" };\n\n// src/Button/index.ts\nvar Button_default = themr(identifiers.button, style_module_default)(Button);\nexport {\n Button_default as default\n};\n//# sourceMappingURL=index.js.map\n","import {themr} from '@friendsofreactjs/react-css-themr';\nimport identifiers from '../identifiers';\n\nimport Button from './button';\nimport style from './style.module.css';\n\nexport default themr(identifiers.button, style)(Button);\n","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"ThemeProvider\", {\n enumerable: true,\n get: function get() {\n return _ThemeProvider[\"default\"];\n }\n});\nObject.defineProperty(exports, \"themr\", {\n enumerable: true,\n get: function get() {\n return _themr[\"default\"];\n }\n});\nObject.defineProperty(exports, \"themeable\", {\n enumerable: true,\n get: function get() {\n return _themr.themeable;\n }\n});\n\nvar _ThemeProvider = _interopRequireDefault(require(\"./components/ThemeProvider\"));\n\nvar _themr = _interopRequireWildcard(require(\"./components/themr\"));\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = require(\"react\");\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _themrShape = _interopRequireDefault(require(\"../utils/themr-shape\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar ThemeProvider = /*#__PURE__*/function (_Component) {\n _inherits(ThemeProvider, _Component);\n\n var _super = _createSuper(ThemeProvider);\n\n function ThemeProvider() {\n _classCallCheck(this, ThemeProvider);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ThemeProvider, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n themr: {\n theme: this.props.theme\n }\n };\n }\n }, {\n key: \"render\",\n value: function render() {\n return _react.Children.only(this.props.children);\n }\n }]);\n\n return ThemeProvider;\n}(_react.Component);\n\nexports[\"default\"] = ThemeProvider;\n\n_defineProperty(ThemeProvider, \"propTypes\", {\n children: _propTypes[\"default\"].element.isRequired,\n theme: _propTypes[\"default\"].object.isRequired\n});\n\n_defineProperty(ThemeProvider, \"defaultProps\", {\n theme: {}\n});\n\n_defineProperty(ThemeProvider, \"childContextTypes\", {\n themr: _themrShape[\"default\"].isRequired\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default = _propTypes[\"default\"].shape({\n theme: _propTypes[\"default\"].object.isRequired\n});\n\nexports[\"default\"] = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.themeable = themeable;\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _hoistNonReactStatics = _interopRequireDefault(require(\"hoist-non-react-statics\"));\n\nvar _invariant = _interopRequireDefault(require(\"invariant\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * @typedef {Object.} TReactCSSThemrTheme\n */\n\n/**\n * @typedef {{}} TReactCSSThemrOptions\n * @property {String|Boolean} [composeTheme=COMPOSE_DEEPLY]\n */\nvar COMPOSE_DEEPLY = 'deeply';\nvar COMPOSE_SOFTLY = 'softly';\nvar DONT_COMPOSE = false;\nvar DEFAULT_OPTIONS = {\n composeTheme: COMPOSE_DEEPLY,\n mapThemrProps: defaultMapThemrProps\n};\nvar THEMR_CONFIG = typeof Symbol !== 'undefined' ? Symbol('THEMR_CONFIG') : '__REACT_CSS_THEMR_CONFIG__';\n/**\n * Themr decorator\n * @param {String|Number|Symbol} componentName - Component name\n * @param {TReactCSSThemrTheme} [localTheme] - Base theme\n * @param {{}} [options] - Themr options\n * @returns {function(ThemedComponent:Function):Function} - ThemedComponent\n */\n\nvar themr = function themr(componentName, localTheme) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return function (ThemedComponent) {\n var _DEFAULT_OPTIONS$opti = _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options),\n optionComposeTheme = _DEFAULT_OPTIONS$opti.composeTheme,\n optionMapThemrProps = _DEFAULT_OPTIONS$opti.mapThemrProps;\n\n validateComposeOption(optionComposeTheme);\n var config = ThemedComponent[THEMR_CONFIG];\n\n if (config && config.componentName === componentName) {\n config.localTheme = themeable(config.localTheme, localTheme);\n return ThemedComponent;\n }\n\n config = {\n componentName: componentName,\n localTheme: localTheme\n };\n /**\n * @property {{wrappedInstance: *}} refs\n */\n\n var Themed = /*#__PURE__*/function (_Component) {\n _inherits(Themed, _Component);\n\n var _super = _createSuper(Themed);\n\n function Themed() {\n var _this;\n\n _classCallCheck(this, Themed);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n _this.theme_ = _this.calcTheme(_this.props);\n return _this;\n }\n\n _createClass(Themed, [{\n key: \"getWrappedInstance\",\n value: function getWrappedInstance() {\n (0, _invariant[\"default\"])(true, 'DEPRECATED: To access the wrapped instance, you have to pass ' + '{ innerRef: fn } and retrieve with a callback ref style.');\n return this.refs.wrappedInstance;\n }\n }, {\n key: \"getNamespacedTheme\",\n value: function getNamespacedTheme(props) {\n var themeNamespace = props.themeNamespace,\n theme = props.theme;\n if (!themeNamespace) return theme;\n\n if (themeNamespace && !theme) {\n throw new Error('Invalid themeNamespace use in friendsofreactjs/react-css-themr. ' + 'themeNamespace prop should be used only with theme prop.');\n }\n\n return Object.keys(theme).filter(function (key) {\n return key.startsWith(themeNamespace);\n }).reduce(function (result, key) {\n return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, removeNamespace(key, themeNamespace), theme[key]));\n }, {});\n }\n }, {\n key: \"getThemeNotComposed\",\n value: function getThemeNotComposed(props) {\n var theme = props.theme;\n if (theme) return this.getNamespacedTheme(props);\n if (config.localTheme) return config.localTheme;\n return this.getContextTheme();\n }\n }, {\n key: \"getContextTheme\",\n value: function getContextTheme() {\n return this.context.themr ? this.context.themr.theme[config.componentName] : {};\n }\n }, {\n key: \"getTheme\",\n value: function getTheme(props) {\n var composeTheme = props.composeTheme;\n return composeTheme === COMPOSE_SOFTLY ? _objectSpread(_objectSpread(_objectSpread({}, this.getContextTheme()), config.localTheme), this.getNamespacedTheme(props)) : themeable(themeable(this.getContextTheme(), config.localTheme), this.getNamespacedTheme(props));\n }\n }, {\n key: \"calcTheme\",\n value: function calcTheme(props) {\n var composeTheme = props.composeTheme;\n return composeTheme ? this.getTheme(props) : this.getThemeNotComposed(props);\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this$props = this.props,\n composeTheme = _this$props.composeTheme,\n theme = _this$props.theme,\n themeNamespace = _this$props.themeNamespace;\n\n if (composeTheme !== nextProps.composeTheme || theme !== nextProps.theme || themeNamespace !== nextProps.themeNamespace) {\n this.theme_ = this.calcTheme(nextProps);\n }\n\n return true;\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/_react[\"default\"].createElement(ThemedComponent, this.props.mapThemrProps(this.props, this.theme_));\n }\n }]);\n\n return Themed;\n }(_react.Component);\n\n _defineProperty(Themed, \"displayName\", \"Themed\".concat(ThemedComponent.displayName || ThemedComponent.name || 'Component'));\n\n _defineProperty(Themed, \"contextTypes\", {\n themr: _propTypes[\"default\"].object\n });\n\n _defineProperty(Themed, \"propTypes\", _objectSpread(_objectSpread({}, ThemedComponent.propTypes), {}, {\n composeTheme: _propTypes[\"default\"].oneOf([COMPOSE_DEEPLY, COMPOSE_SOFTLY, DONT_COMPOSE]),\n innerRef: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].func, _propTypes[\"default\"].object]),\n theme: _propTypes[\"default\"].object,\n themeNamespace: _propTypes[\"default\"].string,\n mapThemrProps: _propTypes[\"default\"].func\n }));\n\n _defineProperty(Themed, \"defaultProps\", _objectSpread(_objectSpread({}, ThemedComponent.defaultProps), {}, {\n composeTheme: optionComposeTheme,\n mapThemrProps: optionMapThemrProps\n }));\n\n Themed[THEMR_CONFIG] = config;\n return (0, _hoistNonReactStatics[\"default\"])(Themed, ThemedComponent);\n };\n};\n\nvar _default = themr;\n/**\n * Merges passed themes by concatenating string keys and processing nested themes\n *\n * @param {...TReactCSSThemrTheme} themes - Themes\n * @returns {TReactCSSThemrTheme} - Resulting theme\n */\n\nexports[\"default\"] = _default;\n\nfunction themeable() {\n for (var _len2 = arguments.length, themes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n themes[_key2] = arguments[_key2];\n }\n\n return themes.reduce(function (acc, theme) {\n return merge(acc, theme);\n }, {});\n}\n/**\n * @param {TReactCSSThemrTheme} [original] - Original theme\n * @param {TReactCSSThemrTheme} [mixin] - Mixin theme\n * @returns {TReactCSSThemrTheme} - resulting theme\n */\n\n\nfunction merge() {\n var original = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var mixin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n //make a copy to avoid mutations of nested objects\n //also strip all functions injected by isomorphic-style-loader\n var result = Object.keys(original).reduce(function (acc, key) {\n var value = original[key];\n\n if (typeof value !== 'function') {\n acc[key] = value;\n }\n\n return acc;\n }, {}); //traverse mixin keys and merge them to resulting theme\n\n Object.keys(mixin).forEach(function (key) {\n //there's no need to set any defaults here\n var originalValue = result[key];\n var mixinValue = mixin[key];\n\n switch (_typeof(mixinValue)) {\n case 'object':\n {\n //possibly nested theme object\n switch (_typeof(originalValue)) {\n case 'object':\n {\n //exactly nested theme object - go recursive\n result[key] = merge(originalValue, mixinValue);\n break;\n }\n\n case 'undefined':\n {\n //original does not contain this nested key - just take it as is\n result[key] = mixinValue;\n break;\n }\n\n default:\n {\n //can't merge an object with a non-object\n throw new Error(\"You are merging object \".concat(key, \" with a non-object \").concat(originalValue));\n }\n }\n\n break;\n }\n\n case 'undefined': //fallthrough - handles accidentally unset values which may come from props\n\n case 'function':\n {\n //this handles issue when isomorphic-style-loader addes helper functions to css-module\n break; //just skip\n }\n\n default:\n {\n //plain values\n switch (_typeof(originalValue)) {\n case 'object':\n {\n //can't merge a non-object with an object\n throw new Error(\"You are merging non-object \".concat(mixinValue, \" with an object \").concat(key, \", (can occur when using empty or :global only base theme stylesheet)\"));\n }\n\n case 'undefined':\n {\n //mixin key is new to original theme - take it as is\n result[key] = mixinValue;\n break;\n }\n\n case 'function':\n {\n //this handles issue when isomorphic-style-loader addes helper functions to css-module\n break; //just skip\n }\n\n default:\n {\n //finally we can merge\n result[key] = originalValue.split(' ').concat(mixinValue.split(' ')).filter(function (item, pos, self) {\n return self.indexOf(item) === pos && item !== '';\n }).join(' ');\n break;\n }\n }\n\n break;\n }\n }\n });\n return result;\n}\n/**\n * Validates compose option\n *\n * @param {String|Boolean} composeTheme - Compose them option\n * @throws\n * @returns {undefined}\n */\n\n\nfunction validateComposeOption(composeTheme) {\n if ([COMPOSE_DEEPLY, COMPOSE_SOFTLY, DONT_COMPOSE].indexOf(composeTheme) === -1) {\n throw new Error(\"Invalid composeTheme option for friendsofreactjs/react-css-themr. Valid composition options are \".concat(COMPOSE_DEEPLY, \", \").concat(COMPOSE_SOFTLY, \" and \").concat(DONT_COMPOSE, \". The given option was \").concat(composeTheme));\n }\n}\n/**\n * Removes namespace from key\n *\n * @param {String} key - Key\n * @param {String} themeNamespace - Theme namespace\n * @returns {String} - Key\n */\n\n\nfunction removeNamespace(key, themeNamespace) {\n var capitalized = key.substr(themeNamespace.length);\n return capitalized.slice(0, 1).toLowerCase() + capitalized.slice(1);\n}\n/**\n * Maps props and theme to an object that will be used to pass down props to the\n * decorated component.\n *\n * @param {Object} ownProps - All props given to the decorated component\n * @param {Object} theme - Calculated then that should be passed down\n * @returns {Object} - Props that will be passed down to the decorated component\n */\n\n\nfunction defaultMapThemrProps(ownProps, theme) {\n var composeTheme = ownProps.composeTheme,\n innerRef = ownProps.innerRef,\n themeNamespace = ownProps.themeNamespace,\n mapThemrProps = ownProps.mapThemrProps,\n rest = _objectWithoutProperties(ownProps, [\"composeTheme\", \"innerRef\", \"themeNamespace\", \"mapThemrProps\"]);\n\n return _objectSpread(_objectSpread({}, rest), {}, {\n ref: innerRef,\n theme: theme\n });\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","// src/identifiers.ts\nvar identifiers_default = {\n badge: \"@neos-project/react-ui-components/badge\",\n bar: \"@neos-project/react-ui-components/bar\",\n button: \"@neos-project/react-ui-components/button\",\n buttonGroup: \"@neos-project/react-ui-components/buttonGroup\",\n checkBox: \"@neos-project/react-ui-components/checkBox\",\n dateInput: \"@neos-project/react-ui-components/dateInput\",\n dialog: \"@neos-project/react-ui-components/dialog\",\n dropDown: \"@neos-project/react-ui-components/dropDown\",\n dropDownContents: \"@neos-project/react-ui-components/dropDownContents\",\n dropDownHeader: \"@neos-project/react-ui-components/dropDownHeader\",\n frame: \"@neos-project/react-ui-components/frame\",\n grid: \"@neos-project/react-ui-components/grid\",\n gridItem: \"@neos-project/react-ui-components/gridItem\",\n headline: \"@neos-project/react-ui-components/headline\",\n icon: \"@neos-project/react-ui-components/icon\",\n iconButton: \"@neos-project/react-ui-components/iconButton\",\n iconButtonDropDown: \"@neos-project/react-ui-components/iconButtonDropDown\",\n label: \"@neos-project/react-ui-components/label\",\n listPreviewElement: \"@neos-project/react-ui-components/listPreviewElement\",\n multiSelectBox: \"@neos-project/react-ui-components/multiSelectBox\",\n multiSelectBox_ListPreviewSortable: \"@neos-project/react-ui-components/multiSelectBox_ListPreviewSortable\",\n multiSelectBox_ListPreviewSortable_DraggableListPreviewElement: \"@neos-project/react-ui-components/multiSelectBox_ListPreviewSortable_DraggableListPreviewElement\",\n selectBox: \"@neos-project/react-ui-components/selectBox\",\n selectBox_Header: \"@neos-project/react-ui-components/selectBox_Header\",\n selectBox_HeaderWithSearchInput: \"@neos-project/react-ui-components/selectBox_HeaderWithSearchInput\",\n selectBox_Option_MultiLineWithThumbnail: \"@neos-project/react-ui-components/selectBox_Option_MultiLineWithThumbnail\",\n sideBar: \"@neos-project/react-ui-components/sideBar\",\n tabs: \"@neos-project/react-ui-components/tabs\",\n tabsPanel: \"@neos-project/react-ui-components/tabsPanel\",\n textArea: \"@neos-project/react-ui-components/textArea\",\n textInput: \"@neos-project/react-ui-components/textInput\",\n toggablePanel: \"@neos-project/react-ui-components/toggablePanel\",\n toggablePanelContents: \"@neos-project/react-ui-components/toggablePanelContents\",\n toggablePanelHeader: \"@neos-project/react-ui-components/toggablePanelHeader\",\n tooltip: \"@neos-project/react-ui-components/tooltip\",\n tree: \"@neos-project/react-ui-components/tree\",\n treeNode: \"@neos-project/react-ui-components/treeNode\",\n treeNodeContents: \"@neos-project/react-ui-components/treeNodeContents\",\n treeNodeHeader: \"@neos-project/react-ui-components/treeNodeHeader\",\n treeDragLayer: \"@neos-project/react-ui-components/treeDragLayer\"\n};\nexport {\n identifiers_default as default\n};\n//# sourceMappingURL=identifiers.js.map\n","/* eslint-disable camelcase */\n//\n// Every component in this repository needs a uniquie identifier\n// to be used with `react-css-themr`, this opens up the possibility\n// for users of the UI to overide default css from the UI and\n// create custom themes / components.\n//\nexport default {\n badge: '@neos-project/react-ui-components/badge',\n bar: '@neos-project/react-ui-components/bar',\n button: '@neos-project/react-ui-components/button',\n buttonGroup: '@neos-project/react-ui-components/buttonGroup',\n checkBox: '@neos-project/react-ui-components/checkBox',\n dateInput: '@neos-project/react-ui-components/dateInput',\n dialog: '@neos-project/react-ui-components/dialog',\n dropDown: '@neos-project/react-ui-components/dropDown',\n dropDownContents: '@neos-project/react-ui-components/dropDownContents',\n dropDownHeader: '@neos-project/react-ui-components/dropDownHeader',\n frame: '@neos-project/react-ui-components/frame',\n grid: '@neos-project/react-ui-components/grid',\n gridItem: '@neos-project/react-ui-components/gridItem',\n headline: '@neos-project/react-ui-components/headline',\n icon: '@neos-project/react-ui-components/icon',\n iconButton: '@neos-project/react-ui-components/iconButton',\n iconButtonDropDown: '@neos-project/react-ui-components/iconButtonDropDown',\n label: '@neos-project/react-ui-components/label',\n listPreviewElement: '@neos-project/react-ui-components/listPreviewElement',\n multiSelectBox: '@neos-project/react-ui-components/multiSelectBox',\n multiSelectBox_ListPreviewSortable: '@neos-project/react-ui-components/multiSelectBox_ListPreviewSortable',\n multiSelectBox_ListPreviewSortable_DraggableListPreviewElement: '@neos-project/react-ui-components/multiSelectBox_ListPreviewSortable_DraggableListPreviewElement',\n selectBox: '@neos-project/react-ui-components/selectBox',\n selectBox_Header: '@neos-project/react-ui-components/selectBox_Header',\n selectBox_HeaderWithSearchInput: '@neos-project/react-ui-components/selectBox_HeaderWithSearchInput',\n selectBox_Option_MultiLineWithThumbnail: '@neos-project/react-ui-components/selectBox_Option_MultiLineWithThumbnail',\n sideBar: '@neos-project/react-ui-components/sideBar',\n tabs: '@neos-project/react-ui-components/tabs',\n tabsPanel: '@neos-project/react-ui-components/tabsPanel',\n textArea: '@neos-project/react-ui-components/textArea',\n textInput: '@neos-project/react-ui-components/textInput',\n toggablePanel: '@neos-project/react-ui-components/toggablePanel',\n toggablePanelContents: '@neos-project/react-ui-components/toggablePanelContents',\n toggablePanelHeader: '@neos-project/react-ui-components/toggablePanelHeader',\n tooltip: '@neos-project/react-ui-components/tooltip',\n tree: '@neos-project/react-ui-components/tree',\n treeNode: '@neos-project/react-ui-components/treeNode',\n treeNodeContents: '@neos-project/react-ui-components/treeNodeContents',\n treeNodeHeader: '@neos-project/react-ui-components/treeNodeHeader',\n treeDragLayer: '@neos-project/react-ui-components/treeDragLayer'\n};\n","// src/Button/button.tsx\nimport mergeClassNames from \"classnames\";\nimport React from \"react\";\nimport { makeFocusNode } from \"../_lib/focusNode\";\nvar defaultProps = {\n _refHandler: makeFocusNode,\n hoverStyle: \"brand\",\n isActive: false,\n disabled: false,\n isFocused: false,\n size: \"regular\",\n style: \"lighter\",\n type: \"button\"\n};\nvar Button = class extends React.PureComponent {\n getDisabled() {\n return Boolean(this.props.disabled);\n }\n render() {\n const {\n children,\n className,\n isPressed,\n isFocused,\n isActive,\n style,\n hoverStyle,\n size,\n theme,\n type,\n _refHandler,\n ...rest\n } = this.props;\n const disabled = this.getDisabled();\n const effectiveStyle = isActive ? \"brand\" : style;\n const effectiveHoverStyle = isActive ? \"brand\" : hoverStyle;\n const finalClassName = mergeClassNames(\n theme.btn,\n // @ts-ignore implizit any because ButtonTheme has no index signature\n theme[`btn--size-${size}`],\n // @ts-ignore implizit any because ButtonTheme has no index signature\n theme[`btn--${effectiveStyle}`],\n // @ts-ignore implizit any because ButtonTheme has no index signature\n theme[`btn--${effectiveHoverStyle}Hover`],\n {\n [theme[\"btn--brandActive\"]]: isActive,\n [theme[\"btn--isPressed\"]]: isPressed\n },\n className\n );\n return /* @__PURE__ */ React.createElement(\"button\", { ...rest, disabled, type, className: finalClassName, role: \"button\", ref: _refHandler && _refHandler(isFocused) }, children);\n }\n};\nButton.defaultProps = defaultProps;\nvar button_default = Button;\nexport {\n button_default as default,\n defaultProps\n};\n//# sourceMappingURL=button.js.map\n","import mergeClassNames from 'classnames';\nimport React from 'react';\n\nimport {PickDefaultProps} from '../utils-typescript';\nimport {makeFocusNode} from '../_lib/focusNode';\n\nexport type ButtonStyle = 'clean' | 'brand' | 'lighter' | 'neutral' | 'transparent' | 'success' | 'warn' | 'error';\nexport type ButtonHoverStyle = 'clean' | 'brand' | 'darken' | 'success' | 'warn' | 'error';\nexport type ButtonSize = 'small' | 'regular';\n\ninterface ButtonTheme {\n readonly 'btn': string;\n readonly 'btn--clean': string;\n readonly 'btn--lighter': string;\n readonly 'btn--transparent': string;\n readonly 'btn--brand': string;\n readonly 'btn--brandActive': string;\n readonly 'btn--brandHover': string;\n readonly 'btn--cleanHover': string;\n readonly 'btn--isPressed': string;\n readonly 'btn--darkenHover': string;\n}\n\n// We omit the standard HTML button style attribute,\n// so we have no collision with the Button component's style property,\n// while still enjoying the intellisense and type checking for the rest of the HTML button attributes\nexport type HTMLButtonElementAttributesExceptStyle = Omit, 'style'>;\n\n// own props and (optional) HTML button attributes except 'style'\nexport interface ButtonProps extends HTMLButtonElementAttributesExceptStyle {\n /**\n * This prop controls the visual pressed state of the `Button`.\n */\n readonly isPressed?: boolean;\n\n /**\n * This prop controls the visual focused state of the `Button`.\n * When `true`, the node gets focused via the DOM API.\n */\n readonly isFocused?: boolean;\n\n /**\n * This prop controls the visual and interactive disabled state of the `Button`.\n * When `true`, the node gets rendered with a truthy `disabled` prop.\n */\n readonly disabled?: boolean;\n\n /**\n * This prop controls the visual active state of the `Button`.\n */\n readonly isActive?: boolean;\n\n /**\n * The `kind` prop defines the regular visual style of the `Button`.\n */\n readonly style?: ButtonStyle;\n\n /**\n * As the `style` prop, this prop controls the visual :hover style of the `Button`.\n */\n readonly hoverStyle?: ButtonHoverStyle;\n\n /**\n * Defines the size of the button.\n */\n readonly size?: ButtonSize;\n\n /**\n * An optional `className` to attach to the wrapper.\n */\n readonly className?: string;\n\n /**\n * The contents to be rendered within the `Bar`.\n */\n readonly children: React.ReactNode;\n\n /**\n * An optional css theme to be injected.\n */\n readonly theme?: ButtonTheme;\n\n /**\n * An interal prop for testing purposes, do not set this prop manually.\n */\n readonly _refHandler?: (isFocused: boolean) => (node: any) => void;\n}\n\ntype DefaultProps = PickDefaultProps;\n\nexport const defaultProps: DefaultProps = {\n _refHandler: makeFocusNode,\n hoverStyle: 'brand',\n isActive: false,\n disabled: false,\n isFocused: false,\n size: 'regular',\n style: 'lighter',\n type: 'button'\n};\n\nclass Button extends React.PureComponent {\n public static readonly defaultProps = defaultProps;\n\n private getDisabled(): boolean {\n return Boolean(this.props.disabled);\n }\n\n public render(): JSX.Element {\n const {\n children,\n className,\n isPressed,\n isFocused,\n isActive,\n style,\n hoverStyle,\n size,\n theme,\n type,\n _refHandler,\n ...rest\n } = this.props;\n const disabled = this.getDisabled();\n const effectiveStyle = isActive ? 'brand' : style;\n const effectiveHoverStyle = isActive ? 'brand' : hoverStyle;\n const finalClassName = mergeClassNames(\n theme!.btn,\n // @ts-ignore implizit any because ButtonTheme has no index signature\n theme![`btn--size-${size}`],\n // @ts-ignore implizit any because ButtonTheme has no index signature\n theme![`btn--${effectiveStyle!}`],\n // @ts-ignore implizit any because ButtonTheme has no index signature\n theme![`btn--${effectiveHoverStyle!}Hover`],\n {\n [theme!['btn--brandActive']]: isActive,\n [theme!['btn--isPressed']]: isPressed\n },\n className,\n );\n\n return (\n \n );\n }\n}\n\nexport default Button;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// src/_lib/focusNode.ts\nvar makeFocusNode = (isFocused) => (node) => {\n if (node) {\n const method = isFocused ? \"focus\" : \"blur\";\n node[method]();\n }\n};\nexport {\n makeFocusNode\n};\n//# sourceMappingURL=focusNode.js.map\n","/**\n * Creates a curried function which can be used as a `ref` in React Components\n * to focus the rendered node.\n *\n * @param {Boolean} Indicates wether the node should be focused or not,\n */\nexport const makeFocusNode = (isFocused: boolean) => (node: any) => {\n if (node) {\n const method = isFocused ? 'focus' : 'blur';\n\n node[method]();\n }\n};\n","// src/CheckBox/index.ts\nimport { themr } from \"@friendsofreactjs/react-css-themr\";\nimport identifiers from \"../identifiers\";\nimport CheckBox from \"./checkBox\";\n\n// src/reset.module.css\nimport \"../_css/M2GX4SZL.css\";\nvar reset_module_default = { \"reset\": \"neos-iiR9VW_reset\" };\n\n// src/CheckBox/style.module.css\nimport \"../_css/BNXEUAC5.css\";\nvar style_module_default = { \"checkbox__checked\": \"neos-am4CoW_checkbox__checked\", \"checkbox__input\": \"neos-am4CoW_checkbox__input \" + reset_module_default[\"reset\"], \"checkbox__icon\": \"neos-am4CoW_checkbox__icon\", \"checkbox__inputMirror--active\": \"neos-am4CoW_checkbox__inputMirror--active\", \"checkbox__disabled\": \"neos-am4CoW_checkbox__disabled\", \"checkbox\": \"neos-am4CoW_checkbox \" + reset_module_default[\"reset\"], \"checkbox__inputMirror\": \"neos-am4CoW_checkbox__inputMirror \" + reset_module_default[\"reset\"] };\n\n// src/CheckBox/index.ts\nvar CheckBox_default = themr(identifiers.checkBox, style_module_default)(CheckBox);\nexport {\n CheckBox_default as default\n};\n//# sourceMappingURL=index.js.map\n","import {themr} from '@friendsofreactjs/react-css-themr';\n\nimport identifiers from '../identifiers';\nimport CheckBox from './checkBox';\nimport style from './style.module.css';\n\nexport default themr(identifiers.checkBox, style)(CheckBox);\n","// src/CheckBox/checkBox.tsx\nimport mergeClassNames from \"classnames\";\nimport React, { PureComponent } from \"react\";\nimport Icon from \"./../Icon\";\nvar CheckBox = class extends PureComponent {\n constructor() {\n super(...arguments);\n this.handleChange = () => {\n const { onChange, isChecked } = this.props;\n if (onChange) {\n onChange(!isChecked);\n }\n };\n }\n render() {\n const {\n isChecked,\n disabled,\n className,\n theme,\n ...rest\n } = this.props;\n const finalClassName = mergeClassNames(\n className,\n theme.checkbox,\n {\n [theme.checkbox__checked]: isChecked,\n [theme.checkbox__disabled]: disabled\n }\n );\n const mirrorClassNames = mergeClassNames(\n theme.checkbox__inputMirror,\n {\n [theme[\"checkbox__inputMirror--active\"]]: isChecked\n }\n );\n return /* @__PURE__ */ React.createElement(\"div\", { className: finalClassName }, /* @__PURE__ */ React.createElement(\n \"input\",\n {\n ...rest,\n className: theme.checkbox__input,\n type: \"checkbox\",\n checked: isChecked,\n \"aria-checked\": isChecked,\n onChange: this.handleChange,\n disabled\n }\n ), isChecked ? /* @__PURE__ */ React.createElement(Icon, { className: theme.checkbox__icon, icon: \"check\" }) : null, /* @__PURE__ */ React.createElement(\"div\", { className: mirrorClassNames }));\n }\n};\nvar checkBox_default = CheckBox;\nexport {\n checkBox_default as default\n};\n//# sourceMappingURL=checkBox.js.map\n","import mergeClassNames from 'classnames';\nimport React, {PureComponent} from 'react';\nimport Icon from './../Icon';\n\ninterface CheckBoxTheme {\n readonly checkbox: string;\n readonly checkbox__checked: string;\n readonly checkbox__disabled: string;\n readonly checkbox__input: string; // eslint-disable-line\n readonly checkbox__inputMirror: string; // eslint-disable-line\n readonly 'checkbox__inputMirror--active': string;\n readonly checkbox__icon: string;\n}\n\ntype HTMLInputElementAttributesExceptOnChange = Omit, 'onChange'>;\n\nexport interface CheckBoxProps extends HTMLInputElementAttributesExceptOnChange {\n /**\n * This prop controls the visual active state of the CheckBox.\n */\n readonly isChecked: boolean;\n\n /**\n * This prop controls if the CheckBox is disabled or not.\n */\n readonly disabled?: boolean;\n\n /**\n * An optional `className` to attach to the wrapper.\n */\n readonly className?: string;\n\n /**\n * An optional change handler which gets called once the user clicks on the CheckBox.\n */\n readonly onChange?: (isChecked: boolean) => void;\n\n /**\n * An optional css theme to be injected.\n */\n readonly theme: CheckBoxTheme;\n}\n\nclass CheckBox extends PureComponent {\n public render(): JSX.Element {\n const {\n isChecked,\n disabled,\n className,\n theme,\n ...rest\n } = this.props;\n const finalClassName = mergeClassNames(\n className,\n theme.checkbox,\n {\n [theme.checkbox__checked]: isChecked,\n [theme.checkbox__disabled]: disabled\n }\n );\n const mirrorClassNames = mergeClassNames(\n theme.checkbox__inputMirror,\n {\n [theme['checkbox__inputMirror--active']]: isChecked\n }\n );\n\n return (\n

    \n \n {isChecked ? : null}\n
    \n
    \n );\n }\n\n private readonly handleChange = () => {\n const {onChange, isChecked} = this.props;\n\n if (onChange) {\n onChange(!isChecked);\n }\n }\n}\n\nexport default CheckBox;\n","// src/Icon/index.ts\nimport { themr } from \"@friendsofreactjs/react-css-themr\";\nimport identifiers from \"../identifiers\";\nimport Icon from \"./icon\";\n\n// src/reset.module.css\nimport \"../_css/M2GX4SZL.css\";\nvar reset_module_default = { \"reset\": \"neos-iiR9VW_reset\" };\n\n// src/Icon/style.module.css\nimport \"../_css/PA6G4QJ6.css\";\nvar style_module_default = { \"icon\": \"neos-RjvLTG_icon \" + reset_module_default[\"reset\"], \"icon--color-warn\": \"neos-RjvLTG_icon--color-warn\", \"icon--paddedRight\": \"neos-RjvLTG_icon--paddedRight\", \"icon--big\": \"neos-RjvLTG_icon--big\", \"icon--tiny\": \"neos-RjvLTG_icon--tiny\", \"icon--large\": \"neos-RjvLTG_icon--large\", \"icon--resource\": \"neos-RjvLTG_icon--resource\", \"icon--color-error\": \"neos-RjvLTG_icon--color-error\", \"icon--huge\": \"neos-RjvLTG_icon--huge\", \"icon--small\": \"neos-RjvLTG_icon--small\", \"icon--color-primaryBlue\": \"neos-RjvLTG_icon--color-primaryBlue\", \"icon--paddedLeft\": \"neos-RjvLTG_icon--paddedLeft\" };\n\n// src/Icon/index.ts\nvar Icon_default = themr(identifiers.icon, style_module_default)(Icon);\nexport {\n Icon_default as default\n};\n//# sourceMappingURL=index.js.map\n","import {themr} from '@friendsofreactjs/react-css-themr';\n\nimport identifiers from '../identifiers';\nimport Icon from './icon';\n\nimport style from './style.module.css';\n\nexport default themr(identifiers.icon, style)(Icon);\n","// src/Icon/icon.tsx\nimport React, { PureComponent } from \"react\";\nimport FontAwesomeIcon from \"./fontAwesomeIcon\";\nimport ResourceIcon from \"./resourceIcon\";\nimport { defaultProps } from \"./iconDefaultProps\";\nvar Icon = class extends PureComponent {\n render() {\n const { icon } = this.props;\n if (icon && icon.substr(0, 11) === \"resource://\") {\n return /* @__PURE__ */ React.createElement(ResourceIcon, { ...this.props });\n }\n return /* @__PURE__ */ React.createElement(FontAwesomeIcon, { ...this.props });\n }\n};\nIcon.defaultProps = defaultProps;\nvar icon_default = Icon;\nexport {\n icon_default as default,\n defaultProps\n};\n//# sourceMappingURL=icon.js.map\n","import React, {PureComponent} from 'react';\n\nimport {FontAwesomeIconProps} from '@fortawesome/react-fontawesome';\nimport FontAwesomeIcon from './fontAwesomeIcon';\nimport ResourceIcon, {ResourceIconProps} from './resourceIcon';\nimport {defaultProps} from './iconDefaultProps';\n\ntype IconSize = 'xs' | 'sm' | 'lg' | '2x' | '3x';\ntype IconPadding = 'none' | 'left' | 'right';\ntype IconColor = 'default' | 'warn' | 'error' | 'primaryBlue';\n\nexport interface IconTheme {\n readonly icon: string;\n readonly 'icon--huge': string;\n readonly 'icon--large': string;\n readonly 'icon--big': string;\n readonly 'icon--small': string;\n readonly 'icon--tiny': string;\n readonly 'icon--paddedLeft': string;\n readonly 'icon--paddedRight': string;\n readonly 'icon--spin': string;\n readonly 'icon--color-warn': string;\n readonly 'icon--color-error': string;\n readonly 'icon--color-primaryBlue': string;\n}\n\nexport interface IconProps extends Omit {\n /**\n * We use the react component FortAwesome provides to render icons.\n * we will pass down all props to the component via {...rest} to expose it's api\n * https://github.com/FortAwesome/react-fontawesome/blob/master/README.md\n */\n\n /**\n * The identifier of the icon to render.\n * Can be a font-awesome icon identifier or a asset resource.\n */\n readonly icon?: string;\n\n /**\n * The (accessibility) label for this icon\n */\n readonly label?: string;\n\n /**\n * Controls the padding around the icon in a standardized way.\n */\n readonly padded?: IconPadding;\n\n /**\n * An optional `className` to attach to the wrapper.\n */\n readonly className?: string;\n\n /**\n * Adjust the color of the icon\n */\n readonly color?: IconColor;\n\n /**\n * Adjust the size of the icon\n */\n readonly size?: IconSize;\n\n /**\n * An optional css theme to be injected.\n */\n readonly theme?: IconTheme;\n}\n\nexport {defaultProps};\n\nclass Icon extends PureComponent {\n public static readonly defaultProps = defaultProps;\n\n public render(): JSX.Element | null {\n const {icon} = this.props;\n\n if (icon && icon.substr(0, 11) === 'resource://') {\n return ;\n }\n return ;\n }\n}\n\nexport default Icon;\n","// src/Icon/fontAwesomeIcon.tsx\nimport { FontAwesomeIcon as FontAwesomeIconOriginComponent } from \"@fortawesome/react-fontawesome\";\nimport mergeClassNames from \"classnames\";\nimport React, { PureComponent } from \"react\";\nimport { defaultProps } from \"./iconDefaultProps\";\nimport mapper from \"./mapper\";\nvar FontAwesomeIcon = class extends PureComponent {\n constructor() {\n super(...arguments);\n this.getIconProp = (icon) => {\n const mappedIcon = mapper(icon);\n const iconArray = mappedIcon.split(\" \");\n if (iconArray.length > 1) {\n const prefix2 = iconArray[0];\n const processedIcon = iconArray[1].startsWith(\"fa-\") ? iconArray[1].substr(3) : iconArray[1];\n return [prefix2, processedIcon];\n }\n const prefix = \"fas\";\n return [prefix, mappedIcon];\n };\n }\n render() {\n const { padded, theme, label, icon, className, color, ...rest } = this.props;\n const iconClassName = icon;\n const classNames = mergeClassNames(\n theme.icon,\n iconClassName,\n className,\n {\n [theme[\"icon--paddedLeft\"]]: padded === \"left\",\n [theme[\"icon--paddedRight\"]]: padded === \"right\",\n [theme[\"icon--color-warn\"]]: color === \"warn\",\n [theme[\"icon--color-error\"]]: color === \"error\",\n [theme[\"icon--color-primaryBlue\"]]: color === \"primaryBlue\"\n }\n );\n return /* @__PURE__ */ React.createElement(FontAwesomeIconOriginComponent, { icon: icon ? this.getIconProp(icon) : \"question\", \"aria-label\": label, className: classNames, ...rest });\n }\n};\nFontAwesomeIcon.defaultProps = defaultProps;\nvar fontAwesomeIcon_default = FontAwesomeIcon;\nexport {\n fontAwesomeIcon_default as default\n};\n//# sourceMappingURL=fontAwesomeIcon.js.map\n","import {IconName, IconPrefix} from '@fortawesome/fontawesome-svg-core';\nimport {FontAwesomeIcon as FontAwesomeIconOriginComponent} from '@fortawesome/react-fontawesome';\nimport mergeClassNames from 'classnames';\nimport React, {PureComponent} from 'react';\n\nimport {defaultProps} from './iconDefaultProps';\nimport {IconProps} from './icon';\nimport mapper from './mapper';\n\nclass FontAwesomeIcon extends PureComponent {\n public static readonly defaultProps = defaultProps;\n\n public render(): JSX.Element | null {\n const {padded, theme, label, icon, className, color, ...rest} = this.props;\n const iconClassName = icon;\n const classNames = mergeClassNames(\n theme!.icon,\n iconClassName,\n className,\n {\n [theme!['icon--paddedLeft']]: padded === 'left',\n [theme!['icon--paddedRight']]: padded === 'right',\n [theme!['icon--color-warn']]: color === 'warn',\n [theme!['icon--color-error']]: color === 'error',\n [theme!['icon--color-primaryBlue']]: color === 'primaryBlue'\n }\n );\n\n return ;\n }\n\n private readonly getIconProp = (icon: string): any => {\n const mappedIcon = mapper(icon);\n const iconArray = mappedIcon.split(' ');\n if (iconArray.length > 1) {\n const prefix = iconArray[0];\n const processedIcon = iconArray[1].startsWith('fa-') ? iconArray[1].substr(3) : iconArray[1];\n return [prefix as IconPrefix, processedIcon as IconName];\n }\n const prefix: IconPrefix = 'fas';\n return [prefix, mappedIcon as IconName];\n }\n}\n\nexport default FontAwesomeIcon;\n","import { parse, icon } from '@fortawesome/fontawesome-svg-core';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n// Get CSS class list from a props object\nfunction classList(props) {\n var _classes;\n\n var beat = props.beat,\n fade = props.fade,\n beatFade = props.beatFade,\n bounce = props.bounce,\n shake = props.shake,\n flash = props.flash,\n spin = props.spin,\n spinPulse = props.spinPulse,\n spinReverse = props.spinReverse,\n pulse = props.pulse,\n fixedWidth = props.fixedWidth,\n inverse = props.inverse,\n border = props.border,\n listItem = props.listItem,\n flip = props.flip,\n size = props.size,\n rotation = props.rotation,\n pull = props.pull; // map of CSS class names to properties\n\n var classes = (_classes = {\n 'fa-beat': beat,\n 'fa-fade': fade,\n 'fa-beat-fade': beatFade,\n 'fa-bounce': bounce,\n 'fa-shake': shake,\n 'fa-flash': flash,\n 'fa-spin': spin,\n 'fa-spin-reverse': spinReverse,\n 'fa-spin-pulse': spinPulse,\n 'fa-pulse': pulse,\n 'fa-fw': fixedWidth,\n 'fa-inverse': inverse,\n 'fa-border': border,\n 'fa-li': listItem,\n 'fa-flip': flip === true,\n 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',\n 'fa-flip-vertical': flip === 'vertical' || flip === 'both'\n }, _defineProperty(_classes, \"fa-\".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, \"fa-rotate-\".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty(_classes, \"fa-pull-\".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object\n // return an array of the keys where the value for the key is not null\n\n return Object.keys(classes).map(function (key) {\n return classes[key] ? key : null;\n }).filter(function (key) {\n return key;\n });\n}\n\n// Camelize taken from humps\n// humps is copyright © 2012+ Dom Christie\n// Released under the MIT license.\n// Performant way to determine if object coerces to a number\nfunction _isNumerical(obj) {\n obj = obj - 0; // eslint-disable-next-line no-self-compare\n\n return obj === obj;\n}\n\nfunction camelize(string) {\n if (_isNumerical(string)) {\n return string;\n } // eslint-disable-next-line no-useless-escape\n\n\n string = string.replace(/[\\-_\\s]+(.)?/g, function (match, chr) {\n return chr ? chr.toUpperCase() : '';\n }); // Ensure 1st char is always lowercase\n\n return string.substr(0, 1).toLowerCase() + string.substr(1);\n}\n\nvar _excluded$1 = [\"style\"];\n\nfunction capitalize(val) {\n return val.charAt(0).toUpperCase() + val.slice(1);\n}\n\nfunction styleToObject(style) {\n return style.split(';').map(function (s) {\n return s.trim();\n }).filter(function (s) {\n return s;\n }).reduce(function (acc, pair) {\n var i = pair.indexOf(':');\n var prop = camelize(pair.slice(0, i));\n var value = pair.slice(i + 1).trim();\n prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;\n return acc;\n }, {});\n}\n\nfunction convert(createElement, element) {\n var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (typeof element === 'string') {\n return element;\n }\n\n var children = (element.children || []).map(function (child) {\n return convert(createElement, child);\n });\n /* eslint-disable dot-notation */\n\n var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {\n var val = element.attributes[key];\n\n switch (key) {\n case 'class':\n acc.attrs['className'] = val;\n delete element.attributes['class'];\n break;\n\n case 'style':\n acc.attrs['style'] = styleToObject(val);\n break;\n\n default:\n if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {\n acc.attrs[key.toLowerCase()] = val;\n } else {\n acc.attrs[camelize(key)] = val;\n }\n\n }\n\n return acc;\n }, {\n attrs: {}\n });\n\n var _extraProps$style = extraProps.style,\n existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,\n remaining = _objectWithoutProperties(extraProps, _excluded$1);\n\n mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle);\n /* eslint-enable */\n\n return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));\n}\n\nvar PRODUCTION = false;\n\ntry {\n PRODUCTION = process.env.NODE_ENV === 'production';\n} catch (e) {}\n\nfunction log () {\n if (!PRODUCTION && console && typeof console.error === 'function') {\n var _console;\n\n (_console = console).error.apply(_console, arguments);\n }\n}\n\nfunction normalizeIconArgs(icon) {\n // this has everything that it needs to be rendered which means it was probably imported\n // directly from an icon svg package\n if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {\n return icon;\n }\n\n if (parse.icon) {\n return parse.icon(icon);\n } // if the icon is null, there's nothing to do\n\n\n if (icon === null) {\n return null;\n } // if the icon is an object and has a prefix and an icon name, return it\n\n\n if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {\n return icon;\n } // if it's an array with length of two\n\n\n if (Array.isArray(icon) && icon.length === 2) {\n // use the first item as prefix, second as icon name\n return {\n prefix: icon[0],\n iconName: icon[1]\n };\n } // if it's a string, use it as the icon name\n\n\n if (typeof icon === 'string') {\n return {\n prefix: 'fas',\n iconName: icon\n };\n }\n}\n\n// creates an object with a key of key\n// and a value of value\n// if certain conditions are met\nfunction objectWithKey(key, value) {\n // if the value is a non-empty array\n // or it's not an array but it is truthy\n // then create the object with the key and the value\n // if not, return an empty array\n return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};\n}\n\nvar _excluded = [\"forwardedRef\"];\nfunction FontAwesomeIcon(_ref) {\n var forwardedRef = _ref.forwardedRef,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var iconArgs = props.icon,\n maskArgs = props.mask,\n symbol = props.symbol,\n className = props.className,\n title = props.title,\n titleId = props.titleId,\n maskId = props.maskId;\n var iconLookup = normalizeIconArgs(iconArgs);\n var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));\n var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);\n var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));\n var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {\n symbol: symbol,\n title: title,\n titleId: titleId,\n maskId: maskId\n }));\n\n if (!renderedIcon) {\n log('Could not find icon', iconLookup);\n return null;\n }\n\n var abstract = renderedIcon.abstract;\n var extraProps = {\n ref: forwardedRef\n };\n Object.keys(props).forEach(function (key) {\n // eslint-disable-next-line no-prototype-builtins\n if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {\n extraProps[key] = props[key];\n }\n });\n return convertCurry(abstract[0], extraProps);\n}\nFontAwesomeIcon.displayName = 'FontAwesomeIcon';\nFontAwesomeIcon.propTypes = {\n beat: PropTypes.bool,\n border: PropTypes.bool,\n beatFade: PropTypes.bool,\n bounce: PropTypes.bool,\n className: PropTypes.string,\n fade: PropTypes.bool,\n flash: PropTypes.bool,\n mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),\n maskId: PropTypes.string,\n fixedWidth: PropTypes.bool,\n inverse: PropTypes.bool,\n flip: PropTypes.oneOf([true, false, 'horizontal', 'vertical', 'both']),\n icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),\n listItem: PropTypes.bool,\n pull: PropTypes.oneOf(['right', 'left']),\n pulse: PropTypes.bool,\n rotation: PropTypes.oneOf([0, 90, 180, 270]),\n shake: PropTypes.bool,\n size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),\n spin: PropTypes.bool,\n spinPulse: PropTypes.bool,\n spinReverse: PropTypes.bool,\n symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n title: PropTypes.string,\n titleId: PropTypes.string,\n transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n swapOpacity: PropTypes.bool\n};\nFontAwesomeIcon.defaultProps = {\n border: false,\n className: '',\n mask: null,\n maskId: null,\n fixedWidth: false,\n inverse: false,\n flip: false,\n icon: null,\n listItem: false,\n pull: null,\n pulse: false,\n rotation: null,\n size: null,\n spin: false,\n spinPulse: false,\n spinReverse: false,\n beat: false,\n fade: false,\n beatFade: false,\n bounce: false,\n shake: false,\n symbol: false,\n title: '',\n titleId: null,\n transform: null,\n swapOpacity: false\n};\nvar convertCurry = convert.bind(null, React.createElement);\n\nexport { FontAwesomeIcon };\n","/*!\n * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nvar noop = function noop() {};\n\nvar _WINDOW = {};\nvar _DOCUMENT = {};\nvar _MUTATION_OBSERVER = null;\nvar _PERFORMANCE = {\n mark: noop,\n measure: noop\n};\n\ntry {\n if (typeof window !== 'undefined') _WINDOW = window;\n if (typeof document !== 'undefined') _DOCUMENT = document;\n if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;\n if (typeof performance !== 'undefined') _PERFORMANCE = performance;\n} catch (e) {}\n\nvar _ref = _WINDOW.navigator || {},\n _ref$userAgent = _ref.userAgent,\n userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;\n\nvar WINDOW = _WINDOW;\nvar DOCUMENT = _DOCUMENT;\nvar MUTATION_OBSERVER = _MUTATION_OBSERVER;\nvar PERFORMANCE = _PERFORMANCE;\nvar IS_BROWSER = !!WINDOW.document;\nvar IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';\nvar IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');\n\nvar NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';\nvar UNITS_IN_GRID = 16;\nvar DEFAULT_FAMILY_PREFIX = 'fa';\nvar DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';\nvar DATA_FA_I2SVG = 'data-fa-i2svg';\nvar DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';\nvar DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';\nvar DATA_PREFIX = 'data-prefix';\nvar DATA_ICON = 'data-icon';\nvar HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';\nvar MUTATION_APPROACH_ASYNC = 'async';\nvar TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];\nvar PRODUCTION = function () {\n try {\n return process.env.NODE_ENV === 'production';\n } catch (e) {\n return false;\n }\n}();\nvar PREFIX_TO_STYLE = {\n 'fas': 'solid',\n 'far': 'regular',\n 'fal': 'light',\n 'fad': 'duotone',\n 'fab': 'brands',\n 'fak': 'kit',\n 'fa': 'solid'\n};\nvar STYLE_TO_PREFIX = {\n 'solid': 'fas',\n 'regular': 'far',\n 'light': 'fal',\n 'duotone': 'fad',\n 'brands': 'fab',\n 'kit': 'fak'\n};\nvar LAYERS_TEXT_CLASSNAME = 'fa-layers-text';\nvar FONT_FAMILY_PATTERN = /Font Awesome ([5 ]*)(Solid|Regular|Light|Duotone|Brands|Free|Pro|Kit).*/i; // TODO: do we need to handle font-weight for kit SVG pseudo-elements?\n\nvar FONT_WEIGHT_TO_PREFIX = {\n '900': 'fas',\n '400': 'far',\n 'normal': 'far',\n '300': 'fal'\n};\nvar oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);\nvar ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];\nvar DUOTONE_CLASSES = {\n GROUP: 'group',\n SWAP_OPACITY: 'swap-opacity',\n PRIMARY: 'primary',\n SECONDARY: 'secondary'\n};\nvar RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY].concat(oneToTen.map(function (n) {\n return \"\".concat(n, \"x\");\n})).concat(oneToTwenty.map(function (n) {\n return \"w-\".concat(n);\n}));\n\nvar initial = WINDOW.FontAwesomeConfig || {};\n\nfunction getAttrConfig(attr) {\n var element = DOCUMENT.querySelector('script[' + attr + ']');\n\n if (element) {\n return element.getAttribute(attr);\n }\n}\n\nfunction coerce(val) {\n // Getting an empty string will occur if the attribute is set on the HTML tag but without a value\n // We'll assume that this is an indication that it should be toggled to true\n // For example \n if (val === '') return true;\n if (val === 'false') return false;\n if (val === 'true') return true;\n return val;\n}\n\nif (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {\n var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];\n attrs.forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n attr = _ref2[0],\n key = _ref2[1];\n\n var val = coerce(getAttrConfig(attr));\n\n if (val !== undefined && val !== null) {\n initial[key] = val;\n }\n });\n}\n\nvar _default = {\n familyPrefix: DEFAULT_FAMILY_PREFIX,\n replacementClass: DEFAULT_REPLACEMENT_CLASS,\n autoReplaceSvg: true,\n autoAddCss: true,\n autoA11y: true,\n searchPseudoElements: false,\n observeMutations: true,\n mutateApproach: 'async',\n keepOriginalSource: true,\n measurePerformance: false,\n showMissingIcons: true\n};\n\nvar _config = _objectSpread({}, _default, initial);\n\nif (!_config.autoReplaceSvg) _config.observeMutations = false;\n\nvar config = _objectSpread({}, _config);\n\nWINDOW.FontAwesomeConfig = config;\n\nvar w = WINDOW || {};\nif (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};\nif (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};\nif (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};\nif (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];\nvar namespace = w[NAMESPACE_IDENTIFIER];\n\nvar functions = [];\n\nvar listener = function listener() {\n DOCUMENT.removeEventListener('DOMContentLoaded', listener);\n loaded = 1;\n functions.map(function (fn) {\n return fn();\n });\n};\n\nvar loaded = false;\n\nif (IS_DOM) {\n loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);\n if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);\n}\n\nfunction domready (fn) {\n if (!IS_DOM) return;\n loaded ? setTimeout(fn, 0) : functions.push(fn);\n}\n\nvar PENDING = 'pending';\nvar SETTLED = 'settled';\nvar FULFILLED = 'fulfilled';\nvar REJECTED = 'rejected';\n\nvar NOOP = function NOOP() {};\n\nvar isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';\nvar asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;\nvar asyncQueue = [];\nvar asyncTimer;\n\nfunction asyncFlush() {\n // run promise callbacks\n for (var i = 0; i < asyncQueue.length; i++) {\n asyncQueue[i][0](asyncQueue[i][1]);\n } // reset async asyncQueue\n\n\n asyncQueue = [];\n asyncTimer = false;\n}\n\nfunction asyncCall(callback, arg) {\n asyncQueue.push([callback, arg]);\n\n if (!asyncTimer) {\n asyncTimer = true;\n asyncSetTimer(asyncFlush, 0);\n }\n}\n\nfunction invokeResolver(resolver, promise) {\n function resolvePromise(value) {\n resolve(promise, value);\n }\n\n function rejectPromise(reason) {\n reject(promise, reason);\n }\n\n try {\n resolver(resolvePromise, rejectPromise);\n } catch (e) {\n rejectPromise(e);\n }\n}\n\nfunction invokeCallback(subscriber) {\n var owner = subscriber.owner;\n var settled = owner._state;\n var value = owner._data;\n var callback = subscriber[settled];\n var promise = subscriber.then;\n\n if (typeof callback === 'function') {\n settled = FULFILLED;\n\n try {\n value = callback(value);\n } catch (e) {\n reject(promise, e);\n }\n }\n\n if (!handleThenable(promise, value)) {\n if (settled === FULFILLED) {\n resolve(promise, value);\n }\n\n if (settled === REJECTED) {\n reject(promise, value);\n }\n }\n}\n\nfunction handleThenable(promise, value) {\n var resolved;\n\n try {\n if (promise === value) {\n throw new TypeError('A promises callback cannot return that same promise.');\n }\n\n if (value && (typeof value === 'function' || _typeof(value) === 'object')) {\n // then should be retrieved only once\n var then = value.then;\n\n if (typeof then === 'function') {\n then.call(value, function (val) {\n if (!resolved) {\n resolved = true;\n\n if (value === val) {\n fulfill(promise, val);\n } else {\n resolve(promise, val);\n }\n }\n }, function (reason) {\n if (!resolved) {\n resolved = true;\n reject(promise, reason);\n }\n });\n return true;\n }\n }\n } catch (e) {\n if (!resolved) {\n reject(promise, e);\n }\n\n return true;\n }\n\n return false;\n}\n\nfunction resolve(promise, value) {\n if (promise === value || !handleThenable(promise, value)) {\n fulfill(promise, value);\n }\n}\n\nfunction fulfill(promise, value) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = value;\n asyncCall(publishFulfillment, promise);\n }\n}\n\nfunction reject(promise, reason) {\n if (promise._state === PENDING) {\n promise._state = SETTLED;\n promise._data = reason;\n asyncCall(publishRejection, promise);\n }\n}\n\nfunction publish(promise) {\n promise._then = promise._then.forEach(invokeCallback);\n}\n\nfunction publishFulfillment(promise) {\n promise._state = FULFILLED;\n publish(promise);\n}\n\nfunction publishRejection(promise) {\n promise._state = REJECTED;\n publish(promise);\n\n if (!promise._handled && isNode) {\n global.process.emit('unhandledRejection', promise._data, promise);\n }\n}\n\nfunction notifyRejectionHandled(promise) {\n global.process.emit('rejectionHandled', promise);\n}\n/**\n * @class\n */\n\n\nfunction P(resolver) {\n if (typeof resolver !== 'function') {\n throw new TypeError('Promise resolver ' + resolver + ' is not a function');\n }\n\n if (this instanceof P === false) {\n throw new TypeError('Failed to construct \\'Promise\\': Please use the \\'new\\' operator, this object constructor cannot be called as a function.');\n }\n\n this._then = [];\n invokeResolver(resolver, this);\n}\n\nP.prototype = {\n constructor: P,\n _state: PENDING,\n _then: null,\n _data: undefined,\n _handled: false,\n then: function then(onFulfillment, onRejection) {\n var subscriber = {\n owner: this,\n then: new this.constructor(NOOP),\n fulfilled: onFulfillment,\n rejected: onRejection\n };\n\n if ((onRejection || onFulfillment) && !this._handled) {\n this._handled = true;\n\n if (this._state === REJECTED && isNode) {\n asyncCall(notifyRejectionHandled, this);\n }\n }\n\n if (this._state === FULFILLED || this._state === REJECTED) {\n // already resolved, call callback async\n asyncCall(invokeCallback, subscriber);\n } else {\n // subscribe\n this._then.push(subscriber);\n }\n\n return subscriber.then;\n },\n catch: function _catch(onRejection) {\n return this.then(null, onRejection);\n }\n};\n\nP.all = function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError('You must pass an array to Promise.all().');\n }\n\n return new P(function (resolve, reject) {\n var results = [];\n var remaining = 0;\n\n function resolver(index) {\n remaining++;\n return function (value) {\n results[index] = value;\n\n if (! --remaining) {\n resolve(results);\n }\n };\n }\n\n for (var i = 0, promise; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolver(i), reject);\n } else {\n results[i] = promise;\n }\n }\n\n if (!remaining) {\n resolve(results);\n }\n });\n};\n\nP.race = function (promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError('You must pass an array to Promise.race().');\n }\n\n return new P(function (resolve, reject) {\n for (var i = 0, promise; i < promises.length; i++) {\n promise = promises[i];\n\n if (promise && typeof promise.then === 'function') {\n promise.then(resolve, reject);\n } else {\n resolve(promise);\n }\n }\n });\n};\n\nP.resolve = function (value) {\n if (value && _typeof(value) === 'object' && value.constructor === P) {\n return value;\n }\n\n return new P(function (resolve) {\n resolve(value);\n });\n};\n\nP.reject = function (reason) {\n return new P(function (resolve, reject) {\n reject(reason);\n });\n};\n\nvar picked = typeof Promise === 'function' ? Promise : P;\n\nvar d = UNITS_IN_GRID;\nvar meaninglessTransform = {\n size: 16,\n x: 0,\n y: 0,\n rotate: 0,\n flipX: false,\n flipY: false\n};\n\nfunction isReserved(name) {\n return ~RESERVED_CLASSES.indexOf(name);\n}\nfunction insertCss(css) {\n if (!css || !IS_DOM) {\n return;\n }\n\n var style = DOCUMENT.createElement('style');\n style.setAttribute('type', 'text/css');\n style.innerHTML = css;\n var headChildren = DOCUMENT.head.childNodes;\n var beforeChild = null;\n\n for (var i = headChildren.length - 1; i > -1; i--) {\n var child = headChildren[i];\n var tagName = (child.tagName || '').toUpperCase();\n\n if (['STYLE', 'LINK'].indexOf(tagName) > -1) {\n beforeChild = child;\n }\n }\n\n DOCUMENT.head.insertBefore(style, beforeChild);\n return css;\n}\nvar idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\nfunction nextUniqueId() {\n var size = 12;\n var id = '';\n\n while (size-- > 0) {\n id += idPool[Math.random() * 62 | 0];\n }\n\n return id;\n}\nfunction toArray(obj) {\n var array = [];\n\n for (var i = (obj || []).length >>> 0; i--;) {\n array[i] = obj[i];\n }\n\n return array;\n}\nfunction classArray(node) {\n if (node.classList) {\n return toArray(node.classList);\n } else {\n return (node.getAttribute('class') || '').split(' ').filter(function (i) {\n return i;\n });\n }\n}\nfunction getIconName(familyPrefix, cls) {\n var parts = cls.split('-');\n var prefix = parts[0];\n var iconName = parts.slice(1).join('-');\n\n if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {\n return iconName;\n } else {\n return null;\n }\n}\nfunction htmlEscape(str) {\n return \"\".concat(str).replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(//g, '>');\n}\nfunction joinAttributes(attributes) {\n return Object.keys(attributes || {}).reduce(function (acc, attributeName) {\n return acc + \"\".concat(attributeName, \"=\\\"\").concat(htmlEscape(attributes[attributeName]), \"\\\" \");\n }, '').trim();\n}\nfunction joinStyles(styles) {\n return Object.keys(styles || {}).reduce(function (acc, styleName) {\n return acc + \"\".concat(styleName, \": \").concat(styles[styleName], \";\");\n }, '');\n}\nfunction transformIsMeaningful(transform) {\n return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;\n}\nfunction transformForSvg(_ref) {\n var transform = _ref.transform,\n containerWidth = _ref.containerWidth,\n iconWidth = _ref.iconWidth;\n var outer = {\n transform: \"translate(\".concat(containerWidth / 2, \" 256)\")\n };\n var innerTranslate = \"translate(\".concat(transform.x * 32, \", \").concat(transform.y * 32, \") \");\n var innerScale = \"scale(\".concat(transform.size / 16 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / 16 * (transform.flipY ? -1 : 1), \") \");\n var innerRotate = \"rotate(\".concat(transform.rotate, \" 0 0)\");\n var inner = {\n transform: \"\".concat(innerTranslate, \" \").concat(innerScale, \" \").concat(innerRotate)\n };\n var path = {\n transform: \"translate(\".concat(iconWidth / 2 * -1, \" -256)\")\n };\n return {\n outer: outer,\n inner: inner,\n path: path\n };\n}\nfunction transformForCss(_ref2) {\n var transform = _ref2.transform,\n _ref2$width = _ref2.width,\n width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,\n _ref2$height = _ref2.height,\n height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,\n _ref2$startCentered = _ref2.startCentered,\n startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;\n var val = '';\n\n if (startCentered && IS_IE) {\n val += \"translate(\".concat(transform.x / d - width / 2, \"em, \").concat(transform.y / d - height / 2, \"em) \");\n } else if (startCentered) {\n val += \"translate(calc(-50% + \".concat(transform.x / d, \"em), calc(-50% + \").concat(transform.y / d, \"em)) \");\n } else {\n val += \"translate(\".concat(transform.x / d, \"em, \").concat(transform.y / d, \"em) \");\n }\n\n val += \"scale(\".concat(transform.size / d * (transform.flipX ? -1 : 1), \", \").concat(transform.size / d * (transform.flipY ? -1 : 1), \") \");\n val += \"rotate(\".concat(transform.rotate, \"deg) \");\n return val;\n}\n\nvar ALL_SPACE = {\n x: 0,\n y: 0,\n width: '100%',\n height: '100%'\n};\n\nfunction fillBlack(abstract) {\n var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (abstract.attributes && (abstract.attributes.fill || force)) {\n abstract.attributes.fill = 'black';\n }\n\n return abstract;\n}\n\nfunction deGroup(abstract) {\n if (abstract.tag === 'g') {\n return abstract.children;\n } else {\n return [abstract];\n }\n}\n\nfunction makeIconMasking (_ref) {\n var children = _ref.children,\n attributes = _ref.attributes,\n main = _ref.main,\n mask = _ref.mask,\n explicitMaskId = _ref.maskId,\n transform = _ref.transform;\n var mainWidth = main.width,\n mainPath = main.icon;\n var maskWidth = mask.width,\n maskPath = mask.icon;\n var trans = transformForSvg({\n transform: transform,\n containerWidth: maskWidth,\n iconWidth: mainWidth\n });\n var maskRect = {\n tag: 'rect',\n attributes: _objectSpread({}, ALL_SPACE, {\n fill: 'white'\n })\n };\n var maskInnerGroupChildrenMixin = mainPath.children ? {\n children: mainPath.children.map(fillBlack)\n } : {};\n var maskInnerGroup = {\n tag: 'g',\n attributes: _objectSpread({}, trans.inner),\n children: [fillBlack(_objectSpread({\n tag: mainPath.tag,\n attributes: _objectSpread({}, mainPath.attributes, trans.path)\n }, maskInnerGroupChildrenMixin))]\n };\n var maskOuterGroup = {\n tag: 'g',\n attributes: _objectSpread({}, trans.outer),\n children: [maskInnerGroup]\n };\n var maskId = \"mask-\".concat(explicitMaskId || nextUniqueId());\n var clipId = \"clip-\".concat(explicitMaskId || nextUniqueId());\n var maskTag = {\n tag: 'mask',\n attributes: _objectSpread({}, ALL_SPACE, {\n id: maskId,\n maskUnits: 'userSpaceOnUse',\n maskContentUnits: 'userSpaceOnUse'\n }),\n children: [maskRect, maskOuterGroup]\n };\n var defs = {\n tag: 'defs',\n children: [{\n tag: 'clipPath',\n attributes: {\n id: clipId\n },\n children: deGroup(maskPath)\n }, maskTag]\n };\n children.push(defs, {\n tag: 'rect',\n attributes: _objectSpread({\n fill: 'currentColor',\n 'clip-path': \"url(#\".concat(clipId, \")\"),\n mask: \"url(#\".concat(maskId, \")\")\n }, ALL_SPACE)\n });\n return {\n children: children,\n attributes: attributes\n };\n}\n\nfunction makeIconStandard (_ref) {\n var children = _ref.children,\n attributes = _ref.attributes,\n main = _ref.main,\n transform = _ref.transform,\n styles = _ref.styles;\n var styleString = joinStyles(styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n if (transformIsMeaningful(transform)) {\n var trans = transformForSvg({\n transform: transform,\n containerWidth: main.width,\n iconWidth: main.width\n });\n children.push({\n tag: 'g',\n attributes: _objectSpread({}, trans.outer),\n children: [{\n tag: 'g',\n attributes: _objectSpread({}, trans.inner),\n children: [{\n tag: main.icon.tag,\n children: main.icon.children,\n attributes: _objectSpread({}, main.icon.attributes, trans.path)\n }]\n }]\n });\n } else {\n children.push(main.icon);\n }\n\n return {\n children: children,\n attributes: attributes\n };\n}\n\nfunction asIcon (_ref) {\n var children = _ref.children,\n main = _ref.main,\n mask = _ref.mask,\n attributes = _ref.attributes,\n styles = _ref.styles,\n transform = _ref.transform;\n\n if (transformIsMeaningful(transform) && main.found && !mask.found) {\n var width = main.width,\n height = main.height;\n var offset = {\n x: width / height / 2,\n y: 0.5\n };\n attributes['style'] = joinStyles(_objectSpread({}, styles, {\n 'transform-origin': \"\".concat(offset.x + transform.x / 16, \"em \").concat(offset.y + transform.y / 16, \"em\")\n }));\n }\n\n return [{\n tag: 'svg',\n attributes: attributes,\n children: children\n }];\n}\n\nfunction asSymbol (_ref) {\n var prefix = _ref.prefix,\n iconName = _ref.iconName,\n children = _ref.children,\n attributes = _ref.attributes,\n symbol = _ref.symbol;\n var id = symbol === true ? \"\".concat(prefix, \"-\").concat(config.familyPrefix, \"-\").concat(iconName) : symbol;\n return [{\n tag: 'svg',\n attributes: {\n style: 'display: none;'\n },\n children: [{\n tag: 'symbol',\n attributes: _objectSpread({}, attributes, {\n id: id\n }),\n children: children\n }]\n }];\n}\n\nfunction makeInlineSvgAbstract(params) {\n var _params$icons = params.icons,\n main = _params$icons.main,\n mask = _params$icons.mask,\n prefix = params.prefix,\n iconName = params.iconName,\n transform = params.transform,\n symbol = params.symbol,\n title = params.title,\n maskId = params.maskId,\n titleId = params.titleId,\n extra = params.extra,\n _params$watchable = params.watchable,\n watchable = _params$watchable === void 0 ? false : _params$watchable;\n\n var _ref = mask.found ? mask : main,\n width = _ref.width,\n height = _ref.height;\n\n var isUploadedIcon = prefix === 'fak';\n var widthClass = isUploadedIcon ? '' : \"fa-w-\".concat(Math.ceil(width / height * 16));\n var attrClass = [config.replacementClass, iconName ? \"\".concat(config.familyPrefix, \"-\").concat(iconName) : '', widthClass].filter(function (c) {\n return extra.classes.indexOf(c) === -1;\n }).filter(function (c) {\n return c !== '' || !!c;\n }).concat(extra.classes).join(' ');\n var content = {\n children: [],\n attributes: _objectSpread({}, extra.attributes, {\n 'data-prefix': prefix,\n 'data-icon': iconName,\n 'class': attrClass,\n 'role': extra.attributes.role || 'img',\n 'xmlns': 'http://www.w3.org/2000/svg',\n 'viewBox': \"0 0 \".concat(width, \" \").concat(height)\n })\n };\n var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {\n width: \"\".concat(width / height * 16 * 0.0625, \"em\")\n } : {};\n\n if (watchable) {\n content.attributes[DATA_FA_I2SVG] = '';\n }\n\n if (title) content.children.push({\n tag: 'title',\n attributes: {\n id: content.attributes['aria-labelledby'] || \"title-\".concat(titleId || nextUniqueId())\n },\n children: [title]\n });\n\n var args = _objectSpread({}, content, {\n prefix: prefix,\n iconName: iconName,\n main: main,\n mask: mask,\n maskId: maskId,\n transform: transform,\n symbol: symbol,\n styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)\n });\n\n var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),\n children = _ref2.children,\n attributes = _ref2.attributes;\n\n args.children = children;\n args.attributes = attributes;\n\n if (symbol) {\n return asSymbol(args);\n } else {\n return asIcon(args);\n }\n}\nfunction makeLayersTextAbstract(params) {\n var content = params.content,\n width = params.width,\n height = params.height,\n transform = params.transform,\n title = params.title,\n extra = params.extra,\n _params$watchable2 = params.watchable,\n watchable = _params$watchable2 === void 0 ? false : _params$watchable2;\n\n var attributes = _objectSpread({}, extra.attributes, title ? {\n 'title': title\n } : {}, {\n 'class': extra.classes.join(' ')\n });\n\n if (watchable) {\n attributes[DATA_FA_I2SVG] = '';\n }\n\n var styles = _objectSpread({}, extra.styles);\n\n if (transformIsMeaningful(transform)) {\n styles['transform'] = transformForCss({\n transform: transform,\n startCentered: true,\n width: width,\n height: height\n });\n styles['-webkit-transform'] = styles['transform'];\n }\n\n var styleString = joinStyles(styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n\n return val;\n}\nfunction makeLayersCounterAbstract(params) {\n var content = params.content,\n title = params.title,\n extra = params.extra;\n\n var attributes = _objectSpread({}, extra.attributes, title ? {\n 'title': title\n } : {}, {\n 'class': extra.classes.join(' ')\n });\n\n var styleString = joinStyles(extra.styles);\n\n if (styleString.length > 0) {\n attributes['style'] = styleString;\n }\n\n var val = [];\n val.push({\n tag: 'span',\n attributes: attributes,\n children: [content]\n });\n\n if (title) {\n val.push({\n tag: 'span',\n attributes: {\n class: 'sr-only'\n },\n children: [title]\n });\n }\n\n return val;\n}\n\nvar noop$1 = function noop() {};\n\nvar p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {\n mark: noop$1,\n measure: noop$1\n};\nvar preamble = \"FA \\\"5.15.4\\\"\";\n\nvar begin = function begin(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" begins\"));\n return function () {\n return end(name);\n };\n};\n\nvar end = function end(name) {\n p.mark(\"\".concat(preamble, \" \").concat(name, \" ends\"));\n p.measure(\"\".concat(preamble, \" \").concat(name), \"\".concat(preamble, \" \").concat(name, \" begins\"), \"\".concat(preamble, \" \").concat(name, \" ends\"));\n};\n\nvar perf = {\n begin: begin,\n end: end\n};\n\n/**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */\n\nvar bindInternal4 = function bindInternal4(func, thisContext) {\n return function (a, b, c, d) {\n return func.call(thisContext, a, b, c, d);\n };\n};\n\n/**\n * # Reduce\n *\n * A fast object `.reduce()` implementation.\n *\n * @param {Object} subject The object to reduce over.\n * @param {Function} fn The reducer function.\n * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].\n * @param {Object} thisContext The context for the reducer.\n * @return {mixed} The final result.\n */\n\n\nvar reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {\n var keys = Object.keys(subject),\n length = keys.length,\n iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,\n i,\n key,\n result;\n\n if (initialValue === undefined) {\n i = 1;\n result = subject[keys[0]];\n } else {\n i = 0;\n result = initialValue;\n }\n\n for (; i < length; i++) {\n key = keys[i];\n result = iterator(result, subject[key], key, subject);\n }\n\n return result;\n};\n\nfunction toHex(unicode) {\n var result = '';\n\n for (var i = 0; i < unicode.length; i++) {\n var hex = unicode.charCodeAt(i).toString(16);\n result += ('000' + hex).slice(-4);\n }\n\n return result;\n}\n\nfunction defineIcons(prefix, icons) {\n var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _params$skipHooks = params.skipHooks,\n skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;\n var normalized = Object.keys(icons).reduce(function (acc, iconName) {\n var icon = icons[iconName];\n var expanded = !!icon.icon;\n\n if (expanded) {\n acc[icon.iconName] = icon.icon;\n } else {\n acc[iconName] = icon;\n }\n\n return acc;\n }, {});\n\n if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {\n namespace.hooks.addPack(prefix, normalized);\n } else {\n namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);\n }\n /**\n * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction\n * of new styles we needed to differentiate between them. Prefix `fa` is now an alias\n * for `fas` so we'll easy the upgrade process for our users by automatically defining\n * this as well.\n */\n\n\n if (prefix === 'fas') {\n defineIcons('fa', icons);\n }\n}\n\nvar styles = namespace.styles,\n shims = namespace.shims;\nvar _byUnicode = {};\nvar _byLigature = {};\nvar _byOldName = {};\nvar build = function build() {\n var lookup = function lookup(reducer) {\n return reduce(styles, function (o, style, prefix) {\n o[prefix] = reduce(style, reducer, {});\n return o;\n }, {});\n };\n\n _byUnicode = lookup(function (acc, icon, iconName) {\n if (icon[3]) {\n acc[icon[3]] = iconName;\n }\n\n return acc;\n });\n _byLigature = lookup(function (acc, icon, iconName) {\n var ligatures = icon[2];\n acc[iconName] = iconName;\n ligatures.forEach(function (ligature) {\n acc[ligature] = iconName;\n });\n return acc;\n });\n var hasRegular = 'far' in styles;\n _byOldName = reduce(shims, function (acc, shim) {\n var oldName = shim[0];\n var prefix = shim[1];\n var iconName = shim[2];\n\n if (prefix === 'far' && !hasRegular) {\n prefix = 'fas';\n }\n\n acc[oldName] = {\n prefix: prefix,\n iconName: iconName\n };\n return acc;\n }, {});\n};\nbuild();\nfunction byUnicode(prefix, unicode) {\n return (_byUnicode[prefix] || {})[unicode];\n}\nfunction byLigature(prefix, ligature) {\n return (_byLigature[prefix] || {})[ligature];\n}\nfunction byOldName(name) {\n return _byOldName[name] || {\n prefix: null,\n iconName: null\n };\n}\n\nvar styles$1 = namespace.styles;\nvar emptyCanonicalIcon = function emptyCanonicalIcon() {\n return {\n prefix: null,\n iconName: null,\n rest: []\n };\n};\nfunction getCanonicalIcon(values) {\n return values.reduce(function (acc, cls) {\n var iconName = getIconName(config.familyPrefix, cls);\n\n if (styles$1[cls]) {\n acc.prefix = cls;\n } else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) {\n acc.prefix = cls;\n } else if (iconName) {\n var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};\n acc.iconName = shim.iconName || iconName;\n acc.prefix = shim.prefix || acc.prefix;\n } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {\n acc.rest.push(cls);\n }\n\n return acc;\n }, emptyCanonicalIcon());\n}\nfunction iconFromMapping(mapping, prefix, iconName) {\n if (mapping && mapping[prefix] && mapping[prefix][iconName]) {\n return {\n prefix: prefix,\n iconName: iconName,\n icon: mapping[prefix][iconName]\n };\n }\n}\n\nfunction toHtml(abstractNodes) {\n var tag = abstractNodes.tag,\n _abstractNodes$attrib = abstractNodes.attributes,\n attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,\n _abstractNodes$childr = abstractNodes.children,\n children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;\n\n if (typeof abstractNodes === 'string') {\n return htmlEscape(abstractNodes);\n } else {\n return \"<\".concat(tag, \" \").concat(joinAttributes(attributes), \">\").concat(children.map(toHtml).join(''), \"\");\n }\n}\n\nvar noop$2 = function noop() {};\n\nfunction isWatched(node) {\n var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;\n return typeof i2svg === 'string';\n}\n\nfunction getMutator() {\n if (config.autoReplaceSvg === true) {\n return mutators.replace;\n }\n\n var mutator = mutators[config.autoReplaceSvg];\n return mutator || mutators.replace;\n}\n\nvar mutators = {\n replace: function replace(mutation) {\n var node = mutation[0];\n var abstract = mutation[1];\n var newOuterHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n\n if (node.parentNode && node.outerHTML) {\n node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? \"\") : '');\n } else if (node.parentNode) {\n var newNode = document.createElement('span');\n node.parentNode.replaceChild(newNode, node);\n newNode.outerHTML = newOuterHTML;\n }\n },\n nest: function nest(mutation) {\n var node = mutation[0];\n var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.\n // Short-circuit to the standard replacement\n\n if (~classArray(node).indexOf(config.replacementClass)) {\n return mutators.replace(mutation);\n }\n\n var forSvg = new RegExp(\"\".concat(config.familyPrefix, \"-.*\"));\n delete abstract[0].attributes.style;\n delete abstract[0].attributes.id;\n var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {\n if (cls === config.replacementClass || cls.match(forSvg)) {\n acc.toSvg.push(cls);\n } else {\n acc.toNode.push(cls);\n }\n\n return acc;\n }, {\n toNode: [],\n toSvg: []\n });\n abstract[0].attributes.class = splitClasses.toSvg.join(' ');\n var newInnerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.setAttribute('class', splitClasses.toNode.join(' '));\n node.setAttribute(DATA_FA_I2SVG, '');\n node.innerHTML = newInnerHTML;\n }\n};\n\nfunction performOperationSync(op) {\n op();\n}\n\nfunction perform(mutations, callback) {\n var callbackFunction = typeof callback === 'function' ? callback : noop$2;\n\n if (mutations.length === 0) {\n callbackFunction();\n } else {\n var frame = performOperationSync;\n\n if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {\n frame = WINDOW.requestAnimationFrame || performOperationSync;\n }\n\n frame(function () {\n var mutator = getMutator();\n var mark = perf.begin('mutate');\n mutations.map(mutator);\n mark();\n callbackFunction();\n });\n }\n}\nvar disabled = false;\nfunction disableObservation() {\n disabled = true;\n}\nfunction enableObservation() {\n disabled = false;\n}\nvar mo = null;\nfunction observe(options) {\n if (!MUTATION_OBSERVER) {\n return;\n }\n\n if (!config.observeMutations) {\n return;\n }\n\n var treeCallback = options.treeCallback,\n nodeCallback = options.nodeCallback,\n pseudoElementsCallback = options.pseudoElementsCallback,\n _options$observeMutat = options.observeMutationsRoot,\n observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;\n mo = new MUTATION_OBSERVER(function (objects) {\n if (disabled) return;\n toArray(objects).forEach(function (mutationRecord) {\n if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {\n if (config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target);\n }\n\n treeCallback(mutationRecord.target);\n }\n\n if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {\n pseudoElementsCallback(mutationRecord.target.parentNode);\n }\n\n if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {\n if (mutationRecord.attributeName === 'class') {\n var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),\n prefix = _getCanonicalIcon.prefix,\n iconName = _getCanonicalIcon.iconName;\n\n if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);\n if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);\n } else {\n nodeCallback(mutationRecord.target);\n }\n }\n });\n });\n if (!IS_DOM) return;\n mo.observe(observeMutationsRoot, {\n childList: true,\n attributes: true,\n characterData: true,\n subtree: true\n });\n}\nfunction disconnect() {\n if (!mo) return;\n mo.disconnect();\n}\n\nfunction styleParser (node) {\n var style = node.getAttribute('style');\n var val = [];\n\n if (style) {\n val = style.split(';').reduce(function (acc, style) {\n var styles = style.split(':');\n var prop = styles[0];\n var value = styles.slice(1);\n\n if (prop && value.length > 0) {\n acc[prop] = value.join(':').trim();\n }\n\n return acc;\n }, {});\n }\n\n return val;\n}\n\nfunction classParser (node) {\n var existingPrefix = node.getAttribute('data-prefix');\n var existingIconName = node.getAttribute('data-icon');\n var innerText = node.innerText !== undefined ? node.innerText.trim() : '';\n var val = getCanonicalIcon(classArray(node));\n\n if (existingPrefix && existingIconName) {\n val.prefix = existingPrefix;\n val.iconName = existingIconName;\n }\n\n if (val.prefix && innerText.length > 1) {\n val.iconName = byLigature(val.prefix, node.innerText);\n } else if (val.prefix && innerText.length === 1) {\n val.iconName = byUnicode(val.prefix, toHex(node.innerText));\n }\n\n return val;\n}\n\nvar parseTransformString = function parseTransformString(transformString) {\n var transform = {\n size: 16,\n x: 0,\n y: 0,\n flipX: false,\n flipY: false,\n rotate: 0\n };\n\n if (!transformString) {\n return transform;\n } else {\n return transformString.toLowerCase().split(' ').reduce(function (acc, n) {\n var parts = n.toLowerCase().split('-');\n var first = parts[0];\n var rest = parts.slice(1).join('-');\n\n if (first && rest === 'h') {\n acc.flipX = true;\n return acc;\n }\n\n if (first && rest === 'v') {\n acc.flipY = true;\n return acc;\n }\n\n rest = parseFloat(rest);\n\n if (isNaN(rest)) {\n return acc;\n }\n\n switch (first) {\n case 'grow':\n acc.size = acc.size + rest;\n break;\n\n case 'shrink':\n acc.size = acc.size - rest;\n break;\n\n case 'left':\n acc.x = acc.x - rest;\n break;\n\n case 'right':\n acc.x = acc.x + rest;\n break;\n\n case 'up':\n acc.y = acc.y - rest;\n break;\n\n case 'down':\n acc.y = acc.y + rest;\n break;\n\n case 'rotate':\n acc.rotate = acc.rotate + rest;\n break;\n }\n\n return acc;\n }, transform);\n }\n};\nfunction transformParser (node) {\n return parseTransformString(node.getAttribute('data-fa-transform'));\n}\n\nfunction symbolParser (node) {\n var symbol = node.getAttribute('data-fa-symbol');\n return symbol === null ? false : symbol === '' ? true : symbol;\n}\n\nfunction attributesParser (node) {\n var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {\n if (acc.name !== 'class' && acc.name !== 'style') {\n acc[attr.name] = attr.value;\n }\n\n return acc;\n }, {});\n var title = node.getAttribute('title');\n var titleId = node.getAttribute('data-fa-title-id');\n\n if (config.autoA11y) {\n if (title) {\n extraAttributes['aria-labelledby'] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n } else {\n extraAttributes['aria-hidden'] = 'true';\n extraAttributes['focusable'] = 'false';\n }\n }\n\n return extraAttributes;\n}\n\nfunction maskParser (node) {\n var mask = node.getAttribute('data-fa-mask');\n\n if (!mask) {\n return emptyCanonicalIcon();\n } else {\n return getCanonicalIcon(mask.split(' ').map(function (i) {\n return i.trim();\n }));\n }\n}\n\nfunction blankMeta() {\n return {\n iconName: null,\n title: null,\n titleId: null,\n prefix: null,\n transform: meaninglessTransform,\n symbol: false,\n mask: null,\n maskId: null,\n extra: {\n classes: [],\n styles: {},\n attributes: {}\n }\n };\n}\nfunction parseMeta(node) {\n var _classParser = classParser(node),\n iconName = _classParser.iconName,\n prefix = _classParser.prefix,\n extraClasses = _classParser.rest;\n\n var extraStyles = styleParser(node);\n var transform = transformParser(node);\n var symbol = symbolParser(node);\n var extraAttributes = attributesParser(node);\n var mask = maskParser(node);\n return {\n iconName: iconName,\n title: node.getAttribute('title'),\n titleId: node.getAttribute('data-fa-title-id'),\n prefix: prefix,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: node.getAttribute('data-fa-mask-id'),\n extra: {\n classes: extraClasses,\n styles: extraStyles,\n attributes: extraAttributes\n }\n };\n}\n\nfunction MissingIcon(error) {\n this.name = 'MissingIcon';\n this.message = error || 'Icon unavailable';\n this.stack = new Error().stack;\n}\nMissingIcon.prototype = Object.create(Error.prototype);\nMissingIcon.prototype.constructor = MissingIcon;\n\nvar FILL = {\n fill: 'currentColor'\n};\nvar ANIMATION_BASE = {\n attributeType: 'XML',\n repeatCount: 'indefinite',\n dur: '2s'\n};\nvar RING = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'\n })\n};\n\nvar OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {\n attributeName: 'opacity'\n});\n\nvar DOT = {\n tag: 'circle',\n attributes: _objectSpread({}, FILL, {\n cx: '256',\n cy: '364',\n r: '28'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, ANIMATION_BASE, {\n attributeName: 'r',\n values: '28;14;28;28;14;28;'\n })\n }, {\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '1;0;1;1;0;1;'\n })\n }]\n};\nvar QUESTION = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n opacity: '1',\n d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '1;0;0;0;0;1;'\n })\n }]\n};\nvar EXCLAMATION = {\n tag: 'path',\n attributes: _objectSpread({}, FILL, {\n opacity: '0',\n d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'\n }),\n children: [{\n tag: 'animate',\n attributes: _objectSpread({}, OPACITY_ANIMATE, {\n values: '0;0;1;1;0;0;'\n })\n }]\n};\nvar missing = {\n tag: 'g',\n children: [RING, DOT, QUESTION, EXCLAMATION]\n};\n\nvar styles$2 = namespace.styles;\nfunction asFoundIcon(icon) {\n var width = icon[0];\n var height = icon[1];\n\n var _icon$slice = icon.slice(4),\n _icon$slice2 = _slicedToArray(_icon$slice, 1),\n vectorData = _icon$slice2[0];\n\n var element = null;\n\n if (Array.isArray(vectorData)) {\n element = {\n tag: 'g',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.GROUP)\n },\n children: [{\n tag: 'path',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.SECONDARY),\n fill: 'currentColor',\n d: vectorData[0]\n }\n }, {\n tag: 'path',\n attributes: {\n class: \"\".concat(config.familyPrefix, \"-\").concat(DUOTONE_CLASSES.PRIMARY),\n fill: 'currentColor',\n d: vectorData[1]\n }\n }]\n };\n } else {\n element = {\n tag: 'path',\n attributes: {\n fill: 'currentColor',\n d: vectorData\n }\n };\n }\n\n return {\n found: true,\n width: width,\n height: height,\n icon: element\n };\n}\nfunction findIcon(iconName, prefix) {\n return new picked(function (resolve, reject) {\n var val = {\n found: false,\n width: 512,\n height: 512,\n icon: missing\n };\n\n if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {\n var icon = styles$2[prefix][iconName];\n return resolve(asFoundIcon(icon));\n }\n\n if (iconName && prefix && !config.showMissingIcons) {\n reject(new MissingIcon(\"Icon is missing for prefix \".concat(prefix, \" with icon name \").concat(iconName)));\n } else {\n resolve(val);\n }\n });\n}\n\nvar styles$3 = namespace.styles;\n\nfunction generateSvgReplacementMutation(node, nodeMeta) {\n var iconName = nodeMeta.iconName,\n title = nodeMeta.title,\n titleId = nodeMeta.titleId,\n prefix = nodeMeta.prefix,\n transform = nodeMeta.transform,\n symbol = nodeMeta.symbol,\n mask = nodeMeta.mask,\n maskId = nodeMeta.maskId,\n extra = nodeMeta.extra;\n return new picked(function (resolve, reject) {\n picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n main = _ref2[0],\n mask = _ref2[1];\n\n resolve([node, makeInlineSvgAbstract({\n icons: {\n main: main,\n mask: mask\n },\n prefix: prefix,\n iconName: iconName,\n transform: transform,\n symbol: symbol,\n mask: mask,\n maskId: maskId,\n title: title,\n titleId: titleId,\n extra: extra,\n watchable: true\n })]);\n });\n });\n}\n\nfunction generateLayersText(node, nodeMeta) {\n var title = nodeMeta.title,\n transform = nodeMeta.transform,\n extra = nodeMeta.extra;\n var width = null;\n var height = null;\n\n if (IS_IE) {\n var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);\n var boundingClientRect = node.getBoundingClientRect();\n width = boundingClientRect.width / computedFontSize;\n height = boundingClientRect.height / computedFontSize;\n }\n\n if (config.autoA11y && !title) {\n extra.attributes['aria-hidden'] = 'true';\n }\n\n return picked.resolve([node, makeLayersTextAbstract({\n content: node.innerHTML,\n width: width,\n height: height,\n transform: transform,\n title: title,\n extra: extra,\n watchable: true\n })]);\n}\n\nfunction generateMutation(node) {\n var nodeMeta = parseMeta(node);\n\n if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {\n return generateLayersText(node, nodeMeta);\n } else {\n return generateSvgReplacementMutation(node, nodeMeta);\n }\n}\n\nfunction onTree(root) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n if (!IS_DOM) return;\n var htmlClassList = DOCUMENT.documentElement.classList;\n\n var hclAdd = function hclAdd(suffix) {\n return htmlClassList.add(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n\n var hclRemove = function hclRemove(suffix) {\n return htmlClassList.remove(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n };\n\n var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);\n var prefixesDomQuery = [\".\".concat(LAYERS_TEXT_CLASSNAME, \":not([\").concat(DATA_FA_I2SVG, \"])\")].concat(prefixes.map(function (p) {\n return \".\".concat(p, \":not([\").concat(DATA_FA_I2SVG, \"])\");\n })).join(', ');\n\n if (prefixesDomQuery.length === 0) {\n return;\n }\n\n var candidates = [];\n\n try {\n candidates = toArray(root.querySelectorAll(prefixesDomQuery));\n } catch (e) {// noop\n }\n\n if (candidates.length > 0) {\n hclAdd('pending');\n hclRemove('complete');\n } else {\n return;\n }\n\n var mark = perf.begin('onTree');\n var mutations = candidates.reduce(function (acc, node) {\n try {\n var mutation = generateMutation(node);\n\n if (mutation) {\n acc.push(mutation);\n }\n } catch (e) {\n if (!PRODUCTION) {\n if (e instanceof MissingIcon) {\n console.error(e);\n }\n }\n }\n\n return acc;\n }, []);\n return new picked(function (resolve, reject) {\n picked.all(mutations).then(function (resolvedMutations) {\n perform(resolvedMutations, function () {\n hclAdd('active');\n hclAdd('complete');\n hclRemove('pending');\n if (typeof callback === 'function') callback();\n mark();\n resolve();\n });\n }).catch(function () {\n mark();\n reject();\n });\n });\n}\nfunction onNode(node) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n generateMutation(node).then(function (mutation) {\n if (mutation) {\n perform([mutation], callback);\n }\n });\n}\n\nfunction replaceForPosition(node, position) {\n var pendingAttribute = \"\".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));\n return new picked(function (resolve, reject) {\n if (node.getAttribute(pendingAttribute) !== null) {\n // This node is already being processed\n return resolve();\n }\n\n var children = toArray(node.children);\n var alreadyProcessedPseudoElement = children.filter(function (c) {\n return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;\n })[0];\n var styles = WINDOW.getComputedStyle(node, position);\n var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);\n var fontWeight = styles.getPropertyValue('font-weight');\n var content = styles.getPropertyValue('content');\n\n if (alreadyProcessedPseudoElement && !fontFamily) {\n // If we've already processed it but the current computed style does not result in a font-family,\n // that probably means that a class name that was previously present to make the icon has been\n // removed. So we now should delete the icon.\n node.removeChild(alreadyProcessedPseudoElement);\n return resolve();\n } else if (fontFamily && content !== 'none' && content !== '') {\n var _content = styles.getPropertyValue('content');\n\n var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];\n var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);\n var iconName = byUnicode(prefix, hexValue);\n var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't\n // already done so with the same prefix and iconName\n\n if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {\n node.setAttribute(pendingAttribute, iconIdentifier);\n\n if (alreadyProcessedPseudoElement) {\n // Delete the old one, since we're replacing it with a new one\n node.removeChild(alreadyProcessedPseudoElement);\n }\n\n var meta = blankMeta();\n var extra = meta.extra;\n extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;\n findIcon(iconName, prefix).then(function (main) {\n var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {\n icons: {\n main: main,\n mask: emptyCanonicalIcon()\n },\n prefix: prefix,\n iconName: iconIdentifier,\n extra: extra,\n watchable: true\n }));\n var element = DOCUMENT.createElement('svg');\n\n if (position === ':before') {\n node.insertBefore(element, node.firstChild);\n } else {\n node.appendChild(element);\n }\n\n element.outerHTML = abstract.map(function (a) {\n return toHtml(a);\n }).join('\\n');\n node.removeAttribute(pendingAttribute);\n resolve();\n }).catch(reject);\n } else {\n resolve();\n }\n } else {\n resolve();\n }\n });\n}\n\nfunction replace(node) {\n return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);\n}\n\nfunction processable(node) {\n return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');\n}\n\nfunction searchPseudoElements (root) {\n if (!IS_DOM) return;\n return new picked(function (resolve, reject) {\n var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);\n var end = perf.begin('searchPseudoElements');\n disableObservation();\n picked.all(operations).then(function () {\n end();\n enableObservation();\n resolve();\n }).catch(function () {\n end();\n enableObservation();\n reject();\n });\n });\n}\n\nvar baseStyles = \"svg:not(:root).svg-inline--fa {\\n overflow: visible;\\n}\\n\\n.svg-inline--fa {\\n display: inline-block;\\n font-size: inherit;\\n height: 1em;\\n overflow: visible;\\n vertical-align: -0.125em;\\n}\\n.svg-inline--fa.fa-lg {\\n vertical-align: -0.225em;\\n}\\n.svg-inline--fa.fa-w-1 {\\n width: 0.0625em;\\n}\\n.svg-inline--fa.fa-w-2 {\\n width: 0.125em;\\n}\\n.svg-inline--fa.fa-w-3 {\\n width: 0.1875em;\\n}\\n.svg-inline--fa.fa-w-4 {\\n width: 0.25em;\\n}\\n.svg-inline--fa.fa-w-5 {\\n width: 0.3125em;\\n}\\n.svg-inline--fa.fa-w-6 {\\n width: 0.375em;\\n}\\n.svg-inline--fa.fa-w-7 {\\n width: 0.4375em;\\n}\\n.svg-inline--fa.fa-w-8 {\\n width: 0.5em;\\n}\\n.svg-inline--fa.fa-w-9 {\\n width: 0.5625em;\\n}\\n.svg-inline--fa.fa-w-10 {\\n width: 0.625em;\\n}\\n.svg-inline--fa.fa-w-11 {\\n width: 0.6875em;\\n}\\n.svg-inline--fa.fa-w-12 {\\n width: 0.75em;\\n}\\n.svg-inline--fa.fa-w-13 {\\n width: 0.8125em;\\n}\\n.svg-inline--fa.fa-w-14 {\\n width: 0.875em;\\n}\\n.svg-inline--fa.fa-w-15 {\\n width: 0.9375em;\\n}\\n.svg-inline--fa.fa-w-16 {\\n width: 1em;\\n}\\n.svg-inline--fa.fa-w-17 {\\n width: 1.0625em;\\n}\\n.svg-inline--fa.fa-w-18 {\\n width: 1.125em;\\n}\\n.svg-inline--fa.fa-w-19 {\\n width: 1.1875em;\\n}\\n.svg-inline--fa.fa-w-20 {\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-pull-left {\\n margin-right: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-pull-right {\\n margin-left: 0.3em;\\n width: auto;\\n}\\n.svg-inline--fa.fa-border {\\n height: 1.5em;\\n}\\n.svg-inline--fa.fa-li {\\n width: 2em;\\n}\\n.svg-inline--fa.fa-fw {\\n width: 1.25em;\\n}\\n\\n.fa-layers svg.svg-inline--fa {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.fa-layers {\\n display: inline-block;\\n height: 1em;\\n position: relative;\\n text-align: center;\\n vertical-align: -0.125em;\\n width: 1em;\\n}\\n.fa-layers svg.svg-inline--fa {\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter, .fa-layers-text {\\n display: inline-block;\\n position: absolute;\\n text-align: center;\\n}\\n\\n.fa-layers-text {\\n left: 50%;\\n top: 50%;\\n -webkit-transform: translate(-50%, -50%);\\n transform: translate(-50%, -50%);\\n -webkit-transform-origin: center center;\\n transform-origin: center center;\\n}\\n\\n.fa-layers-counter {\\n background-color: #ff253a;\\n border-radius: 1em;\\n -webkit-box-sizing: border-box;\\n box-sizing: border-box;\\n color: #fff;\\n height: 1.5em;\\n line-height: 1;\\n max-width: 5em;\\n min-width: 1.5em;\\n overflow: hidden;\\n padding: 0.25em;\\n right: 0;\\n text-overflow: ellipsis;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-bottom-right {\\n bottom: 0;\\n right: 0;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom right;\\n transform-origin: bottom right;\\n}\\n\\n.fa-layers-bottom-left {\\n bottom: 0;\\n left: 0;\\n right: auto;\\n top: auto;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: bottom left;\\n transform-origin: bottom left;\\n}\\n\\n.fa-layers-top-right {\\n right: 0;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top right;\\n transform-origin: top right;\\n}\\n\\n.fa-layers-top-left {\\n left: 0;\\n right: auto;\\n top: 0;\\n -webkit-transform: scale(0.25);\\n transform: scale(0.25);\\n -webkit-transform-origin: top left;\\n transform-origin: top left;\\n}\\n\\n.fa-lg {\\n font-size: 1.3333333333em;\\n line-height: 0.75em;\\n vertical-align: -0.0667em;\\n}\\n\\n.fa-xs {\\n font-size: 0.75em;\\n}\\n\\n.fa-sm {\\n font-size: 0.875em;\\n}\\n\\n.fa-1x {\\n font-size: 1em;\\n}\\n\\n.fa-2x {\\n font-size: 2em;\\n}\\n\\n.fa-3x {\\n font-size: 3em;\\n}\\n\\n.fa-4x {\\n font-size: 4em;\\n}\\n\\n.fa-5x {\\n font-size: 5em;\\n}\\n\\n.fa-6x {\\n font-size: 6em;\\n}\\n\\n.fa-7x {\\n font-size: 7em;\\n}\\n\\n.fa-8x {\\n font-size: 8em;\\n}\\n\\n.fa-9x {\\n font-size: 9em;\\n}\\n\\n.fa-10x {\\n font-size: 10em;\\n}\\n\\n.fa-fw {\\n text-align: center;\\n width: 1.25em;\\n}\\n\\n.fa-ul {\\n list-style-type: none;\\n margin-left: 2.5em;\\n padding-left: 0;\\n}\\n.fa-ul > li {\\n position: relative;\\n}\\n\\n.fa-li {\\n left: -2em;\\n position: absolute;\\n text-align: center;\\n width: 2em;\\n line-height: inherit;\\n}\\n\\n.fa-border {\\n border: solid 0.08em #eee;\\n border-radius: 0.1em;\\n padding: 0.2em 0.25em 0.15em;\\n}\\n\\n.fa-pull-left {\\n float: left;\\n}\\n\\n.fa-pull-right {\\n float: right;\\n}\\n\\n.fa.fa-pull-left,\\n.fas.fa-pull-left,\\n.far.fa-pull-left,\\n.fal.fa-pull-left,\\n.fab.fa-pull-left {\\n margin-right: 0.3em;\\n}\\n.fa.fa-pull-right,\\n.fas.fa-pull-right,\\n.far.fa-pull-right,\\n.fal.fa-pull-right,\\n.fab.fa-pull-right {\\n margin-left: 0.3em;\\n}\\n\\n.fa-spin {\\n -webkit-animation: fa-spin 2s infinite linear;\\n animation: fa-spin 2s infinite linear;\\n}\\n\\n.fa-pulse {\\n -webkit-animation: fa-spin 1s infinite steps(8);\\n animation: fa-spin 1s infinite steps(8);\\n}\\n\\n@-webkit-keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes fa-spin {\\n 0% {\\n -webkit-transform: rotate(0deg);\\n transform: rotate(0deg);\\n }\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n.fa-rotate-90 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\\\";\\n -webkit-transform: rotate(90deg);\\n transform: rotate(90deg);\\n}\\n\\n.fa-rotate-180 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\\\";\\n -webkit-transform: rotate(180deg);\\n transform: rotate(180deg);\\n}\\n\\n.fa-rotate-270 {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\\\";\\n -webkit-transform: rotate(270deg);\\n transform: rotate(270deg);\\n}\\n\\n.fa-flip-horizontal {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\\\";\\n -webkit-transform: scale(-1, 1);\\n transform: scale(-1, 1);\\n}\\n\\n.fa-flip-vertical {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\\\";\\n -webkit-transform: scale(1, -1);\\n transform: scale(1, -1);\\n}\\n\\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\\n -ms-filter: \\\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\\\";\\n -webkit-transform: scale(-1, -1);\\n transform: scale(-1, -1);\\n}\\n\\n:root .fa-rotate-90,\\n:root .fa-rotate-180,\\n:root .fa-rotate-270,\\n:root .fa-flip-horizontal,\\n:root .fa-flip-vertical,\\n:root .fa-flip-both {\\n -webkit-filter: none;\\n filter: none;\\n}\\n\\n.fa-stack {\\n display: inline-block;\\n height: 2em;\\n position: relative;\\n width: 2.5em;\\n}\\n\\n.fa-stack-1x,\\n.fa-stack-2x {\\n bottom: 0;\\n left: 0;\\n margin: auto;\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.svg-inline--fa.fa-stack-1x {\\n height: 1em;\\n width: 1.25em;\\n}\\n.svg-inline--fa.fa-stack-2x {\\n height: 2em;\\n width: 2.5em;\\n}\\n\\n.fa-inverse {\\n color: #fff;\\n}\\n\\n.sr-only {\\n border: 0;\\n clip: rect(0, 0, 0, 0);\\n height: 1px;\\n margin: -1px;\\n overflow: hidden;\\n padding: 0;\\n position: absolute;\\n width: 1px;\\n}\\n\\n.sr-only-focusable:active, .sr-only-focusable:focus {\\n clip: auto;\\n height: auto;\\n margin: 0;\\n overflow: visible;\\n position: static;\\n width: auto;\\n}\\n\\n.svg-inline--fa .fa-primary {\\n fill: var(--fa-primary-color, currentColor);\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa .fa-secondary {\\n fill: var(--fa-secondary-color, currentColor);\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-primary {\\n opacity: 0.4;\\n opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\\n opacity: 1;\\n opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa mask .fa-primary,\\n.svg-inline--fa mask .fa-secondary {\\n fill: black;\\n}\\n\\n.fad.fa-inverse {\\n color: #fff;\\n}\";\n\nfunction css () {\n var dfp = DEFAULT_FAMILY_PREFIX;\n var drc = DEFAULT_REPLACEMENT_CLASS;\n var fp = config.familyPrefix;\n var rc = config.replacementClass;\n var s = baseStyles;\n\n if (fp !== dfp || rc !== drc) {\n var dPatt = new RegExp(\"\\\\.\".concat(dfp, \"\\\\-\"), 'g');\n var customPropPatt = new RegExp(\"\\\\--\".concat(dfp, \"\\\\-\"), 'g');\n var rPatt = new RegExp(\"\\\\.\".concat(drc), 'g');\n s = s.replace(dPatt, \".\".concat(fp, \"-\")).replace(customPropPatt, \"--\".concat(fp, \"-\")).replace(rPatt, \".\".concat(rc));\n }\n\n return s;\n}\n\nvar Library =\n/*#__PURE__*/\nfunction () {\n function Library() {\n _classCallCheck(this, Library);\n\n this.definitions = {};\n }\n\n _createClass(Library, [{\n key: \"add\",\n value: function add() {\n var _this = this;\n\n for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {\n definitions[_key] = arguments[_key];\n }\n\n var additions = definitions.reduce(this._pullDefinitions, {});\n Object.keys(additions).forEach(function (key) {\n _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);\n defineIcons(key, additions[key]);\n build();\n });\n }\n }, {\n key: \"reset\",\n value: function reset() {\n this.definitions = {};\n }\n }, {\n key: \"_pullDefinitions\",\n value: function _pullDefinitions(additions, definition) {\n var normalized = definition.prefix && definition.iconName && definition.icon ? {\n 0: definition\n } : definition;\n Object.keys(normalized).map(function (key) {\n var _normalized$key = normalized[key],\n prefix = _normalized$key.prefix,\n iconName = _normalized$key.iconName,\n icon = _normalized$key.icon;\n if (!additions[prefix]) additions[prefix] = {};\n additions[prefix][iconName] = icon;\n });\n return additions;\n }\n }]);\n\n return Library;\n}();\n\nfunction ensureCss() {\n if (config.autoAddCss && !_cssInserted) {\n insertCss(css());\n\n _cssInserted = true;\n }\n}\n\nfunction apiObject(val, abstractCreator) {\n Object.defineProperty(val, 'abstract', {\n get: abstractCreator\n });\n Object.defineProperty(val, 'html', {\n get: function get() {\n return val.abstract.map(function (a) {\n return toHtml(a);\n });\n }\n });\n Object.defineProperty(val, 'node', {\n get: function get() {\n if (!IS_DOM) return;\n var container = DOCUMENT.createElement('div');\n container.innerHTML = val.html;\n return container.children;\n }\n });\n return val;\n}\n\nfunction findIconDefinition(iconLookup) {\n var _iconLookup$prefix = iconLookup.prefix,\n prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,\n iconName = iconLookup.iconName;\n if (!iconName) return;\n return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);\n}\n\nfunction resolveIcons(next) {\n return function (maybeIconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});\n var mask = params.mask;\n\n if (mask) {\n mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});\n }\n\n return next(iconDefinition, _objectSpread({}, params, {\n mask: mask\n }));\n };\n}\n\nvar library = new Library();\nvar noAuto = function noAuto() {\n config.autoReplaceSvg = false;\n config.observeMutations = false;\n disconnect();\n};\nvar _cssInserted = false;\nvar dom = {\n i2svg: function i2svg() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (IS_DOM) {\n ensureCss();\n var _params$node = params.node,\n node = _params$node === void 0 ? DOCUMENT : _params$node,\n _params$callback = params.callback,\n callback = _params$callback === void 0 ? function () {} : _params$callback;\n\n if (config.searchPseudoElements) {\n searchPseudoElements(node);\n }\n\n return onTree(node, callback);\n } else {\n return picked.reject('Operation requires a DOM of some kind.');\n }\n },\n css: css,\n insertCss: function insertCss$$1() {\n if (!_cssInserted) {\n insertCss(css());\n\n _cssInserted = true;\n }\n },\n watch: function watch() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var autoReplaceSvgRoot = params.autoReplaceSvgRoot,\n observeMutationsRoot = params.observeMutationsRoot;\n\n if (config.autoReplaceSvg === false) {\n config.autoReplaceSvg = true;\n }\n\n config.observeMutations = true;\n domready(function () {\n autoReplace({\n autoReplaceSvgRoot: autoReplaceSvgRoot\n });\n observe({\n treeCallback: onTree,\n nodeCallback: onNode,\n pseudoElementsCallback: searchPseudoElements,\n observeMutationsRoot: observeMutationsRoot\n });\n });\n }\n};\nvar parse = {\n transform: function transform(transformString) {\n return parseTransformString(transformString);\n }\n};\nvar icon = resolveIcons(function (iconDefinition) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform = params.transform,\n transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,\n _params$symbol = params.symbol,\n symbol = _params$symbol === void 0 ? false : _params$symbol,\n _params$mask = params.mask,\n mask = _params$mask === void 0 ? null : _params$mask,\n _params$maskId = params.maskId,\n maskId = _params$maskId === void 0 ? null : _params$maskId,\n _params$title = params.title,\n title = _params$title === void 0 ? null : _params$title,\n _params$titleId = params.titleId,\n titleId = _params$titleId === void 0 ? null : _params$titleId,\n _params$classes = params.classes,\n classes = _params$classes === void 0 ? [] : _params$classes,\n _params$attributes = params.attributes,\n attributes = _params$attributes === void 0 ? {} : _params$attributes,\n _params$styles = params.styles,\n styles = _params$styles === void 0 ? {} : _params$styles;\n if (!iconDefinition) return;\n var prefix = iconDefinition.prefix,\n iconName = iconDefinition.iconName,\n icon = iconDefinition.icon;\n return apiObject(_objectSpread({\n type: 'icon'\n }, iconDefinition), function () {\n ensureCss();\n\n if (config.autoA11y) {\n if (title) {\n attributes['aria-labelledby'] = \"\".concat(config.replacementClass, \"-title-\").concat(titleId || nextUniqueId());\n } else {\n attributes['aria-hidden'] = 'true';\n attributes['focusable'] = 'false';\n }\n }\n\n return makeInlineSvgAbstract({\n icons: {\n main: asFoundIcon(icon),\n mask: mask ? asFoundIcon(mask.icon) : {\n found: false,\n width: null,\n height: null,\n icon: {}\n }\n },\n prefix: prefix,\n iconName: iconName,\n transform: _objectSpread({}, meaninglessTransform, transform),\n symbol: symbol,\n title: title,\n maskId: maskId,\n titleId: titleId,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: classes\n }\n });\n });\n});\nvar text = function text(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$transform2 = params.transform,\n transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,\n _params$title2 = params.title,\n title = _params$title2 === void 0 ? null : _params$title2,\n _params$classes2 = params.classes,\n classes = _params$classes2 === void 0 ? [] : _params$classes2,\n _params$attributes2 = params.attributes,\n attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,\n _params$styles2 = params.styles,\n styles = _params$styles2 === void 0 ? {} : _params$styles2;\n return apiObject({\n type: 'text',\n content: content\n }, function () {\n ensureCss();\n return makeLayersTextAbstract({\n content: content,\n transform: _objectSpread({}, meaninglessTransform, transform),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\"\".concat(config.familyPrefix, \"-layers-text\")].concat(_toConsumableArray(classes))\n }\n });\n });\n};\nvar counter = function counter(content) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$title3 = params.title,\n title = _params$title3 === void 0 ? null : _params$title3,\n _params$classes3 = params.classes,\n classes = _params$classes3 === void 0 ? [] : _params$classes3,\n _params$attributes3 = params.attributes,\n attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,\n _params$styles3 = params.styles,\n styles = _params$styles3 === void 0 ? {} : _params$styles3;\n return apiObject({\n type: 'counter',\n content: content\n }, function () {\n ensureCss();\n return makeLayersCounterAbstract({\n content: content.toString(),\n title: title,\n extra: {\n attributes: attributes,\n styles: styles,\n classes: [\"\".concat(config.familyPrefix, \"-layers-counter\")].concat(_toConsumableArray(classes))\n }\n });\n });\n};\nvar layer = function layer(assembler) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _params$classes4 = params.classes,\n classes = _params$classes4 === void 0 ? [] : _params$classes4;\n return apiObject({\n type: 'layer'\n }, function () {\n ensureCss();\n var children = [];\n assembler(function (args) {\n Array.isArray(args) ? args.map(function (a) {\n children = children.concat(a.abstract);\n }) : children = children.concat(args.abstract);\n });\n return [{\n tag: 'span',\n attributes: {\n class: [\"\".concat(config.familyPrefix, \"-layers\")].concat(_toConsumableArray(classes)).join(' ')\n },\n children: children\n }];\n });\n};\nvar api = {\n noAuto: noAuto,\n config: config,\n dom: dom,\n library: library,\n parse: parse,\n findIconDefinition: findIconDefinition,\n icon: icon,\n text: text,\n counter: counter,\n layer: layer,\n toHtml: toHtml\n};\n\nvar autoReplace = function autoReplace() {\n var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _params$autoReplaceSv = params.autoReplaceSvgRoot,\n autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;\n if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({\n node: autoReplaceSvgRoot\n });\n};\n\nexport { icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition };\n","// src/Icon/iconDefaultProps.ts\nvar defaultProps = {\n color: \"default\",\n padded: \"none\",\n size: \"sm\"\n};\nexport {\n defaultProps\n};\n//# sourceMappingURL=iconDefaultProps.js.map\n","import {IconProps} from './icon';\nimport {PickDefaultProps} from '../utils-typescript';\n\ntype DefaultProps = PickDefaultProps;\n\n// extracted because of resulting in a circular dependency in jest\n// internal - use `import {defaultProps} from \"./icon\"` instead\nexport const defaultProps: DefaultProps = {\n color: 'default',\n padded: 'none',\n size: 'sm'\n};\n","// src/Icon/mapper.ts\nvar map = {\n \"address-book-o\": \"far fa-address-book\",\n \"address-card-o\": \"far fa-address-card\",\n \"area-chart\": \"fas fa-chart-area\",\n \"arrow-circle-o-down\": \"far fa-arrow-alt-circle-down\",\n \"arrow-circle-o-left\": \"far fa-arrow-alt-circle-left\",\n \"arrow-circle-o-right\": \"far fa-arrow-alt-circle-right\",\n \"arrow-circle-o-up\": \"far fa-arrow-alt-circle-up\",\n \"arrows\": \"fas fa-arrows-alt\",\n \"arrows-alt\": \"fas fa-expand-arrows-alt\",\n \"arrows-h\": \"fas fa-arrows-alt-h\",\n \"arrows-v\": \"fas fa-arrows-alt-v\",\n \"asl-interpreting\": \"fas fa-american-sign-language-interpreting\",\n \"automobile\": \"fas fa-car\",\n \"bank\": \"fas fa-university\",\n \"bar-chart\": \"far fa-chart-bar\",\n \"bar-chart-o\": \"far fa-chart-bar\",\n \"bathtub\": \"fas fa-bath\",\n \"battery\": \"fas fa-battery-full\",\n \"battery-0\": \"fas fa-battery-empty\",\n \"battery-1\": \"fas fa-battery-quarter\",\n \"battery-2\": \"fas fa-battery-half\",\n \"battery-3\": \"fas fa-battery-three-quarters\",\n \"battery-4\": \"fas fa-battery-full\",\n \"bell-o\": \"far fa-bell\",\n \"bell-slash-o\": \"far fa-bell-slash\",\n \"bitbucket-square\": \"fab fa-bitbucket\",\n \"bitcoin\": \"fab fa-btc\",\n \"bookmark-o\": \"far fa-bookmark\",\n \"building-o\": \"far fa-building\",\n \"cab\": \"fas fa-taxi\",\n \"calendar\": \"fas fa-calendar-alt\",\n \"calendar-check-o\": \"far fa-calendar-check\",\n \"calendar-empty\": \"far fa-calendar\",\n \"calendar-minus-o\": \"far fa-calendar-minus\",\n \"calendar-o\": \"far fa-calendar\",\n \"calendar-plus-o\": \"far fa-calendar-plus\",\n \"calendar-times-o\": \"far fa-calendar-times\",\n \"caret-square-o-down\": \"far fa-caret-square-down\",\n \"caret-square-o-left\": \"far fa-caret-square-left\",\n \"caret-square-o-right\": \"far fa-caret-square-right\",\n \"caret-square-o-up\": \"far fa-caret-square-up\",\n \"cc\": \"far fa-closed-captioning\",\n \"chain\": \"fas fa-link\",\n \"chain-broken\": \"fas fa-unlink\",\n \"check-circle-o\": \"far fa-check-circle\",\n \"check-square-o\": \"far fa-check-square\",\n \"circle-o\": \"far fa-circle\",\n \"circle-o-notch\": \"fas fa-circle-notch\",\n \"circle-thin\": \"far fa-circle\",\n \"clock-o\": \"far fa-clock\",\n \"close\": \"fas fa-times\",\n \"cloud-download\": \"fas fa-cloud-download-alt\",\n \"cloud-upload\": \"fas fa-cloud-upload-alt\",\n \"cny\": \"fas fa-yen-sign\",\n \"code-fork\": \"fas fa-code-branch\",\n \"comment-o\": \"far fa-comment\",\n \"commenting\": \"fas fa-comment-alt\",\n \"commenting-o\": \"far fa-comment-alt\",\n \"comments-o\": \"far fa-comments\",\n \"copy\": \"far fa-copy\",\n \"credit-card-alt\": \"fas fa-credit-card\",\n \"cutlery\": \"fas fa-utensils\",\n \"dashboard\": \"fas fa-tachometer-alt\",\n \"deafness\": \"fas fa-deaf\",\n \"dedent\": \"fas fa-outdent\",\n \"diamond\": \"far fa-gem\",\n \"dollar\": \"fas fa-dollar-sign\",\n \"dot-circle-o\": \"far fa-dot-circle\",\n \"drivers-license\": \"fas fa-id-card\",\n \"drivers-license-o\": \"far fa-id-card\",\n \"eercast\": \"fab fa-sellcast\",\n \"envelope-alt\": \"far fa-envelope\",\n \"envelope-o\": \"far fa-envelope\",\n \"envelope-open-o\": \"far fa-envelope-open\",\n \"eur\": \"fas fa-euro-sign\",\n \"euro\": \"fas fa-euro-sign\",\n \"exchange\": \"fas fa-exchange-alt\",\n \"external-link\": \"fas fa-external-link-alt\",\n \"external-link-square\": \"fas fa-external-link-square-alt\",\n \"eyedropper\": \"fas fa-eye-dropper\",\n \"fa\": \"fab fa-font-awesome\",\n \"facebook\": \"fab fa-facebook-f\",\n \"facebook-f\": \"fab fa-facebook-f\",\n \"facebook-official\": \"fab fa-facebook\",\n \"feed\": \"fas fa-rss\",\n \"file-archive-o\": \"far fa-file-archive\",\n \"file-audio-o\": \"far fa-file-audio\",\n \"file-code-o\": \"far fa-file-code\",\n \"file-excel-o\": \"far fa-file-excel\",\n \"file-image-o\": \"far fa-file-image\",\n \"file-movie-o\": \"far fa-file-video\",\n \"file-o\": \"far fa-file\",\n \"file-pdf-o\": \"far fa-file-pdf\",\n \"file-photo-o\": \"far fa-file-image\",\n \"file-picture-o\": \"far fa-file-image\",\n \"file-powerpoint-o\": \"far fa-file-powerpoint\",\n \"file-sound-o\": \"far fa-file-audio\",\n \"file-text\": \"fas fa-file-alt\",\n \"file-text-o\": \"far fa-file-alt\",\n \"file-video-o\": \"far fa-file-video\",\n \"file-word-o\": \"far fa-file-word\",\n \"file-zip-o\": \"far fa-file-archive\",\n \"files-o\": \"far fa-copy\",\n \"flag-alt\": \"far fa-flag\",\n \"flag-o\": \"far fa-flag\",\n \"flash\": \"fas fa-bolt\",\n \"floppy-o\": \"far fa-save\",\n \"folder-o\": \"far fa-folder\",\n \"folder-open-alt\": \"far fa-folder-open\",\n \"folder-open-o\": \"far fa-folder-open\",\n \"frown-o\": \"far fa-frown\",\n \"futbol-o\": \"far fa-futbol\",\n \"gbp\": \"fas fa-pound-sign\",\n \"ge\": \"fab fa-empire\",\n \"gear\": \"fas fa-cog\",\n \"gears\": \"fas fa-cogs\",\n \"gittip\": \"fab fa-gratipay\",\n \"glass\": \"fas fa-glass-martini\",\n \"google-plus\": \"fab fa-google-plus-g\",\n \"google-plus-circle\": \"fab fa-google-plus\",\n \"google-plus-official\": \"fab fa-google-plus\",\n \"group\": \"fas fa-users\",\n \"hand-grab-o\": \"far fa-hand-rock\",\n \"hand-lizard-o\": \"far fa-hand-lizard\",\n \"hand-o-down\": \"far fa-hand-point-down\",\n \"hand-o-left\": \"far fa-hand-point-left\",\n \"hand-o-right\": \"far fa-hand-point-right\",\n \"hand-o-up\": \"far fa-hand-point-up\",\n \"hand-paper-o\": \"far fa-hand-paper\",\n \"hand-peace-o\": \"far fa-hand-peace\",\n \"hand-pointer-o\": \"far fa-hand-pointer\",\n \"hand-rock-o\": \"far fa-hand-rock\",\n \"hand-scissors-o\": \"far fa-hand-scissors\",\n \"hand-spock-o\": \"far fa-hand-spock\",\n \"hand-stop-o\": \"far fa-hand-paper\",\n \"handshake-o\": \"far fa-handshake\",\n \"hard-of-hearing\": \"fas fa-deaf\",\n \"hdd-o\": \"far fa-hdd\",\n \"header\": \"fas fa-heading\",\n \"heart-o\": \"far fa-heart\",\n \"hospital-o\": \"far fa-hospital\",\n \"hotel\": \"fas fa-hotel\",\n \"hourglass-1\": \"fas fa-hourglass-start\",\n \"hourglass-2\": \"fas fa-hourglass-half\",\n \"hourglass-3\": \"fas fa-hourglass-end\",\n \"hourglass-o\": \"far fa-hourglass\",\n \"id-card-o\": \"far fa-id-card\",\n \"ils\": \"fas fa-shekel-sign\",\n \"image\": \"far fa-image\",\n \"inr\": \"fas fa-rupee-sign\",\n \"institution\": \"fas fa-university\",\n \"intersex\": \"fas fa-transgender\",\n \"jpy\": \"fas fa-yen-sign\",\n \"keyboard-o\": \"far fa-keyboard\",\n \"krw\": \"fas fa-won-sign\",\n \"legal\": \"fas fa-gavel\",\n \"lemon-o\": \"far fa-lemon\",\n \"level-down\": \"fas fa-level-down-alt\",\n \"level-up\": \"fas fa-level-up-alt\",\n \"life-bouy\": \"far fa-life-ring\",\n \"life-buoy\": \"far fa-life-ring\",\n \"life-saver\": \"far fa-life-ring\",\n \"lightbulb-o\": \"far fa-lightbulb\",\n \"line-chart\": \"fas fa-chart-line\",\n \"linkedin\": \"fab fa-linkedin-in\",\n \"linkedin-square\": \"fab fa-linkedin\",\n \"long-arrow-down\": \"fas fa-long-arrow-alt-down\",\n \"long-arrow-left\": \"fas fa-long-arrow-alt-left\",\n \"long-arrow-right\": \"fas fa-long-arrow-alt-right\",\n \"long-arrow-up\": \"fas fa-long-arrow-alt-up\",\n \"mail-forward\": \"fas fa-share\",\n \"mail-reply\": \"fas fa-reply\",\n \"mail-reply-all\": \"fas fa-reply-all\",\n \"map-marker\": \"fas fa-map-marker-alt\",\n \"map-o\": \"far fa-map\",\n \"meanpath\": \"fab fa-font-awesome\",\n \"meh-o\": \"far fa-meh\",\n \"minus-square-o\": \"far fa-minus-square\",\n \"mobile\": \"fas fa-mobile-alt\",\n \"mobile-phone\": \"fas fa-mobile-alt\",\n \"money\": \"far fa-money-bill-alt\",\n \"moon-o\": \"far fa-moon\",\n \"mortar-board\": \"fas fa-graduation-cap\",\n \"navicon\": \"fas fa-bars\",\n \"newspaper-o\": \"far fa-newspaper\",\n \"paper-plane-o\": \"far fa-paper-plane\",\n \"paste\": \"far fa-clipboard\",\n \"pause-circle-o\": \"far fa-pause-circle\",\n \"pencil\": \"fas fa-pencil-alt\",\n \"pencil-square\": \"fas fa-pen-square\",\n \"pencil-square-o\": \"far fa-edit\",\n \"photo\": \"far fa-image\",\n \"picture\": \"far fa-image\",\n \"picture-o\": \"far fa-image\",\n \"pie-chart\": \"fas fa-chart-pie\",\n \"play-circle-o\": \"far fa-play-circle\",\n \"plus-square-o\": \"far fa-plus-square\",\n \"question-circle-o\": \"far fa-question-circle\",\n \"ra\": \"fab fa-rebel\",\n \"refresh\": \"fas fa-sync\",\n \"remove\": \"fas fa-times\",\n \"remove-sign\": \"fas fa-ban\",\n \"reorder\": \"fas fa-bars\",\n \"repeat\": \"fas fa-redo\",\n \"resistance\": \"fab fa-rebel\",\n \"rmb\": \"fas fa-yen-sign\",\n \"rotate-left\": \"fas fa-undo\",\n \"rotate-right\": \"fas fa-redo\",\n \"rouble\": \"fas fa-ruble-sign\",\n \"rub\": \"fas fa-ruble-sign\",\n \"ruble\": \"fas fa-ruble-sign\",\n \"rupee\": \"fas fa-rupee-sign\",\n \"s15\": \"fas fa-bath\",\n \"scissors\": \"fas fa-cut\",\n \"send\": \"fas fa-paper-plane\",\n \"send-o\": \"far fa-paper-plane\",\n \"share-square-o\": \"far fa-share-square\",\n \"shekel\": \"fas fa-shekel-sign\",\n \"sheqel\": \"fas fa-shekel-sign\",\n \"shield\": \"fas fa-shield-alt\",\n \"sign-in\": \"fas fa-sign-in-alt\",\n \"sign-out\": \"fas fa-sign-out-alt\",\n \"signing\": \"fas fa-sign-language\",\n \"sliders\": \"fas fa-sliders-h\",\n \"smile-o\": \"far fa-smile\",\n \"snowflake-o\": \"far fa-snowflake\",\n \"soccer-ball-o\": \"far fa-futbol\",\n \"sort-alpha-asc\": \"fas fa-sort-alpha-down\",\n \"sort-alpha-desc\": \"fas fa-sort-alpha-up\",\n \"sort-amount-asc\": \"fas fa-sort-amount-down\",\n \"sort-amount-desc\": \"fas fa-sort-amount-up\",\n \"sort-asc\": \"fas fa-sort-up\",\n \"sort-desc\": \"fas fa-sort-down\",\n \"sort-numeric-asc\": \"fas fa-sort-numeric-down\",\n \"sort-numeric-desc\": \"fas fa-sort-numeric-up\",\n \"spoon\": \"fas fa-utensil-spoon\",\n \"square-o\": \"far fa-square\",\n \"star-half-empty\": \"far fa-star-half\",\n \"star-half-full\": \"far fa-star-half\",\n \"star-half-o\": \"far fa-star-half\",\n \"star-o\": \"far fa-star\",\n \"sticky-note-o\": \"far fa-sticky-note\",\n \"stop-circle-o\": \"far fa-stop-circle\",\n \"sun-o\": \"far fa-sun\",\n \"support\": \"far fa-life-ring\",\n \"tablet\": \"fas fa-tablet-alt\",\n \"tachometer\": \"fas fa-tachometer-alt\",\n \"television\": \"fas fa-tv\",\n \"thermometer\": \"fas fa-thermometer-full\",\n \"thermometer-0\": \"fas fa-thermometer-empty\",\n \"thermometer-1\": \"fas fa-thermometer-quarter\",\n \"thermometer-2\": \"fas fa-thermometer-half\",\n \"thermometer-3\": \"fas fa-thermometer-three-quarters\",\n \"thermometer-4\": \"fas fa-thermometer-full\",\n \"thumb-tack\": \"fas fa-thumbtack\",\n \"thumbs-o-down\": \"far fa-thumbs-down\",\n \"thumbs-o-up\": \"far fa-thumbs-up\",\n \"ticket\": \"fas fa-ticket-alt\",\n \"times-circle-o\": \"far fa-times-circle\",\n \"times-rectangle\": \"fas fa-window-close\",\n \"times-rectangle-o\": \"far fa-window-close\",\n \"toggle-down\": \"far fa-caret-square-down\",\n \"toggle-left\": \"far fa-caret-square-left\",\n \"toggle-right\": \"far fa-caret-square-right\",\n \"toggle-up\": \"far fa-caret-square-up\",\n \"trash\": \"fas fa-trash-alt\",\n \"trash-o\": \"far fa-trash-alt\",\n \"try\": \"fas fa-lira-sign\",\n \"turkish-lira\": \"fas fa-lira-sign\",\n \"unsorted\": \"fas fa-sort\",\n \"upload-alt\": \"fas fa-upload\",\n \"usd\": \"fas fa-dollar-sign\",\n \"user-circle-o\": \"far fa-user-circle\",\n \"user-o\": \"far fa-user\",\n \"vcard\": \"fas fa-address-card\",\n \"vcard-o\": \"far fa-address-card\",\n \"video-camera\": \"fas fa-video\",\n \"vimeo\": \"fab fa-vimeo-v\",\n \"volume-control-phone\": \"fas fa-phone-volume\",\n \"warning\": \"fas fa-exclamation-triangle\",\n \"wechat\": \"fab fa-weixin\",\n \"wheelchair-alt\": \"fab fa-accessible-icon\",\n \"window-close-o\": \"far fa-window-close\",\n \"won\": \"fas fa-won-sign\",\n \"y-combinator-square\": \"fab fa-hacker-news\",\n \"yc\": \"fab fa-y-combinator\",\n \"yc-square\": \"fab fa-hacker-news\",\n \"yen\": \"fas fa-yen-sign\",\n \"youtube-play\": \"fab fa-youtube\",\n \"youtube-square\": \"fab fa-youtube\"\n};\nvar brands = [\n \"500px\",\n \"accessible-icon\",\n \"accusoft\",\n \"adn\",\n \"adversal\",\n \"affiliatetheme\",\n \"algolia\",\n \"amazon\",\n \"amazon-pay\",\n \"amilia\",\n \"android\",\n \"angellist\",\n \"angrycreative\",\n \"angular\",\n \"app-store\",\n \"app-store-ios\",\n \"apper\",\n \"apple\",\n \"apple-pay\",\n \"asymmetrik\",\n \"audible\",\n \"autoprefixer\",\n \"avianex\",\n \"aviato\",\n \"aws\",\n \"bandcamp\",\n \"behance\",\n \"behance-square\",\n \"bimobject\",\n \"bitbucket\",\n \"bitcoin\",\n \"bity\",\n \"black-tie\",\n \"blackberry\",\n \"blogger\",\n \"blogger-b\",\n \"bluetooth\",\n \"bluetooth-b\",\n \"btc\",\n \"buromobelexperte\",\n \"buysellads\",\n \"cc-amazon-pay\",\n \"cc-amex\",\n \"cc-apple-pay\",\n \"cc-diners-club\",\n \"cc-discover\",\n \"cc-jcb\",\n \"cc-mastercard\",\n \"cc-paypal\",\n \"cc-stripe\",\n \"cc-visa\",\n \"centercode\",\n \"chrome\",\n \"cloudscale\",\n \"cloudsmith\",\n \"cloudversify\",\n \"codepen\",\n \"codiepie\",\n \"connectdevelop\",\n \"contao\",\n \"cpanel\",\n \"creative-commons\",\n \"creative-commons-by\",\n \"creative-commons-nc\",\n \"creative-commons-nc-eu\",\n \"creative-commons-nc-jp\",\n \"creative-commons-nd\",\n \"creative-commons-pd\",\n \"creative-commons-pd-alt\",\n \"creative-commons-remix\",\n \"creative-commons-sa\",\n \"creative-commons-sampling\",\n \"creative-commons-sampling-plus\",\n \"creative-commons-share\",\n \"css3\",\n \"css3-alt\",\n \"cuttlefish\",\n \"d-and-d\",\n \"dashcube\",\n \"delicious\",\n \"deploydog\",\n \"deskpro\",\n \"deviantart\",\n \"digg\",\n \"digital-ocean\",\n \"discord\",\n \"discourse\",\n \"dochub\",\n \"docker\",\n \"draft2digital\",\n \"dribbble\",\n \"dribbble-square\",\n \"dropbox\",\n \"drupal\",\n \"dyalog\",\n \"earlybirds\",\n \"ebay\",\n \"edge\",\n \"elementor\",\n \"ello\",\n \"ember\",\n \"empire\",\n \"envira\",\n \"erlang\",\n \"ethereum\",\n \"etsy\",\n \"expeditedssl\",\n \"facebook\",\n \"facebook-f\",\n \"facebook-messenger\",\n \"facebook-square\",\n \"firefox\",\n \"first-order\",\n \"first-order-alt\",\n \"firstdraft\",\n \"flickr\",\n \"flipboard\",\n \"fly\",\n \"font-awesome\",\n \"font-awesome-alt\",\n \"font-awesome-flag\",\n \"font-awesome-logo-full\",\n \"fonticons\",\n \"fonticons-fi\",\n \"fort-awesome\",\n \"fort-awesome-alt\",\n \"forumbee\",\n \"foursquare\",\n \"free-code-camp\",\n \"freebsd\",\n \"fulcrum\",\n \"galactic-republic\",\n \"galactic-senate\",\n \"get-pocket\",\n \"gg\",\n \"gg-circle\",\n \"git\",\n \"git-square\",\n \"github\",\n \"github-alt\",\n \"github-square\",\n \"gitkraken\",\n \"gitlab\",\n \"gitter\",\n \"glide\",\n \"glide-g\",\n \"gofore\",\n \"goodreads\",\n \"goodreads-g\",\n \"google\",\n \"google-drive\",\n \"google-play\",\n \"google-plus\",\n \"google-plus-g\",\n \"google-plus-square\",\n \"google-wallet\",\n \"gratipay\",\n \"grav\",\n \"gripfire\",\n \"grunt\",\n \"gulp\",\n \"hacker-news\",\n \"hacker-news-square\",\n \"hackerrank\",\n \"hips\",\n \"hire-a-helper\",\n \"hooli\",\n \"hornbill\",\n \"hotjar\",\n \"houzz\",\n \"html5\",\n \"hubspot\",\n \"imdb\",\n \"instagram\",\n \"internet-explorer\",\n \"ioxhost\",\n \"itunes\",\n \"itunes-note\",\n \"java\",\n \"jedi-order\",\n \"jenkins\",\n \"joget\",\n \"joomla\",\n \"js\",\n \"js-square\",\n \"jsfiddle\",\n \"kaggle\",\n \"keybase\",\n \"keycdn\",\n \"kickstarter\",\n \"kickstarter-k\",\n \"korvue\",\n \"laravel\",\n \"lastfm\",\n \"lastfm-square\",\n \"leanpub\",\n \"less\",\n \"line\",\n \"linkedin\",\n \"linkedin-in\",\n \"linode\",\n \"linux\",\n \"lyft\",\n \"magento\",\n \"mailchimp\",\n \"mandalorian\",\n \"markdown\",\n \"mastodon\",\n \"maxcdn\",\n \"medapps\",\n \"medium\",\n \"medium-m\",\n \"medrt\",\n \"meetup\",\n \"megaport\",\n \"microsoft\",\n \"mix\",\n \"mixcloud\",\n \"mizuni\",\n \"modx\",\n \"monero\",\n \"napster\",\n \"neos\",\n \"nimblr\",\n \"nintendo-switch\",\n \"node\",\n \"node-js\",\n \"npm\",\n \"ns8\",\n \"nutritionix\",\n \"odnoklassniki\",\n \"odnoklassniki-square\",\n \"old-republic\",\n \"opencart\",\n \"openid\",\n \"opera\",\n \"optin-monster\",\n \"osi\",\n \"page4\",\n \"pagelines\",\n \"palfed\",\n \"patreon\",\n \"paypal\",\n \"periscope\",\n \"phabricator\",\n \"phoenix-framework\",\n \"phoenix-squadron\",\n \"php\",\n \"pied-piper\",\n \"pied-piper-alt\",\n \"pied-piper-hat\",\n \"pied-piper-pp\",\n \"pinterest\",\n \"pinterest-p\",\n \"pinterest-square\",\n \"playstation\",\n \"product-hunt\",\n \"pushed\",\n \"python\",\n \"qq\",\n \"quinscape\",\n \"quora\",\n \"r-project\",\n \"ravelry\",\n \"react\",\n \"readme\",\n \"rebel\",\n \"red-river\",\n \"reddit\",\n \"reddit-alien\",\n \"reddit-square\",\n \"rendact\",\n \"renren\",\n \"replyd\",\n \"researchgate\",\n \"resolving\",\n \"rev\",\n \"rocketchat\",\n \"rockrms\",\n \"safari\",\n \"sass\",\n \"schlix\",\n \"scribd\",\n \"searchengin\",\n \"sellcast\",\n \"sellsy\",\n \"servicestack\",\n \"shirtsinbulk\",\n \"shopware\",\n \"simplybuilt\",\n \"sistrix\",\n \"sith\",\n \"skyatlas\",\n \"skype\",\n \"slack\",\n \"slack-hash\",\n \"slideshare\",\n \"snapchat\",\n \"snapchat-ghost\",\n \"snapchat-square\",\n \"soundcloud\",\n \"speakap\",\n \"spotify\",\n \"squarespace\",\n \"stack-exchange\",\n \"stack-overflow\",\n \"staylinked\",\n \"steam\",\n \"steam-square\",\n \"steam-symbol\",\n \"sticker-mule\",\n \"strava\",\n \"stripe\",\n \"stripe-s\",\n \"studiovinari\",\n \"stumbleupon\",\n \"stumbleupon-circle\",\n \"superpowers\",\n \"supple\",\n \"teamspeak\",\n \"telegram\",\n \"telegram-plane\",\n \"tencent-weibo\",\n \"themeco\",\n \"themeisle\",\n \"trade-federation\",\n \"trello\",\n \"tripadvisor\",\n \"tumblr\",\n \"tumblr-square\",\n \"twitch\",\n \"twitter\",\n \"twitter-square\",\n \"typo3\",\n \"uber\",\n \"uikit\",\n \"uniregistry\",\n \"untappd\",\n \"usb\",\n \"ussunnah\",\n \"vaadin\",\n \"viacoin\",\n \"viadeo\",\n \"viadeo-square\",\n \"viber\",\n \"vimeo\",\n \"vimeo-square\",\n \"vimeo-v\",\n \"vine\",\n \"vk\",\n \"vnv\",\n \"vuejs\",\n \"weebly\",\n \"weibo\",\n \"weixin\",\n \"whatsapp\",\n \"whatsapp-square\",\n \"whmcs\",\n \"wikipedia-w\",\n \"windows\",\n \"wix\",\n \"wolf-pack-battalion\",\n \"wordpress\",\n \"wordpress-simple\",\n \"wpbeginner\",\n \"wpexplorer\",\n \"wpforms\",\n \"xbox\",\n \"xing\",\n \"xing-square\",\n \"y-combinator\",\n \"yahoo\",\n \"yandex\",\n \"yandex-international\",\n \"yelp\",\n \"yoast\",\n \"youtube\",\n \"youtube-square\",\n \"zhihu\"\n];\nvar mapper = (icon) => {\n const iconName = trimPrefixes(icon).trim();\n if (map[iconName]) {\n return map[iconName];\n }\n if (brands.includes(iconName)) {\n return \"fab fa-\" + iconName;\n }\n if (!iconName.includes(\" \")) {\n return \"fas fa-\" + iconName;\n }\n return iconName;\n};\nfunction trimPrefixes(icon) {\n if (icon.startsWith(\"fas fa-\")) {\n return icon.substr(7).split(\" \")[0];\n }\n if (icon.startsWith(\"icon-\")) {\n return icon.substr(5).split(\" \")[0];\n }\n return icon;\n}\nvar mapper_default = mapper;\nexport {\n mapper_default as default\n};\n//# sourceMappingURL=mapper.js.map\n","/**\n * Simple mapper from Neos Icon names to Fontawesome 5 icon classes.\n */\n// TODO: create type for this, so we can have autocompletion\n// alternatively just use IconName or even better IconLookup (has IconPrefix & IconName) of FontAwesome typings\nconst map: {readonly [key: string]: string} = {\n 'address-book-o': 'far fa-address-book',\n 'address-card-o': 'far fa-address-card',\n 'area-chart': 'fas fa-chart-area',\n 'arrow-circle-o-down': 'far fa-arrow-alt-circle-down',\n 'arrow-circle-o-left': 'far fa-arrow-alt-circle-left',\n 'arrow-circle-o-right': 'far fa-arrow-alt-circle-right',\n 'arrow-circle-o-up': 'far fa-arrow-alt-circle-up',\n 'arrows': 'fas fa-arrows-alt',\n 'arrows-alt': 'fas fa-expand-arrows-alt',\n 'arrows-h': 'fas fa-arrows-alt-h',\n 'arrows-v': 'fas fa-arrows-alt-v',\n 'asl-interpreting': 'fas fa-american-sign-language-interpreting',\n 'automobile': 'fas fa-car',\n 'bank': 'fas fa-university',\n 'bar-chart': 'far fa-chart-bar',\n 'bar-chart-o': 'far fa-chart-bar',\n 'bathtub': 'fas fa-bath',\n 'battery': 'fas fa-battery-full',\n 'battery-0': 'fas fa-battery-empty',\n 'battery-1': 'fas fa-battery-quarter',\n 'battery-2': 'fas fa-battery-half',\n 'battery-3': 'fas fa-battery-three-quarters',\n 'battery-4': 'fas fa-battery-full',\n 'bell-o': 'far fa-bell',\n 'bell-slash-o': 'far fa-bell-slash',\n 'bitbucket-square': 'fab fa-bitbucket',\n 'bitcoin': 'fab fa-btc',\n 'bookmark-o': 'far fa-bookmark',\n 'building-o': 'far fa-building',\n 'cab': 'fas fa-taxi',\n 'calendar': 'fas fa-calendar-alt',\n 'calendar-check-o': 'far fa-calendar-check',\n 'calendar-empty': 'far fa-calendar',\n 'calendar-minus-o': 'far fa-calendar-minus',\n 'calendar-o': 'far fa-calendar',\n 'calendar-plus-o': 'far fa-calendar-plus',\n 'calendar-times-o': 'far fa-calendar-times',\n 'caret-square-o-down': 'far fa-caret-square-down',\n 'caret-square-o-left': 'far fa-caret-square-left',\n 'caret-square-o-right': 'far fa-caret-square-right',\n 'caret-square-o-up': 'far fa-caret-square-up',\n 'cc': 'far fa-closed-captioning',\n 'chain': 'fas fa-link',\n 'chain-broken': 'fas fa-unlink',\n 'check-circle-o': 'far fa-check-circle',\n 'check-square-o': 'far fa-check-square',\n 'circle-o': 'far fa-circle',\n 'circle-o-notch': 'fas fa-circle-notch',\n 'circle-thin': 'far fa-circle',\n 'clock-o': 'far fa-clock',\n 'close': 'fas fa-times',\n 'cloud-download': 'fas fa-cloud-download-alt',\n 'cloud-upload': 'fas fa-cloud-upload-alt',\n 'cny': 'fas fa-yen-sign',\n 'code-fork': 'fas fa-code-branch',\n 'comment-o': 'far fa-comment',\n 'commenting': 'fas fa-comment-alt',\n 'commenting-o': 'far fa-comment-alt',\n 'comments-o': 'far fa-comments',\n 'copy': 'far fa-copy',\n 'credit-card-alt': 'fas fa-credit-card',\n 'cutlery': 'fas fa-utensils',\n 'dashboard': 'fas fa-tachometer-alt',\n 'deafness': 'fas fa-deaf',\n 'dedent': 'fas fa-outdent',\n 'diamond': 'far fa-gem',\n 'dollar': 'fas fa-dollar-sign',\n 'dot-circle-o': 'far fa-dot-circle',\n 'drivers-license': 'fas fa-id-card',\n 'drivers-license-o': 'far fa-id-card',\n 'eercast': 'fab fa-sellcast',\n 'envelope-alt': 'far fa-envelope',\n 'envelope-o': 'far fa-envelope',\n 'envelope-open-o': 'far fa-envelope-open',\n 'eur': 'fas fa-euro-sign',\n 'euro': 'fas fa-euro-sign',\n 'exchange': 'fas fa-exchange-alt',\n 'external-link': 'fas fa-external-link-alt',\n 'external-link-square': 'fas fa-external-link-square-alt',\n 'eyedropper': 'fas fa-eye-dropper',\n 'fa': 'fab fa-font-awesome',\n 'facebook': 'fab fa-facebook-f',\n 'facebook-f': 'fab fa-facebook-f',\n 'facebook-official': 'fab fa-facebook',\n 'feed': 'fas fa-rss',\n 'file-archive-o': 'far fa-file-archive',\n 'file-audio-o': 'far fa-file-audio',\n 'file-code-o': 'far fa-file-code',\n 'file-excel-o': 'far fa-file-excel',\n 'file-image-o': 'far fa-file-image',\n 'file-movie-o': 'far fa-file-video',\n 'file-o': 'far fa-file',\n 'file-pdf-o': 'far fa-file-pdf',\n 'file-photo-o': 'far fa-file-image',\n 'file-picture-o': 'far fa-file-image',\n 'file-powerpoint-o': 'far fa-file-powerpoint',\n 'file-sound-o': 'far fa-file-audio',\n 'file-text': 'fas fa-file-alt',\n 'file-text-o': 'far fa-file-alt',\n 'file-video-o': 'far fa-file-video',\n 'file-word-o': 'far fa-file-word',\n 'file-zip-o': 'far fa-file-archive',\n 'files-o': 'far fa-copy',\n 'flag-alt': 'far fa-flag',\n 'flag-o': 'far fa-flag',\n 'flash': 'fas fa-bolt',\n 'floppy-o': 'far fa-save',\n 'folder-o': 'far fa-folder',\n 'folder-open-alt': 'far fa-folder-open',\n 'folder-open-o': 'far fa-folder-open',\n 'frown-o': 'far fa-frown',\n 'futbol-o': 'far fa-futbol',\n 'gbp': 'fas fa-pound-sign',\n 'ge': 'fab fa-empire',\n 'gear': 'fas fa-cog',\n 'gears': 'fas fa-cogs',\n 'gittip': 'fab fa-gratipay',\n 'glass': 'fas fa-glass-martini',\n 'google-plus': 'fab fa-google-plus-g',\n 'google-plus-circle': 'fab fa-google-plus',\n 'google-plus-official': 'fab fa-google-plus',\n 'group': 'fas fa-users',\n 'hand-grab-o': 'far fa-hand-rock',\n 'hand-lizard-o': 'far fa-hand-lizard',\n 'hand-o-down': 'far fa-hand-point-down',\n 'hand-o-left': 'far fa-hand-point-left',\n 'hand-o-right': 'far fa-hand-point-right',\n 'hand-o-up': 'far fa-hand-point-up',\n 'hand-paper-o': 'far fa-hand-paper',\n 'hand-peace-o': 'far fa-hand-peace',\n 'hand-pointer-o': 'far fa-hand-pointer',\n 'hand-rock-o': 'far fa-hand-rock',\n 'hand-scissors-o': 'far fa-hand-scissors',\n 'hand-spock-o': 'far fa-hand-spock',\n 'hand-stop-o': 'far fa-hand-paper',\n 'handshake-o': 'far fa-handshake',\n 'hard-of-hearing': 'fas fa-deaf',\n 'hdd-o': 'far fa-hdd',\n 'header': 'fas fa-heading',\n 'heart-o': 'far fa-heart',\n 'hospital-o': 'far fa-hospital',\n 'hotel': 'fas fa-hotel',\n 'hourglass-1': 'fas fa-hourglass-start',\n 'hourglass-2': 'fas fa-hourglass-half',\n 'hourglass-3': 'fas fa-hourglass-end',\n 'hourglass-o': 'far fa-hourglass',\n 'id-card-o': 'far fa-id-card',\n 'ils': 'fas fa-shekel-sign',\n 'image': 'far fa-image',\n 'inr': 'fas fa-rupee-sign',\n 'institution': 'fas fa-university',\n 'intersex': 'fas fa-transgender',\n 'jpy': 'fas fa-yen-sign',\n 'keyboard-o': 'far fa-keyboard',\n 'krw': 'fas fa-won-sign',\n 'legal': 'fas fa-gavel',\n 'lemon-o': 'far fa-lemon',\n 'level-down': 'fas fa-level-down-alt',\n 'level-up': 'fas fa-level-up-alt',\n 'life-bouy': 'far fa-life-ring',\n 'life-buoy': 'far fa-life-ring',\n 'life-saver': 'far fa-life-ring',\n 'lightbulb-o': 'far fa-lightbulb',\n 'line-chart': 'fas fa-chart-line',\n 'linkedin': 'fab fa-linkedin-in',\n 'linkedin-square': 'fab fa-linkedin',\n 'long-arrow-down': 'fas fa-long-arrow-alt-down',\n 'long-arrow-left': 'fas fa-long-arrow-alt-left',\n 'long-arrow-right': 'fas fa-long-arrow-alt-right',\n 'long-arrow-up': 'fas fa-long-arrow-alt-up',\n 'mail-forward': 'fas fa-share',\n 'mail-reply': 'fas fa-reply',\n 'mail-reply-all': 'fas fa-reply-all',\n 'map-marker': 'fas fa-map-marker-alt',\n 'map-o': 'far fa-map',\n 'meanpath': 'fab fa-font-awesome',\n 'meh-o': 'far fa-meh',\n 'minus-square-o': 'far fa-minus-square',\n 'mobile': 'fas fa-mobile-alt',\n 'mobile-phone': 'fas fa-mobile-alt',\n 'money': 'far fa-money-bill-alt',\n 'moon-o': 'far fa-moon',\n 'mortar-board': 'fas fa-graduation-cap',\n 'navicon': 'fas fa-bars',\n 'newspaper-o': 'far fa-newspaper',\n 'paper-plane-o': 'far fa-paper-plane',\n 'paste': 'far fa-clipboard',\n 'pause-circle-o': 'far fa-pause-circle',\n 'pencil': 'fas fa-pencil-alt',\n 'pencil-square': 'fas fa-pen-square',\n 'pencil-square-o': 'far fa-edit',\n 'photo': 'far fa-image',\n 'picture': 'far fa-image',\n 'picture-o': 'far fa-image',\n 'pie-chart': 'fas fa-chart-pie',\n 'play-circle-o': 'far fa-play-circle',\n 'plus-square-o': 'far fa-plus-square',\n 'question-circle-o': 'far fa-question-circle',\n 'ra': 'fab fa-rebel',\n 'refresh': 'fas fa-sync',\n 'remove': 'fas fa-times',\n 'remove-sign': 'fas fa-ban',\n 'reorder': 'fas fa-bars',\n 'repeat': 'fas fa-redo',\n 'resistance': 'fab fa-rebel',\n 'rmb': 'fas fa-yen-sign',\n 'rotate-left': 'fas fa-undo',\n 'rotate-right': 'fas fa-redo',\n 'rouble': 'fas fa-ruble-sign',\n 'rub': 'fas fa-ruble-sign',\n 'ruble': 'fas fa-ruble-sign',\n 'rupee': 'fas fa-rupee-sign',\n 's15': 'fas fa-bath',\n 'scissors': 'fas fa-cut',\n 'send': 'fas fa-paper-plane',\n 'send-o': 'far fa-paper-plane',\n 'share-square-o': 'far fa-share-square',\n 'shekel': 'fas fa-shekel-sign',\n 'sheqel': 'fas fa-shekel-sign',\n 'shield': 'fas fa-shield-alt',\n 'sign-in': 'fas fa-sign-in-alt',\n 'sign-out': 'fas fa-sign-out-alt',\n 'signing': 'fas fa-sign-language',\n 'sliders': 'fas fa-sliders-h',\n 'smile-o': 'far fa-smile',\n 'snowflake-o': 'far fa-snowflake',\n 'soccer-ball-o': 'far fa-futbol',\n 'sort-alpha-asc': 'fas fa-sort-alpha-down',\n 'sort-alpha-desc': 'fas fa-sort-alpha-up',\n 'sort-amount-asc': 'fas fa-sort-amount-down',\n 'sort-amount-desc': 'fas fa-sort-amount-up',\n 'sort-asc': 'fas fa-sort-up',\n 'sort-desc': 'fas fa-sort-down',\n 'sort-numeric-asc': 'fas fa-sort-numeric-down',\n 'sort-numeric-desc': 'fas fa-sort-numeric-up',\n 'spoon': 'fas fa-utensil-spoon',\n 'square-o': 'far fa-square',\n 'star-half-empty': 'far fa-star-half',\n 'star-half-full': 'far fa-star-half',\n 'star-half-o': 'far fa-star-half',\n 'star-o': 'far fa-star',\n 'sticky-note-o': 'far fa-sticky-note',\n 'stop-circle-o': 'far fa-stop-circle',\n 'sun-o': 'far fa-sun',\n 'support': 'far fa-life-ring',\n 'tablet': 'fas fa-tablet-alt',\n 'tachometer': 'fas fa-tachometer-alt',\n 'television': 'fas fa-tv',\n 'thermometer': 'fas fa-thermometer-full',\n 'thermometer-0': 'fas fa-thermometer-empty',\n 'thermometer-1': 'fas fa-thermometer-quarter',\n 'thermometer-2': 'fas fa-thermometer-half',\n 'thermometer-3': 'fas fa-thermometer-three-quarters',\n 'thermometer-4': 'fas fa-thermometer-full',\n 'thumb-tack': 'fas fa-thumbtack',\n 'thumbs-o-down': 'far fa-thumbs-down',\n 'thumbs-o-up': 'far fa-thumbs-up',\n 'ticket': 'fas fa-ticket-alt',\n 'times-circle-o': 'far fa-times-circle',\n 'times-rectangle': 'fas fa-window-close',\n 'times-rectangle-o': 'far fa-window-close',\n 'toggle-down': 'far fa-caret-square-down',\n 'toggle-left': 'far fa-caret-square-left',\n 'toggle-right': 'far fa-caret-square-right',\n 'toggle-up': 'far fa-caret-square-up',\n 'trash': 'fas fa-trash-alt',\n 'trash-o': 'far fa-trash-alt',\n 'try': 'fas fa-lira-sign',\n 'turkish-lira': 'fas fa-lira-sign',\n 'unsorted': 'fas fa-sort',\n 'upload-alt': 'fas fa-upload',\n 'usd': 'fas fa-dollar-sign',\n 'user-circle-o': 'far fa-user-circle',\n 'user-o': 'far fa-user',\n 'vcard': 'fas fa-address-card',\n 'vcard-o': 'far fa-address-card',\n 'video-camera': 'fas fa-video',\n 'vimeo': 'fab fa-vimeo-v',\n 'volume-control-phone': 'fas fa-phone-volume',\n 'warning': 'fas fa-exclamation-triangle',\n 'wechat': 'fab fa-weixin',\n 'wheelchair-alt': 'fab fa-accessible-icon',\n 'window-close-o': 'far fa-window-close',\n 'won': 'fas fa-won-sign',\n 'y-combinator-square': 'fab fa-hacker-news',\n 'yc': 'fab fa-y-combinator',\n 'yc-square': 'fab fa-hacker-news',\n 'yen': 'fas fa-yen-sign',\n 'youtube-play': 'fab fa-youtube',\n 'youtube-square': 'fab fa-youtube'\n};\n\n// all Icons from:\n// https://github.com/FortAwesome/Font-Awesome/blob/master/svg-with-js/js/fa-brands.js#L118\nconst brands: ReadonlyArray = [\n '500px',\n 'accessible-icon',\n 'accusoft',\n 'adn',\n 'adversal',\n 'affiliatetheme',\n 'algolia',\n 'amazon',\n 'amazon-pay',\n 'amilia',\n 'android',\n 'angellist',\n 'angrycreative',\n 'angular',\n 'app-store',\n 'app-store-ios',\n 'apper',\n 'apple',\n 'apple-pay',\n 'asymmetrik',\n 'audible',\n 'autoprefixer',\n 'avianex',\n 'aviato',\n 'aws',\n 'bandcamp',\n 'behance',\n 'behance-square',\n 'bimobject',\n 'bitbucket',\n 'bitcoin',\n 'bity',\n 'black-tie',\n 'blackberry',\n 'blogger',\n 'blogger-b',\n 'bluetooth',\n 'bluetooth-b',\n 'btc',\n 'buromobelexperte',\n 'buysellads',\n 'cc-amazon-pay',\n 'cc-amex',\n 'cc-apple-pay',\n 'cc-diners-club',\n 'cc-discover',\n 'cc-jcb',\n 'cc-mastercard',\n 'cc-paypal',\n 'cc-stripe',\n 'cc-visa',\n 'centercode',\n 'chrome',\n 'cloudscale',\n 'cloudsmith',\n 'cloudversify',\n 'codepen',\n 'codiepie',\n 'connectdevelop',\n 'contao',\n 'cpanel',\n 'creative-commons',\n 'creative-commons-by',\n 'creative-commons-nc',\n 'creative-commons-nc-eu',\n 'creative-commons-nc-jp',\n 'creative-commons-nd',\n 'creative-commons-pd',\n 'creative-commons-pd-alt',\n 'creative-commons-remix',\n 'creative-commons-sa',\n 'creative-commons-sampling',\n 'creative-commons-sampling-plus',\n 'creative-commons-share',\n 'css3',\n 'css3-alt',\n 'cuttlefish',\n 'd-and-d',\n 'dashcube',\n 'delicious',\n 'deploydog',\n 'deskpro',\n 'deviantart',\n 'digg',\n 'digital-ocean',\n 'discord',\n 'discourse',\n 'dochub',\n 'docker',\n 'draft2digital',\n 'dribbble',\n 'dribbble-square',\n 'dropbox',\n 'drupal',\n 'dyalog',\n 'earlybirds',\n 'ebay',\n 'edge',\n 'elementor',\n 'ello',\n 'ember',\n 'empire',\n 'envira',\n 'erlang',\n 'ethereum',\n 'etsy',\n 'expeditedssl',\n 'facebook',\n 'facebook-f',\n 'facebook-messenger',\n 'facebook-square',\n 'firefox',\n 'first-order',\n 'first-order-alt',\n 'firstdraft',\n 'flickr',\n 'flipboard',\n 'fly',\n 'font-awesome',\n 'font-awesome-alt',\n 'font-awesome-flag',\n 'font-awesome-logo-full',\n 'fonticons',\n 'fonticons-fi',\n 'fort-awesome',\n 'fort-awesome-alt',\n 'forumbee',\n 'foursquare',\n 'free-code-camp',\n 'freebsd',\n 'fulcrum',\n 'galactic-republic',\n 'galactic-senate',\n 'get-pocket',\n 'gg',\n 'gg-circle',\n 'git',\n 'git-square',\n 'github',\n 'github-alt',\n 'github-square',\n 'gitkraken',\n 'gitlab',\n 'gitter',\n 'glide',\n 'glide-g',\n 'gofore',\n 'goodreads',\n 'goodreads-g',\n 'google',\n 'google-drive',\n 'google-play',\n 'google-plus',\n 'google-plus-g',\n 'google-plus-square',\n 'google-wallet',\n 'gratipay',\n 'grav',\n 'gripfire',\n 'grunt',\n 'gulp',\n 'hacker-news',\n 'hacker-news-square',\n 'hackerrank',\n 'hips',\n 'hire-a-helper',\n 'hooli',\n 'hornbill',\n 'hotjar',\n 'houzz',\n 'html5',\n 'hubspot',\n 'imdb',\n 'instagram',\n 'internet-explorer',\n 'ioxhost',\n 'itunes',\n 'itunes-note',\n 'java',\n 'jedi-order',\n 'jenkins',\n 'joget',\n 'joomla',\n 'js',\n 'js-square',\n 'jsfiddle',\n 'kaggle',\n 'keybase',\n 'keycdn',\n 'kickstarter',\n 'kickstarter-k',\n 'korvue',\n 'laravel',\n 'lastfm',\n 'lastfm-square',\n 'leanpub',\n 'less',\n 'line',\n 'linkedin',\n 'linkedin-in',\n 'linode',\n 'linux',\n 'lyft',\n 'magento',\n 'mailchimp',\n 'mandalorian',\n 'markdown',\n 'mastodon',\n 'maxcdn',\n 'medapps',\n 'medium',\n 'medium-m',\n 'medrt',\n 'meetup',\n 'megaport',\n 'microsoft',\n 'mix',\n 'mixcloud',\n 'mizuni',\n 'modx',\n 'monero',\n 'napster',\n 'neos',\n 'nimblr',\n 'nintendo-switch',\n 'node',\n 'node-js',\n 'npm',\n 'ns8',\n 'nutritionix',\n 'odnoklassniki',\n 'odnoklassniki-square',\n 'old-republic',\n 'opencart',\n 'openid',\n 'opera',\n 'optin-monster',\n 'osi',\n 'page4',\n 'pagelines',\n 'palfed',\n 'patreon',\n 'paypal',\n 'periscope',\n 'phabricator',\n 'phoenix-framework',\n 'phoenix-squadron',\n 'php',\n 'pied-piper',\n 'pied-piper-alt',\n 'pied-piper-hat',\n 'pied-piper-pp',\n 'pinterest',\n 'pinterest-p',\n 'pinterest-square',\n 'playstation',\n 'product-hunt',\n 'pushed',\n 'python',\n 'qq',\n 'quinscape',\n 'quora',\n 'r-project',\n 'ravelry',\n 'react',\n 'readme',\n 'rebel',\n 'red-river',\n 'reddit',\n 'reddit-alien',\n 'reddit-square',\n 'rendact',\n 'renren',\n 'replyd',\n 'researchgate',\n 'resolving',\n 'rev',\n 'rocketchat',\n 'rockrms',\n 'safari',\n 'sass',\n 'schlix',\n 'scribd',\n 'searchengin',\n 'sellcast',\n 'sellsy',\n 'servicestack',\n 'shirtsinbulk',\n 'shopware',\n 'simplybuilt',\n 'sistrix',\n 'sith',\n 'skyatlas',\n 'skype',\n 'slack',\n 'slack-hash',\n 'slideshare',\n 'snapchat',\n 'snapchat-ghost',\n 'snapchat-square',\n 'soundcloud',\n 'speakap',\n 'spotify',\n 'squarespace',\n 'stack-exchange',\n 'stack-overflow',\n 'staylinked',\n 'steam',\n 'steam-square',\n 'steam-symbol',\n 'sticker-mule',\n 'strava',\n 'stripe',\n 'stripe-s',\n 'studiovinari',\n 'stumbleupon',\n 'stumbleupon-circle',\n 'superpowers',\n 'supple',\n 'teamspeak',\n 'telegram',\n 'telegram-plane',\n 'tencent-weibo',\n 'themeco',\n 'themeisle',\n 'trade-federation',\n 'trello',\n 'tripadvisor',\n 'tumblr',\n 'tumblr-square',\n 'twitch',\n 'twitter',\n 'twitter-square',\n 'typo3',\n 'uber',\n 'uikit',\n 'uniregistry',\n 'untappd',\n 'usb',\n 'ussunnah',\n 'vaadin',\n 'viacoin',\n 'viadeo',\n 'viadeo-square',\n 'viber',\n 'vimeo',\n 'vimeo-square',\n 'vimeo-v',\n 'vine',\n 'vk',\n 'vnv',\n 'vuejs',\n 'weebly',\n 'weibo',\n 'weixin',\n 'whatsapp',\n 'whatsapp-square',\n 'whmcs',\n 'wikipedia-w',\n 'windows',\n 'wix',\n 'wolf-pack-battalion',\n 'wordpress',\n 'wordpress-simple',\n 'wpbeginner',\n 'wpexplorer',\n 'wpforms',\n 'xbox',\n 'xing',\n 'xing-square',\n 'y-combinator',\n 'yahoo',\n 'yandex',\n 'yandex-international',\n 'yelp',\n 'yoast',\n 'youtube',\n 'youtube-square',\n 'zhihu'\n];\n\nconst mapper = (icon: string): string => {\n /**\n * Neos <= 3.3 prefixed icons with this, we need to strip those\n * otherwise the mapping would'nt work for brand icons\n */\n const iconName = trimPrefixes(icon).trim();\n\n if (map[iconName]) {\n return map[iconName];\n }\n\n if (brands.includes(iconName)) {\n return 'fab fa-' + iconName;\n }\n\n if (!iconName.includes(' ')) {\n return 'fas fa-' + iconName;\n }\n\n return iconName;\n};\n\nfunction trimPrefixes(icon: string): string {\n if (icon.startsWith('fas fa-')) {\n return icon.substr(7).split(' ')[0];\n }\n\n if (icon.startsWith('icon-')) {\n return icon.substr(5).split(' ')[0];\n }\n\n return icon;\n}\n\nexport default mapper;\n","// src/Icon/resourceIcon.tsx\nimport mergeClassNames from \"classnames\";\nimport React, { PureComponent } from \"react\";\nimport { ReactSVG } from \"react-svg\";\nimport { defaultProps } from \"./iconDefaultProps\";\nvar ResourceIcon = class extends PureComponent {\n render() {\n const { padded, theme, label, icon, className, color, size } = this.props;\n if (!icon || icon.substr(0, 11) !== \"resource://\") {\n return null;\n }\n const iconResourcePath = \"/_Resources/Static/Packages/\" + icon.substr(11);\n const classNames = mergeClassNames(\n theme.icon,\n className,\n {\n [theme[\"icon--resource\"]]: icon,\n [theme[\"icon--paddedLeft\"]]: padded === \"left\",\n [theme[\"icon--paddedRight\"]]: padded === \"right\",\n [theme[\"icon--color-warn\"]]: color === \"warn\",\n [theme[\"icon--color-error\"]]: color === \"error\",\n [theme[\"icon--color-primaryBlue\"]]: color === \"primaryBlue\",\n [theme[\"icon--huge\"]]: size === \"3x\",\n [theme[\"icon--large\"]]: size === \"2x\",\n [theme[\"icon--big\"]]: size === \"lg\",\n [theme[\"icon--small\"]]: size === \"sm\",\n [theme[\"icon--tiny\"]]: size === \"xs\"\n }\n );\n return /* @__PURE__ */ React.createElement(ReactSVG, { src: iconResourcePath, \"aria-label\": label, className: classNames, wrapper: \"span\" });\n }\n};\nResourceIcon.defaultProps = defaultProps;\nvar resourceIcon_default = ResourceIcon;\nexport {\n resourceIcon_default as default\n};\n//# sourceMappingURL=resourceIcon.js.map\n","import mergeClassNames from 'classnames';\nimport React, {PureComponent} from 'react';\nimport {ReactSVG} from 'react-svg';\n\nimport {defaultProps} from './iconDefaultProps';\nimport {IconProps, IconTheme} from './icon';\n\ninterface ResourceIconTheme extends IconTheme {\n readonly 'icon--resource': string;\n}\n\nexport interface ResourceIconProps extends Omit {\n readonly theme?: ResourceIconTheme;\n}\n\nclass ResourceIcon extends PureComponent {\n public static readonly defaultProps = defaultProps;\n\n public render(): JSX.Element | null {\n const {padded, theme, label, icon, className, color, size} = this.props;\n\n if (!icon || icon.substr(0, 11) !== 'resource://') {\n return null;\n }\n\n const iconResourcePath = '/_Resources/Static/Packages/' + icon.substr(11);\n const classNames = mergeClassNames(\n theme!.icon,\n className,\n {\n [theme!['icon--resource']]: icon,\n [theme!['icon--paddedLeft']]: padded === 'left',\n [theme!['icon--paddedRight']]: padded === 'right',\n [theme!['icon--color-warn']]: color === 'warn',\n [theme!['icon--color-error']]: color === 'error',\n [theme!['icon--color-primaryBlue']]: color === 'primaryBlue',\n [theme!['icon--huge']]: size === '3x',\n [theme!['icon--large']]: size === '2x',\n [theme!['icon--big']]: size === 'lg',\n [theme!['icon--small']]: size === 'sm',\n [theme!['icon--tiny']]: size === 'xs'\n }\n );\n\n return ;\n }\n}\n\nexport default ResourceIcon;\n","import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';\nimport _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';\nimport { SVGInjector } from '@tanem/svg-injector';\nimport { func, oneOf, oneOfType, object, string, bool } from 'prop-types';\nimport { createElement, Component } from 'react';\nimport ReactDOMServer from 'react-dom/server';\n\n// Hat-tip: https://github.com/developit/preact-compat/blob/master/src/index.js#L402.\nvar shallowDiffers = function shallowDiffers(a, b) {\n for (var i in a) {\n if (!(i in b)) {\n return true;\n }\n }\n\n for (var _i in b) {\n if (a[_i] !== b[_i]) {\n return true;\n }\n }\n\n return false;\n};\n\nvar ReactSVG = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ReactSVG, _React$Component);\n\n function ReactSVG() {\n var _this;\n\n _this = _React$Component.apply(this, arguments) || this;\n _this.initialState = {\n hasError: false,\n isLoading: true\n };\n _this.state = _this.initialState;\n _this._isMounted = false;\n\n _this.refCallback = function (container) {\n _this.container = container;\n };\n\n return _this;\n }\n\n var _proto = ReactSVG.prototype;\n\n _proto.renderSVG = function renderSVG() {\n var _this2 = this;\n\n /* istanbul ignore else */\n if (this.container instanceof Node) {\n var _this$props = this.props,\n beforeInjection = _this$props.beforeInjection,\n evalScripts = _this$props.evalScripts,\n renumerateIRIElements = _this$props.renumerateIRIElements,\n src = _this$props.src,\n useRequestCache = _this$props.useRequestCache;\n /* eslint-disable @typescript-eslint/no-non-null-assertion */\n\n var afterInjection = this.props.afterInjection;\n var Wrapper = this.props.wrapper;\n /* eslint-enable @typescript-eslint/no-non-null-assertion */\n\n var wrapper = document.createElement(Wrapper);\n wrapper.innerHTML = ReactDOMServer.renderToStaticMarkup( /*#__PURE__*/createElement(Wrapper, null, /*#__PURE__*/createElement(Wrapper, {\n \"data-src\": src\n })));\n this.svgWrapper = this.container.appendChild(wrapper.firstChild);\n\n var afterEach = function afterEach(error, svg) {\n if (error) {\n _this2.removeSVG();\n } // TODO: It'd be better to cleanly unsubscribe from SVGInjector\n // callbacks instead of tracking a property like this.\n\n\n if (_this2._isMounted) {\n _this2.setState(function () {\n return {\n hasError: !!error,\n isLoading: false\n };\n }, function () {\n afterInjection(error, svg);\n });\n }\n };\n\n SVGInjector(this.svgWrapper.firstChild, {\n afterEach: afterEach,\n beforeEach: beforeInjection,\n cacheRequests: useRequestCache,\n evalScripts: evalScripts,\n renumerateIRIElements: renumerateIRIElements\n });\n }\n };\n\n _proto.removeSVG = function removeSVG() {\n if (this.container instanceof Node && this.svgWrapper instanceof Node) {\n this.container.removeChild(this.svgWrapper);\n this.svgWrapper = null;\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n this.renderSVG();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this3 = this;\n\n if (shallowDiffers(prevProps, this.props)) {\n this.setState(function () {\n return _this3.initialState;\n }, function () {\n _this3.removeSVG();\n\n _this3.renderSVG();\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isMounted = false;\n this.removeSVG();\n };\n\n _proto.render = function render() {\n /* eslint-disable @typescript-eslint/no-unused-vars */\n var _this$props2 = this.props;\n _this$props2.afterInjection;\n _this$props2.beforeInjection;\n _this$props2.evalScripts;\n var Fallback = _this$props2.fallback,\n Loading = _this$props2.loading;\n _this$props2.renumerateIRIElements;\n _this$props2.src;\n _this$props2.useRequestCache;\n var wrapper = _this$props2.wrapper,\n rest = _objectWithoutPropertiesLoose(_this$props2, [\"afterInjection\", \"beforeInjection\", \"evalScripts\", \"fallback\", \"loading\", \"renumerateIRIElements\", \"src\", \"useRequestCache\", \"wrapper\"]);\n /* eslint-enable @typescript-eslint/no-unused-vars */\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\n\n var Wrapper = wrapper;\n return /*#__PURE__*/createElement(Wrapper, Object.assign({}, rest, {\n ref: this.refCallback\n }), this.state.isLoading && Loading && /*#__PURE__*/createElement(Loading, null), this.state.hasError && Fallback && /*#__PURE__*/createElement(Fallback, null));\n };\n\n return ReactSVG;\n}(Component);\nReactSVG.defaultProps = {\n afterInjection: function afterInjection() {\n return undefined;\n },\n beforeInjection: function beforeInjection() {\n return undefined;\n },\n evalScripts: 'never',\n fallback: null,\n loading: null,\n renumerateIRIElements: true,\n useRequestCache: true,\n wrapper: 'div'\n};\nReactSVG.propTypes = {\n afterInjection: func,\n beforeInjection: func,\n evalScripts: oneOf(['always', 'once', 'never']),\n fallback: oneOfType([func, object, string]),\n loading: oneOfType([func, object, string]),\n renumerateIRIElements: bool,\n src: string.isRequired,\n useRequestCache: bool,\n wrapper: oneOf(['div', 'span'])\n} ;\n\nexport { ReactSVG };\n//# sourceMappingURL=react-svg.esm.js.map\n","// Hat-tip: https://github.com/developit/preact-compat/blob/master/src/index.js#L402.\nconst shallowDiffers = (a, b) => {\n for (const i in a) {\n if (!(i in b)) {\n return true;\n }\n }\n for (const i in b) {\n if (a[i] !== b[i]) {\n return true;\n }\n }\n return false;\n};\nexport default shallowDiffers;\n","import { SVGInjector } from '@tanem/svg-injector';\nimport * as PropTypes from 'prop-types';\nimport * as React from 'react';\nimport ReactDOMServer from 'react-dom/server';\nimport shallowDiffers from './shallow-differs';\nexport class ReactSVG extends React.Component {\n constructor() {\n super(...arguments);\n this.initialState = {\n hasError: false,\n isLoading: true,\n };\n this.state = this.initialState;\n this._isMounted = false;\n this.refCallback = (container) => {\n this.container = container;\n };\n }\n renderSVG() {\n /* istanbul ignore else */\n if (this.container instanceof Node) {\n const { beforeInjection, evalScripts, renumerateIRIElements, src, useRequestCache, } = this.props;\n /* eslint-disable @typescript-eslint/no-non-null-assertion */\n const afterInjection = this.props.afterInjection;\n const Wrapper = this.props.wrapper;\n /* eslint-enable @typescript-eslint/no-non-null-assertion */\n const wrapper = document.createElement(Wrapper);\n wrapper.innerHTML = ReactDOMServer.renderToStaticMarkup(React.createElement(Wrapper, null,\n React.createElement(Wrapper, { \"data-src\": src })));\n this.svgWrapper = this.container.appendChild(wrapper.firstChild);\n const afterEach = (error, svg) => {\n if (error) {\n this.removeSVG();\n }\n // TODO: It'd be better to cleanly unsubscribe from SVGInjector\n // callbacks instead of tracking a property like this.\n if (this._isMounted) {\n this.setState(() => ({\n hasError: !!error,\n isLoading: false,\n }), () => {\n afterInjection(error, svg);\n });\n }\n };\n SVGInjector(this.svgWrapper.firstChild, {\n afterEach,\n beforeEach: beforeInjection,\n cacheRequests: useRequestCache,\n evalScripts,\n renumerateIRIElements,\n });\n }\n }\n removeSVG() {\n if (this.container instanceof Node && this.svgWrapper instanceof Node) {\n this.container.removeChild(this.svgWrapper);\n this.svgWrapper = null;\n }\n }\n componentDidMount() {\n this._isMounted = true;\n this.renderSVG();\n }\n componentDidUpdate(prevProps) {\n if (shallowDiffers(prevProps, this.props)) {\n this.setState(() => this.initialState, () => {\n this.removeSVG();\n this.renderSVG();\n });\n }\n }\n componentWillUnmount() {\n this._isMounted = false;\n this.removeSVG();\n }\n render() {\n /* eslint-disable @typescript-eslint/no-unused-vars */\n const { afterInjection, beforeInjection, evalScripts, fallback: Fallback, loading: Loading, renumerateIRIElements, src, useRequestCache, wrapper, ...rest } = this.props;\n /* eslint-enable @typescript-eslint/no-unused-vars */\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const Wrapper = wrapper;\n return (React.createElement(Wrapper, Object.assign({}, rest, { ref: this.refCallback }),\n this.state.isLoading && Loading && React.createElement(Loading, null),\n this.state.hasError && Fallback && React.createElement(Fallback, null)));\n }\n}\nReactSVG.defaultProps = {\n afterInjection: () => undefined,\n beforeInjection: () => undefined,\n evalScripts: 'never',\n fallback: null,\n loading: null,\n renumerateIRIElements: true,\n useRequestCache: true,\n wrapper: 'div',\n};\nReactSVG.propTypes = {\n afterInjection: PropTypes.func,\n beforeInjection: PropTypes.func,\n evalScripts: PropTypes.oneOf(['always', 'once', 'never']),\n fallback: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n PropTypes.string,\n ]),\n loading: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n PropTypes.string,\n ]),\n renumerateIRIElements: PropTypes.bool,\n src: PropTypes.string.isRequired,\n useRequestCache: PropTypes.bool,\n wrapper: PropTypes.oneOf(['div', 'span']),\n};\n","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","import { __spreadArrays } from 'tslib';\nimport { parse } from 'content-type';\n\nvar cloneSvg = function cloneSvg(sourceSvg) {\n return sourceSvg.cloneNode(true);\n};\n\nvar isLocal = function isLocal() {\n return window.location.protocol === 'file:';\n};\n\nvar makeAjaxRequest = function makeAjaxRequest(url, callback) {\n var httpRequest = new XMLHttpRequest();\n\n httpRequest.onreadystatechange = function () {\n try {\n if (!/\\.svg/i.test(url) && httpRequest.readyState === 2) {\n var contentType = httpRequest.getResponseHeader('Content-Type');\n\n if (!contentType) {\n throw new Error('Content type not found');\n }\n\n var type = parse(contentType).type;\n\n if (!(type === 'image/svg+xml' || type === 'text/plain')) {\n throw new Error(\"Invalid content type: \" + type);\n }\n }\n\n if (httpRequest.readyState === 4) {\n if (httpRequest.status === 404 || httpRequest.responseXML === null) {\n throw new Error(isLocal() ? 'Note: SVG injection ajax calls do not work locally without ' + 'adjusting security settings in your browser. Or consider ' + 'using a local webserver.' : 'Unable to load SVG file: ' + url);\n }\n\n if (httpRequest.status === 200 || isLocal() && httpRequest.status === 0) {\n callback(null, httpRequest);\n } else {\n throw new Error('There was a problem injecting the SVG: ' + httpRequest.status + ' ' + httpRequest.statusText);\n }\n }\n } catch (error) {\n httpRequest.abort();\n callback(error, httpRequest);\n }\n };\n\n httpRequest.open('GET', url);\n\n if (httpRequest.overrideMimeType) {\n httpRequest.overrideMimeType('text/xml');\n }\n\n httpRequest.send();\n};\n\nvar svgCache = new Map();\n\nvar requestQueue = {};\nvar queueRequest = function queueRequest(url, callback) {\n requestQueue[url] = requestQueue[url] || [];\n requestQueue[url].push(callback);\n};\nvar processRequestQueue = function processRequestQueue(url) {\n var _loop_1 = function _loop_1(i, len) {\n setTimeout(function () {\n if (Array.isArray(requestQueue[url])) {\n var cacheValue = svgCache.get(url);\n var callback = requestQueue[url][i];\n\n if (cacheValue instanceof SVGElement) {\n callback(null, cloneSvg(cacheValue));\n }\n\n if (cacheValue instanceof Error) {\n callback(cacheValue);\n }\n\n if (i === requestQueue[url].length - 1) {\n delete requestQueue[url];\n }\n }\n }, 0);\n };\n\n for (var i = 0, len = requestQueue[url].length; i < len; i++) {\n _loop_1(i);\n }\n};\n\nvar loadSvgCached = function loadSvgCached(url, callback) {\n if (svgCache.has(url)) {\n var cacheValue = svgCache.get(url);\n\n if (cacheValue instanceof SVGElement) {\n callback(null, cloneSvg(cacheValue));\n return;\n }\n\n if (cacheValue instanceof Error) {\n callback(cacheValue);\n return;\n }\n\n queueRequest(url, callback);\n return;\n }\n\n svgCache.set(url, undefined);\n queueRequest(url, callback);\n makeAjaxRequest(url, function (error, httpRequest) {\n if (error) {\n svgCache.set(url, error);\n } else if (httpRequest.responseXML instanceof Document && httpRequest.responseXML.documentElement && httpRequest.responseXML.documentElement instanceof SVGElement) {\n svgCache.set(url, httpRequest.responseXML.documentElement);\n }\n\n processRequestQueue(url);\n });\n};\n\nvar loadSvgUncached = function loadSvgUncached(url, callback) {\n makeAjaxRequest(url, function (error, httpRequest) {\n if (error) {\n callback(error);\n } else if (httpRequest.responseXML instanceof Document && httpRequest.responseXML.documentElement && httpRequest.responseXML.documentElement instanceof SVGElement) {\n callback(null, httpRequest.responseXML.documentElement);\n }\n });\n};\n\nvar idCounter = 0;\n\nvar uniqueId = function uniqueId() {\n return ++idCounter;\n};\n\nvar injectedElements = [];\nvar ranScripts = {};\nvar svgNamespace = 'http://www.w3.org/2000/svg';\nvar xlinkNamespace = 'http://www.w3.org/1999/xlink';\n\nvar injectElement = function injectElement(el, evalScripts, renumerateIRIElements, cacheRequests, beforeEach, callback) {\n var imgUrl = el.getAttribute('data-src') || el.getAttribute('src');\n\n if (!imgUrl) {\n callback(new Error('Invalid data-src or src attribute'));\n return;\n }\n\n if (injectedElements.indexOf(el) !== -1) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n return;\n }\n\n injectedElements.push(el);\n el.setAttribute('src', '');\n var loadSvg = cacheRequests ? loadSvgCached : loadSvgUncached;\n loadSvg(imgUrl, function (error, svg) {\n if (!svg) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(error);\n return;\n }\n\n var imgId = el.getAttribute('id');\n\n if (imgId) {\n svg.setAttribute('id', imgId);\n }\n\n var imgTitle = el.getAttribute('title');\n\n if (imgTitle) {\n svg.setAttribute('title', imgTitle);\n }\n\n var imgWidth = el.getAttribute('width');\n\n if (imgWidth) {\n svg.setAttribute('width', imgWidth);\n }\n\n var imgHeight = el.getAttribute('height');\n\n if (imgHeight) {\n svg.setAttribute('height', imgHeight);\n }\n\n var mergedClasses = Array.from(new Set(__spreadArrays((svg.getAttribute('class') || '').split(' '), ['injected-svg'], (el.getAttribute('class') || '').split(' ')))).join(' ').trim();\n svg.setAttribute('class', mergedClasses);\n var imgStyle = el.getAttribute('style');\n\n if (imgStyle) {\n svg.setAttribute('style', imgStyle);\n }\n\n svg.setAttribute('data-src', imgUrl);\n var imgData = [].filter.call(el.attributes, function (at) {\n return /^data-\\w[\\w-]*$/.test(at.name);\n });\n Array.prototype.forEach.call(imgData, function (dataAttr) {\n if (dataAttr.name && dataAttr.value) {\n svg.setAttribute(dataAttr.name, dataAttr.value);\n }\n });\n\n if (renumerateIRIElements) {\n var iriElementsAndProperties_1 = {\n clipPath: ['clip-path'],\n 'color-profile': ['color-profile'],\n cursor: ['cursor'],\n filter: ['filter'],\n linearGradient: ['fill', 'stroke'],\n marker: ['marker', 'marker-start', 'marker-mid', 'marker-end'],\n mask: ['mask'],\n path: [],\n pattern: ['fill', 'stroke'],\n radialGradient: ['fill', 'stroke']\n };\n var element_1;\n var elements_1;\n var properties_1;\n var currentId_1;\n var newId_1;\n Object.keys(iriElementsAndProperties_1).forEach(function (key) {\n element_1 = key;\n properties_1 = iriElementsAndProperties_1[key];\n elements_1 = svg.querySelectorAll(element_1 + '[id]');\n\n var _loop_1 = function _loop_1(a, elementsLen) {\n currentId_1 = elements_1[a].id;\n newId_1 = currentId_1 + '-' + uniqueId();\n var referencingElements;\n Array.prototype.forEach.call(properties_1, function (property) {\n referencingElements = svg.querySelectorAll('[' + property + '*=\"' + currentId_1 + '\"]');\n\n for (var b = 0, referencingElementLen = referencingElements.length; b < referencingElementLen; b++) {\n var attrValue = referencingElements[b].getAttribute(property);\n\n if (attrValue && !attrValue.match(new RegExp('url\\\\(\"?#' + currentId_1 + '\"?\\\\)'))) {\n continue;\n }\n\n referencingElements[b].setAttribute(property, 'url(#' + newId_1 + ')');\n }\n });\n var allLinks = svg.querySelectorAll('[*|href]');\n var links = [];\n\n for (var c = 0, allLinksLen = allLinks.length; c < allLinksLen; c++) {\n var href = allLinks[c].getAttributeNS(xlinkNamespace, 'href');\n\n if (href && href.toString() === '#' + elements_1[a].id) {\n links.push(allLinks[c]);\n }\n }\n\n for (var d = 0, linksLen = links.length; d < linksLen; d++) {\n links[d].setAttributeNS(xlinkNamespace, 'href', '#' + newId_1);\n }\n\n elements_1[a].id = newId_1;\n };\n\n for (var a = 0, elementsLen = elements_1.length; a < elementsLen; a++) {\n _loop_1(a);\n }\n });\n }\n\n svg.removeAttribute('xmlns:a');\n var scripts = svg.querySelectorAll('script');\n var scriptsToEval = [];\n var script;\n var scriptType;\n\n for (var i = 0, scriptsLen = scripts.length; i < scriptsLen; i++) {\n scriptType = scripts[i].getAttribute('type');\n\n if (!scriptType || scriptType === 'application/ecmascript' || scriptType === 'application/javascript' || scriptType === 'text/javascript') {\n script = scripts[i].innerText || scripts[i].textContent;\n\n if (script) {\n scriptsToEval.push(script);\n }\n\n svg.removeChild(scripts[i]);\n }\n }\n\n if (scriptsToEval.length > 0 && (evalScripts === 'always' || evalScripts === 'once' && !ranScripts[imgUrl])) {\n for (var l = 0, scriptsToEvalLen = scriptsToEval.length; l < scriptsToEvalLen; l++) {\n new Function(scriptsToEval[l])(window);\n }\n\n ranScripts[imgUrl] = true;\n }\n\n var styleTags = svg.querySelectorAll('style');\n Array.prototype.forEach.call(styleTags, function (styleTag) {\n styleTag.textContent += '';\n });\n svg.setAttribute('xmlns', svgNamespace);\n svg.setAttribute('xmlns:xlink', xlinkNamespace);\n beforeEach(svg);\n\n if (el.parentNode) {\n el.parentNode.replaceChild(svg, el);\n }\n\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(null, svg);\n });\n};\n\nvar SVGInjector = function SVGInjector(elements, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.afterAll,\n afterAll = _c === void 0 ? function () {\n return undefined;\n } : _c,\n _d = _b.afterEach,\n afterEach = _d === void 0 ? function () {\n return undefined;\n } : _d,\n _e = _b.beforeEach,\n beforeEach = _e === void 0 ? function () {\n return undefined;\n } : _e,\n _f = _b.cacheRequests,\n cacheRequests = _f === void 0 ? true : _f,\n _g = _b.evalScripts,\n evalScripts = _g === void 0 ? 'never' : _g,\n _h = _b.renumerateIRIElements,\n renumerateIRIElements = _h === void 0 ? true : _h;\n\n if (elements && 'length' in elements) {\n var elementsLoaded_1 = 0;\n\n for (var i = 0, j = elements.length; i < j; i++) {\n injectElement(elements[i], evalScripts, renumerateIRIElements, cacheRequests, beforeEach, function (error, svg) {\n afterEach(error, svg);\n\n if (elements && 'length' in elements && elements.length === ++elementsLoaded_1) {\n afterAll(elementsLoaded_1);\n }\n });\n }\n } else if (elements) {\n injectElement(elements, evalScripts, renumerateIRIElements, cacheRequests, beforeEach, function (error, svg) {\n afterEach(error, svg);\n afterAll(1);\n elements = null;\n });\n } else {\n afterAll(0);\n }\n};\n\nexport { SVGInjector };\n//# sourceMappingURL=svg-injector.esm.js.map\n","const cloneSvg = (sourceSvg: SVGElement) =>\n sourceSvg.cloneNode(true) as SVGElement\n\nexport default cloneSvg\n","const isLocal = () => window.location.protocol === 'file:'\n\nexport default isLocal\n","import { parse as parseContentType } from 'content-type'\nimport isLocal from './is-local'\n\nconst makeAjaxRequest = (\n url: string,\n callback: (error: Error | null, httpRequest: XMLHttpRequest) => void\n) => {\n const httpRequest = new XMLHttpRequest()\n\n httpRequest.onreadystatechange = () => {\n try {\n if (!/\\.svg/i.test(url) && httpRequest.readyState === 2) {\n const contentType = httpRequest.getResponseHeader('Content-Type')\n if (!contentType) {\n throw new Error('Content type not found')\n }\n\n const { type } = parseContentType(contentType)\n if (!(type === 'image/svg+xml' || type === 'text/plain')) {\n throw new Error(`Invalid content type: ${type}`)\n }\n }\n\n if (httpRequest.readyState === 4) {\n if (httpRequest.status === 404 || httpRequest.responseXML === null) {\n throw new Error(\n isLocal()\n ? 'Note: SVG injection ajax calls do not work locally without ' +\n 'adjusting security settings in your browser. Or consider ' +\n 'using a local webserver.'\n : 'Unable to load SVG file: ' + url\n )\n }\n\n if (\n httpRequest.status === 200 ||\n (isLocal() && httpRequest.status === 0)\n ) {\n callback(null, httpRequest)\n } else {\n throw new Error(\n 'There was a problem injecting the SVG: ' +\n httpRequest.status +\n ' ' +\n httpRequest.statusText\n )\n }\n }\n } catch (error) {\n httpRequest.abort()\n callback(error, httpRequest)\n }\n }\n\n httpRequest.open('GET', url)\n\n /* istanbul ignore else */\n if (httpRequest.overrideMimeType) {\n httpRequest.overrideMimeType('text/xml')\n }\n\n httpRequest.send()\n}\n\nexport default makeAjaxRequest\n","const svgCache = new Map()\n\nexport default svgCache\n","import cloneSvg from './clone-svg'\nimport svgCache from './svg-cache'\nimport { Errback } from './types'\n\nlet requestQueue: { [key: string]: Errback[] } = {}\n\nexport const clear = () => {\n requestQueue = {}\n}\n\nexport const queueRequest = (url: string, callback: Errback) => {\n requestQueue[url] = requestQueue[url] || []\n requestQueue[url].push(callback)\n}\n\nexport const processRequestQueue = (url: string) => {\n for (let i = 0, len = requestQueue[url].length; i < len; i++) {\n // Make these calls async so we avoid blocking the page/renderer.\n setTimeout(() => {\n /* istanbul ignore else */\n if (Array.isArray(requestQueue[url])) {\n const cacheValue = svgCache.get(url)\n const callback = requestQueue[url][i]\n\n /* istanbul ignore else */\n if (cacheValue instanceof SVGElement) {\n callback(null, cloneSvg(cacheValue))\n }\n\n /* istanbul ignore else */\n if (cacheValue instanceof Error) {\n callback(cacheValue)\n }\n\n /* istanbul ignore else */\n if (i === requestQueue[url].length - 1) {\n delete requestQueue[url]\n }\n }\n }, 0)\n }\n}\n","import cloneSvg from './clone-svg'\nimport makeAjaxRequest from './make-ajax-request'\nimport { processRequestQueue, queueRequest } from './request-queue'\nimport svgCache from './svg-cache'\nimport { Errback } from './types'\n\nconst loadSvgCached = (url: string, callback: Errback) => {\n if (svgCache.has(url)) {\n const cacheValue = svgCache.get(url)\n\n if (cacheValue instanceof SVGElement) {\n callback(null, cloneSvg(cacheValue))\n return\n }\n\n if (cacheValue instanceof Error) {\n callback(cacheValue)\n return\n }\n\n queueRequest(url, callback)\n\n return\n }\n\n // Seed the cache to indicate we are loading this URL.\n svgCache.set(url, undefined)\n queueRequest(url, callback)\n\n makeAjaxRequest(url, (error, httpRequest) => {\n /* istanbul ignore else */\n if (error) {\n svgCache.set(url, error)\n } else if (\n httpRequest.responseXML instanceof Document &&\n httpRequest.responseXML.documentElement &&\n httpRequest.responseXML.documentElement instanceof SVGElement\n ) {\n svgCache.set(url, httpRequest.responseXML.documentElement)\n }\n processRequestQueue(url)\n })\n}\n\nexport default loadSvgCached\n","import makeAjaxRequest from './make-ajax-request'\nimport { Errback } from './types'\n\nconst loadSvgUncached = (url: string, callback: Errback) => {\n makeAjaxRequest(url, (error, httpRequest) => {\n /* istanbul ignore else */\n if (error) {\n callback(error)\n } else if (\n httpRequest.responseXML instanceof Document &&\n httpRequest.responseXML.documentElement &&\n httpRequest.responseXML.documentElement instanceof SVGElement\n ) {\n callback(null, httpRequest.responseXML.documentElement)\n }\n })\n}\n\nexport default loadSvgUncached\n","let idCounter = 0\nconst uniqueId = () => ++idCounter\nexport default uniqueId\n","import loadSvgCached from './load-svg-cached'\nimport loadSvgUncached from './load-svg-uncached'\nimport { BeforeEach, Errback, EvalScripts } from './types'\nimport uniqueId from './unique-id'\n\ntype ElementType = Element | HTMLElement | null\n\nconst injectedElements: ElementType[] = []\nconst ranScripts: { [key: string]: boolean } = {}\nconst svgNamespace = 'http://www.w3.org/2000/svg'\nconst xlinkNamespace = 'http://www.w3.org/1999/xlink'\n\nconst injectElement = (\n el: NonNullable,\n evalScripts: EvalScripts,\n renumerateIRIElements: boolean,\n cacheRequests: boolean,\n beforeEach: BeforeEach,\n callback: Errback\n) => {\n const imgUrl = el.getAttribute('data-src') || el.getAttribute('src')\n\n /* istanbul ignore else */\n if (!imgUrl) {\n callback(new Error('Invalid data-src or src attribute'))\n return\n }\n\n // Make sure we aren't already in the process of injecting this element to\n // avoid a race condition if multiple injections for the same element are run.\n // :NOTE: Using indexOf() only _after_ we check for SVG support and bail, so\n // no need for IE8 indexOf() polyfill.\n /* istanbul ignore else */\n if (injectedElements.indexOf(el) !== -1) {\n // TODO: Extract.\n injectedElements.splice(injectedElements.indexOf(el), 1)\n ;(el as ElementType) = null\n return\n }\n\n // Remember the request to inject this element, in case other injection calls\n // are also trying to replace this element before we finish.\n injectedElements.push(el)\n\n // Try to avoid loading the orginal image src if possible.\n el.setAttribute('src', '')\n\n const loadSvg = cacheRequests ? loadSvgCached : loadSvgUncached\n\n loadSvg(imgUrl, (error, svg) => {\n /* istanbul ignore else */\n if (!svg) {\n // TODO: Extract.\n injectedElements.splice(injectedElements.indexOf(el), 1)\n ;(el as ElementType) = null\n callback(error)\n return\n }\n\n const imgId = el.getAttribute('id')\n /* istanbul ignore else */\n if (imgId) {\n svg.setAttribute('id', imgId)\n }\n\n const imgTitle = el.getAttribute('title')\n /* istanbul ignore else */\n if (imgTitle) {\n svg.setAttribute('title', imgTitle)\n }\n\n const imgWidth = el.getAttribute('width')\n /* istanbul ignore else */\n if (imgWidth) {\n svg.setAttribute('width', imgWidth)\n }\n\n const imgHeight = el.getAttribute('height')\n /* istanbul ignore else */\n if (imgHeight) {\n svg.setAttribute('height', imgHeight)\n }\n\n const mergedClasses = Array.from(\n new Set([\n ...(svg.getAttribute('class') || '').split(' '),\n 'injected-svg',\n ...(el.getAttribute('class') || '').split(' '),\n ])\n )\n .join(' ')\n .trim()\n svg.setAttribute('class', mergedClasses)\n\n const imgStyle = el.getAttribute('style')\n /* istanbul ignore else */\n if (imgStyle) {\n svg.setAttribute('style', imgStyle)\n }\n\n svg.setAttribute('data-src', imgUrl)\n\n // Copy all the data elements to the svg.\n const imgData = [].filter.call(el.attributes, (at: Attr) => {\n return /^data-\\w[\\w-]*$/.test(at.name)\n })\n\n Array.prototype.forEach.call(imgData, (dataAttr: Attr) => {\n /* istanbul ignore else */\n if (dataAttr.name && dataAttr.value) {\n svg.setAttribute(dataAttr.name, dataAttr.value)\n }\n })\n\n /* istanbul ignore else */\n if (renumerateIRIElements) {\n // Make sure any internally referenced clipPath ids and their clip-path\n // references are unique.\n //\n // This addresses the issue of having multiple instances of the same SVG\n // on a page and only the first clipPath id is referenced.\n //\n // Browsers often shortcut the SVG Spec and don't use clipPaths contained\n // in parent elements that are hidden, so if you hide the first SVG\n // instance on the page, then all other instances lose their clipping.\n // Reference: https://bugzilla.mozilla.org/show_bug.cgi?id=376027\n\n // Handle all defs elements that have iri capable attributes as defined by\n // w3c: http://www.w3.org/TR/SVG/linking.html#processingIRI. Mapping IRI\n // addressable elements to the properties that can reference them.\n const iriElementsAndProperties: { [key: string]: string[] } = {\n clipPath: ['clip-path'],\n 'color-profile': ['color-profile'],\n cursor: ['cursor'],\n filter: ['filter'],\n linearGradient: ['fill', 'stroke'],\n marker: ['marker', 'marker-start', 'marker-mid', 'marker-end'],\n mask: ['mask'],\n path: [],\n pattern: ['fill', 'stroke'],\n radialGradient: ['fill', 'stroke'],\n }\n\n let element\n let elements\n let properties\n let currentId: string\n let newId: string\n\n Object.keys(iriElementsAndProperties).forEach((key) => {\n element = key\n properties = iriElementsAndProperties[key]\n\n elements = svg.querySelectorAll(element + '[id]')\n for (let a = 0, elementsLen = elements.length; a < elementsLen; a++) {\n currentId = elements[a].id\n newId = currentId + '-' + uniqueId()\n\n // All of the properties that can reference this element type.\n let referencingElements\n Array.prototype.forEach.call(properties, (property: string) => {\n // :NOTE: using a substring match attr selector here to deal with IE\n // \"adding extra quotes in url() attrs\".\n referencingElements = svg.querySelectorAll(\n '[' + property + '*=\"' + currentId + '\"]'\n )\n for (\n let b = 0, referencingElementLen = referencingElements.length;\n b < referencingElementLen;\n b++\n ) {\n const attrValue: string | null = referencingElements[\n b\n ].getAttribute(property)\n if (\n attrValue &&\n !attrValue.match(new RegExp('url\\\\(\"?#' + currentId + '\"?\\\\)'))\n ) {\n continue\n }\n referencingElements[b].setAttribute(\n property,\n 'url(#' + newId + ')'\n )\n }\n })\n\n const allLinks = svg.querySelectorAll('[*|href]')\n const links = []\n for (let c = 0, allLinksLen = allLinks.length; c < allLinksLen; c++) {\n const href = allLinks[c].getAttributeNS(xlinkNamespace, 'href')\n /* istanbul ignore else */\n if (href && href.toString() === '#' + elements[a].id) {\n links.push(allLinks[c])\n }\n }\n for (let d = 0, linksLen = links.length; d < linksLen; d++) {\n links[d].setAttributeNS(xlinkNamespace, 'href', '#' + newId)\n }\n\n elements[a].id = newId\n }\n })\n }\n\n // Remove any unwanted/invalid namespaces that might have been added by SVG\n // editing tools.\n svg.removeAttribute('xmlns:a')\n\n // Post page load injected SVGs don't automatically have their script\n // elements run, so we'll need to make that happen, if requested.\n\n // Find then prune the scripts.\n const scripts = svg.querySelectorAll('script')\n const scriptsToEval: string[] = []\n let script\n let scriptType\n\n for (let i = 0, scriptsLen = scripts.length; i < scriptsLen; i++) {\n scriptType = scripts[i].getAttribute('type')\n\n // Only process javascript types. SVG defaults to 'application/ecmascript'\n // for unset types.\n /* istanbul ignore else */\n if (\n !scriptType ||\n scriptType === 'application/ecmascript' ||\n scriptType === 'application/javascript' ||\n scriptType === 'text/javascript'\n ) {\n // innerText for IE, textContent for other browsers.\n script = scripts[i].innerText || scripts[i].textContent\n\n // Stash.\n /* istanbul ignore else */\n if (script) {\n scriptsToEval.push(script)\n }\n\n // Tidy up and remove the script element since we don't need it anymore.\n svg.removeChild(scripts[i])\n }\n }\n\n // Run/Eval the scripts if needed.\n /* istanbul ignore else */\n if (\n scriptsToEval.length > 0 &&\n (evalScripts === 'always' ||\n (evalScripts === 'once' && !ranScripts[imgUrl]))\n ) {\n for (\n let l = 0, scriptsToEvalLen = scriptsToEval.length;\n l < scriptsToEvalLen;\n l++\n ) {\n // :NOTE: Yup, this is a form of eval, but it is being used to eval code\n // the caller has explictely asked to be loaded, and the code is in a\n // caller defined SVG file... not raw user input.\n //\n // Also, the code is evaluated in a closure and not in the global scope.\n // If you need to put something in global scope, use 'window'.\n new Function(scriptsToEval[l])(window)\n }\n\n // Remember we already ran scripts for this svg.\n ranScripts[imgUrl] = true\n }\n\n // :WORKAROUND: IE doesn't evaluate