-
Notifications
You must be signed in to change notification settings - Fork 0
/
9093.c561a1ae.iframe.bundle.js
1 lines (1 loc) · 22.3 KB
/
9093.c561a1ae.iframe.bundle.js
1
(self.webpackChunk_haaretz_a_tm_sg=self.webpackChunk_haaretz_a_tm_sg||[]).push([[9093,7438,7445],{"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/MemoryRouter.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MemoryRouter=exports.BaseRouter=void 0;const mitt_1=__importDefault(__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/lib/mitt/index.js")),urls_1=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/urls.js");class BaseRouter{constructor(){this.pathname="/",this.query={},this.asPath="/",this.hash="",this.isReady=!0,this.basePath="",this.isFallback=!1,this.isPreview=!1,this.isLocaleDomain=!1,this.locale=void 0,this.locales=[],this.events=(0,mitt_1.default)()}back(){}forward(){}beforePopState(){}async prefetch(){}reload(){}get route(){return this.pathname}}exports.BaseRouter=BaseRouter;class MemoryRouter extends BaseRouter{static snapshot(original){return Object.assign(new MemoryRouter,original)}constructor(initialUrl,async){super(),this.async=!1,this.registerPaths=()=>{throw new Error('\n This method was removed in v0.7.0.\n It has been replaced with "mockRouter.useParser(createDynamicRouteParser(...))"\n See the README for more details on upgrading.\n ')},this.push=(url,as,options)=>this._setCurrentUrl(url,as,options,"push"),this.replace=(url,as,options)=>this._setCurrentUrl(url,as,options,"replace"),this.setCurrentUrl=(url,as)=>{this._setCurrentUrl(url,as,void 0,"set",!1)},initialUrl&&this.setCurrentUrl(initialUrl),async&&(this.async=async)}useParser(parser){return this.events.on("NEXT_ROUTER_MOCK:parse",parser),()=>this.events.off("NEXT_ROUTER_MOCK:parse",parser)}async _setCurrentUrl(url,as,options,source,async=this.async){const newRoute=parseUrlToCompleteUrl(url,this.pathname);let asPath;if(this.events.emit("NEXT_ROUTER_MOCK:parse",newRoute),null==as)asPath=getRouteAsPath(newRoute);else{const asRoute=parseUrlToCompleteUrl(as,this.pathname);this.events.emit("NEXT_ROUTER_MOCK:parse",asRoute),asPath=getRouteAsPath(asRoute),newRoute.hash=asRoute.hash,newRoute.routeParams=asRoute.routeParams}const shallow=(null==options?void 0:options.shallow)||!1,triggerHashChange=function shouldTriggerHashChange(current,newRoute){const isHashChange=current.hash!==newRoute.hash,isQueryChange=(0,urls_1.stringifyQueryString)(current.query)!==(0,urls_1.stringifyQueryString)(newRoute.query),isRouteChange=isQueryChange||current.pathname!==newRoute.pathname;return!isRouteChange&&(isHashChange||newRoute.hash)}(this,newRoute);triggerHashChange?this.events.emit("hashChangeStart",asPath,{shallow}):this.events.emit("routeChangeStart",asPath,{shallow}),async&&await new Promise((resolve=>setTimeout(resolve,0))),this.asPath=asPath,this.pathname=newRoute.pathname,this.query={...newRoute.query,...newRoute.routeParams},this.hash=newRoute.hash,(null==options?void 0:options.locale)&&(this.locale=options.locale),triggerHashChange?this.events.emit("hashChangeComplete",this.asPath,{shallow}):this.events.emit("routeChangeComplete",this.asPath,{shallow});const eventName="push"===source?"NEXT_ROUTER_MOCK:push":"replace"===source?"NEXT_ROUTER_MOCK:replace":void 0;return eventName&&this.events.emit(eventName,this.asPath,{shallow}),!0}}function parseUrlToCompleteUrl(url,currentPathname){var _a;const parsedUrl="object"==typeof url?url:(0,urls_1.parseUrl)(url);return{pathname:normalizeTrailingSlash(null!==(_a=parsedUrl.pathname)&&void 0!==_a?_a:currentPathname),query:parsedUrl.query||{},hash:parsedUrl.hash||"",routeParams:{}}}function getRouteAsPath({pathname,query,hash,routeParams}){const remainingQuery={...query};let asPath=pathname.replace(/\[{1,2}(.+?)]{1,2}/g,(($0,slug)=>{slug.startsWith("...")&&(slug=slug.replace("...",""));let value=routeParams[slug];return value||(value=remainingQuery[slug],delete remainingQuery[slug]),Array.isArray(value)?value.map((v=>encodeURIComponent(v))).join("/"):void 0!==value?encodeURIComponent(String(value)):""}));asPath=normalizeTrailingSlash(asPath);const qs=(0,urls_1.stringifyQueryString)(remainingQuery);return qs&&(asPath+=`?${qs}`),hash&&(asPath+=hash),asPath}function normalizeTrailingSlash(path){return path.endsWith("/")&&path.length>1?path.slice(0,-1):path||"/"}exports.MemoryRouter=MemoryRouter},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/MemoryRouterContext.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MemoryRouterContext=void 0;const react_1=__importDefault(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"));exports.MemoryRouterContext=react_1.default.createContext(null)},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.withRouter=exports.useRouter=exports.memoryRouter=exports.BaseRouter=exports.MemoryRouter=exports.useMemoryRouter=void 0;const react_1=__importDefault(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")),MemoryRouter_1=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/MemoryRouter.js"),useMemoryRouter_1=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/useMemoryRouter.js"),withMemoryRouter_1=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/withMemoryRouter.js"),MemoryRouterContext_1=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/MemoryRouterContext.js");var useMemoryRouter_2=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/useMemoryRouter.js");Object.defineProperty(exports,"useMemoryRouter",{enumerable:!0,get:function(){return useMemoryRouter_2.useMemoryRouter}});var MemoryRouter_2=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/MemoryRouter.js");Object.defineProperty(exports,"MemoryRouter",{enumerable:!0,get:function(){return MemoryRouter_2.MemoryRouter}}),Object.defineProperty(exports,"BaseRouter",{enumerable:!0,get:function(){return MemoryRouter_2.BaseRouter}}),exports.memoryRouter=new MemoryRouter_1.MemoryRouter,exports.memoryRouter.async=!1,exports.default=exports.memoryRouter;exports.useRouter=()=>react_1.default.useContext(MemoryRouterContext_1.MemoryRouterContext)||(0,useMemoryRouter_1.useMemoryRouter)(exports.memoryRouter);exports.withRouter=ComposedComponent=>(0,withMemoryRouter_1.withMemoryRouter)(exports.useRouter,ComposedComponent)},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/lib/mitt/index.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function mitt(){const all=Object.create(null);return{on(type,handler){(all[type]||(all[type]=[])).push(handler)},off(type,handler){all[type]&&all[type].splice(all[type].indexOf(handler)>>>0,1)},emit(type,...evts){(all[type]||[]).slice().map((handler=>{handler(...evts)}))}}}},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/urls.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringifyQueryString=exports.parseUrl=void 0,exports.parseUrl=function parseUrl(url){const parsed=new URL(url,"https://base.com"),query=Object.fromEntries(Array.from(parsed.searchParams.keys()).map((key=>{const values=parsed.searchParams.getAll(key);return[key,1===values.length?values[0]:values]})));return{pathname:parsed.pathname,hash:parsed.hash,query}},exports.stringifyQueryString=function stringifyQueryString(query){const params=new URLSearchParams;return Object.keys(query).forEach((key=>{const values=query[key];for(const value of Array.isArray(values)?values:[values])params.append(key,value)})),params.toString()}},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/useMemoryRouter.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useMemoryRouter=void 0;const react_1=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"),MemoryRouter_1=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/MemoryRouter.js");exports.useMemoryRouter=(singletonRouter,eventHandlers)=>{const[router,setRouter]=(0,react_1.useState)((()=>MemoryRouter_1.MemoryRouter.snapshot(singletonRouter)));return(0,react_1.useEffect)((()=>{let isMounted=!0;const handleRouteChange=()=>{isMounted&&setRouter(MemoryRouter_1.MemoryRouter.snapshot(singletonRouter))};return singletonRouter.events.on("routeChangeComplete",handleRouteChange),singletonRouter.events.on("hashChangeComplete",handleRouteChange),()=>{isMounted=!1,singletonRouter.events.off("routeChangeComplete",handleRouteChange),singletonRouter.events.off("hashChangeComplete",handleRouteChange)}}),[singletonRouter]),(0,react_1.useEffect)((()=>{if(!eventHandlers)return;const{onRouteChangeStart,onRouteChangeComplete,onHashChangeStart,onHashChangeComplete,onPush,onReplace}=eventHandlers;return onRouteChangeStart&&singletonRouter.events.on("routeChangeStart",onRouteChangeStart),onRouteChangeComplete&&singletonRouter.events.on("routeChangeComplete",onRouteChangeComplete),onHashChangeStart&&singletonRouter.events.on("hashChangeStart",onHashChangeStart),onHashChangeComplete&&singletonRouter.events.on("hashChangeComplete",onHashChangeComplete),onPush&&singletonRouter.events.on("NEXT_ROUTER_MOCK:push",onPush),onReplace&&singletonRouter.events.on("NEXT_ROUTER_MOCK:replace",onReplace),()=>{onRouteChangeStart&&singletonRouter.events.off("routeChangeStart",onRouteChangeStart),onRouteChangeComplete&&singletonRouter.events.off("routeChangeComplete",onRouteChangeComplete),onHashChangeStart&&singletonRouter.events.off("hashChangeStart",onHashChangeStart),onHashChangeComplete&&singletonRouter.events.off("hashChangeComplete",onHashChangeComplete),onPush&&singletonRouter.events.off("NEXT_ROUTER_MOCK:push",onPush),onReplace&&singletonRouter.events.off("NEXT_ROUTER_MOCK:replace",onReplace)}}),[singletonRouter.events,null==eventHandlers?void 0:eventHandlers.onRouteChangeStart,null==eventHandlers?void 0:eventHandlers.onRouteChangeComplete,null==eventHandlers?void 0:eventHandlers.onHashChangeStart,null==eventHandlers?void 0:eventHandlers.onHashChangeComplete,null==eventHandlers?void 0:eventHandlers.onPush,null==eventHandlers?void 0:eventHandlers.onReplace]),router}},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next-router-mock/dist/withMemoryRouter.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.withMemoryRouter=void 0;const react_1=__importDefault(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"));exports.withMemoryRouter=function withMemoryRouter(useRouter,ComposedComponent){function WithRouterWrapper(props){return react_1.default.createElement(ComposedComponent,{router:useRouter(),...props})}return WithRouterWrapper.getInitialProps=ComposedComponent.getInitialProps,WithRouterWrapper.origGetInitialProps=ComposedComponent.origGetInitialProps,WithRouterWrapper}},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AmpStateContext",{enumerable:!0,get:function(){return AmpStateContext}});const AmpStateContext=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs")._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")).default.createContext({})},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-mode.js":(__unused_webpack_module,exports)=>{"use strict";function isInAmpMode(param){let{ampFirst=!1,hybrid=!1,hasQuery=!1}=void 0===param?{}:param;return ampFirst||hybrid&&hasQuery}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/head.js":(module,exports,__webpack_require__)=>{var process=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{defaultHead:function(){return defaultHead},default:function(){return _default}});const _interop_require_default=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"),_react=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs")._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")),_sideeffect=_interop_require_default._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/side-effect.js")),_ampcontextsharedruntime=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js"),_headmanagercontextsharedruntime=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"),_ampmode=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-mode.js");__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/utils/warn-once.js");function defaultHead(inAmpMode){void 0===inAmpMode&&(inAmpMode=!1);const head=[_react.default.createElement("meta",{charSet:"utf-8"})];return inAmpMode||head.push(_react.default.createElement("meta",{name:"viewport",content:"width=device-width"})),head}function onlyReactElement(list,child){return"string"==typeof child||"number"==typeof child?list:child.type===_react.default.Fragment?list.concat(_react.default.Children.toArray(child.props.children).reduce(((fragmentList,fragmentChild)=>"string"==typeof fragmentChild||"number"==typeof fragmentChild?fragmentList:fragmentList.concat(fragmentChild)),[])):list.concat(child)}const METATYPES=["name","httpEquiv","charSet","itemProp"];function reduceComponents(headChildrenElements,props){const{inAmpMode}=props;return headChildrenElements.reduce(onlyReactElement,[]).reverse().concat(defaultHead(inAmpMode).reverse()).filter(function unique(){const keys=new Set,tags=new Set,metaTypes=new Set,metaCategories={};return h=>{let isUnique=!0,hasKey=!1;if(h.key&&"number"!=typeof h.key&&h.key.indexOf("$")>0){hasKey=!0;const key=h.key.slice(h.key.indexOf("$")+1);keys.has(key)?isUnique=!1:keys.add(key)}switch(h.type){case"title":case"base":tags.has(h.type)?isUnique=!1:tags.add(h.type);break;case"meta":for(let i=0,len=METATYPES.length;i<len;i++){const metatype=METATYPES[i];if(h.props.hasOwnProperty(metatype))if("charSet"===metatype)metaTypes.has(metatype)?isUnique=!1:metaTypes.add(metatype);else{const category=h.props[metatype],categories=metaCategories[metatype]||new Set;"name"===metatype&&hasKey||!categories.has(category)?(categories.add(category),metaCategories[metatype]=categories):isUnique=!1}}}return isUnique}}()).reverse().map(((c,i)=>{const key=c.key||i;if(process.env.__NEXT_OPTIMIZE_FONTS&&!inAmpMode&&"link"===c.type&&c.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((url=>c.props.href.startsWith(url)))){const newProps={...c.props||{}};return newProps["data-href"]=newProps.href,newProps.href=void 0,newProps["data-optimized-fonts"]=!0,_react.default.cloneElement(c,newProps)}return _react.default.cloneElement(c,{key})}))}const _default=function Head(param){let{children}=param;const ampState=(0,_react.useContext)(_ampcontextsharedruntime.AmpStateContext),headManager=(0,_react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);return _react.default.createElement(_sideeffect.default,{reduceComponentsToState:reduceComponents,headManager,inAmpMode:(0,_ampmode.isInAmpMode)(ampState)},children)};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/side-effect.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return SideEffect}});const _react=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs")._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")),isServer="undefined"==typeof window,useClientOnlyLayoutEffect=isServer?()=>{}:_react.useLayoutEffect,useClientOnlyEffect=isServer?()=>{}:_react.useEffect;function SideEffect(props){const{headManager,reduceComponentsToState}=props;function emitChange(){if(headManager&&headManager.mountedInstances){const headElements=_react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));headManager.updateHead(reduceComponentsToState(headElements,props))}}var _headManager_mountedInstances;isServer&&(null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.add(props.children),emitChange());return useClientOnlyLayoutEffect((()=>{var _headManager_mountedInstances;return null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.add(props.children),()=>{var _headManager_mountedInstances;null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.delete(props.children)}})),useClientOnlyLayoutEffect((()=>(headManager&&(headManager._pendingUpdate=emitChange),()=>{headManager&&(headManager._pendingUpdate=emitChange)}))),useClientOnlyEffect((()=>(headManager&&headManager._pendingUpdate&&(headManager._pendingUpdate(),headManager._pendingUpdate=null),()=>{headManager&&headManager._pendingUpdate&&(headManager._pendingUpdate(),headManager._pendingUpdate=null)}))),null}},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/utils/warn-once.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=_=>{}},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/head.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/head.js")},"../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs":(__unused_webpack_module,exports)=>{"use strict";function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}exports._=exports._interop_require_wildcard=function _interop_require_wildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}}}]);