123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737 |
- var mapDom = document.getElementById('qd30map-cesium');
- var placeholderDom = document.getElementById('loading-placeholder');
- var navContainer = document.getElementById('nav-ui-wrap');
- var navParent = document.getElementById('nav-arrows');
- var navReset = document.getElementById('nav-reset');
- var mapSearchBtn = document.getElementById('map-search');
- var navElements = navParent.getElementsByTagName('button');
- var searchForm = document.getElementById('map-ui-form');
- var appContainer = document.getElementById('map-search');
- var appX = null;
- var appY = null;
- var formX= null;
- var formY = null;
- navElements[0].tabIndex = 3;
- navElements[1].tabIndex = 4;
- navElements[2].tabIndex = 5;
- navElements[3].tabIndex = 6;
- navReset.tabIndex = 7;
- mapSearchBtn.tabIndex = 8;
- for (var i=0; i < navElements.length; i++) {
- navElements[i].addEventListener('mousedown', function(param) {
- switch(param.target.id) {
- case 'nav-up':
- camera.moveUp(100);
- break;
- case 'nav-down':
- camera.moveDown(100);
- break;
- case 'nav-left':
- camera.moveLeft(100);
- break;
- case 'nav-right':
- camera.moveRight(100);
- break;
- }
- });
- navElements[i].addEventListener('keydown', function(param) {
- switch(param.target.id) {
- case 'nav-up':
- if (param.keyCode == 13) {
- camera.moveUp(100);
- }
- break;
- case 'nav-down':
- if (param.keyCode == 13) {
- camera.moveDown(100);
- }
- break;
- case 'nav-left':
- if (param.keyCode == 13) {
- camera.moveLeft(100);
- }
- break;
- case 'nav-right':
- if (param.keyCode == 13) {
- camera.moveRight(100);
- }
- break;
- }
- });
- navReset.onclick = function(param) {
- gotoQD30();
- };
- navReset.onkeyup = function(param) {
- if (param.keyCode == 13) {
- gotoQD30();
- }
- }
- }
- mapSearchBtn.onclick = function() {
- centerForm();
- };
- mapSearchBtn.onkeydown = function(param) {
- if (param.keyCode == 13) {
- centerForm();
- }
- };
- var zoomParent = document.getElementById('zoom');
- var zoomElements = zoomParent.getElementsByTagName('button');
- zoomElements[0].tabIndex = 1;
- zoomElements[1].tabIndex = 2;
- for (var a=0; a < zoomElements.length; a++) {
- zoomElements[a].addEventListener('mousedown', function(param) {
- var y = camera.position.y;
- switch(param.target.id) {
- case 'zoom-in':
- camera.moveForward(250);
- break;
- case 'zoom-out':
- camera.moveBackward(250);
- break;
- }
- });
- zoomElements[a].addEventListener('keydown', function(param) {
- var y = camera.position.y;
- switch(param.target.id) {
- case 'zoom-in':
- if (param.keyCode == 13) {
- camera.moveForward(100);
- }
- break;
- case 'zoom-out':
- if (param.keyCode == 13) {
- camera.moveBackward(100);
- }
- break;
- }
- });
- }
- //To check version
- // console.log(Cesium.VERSION);
- Cesium.BingMapsApi.defaultKey = 'mqrOOSbN2SMpDuWhHx0W~HVi_IW2A0UwRAV1xLIZuTQ~AnSezO-xLZ4_s1rf8ydB6Wf0aRdKtw_znPffJQ9qKbntyOPWFvitPVAvxT0v6dib';
- var viewer = new Cesium.Viewer('qd30map-cesium', {
- animation : false,
- homeButton : false,
- vrButton : false,
- infoBox : true,
- geocoder : false,
- sceneModePicker: false,
- selectionIndicator: true,
- timeline : false,
- navigationHelpButton : false,
- navigationInstructionsInitiallyVisible: false,
- scene3DOnly : false,
- shadows : true,
- terrainShadows : true,
- baseLayerPicker : false
- });
- var camera = viewer.camera;
- var scene = viewer.scene;
- var ellipsoid = scene.globe.ellipsoid;
- var canvas = viewer.canvas;
- var layers = viewer.scene.imageryLayers;
- var globe = viewer.scene.globe;
- globe.imageryLayers.removeAll();
- globe.baseColor = Cesium.Color.fromCssColorString('#f3f3f3');
- var tonerLayer = layers.addImageryProvider(Cesium.createOpenStreetMapImageryProvider({
- url : 'http://tile.stamen.com/toner/'
- }));
- tonerLayer.alpha = 0.2;
- // var terrainProvider = new Cesium.CesiumTerrainProvider({
- // url : '//assets.agi.com/stk-terrain/world',
- // requestVertexNormals: true
- // });
- canvas.setAttribute('tabindex', -1);
- var reset = document.getElementById('nav-reset');
- reset.addEventListener('click', function() {
- gotoQD30();
- });
- var dataSource = Cesium.GeoJsonDataSource.load('/sites/quartierdix30/files/geojson/quartier_fr.json').then(function(data) {
- viewer.dataSources.add(data);
- gotoQD30();
- var entities = data.entities.values;
- for (var i = 0; i < entities.length; i++) {
- var entity = entities[i];
- entity.polygon.outline = true;
- entity.polygon.outlineWidth = 1.2;
- entity.polygon.outlineColor = Cesium.Color.BLACK;
- if (entity.properties.hasOwnProperty('level')) {
- entity.polygon.extrudedHeight = 0.5 * (entity.properties.level * 10);
- }
- if (entity.properties.hasOwnProperty("colour")) {
- if (entity.properties.hasOwnProperty("event")) {
- entity.polygon.material = new Cesium.StripeMaterialProperty({
- evenColor : Cesium.Color.fromCssColorString(entity.properties.colour),
- oddColor : Cesium.Color.BLACK,
- repeat : 10
- });
- } else {
- entity.polygon.material = Cesium.Color.fromCssColorString(entity.properties.colour);
- }
- }
- if (entity.properties.hasOwnProperty("description")) {
- entity.description = '<div>' + entity.properties.description
- + '</div>';
- }
- }
- });
- function gotoQD30() {
- var pos = Cesium.Ellipsoid.WGS84.cartesianToCartographic(new Cesium.Cartesian3(
- 1278149.1996018, -4297423.8092246,
- 4522591.15943));
- pos.latitude = Cesium.Math.toDegrees(pos.latitude);
- pos.longitude = Cesium.Math.toDegrees(pos.longitude);
- viewer.camera.flyTo({
- destination : Cesium.Cartesian3.fromDegrees(pos.longitude, pos.latitude, pos.height),
- orientation : {
- heading : 5.51747,
- pitch : -1.419427,
- roll : 6.2675
- },
- duration: 0.5
- });
- }
- function clearLayers() {
- globe.imageryLayers.removeAll();
- globe.baseColor = new Cesium.Color(0, 0, 0.5, 1);
- }
- function customLayer() {
- globe.imageryLayers.removeAll();
- globe.baseColor = Cesium.Color.fromCssColorString('#f3f3f3');
- var tonerLayer = layers.addImageryProvider(Cesium.createOpenStreetMapImageryProvider({
- url : 'http://tile.stamen.com/toner/'
- }));
- tonerLayer.alpha = 0.2;
- }
- function highlight(chosenColour) {
- for (var j = 0; j < viewer.dataSources.get(0).entities.values.length; j++) {
- var entity = viewer.dataSources.get(0).entities.values[j];
- if (entity.properties.hasOwnProperty('colour')) {
- if (entity.properties.colour.toLowerCase() == chosenColour.toLowerCase()) {
- entity.polygon.material = Cesium.Color.BLACK;
- entity.polygon.outlineWidth = 2.0;
- }
- }
- }
- }
- function colourReset() {
- // for (z = viewer.entities.values.length -1; z >= 0; z--) {
- // if (viewer.entities.values[z].name.substring(0, 16) == 'selectionOutline') {
- // viewer.entities.remove(viewer.entities.values[z]);
- // }
- // }
- for (var j = 0; j < viewer.dataSources.get(0).entities.values.length; j++) {
- var entity = viewer.dataSources.get(0).entities.values[j];
- if (entity.properties.hasOwnProperty('colour')) {
- if (entity.properties.hasOwnProperty("event")) {
- entity.polygon.material = new Cesium.StripeMaterialProperty({
- evenColor : Cesium.Color.fromCssColorString(entity.properties.colour),
- oddColor : Cesium.Color.BLACK,
- repeat : 10
- });
- } else {
- entity.polygon.material = Cesium.Color.fromCssColorString(entity.properties.colour);
- entity.polygon.outlineWidth = 1.2;
- entity.polygon.outlineColor = Cesium.Color.BLACK;
- }
- }
- }
- }
- function centerApp() {
- window.scrollTo(appX, appY);
- }
- function centerForm() {
- window.scrollTo(formX, formY);
- }
- function getPosition(el) {
- var xPos = 0;
- var yPos = 0;
- while (el) {
- if (el.tagName == "BODY") {
- // deal with browser quirks with body/window/document and page scroll
- var xScroll = el.scrollLeft || document.documentElement.scrollLeft;
- var yScroll = el.scrollTop || document.documentElement.scrollTop;
- xPos += (el.offsetLeft - xScroll + el.clientLeft);
- yPos += (el.offsetTop - yScroll + el.clientTop);
- } else {
- // for all other non-BODY elements
- xPos += (el.offsetLeft - el.scrollLeft + el.clientLeft);
- yPos += (el.offsetTop - el.scrollTop + el.clientTop);
- }
- el = el.offsetParent;
- }
- return {
- x: xPos,
- y: yPos
- };
- }
- function getOffset(el) {
- var _x = 0;
- var _y = 0;
- while( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) {
- _x += el.offsetLeft - el.scrollLeft;
- _y += el.offsetTop - el.scrollTop;
- el = el.offsetParent;
- }
- return { top: _y, left: _x };
- }
- function domIsVisible(element) {
- var rect = element.getBoundingClientRect();
- var html = document.documentElement;
- return (
- rect.top >= 0 &&
- rect.left >= 0 &&
- rect.bottom <= (window.innerHeight || html.clientHeight) &&
- rect.right <= (window.innerWidth || html.clientWidth)
- );
- }
- viewer.scene.postRender.addEventListener(function(scene, time) {
- mapDom.style.display = 'inline-block';
- searchForm.style.display = 'inline-block';
- navContainer.style.display = 'block';
- placeholderDom.style.display = 'none';
- });
- window.onload = function() {
- var formPosition = getPosition(searchForm);
- formX = formPosition.x;
- formY = formPosition.y;
- var appPosition = getPosition(appContainer);
- appX = appPosition.x;
- appY = appPosition.y ;
- centerApp();
- var frame = viewer.infoBox.frame;
- var cssLink = frame.contentDocument.createElement('link');
- cssLink.href = Cesium.buildModuleUrl('../../../../css/qd30map.css');
- cssLink.rel = 'stylesheet';
- cssLink.type = 'text/css';
- frame.contentDocument.head.appendChild(cssLink);
- var header = document.getElementById('header');
- var headChilds = header.getElementsByTagName('*');
- for (var c = 0; c < headChilds.length; c++) {
- headChilds[c].tabIndex = -1;
- }
- var qdTitle = document.getElementById('block-quartierdix30-page-title');
- var titleChilds = qdTitle.getElementsByTagName('*');
- for (var d = 0; d < titleChilds.length; d++) {
- titleChilds[d].tabIndex = -1;
- }
- var data = viewer.dataSources.get(0);
- var subBtn = document.getElementById('edit-mapsubmit');
- subBtn.onclick = function(v) {
- v.preventDefault();
- handleSubmit();
- };
- var autoComplete = document.getElementById('ui-id-1');
- autoComplete.onclick = function() {
- handleSubmit();
- };
- autoComplete.onkeydown = function(param) {
- if (param.keyCode == 13) {
- handleSubmit();
- }
- };
- clickHandler = new Cesium.ScreenSpaceEventHandler(scene.canvas);
- clickHandler.setInputAction(function(movement) {
- var pickedObject = scene.pick(movement.position);
- if (Cesium.defined(pickedObject)) {
- for (var i = 0; i < data.entities.values.length; i++) {
- var entity = data.entities.values[i];
- if (entity.properties.nid != undefined) {
- if (entity.properties.nid == pickedObject.id.properties.nid) {
- if (entity.polygon.hierarchy._value.positions.length > 1) {
- exploreStore(entity, data);
- } else {
- gotoQD30();
- }
- }
- }
- }
- }
- }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
- var form = document.getElementById('map-ui-form');
- var anchorElements = form.querySelectorAll('.form-item');
- for (var i = 0; i < anchorElements.length; i++) {
- anchorElements[i].tabIndex = 0;
- }
- for (var k=0; k < anchorElements.length; k++) {
- anchorElements[k].addEventListener('click', function(param) {
- for (var g=0; g < anchorElements.length; g++) {
- anchorElements[g].classList.remove('selected-store');
- }
- var choice = param.target.innerHTML.trim();
- for (var i = 0; i < data.entities.values.length; i++) {
- var entity = data.entities.values[i];
- if (entity.properties.nid != undefined) {
- var formNid = choice.substring(choice.indexOf('d">') + 3, choice.indexOf('</spa'));
- if (formNid == entity.properties.nid) {
- if (entity.polygon.hierarchy._value.positions.length > 1) {
- selectStore(entity, data);
- } else {
- gotoQD30();
- }
- if (!domIsVisible(appContainer)) {
- centerApp();
- }
- this.classList.add('selected-store');
- }
- }
- }
- });
- anchorElements[k].addEventListener('keyup', function(param) {
- for (var g=0; g < anchorElements.length; g++) {
- anchorElements[g].classList.remove('selected-store');
- }
- if (param.keyCode == 13) {
- var choice = param.target.innerHTML.trim();
- for (var i = 0; i < data.entities.values.length; i++) {
- var entity = data.entities.values[i];
- if (entity.properties.nid != undefined) {
- var formNid = choice.substring(choice.indexOf('d">') + 3, choice.indexOf('</spa'));
- if (formNid == entity.properties.nid) {
- if (entity.polygon.hierarchy._value.positions.length > 1) {
- selectStore(entity, data);
- } else {
- gotoQD30();
- }
- if (!domIsVisible(appContainer)) {
- centerApp();
- }
- this.classList.add('selected-store');
- }
- }
- }
- }
- });
- }
- var types = Array.from(document.querySelectorAll('summary > a.details-title'));
- types.forEach(function(type) {
- type.addEventListener('click', function(param) {
- var text = param.srcElement.lastChild.textContent.toLowerCase();
- highlightByType(text, data);
- });
- });
- function handleSubmit() {
- var search = document.getElementById('edit-search');
- var formNid = search.value.replace(/\D+/g, '');
- var length = data.entities.values.length;
- for (var i = 0; i < length; i++) {
- var entity = data.entities.values[i];
- if (entity.properties.nid != undefined) {
- if (formNid == entity.properties.nid) {
- if (entity.polygon.hierarchy._value.positions.length > 1) {
- selectStore(entity, data);
- } else {
- gotoQD30();
- }
- }
- }
- }
- }
- function selectStore(entity, data) {
- var pCoords = entity.polygon.hierarchy.getValue(viewer.clock.currentTime);
- var avgPoint = Math.round(pCoords.positions.length / 2);
- var topPoint = 0;
- for (var xy = 0; xy < pCoords.positions.length - 1; xy++) {
- if (pCoords.positions[xy+1].x > pCoords.positions[xy].x) {
- topPoint = xy;
- }
- }
- var pos = Cesium.Ellipsoid.WGS84.cartesianToCartographic(pCoords.positions[avgPoint]);
- pos.latitude = Cesium.Math.toDegrees(pos.latitude);
- pos.longitude = Cesium.Math.toDegrees(pos.longitude);
- viewer.camera.flyTo({
- destination : Cesium.Cartesian3.fromDegrees(pos.longitude, pos.latitude, 500),
- orientation : {
- heading : 5.51747,
- pitch : -1.419427,
- roll : 6.2675
- },
- duration: 1
- });
- colourReset();
- pCoords.positions.forEach(function(position) {
- position.x += 0.33;
- position.y += 0.33;
- });
- // DEBUGGING => First position is always equal to last position. Attempting removal for troubleshooting purposes
- // pCoords.positions.splice(pCoords.positions.length -1, 1);
- // viewer.entities.add({
- // name : 'selectionOutline',
- // polyline : {
- // positions : pCoords.positions,
- // width : 4,
- // material : new Cesium.PolylineGlowMaterialProperty({
- // glowPower : 0.5,
- // color : Cesium.Color.fromCssColorString('#008B8B'),
- // extrudedHeight : entity.polygon.extrudedHeight + 20
- // })
- // }
- // });
- entity.polygon.material = Cesium.Color.fromCssColorString('#000000');
- entity.polygon.material.outlineColor = Cesium.Color.fromCssColorString('#008B8B');
- entity.polygon.material.outlineWidth = 5;
- viewer.selectedEntity = entity;
- }
- function exploreStore(entity, data) {
- var pCoords = entity.polygon.hierarchy.getValue(viewer.clock.currentTime);
- var cartographic = new Cesium.Cartographic();
- var camHeight = ellipsoid.cartesianToCartographic(camera.position, cartographic).height;
- var avgPoint = Math.round(pCoords.positions.length / 2);
- var pos = Cesium.Ellipsoid.WGS84.cartesianToCartographic(pCoords.positions[avgPoint]);
- pos.latitude = Cesium.Math.toDegrees(pos.latitude);
- pos.longitude = Cesium.Math.toDegrees(pos.longitude);
- viewer.camera.flyTo({
- destination : Cesium.Cartesian3.fromDegrees(pos.longitude, pos.latitude, camHeight),
- orientation : {
- heading : camera.heading
- },
- duration: 1
- });
- colourReset();
- //
- // pCoords.positions.forEach(function(position) {
- // position.x += 0.33;
- // position.y += 0.33;
- // });
- // var selectionOutline = viewer.entities.add({
- // name : 'selectionOutline',
- // polyline : {
- // positions : pCoords.positions,
- // width : 4,
- // material : new Cesium.PolylineGlowMaterialProperty({
- // glowPower : 0.5,
- // color : Cesium.Color.fromCssColorString('#008B8B'),
- // extrudedHeight : entity.polygon.extrudedHeight + 20
- // })
- // }
- // });
- entity.polygon.material = Cesium.Color.fromCssColorString('#000000');
- entity.polygon.material.outlineColor = Cesium.Color.fromCssColorString('#008B8B');
- entity.polygon.material.outlineWidth = 5;
- viewer.selectedEntity = entity;
- }
- function highlightByType(type, data) {
- colourReset();
- // for (z = 0; z < viewer.entities.values.length; z++) {
- // if (viewer.entities.values[z].name.substring(0, 16) == 'selectionOutline') {
- // viewer.entities.remove(viewer.entities.values[z]);
- // }
- // }
- for (var j = 0; j < data.entities.values.length; j++) {
- var entity = data.entities.values[j];
- if (entity.properties.hasOwnProperty('storetypes')) {
- if (entity.properties.storetypes.toLowerCase().match(type)) {
- var pCoords = entity.polygon.hierarchy.getValue(viewer.clock.currentTime);
- matched = true;
- entity.polygon.material = Cesium.Color.fromCssColorString('#000000');
- entity.polygon.material.outlineColor = Cesium.Color.fromCssColorString('#008B8B');
- entity.polygon.material.outlineWidth = 5;
- // viewer.entities.add({
- // name : 'selectionOutline',
- // polyline : {
- // positions : pCoords.positions,
- // width : 4,
- // material : new Cesium.PolylineGlowMaterialProperty({
- // glowPower : 0.5,
- // color : Cesium.Color.fromCssColorString('#008B8B'),
- // extrudedHeight : entity.polygon.extrudedHeight + 20
- // })
- // }
- // });
- }
- }
- }
- }
- //Logic to close all non-target details elements
- var details = Array.from(document.querySelectorAll("details"));
- details.forEach(function(detail) {
- if (detail.constructor.name === 'HTMLDetailsElement') {
- detail.addEventListener('click', function() {
- for (f = 0; f < details.length; f++) {
- details[f].classList.remove('selected-detail');
- }
- this.classList.add('selected-detail');
- subDet = this.querySelectorAll('details');
- for (g = 0; g < subDet.length; g++) {subDet[g].classList.add('selected-detail');}
- closeOthers(this);
- });
- }
- });
- function closeOthers(elem) {
- for (var i = 0; i < details.length; i++) {
- if (!details[i].contains(elem)) {
- var selectedFound = false;
- var elems = details[i].querySelectorAll('*');
- for (z = 0; z < elems.length; z++) {
- if (elems[z].classList.contains('selected-detail') || elems[z].classList.contains('selected-store')) {
- selectedFound = true;
- }
- }
- if (selectedFound == false) {
- details[i].removeAttribute('open');
- }
- } else {
- details[i].setAttribute('open', 'open');
- }
- }
- }
- function getExtentView() {
- var cl2 = new Cesium.Cartesian2(0, 0);
- var leftTop = viewer.scene.camera.pickEllipsoid(cl2, ellipsoid);
- cr2 = new Cesium.Cartesian2(viewer.scene.canvas.width, viewer.scene.canvas.height);
- var rightDown = viewer.scene.camera.pickEllipsoid(cr2, ellipsoid);
- if (leftTop != null && rightDown != null) {
- leftTop = ellipsoid.cartesianToCartographic(leftTop);
- rightDown = ellipsoid.cartesianToCartographic(rightDown);
- return new Cesium.Rectangle(leftTop.longitude, rightDown.latitude, rightDown.longitude, leftTop.latitude);
- } else {//The sky is visible in 3D
- console.log("Sky is visible");
- return null;
- }
- }
- };
- window.onresize = function() {
- var formPosition = getPosition(searchForm);
- formX = formPosition.x;
- formY = formPosition.y;
- var appPosition = getPosition(appContainer);
- appX = appPosition.x;
- appY = appPosition.y;
- };
- (function($, Drupal) {
- Drupal.behaviors.qd30map = {
- attach: function(context, settings) {
- $('.closemenu').on('mouseenter', function() {
- $(this).find('span').show();
- }).on('mouseleave', function() {
- $(this).find('span').hide();
- }).on('click tap', function() {
- $(this).parent().parent().children('div').fadeOut(150);
- $(this).parent().parent().delay(50).animate({width: 'toggle'}, 300);
- if ($(this).parent().hasClass('closeinfo')) {
- infoOpen = false;
- $('.selected').removeClass('selected');
- }
- });
- $('#open-legend').on('click tap', function() {
- $('.map-legend-info').animate({width:'toggle'}, 300);
- $('.map-legend-info > div').delay(150).fadeIn(150);
- });
- }}})(jQuery, Drupal);
- function fade(element) {
- var op = 1; // initial opacity
- var timer = setInterval(function() {
- if (op <= 0.1) {
- clearInterval(timer);
- element.style.display = 'none';
- }
- element.style.opacity = op;
- element.style.filter = 'alpha(opacity=' + op * 100 + ")";
- op -= op * 0.1;
- }, 150);
- }
|