Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/vue/portal/dist/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/vue/portal/dist/vue.portal.bundle.js.map |
{"version":3,"file":"vue.portal.bundle.js","sources":["../src/vue.portal.js"],"sourcesContent":["\n/*!\n * portal-vue © Thorsten L?nborg, 2019\n *\n * Version: 2.1.7\n *\n * LICENCE: MIT\n *\n * https://github.com/linusborg/portal-vue\n *\n*/\n\n/**\n * Modify list for integration with Bitrix Framework:\n * - remove default export and change install function to plugin variable for work in Bitrix CoreJS extensions;\n */\n\nimport {VueVendor as Vue} from \"ui.vue\";\n\nfunction _typeof(obj) {\n\tif (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n\t\t_typeof = function (obj) {\n\t\t\treturn typeof obj;\n\t\t};\n\t} else {\n\t\t_typeof = function (obj) {\n\t\t\treturn obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n\t\t};\n\t}\n\n\treturn _typeof(obj);\n}\n\nfunction _toConsumableArray(arr) {\n\treturn _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n\tif (Array.isArray(arr)) {\n\t\tfor (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n\t\treturn arr2;\n\t}\n}\n\nfunction _iterableToArray(iter) {\n\tif (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n\tthrow new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nvar inBrowser = typeof window !== 'undefined';\nfunction freeze(item) {\n\tif (Array.isArray(item) || _typeof(item) === 'object') {\n\t\treturn Object.freeze(item);\n\t}\n\n\treturn item;\n}\nfunction combinePassengers(transports) {\n\tvar slotProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\treturn transports.reduce(function (passengers, transport) {\n\t\tvar temp = transport.passengers[0];\n\t\tvar newPassengers = typeof temp === 'function' ? temp(slotProps) : transport.passengers;\n\t\treturn passengers.concat(newPassengers);\n\t}, []);\n}\nfunction stableSort(array, compareFn) {\n\treturn array.map(function (v, idx) {\n\t\treturn [idx, v];\n\t}).sort(function (a, b) {\n\t\treturn compareFn(a[1], b[1]) || a[0] - b[0];\n\t}).map(function (c) {\n\t\treturn c[1];\n\t});\n}\nfunction pick(obj, keys) {\n\treturn keys.reduce(function (acc, key) {\n\t\tif (obj.hasOwnProperty(key)) {\n\t\t\tacc[key] = obj[key];\n\t\t}\n\n\t\treturn acc;\n\t}, {});\n}\n\nvar transports = {};\nvar targets = {};\nvar sources = {};\nvar Wormhole = Vue.extend({\n\tdata: function data() {\n\t\treturn {\n\t\t\ttransports: transports,\n\t\t\ttargets: targets,\n\t\t\tsources: sources,\n\t\t\ttrackInstances: inBrowser\n\t\t};\n\t},\n\tmethods: {\n\t\topen: function open(transport) {\n\t\t\tif (!inBrowser) return;\n\t\t\tvar to = transport.to,\n\t\t\t\tfrom = transport.from,\n\t\t\t\tpassengers = transport.passengers,\n\t\t\t\t_transport$order = transport.order,\n\t\t\t\torder = _transport$order === void 0 ? Infinity : _transport$order;\n\t\t\tif (!to || !from || !passengers) return;\n\t\t\tvar newTransport = {\n\t\t\t\tto: to,\n\t\t\t\tfrom: from,\n\t\t\t\tpassengers: freeze(passengers),\n\t\t\t\torder: order\n\t\t\t};\n\t\t\tvar keys = Object.keys(this.transports);\n\n\t\t\tif (keys.indexOf(to) === -1) {\n\t\t\t\tVue.set(this.transports, to, []);\n\t\t\t}\n\n\t\t\tvar currentIndex = this.$_getTransportIndex(newTransport); // Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n\n\t\t\tvar newTransports = this.transports[to].slice(0);\n\n\t\t\tif (currentIndex === -1) {\n\t\t\t\tnewTransports.push(newTransport);\n\t\t\t} else {\n\t\t\t\tnewTransports[currentIndex] = newTransport;\n\t\t\t}\n\n\t\t\tthis.transports[to] = stableSort(newTransports, function (a, b) {\n\t\t\t\treturn a.order - b.order;\n\t\t\t});\n\t\t},\n\t\tclose: function close(transport) {\n\t\t\tvar force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\t\tvar to = transport.to,\n\t\t\t\tfrom = transport.from;\n\t\t\tif (!to || !from && force === false) return;\n\n\t\t\tif (!this.transports[to]) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (force) {\n\t\t\t\tthis.transports[to] = [];\n\t\t\t} else {\n\t\t\t\tvar index = this.$_getTransportIndex(transport);\n\n\t\t\t\tif (index >= 0) {\n\t\t\t\t\t// Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n\t\t\t\t\tvar newTransports = this.transports[to].slice(0);\n\t\t\t\t\tnewTransports.splice(index, 1);\n\t\t\t\t\tthis.transports[to] = newTransports;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tregisterTarget: function registerTarget(target, vm, force) {\n\t\t\tif (!inBrowser) return;\n\n\t\t\tif (this.trackInstances && !force && this.targets[target]) {\n\t\t\t\tconsole.warn(\"[portal-vue]: Target \".concat(target, \" already exists\"));\n\t\t\t}\n\n\t\t\tthis.$set(this.targets, target, Object.freeze([vm]));\n\t\t},\n\t\tunregisterTarget: function unregisterTarget(target) {\n\t\t\tthis.$delete(this.targets, target);\n\t\t},\n\t\tregisterSource: function registerSource(source, vm, force) {\n\t\t\tif (!inBrowser) return;\n\n\t\t\tif (this.trackInstances && !force && this.sources[source]) {\n\t\t\t\tconsole.warn(\"[portal-vue]: source \".concat(source, \" already exists\"));\n\t\t\t}\n\n\t\t\tthis.$set(this.sources, source, Object.freeze([vm]));\n\t\t},\n\t\tunregisterSource: function unregisterSource(source) {\n\t\t\tthis.$delete(this.sources, source);\n\t\t},\n\t\thasTarget: function hasTarget(to) {\n\t\t\treturn !!(this.targets[to] && this.targets[to][0]);\n\t\t},\n\t\thasSource: function hasSource(to) {\n\t\t\treturn !!(this.sources[to] && this.sources[to][0]);\n\t\t},\n\t\thasContentFor: function hasContentFor(to) {\n\t\t\treturn !!this.transports[to] && !!this.transports[to].length;\n\t\t},\n\t\t// Internal\n\t\t$_getTransportIndex: function $_getTransportIndex(_ref) {\n\t\t\tvar to = _ref.to,\n\t\t\t\tfrom = _ref.from;\n\n\t\t\tfor (var i in this.transports[to]) {\n\t\t\t\tif (this.transports[to][i].from === from) {\n\t\t\t\t\treturn +i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn -1;\n\t\t}\n\t}\n});\nvar wormhole = new Wormhole(transports);\n\nvar _id = 1;\nvar Portal = Vue.extend({\n\tname: 'portal',\n\tprops: {\n\t\tdisabled: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn String(_id++);\n\t\t\t}\n\t\t},\n\t\torder: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0\n\t\t},\n\t\tslim: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tslotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'DIV'\n\t\t},\n\t\tto: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn String(Math.round(Math.random() * 10000000));\n\t\t\t}\n\t\t}\n\t},\n\tcreated: function created() {\n\t\tvar _this = this;\n\n\t\tthis.$nextTick(function () {\n\t\t\twormhole.registerSource(_this.name, _this);\n\t\t});\n\t},\n\tmounted: function mounted() {\n\t\tif (!this.disabled) {\n\t\t\tthis.sendUpdate();\n\t\t}\n\t},\n\tupdated: function updated() {\n\t\tif (this.disabled) {\n\t\t\tthis.clear();\n\t\t} else {\n\t\t\tthis.sendUpdate();\n\t\t}\n\t},\n\tbeforeDestroy: function beforeDestroy() {\n\t\twormhole.unregisterSource(this.name);\n\t\tthis.clear();\n\t},\n\twatch: {\n\t\tto: function to(newValue, oldValue) {\n\t\t\toldValue && oldValue !== newValue && this.clear(oldValue);\n\t\t\tthis.sendUpdate();\n\t\t}\n\t},\n\tmethods: {\n\t\tclear: function clear(target) {\n\t\t\tvar closer = {\n\t\t\t\tfrom: this.name,\n\t\t\t\tto: target || this.to\n\t\t\t};\n\t\t\twormhole.close(closer);\n\t\t},\n\t\tnormalizeSlots: function normalizeSlots() {\n\t\t\treturn this.$scopedSlots.default ? [this.$scopedSlots.default] : this.$slots.default;\n\t\t},\n\t\tnormalizeOwnChildren: function normalizeOwnChildren(children) {\n\t\t\treturn typeof children === 'function' ? children(this.slotProps) : children;\n\t\t},\n\t\tsendUpdate: function sendUpdate() {\n\t\t\tvar slotContent = this.normalizeSlots();\n\n\t\t\tif (slotContent) {\n\t\t\t\tvar transport = {\n\t\t\t\t\tfrom: this.name,\n\t\t\t\t\tto: this.to,\n\t\t\t\t\tpassengers: _toConsumableArray(slotContent),\n\t\t\t\t\torder: this.order\n\t\t\t\t};\n\t\t\t\twormhole.open(transport);\n\t\t\t} else {\n\t\t\t\tthis.clear();\n\t\t\t}\n\t\t}\n\t},\n\trender: function render(h) {\n\t\tvar children = this.$slots.default || this.$scopedSlots.default || [];\n\t\tvar Tag = this.tag;\n\n\t\tif (children && this.disabled) {\n\t\t\treturn children.length <= 1 && this.slim ? this.normalizeOwnChildren(children)[0] : h(Tag, [this.normalizeOwnChildren(children)]);\n\t\t} else {\n\t\t\treturn this.slim ? h() : h(Tag, {\n\t\t\t\tclass: {\n\t\t\t\t\t'v-portal': true\n\t\t\t\t},\n\t\t\t\tstyle: {\n\t\t\t\t\tdisplay: 'none'\n\t\t\t\t},\n\t\t\t\tkey: 'v-portal-placeholder'\n\t\t\t});\n\t\t}\n\t}\n});\n\nvar PortalTarget = Vue.extend({\n\tname: 'portalTarget',\n\tprops: {\n\t\tmultiple: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\tname: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\tslim: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\tslotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'div'\n\t\t},\n\t\ttransition: {\n\t\t\ttype: [String, Object, Function]\n\t\t}\n\t},\n\tdata: function data() {\n\t\treturn {\n\t\t\ttransports: wormhole.transports,\n\t\t\tfirstRender: true\n\t\t};\n\t},\n\tcreated: function created() {\n\t\tvar _this = this;\n\n\t\tthis.$nextTick(function () {\n\t\t\twormhole.registerTarget(_this.name, _this);\n\t\t});\n\t},\n\twatch: {\n\t\townTransports: function ownTransports() {\n\t\t\tthis.$emit('change', this.children().length > 0);\n\t\t},\n\t\tname: function name(newVal, oldVal) {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * This should warn as well ...\n\t\t\t */\n\t\t\twormhole.unregisterTarget(oldVal);\n\t\t\twormhole.registerTarget(newVal, this);\n\t\t}\n\t},\n\tmounted: function mounted() {\n\t\tvar _this2 = this;\n\n\t\tif (this.transition) {\n\t\t\tthis.$nextTick(function () {\n\t\t\t\t// only when we have a transition, because it causes a re-render\n\t\t\t\t_this2.firstRender = false;\n\t\t\t});\n\t\t}\n\t},\n\tbeforeDestroy: function beforeDestroy() {\n\t\twormhole.unregisterTarget(this.name);\n\t},\n\tcomputed: {\n\t\townTransports: function ownTransports() {\n\t\t\tvar transports = this.transports[this.name] || [];\n\n\t\t\tif (this.multiple) {\n\t\t\t\treturn transports;\n\t\t\t}\n\n\t\t\treturn transports.length === 0 ? [] : [transports[transports.length - 1]];\n\t\t},\n\t\tpassengers: function passengers() {\n\t\t\treturn combinePassengers(this.ownTransports, this.slotProps);\n\t\t}\n\t},\n\tmethods: {\n\t\t// can't be a computed prop because it has to \"react\" to $slot changes.\n\t\tchildren: function children() {\n\t\t\treturn this.passengers.length !== 0 ? this.passengers : this.$scopedSlots.default ? this.$scopedSlots.default(this.slotProps) : this.$slots.default || [];\n\t\t},\n\t\t// can't be a computed prop because it has to \"react\" to this.children().\n\t\tnoWrapper: function noWrapper() {\n\t\t\tvar noWrapper = this.slim && !this.transition;\n\n\t\t\tif (noWrapper && this.children().length > 1) {\n\t\t\t\tconsole.warn('[portal-vue]: PortalTarget with `slim` option received more than one child element.');\n\t\t\t}\n\n\t\t\treturn noWrapper;\n\t\t}\n\t},\n\trender: function render(h) {\n\t\tvar noWrapper = this.noWrapper();\n\t\tvar children = this.children();\n\t\tvar Tag = this.transition || this.tag;\n\t\treturn noWrapper ? children[0] : this.slim && !Tag ? h() : h(Tag, {\n\t\t\tprops: {\n\t\t\t\t// if we have a transition component, pass the tag if it exists\n\t\t\t\ttag: this.transition && this.tag ? this.tag : undefined\n\t\t\t},\n\t\t\tclass: {\n\t\t\t\t'vue-portal-target': true\n\t\t\t}\n\t\t}, children);\n\t}\n});\n\nvar _id$1 = 0;\nvar portalProps = ['disabled', 'name', 'order', 'slim', 'slotProps', 'tag', 'to'];\nvar targetProps = ['multiple', 'transition'];\nvar MountingPortal = Vue.extend({\n\tname: 'MountingPortal',\n\tinheritAttrs: false,\n\tprops: {\n\t\tappend: {\n\t\t\ttype: [Boolean, String]\n\t\t},\n\t\tbail: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tmountTo: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\t// Portal\n\t\tdisabled: {\n\t\t\ttype: Boolean\n\t\t},\n\t\t// name for the portal\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn 'mounted_' + String(_id$1++);\n\t\t\t}\n\t\t},\n\t\torder: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0\n\t\t},\n\t\tslim: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tslotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'DIV'\n\t\t},\n\t\t// name for the target\n\t\tto: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn String(Math.round(Math.random() * 10000000));\n\t\t\t}\n\t\t},\n\t\t// Target\n\t\tmultiple: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\ttargetSlim: {\n\t\t\ttype: Boolean\n\t\t},\n\t\ttargetSlotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttargetTag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'div'\n\t\t},\n\t\ttransition: {\n\t\t\ttype: [String, Object, Function]\n\t\t}\n\t},\n\tcreated: function created() {\n\t\tif (typeof document === 'undefined') return;\n\t\tvar el = document.querySelector(this.mountTo);\n\n\t\tif (!el) {\n\t\t\tconsole.error(\"[portal-vue]: Mount Point '\".concat(this.mountTo, \"' not found in document\"));\n\t\t\treturn;\n\t\t}\n\n\t\tvar props = this.$props; // Target already exists\n\n\t\tif (wormhole.targets[props.name]) {\n\t\t\tif (props.bail) {\n\t\t\t\tconsole.warn(\"[portal-vue]: Target \".concat(props.name, \" is already mounted.\\n Aborting because 'bail: true' is set\"));\n\t\t\t} else {\n\t\t\t\tthis.portalTarget = wormhole.targets[props.name];\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvar append = props.append;\n\n\t\tif (append) {\n\t\t\tvar type = typeof append === 'string' ? append : 'DIV';\n\t\t\tvar mountEl = document.createElement(type);\n\t\t\tel.appendChild(mountEl);\n\t\t\tel = mountEl;\n\t\t} // get props for target from $props\n\t\t// we have to rename a few of them\n\n\n\t\tvar _props = pick(this.$props, targetProps);\n\n\t\t_props.slim = this.targetSlim;\n\t\t_props.tag = this.targetTag;\n\t\t_props.slotProps = this.targetSlotProps;\n\t\t_props.name = this.to;\n\t\tthis.portalTarget = new PortalTarget({\n\t\t\tel: el,\n\t\t\tparent: this.$parent || this,\n\t\t\tpropsData: _props\n\t\t});\n\t},\n\tbeforeDestroy: function beforeDestroy() {\n\t\tvar target = this.portalTarget;\n\n\t\tif (this.append) {\n\t\t\tvar el = target.$el;\n\t\t\tel.parentNode.removeChild(el);\n\t\t}\n\n\t\ttarget.$destroy();\n\t},\n\trender: function render(h) {\n\t\tif (!this.portalTarget) {\n\t\t\tconsole.warn(\"[portal-vue] Target wasn't mounted\");\n\t\t\treturn h();\n\t\t} // if there's no \"manual\" scoped slot, so we create a <Portal> ourselves\n\n\n\t\tif (!this.$scopedSlots.manual) {\n\t\t\tvar props = pick(this.$props, portalProps);\n\t\t\treturn h(Portal, {\n\t\t\t\tprops: props,\n\t\t\t\tattrs: this.$attrs,\n\t\t\t\ton: this.$listeners,\n\t\t\t\tscopedSlots: this.$scopedSlots\n\t\t\t}, this.$slots.default);\n\t\t} // else, we render the scoped slot\n\n\n\t\tvar content = this.$scopedSlots.manual({\n\t\t\tto: this.to\n\t\t}); // if user used <template> for the scoped slot\n\t\t// content will be an array\n\n\t\tif (Array.isArray(content)) {\n\t\t\tcontent = content[0];\n\t\t}\n\n\t\tif (!content) return h();\n\t\treturn content;\n\t}\n});\n\nfunction install(Vue$$1) {\n\tvar options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\tVue$$1.component(options.portalName || 'Portal', Portal);\n\tVue$$1.component(options.portalTargetName || 'PortalTarget', PortalTarget);\n\tVue$$1.component(options.MountingPortalName || 'MountingPortal', MountingPortal);\n}\n\nvar PortalVue = {install};\n\nexport { PortalVue, Portal, PortalTarget, MountingPortal, wormhole as Wormhole };"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_nonIterableSpread","Array","isArray","i","arr2","length","iter","Object","toString","call","from","TypeError","inBrowser","window","freeze","item","combinePassengers","transports","slotProps","arguments","undefined","reduce","passengers","transport","temp","newPassengers","concat","stableSort","array","compareFn","map","v","idx","sort","a","b","c","pick","keys","acc","key","hasOwnProperty","targets","sources","Wormhole","Vue","extend","data","trackInstances","methods","open","to","_transport$order","order","Infinity","newTransport","indexOf","set","currentIndex","$_getTransportIndex","newTransports","slice","push","close","force","index","splice","registerTarget","target","vm","console","warn","$set","unregisterTarget","$delete","registerSource","source","unregisterSource","hasTarget","hasSource","hasContentFor","_ref","wormhole","_id","Portal","name","props","disabled","type","Boolean","String","default","_default","Number","slim","tag","Math","round","random","created","_this","$nextTick","mounted","sendUpdate","updated","clear","beforeDestroy","watch","newValue","oldValue","closer","normalizeSlots","$scopedSlots","$slots","normalizeOwnChildren","children","slotContent","render","h","Tag","class","style","display","PortalTarget","multiple","required","transition","Function","firstRender","ownTransports","$emit","newVal","oldVal","_this2","computed","noWrapper","_id$1","portalProps","targetProps","MountingPortal","inheritAttrs","append","bail","mountTo","targetSlim","targetSlotProps","targetTag","document","el","querySelector","error","$props","portalTarget","mountEl","createElement","appendChild","_props","parent","$parent","propsData","$el","parentNode","removeChild","$destroy","manual","attrs","$attrs","on","$listeners","scopedSlots","content","install","Vue$$1","options","component","portalName","portalTargetName","MountingPortalName","PortalVue"],"mappings":";;;;CACA;;;;;;;;;;;CAkBA,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;CACrB,MAAI,OAAOC,MAAP,KAAkB,UAAlB,IAAgC,oBAAOA,MAAM,CAACC,QAAd,MAA2B,QAA/D,EAAyE;CACxEH,IAAAA,OAAO,GAAG,iBAAUC,GAAV,EAAe;CACxB,iCAAcA,GAAd;CACA,KAFD;CAGA,GAJD,MAIO;CACND,IAAAA,OAAO,GAAG,iBAAUC,GAAV,EAAe;CACxB,aAAOA,GAAG,IAAI,OAAOC,MAAP,KAAkB,UAAzB,IAAuCD,GAAG,CAACG,WAAJ,KAAoBF,MAA3D,IAAqED,GAAG,KAAKC,MAAM,CAACG,SAApF,GAAg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