v20200906
authorkilian <ksaffran@dks.lu>
Mon, 7 Sep 2020 06:07:31 +0000 (08:07 +0200)
committerkilian <ksaffran@dks.lu>
Mon, 7 Sep 2020 06:07:31 +0000 (08:07 +0200)
65 files changed:
.gitignore
desktopapp/img/POT-logo.ico [new file with mode: 0644]
desktopapp/img/POT-logo.png [new file with mode: 0644]
desktopapp/index.html [new file with mode: 0644]
desktopapp/main.js [new file with mode: 0644]
desktopapp/package-lock.json [new file with mode: 0644]
desktopapp/package.json [new file with mode: 0644]
install/CGV.docx [new file with mode: 0644]
install/CGV.pdf [new file with mode: 0644]
install/CGV.rtf [new file with mode: 0644]
install/Contrat de Maintenance logiciel.docx [new file with mode: 0644]
install/create_setup_windows.pl [new file with mode: 0644]
install/macos/Contents/Info.plist [new file with mode: 0644]
install/macos/Contents/PkgInfo [new file with mode: 0644]
install/macos/DSStore [new file with mode: 0644]
install/macos/Distribution.xml [new file with mode: 0644]
install/macos/applauncher [new file with mode: 0644]
install/macos/icons/creorga.icns [new file with mode: 0644]
install/macos/pkg-dmg [new file with mode: 0644]
install/macos/scripts/preinstall [new file with mode: 0644]
install/windows/icons/Install-Icon.ico [new file with mode: 0644]
install/windows/icons/Install-Icon.png [new file with mode: 0644]
install/windows/icons/creorga_setup.png [new file with mode: 0644]
install/windows/icons/creorga_uninstall.png [new file with mode: 0644]
install/windows/pot_setup.iss [new file with mode: 0644]
install/windows/pot_setup_32bit.iss [new file with mode: 0644]
install/windows/pot_setup_64bit.iss [new file with mode: 0644]
install/windows/pot_update.iss [new file with mode: 0644]
install/windows/potbanner.bmp [new file with mode: 0644]
install/windows/wizpot.bmp [new file with mode: 0644]
install/windows/wizpot1.bmp [new file with mode: 0644]
install/windows/wizpotsmall.bmp [new file with mode: 0644]
website/app/db.cgi
website/app/index.cgi
website/app/lib/POT/Period.pm
website/app/lib/POT/Report.pm
website/app/lib/POT/Staff.pm
website/app/lib/POT/TimeTracker.pm [new file with mode: 0644]
website/app/lib/dksdb.pm
website/app/lib/session.pm
website/app/report.cgi
website/app/static/css/fonts/pot.svg
website/app/static/css/fonts/pot.ttf
website/app/static/css/fonts/pot.woff
website/app/static/css/icons.css
website/app/static/js/dataform.js
website/app/tmpl/block/dlgstaffperioddays.tt
website/app/tmpl/block/dlgstaffpointages.tt [new file with mode: 0644]
website/app/tmpl/index.tt
website/app/tmpl/login.tt
website/app/tmpl/module/admin/pnl_basedata.tt
website/app/tmpl/module/company/pnl_basedata.tt
website/app/tmpl/module/index.tt
website/app/tmpl/module/periods.tt
website/app/tmpl/module/periods/reportperiod.js
website/app/tmpl/module/periods/staffperiodweeks.js
website/app/tmpl/module/periods/tlb_staffperiodweeks.tt
website/app/tmpl/module/staff.tt
website/app/tmpl/module/staff/pnl_basedata.tt
website/app/tmpl/module/staff/staffcontract.js
website/app/tmpl/module/staff/staffperiods.js
website/app/tmpl/module/timetrackers/index.js [deleted file]
website/app/tmpl/module/timetrackers/index.tt [deleted file]
website/app/tmpl/module/workplans/workplans.js
website/index.html

index f90a433..6bdb0de 100644 (file)
@@ -6,4 +6,7 @@ website/app/lib/perl5/*
 website/appphp/data/output/*
 website/appphp/data/tmp/*
 website/appphp/tools/*
-website/app/test.html
\ No newline at end of file
+website/app/test.html
+website/downloads
+desktopapp/node_modules
+release-builds
\ No newline at end of file
diff --git a/desktopapp/img/POT-logo.ico b/desktopapp/img/POT-logo.ico
new file mode 100644 (file)
index 0000000..f731cb0
Binary files /dev/null and b/desktopapp/img/POT-logo.ico differ
diff --git a/desktopapp/img/POT-logo.png b/desktopapp/img/POT-logo.png
new file mode 100644 (file)
index 0000000..9e0e71a
Binary files /dev/null and b/desktopapp/img/POT-logo.png differ
diff --git a/desktopapp/index.html b/desktopapp/index.html
new file mode 100644 (file)
index 0000000..37abca4
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <meta content="width=device-width, initial-scale=1.0"
+        name="viewport">
+  <title>Local System Configuration</title>
+</head>
+<body>
+</body>
+</html>
diff --git a/desktopapp/main.js b/desktopapp/main.js
new file mode 100644 (file)
index 0000000..b258faa
--- /dev/null
@@ -0,0 +1,180 @@
+// Modules to control application life and create native browser window
+const {app,shell, BrowserWindow, globalShortcut} = require('electron')
+const path = require('path')
+const os = require('os')
+const fs = require('fs')
+const url = require('url')
+const {ipcMain} = require('electron')
+
+// var child = require('child_process').execFile
+// const machineUuid = require("machine-uuid")
+// var { spawn } = require('child_process');
+//var { spawn } = require('child_process').execFile;
+// Keep a global reference of the window object, if you don't, the window will
+// be closed automatically when the JavaScript object is garbage collected.
+let mainWindow
+
+function createWindow () {
+  // Create the browser window.
+  
+
+  let executablePath = "";
+  let parameters = [];
+  let appcfg = localcfg();
+  //console.log(app.getAppPath());
+  //console.log(app.getVersion());
+  //console.log(app.getLocale());
+  //console.log(os.platform());
+  //console.log(app.getName());
+  //machineUuid().then((uuid)=>console.log(uuid))
+  //console.log(os);
+  //console.log(parameters);
+  let ua = app.getName() + '/' + app.getVersion() + '-' + os.type() + '/' + os.release() + '/' + os.arch
+  mainWindow = new BrowserWindow({
+    show: false,
+    icon: __dirname + '/img/POT-logo.png',
+    minWidth: 1260,
+    minHeight: 720,
+    title: "POT",
+    backgroundColor: "#fff",
+     webPreferences: {
+       //plugins: true
+    //   nodeIntegration: true
+     }
+  })
+  const glshort = globalShortcut.register('CommandOrControl+Shift+I', () => {
+    //console.log('CommandOrControl+X is pressed')
+    mainWindow.webContents.openDevTools({detached: true});
+  })
+
+  if (!appcfg){
+    appcfg ={
+      host : "http://localhost/app/",
+      type : "remote"
+    };
+  }
+  // if (appcfg){
+  //   if (appcfg.type == "standalone"){
+  //     console.log("Start Child");
+  //     executablePath = appcfg.serverpath;
+  //     parameters = appcfg.serverparams;
+  //     child(executablePath, parameters, function(err, data) {
+        
+  //       if(err){
+  //         console.error('stderr',err);
+  //       } else {
+  //         console.log("child started");
+  //       } 
+  //     });
+  //   } else if (appcfg.type == "server"){
+  //     console.log("Start Spawned");
+  //     executablePath = appcfg.serverpath;
+  //     parameters = appcfg.serverparams;
+  //     const subprocess = spawn(executablePath,parameters,{ detached: true, stdio: 'ignore'});
+  //     subprocess.unref();
+  //   } 
+  // }
+  //console.log(appcfg.host)
+  // and load the index.html of the app.
+  console.log("LOAD",appcfg.host)
+  mainWindow.loadURL(appcfg.host,{userAgent: ua})
+  mainWindow.setMenu(null)
+  mainWindow.maximize()
+  mainWindow.webContents.session.on('will-download', (event, item, webContents) => {
+    //console.log("Download-URL:" + item.getURL())
+    
+    let query = url.parse(item.getURL()).query;
+    let filename = query.substring(query.lastIndexOf('%2F')+3);
+    //console.log(filename)
+    var savepath=app.getPath("temp") + '/' + filename
+    //var actionurl = item.getURL();
+    //console.log(savepath)
+    if (fs.existsSync(savepath)) {
+      fs.unlink(savepath,function(err){
+        if(err) return console.log(err);
+        //console.log('file deleted successfully');
+      });
+    }
+    item.setSavePath(savepath);
+    item.on('updated', (event, state) => {
+    if (state === 'interrupted') {
+      //console.log('Download is interrupted but can be resumed')
+
+    } 
+    else if (state === 'progressing') {
+      if (item.isPaused()) {
+        //console.log('Download is paused')
+      } else {
+        //console.log(`Received bytes: ${item.getReceivedBytes()}`)
+      }
+    }
+    })
+    item.once('done', (event, state) => {
+      if (state === 'completed') {
+        //let tmpurl = url.parse(actionurl)
+        shell.openExternal('file://' + savepath)
+      } else {
+        console.log(`Download failed: ${state}`)
+      }
+    })
+  })
+  mainWindow.webContents.on('new-window', (event, url, frameName, disposition, options, additionalFeatures) => {
+    //if (frameName === 'modal') {
+      // open window as modal
+      event.preventDefault()
+      Object.assign(options, {
+        // modal: true,
+        parent: mainWindow,
+        
+      })
+      event.newGuest = new BrowserWindow(options)
+      event.newGuest.setMenu(null)
+      event.newGuest.loadURL(url,{userAgent: ua})
+    //}
+  })
+  mainWindow.show()
+  mainWindow.on('closed', function () {
+    mainWindow = null
+  })
+
+}
+
+function localcfg(){
+  var data = null;
+  if (os.platform() == "darwin"){
+    ppath = os.homedir() + '/Library/Application Support/' + app.getName()+ '/';
+  } else if (os.platform() == "win32") {
+    ppath = os.homedir() + '/AppData/Roaming/'+ app.getName() +'/';
+  }
+
+  if (fs.existsSync(ppath  + app.getName() +".json")){
+
+    var data = fs.readFileSync(ppath + app.getName() +".json", 'utf-8');
+    if (data.startsWith("{") || data.startsWith("[")){
+        data = JSON.parse(data);
+    }
+    return data;
+  } else {
+    appcfg ={
+      host : "http://localhost/app/",
+      type : "remote"
+    };
+    fs.writeFileSync(ppath + app.getName() + ".json",JSON.stringify(appcfg), 'utf-8');
+  }
+  return data;
+}
+
+app.on('ready', createWindow)
+
+app.on('window-all-closed', function () {
+    globalShortcut.unregisterAll()
+    app.quit()
+})
+
+app.on('activate', function () {
+  if (mainWindow === null) {
+    createWindow()
+  }
+})
+
+
diff --git a/desktopapp/package-lock.json b/desktopapp/package-lock.json
new file mode 100644 (file)
index 0000000..d406936
--- /dev/null
@@ -0,0 +1,1471 @@
+{
+  "name": "POT",
+  "version": "1.0.0",
+  "lockfileVersion": 1,
+  "requires": true,
+  "dependencies": {
+    "@electron/get": {
+      "version": "1.12.2",
+      "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.12.2.tgz",
+      "integrity": "sha512-vAuHUbfvBQpYTJ5wB7uVIDq5c/Ry0fiTBMs7lnEYAo/qXXppIVcWdfBr57u6eRnKdVso7KSiH6p/LbQAG6Izrg==",
+      "dev": true,
+      "requires": {
+        "debug": "^4.1.1",
+        "env-paths": "^2.2.0",
+        "fs-extra": "^8.1.0",
+        "global-agent": "^2.0.2",
+        "global-tunnel-ng": "^2.7.1",
+        "got": "^9.6.0",
+        "progress": "^2.0.3",
+        "sanitize-filename": "^1.6.2",
+        "sumchecker": "^3.0.1"
+      }
+    },
+    "@sindresorhus/is": {
+      "version": "0.14.0",
+      "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz",
+      "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==",
+      "dev": true
+    },
+    "@szmarczak/http-timer": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",
+      "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==",
+      "dev": true,
+      "requires": {
+        "defer-to-connect": "^1.0.1"
+      }
+    },
+    "@types/glob": {
+      "version": "7.1.3",
+      "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz",
+      "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "@types/minimatch": "*",
+        "@types/node": "*"
+      }
+    },
+    "@types/minimatch": {
+      "version": "3.0.3",
+      "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
+      "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==",
+      "dev": true,
+      "optional": true
+    },
+    "@types/node": {
+      "version": "12.12.54",
+      "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.54.tgz",
+      "integrity": "sha512-ge4xZ3vSBornVYlDnk7yZ0gK6ChHf/CHB7Gl1I0Jhah8DDnEQqBzgohYG4FX4p81TNirSETOiSyn+y1r9/IR6w==",
+      "dev": true
+    },
+    "@types/yauzl": {
+      "version": "2.9.1",
+      "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
+      "integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0rOrcd9EjA==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "@types/node": "*"
+      }
+    },
+    "asar": {
+      "version": "3.0.3",
+      "resolved": "https://registry.npmjs.org/asar/-/asar-3.0.3.tgz",
+      "integrity": "sha512-k7zd+KoR+n8pl71PvgElcoKHrVNiSXtw7odKbyNpmgKe7EGRF9Pnu3uLOukD37EvavKwVFxOUpqXTIZC5B5Pmw==",
+      "dev": true,
+      "requires": {
+        "@types/glob": "^7.1.1",
+        "chromium-pickle-js": "^0.2.0",
+        "commander": "^5.0.0",
+        "glob": "^7.1.6",
+        "minimatch": "^3.0.4"
+      }
+    },
+    "at-least-node": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
+      "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
+      "dev": true
+    },
+    "author-regex": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/author-regex/-/author-regex-1.0.0.tgz",
+      "integrity": "sha1-0IiFvmubv5Q5/gh8dihyRfCoFFA=",
+      "dev": true
+    },
+    "balanced-match": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
+      "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
+      "dev": true
+    },
+    "base64-js": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
+      "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==",
+      "dev": true
+    },
+    "bluebird": {
+      "version": "3.7.2",
+      "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
+      "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
+      "dev": true
+    },
+    "boolean": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.1.tgz",
+      "integrity": "sha512-HRZPIjPcbwAVQvOTxR4YE3o8Xs98NqbbL1iEZDCz7CL8ql0Lt5iOyJFxfnAB0oFs8Oh02F/lLlg30Mexv46LjA==",
+      "dev": true,
+      "optional": true
+    },
+    "brace-expansion": {
+      "version": "1.1.11",
+      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+      "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+      "dev": true,
+      "requires": {
+        "balanced-match": "^1.0.0",
+        "concat-map": "0.0.1"
+      }
+    },
+    "buffer-alloc": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz",
+      "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==",
+      "dev": true,
+      "requires": {
+        "buffer-alloc-unsafe": "^1.1.0",
+        "buffer-fill": "^1.0.0"
+      }
+    },
+    "buffer-alloc-unsafe": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz",
+      "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
+      "dev": true
+    },
+    "buffer-crc32": {
+      "version": "0.2.13",
+      "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+      "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
+      "dev": true
+    },
+    "buffer-fill": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
+      "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=",
+      "dev": true
+    },
+    "buffer-from": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
+      "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
+      "dev": true
+    },
+    "cacheable-request": {
+      "version": "6.1.0",
+      "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz",
+      "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==",
+      "dev": true,
+      "requires": {
+        "clone-response": "^1.0.2",
+        "get-stream": "^5.1.0",
+        "http-cache-semantics": "^4.0.0",
+        "keyv": "^3.0.0",
+        "lowercase-keys": "^2.0.0",
+        "normalize-url": "^4.1.0",
+        "responselike": "^1.0.2"
+      },
+      "dependencies": {
+        "get-stream": {
+          "version": "5.2.0",
+          "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+          "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+          "dev": true,
+          "requires": {
+            "pump": "^3.0.0"
+          }
+        },
+        "lowercase-keys": {
+          "version": "2.0.0",
+          "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
+          "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
+          "dev": true
+        }
+      }
+    },
+    "chromium-pickle-js": {
+      "version": "0.2.0",
+      "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",
+      "integrity": "sha1-BKEGZywYsIWrd02YPfo+oTjyIgU=",
+      "dev": true
+    },
+    "clone-response": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
+      "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",
+      "dev": true,
+      "requires": {
+        "mimic-response": "^1.0.0"
+      }
+    },
+    "commander": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",
+      "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
+      "dev": true
+    },
+    "compare-version": {
+      "version": "0.1.2",
+      "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz",
+      "integrity": "sha1-AWLsLZNR9d3VmpICy6k1NmpyUIA=",
+      "dev": true
+    },
+    "concat-map": {
+      "version": "0.0.1",
+      "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+      "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
+      "dev": true
+    },
+    "concat-stream": {
+      "version": "1.6.2",
+      "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
+      "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
+      "dev": true,
+      "requires": {
+        "buffer-from": "^1.0.0",
+        "inherits": "^2.0.3",
+        "readable-stream": "^2.2.2",
+        "typedarray": "^0.0.6"
+      }
+    },
+    "config-chain": {
+      "version": "1.1.12",
+      "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz",
+      "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "ini": "^1.3.4",
+        "proto-list": "~1.2.1"
+      }
+    },
+    "core-js": {
+      "version": "3.6.5",
+      "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz",
+      "integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==",
+      "dev": true,
+      "optional": true
+    },
+    "core-util-is": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
+      "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
+      "dev": true
+    },
+    "debug": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+      "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+      "dev": true,
+      "requires": {
+        "ms": "^2.1.1"
+      }
+    },
+    "decompress-response": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
+      "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",
+      "dev": true,
+      "requires": {
+        "mimic-response": "^1.0.0"
+      }
+    },
+    "defer-to-connect": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz",
+      "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==",
+      "dev": true
+    },
+    "define-properties": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
+      "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "object-keys": "^1.0.12"
+      }
+    },
+    "detect-node": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
+      "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
+      "dev": true,
+      "optional": true
+    },
+    "duplexer3": {
+      "version": "0.1.4",
+      "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
+      "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",
+      "dev": true
+    },
+    "electron": {
+      "version": "10.1.1",
+      "resolved": "https://registry.npmjs.org/electron/-/electron-10.1.1.tgz",
+      "integrity": "sha512-ZJtZHMr17AvvBosuA6XUmpehwAlGM4/n46Mw9BcyD8tpgdI6IQd0X5OU9meE3X3M8Y6Ja2Kr2udTMgtjvot2hA==",
+      "dev": true,
+      "requires": {
+        "@electron/get": "^1.0.1",
+        "@types/node": "^12.0.12",
+        "extract-zip": "^1.0.3"
+      }
+    },
+    "electron-notarize": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/electron-notarize/-/electron-notarize-1.0.0.tgz",
+      "integrity": "sha512-dsib1IAquMn0onCrNMJ6gtEIZn/azG8hZMCYOuZIMVMUeRMgBYHK1s5TK9P8xAcrAjh/2aN5WYHzgVSWX314og==",
+      "dev": true,
+      "requires": {
+        "debug": "^4.1.1",
+        "fs-extra": "^9.0.1"
+      },
+      "dependencies": {
+        "fs-extra": {
+          "version": "9.0.1",
+          "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz",
+          "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==",
+          "dev": true,
+          "requires": {
+            "at-least-node": "^1.0.0",
+            "graceful-fs": "^4.2.0",
+            "jsonfile": "^6.0.1",
+            "universalify": "^1.0.0"
+          }
+        },
+        "jsonfile": {
+          "version": "6.0.1",
+          "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz",
+          "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==",
+          "dev": true,
+          "requires": {
+            "graceful-fs": "^4.1.6",
+            "universalify": "^1.0.0"
+          }
+        },
+        "universalify": {
+          "version": "1.0.0",
+          "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
+          "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==",
+          "dev": true
+        }
+      }
+    },
+    "electron-osx-sign": {
+      "version": "0.4.17",
+      "resolved": "https://registry.npmjs.org/electron-osx-sign/-/electron-osx-sign-0.4.17.tgz",
+      "integrity": "sha512-wUJPmZJQCs1zgdlQgeIpRcvrf7M5/COQaOV68Va1J/SgmWx5KL2otgg+fAae7luw6qz9R8Gvu/Qpe9tAOu/3xQ==",
+      "dev": true,
+      "requires": {
+        "bluebird": "^3.5.0",
+        "compare-version": "^0.1.2",
+        "debug": "^2.6.8",
+        "isbinaryfile": "^3.0.2",
+        "minimist": "^1.2.0",
+        "plist": "^3.0.1"
+      },
+      "dependencies": {
+        "debug": {
+          "version": "2.6.9",
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+          "dev": true,
+          "requires": {
+            "ms": "2.0.0"
+          }
+        },
+        "ms": {
+          "version": "2.0.0",
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+          "dev": true
+        }
+      }
+    },
+    "electron-packager": {
+      "version": "15.1.0",
+      "resolved": "https://registry.npmjs.org/electron-packager/-/electron-packager-15.1.0.tgz",
+      "integrity": "sha512-THNm4bz1DfvR9f0g51+NjuAYELflM8+1vhQ/iv/G8vyZNKzSMuFd5doobngQKq3rRsLdPNZVnGqDdgS884d7Og==",
+      "dev": true,
+      "requires": {
+        "@electron/get": "^1.6.0",
+        "asar": "^3.0.0",
+        "debug": "^4.0.1",
+        "electron-notarize": "^1.0.0",
+        "electron-osx-sign": "^0.4.11",
+        "extract-zip": "^2.0.0",
+        "filenamify": "^4.1.0",
+        "fs-extra": "^9.0.0",
+        "galactus": "^0.2.1",
+        "get-package-info": "^1.0.0",
+        "junk": "^3.1.0",
+        "parse-author": "^2.0.0",
+        "plist": "^3.0.0",
+        "rcedit": "^2.0.0",
+        "resolve": "^1.1.6",
+        "semver": "^7.1.3",
+        "yargs-parser": "^19.0.1"
+      },
+      "dependencies": {
+        "extract-zip": {
+          "version": "2.0.1",
+          "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+          "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+          "dev": true,
+          "requires": {
+            "@types/yauzl": "^2.9.1",
+            "debug": "^4.1.1",
+            "get-stream": "^5.1.0",
+            "yauzl": "^2.10.0"
+          }
+        },
+        "fs-extra": {
+          "version": "9.0.1",
+          "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz",
+          "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==",
+          "dev": true,
+          "requires": {
+            "at-least-node": "^1.0.0",
+            "graceful-fs": "^4.2.0",
+            "jsonfile": "^6.0.1",
+            "universalify": "^1.0.0"
+          }
+        },
+        "get-stream": {
+          "version": "5.2.0",
+          "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+          "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+          "dev": true,
+          "requires": {
+            "pump": "^3.0.0"
+          }
+        },
+        "jsonfile": {
+          "version": "6.0.1",
+          "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz",
+          "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==",
+          "dev": true,
+          "requires": {
+            "graceful-fs": "^4.1.6",
+            "universalify": "^1.0.0"
+          }
+        },
+        "universalify": {
+          "version": "1.0.0",
+          "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
+          "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==",
+          "dev": true
+        }
+      }
+    },
+    "encodeurl": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
+      "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",
+      "dev": true,
+      "optional": true
+    },
+    "end-of-stream": {
+      "version": "1.4.4",
+      "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
+      "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
+      "dev": true,
+      "requires": {
+        "once": "^1.4.0"
+      }
+    },
+    "env-paths": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.0.tgz",
+      "integrity": "sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA==",
+      "dev": true
+    },
+    "error-ex": {
+      "version": "1.3.2",
+      "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+      "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+      "dev": true,
+      "requires": {
+        "is-arrayish": "^0.2.1"
+      }
+    },
+    "es6-error": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
+      "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
+      "dev": true,
+      "optional": true
+    },
+    "escape-string-regexp": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+      "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+      "dev": true,
+      "optional": true
+    },
+    "extract-zip": {
+      "version": "1.7.0",
+      "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",
+      "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",
+      "dev": true,
+      "requires": {
+        "concat-stream": "^1.6.2",
+        "debug": "^2.6.9",
+        "mkdirp": "^0.5.4",
+        "yauzl": "^2.10.0"
+      },
+      "dependencies": {
+        "debug": {
+          "version": "2.6.9",
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+          "dev": true,
+          "requires": {
+            "ms": "2.0.0"
+          }
+        },
+        "ms": {
+          "version": "2.0.0",
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+          "dev": true
+        }
+      }
+    },
+    "fd-slicer": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+      "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
+      "dev": true,
+      "requires": {
+        "pend": "~1.2.0"
+      }
+    },
+    "filename-reserved-regex": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",
+      "integrity": "sha1-q/c9+rc10EVECr/qLZHzieu/oik=",
+      "dev": true
+    },
+    "filenamify": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.1.0.tgz",
+      "integrity": "sha512-KQV/uJDI9VQgN7sHH1Zbk6+42cD6mnQ2HONzkXUfPJ+K2FC8GZ1dpewbbHw0Sz8Tf5k3EVdHVayM4DoAwWlmtg==",
+      "dev": true,
+      "requires": {
+        "filename-reserved-regex": "^2.0.0",
+        "strip-outer": "^1.0.1",
+        "trim-repeated": "^1.0.0"
+      }
+    },
+    "find-up": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
+      "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
+      "dev": true,
+      "requires": {
+        "locate-path": "^2.0.0"
+      }
+    },
+    "flora-colossus": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/flora-colossus/-/flora-colossus-1.0.1.tgz",
+      "integrity": "sha512-d+9na7t9FyH8gBJoNDSi28mE4NgQVGGvxQ4aHtFRetjyh5SXjuus+V5EZaxFmFdXVemSOrx0lsgEl/ZMjnOWJA==",
+      "dev": true,
+      "requires": {
+        "debug": "^4.1.1",
+        "fs-extra": "^7.0.0"
+      },
+      "dependencies": {
+        "fs-extra": {
+          "version": "7.0.1",
+          "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",
+          "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
+          "dev": true,
+          "requires": {
+            "graceful-fs": "^4.1.2",
+            "jsonfile": "^4.0.0",
+            "universalify": "^0.1.0"
+          }
+        }
+      }
+    },
+    "fs-extra": {
+      "version": "8.1.0",
+      "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
+      "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
+      "dev": true,
+      "requires": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^4.0.0",
+        "universalify": "^0.1.0"
+      }
+    },
+    "fs.realpath": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+      "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
+      "dev": true
+    },
+    "galactus": {
+      "version": "0.2.1",
+      "resolved": "https://registry.npmjs.org/galactus/-/galactus-0.2.1.tgz",
+      "integrity": "sha1-y+0tIKQMH1Z5o1kI4rlBVzPnjbk=",
+      "dev": true,
+      "requires": {
+        "debug": "^3.1.0",
+        "flora-colossus": "^1.0.0",
+        "fs-extra": "^4.0.0"
+      },
+      "dependencies": {
+        "debug": {
+          "version": "3.2.6",
+          "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
+          "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
+          "dev": true,
+          "requires": {
+            "ms": "^2.1.1"
+          }
+        },
+        "fs-extra": {
+          "version": "4.0.3",
+          "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz",
+          "integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==",
+          "dev": true,
+          "requires": {
+            "graceful-fs": "^4.1.2",
+            "jsonfile": "^4.0.0",
+            "universalify": "^0.1.0"
+          }
+        }
+      }
+    },
+    "get-package-info": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/get-package-info/-/get-package-info-1.0.0.tgz",
+      "integrity": "sha1-ZDJ5ZWPigRPNlHTbvQAFKYWkmZw=",
+      "dev": true,
+      "requires": {
+        "bluebird": "^3.1.1",
+        "debug": "^2.2.0",
+        "lodash.get": "^4.0.0",
+        "read-pkg-up": "^2.0.0"
+      },
+      "dependencies": {
+        "debug": {
+          "version": "2.6.9",
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+          "dev": true,
+          "requires": {
+            "ms": "2.0.0"
+          }
+        },
+        "ms": {
+          "version": "2.0.0",
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+          "dev": true
+        }
+      }
+    },
+    "get-stream": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
+      "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
+      "dev": true,
+      "requires": {
+        "pump": "^3.0.0"
+      }
+    },
+    "glob": {
+      "version": "7.1.6",
+      "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+      "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+      "dev": true,
+      "requires": {
+        "fs.realpath": "^1.0.0",
+        "inflight": "^1.0.4",
+        "inherits": "2",
+        "minimatch": "^3.0.4",
+        "once": "^1.3.0",
+        "path-is-absolute": "^1.0.0"
+      }
+    },
+    "global-agent": {
+      "version": "2.1.12",
+      "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.1.12.tgz",
+      "integrity": "sha512-caAljRMS/qcDo69X9BfkgrihGUgGx44Fb4QQToNQjsiWh+YlQ66uqYVAdA8Olqit+5Ng0nkz09je3ZzANMZcjg==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "boolean": "^3.0.1",
+        "core-js": "^3.6.5",
+        "es6-error": "^4.1.1",
+        "matcher": "^3.0.0",
+        "roarr": "^2.15.3",
+        "semver": "^7.3.2",
+        "serialize-error": "^7.0.1"
+      }
+    },
+    "global-tunnel-ng": {
+      "version": "2.7.1",
+      "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz",
+      "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "encodeurl": "^1.0.2",
+        "lodash": "^4.17.10",
+        "npm-conf": "^1.1.3",
+        "tunnel": "^0.0.6"
+      }
+    },
+    "globalthis": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.1.tgz",
+      "integrity": "sha512-mJPRTc/P39NH/iNG4mXa9aIhNymaQikTrnspeCa2ZuJ+mH2QN/rXwtX3XwKrHqWgUQFbNZKtHM105aHzJalElw==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "define-properties": "^1.1.3"
+      }
+    },
+    "got": {
+      "version": "9.6.0",
+      "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
+      "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",
+      "dev": true,
+      "requires": {
+        "@sindresorhus/is": "^0.14.0",
+        "@szmarczak/http-timer": "^1.1.2",
+        "cacheable-request": "^6.0.0",
+        "decompress-response": "^3.3.0",
+        "duplexer3": "^0.1.4",
+        "get-stream": "^4.1.0",
+        "lowercase-keys": "^1.0.1",
+        "mimic-response": "^1.0.1",
+        "p-cancelable": "^1.0.0",
+        "to-readable-stream": "^1.0.0",
+        "url-parse-lax": "^3.0.0"
+      }
+    },
+    "graceful-fs": {
+      "version": "4.2.4",
+      "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
+      "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
+      "dev": true
+    },
+    "hosted-git-info": {
+      "version": "2.8.8",
+      "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
+      "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
+      "dev": true
+    },
+    "http-cache-semantics": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz",
+      "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==",
+      "dev": true
+    },
+    "inflight": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+      "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+      "dev": true,
+      "requires": {
+        "once": "^1.3.0",
+        "wrappy": "1"
+      }
+    },
+    "inherits": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+      "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+      "dev": true
+    },
+    "ini": {
+      "version": "1.3.5",
+      "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
+      "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
+      "dev": true,
+      "optional": true
+    },
+    "is-arrayish": {
+      "version": "0.2.1",
+      "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+      "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
+      "dev": true
+    },
+    "isarray": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+      "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+      "dev": true
+    },
+    "isbinaryfile": {
+      "version": "3.0.3",
+      "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.3.tgz",
+      "integrity": "sha512-8cJBL5tTd2OS0dM4jz07wQd5g0dCCqIhUxPIGtZfa5L6hWlvV5MHTITy/DBAsF+Oe2LS1X3krBUhNwaGUWpWxw==",
+      "dev": true,
+      "requires": {
+        "buffer-alloc": "^1.2.0"
+      }
+    },
+    "json-buffer": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
+      "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=",
+      "dev": true
+    },
+    "json-stringify-safe": {
+      "version": "5.0.1",
+      "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+      "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
+      "dev": true,
+      "optional": true
+    },
+    "jsonfile": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
+      "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
+      "dev": true,
+      "requires": {
+        "graceful-fs": "^4.1.6"
+      }
+    },
+    "junk": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz",
+      "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==",
+      "dev": true
+    },
+    "keyv": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
+      "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",
+      "dev": true,
+      "requires": {
+        "json-buffer": "3.0.0"
+      }
+    },
+    "load-json-file": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
+      "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
+      "dev": true,
+      "requires": {
+        "graceful-fs": "^4.1.2",
+        "parse-json": "^2.2.0",
+        "pify": "^2.0.0",
+        "strip-bom": "^3.0.0"
+      },
+      "dependencies": {
+        "pify": {
+          "version": "2.3.0",
+          "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+          "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+          "dev": true
+        }
+      }
+    },
+    "locate-path": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
+      "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
+      "dev": true,
+      "requires": {
+        "p-locate": "^2.0.0",
+        "path-exists": "^3.0.0"
+      }
+    },
+    "lodash": {
+      "version": "4.17.20",
+      "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
+      "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
+      "dev": true,
+      "optional": true
+    },
+    "lodash.get": {
+      "version": "4.4.2",
+      "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
+      "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=",
+      "dev": true
+    },
+    "lowercase-keys": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
+      "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",
+      "dev": true
+    },
+    "matcher": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",
+      "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "escape-string-regexp": "^4.0.0"
+      }
+    },
+    "mimic-response": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
+      "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
+      "dev": true
+    },
+    "minimatch": {
+      "version": "3.0.4",
+      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
+      "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
+      "dev": true,
+      "requires": {
+        "brace-expansion": "^1.1.7"
+      }
+    },
+    "minimist": {
+      "version": "1.2.5",
+      "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
+      "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
+      "dev": true
+    },
+    "mkdirp": {
+      "version": "0.5.5",
+      "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
+      "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
+      "dev": true,
+      "requires": {
+        "minimist": "^1.2.5"
+      }
+    },
+    "ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true
+    },
+    "normalize-package-data": {
+      "version": "2.5.0",
+      "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
+      "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
+      "dev": true,
+      "requires": {
+        "hosted-git-info": "^2.1.4",
+        "resolve": "^1.10.0",
+        "semver": "2 || 3 || 4 || 5",
+        "validate-npm-package-license": "^3.0.1"
+      },
+      "dependencies": {
+        "semver": {
+          "version": "5.7.1",
+          "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
+          "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
+          "dev": true
+        }
+      }
+    },
+    "normalize-url": {
+      "version": "4.5.0",
+      "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz",
+      "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==",
+      "dev": true
+    },
+    "npm-conf": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz",
+      "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "config-chain": "^1.1.11",
+        "pify": "^3.0.0"
+      }
+    },
+    "object-keys": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
+      "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+      "dev": true,
+      "optional": true
+    },
+    "once": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+      "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+      "dev": true,
+      "requires": {
+        "wrappy": "1"
+      }
+    },
+    "p-cancelable": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
+      "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",
+      "dev": true
+    },
+    "p-limit": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
+      "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
+      "dev": true,
+      "requires": {
+        "p-try": "^1.0.0"
+      }
+    },
+    "p-locate": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
+      "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
+      "dev": true,
+      "requires": {
+        "p-limit": "^1.1.0"
+      }
+    },
+    "p-try": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
+      "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
+      "dev": true
+    },
+    "parse-author": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/parse-author/-/parse-author-2.0.0.tgz",
+      "integrity": "sha1-00YL8d3Q367tQtp1QkLmX7aEqB8=",
+      "dev": true,
+      "requires": {
+        "author-regex": "^1.0.0"
+      }
+    },
+    "parse-json": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
+      "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
+      "dev": true,
+      "requires": {
+        "error-ex": "^1.2.0"
+      }
+    },
+    "path-exists": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+      "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
+      "dev": true
+    },
+    "path-is-absolute": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+      "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
+      "dev": true
+    },
+    "path-parse": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
+      "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
+      "dev": true
+    },
+    "path-type": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
+      "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
+      "dev": true,
+      "requires": {
+        "pify": "^2.0.0"
+      },
+      "dependencies": {
+        "pify": {
+          "version": "2.3.0",
+          "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+          "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+          "dev": true
+        }
+      }
+    },
+    "pend": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+      "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
+      "dev": true
+    },
+    "pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
+      "dev": true,
+      "optional": true
+    },
+    "plist": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/plist/-/plist-3.0.1.tgz",
+      "integrity": "sha512-GpgvHHocGRyQm74b6FWEZZVRroHKE1I0/BTjAmySaohK+cUn+hZpbqXkc3KWgW3gQYkqcQej35FohcT0FRlkRQ==",
+      "dev": true,
+      "requires": {
+        "base64-js": "^1.2.3",
+        "xmlbuilder": "^9.0.7",
+        "xmldom": "0.1.x"
+      }
+    },
+    "prepend-http": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
+      "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=",
+      "dev": true
+    },
+    "process-nextick-args": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+      "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
+      "dev": true
+    },
+    "progress": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
+      "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
+      "dev": true
+    },
+    "proto-list": {
+      "version": "1.2.4",
+      "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
+      "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",
+      "dev": true,
+      "optional": true
+    },
+    "pump": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
+      "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
+      "dev": true,
+      "requires": {
+        "end-of-stream": "^1.1.0",
+        "once": "^1.3.1"
+      }
+    },
+    "rcedit": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/rcedit/-/rcedit-2.2.0.tgz",
+      "integrity": "sha512-dhFtYmQS+V8qQIANyX6zDK+sO50ayDePKApi46ZPK8I6QeyyTDD6LManMa7a3p3c9mLM4zi9QBP41pfhQ9p7Sg==",
+      "dev": true
+    },
+    "read-pkg": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
+      "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
+      "dev": true,
+      "requires": {
+        "load-json-file": "^2.0.0",
+        "normalize-package-data": "^2.3.2",
+        "path-type": "^2.0.0"
+      }
+    },
+    "read-pkg-up": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
+      "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
+      "dev": true,
+      "requires": {
+        "find-up": "^2.0.0",
+        "read-pkg": "^2.0.0"
+      }
+    },
+    "readable-stream": {
+      "version": "2.3.7",
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
+      "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
+      "dev": true,
+      "requires": {
+        "core-util-is": "~1.0.0",
+        "inherits": "~2.0.3",
+        "isarray": "~1.0.0",
+        "process-nextick-args": "~2.0.0",
+        "safe-buffer": "~5.1.1",
+        "string_decoder": "~1.1.1",
+        "util-deprecate": "~1.0.1"
+      }
+    },
+    "resolve": {
+      "version": "1.17.0",
+      "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
+      "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==",
+      "dev": true,
+      "requires": {
+        "path-parse": "^1.0.6"
+      }
+    },
+    "responselike": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
+      "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",
+      "dev": true,
+      "requires": {
+        "lowercase-keys": "^1.0.0"
+      }
+    },
+    "roarr": {
+      "version": "2.15.3",
+      "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.3.tgz",
+      "integrity": "sha512-AEjYvmAhlyxOeB9OqPUzQCo3kuAkNfuDk/HqWbZdFsqDFpapkTjiw+p4svNEoRLvuqNTxqfL+s+gtD4eDgZ+CA==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "boolean": "^3.0.0",
+        "detect-node": "^2.0.4",
+        "globalthis": "^1.0.1",
+        "json-stringify-safe": "^5.0.1",
+        "semver-compare": "^1.0.0",
+        "sprintf-js": "^1.1.2"
+      }
+    },
+    "safe-buffer": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+      "dev": true
+    },
+    "sanitize-filename": {
+      "version": "1.6.3",
+      "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz",
+      "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==",
+      "dev": true,
+      "requires": {
+        "truncate-utf8-bytes": "^1.0.0"
+      }
+    },
+    "semver": {
+      "version": "7.3.2",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
+      "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
+      "dev": true
+    },
+    "semver-compare": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",
+      "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=",
+      "dev": true,
+      "optional": true
+    },
+    "serialize-error": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",
+      "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",
+      "dev": true,
+      "optional": true,
+      "requires": {
+        "type-fest": "^0.13.1"
+      }
+    },
+    "spdx-correct": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
+      "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
+      "dev": true,
+      "requires": {
+        "spdx-expression-parse": "^3.0.0",
+        "spdx-license-ids": "^3.0.0"
+      }
+    },
+    "spdx-exceptions": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",
+      "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",
+      "dev": true
+    },
+    "spdx-expression-parse": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
+      "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
+      "dev": true,
+      "requires": {
+        "spdx-exceptions": "^2.1.0",
+        "spdx-license-ids": "^3.0.0"
+      }
+    },
+    "spdx-license-ids": {
+      "version": "3.0.5",
+      "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
+      "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==",
+      "dev": true
+    },
+    "sprintf-js": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
+      "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
+      "dev": true,
+      "optional": true
+    },
+    "string_decoder": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+      "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+      "dev": true,
+      "requires": {
+        "safe-buffer": "~5.1.0"
+      }
+    },
+    "strip-bom": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+      "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
+      "dev": true
+    },
+    "strip-outer": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz",
+      "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==",
+      "dev": true,
+      "requires": {
+        "escape-string-regexp": "^1.0.2"
+      },
+      "dependencies": {
+        "escape-string-regexp": {
+          "version": "1.0.5",
+          "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+          "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+          "dev": true
+        }
+      }
+    },
+    "sumchecker": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",
+      "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",
+      "dev": true,
+      "requires": {
+        "debug": "^4.1.0"
+      }
+    },
+    "to-readable-stream": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz",
+      "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==",
+      "dev": true
+    },
+    "trim-repeated": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz",
+      "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=",
+      "dev": true,
+      "requires": {
+        "escape-string-regexp": "^1.0.2"
+      },
+      "dependencies": {
+        "escape-string-regexp": {
+          "version": "1.0.5",
+          "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+          "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+          "dev": true
+        }
+      }
+    },
+    "truncate-utf8-bytes": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
+      "integrity": "sha1-QFkjkJWS1W94pYGENLC3hInKXys=",
+      "dev": true,
+      "requires": {
+        "utf8-byte-length": "^1.0.1"
+      }
+    },
+    "tunnel": {
+      "version": "0.0.6",
+      "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
+      "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
+      "dev": true,
+      "optional": true
+    },
+    "type-fest": {
+      "version": "0.13.1",
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
+      "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
+      "dev": true,
+      "optional": true
+    },
+    "typedarray": {
+      "version": "0.0.6",
+      "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
+      "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
+      "dev": true
+    },
+    "universalify": {
+      "version": "0.1.2",
+      "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
+      "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+      "dev": true
+    },
+    "url-parse-lax": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
+      "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
+      "dev": true,
+      "requires": {
+        "prepend-http": "^2.0.0"
+      }
+    },
+    "utf8-byte-length": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz",
+      "integrity": "sha1-9F8VDExm7uloGGUFq5P8u4rWv2E=",
+      "dev": true
+    },
+    "util-deprecate": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+      "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
+      "dev": true
+    },
+    "validate-npm-package-license": {
+      "version": "3.0.4",
+      "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
+      "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
+      "dev": true,
+      "requires": {
+        "spdx-correct": "^3.0.0",
+        "spdx-expression-parse": "^3.0.0"
+      }
+    },
+    "wrappy": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+      "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
+      "dev": true
+    },
+    "xmlbuilder": {
+      "version": "9.0.7",
+      "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz",
+      "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=",
+      "dev": true
+    },
+    "xmldom": {
+      "version": "0.1.31",
+      "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.31.tgz",
+      "integrity": "sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ==",
+      "dev": true
+    },
+    "yargs-parser": {
+      "version": "19.0.4",
+      "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-19.0.4.tgz",
+      "integrity": "sha512-eXeQm7yXRjPFFyf1voPkZgXQZJjYfjgQUmGPbD2TLtZeIYzvacgWX7sQ5a1HsRgVP+pfKAkRZDNtTGev4h9vhw==",
+      "dev": true
+    },
+    "yauzl": {
+      "version": "2.10.0",
+      "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+      "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
+      "dev": true,
+      "requires": {
+        "buffer-crc32": "~0.2.3",
+        "fd-slicer": "~1.1.0"
+      }
+    }
+  }
+}
diff --git a/desktopapp/package.json b/desktopapp/package.json
new file mode 100644 (file)
index 0000000..e090485
--- /dev/null
@@ -0,0 +1,23 @@
+{
+  "name": "POT",
+  "version": "1.0.0",
+  "description": "plan d'organisation du travail",
+  "main": "main.js",
+  "scripts": {
+    "start": "electron .",
+    "package-win64": "electron-packager . pot --overwrite --platform=win32 --arch=x64 --asar --out=../release-builds --version-string.CompanyName=DKS --version-string.FileDescription=DKS --version-string.ProductName=POT --icon=img/POT-logo.ico",
+    "package-win32": "electron-packager . pot --overwrite --platform=win32 --arch=ia32 --asar --out=../release-builds --version-string.CompanyName=DKS --version-string.FileDescription=DKS --version-string.ProductName=POT --icon=img/POT-logo.ico"
+  },
+  "keywords": [
+    "planning",
+    "time",
+    "organisation"
+  ],
+  "author": "POT s.à r.l.",
+  "license": "UNLICENSED",
+  "devDependencies": {
+    "electron": "^10.1.1",
+    "electron-packager": "^15.1.0"
+  },
+  "dependencies": {}
+}
diff --git a/install/CGV.docx b/install/CGV.docx
new file mode 100644 (file)
index 0000000..1da2865
Binary files /dev/null and b/install/CGV.docx differ
diff --git a/install/CGV.pdf b/install/CGV.pdf
new file mode 100644 (file)
index 0000000..d7b5ab5
Binary files /dev/null and b/install/CGV.pdf differ
diff --git a/install/CGV.rtf b/install/CGV.rtf
new file mode 100644 (file)
index 0000000..7c3680a
--- /dev/null
@@ -0,0 +1,421 @@
+{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff31507\deff0\stshfdbch31506\stshfloch31506\stshfhich31506\stshfbi31507\deflang4103\deflangfe4103\themelang4103\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f2\fbidi \fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}
+{\f3\fbidi \froman\fcharset2\fprq2{\*\panose 05050102010706020507}Symbol;}{\f10\fbidi \fnil\fcharset2\fprq2{\*\panose 05000000000000000000}Wingdings;}{\f34\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria Math;}
+{\f37\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
+{\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fhimajor\f31502\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0302020204030204}Calibri Light;}
+{\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
+{\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}
+{\fbiminor\f31507\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f44\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\f45\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
+{\f47\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\f48\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\f49\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f50\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
+{\f51\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\f52\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f64\fbidi \fmodern\fcharset238\fprq1 Courier New CE;}{\f65\fbidi \fmodern\fcharset204\fprq1 Courier New Cyr;}
+{\f67\fbidi \fmodern\fcharset161\fprq1 Courier New Greek;}{\f68\fbidi \fmodern\fcharset162\fprq1 Courier New Tur;}{\f69\fbidi \fmodern\fcharset177\fprq1 Courier New (Hebrew);}{\f70\fbidi \fmodern\fcharset178\fprq1 Courier New (Arabic);}
+{\f71\fbidi \fmodern\fcharset186\fprq1 Courier New Baltic;}{\f72\fbidi \fmodern\fcharset163\fprq1 Courier New (Vietnamese);}{\f414\fbidi \fswiss\fcharset238\fprq2 Calibri CE;}{\f415\fbidi \fswiss\fcharset204\fprq2 Calibri Cyr;}
+{\f417\fbidi \fswiss\fcharset161\fprq2 Calibri Greek;}{\f418\fbidi \fswiss\fcharset162\fprq2 Calibri Tur;}{\f419\fbidi \fswiss\fcharset177\fprq2 Calibri (Hebrew);}{\f420\fbidi \fswiss\fcharset178\fprq2 Calibri (Arabic);}
+{\f421\fbidi \fswiss\fcharset186\fprq2 Calibri Baltic;}{\f422\fbidi \fswiss\fcharset163\fprq2 Calibri (Vietnamese);}{\flomajor\f31508\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
+{\flomajor\f31509\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flomajor\f31511\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\flomajor\f31512\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}
+{\flomajor\f31513\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flomajor\f31514\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\flomajor\f31515\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}
+{\flomajor\f31516\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbmajor\f31518\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fdbmajor\f31519\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
+{\fdbmajor\f31521\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fdbmajor\f31522\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fdbmajor\f31523\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
+{\fdbmajor\f31524\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fdbmajor\f31525\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fdbmajor\f31526\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
+{\fhimajor\f31528\fbidi \fswiss\fcharset238\fprq2 Calibri Light CE;}{\fhimajor\f31529\fbidi \fswiss\fcharset204\fprq2 Calibri Light Cyr;}{\fhimajor\f31531\fbidi \fswiss\fcharset161\fprq2 Calibri Light Greek;}
+{\fhimajor\f31532\fbidi \fswiss\fcharset162\fprq2 Calibri Light Tur;}{\fhimajor\f31533\fbidi \fswiss\fcharset177\fprq2 Calibri Light (Hebrew);}{\fhimajor\f31534\fbidi \fswiss\fcharset178\fprq2 Calibri Light (Arabic);}
+{\fhimajor\f31535\fbidi \fswiss\fcharset186\fprq2 Calibri Light Baltic;}{\fhimajor\f31536\fbidi \fswiss\fcharset163\fprq2 Calibri Light (Vietnamese);}{\fbimajor\f31538\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
+{\fbimajor\f31539\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fbimajor\f31541\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fbimajor\f31542\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}
+{\fbimajor\f31543\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fbimajor\f31544\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fbimajor\f31545\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}
+{\fbimajor\f31546\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\flominor\f31548\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flominor\f31549\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
+{\flominor\f31551\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\flominor\f31552\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flominor\f31553\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
+{\flominor\f31554\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\flominor\f31555\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flominor\f31556\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
+{\fdbminor\f31558\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fdbminor\f31559\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbminor\f31561\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}
+{\fdbminor\f31562\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fdbminor\f31563\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbminor\f31564\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
+{\fdbminor\f31565\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fdbminor\f31566\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhiminor\f31568\fbidi \fswiss\fcharset238\fprq2 Calibri CE;}
+{\fhiminor\f31569\fbidi \fswiss\fcharset204\fprq2 Calibri Cyr;}{\fhiminor\f31571\fbidi \fswiss\fcharset161\fprq2 Calibri Greek;}{\fhiminor\f31572\fbidi \fswiss\fcharset162\fprq2 Calibri Tur;}
+{\fhiminor\f31573\fbidi \fswiss\fcharset177\fprq2 Calibri (Hebrew);}{\fhiminor\f31574\fbidi \fswiss\fcharset178\fprq2 Calibri (Arabic);}{\fhiminor\f31575\fbidi \fswiss\fcharset186\fprq2 Calibri Baltic;}
+{\fhiminor\f31576\fbidi \fswiss\fcharset163\fprq2 Calibri (Vietnamese);}{\fbiminor\f31578\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbiminor\f31579\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
+{\fbiminor\f31581\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fbiminor\f31582\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbiminor\f31583\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
+{\fbiminor\f31584\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fbiminor\f31585\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbiminor\f31586\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}}
+{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;
+\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;\red0\green0\blue0;\red0\green0\blue0;\red96\green94\blue92;\red225\green223\blue221;}{\*\defchp 
+\f31506\fs22\lang4103\langfe1033\langfenp1033 }{\*\defpap \ql \li0\ri0\sa160\sl259\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 }\noqfpromote {\stylesheet{\ql \li0\ri0\sa160\sl259\slmult1
+\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs22\alang1025 \ltrch\fcs0 \f31506\fs22\lang4103\langfe1033\cgrid\langnp4103\langfenp1033 \snext0 \sqformat \spriority0 Normal;}{
+\s1\ql \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \ab\af0\afs48\alang1025 \ltrch\fcs0 \b\fs48\lang4103\langfe4103\kerning36\cgrid\langnp4103\langfenp4103 
+\sbasedon0 \snext1 \slink15 \sqformat \spriority9 \styrsid14878522 heading 1;}{\*\cs10 \additive \ssemihidden \sunhideused \spriority1 Default Paragraph Font;}{\*
+\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tblind0\tblindtype3\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv \ql \li0\ri0\sa160\sl259\slmult1
+\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs22\alang1025 \ltrch\fcs0 \f31506\fs22\lang4103\langfe1033\cgrid\langnp4103\langfenp1033 \snext11 \ssemihidden \sunhideused Normal Table;}{\*\cs15 \additive 
+\rtlch\fcs1 \ab\af0\afs48 \ltrch\fcs0 \b\f0\fs48\lang0\langfe4103\kerning36\langfenp4103 \sbasedon10 \slink1 \slocked \spriority9 \styrsid14878522 \'dcberschrift 1 Zchn;}{
+\s16\ql \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang4103\langfe4103\cgrid\langnp4103\langfenp4103 
+\sbasedon0 \snext16 \spriority0 \styrsid14878522 nav-item;}{\*\cs17 \additive \rtlch\fcs1 \af0 \ltrch\fcs0 \ul\cf2 \sbasedon10 \sunhideused \styrsid14878522 Hyperlink;}{
+\s18\ql \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang4103\langfe4103\cgrid\langnp4103\langfenp4103 
+\sbasedon0 \snext18 \ssemihidden \sunhideused \styrsid14878522 Normal (Web);}{\*\cs19 \additive \rtlch\fcs1 \af0 \ltrch\fcs0 \cf19\chshdng0\chcfpat0\chcbpat20 \sbasedon10 \ssemihidden \sunhideused \styrsid4812794 Unresolved Mention;}}{\*\listtable
+{\list\listtemplateid1833578830{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'01\u-3913 ?;}{\levelnumbers;}\f3\fs20\fbias0\hres0\chhres0 \fi-360\li720\jclisttab\tx720\lin720 }
+{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\'01o;}{\levelnumbers;}\f2\fs20\fbias0\hres0\chhres0 \fi-360\li1440\jclisttab\tx1440\lin1440 }{\listlevel\levelnfc23
+\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li2160\jclisttab\tx2160\lin2160 }{\listlevel\levelnfc23\levelnfcn23\leveljc0
+\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li2880\jclisttab\tx2880\lin2880 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0
+\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li3600\jclisttab\tx3600\lin3600 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1
+\lvltentative\levelspace0\levelindent0{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li4320\jclisttab\tx4320\lin4320 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative
+\levelspace0\levelindent0{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li5040\jclisttab\tx5040\lin5040 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0
+\levelindent0{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li5760\jclisttab\tx5760\lin5760 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
+{\leveltext\'01\u-3929 ?;}{\levelnumbers;}\f10\fs20\fbias0\hres0\chhres0 \fi-360\li6480\jclisttab\tx6480\lin6480 }{\listname ;}\listid551429730}}{\*\listoverridetable{\listoverride\listid551429730\listoverridecount0\ls1}}{\*\pgptbl {\pgp\ipgp0\itap0\li0
+\ri0\sb0\sa0}{\pgp\ipgp4\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp1\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp5\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp1\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp1\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp1\itap0\li0\ri0\sb0\sa0}}{\*\rsidtbl \rsid1319164\rsid1781872
+\rsid3959146\rsid4672210\rsid4812794\rsid4916214\rsid4986868\rsid5864924\rsid7350483\rsid7471309\rsid7865156\rsid8531801\rsid9853986\rsid12337605\rsid12922208\rsid13991877\rsid14359264\rsid14878522}{\mmathPr\mmathFont34\mbrkBin0\mbrkBinSub0\msmallFrac0
+\mdispDef1\mlMargin0\mrMargin0\mdefJc1\mwrapIndent1440\mintLim0\mnaryLim1}{\info{\author Max Di Bartolomeo}{\operator Kilian Saffran}{\creatim\yr2020\mo9\dy1\hr16\min53}{\revtim\yr2020\mo9\dy1\hr16\min53}{\version2}{\edmins0}{\nofpages7}{\nofwords3043}
+{\nofchars19171}{\nofcharsws22170}{\vern5}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}}\paperw11906\paperh16838\margl1417\margr1417\margt1417\margb1134\gutter0\ltrsect 
+\deftab708\widowctrl\ftnbj\aenddoc\hyphhotz425\trackmoves0\trackformatting1\donotembedsysfont1\relyonvml0\donotembedlingdata0\grfdocevents0\validatexml1\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0
+\showxmlerrors1\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1417\dgvorigin1417\dghshow1\dgvshow1
+\jexpand\viewkind1\viewscale100\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule\nobrkwrptbl\snaptogridincell\allowfieldendsel\wrppunct
+\asianbrkrule\rsidroot12922208\newtblstyruls\nogrowautofit\usenormstyforlist\noindnmbrts\felnbrelev\nocxsptable\indrlsweleven\noafcnsttbl\afelev\utinl\hwelev\spltpgpar\notcvasp\notbrkcnstfrctbl\notvatxbx\krnprsnet\cachedcolbal \nouicompat \fet0
+{\*\wgrffmtfilter 2450}\nofeaturethrottle1\ilfomacatclnup0\ltrpar \sectd \ltrsect\linex0\headery708\footery708\colsx708\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2
+\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6
+\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang 
+{\pntxtb (}{\pntxta )}}\pard\plain \ltrpar\qj \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\outlinelevel0\adjustright\rin0\lin0\itap0\pararsid14359264 \rtlch\fcs1 \af31507\afs22\alang1025 \ltrch\fcs0 
+\f31506\fs22\lang4103\langfe1033\cgrid\langnp4103\langfenp1033 {\rtlch\fcs1 \ab\af31506\afs48 \ltrch\fcs0 \b\fs48\lang5132\langfe4103\kerning36\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 Conditions G\'e9n\'e9rales
+\par }\pard \ltrpar\qj \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14359264 {\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid8853739 
+{\pict{\*\picprop\shplid1025{\sp{\sn shapeType}{\sv 1}}{\sp{\sn fFlipH}{\sv 0}}{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn fillColor}{\sv 10526880}}{\sp{\sn fFilled}{\sv 1}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn alignHR}{\sv 1}}{\sp{\sn dxHeightHR}{\sv 30}}
+{\sp{\sn fStandardHR}{\sv 1}}{\sp{\sn fHorizRule}{\sv 1}}{\sp{\sn fLayoutInCell}{\sv 1}}}\picscalex1\picscaley1\piccropl0\piccropr0\piccropt0\piccropb0\picw7620\pich7620\picwgoal4320\pichgoal4320\wmetafile8}}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par }\sectd \ltrsect\linex0\headery708\footery708\colsx708\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3
+\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}
+{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \ltrpar
+\qj \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14359264 \rtlch\fcs1 \af31507\afs22\alang1025 \ltrch\fcs0 \f31506\fs22\lang4103\langfe1033\cgrid\langnp4103\langfenp1033 {
+\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 Derni\'e8re mise \'e0 jour le }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7865156 25}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7865156 ao\'fbt}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  20}{\rtlch\fcs1 \af31506\afs24 
+\ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7865156 20}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par Attention: En utilisant les outils mis \'e0 disposition de sur le site www.POT.lu, vous indiquez que vous avez lu, compris et accept\'e9 d'\'eatre li\'e9 par les conditions d'utilisation de POT (\'abconditions\'bb). Ces conditions r\'e9
+gissent l'utilisation du site et forment une relation contractuelle entre POT S.\'e0 r.l., exploitant de POT (\'ab\~POT\~\'bb, \'ab\~nous\~\'bb) et vous (\'ab\~Client\~\'bb ou \'ab\~vous\~\'bb). Si vous acceptez ces conditions au nom d'une soci\'e9t\'e9
+ ou d'une entit\'e9, vous liez la soci\'e9t\'e9 ou l'entit\'e9 aux pr\'e9sentes conditions d'utilisations et d\'e9clarez et garantissez que vous avez tous les pouvoirs et les pouvoirs n\'e9cessaires pour le faire. Les pr\'e9
+sentes conditions sont susceptibles d'\'eatre modifi\'e9es par POT (section 13: Modifications des termes).
+\par }\pard \ltrpar\qj \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid4916214 {\rtlch\fcs1 \ab\af31506\afs44 \ltrch\fcs0 
+\b\fs44\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid4916214 LISEZ ATTENTIVEMENT CE DOCUMENT AFIN D'ASSURER QUE VOUS COMPRENEZ LE CONTENU.}{\rtlch\fcs1 \af31506 \ltrch\fcs0 
+\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid4916214 
+\par }\pard \ltrpar\qj \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14359264 {\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 
+\b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 1. Le Produit.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par Merci d'avoir choisi le Produit POT. Le \'abProduit\'bb d\'e9signe notre gamme de services et de fonctionnalit\'e9s li\'e9s \'e0 (a) la fonction POT, (b) nos applications web et logiciels mobiles li\'e9s (\'abLogiciel\'bb), (c) et (d) la do
+cumentation d'information standard de POT.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 2. Votre compte.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par Vous devez \'eatre majeur pour utiliser le Produit. L'utilisation du Produit peut vous obliger \'e0 cr\'e9er un compte et enregistrer nom et pr\'e9nom, votre adresse e-mail et de cr\'e9er un mot de passe. Vous \'ea
+tes seul responsable de toutes les mesures prises en utilisant votre compte et vous devez garder vos mots de passe s\'e9curis\'e9s \'e0 l'abri de personnes non autoris\'e9es.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 3. L\rquote utilisation du Produit. }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par Sous r\'e9serve des pr\'e9sentes conditions, vous pouvez acc\'e9der et utiliser le Produit \'e0 des fins commerciales internes et conform\'e9ment \'e0
+ notre documentation d'information standard. Cela inclut le droit se connecter et d'utiliser les formulaires des produits propos\'e9s par POT. Vous pouvez permettre \'e0 vos employ\'e9
+s et collaborateurs d'utiliser le Produit en votre nom, mais vous restez responsable de leurs actes, omissions et de la conformit\'e9 \'e0 ces conditions.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 4. Restrictions.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  
+\par Il ne vous est pas permis de (i) louer, reproduire, modifier, cr\'e9er des \'9cuvres d\'e9riv\'e9es, distribuer ou transf\'e9
+rer le Produit; (ii) utiliser le Produit au profit d'un tiers ou incorporer le Produit dans un autre produit ou service; (iii) contourner les m\'e9canismes du Produit destin\'e9s \'e0 limiter votre utilisation; (iv) d\'e9sassembler, d\'e9compiler ou 
+traduire le Produit ou tenter de d\'e9river le code source du site ou d'une API non publique; (v) diffuser publiquement des informations concernant la performance du Produit; (vi) acc\'e9der au Produit pour cr\'e9
+er un produit ou un service concurrentiel; (vii) soumettre des virus, des vers ou d'autres codes nuisibles au Produit ou interf\'e9rer de quelque fa\'e7on que ce soit avec le Produit ou causer des dommages au Produit; (viii) chercher \'e0 acc\'e9der \'e0
+ l'information ou aux donn\'e9es d'autres utilisateurs de POT; (ix) utiliser le Produit pour transmettre du spam ou d'autres courriels non sollicit\'e9s; ou (x) utiliser le Produit \'e0 des fins autres que celles express\'e9ment autoris\'e9es dans les pr
+\'e9sentes conditions. Vos droits d'utilisation du Produit sont non exclusifs, non transf\'e9rables et non sous-licenciables.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 5. Plans d'utilisation et frais}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 . 
+\par 0. Plans d'utilisation. Nous proposons diff\'e9rentes options pour l'utilisation du Produit, notamment: 
+\par - Essais gratuits pouvant comprendre des fonctionnalit\'e9s limit\'e9es qui expireront s'ils ne sont pas convertis en un plan payant (\'ab plans d'essai \'bb);
+\par - Les abonnements payants vous permettant de cr\'e9er un nombre illimit\'e9 de plans d\rquote organisation du travail pendant une p\'e9riode d'abonnement pr\'e9d\'e9finie}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14359264\charrsid7350483  }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 ;
+\par Les fonctionnalit\'e9s disponibles d\'e9pendent de l\rquote abonnement que vous s\'e9lectionnez. Les abonnements disponibles sont d\'e9crits dans votre espace utilisateur et votre abonnement sp\'e9cifique sera identifi\'e9 dans les termes pr\'e9sent\'e9
+s lors de l'inscription, de la commande ou du paiement du Produit (\'ab\~conditions de la commande\~\'bb). Ces conditions int\'e8grent les conditions de la commande et toutes les URL r\'e9f\'e9renc\'e9es et les politiques de POT. Selon la mani\'e8
+re d'utilisation du Produit, les conditions de la commande peuvent \'eatre pr\'e9sent\'e9es par POT (par exemple, via notre site Web), par un magasin d'applications ou une place de march\'e9 tiers (\'ab App Marketplace \'bb) ou via le Produit lui-m\'ea
+me. Si l'abonnement n'est pas renouvel\'e9, le Produit reviendra \'e0 une fonctionnalit\'e9 limit\'e9e, une fois la dur\'e9e d'abonnement expir\'e9e. Si la p\'e9riode d'essai est expir\'e9
+e et vous ne souscrivez pas d'abonnement, vous pouvez utiliser le Produit uniquement pour la visualisation des vos donn\'e9es pr\'e9alablement enregistr\'e9es jusqu\rquote \'e0 la date d\rquote expiration et/ou pour acheter un forfait payant.
+\par 1. Version b\'eata. Pour d\'e9velopper les fonctionnalit\'e9s du Produit, certaines fonctionnalit\'e9s du Produit vous peuvent \'eatre mis \'e0 disposition en version \'ab b\'eata \'bb. Si l'utilisateur choisit d'utiliser une version b\'ea
+ta, le client reconna\'eet que la version b\'eata peut \'eatre incompl\'e8te ou pas enti\'e8rement fonctionnelle et peut contenir des bugs, des erreurs, des omissions et d'autres probl\'e8mes. POT ne garantit pas que les futures versions d'une version b
+\'eata seront disponibles en vertu de ces conditions ou autrement. 
+\par 2. Support et mises \'e0 jour. POT d\'e9ploie des efforts raisonnables pour fournir des emails, des discussions en ligne et une auto-assistance en ligne. Tout le support est r\'e9
+gi par les politiques de support de POT alors en vigueur. Nous pouvons fournir des mises \'e0 jour ou des mises \'e0 niveau du Produit (\'ab\~Mises \'e0 jour\~\'bb). Toutes les mises \'e0 jour sont r\'e9
+gies par ces conditions, sauf indication contraire. Dans certains cas, nous pouvons vous demander de t\'e9l\'e9charger des mises \'e0 jour pour continuer \'e0 utiliser le Produit. Les mises \'e0 jour et autres changements de Produits sont effectu\'e9s 
+\'e0 notre discr\'e9tion. Nous n'avons aucune responsabilit\'e9 envers vous pour de tels changements et ne garantissons pas que les changements r\'e9pondront \'e0 vos besoins.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 6. Donn\'e9es utilisateurs.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par 0. Vos droits. Entre POT et le Client, le Client conserve tous ses droits sur les informations commerciales ou autres donn\'e9es que le Client soumet au Produit (\'ab donn\'e9es Client \'bb).
+\par 1. Utilisation des donn\'e9es du Client. Le Client accorde \'e0 POT un droit mondial, non exclusif et libre de droits d'utiliser, copier, stocker, transmettre, distribuer publiquement et afficher, cr\'e9er des \'9cuvres d\'e9riv\'e9es et modifier les donn
+\'e9es du Client afin de fournir le Produit au Client et exploiter, am\'e9liorer et entretenir le Produit. POT peut utiliser les services de sous-traitants pour fournir le Produit et lui permettre d'exercer ses droits sur les donn\'e9es du Client.
+\par 2. Stockage des donn\'e9es Client. POT ne fournit pas de service d'archivage. POT accepte seulement de ne pas supprimer intentionnellement les donn\'e9es du Client avant la r\'e9siliation ou l'expiration de son abonnement payant ou de sa facture. Nous d
+\'e9clinons express\'e9ment toute autre obligation de stockage dans la mesure permise par la loi applicable. Vous \'eates seul responsable du maintien des sauvegardes des donn\'e9es utilisateurs sur vos propres syst\'e8mes conform\'e9ment aux lois et r
+\'e8glements en vigueurs.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 7. Obligations du Client.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par (A) En g\'e9n\'e9ral. Le Client d\'e9clare, garantit et accepte que sous l'engagement de sa responsabilit\'e9 civile et p\'e9nale: (i) l'utilisation du Produit par le Client sera conforme \'e0 toutes les lois et r\'e9glementations locales, \'e9
+tatiques et internationales applicables, y compris celles relatives \'e0 la confidentialit\'e9, la s\'e9curit\'e9 des donn\'e9es, le contr\'f4le des exportations et les commutations \'e9
+lectroniques. (ii) le Client a obtenu tous les droits et autorisations n\'e9cessaires pour fournir et permettre le traitement, l'utilisation et la divulgation des donn\'e9es du Client}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14359264\charrsid7350483  et de ses pr\'e9pos\'e9s}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+ par POT en vertu des pr\'e9sentes conditions; (iii) ni les donn\'e9es du Client ni leur traitement, leur utilisation ou leur divulgation ne violeront les Lois, les droits de tiers (y compris les droits de propri\'e9t\'e9
+ intellectuelle, droits de confidentialit\'e9 ou de publicit\'e9}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid3959146\charrsid7350483  et droits relatifs \'e0 la protection des donn\'e9es}{
+\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 ) ou toute politique de confidentialit\'e9 applicable du Client; et (iv) le Client n'utilisera pas le Produit \'e0
+ l'appui ou \'e0 l'appui de toute activit\'e9 interdite par les Lois (par exemple, blanchiment d'argent) ou m\'eame interdite par la loi pour le jeu, la prostitution, l'alcool, la drogue, pharmaceutique ou entreprises ou services de soins de sant\'e9.
+
+\par (B) Certaines donn\'e9es Client interdites. Sauf dans les champs sp\'e9cifiques d\'e9sign\'e9s par POT, le Client s'engage \'e0 ne pas soumettre au Produit des num\'e9ros d'identification fiscale, des num\'e9ros de compte bancaire ou des num\'e9
+ros de carte de cr\'e9dit ou de d\'e9bit}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid3959146\charrsid7350483 , }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 des informations m\'e9dicales, p\'e9nales ou autres, prot\'e9g\'e9es par les lois, r\'e8gles ou r\'e9glementations applicables, y compris HIPAA (y compris, sa
+ns s'y limiter) informations sur l'assurance maladie)}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid3959146\charrsid7350483 ,}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid3959146\charrsid7350483 des }{\rtlch\fcs1 
+\af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 num\'e9ros de s\'e9curit\'e9 sociale ou }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4672210\charrsid7350483 similaires}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid3959146\charrsid7350483 ,}{\rtlch\fcs1 
+\af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  ou les num\'e9ros de permis de conduire ou les num\'e9ros de cartes d'identit\'e9.
+\par }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid4986868 (C) Responsabilit\'e9 pour les donn\'e9es du Client. POT n'assume aucune responsabilit\'e9 pour les donn\'e9
+es du Client, et l'utilisateur est seul responsable des donn\'e9es du Client et des cons\'e9quences de son utilisation}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid3959146\charrsid4986868 
+, conform\'e9ment \'e0 sa politique de traitement de donn\'e9es en vigueur}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid4986868 .}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par Le Client d\'e9gage POT (et ses affili\'e9s et leurs employ\'e9s, agents, dirigeants, directeurs et Clients) de toute r\'e9clamation, frais, dommages, pertes, responsabilit\'e9s et d\'e9penses y compris (i) la n\'e9
+gligence, l'inconduite ou la violation pr\'e9sum\'e9e ou non des pr\'e9sentes conditions par le Client, (ii) les relations du Client ou des diff\'e9
+rends avec l'un de ses propres clients ou partenaires commerciaux, (iii) tout service, Produit ou offre du Client utilis\'e9 en relation avec le Produit.
+\par Produits tiers. Si vous utilisez le Produit avec (ou pour envoyer des donn\'e9es Client) des Produits ou services de tiers (autoris\'e9s par les fonctionnalit\'e9s standard du Produit), vous (et non POT) serez enti\'e8
+rement responsable de tous les risques d\'e9coulant de votre utilisation de ces Produits ou services tiers et de l'utilisation des donn\'e9es du Client par ces tiers. POT n'est pas responsable de la fa\'e7on dont les tiers utilisent les donn\'e9
+es du Client une fois qu'ils ont quitt\'e9 nos syst\'e8mes.
+\par Agr\'e9gateur / Donn\'e9es anonymes. En plus de ses autres droits ci-dessus, POT peut regrouper les donn\'e9es du Client avec d'autres donn\'e9es. POT peut recueillir des donn\'e9
+es techniques et autres anonymes sur l'utilisation du Produit par le Client (\'ab Donn\'e9es agr\'e9g\'e9es / anonymes \'bb). POT poss\'e8de toutes les donn\'e9es agr\'e9g\'e9es / anonymes et peut utiliser des donn\'e9es agr\'e9g\'e9
+es / anonymes pour ses activit\'e9s de marketing, de production de rapports et d'autres fins commerciales licites.
+\par Divulgations forc\'e9es. POT peut partager les donn\'e9es du Client lorsque nous croyons en toute bonne foi que l'acc\'e8s, l'utilisation, la conservation ou la divulgation de ces informations sont raisonnablement n\'e9cessaires pour: (i) satisfaire \'e0
+ toute loi applicable, proc\'e9dure l\'e9gale ou demande gouvernementale; (ii) appliquer ces conditions, y compris l'investigation des violations potentielles des pr\'e9sentes; ou (iii) prot\'e9ger contre tout dommage imminent au Produit ou aux droits, 
+\'e0 la propri\'e9t\'e9 ou \'e0 la s\'e9curit\'e9 de POT, de ses utilisateurs ou du public tel que requis ou permis par la loi applicable.
+\par Autre collecte et manipulation de donn\'e9es. POT utilise vos informations de compte (comme d\'e9crit dans la section 2) et certaines autres informations sur votre utilisation du Produit conform\'e9ment \'e0 notre politique de confidentialit\'e9.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 8. Propri\'e9t\'e9. }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par POT et ses conc\'e9dants conservent tous les droits, titres et int\'e9r\'eats (y compris tous les droits de propri\'e9t\'e9
+ intellectuelle) sur le Produit et toute technologie et documentation connexe et sous-jacente. Le Client n'obtient qu'un droit d'utilisation limit\'e9 du Produit, ind\'e9pendamment de l'utilisation de mots tels que \'ab achat \'bb, \'ab vente \'bb
+ ou des termes similaires. Si le Client soumet des commentaires, des suggestions ou d'autres commentaires concernant le Produit, POT peut exploiter librement les commentaires (y compris dans le cadre du Produit) sans restriction en 
+raison de droits de propri\'e9t\'e9 intellectuelle ou autrement.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 9. R\'e9siliation et suspension. }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par 0. R\'e9siliation par le Client. Vous pouvez r\'e9silier ces conditions \'e0 tout moment en cessant toute utilisation du Produit et en supprimant tous les logiciels associ\'e9s.
+\par 1. R\'e9siliation ou suspension par POT. Pour les abonnements payants et les factures, POT peut r\'e9silier ou suspendre ces conditions si le Client ne parvient pas \'e0 rem\'e9dier \'e0 une violation dans les quinze (15) jours apr\'e8s notification \'e9
+crite. La notification \'e9crite peut se faire par tous moyens (courrier, message \'e9lectronique, fax, etc.). POT peut r\'e9silier ou suspendre ces conditions imm\'e9diatement suite \'e0
+ une violation du contrat par le Client ou des obligations en vertu des sections 4 (Restrictions) ou 7 (Obligations du Client) ou pour \'e9viter de nuire au Produit ou \'e0 d'autres Clients. Pour les plans d'essai et les versions b\'eata, POT peut r\'e9
+silier ou suspendre ces conditions \'e0 tout moment, pour n'importe quelle raison. En outre, si POT cesse d'offrir le Produit, ou si le droit ou la capacit\'e9 de POT \'e0 offrir le Produit est restreint, suspendu ou r\'e9sili\'e9 (que ce soit conform\'e9
+ment aux lois, App Marketplaces ou autres tiers), POT peut imm\'e9diatement r\'e9silier ou suspendre ces conditions. Dans ce cas, l\rquote abonnement payant est r\'e9sili\'e9 avec effet imm\'e9diat sans qu\rquote une faute ne puisse \'ea
+tre retenue dans le chef de POT. Le Client n\rquote aura pas droit au remboursement. \~
+\par 2. Effet de la r\'e9siliation. \'c0 la r\'e9siliation de ces conditions, votre droit au Produit sera automatiquement r\'e9sili\'e9 et vous devrez cesser d'utiliser le Produit et supprimer toutes les fonctionnalit\'e9s. Suite \'e0 la r\'e9
+siliation, vous n'aurez plus acc\'e8s aux donn\'e9es }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid13991877\charrsid7350483 employ\'e9s}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  dans le Produit et POT pourra supprimer toutes les donn\'e9es du Client en sa possession \'e0 tout momen
+t, sauf si la loi applicable l'interdit. Vous devrez supprimer toutes les informations confidentielles (ou les renvoyer \'e0 POT) en cas de r\'e9siliation de ces conditions ou de demande par POT. Les \'e9l\'e9ments suivants survivront \'e0 la r\'e9
+siliation: Section 4 (Restrictions), Section 6 (Donn\'e9es utilisateurs), Section 7 (Obligations du Client), Sections 8 (Propri\'e9t\'e9) \'e0 14 (G\'e9n\'e9ral).
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 10. Garantie. }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid4916214 DANS LA LIMITE AUTORIS\'c9E PAR LA LOI, LE PRODUIT EST FOURNI \'ab\~EN L'\'c9TAT\~\'bb ET POT ET SES CONC\'c9DANTS D
+\'c9CLINENT EXPRESS\'c9MENT TOUTES LES GARANTIES ET REPR\'c9SENTATIONS DE TOUTES SORTES, Y COMPRIS TOUTE GARANTIE DE NON-CONTREFA\'c7ON, TITRE, ADAPTATION \'c0 UN BUT PARTICULIER, FONCTIONNALIT\'c9 QU'ELLE SOIT EXPRESSE, IMPLICITE OU STATUTAIRE.
+\par LE PRODUIT N'EST PAS DESTINE A FOURNIR DES SERVICES JURIDIQUES OU AUTRES. DANS TOUTE LA MESURE PERMISE PAR LA LOI APPLICABLE. POT D\'c9CLINE EXPRESS\'c9MENT TOUTE GARANTIE QUE L'UTILISATION DU PRODUIT ASSURERA VOTRE CONFORMIT\'c9 AUX OBLIGATIONS L\'c9
+GALES OU R\'c9GLEMENTAIRES OU QUE LES R\'c9SULTATS DU PRODUIT SERONT EXACTS OU SUFFISANTS \'c0 VOS BESOINS. DANS TOUTE LA MESURE PERMISE PAR LA LOI APPLICABLE, IL N'EXISTE AUCUNE GARANTIE QUE LE PRODUIT SERA EXEMPT D'ERREURS, QUE L'ACC\'c8
+S SERA CONTINU OU ININTERROMPU, QUE TOUTE INFORMATION FOURNIE OU UTILIS\'c9E AVEC LE PRODUIT SERA S\'c9CURIS\'c9E, EXACTE, COMPL\'c8TE OU OPPORTUNE, OU QUE LES DONN\'c9ES DU CLIENT SERONT CONSERV\'c9
+ES OU MAINTENUES SANS PERTE. DANS TOUTE LA MESURE PERMISE PAR LA LOI APPLICABLE, POT NE PEUT \'caTRE TENUE RESPONSABLE DES D\'c9FAILLANCES OU AUTRES PROBL\'c8MES INH\'c9RENTS \'c0 L'UTILISATION DE L'INTERNET ET DES COMMUNICATIONS \'c9
+LECTRONIQUES OU D'AUTRES SYST\'c8MES EN DEHORS DU CONTR\'d4LE RAISONNABLE DE POT. VOUS POUVEZ AVOIR D'AUTRES DROITS STATUTAIRES}{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 
+\b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7350483\charrsid4916214 .}{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid4916214  TOUTEFOIS, LA DUR\'c9
+E DES GARANTIES N\'c9CESSAIRES PAR LA LOI, LE CAS \'c9CH\'c9ANT, SERA LIMIT\'c9E \'c0 LA MESURE MAXIMALE AUTORIS\'c9E PAR LA LOI.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 11. Limitation de responsabilit\'e9}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par DANS TOUTE LA MESURE PERMISE PAR LA LOI, POT ET SES CONC\'c9DANTS NE SERONT EN AUCUN CAS RESPONSABLES ENVERS VOUS OU TOUT TIERS POUR TOUTE PERTE DE PROFITS, PERTE D'UTILISATION, DONN\'c9ES PERDUES, INTERRUPTION D'ACTIVIT\'c9, \'c9CHEC DE M\'c9CANISME DE S
+\'c9CURIT\'c9 OU AUTRE DOMMAGES SP\'c9CIAUX, INDIRECTS, ACCIDENTELS, PUNITIFS OU CONS\'c9CUTIFS DE QUELQUE SORTE QUE CE SOIT, M\'caME SI AVIS\'c9 DE LA POSSIBILIT\'c9 DE TELS PERTES OU DOMMAGES.
+\par Le Client reconna\'eet que les limitations susmentionn\'e9es sont un \'e9l\'e9ment essentiel des pr\'e9sentes conditions et une r\'e9partition raisonnable des risques entre les parties, et qu'en l'absence de 
+telles limitations, les dispositions relatives aux prix et autres dispositions de ces conditions seraient substantiellement diff\'e9rentes.
+\par Le Produit est contr\'f4l\'e9 et exploit\'e9 \'e0 partir d'installations en Europe, mais peut impliquer la transmission de donn\'e9es ou l'utilisation de services de tiers \'e0 l'\'e9chelle mondiale. POT ne fait aucune d\'e9
+claration que le Produit est appropri\'e9 ou disponible pour une utilisation dans d'autres emplacements. Ceux qui acc\'e8dent ou utilisent le Produit dans d'autres juridictions le font de leur propre gr\'e9 et sont enti\'e8
+rement responsables du respect de toutes les Lois. Sauf mention contraire explicite, tous les \'e9l\'e9ments figurant sur le Produit sont uniquement destin\'e9s aux utilisateurs situ\'e9s au }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7350483\charrsid7350483 Luxembourg.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 12. Informations confidentielles. }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par Dans le cadre de l'acc\'e8s au Produit, le Client peut avoir acc\'e8s \'e0 des informations confidentielles ou }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid8531801\charrsid7350483 
+des informations qui sont la }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 propri\'e9t\'e9 de POT (\'ab Informations confidentielles \'bb
+). Les Informations confidentielles comprennent le Logiciel, tous les \'e9l\'e9
+ments non-publics du Produit et toutes les informations de performance concernant le Produit. Les Informations confidentielles excluent les informations que le Client connaissait d\'e9j\'e0 l\'e9
+galement ou qui devenaient publiques sans faute du Client. Vous vous abstenez \'e0 utiliser les Informations confidentielles sauf pour l'utilisation autoris\'e9e du Produit et vous ne devez pas divulguer les Informations confidentielles sauf aux employ
+\'e9s et aux agents l\'e9gitimes. Le Client peut \'e9galement divulguer des Informations confidentielles dans la mesure requise par la loi apr\'e8s un pr\'e9avis raisonnable \'e0 POT et }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7350483\charrsid7350483 d\rquote }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 une coop\'e9
+ration pour obtenir un traitement confidentiel. La divulgation non autoris\'e9e des Informations confidentielles peut causer des dommages, et POT peut demander une injonction ou une r\'e9paration \'e9quitable devant un tribunal comp\'e9tent.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 13. Modifications des termes. }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par POT peut modifier ces conditions (y compris les prix des Produits et les plans), avec un avis donn\'e9 par e-mail ou via le Produit. Si vous avez un plan d'essai ou utilisez des versions b\'eata, toutes les modifications entreront en vigueur de fa\'e7
+on imm\'e9diate, et si vous n'acceptiez pas les modifications, votre seul recours consiste \'e0 mettre fin }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7350483 aux pr\'e9sentes }{\rtlch\fcs1 
+\af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 conditions. Au cas o\'f9
+ vous avez un forfait d'abonnement payant ou de facture, vous devez informer POT dans les quinze (15) jours suivant l'avis des modifications que vous n}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid7350483 e l\rquote }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 acceptez pas, et POT (\'e0
+ son choix et comme seul recours) peut: ( a) vous permettre de continuer sous la version pr\'e9c\'e9dente de ces conditions jusqu'\'e0 votre prochaine date d'expiration ou de renouvellement (apr\'e8s laquelle les conditions modifi\'e9
+es s'appliqueront) ou (b) vous permettre de r\'e9silier ces conditions et de recevoir un remboursement au prorata bas\'e9 sur la partie inutilis\'e9e de votre contrat d'abonnement ou le nombre de factures non utilis\'e9es restant dans votre }{\rtlch\fcs1 
+\af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794 abonnement}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 . En cas d
+e modification des pr\'e9sentes conditions, vous devrez peut-\'eatre cliquer sur \'ab\~accepter les conditions modifi\'e9es\~\'bb afin de continuer \'e0 utiliser le Produit, et dans tous les cas, l'utilisation continue du Produit apr\'e8s l'entr\'e9
+e en vigueur des modifications constitue votre acceptation des modifications. En tant qu'exception \'e0 ces r\'e8gles concernant les modifications de ces conditions, (i) si nous apportons des modifications \'e0
+ la politique de facturation, la version de la politique de facturation en vigueur au moment de l'achat (ou du renouvellement) d'un abonnement payant ou d'une facture est applicable (ii) tout changement \'e0 notre politique de confidentialit\'e9
+ entrera automatiquement en vigueur d\'e8s sa publication, tel que d\'e9crit dans la Politique de confidentialit\'e9.
+\par }{\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 \b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 14. G\'e9n\'e9ral.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par 0. M\'e9canique des contrats et interpr\'e9tation. Ces conditions constituent l'int\'e9gralit\'e9 de l'accord entre vous et POT relatif au Produit et remplacent tout accord ant\'e9rieur ou contemporain relatif au Produit. Aucune disposition de ces 
+conditions ne sera r\'e9put\'e9e renonc\'e9e \'e0 moins que la renonciation soit \'e9crite et sign\'e9e par POT. \'c0 l'exception de ce qui est \'e9nonc\'e9 \'e0 la section 13 (Modifications des termes), toutes les modifications aux pr\'e9
+sentes conditions doivent \'eatre \'e9crites et valid\'e9es par les deux parties. Dans ces conditions, les titres sont pour la commodit\'e9 seulement et \'ab\~y compris\~\'bb et des termes similaires seront interpr\'e9t\'e9
+s sans limitation. Si une disposition de ces conditions est jug\'e9e inapplicable, cette disposition sera appliqu\'e9e dans la mesure permise par la loi et les dispositions restantes resteront en vigueur.
+\par 1. Affectation. Vous ne pouvez pas c\'e9der ou transf\'e9rer ces conditions ou tous les droits ci-dessous, et toute tentative d'assignation ou de transfert en violation de ce qui pr\'e9c\'e8de sera annul\'e9e. POT peut librement c\'e9der ou transf\'e9
+rer ses droits ou obligations en vertu des pr\'e9sentes \'e0 sa seule discr\'e9tion. Les pr\'e9sentes conditions lieront et profiteront au profit des successeurs et ayants-droit autoris\'e9s de chaque partie.
+\par 2. Informations de contact.
+\par }\pard \ltrpar\ql \li1416\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin1416\itap0\pararsid4812794 {\rtlch\fcs1 \ab\af31506\afs24 \ltrch\fcs0 
+\b\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 POT S.\'e0r.l.}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  \line n\'b0
+ RCS: }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794 B226310}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 \line Adresse: }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794 2}{\rtlch\fcs1 \af31506\afs24 
+\ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 , }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794 op der Nuddelsfabrik}{\rtlch\fcs1 
+\af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 , L -}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794 3424}{
+\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483  }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794 Dudelange
+}{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 \line G\'e9rant: Kilian SAFFRAN\line Email : }{\field\fldedit{\*\fldinst {\rtlch\fcs1 \af31507 \ltrch\fcs0 \insrsid8853739 
+ HYPERLINK "mailto:info@pot.lu" }}{\fldrslt {\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \cs17\fs24\ul\cf2\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794\charrsid751154 info@pot.lu}}}\sectd \ltrsect
+\linex0\headery708\footery708\colsx708\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 \fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid4812794  }{\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 
+\par }\pard \ltrpar\qj \li0\ri0\sb100\sa100\sbauto1\saauto1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14359264 {\rtlch\fcs1 \af31506\afs24 \ltrch\fcs0 
+\fs24\lang5132\langfe4103\dbch\af0\langnp5132\langfenp4103\insrsid14878522\charrsid7350483 3. Avis. Nous pouvons envoyer des notifications et des newsletters \'e0 votre adresse e-mail ou via le Produit. 
+\par 4. Logiciels open source. Le Produit peut contenir ou \'eatre fourni avec des composants sous licence \'ab\~open source\~\'bb (\'ab\~OSS\~\'bb). Nous listons les logiciels open source dans un fichier d\'e9di\'e9. Dans la mesure requise p
+ar la licence initiale, les termes de licence de ces logiciels s'appliqueront \'e0 la place des termes des pr\'e9sentes conditions.
+\par 5. Force majeure. POT ne sera pas responsable envers le Client de quelque mani\'e8re que ce soit pour tout manquement ou retard dans l'ex\'e9cution de l'une de ses obligations en vertu de ces termes d\'e9coulant de tout \'e9v\'e9
+nement ou circonstance hors du contr\'f4le raisonnable de POT.
+\par }{\*\themedata 504b030414000600080000002100e9de0fbfff0000001c020000130000005b436f6e74656e745f54797065735d2e786d6cac91cb4ec3301045f748fc83e52d4a
+9cb2400825e982c78ec7a27cc0c8992416c9d8b2a755fbf74cd25442a820166c2cd933f79e3be372bd1f07b5c3989ca74aaff2422b24eb1b475da5df374fd9ad
+5689811a183c61a50f98f4babebc2837878049899a52a57be670674cb23d8e90721f90a4d2fa3802cb35762680fd800ecd7551dc18eb899138e3c943d7e503b6
+b01d583deee5f99824e290b4ba3f364eac4a430883b3c092d4eca8f946c916422ecab927f52ea42b89a1cd59c254f919b0e85e6535d135a8de20f20b8c12c3b0
+0c895fcf6720192de6bf3b9e89ecdbd6596cbcdd8eb28e7c365ecc4ec1ff1460f53fe813d3cc7f5b7f020000ffff0300504b030414000600080000002100a5d6
+a7e7c0000000360100000b0000005f72656c732f2e72656c73848fcf6ac3300c87ef85bd83d17d51d2c31825762fa590432fa37d00e1287f68221bdb1bebdb4f
+c7060abb0884a4eff7a93dfeae8bf9e194e720169aaa06c3e2433fcb68e1763dbf7f82c985a4a725085b787086a37bdbb55fbc50d1a33ccd311ba548b6309512
+0f88d94fbc52ae4264d1c910d24a45db3462247fa791715fd71f989e19e0364cd3f51652d73760ae8fa8c9ffb3c330cc9e4fc17faf2ce545046e37944c69e462
+a1a82fe353bd90a865aad41ed0b5b8f9d6fd010000ffff0300504b0304140006000800000021006b799616830000008a0000001c0000007468656d652f746865
+6d652f7468656d654d616e616765722e786d6c0ccc4d0ac3201040e17da17790d93763bb284562b2cbaebbf600439c1a41c7a0d29fdbd7e5e38337cedf14d59b
+4b0d592c9c070d8a65cd2e88b7f07c2ca71ba8da481cc52c6ce1c715e6e97818c9b48d13df49c873517d23d59085adb5dd20d6b52bd521ef2cdd5eb9246a3d8b
+4757e8d3f729e245eb2b260a0238fd010000ffff0300504b030414000600080000002100a4d06d8592070000c3200000160000007468656d652f7468656d652f
+7468656d65312e786d6cec59cd8b1bc915bf07f23f347d97f5d5ad8fc1f2a24fcfda33b6b164873dd648a5eef2547789aad28cc56208de532e81c026e49085bd
+ed21842cecc22eb9e48f31d8249b3f22afaa5bdd5552c99e191c3061463074977eefd5afde7bf5de53d5ddcf5e26d4bbc05c1096f6fcfa9d9aefe174ce16248d
+7afeb3d9a4d2f13d2151ba4094a5b8e76fb0f03fbbf7eb5fdd454732c609f6403e1547a8e7c752ae8eaa5531876124eeb0154ee1bb25e30992f0caa3ea82a34b
+d09bd06aa3566b55134452df4b51026a1f2f97648efd7b5bb5630aba5329d4c09cf2a9528af7b18bf3ba42888d1852ee5d20daf3618605bb9ce197d2f7281212
+bee8f935fde757efddada2a35c88ca03b286dc44ffe572b9c0e2bca1e7e4d1593169108441ab5fe8d7002af771e3f6b8356e15fa3400cde7b0d28c8badb3dd18
+0639d600658f0edda3f6a859b7f086fee61ee77ea83e165e8332fdc11e7e321982152dbc0665f8700f1f0eba8391ad5f83327c6b0fdfaef54741dbd2af413125
+e9f91eba16b69ac3ed6a0bc892d16327bc1b06937623575ea2201a8ae852532c592a0fc55a825e303e018002522449eac9cd0a2fd11ce277882839e3c43b2151
+0c81b7422913305c6bd426b526fc579f403f698fa2238c0c69c50b9888bd21c5c713734e56b2e73f00adbe0179fbf3cf6f5efff8e6f54f6fbefaeacdebbfe773
+6b5596dc314a2353ee97effef09f6f7eebfdfb876f7ff9fa8fd9d4bb7861e2dffded77effef1cff7a9871597a678fba7efdffdf8fddb3ffffe5f7ffddaa1bdcf
+d199099f91040bef11bef49eb20416e8e08fcff8f524663122a6443f8d044a919ac5a17f2c630bfd68832872e006d8b6e3730ea9c605bcbf7e61119ec67c2d89
+43e3c338b180a78cd101e34e2b3c547319669eadd3c83d395f9bb8a7085db8e61ea2d4f2f278bd821c4b5c2a8731b6683ea1289528c229969efa8e9d63ec58dd
+178458763d2573ce045b4aef0be20d10719a6446ceac682a858e49027ed9b80882bf2ddb9c3ef7068cba563dc2173612f606a20ef2334c2d33de476b891297ca
+194aa869f013246317c9e986cf4ddc5848f0748429f3c60b2c844be63187f51a4e7f0869c6edf653ba496c2497e4dca5f30431662247ec7c18a364e5c24e491a
+9bd8cfc5398428f29e30e9829f327b87a877f0034a0fbafb39c196bb3f9c0d9e418635299501a2be5973872fef6366c5ef74439708bb524d9f27568aed73e28c
+8ec13ab242fb04638a2ed10263efd9e70e0603b6b26c5e927e10435639c6aec07a80ec5855ef2916d8d3cdcd7e9e3c21c20ad9298ed8013ea79b9dc4b3416982
+f821cd8fc0eba6cdc750ea1257003ca6f37313f88840f707f1e234ca63013a8ce03ea8f5498cac02a6de853b5e37dcf2df55f618eccb17168d2bec4b90c1d796
+81c46ecabcd7363344ad09ca809921e8325ce916442cf79722aab86ab1b5536e696fdad20dd01d594d4f42d20f76403bbd4ff8bfeb7da0c378fb976f1c9bede3
+f43b6ec556b2ba66a77328991ceff4378770bb5dcd90f105f9f49b9a115aa74f30d491fd8c75dbd3dcf634feff7d4f73683fdf763287fa8ddb4ec6870ee3b693
+c90f573e4e2753362fd0d7a8038feca0471ffb24074f7d9684d2a9dc507c22f4c18f80df338b090c2a397dd6898b53c0550c8faaccc104162ee248cb789cc9df
+10194f63b482d3a1baaf944422571d096fc5041c1ae961a76e85a7ebe4942db2c3ce7a5d1d6c66955520598ed7c2621c0eaa64866eb5cb03bc42bd661be983d6
+2d01257b1d12c6643689a683447b3ba88ca48f75c1680e127a651f8545d7c1a2a3d46f5db5c702a8155e811fdc1efc4ceff96100222004e771d09c2f949f3257
+6fbdab9df9313d7dc89856044083bd8d80d2d35dc5f5e0f2d4eab250bb82a72d1246b8d924b46574832762f8199c47a71abd0a8debfaba5bbad4a2a74ca1e783
+d02a69b43bef6371535f83dc6e6ea0a9992968ea5df6fc5633849099a355cf5fc2a1313c262b881da17e73211ac19dcb5cf26cc3df24b3acb8902324e2cce03a
+e964d9202112738f92a4e7abe5176ea0a9ce219a5bbd0109e19325d785b4f2a99103a7db4ec6cb259e4bd3edc688b274f60a193ecb15ce6fb5f8cdc14a92adc1
+ddd37871e99dd1357f8a20c4c2765d19704104dc1dd4336b2e085c861589ac8cbf9dc294a75df3364ac750368ee82a46794531937906d7a9bca0a3df0a1b186f
+f99ac1a08649f2427816a9026b1ad5aaa645d5c8381cacba1f1652963392665933adaca2aaa63b8b59336ccbc08e2d6f56e40d565b13434e332b7c96ba77536e
+779beb76fa84a24a80c10bfb39aaee150a8241ad9ccca2a618efa76195b3f351bb766c17f8016a57291246d66f6dd5eed8ada811cee960f046951fe476a31686
+96dbbe525b5adf979b17dbecec05248f1174b96b2a8576255c5b73040dd154f72459da802df252e65b039ebc35273dffcb5ad80f868d7058a975c271256806b5
+4a27ec372bfd306cd6c761bd361a345e41619171520fb3bbfa095c60d04d7e63afc7f76eed93ed1dcd9d394baa4cdfca5735717d6b5f6f386eedbd99ba9cf73d
+0249e7cb5663d26d7607ad4ab7d99f5482d1a053e90e5b83caa8356c8f26a361d8e94e5ef9de850607fde630688d3b95567d38ac04ad9aa2dfe956da41a3d10f
+dafdce38e8bfcadb185879963e725b807935af7bff050000ffff0300504b0304140006000800000021000dd1909fb60000001b010000270000007468656d652f
+7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73848f4d0ac2301484f78277086f6fd3ba109126dd88d0add40384e4350d363f
+2451eced0dae2c082e8761be9969bb979dc9136332de3168aa1a083ae995719ac16db8ec8e4052164e89d93b64b060828e6f37ed1567914b284d262452282e31
+98720e274a939cd08a54f980ae38a38f56e422a3a641c8bbd048f7757da0f19b017cc524bd62107bd5001996509affb3fd381a89672f1f165dfe514173d98505
+28a2c6cce0239baa4c04ca5bbabac4df000000ffff0300504b01022d0014000600080000002100e9de0fbfff0000001c02000013000000000000000000000000
+00000000005b436f6e74656e745f54797065735d2e786d6c504b01022d0014000600080000002100a5d6a7e7c0000000360100000b0000000000000000000000
+0000300100005f72656c732f2e72656c73504b01022d00140006000800000021006b799616830000008a0000001c000000000000000000000000001902000074
+68656d652f7468656d652f7468656d654d616e616765722e786d6c504b01022d0014000600080000002100a4d06d8592070000c3200000160000000000000000
+0000000000d60200007468656d652f7468656d652f7468656d65312e786d6c504b01022d00140006000800000021000dd1909fb60000001b0100002700000000
+0000000000000000009c0a00007468656d652f7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73504b050600000000050005005d010000970b00000000}
+{\*\colorschememapping 3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d22796573223f3e0d0a3c613a636c724d
+617020786d6c6e733a613d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f64726177696e676d6c2f323030362f6d6169
+6e22206267313d226c743122207478313d22646b3122206267323d226c743222207478323d22646b322220616363656e74313d22616363656e74312220616363
+656e74323d22616363656e74322220616363656e74333d22616363656e74332220616363656e74343d22616363656e74342220616363656e74353d22616363656e74352220616363656e74363d22616363656e74362220686c696e6b3d22686c696e6b2220666f6c486c696e6b3d22666f6c486c696e6b222f3e}
+{\*\latentstyles\lsdstimax376\lsdlockeddef0\lsdsemihiddendef0\lsdunhideuseddef0\lsdqformatdef0\lsdprioritydef99{\lsdlockedexcept \lsdqformat1 \lsdpriority0 \lsdlocked0 Normal;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 1;
+\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 2;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 3;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 4;
+\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 5;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 6;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 7;
+\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 8;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 9;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 1;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 5;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 6;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 7;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 8;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index 9;
+\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 1;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 2;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 3;
+\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 4;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 5;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 6;
+\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 7;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 8;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 9;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Normal Indent;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 footnote text;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 annotation text;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 header;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 footer;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 index heading;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority35 \lsdlocked0 caption;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 table of figures;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 envelope address;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 envelope return;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 footnote reference;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 annotation reference;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 line number;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 page number;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 endnote reference;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 endnote text;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 table of authorities;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 macro;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 toa heading;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Bullet;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Number;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List 3;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List 5;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Bullet 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Bullet 3;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Bullet 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Bullet 5;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Number 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Number 3;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Number 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Number 5;\lsdqformat1 \lsdpriority10 \lsdlocked0 Title;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Closing;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Signature;\lsdsemihidden1 \lsdunhideused1 \lsdpriority1 \lsdlocked0 Default Paragraph Font;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text Indent;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Continue;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Continue 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Continue 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Continue 4;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Continue 5;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Message Header;\lsdqformat1 \lsdpriority11 \lsdlocked0 Subtitle;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Salutation;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Date;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text First Indent;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text First Indent 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Note Heading;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text Indent 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text Indent 3;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Block Text;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Hyperlink;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 FollowedHyperlink;\lsdqformat1 \lsdpriority22 \lsdlocked0 Strong;
+\lsdqformat1 \lsdpriority20 \lsdlocked0 Emphasis;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Document Map;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Plain Text;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 E-mail Signature;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Top of Form;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Bottom of Form;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Normal (Web);\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Acronym;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Address;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Cite;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Code;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Definition;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Keyboard;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Preformatted;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Sample;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Typewriter;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 HTML Variable;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Normal Table;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 annotation subject;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 No List;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Outline List 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Outline List 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Outline List 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Simple 1;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Simple 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Simple 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Classic 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Classic 2;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Classic 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Classic 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Colorful 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Colorful 2;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Colorful 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Columns 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Columns 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Columns 3;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Columns 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Columns 5;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 2;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 5;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 6;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 7;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Grid 8;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 2;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 5;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 6;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 7;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table List 8;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table 3D effects 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table 3D effects 2;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table 3D effects 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Contemporary;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Elegant;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Professional;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Subtle 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Subtle 2;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Web 1;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Web 2;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Web 3;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Balloon Text;\lsdpriority39 \lsdlocked0 Table Grid;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Table Theme;\lsdsemihidden1 \lsdlocked0 Placeholder Text;
+\lsdqformat1 \lsdpriority1 \lsdlocked0 No Spacing;\lsdpriority60 \lsdlocked0 Light Shading;\lsdpriority61 \lsdlocked0 Light List;\lsdpriority62 \lsdlocked0 Light Grid;\lsdpriority63 \lsdlocked0 Medium Shading 1;\lsdpriority64 \lsdlocked0 Medium Shading 2;
+\lsdpriority65 \lsdlocked0 Medium List 1;\lsdpriority66 \lsdlocked0 Medium List 2;\lsdpriority67 \lsdlocked0 Medium Grid 1;\lsdpriority68 \lsdlocked0 Medium Grid 2;\lsdpriority69 \lsdlocked0 Medium Grid 3;\lsdpriority70 \lsdlocked0 Dark List;
+\lsdpriority71 \lsdlocked0 Colorful Shading;\lsdpriority72 \lsdlocked0 Colorful List;\lsdpriority73 \lsdlocked0 Colorful Grid;\lsdpriority60 \lsdlocked0 Light Shading Accent 1;\lsdpriority61 \lsdlocked0 Light List Accent 1;
+\lsdpriority62 \lsdlocked0 Light Grid Accent 1;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 1;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 1;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 1;\lsdsemihidden1 \lsdlocked0 Revision;
+\lsdqformat1 \lsdpriority34 \lsdlocked0 List Paragraph;\lsdqformat1 \lsdpriority29 \lsdlocked0 Quote;\lsdqformat1 \lsdpriority30 \lsdlocked0 Intense Quote;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 1;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 1;
+\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 1;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 1;\lsdpriority70 \lsdlocked0 Dark List Accent 1;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 1;\lsdpriority72 \lsdlocked0 Colorful List Accent 1;
+\lsdpriority73 \lsdlocked0 Colorful Grid Accent 1;\lsdpriority60 \lsdlocked0 Light Shading Accent 2;\lsdpriority61 \lsdlocked0 Light List Accent 2;\lsdpriority62 \lsdlocked0 Light Grid Accent 2;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 2;
+\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 2;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 2;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 2;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 2;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 2;
+\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 2;\lsdpriority70 \lsdlocked0 Dark List Accent 2;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 2;\lsdpriority72 \lsdlocked0 Colorful List Accent 2;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 2;
+\lsdpriority60 \lsdlocked0 Light Shading Accent 3;\lsdpriority61 \lsdlocked0 Light List Accent 3;\lsdpriority62 \lsdlocked0 Light Grid Accent 3;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 3;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 3;
+\lsdpriority65 \lsdlocked0 Medium List 1 Accent 3;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 3;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 3;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 3;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 3;
+\lsdpriority70 \lsdlocked0 Dark List Accent 3;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 3;\lsdpriority72 \lsdlocked0 Colorful List Accent 3;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 3;\lsdpriority60 \lsdlocked0 Light Shading Accent 4;
+\lsdpriority61 \lsdlocked0 Light List Accent 4;\lsdpriority62 \lsdlocked0 Light Grid Accent 4;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 4;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 4;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 4;
+\lsdpriority66 \lsdlocked0 Medium List 2 Accent 4;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 4;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 4;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 4;\lsdpriority70 \lsdlocked0 Dark List Accent 4;
+\lsdpriority71 \lsdlocked0 Colorful Shading Accent 4;\lsdpriority72 \lsdlocked0 Colorful List Accent 4;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 4;\lsdpriority60 \lsdlocked0 Light Shading Accent 5;\lsdpriority61 \lsdlocked0 Light List Accent 5;
+\lsdpriority62 \lsdlocked0 Light Grid Accent 5;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 5;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 5;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 5;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 5;
+\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 5;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 5;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 5;\lsdpriority70 \lsdlocked0 Dark List Accent 5;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 5;
+\lsdpriority72 \lsdlocked0 Colorful List Accent 5;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 5;\lsdpriority60 \lsdlocked0 Light Shading Accent 6;\lsdpriority61 \lsdlocked0 Light List Accent 6;\lsdpriority62 \lsdlocked0 Light Grid Accent 6;
+\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 6;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 6;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 6;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 6;
+\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 6;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 6;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 6;\lsdpriority70 \lsdlocked0 Dark List Accent 6;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 6;
+\lsdpriority72 \lsdlocked0 Colorful List Accent 6;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 6;\lsdqformat1 \lsdpriority19 \lsdlocked0 Subtle Emphasis;\lsdqformat1 \lsdpriority21 \lsdlocked0 Intense Emphasis;
+\lsdqformat1 \lsdpriority31 \lsdlocked0 Subtle Reference;\lsdqformat1 \lsdpriority32 \lsdlocked0 Intense Reference;\lsdqformat1 \lsdpriority33 \lsdlocked0 Book Title;\lsdsemihidden1 \lsdunhideused1 \lsdpriority37 \lsdlocked0 Bibliography;
+\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority39 \lsdlocked0 TOC Heading;\lsdpriority41 \lsdlocked0 Plain Table 1;\lsdpriority42 \lsdlocked0 Plain Table 2;\lsdpriority43 \lsdlocked0 Plain Table 3;\lsdpriority44 \lsdlocked0 Plain Table 4;
+\lsdpriority45 \lsdlocked0 Plain Table 5;\lsdpriority40 \lsdlocked0 Grid Table Light;\lsdpriority46 \lsdlocked0 Grid Table 1 Light;\lsdpriority47 \lsdlocked0 Grid Table 2;\lsdpriority48 \lsdlocked0 Grid Table 3;\lsdpriority49 \lsdlocked0 Grid Table 4;
+\lsdpriority50 \lsdlocked0 Grid Table 5 Dark;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 1;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 1;
+\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 1;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 1;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 1;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 1;
+\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 1;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 2;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 2;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 2;
+\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 2;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 2;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 2;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 2;
+\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 3;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 3;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 3;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 3;
+\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 3;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 3;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 3;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 4;
+\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 4;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 4;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 4;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 4;
+\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 4;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 4;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 5;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 5;
+\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 5;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 5;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 5;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 5;
+\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 5;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 6;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 6;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 6;
+\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 6;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 6;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 6;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 6;
+\lsdpriority46 \lsdlocked0 List Table 1 Light;\lsdpriority47 \lsdlocked0 List Table 2;\lsdpriority48 \lsdlocked0 List Table 3;\lsdpriority49 \lsdlocked0 List Table 4;\lsdpriority50 \lsdlocked0 List Table 5 Dark;
+\lsdpriority51 \lsdlocked0 List Table 6 Colorful;\lsdpriority52 \lsdlocked0 List Table 7 Colorful;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 1;\lsdpriority47 \lsdlocked0 List Table 2 Accent 1;\lsdpriority48 \lsdlocked0 List Table 3 Accent 1;
+\lsdpriority49 \lsdlocked0 List Table 4 Accent 1;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 1;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 1;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 1;
+\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 2;\lsdpriority47 \lsdlocked0 List Table 2 Accent 2;\lsdpriority48 \lsdlocked0 List Table 3 Accent 2;\lsdpriority49 \lsdlocked0 List Table 4 Accent 2;
+\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 2;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 2;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 2;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 3;
+\lsdpriority47 \lsdlocked0 List Table 2 Accent 3;\lsdpriority48 \lsdlocked0 List Table 3 Accent 3;\lsdpriority49 \lsdlocked0 List Table 4 Accent 3;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 3;
+\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 3;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 3;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 4;\lsdpriority47 \lsdlocked0 List Table 2 Accent 4;
+\lsdpriority48 \lsdlocked0 List Table 3 Accent 4;\lsdpriority49 \lsdlocked0 List Table 4 Accent 4;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 4;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 4;
+\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 4;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 5;\lsdpriority47 \lsdlocked0 List Table 2 Accent 5;\lsdpriority48 \lsdlocked0 List Table 3 Accent 5;
+\lsdpriority49 \lsdlocked0 List Table 4 Accent 5;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 5;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 5;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 5;
+\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 6;\lsdpriority47 \lsdlocked0 List Table 2 Accent 6;\lsdpriority48 \lsdlocked0 List Table 3 Accent 6;\lsdpriority49 \lsdlocked0 List Table 4 Accent 6;
+\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 6;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 6;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 6;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Mention;
+\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Smart Hyperlink;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Hashtag;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Unresolved Mention;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Smart Link;}}{\*\datastore 01050000
+02000000180000004d73786d6c322e534158584d4c5265616465722e362e3000000000000000000000060000
+d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff090006000000000000000000000001000000010000000000000000100000feffffff00000000feffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+fffffffffffffffffdfffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ffffffffffffffffffffffffffffffff52006f006f007400200045006e00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500ffffffffffffffffffffffff0c6ad98892f1d411a65f0040963251e5000000000000000000000000803f
+a69a6f80d601feffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000
+00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000
+000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000000000000
+0000000000000000000000000000000000000000000000000105000000000000}}
\ No newline at end of file
diff --git a/install/Contrat de Maintenance logiciel.docx b/install/Contrat de Maintenance logiciel.docx
new file mode 100644 (file)
index 0000000..5e107c8
Binary files /dev/null and b/install/Contrat de Maintenance logiciel.docx differ
diff --git a/install/create_setup_windows.pl b/install/create_setup_windows.pl
new file mode 100644 (file)
index 0000000..948a2c9
--- /dev/null
@@ -0,0 +1,42 @@
+#!C:\Strawberry\perl\bin\perl.exe
+
+use strict;
+use File::Copy;
+use File::Copy::Recursive qw(rcopy);
+use File::Find::Rule;
+#use Getopt::Long;
+use File::Basename;
+use FindBin qw($Bin);
+use File::Path qw(make_path remove_tree);
+use Data::Dumper;
+my $tag="";
+# my $setup = "";
+my $reppath = dirname($Bin);
+
+# print "Repository Path:".$reppath."\n";
+# print "Release Path:".$releasepath."\n";
+# print "Setup Path:".$setuppath."\n";
+# chdir $reppath;
+# my $strtags = `"git.exe" for-each-ref --sort=-creatordate --format="%(refname)" refs/tags`;
+
+# # $setup = "director";
+
+# my @tags = split("\n",$strtags);
+# my @tex = grep(/^refs\/tags\/$tag$/,@tags);
+
+#   foreach my $t (reverse(@tags)){
+#     $t =~ s/refs\/tags\///;
+#     print $t."\n";
+#   }
+
+# #  exit(0);
+# #}
+print "Select tag:\nTag:";
+$tag = <STDIN>;
+chomp($tag);
+chdir($reppath.'/desktopapp');
+#system('npm run package-win32');
+#system('npm run package-win64');
+#system('"C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe" /DMyAppVersion='.$tag.' /DMySourceDir='.$reppath.' /DMySourceDir='.$reppath.' /DMySetupName=POT_Setup_32bit.exe "'.$reppath.'\\install\\windows\\pot_setup_32bit.iss"');
+system('"C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe" /DMyAppVersion='.$tag.' /DMyOutputDir='.$reppath.'\\website\\downloads /DMySourceDir='.$reppath.' /DMySetupName=POT_Setup_64bit.exe "'.$reppath.'\\install\\windows\\pot_setup_64bit.iss"');
+print "normal END!\n";
diff --git a/install/macos/Contents/Info.plist b/install/macos/Contents/Info.plist
new file mode 100644 (file)
index 0000000..9d4d8c2
--- /dev/null
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>CFBundleExecutable</key>
+       <string>creorga</string>
+       <key>CFBundleGetInfoString</key>
+       <string>Creorga {{VERSION}}, © 2016 DKS sarl</string>
+       <key>CFBundleIconFile</key>
+       <string>creorga.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>lu.dks.creorga</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleName</key>
+       <string>Creorga</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleShortVersionString</key>
+       <string>{{VERSION}}</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>{{VERSION}}</string>
+       <key>NSAppTransportSecurity</key>
+       <dict>
+    <key>NSAllowsArbitraryLoads</key>
+    <true/>
+       </dict>
+       <key>NSAppleScriptEnabled</key>
+       <true/>
+       <key>LSApplicationCategoryType</key>
+       <string>public.app-category.productivity</string>
+       <key>LSMinimumSystemVersion</key>
+       <string>10.6</string>
+       <key>LSMinimumSystemVersionByArchitecture</key>
+       <dict>
+               <key>i386</key>
+               <string>10.6.0</string>
+               <key>x86_64</key>
+               <string>10.6.0</string>
+       </dict>
+  <key>NSSupportsAutomaticGraphicsSwitching</key>
+  <true/>
+  <key>NSPrincipalClass</key>
+  <string>GeckoNSApplication</string>
+  <key>NSDisablePersistence</key>
+  <true/>
+</dict>
+</plist>
diff --git a/install/macos/Contents/PkgInfo b/install/macos/Contents/PkgInfo
new file mode 100644 (file)
index 0000000..1283317
--- /dev/null
@@ -0,0 +1 @@
+AAPL????
\ No newline at end of file
diff --git a/install/macos/DSStore b/install/macos/DSStore
new file mode 100644 (file)
index 0000000..8f1597e
Binary files /dev/null and b/install/macos/DSStore differ
diff --git a/install/macos/Distribution.xml b/install/macos/Distribution.xml
new file mode 100644 (file)
index 0000000..51ee7b2
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<installer-gui-script minSpecVersion="1">
+    <title>Creorga</title>
+    <allowed-os-versions>
+        <os-version min="10.6.*"/>s
+    </allowed-os-versions>
+    <must-close>
+        <app id="lu.dks.creorga" />
+    </must-close>
+    <background alignment="bottomleft" file="creorga.icns" scaling="proportional"/>
+    <license file="license.html" mime-type="text/html"/>
+    <pkg-ref id="lu.dks.creorga"/>
+    <options customize="never" require-scripts="false" rootVolumeOnly="true"/>
+    <choices-outline>
+        <line choice="default">
+            <line choice="lu.dks.creorga"/>
+        </line>
+    </choices-outline>
+    <choice id="default"/>
+    <choice id="lu.dks.creorga" visible="false">
+        <pkg-ref id="lu.dks.creorga"/>
+    </choice>
+    <pkg-ref id="lu.dks.creorga" onConclusion="none">Setup_Creorga.pkg</pkg-ref>
+</installer-gui-script>
\ No newline at end of file
diff --git a/install/macos/applauncher b/install/macos/applauncher
new file mode 100644 (file)
index 0000000..2050aea
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+PROFILE=${HOME}"/Library/Application Support/Creorga"
+CALLDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+if [ -e ${HOME}"/Library/Application Support/Creorga/Profiles/vpncfg.txt" ]
+then
+       "$CALLDIR/../Resources/Tools/vpnconnect.sh" ${HOME}"/Library/Application Support/Creorga/Profiles/vpncfg.txt"
+       sleep 5
+fi
+"$CALLDIR/creorga-bin" -app "$CALLDIR/../Resources/application.ini" $@
diff --git a/install/macos/icons/creorga.icns b/install/macos/icons/creorga.icns
new file mode 100644 (file)
index 0000000..2ddfa0b
Binary files /dev/null and b/install/macos/icons/creorga.icns differ
diff --git a/install/macos/pkg-dmg b/install/macos/pkg-dmg
new file mode 100644 (file)
index 0000000..f84ba96
--- /dev/null
@@ -0,0 +1,1520 @@
+#!/usr/bin/perl
+# ***** BEGIN LICENSE BLOCK *****
+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Original Code is pkg-dmg, a Mac OS X disk image (.dmg) packager
+#
+# The Initial Developer of the Original Code is
+# Mark Mentovai <mark@moxienet.com>.
+# Portions created by the Initial Developer are Copyright (C) 2005
+# the Initial Developer. All Rights Reserved.
+#
+# Contributor(s):
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 2 or later (the "GPL"), or
+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+# in which case the provisions of the GPL or the LGPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL or the LGPL, and not to allow others to
+# use your version of this file under the terms of the MPL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL or the LGPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the MPL, the GPL or the LGPL.
+#
+# ***** END LICENSE BLOCK *****
+
+use strict;
+use warnings;
+
+=pod
+
+=head1 NAME
+
+B<pkg-dmg> - Mac OS X disk image (.dmg) packager
+
+=head1 SYNOPSIS
+
+B<pkg-dmg>
+B<--source> I<source-folder>
+B<--target> I<target-image>
+[B<--format> I<format>]
+[B<--volname> I<volume-name>]
+[B<--tempdir> I<temp-dir>]
+[B<--mkdir> I<directory>]
+[B<--copy> I<source>[:I<dest>]]
+[B<--symlink> I<source>[:I<dest>]]
+[B<--license> I<file>]
+[B<--resource> I<file>]
+[B<--icon> I<icns-file>]
+[B<--attribute> I<a>:I<file>[:I<file>...]
+[B<--idme>]
+[B<--sourcefile>]
+[B<--verbosity> I<level>]
+[B<--dry-run>]
+
+=head1 DESCRIPTION
+
+I<pkg-dmg> takes a directory identified by I<source-folder> and transforms
+it into a disk image stored as I<target-image>.  The disk image will
+occupy the least space possible for its format, or the least space that the
+authors have been able to figure out how to achieve.
+
+=head1 OPTIONS
+
+=over 5
+
+==item B<--source> I<source-folder>
+
+Identifies the directory that will be packaged up.  This directory is not
+touched, a copy will be made in a temporary directory for staging purposes.
+See B<--tempdir>.
+
+==item B<--target> I<target-image>
+
+The disk image to create.  If it exists and is not in use, it will be
+overwritten.  If I<target-image> already contains a suitable extension,
+it will be used unmodified.  If no extension is present, or the extension
+is incorrect for the selected format, the proper extension will be added.
+See B<--format>.
+
+==item B<--format> I<format>
+
+The format to create the disk image in.  Valid values for I<format> are:
+     - UDZO - zlib-compressed, read-only; extension I<.dmg>
+     - UDBZ - bzip2-compressed, read-only; extension I<.dmg>;
+              create and use on 10.4 ("Tiger") and later only
+     - UDRW - read-write; extension I<.dmg>
+     - UDSP - read-write, sparse; extension I<.sparseimage>
+
+UDBZ is the default format.
+
+See L<hdiutil(1)> for a description of these formats.
+
+=item B<--volname> I<volume-name>
+
+The name of the volume in the disk image.  If not specified, I<volume-name>
+defaults to the name of the source directory from B<--source>.
+
+=item B<--tempdir> I<temp-dir>
+
+A temporary directory to stage intermediate files in.  I<temp-dir> must
+have enough space available to accommodate twice the size of the files
+being packaged.  If not specified, defaults to the same directory that
+the I<target-image> is to be placed in.  B<pkg-dmg> will remove any
+temporary files it places in I<temp-dir>.
+
+=item B<--mkdir> I<directory>
+
+Specifies a directory that should be created in the disk image.
+I<directory> and any ancestor directories will be created.  This is
+useful in conjunction with B<--copy>, when copying files to directories
+that may not exist in I<source-folder>.  B<--mkdir> may appear multiple
+times.
+
+=item B<--copy> I<source>[:I<dest>]
+
+Additional files to copy into the disk image.  If I<dest> is
+specified, I<source> is copied to the location I<dest> identifies,
+otherwise, I<source> is copied to the root of the new volume.  B<--copy>
+provides a way to package up a I<source-folder> by adding files to it
+without modifying the original I<source-folder>.  B<--copy> may appear
+multiple times.
+
+This option is useful for adding .DS_Store files and window backgrounds
+to disk images.
+
+=item B<--symlink> I<source>[:I<dest>]
+
+Like B<--copy>, but allows symlinks to point out of the volume. Empty symlink
+destinations are interpreted as "like the source path, but inside the dmg"
+
+This option is useful for adding symlinks to external resources,
+e.g. to /Applications.
+
+=item B<--license> I<file>
+
+A plain text file containing a license agreement to be displayed before
+the disk image is mounted.  English is the only supported language.  To
+include license agreements in other languages, in multiple languages,
+or to use formatted text, prepare a resource and use L<--resource>.
+
+=item B<--resource> I<file>
+
+A resource file to merge into I<target-image>.  If I<format> is UDZO or
+UDBZ, the disk image will be flattened to a single-fork file that contains
+the resource but may be freely transferred without any special encodings.
+I<file> must be in a format suitable for L<Rez(1)>.  See L<Rez(1)> for a
+description of the format, and L<hdiutil(1)> for a discussion on flattened
+disk images.  B<--resource> may appear multiple times.
+
+This option is useful for adding license agreements and other messages
+to disk images.
+
+=item B<--icon> I<icns-file>
+
+Specifies an I<icns> file that will be used as the icon for the root of
+the volume.  This file will be copied to the new volume and the custom
+icon attribute will be set on the root folder.
+
+=item B<--attribute> I<a>:I<file>[:I<file>...]
+
+Sets the attributes of I<file> to the attribute list in I<a>.  See
+L<SetFile(1)>
+
+=item B<--idme>
+
+Enable IDME to make the disk image "Internet-enabled."  The first time
+the image is mounted, if IDME processing is enabled on the system, the
+contents of the image will be copied out of the image and the image will
+be placed in the trash with IDME disabled.
+
+=item B<--sourcefile>
+
+If this option is present, I<source-folder> is treated as a file, and is
+placed as a file within the volume's root folder.  Without this option,
+I<source-folder> is treated as the volume root itself.
+
+=item B<--verbosity> I<level>
+
+Adjusts the level of loudness of B<pkg-dmg>.  The possible values for
+I<level> are:
+     0 - Only error messages are displayed.
+     1 - Print error messages and command invocations.
+     2 - Print everything, including command output.
+
+The default I<level> is 2.
+
+=item B<--dry-run>
+
+When specified, the commands that would be executed are printed, without
+actually executing them.  When commands depend on the output of previous
+commands, dummy values are displayed.
+
+=back
+
+=head1 NON-OPTIONS
+
+=over 5
+
+=item
+
+Resource forks aren't copied.
+
+=item
+
+The root folder of the created volume is designated as the folder
+to open when the volume is mounted.  See L<bless(8)>.
+
+=item
+
+All files in the volume are set to be world-readable, only writable
+by the owner, and world-executable when appropriate.  All other
+permissions bits are cleared.
+
+=item
+
+When possible, disk images are created without any partition tables.  This
+is what L<hdiutil(1)> refers to as I<-layout NONE>, and saves a handful of
+kilobytes.  The alternative, I<SPUD>, contains a partition table that
+is not terribly handy on disk images that are not intended to represent any
+physical disk.
+
+=item
+
+Read-write images are created with journaling off.  Any read-write image
+created by this tool is expected to be transient, and the goal of this tool
+is to create images which consume a minimum of space.
+
+=back
+
+=head1 EXAMPLE
+
+pkg-dmg --source /Applications/DeerPark.app --target ~/DeerPark.dmg
+  --sourcefile --volname DeerPark --icon ~/DeerPark.icns
+  --mkdir /.background
+  --copy DeerParkBackground.png:/.background/background.png
+  --copy DeerParkDSStore:/.DS_Store
+  --symlink /Applications:"/Drag to here"
+
+=head1 REQUIREMENTS
+
+I<pkg-dmg> has been tested with Mac OS X releases 10.2 ("Jaguar")
+through 10.4 ("Tiger").  Certain adjustments to behavior are made
+depending on the host system's release.  Mac OS X 10.3 ("Panther") or
+later are recommended.
+
+=head1 LICENSE
+
+MPL 1.1/GPL 2.0/LGPL 2.1.  Your choice.
+
+=head1 AUTHOR
+
+Mark Mentovai
+
+=head1 SEE ALSO
+
+L<bless(8)>, L<diskutil(8)>, L<hdid(8)>, L<hdiutil(1)>, L<Rez(1)>,
+L<rsync(1)>, L<SetFile(1)>
+
+=cut
+
+use Fcntl;
+use POSIX;
+use Getopt::Long;
+
+sub argumentEscape(@);
+sub cleanupDie($);
+sub command(@);
+sub commandInternal($@);
+sub commandInternalVerbosity($$@);
+sub commandOutput(@);
+sub commandOutputVerbosity($@);
+sub commandVerbosity($@);
+sub copyFiles($@);
+sub diskImageMaker($$$$$$$$);
+sub giveExtension($$);
+sub hdidMountImage($@);
+sub isFormatCompressed($);
+sub licenseMaker($$);
+sub pathSplit($);
+sub setAttributes($@);
+sub trapSignal($);
+sub usage();
+
+# Variables used as globals
+my(@gCleanup, %gConfig, $gDarwinMajor, $gDryRun, $gVerbosity);
+
+# Use the commands by name if they're expected to be in the user's
+# $PATH (/bin:/sbin:/usr/bin:/usr/sbin).  Otherwise, go by absolute
+# path.  These may be overridden with --config.
+%gConfig = ('cmd_bless'          => 'bless',
+            'cmd_chmod'          => 'chmod',
+            'cmd_diskutil'       => 'diskutil',
+            'cmd_du'             => 'du',
+            'cmd_hdid'           => 'hdid',
+            'cmd_hdiutil'        => 'hdiutil',
+            'cmd_mkdir'          => 'mkdir',
+            'cmd_mktemp'         => 'mktemp',
+            'cmd_Rez'            => '/Developer/Tools/Rez',
+            'cmd_rm'             => 'rm',
+            'cmd_rsync'          => 'rsync',
+            'cmd_SetFile'        => '/Developer/Tools/SetFile',
+
+            # create_directly indicates whether hdiutil create supports
+            # -srcfolder and -srcdevice.  It does on >= 10.3 (Panther).
+            # This is fixed up for earlier systems below.  If false,
+            # hdiutil create is used to create empty disk images that
+            # are manually filled.
+            'create_directly'    => 1,
+
+            # If hdiutil attach -mountpoint exists, use it to avoid
+            # mounting disk images in the default /Volumes.  This reduces
+            # the likelihood that someone will notice a mounted image and
+            # interfere with it.  Only available on >= 10.3 (Panther),
+            # fixed up for earlier systems below.
+            #
+            # This is presently turned off for all systems, because there
+            # is an infrequent synchronization problem during ejection.
+            # diskutil eject might return before the image is actually
+            # unmounted.  If pkg-dmg then attempts to clean up its
+            # temporary directory, it could remove items from a read-write
+            # disk image or attempt to remove items from a read-only disk
+            # image (or a read-only item from a read-write image) and fail,
+            # causing pkg-dmg to abort.  This problem is experienced
+            # under Tiger, which appears to eject asynchronously where
+            # previous systems treated it as a synchronous operation.
+            # Using hdiutil attach -mountpoint didn't always keep images
+            # from showing up on the desktop anyway.
+            'hdiutil_mountpoint' => 0,
+
+            # hdiutil makehybrid results in optimized disk images that
+            # consume less space and mount more quickly.  Use it when
+            # it's available, but that's only on >= 10.3 (Panther).
+            # If false, hdiutil create is used instead.  Fixed up for
+            # earlier systems below.
+            'makehybrid'         => 1,
+
+            # hdiutil create doesn't allow specifying a folder to open
+            # at volume mount time, so those images are mounted and
+            # their root folders made holy with bless -openfolder.  But
+            # only on >= 10.3 (Panther).  Earlier systems are out of luck.
+            # Even on Panther, bless refuses to run unless root.
+            # Fixed up below.
+            'openfolder_bless'   => 1,
+
+            # It's possible to save a few more kilobytes by including the
+            # partition only without any partition table in the image.
+            # This is a good idea on any system, so turn this option off.
+            #
+            # Except it's buggy.  "-layout NONE" seems to be creating
+            # disk images with more data than just the partition table
+            # stripped out.  You might wind up losing the end of the
+            # filesystem - the last file (or several) might be incomplete.
+            'partition_table'    => 1,
+
+            # To create a partition table-less image from something
+            # created by makehybrid, the hybrid image needs to be
+            # mounted and a new image made from the device associated
+            # with the relevant partition.  This requires >= 10.4
+            # (Tiger), presumably because earlier systems have
+            # problems creating images from devices themselves attached
+            # to images.  If this is false, makehybrid images will
+            # have partition tables, regardless of the partition_table
+            # setting.  Fixed up for earlier systems below.
+            'recursive_access'   => 1);
+
+# --verbosity
+$gVerbosity = 2;
+
+# --dry-run
+$gDryRun = 0;
+
+# %gConfig fix-ups based on features and bugs present in certain releases.
+my($ignore, $uname_r, $uname_s);
+($uname_s, $ignore, $uname_r, $ignore, $ignore) = POSIX::uname();
+if($uname_s eq 'Darwin') {
+  ($gDarwinMajor, $ignore) = split(/\./, $uname_r, 2);
+
+  # $major is the Darwin major release, which for our purposes, is 4 higher
+  # than the interesting digit in a Mac OS X release.
+  if($gDarwinMajor <= 6) {
+    # <= 10.2 (Jaguar)
+    # hdiutil create does not support -srcfolder or -srcdevice
+    $gConfig{'create_directly'} = 0;
+    # hdiutil attach does not support -mountpoint
+    $gConfig{'hdiutil_mountpoint'} = 0;
+    # hdiutil mkhybrid does not exist
+    $gConfig{'makehybrid'} = 0;
+  }
+  if($gDarwinMajor <= 7) {
+    # <= 10.3 (Panther)
+    # Can't mount a disk image and then make a disk image from the device
+    $gConfig{'recursive_access'} = 0;
+    # bless does not support -openfolder on 10.2 (Jaguar) and must run
+    # as root under 10.3 (Panther)
+    $gConfig{'openfolder_bless'} = 0;
+  }
+}
+else {
+  # If it's not Mac OS X, just assume all of those good features are
+  # available.  They're not, but things will fail long before they
+  # have a chance to make a difference.
+  #
+  # Now, if someone wanted to document some of these private formats...
+  print STDERR ($0.": warning, not running on Mac OS X, ".
+   "this could be interesting.\n");
+}
+
+# Non-global variables used in Getopt
+my(@attributes, @copyFiles, @createSymlinks, $iconFile, $idme, $licenseFile,
+ @makeDirs, $outputFormat, @resourceFiles, $sourceFile, $sourceFolder,
+ $targetImage, $tempDir, $volumeName);
+
+# --format
+$outputFormat = 'UDBZ';
+
+# --idme
+$idme = 0;
+
+# --sourcefile
+$sourceFile = 0;
+
+# Leaving this might screw up the Apple tools.
+delete $ENV{'NEXT_ROOT'};
+
+# This script can get pretty messy, so trap a few signals.
+$SIG{'INT'} = \&trapSignal;
+$SIG{'HUP'} = \&trapSignal;
+$SIG{'TERM'} = \&trapSignal;
+
+Getopt::Long::Configure('pass_through');
+GetOptions('source=s'    => \$sourceFolder,
+           'target=s'    => \$targetImage,
+           'volname=s'   => \$volumeName,
+           'format=s'    => \$outputFormat,
+           'tempdir=s'   => \$tempDir,
+           'mkdir=s'     => \@makeDirs,
+           'copy=s'      => \@copyFiles,
+           'symlink=s'   => \@createSymlinks,
+           'license=s'   => \$licenseFile,
+           'resource=s'  => \@resourceFiles,
+           'icon=s'      => \$iconFile,
+           'attribute=s' => \@attributes,
+           'idme'        => \$idme,
+           'sourcefile'  => \$sourceFile,
+           'verbosity=i' => \$gVerbosity,
+           'dry-run'     => \$gDryRun,
+           'config=s'    => \%gConfig); # "hidden" option not in usage()
+
+if(@ARGV) {
+  # All arguments are parsed by Getopt
+  usage();
+  exit(1);
+}
+
+if($gVerbosity<0 || $gVerbosity>2) {
+  usage();
+  exit(1);
+}
+
+if(!defined($sourceFolder) || $sourceFolder eq '' ||
+ !defined($targetImage) || $targetImage eq '') {
+  # --source and --target are required arguments
+  usage();
+  exit(1);
+}
+
+# Make sure $sourceFolder doesn't contain trailing slashes.  It messes with
+# rsync.
+while(substr($sourceFolder, -1) eq '/') {
+  chop($sourceFolder);
+}
+
+if(!defined($volumeName)) {
+  # Default volumeName is the name of the source directory.
+  my(@components);
+  @components = pathSplit($sourceFolder);
+  $volumeName = pop(@components);
+}
+
+my(@tempDirComponents, $targetImageFilename);
+@tempDirComponents = pathSplit($targetImage);
+$targetImageFilename = pop(@tempDirComponents);
+
+if(defined($tempDir)) {
+  @tempDirComponents = pathSplit($tempDir);
+}
+else {
+  # Default tempDir is the same directory as what is specified for
+  # targetImage
+  $tempDir = join('/', @tempDirComponents);
+}
+
+# Ensure that the path of the target image has a suitable extension.  If
+# it didn't, hdiutil would add one, and we wouldn't be able to find the
+# file.
+#
+# Note that $targetImageFilename is not being reset.  This is because it's
+# used to build other names below, and we don't need to be adding all sorts
+# of extra unnecessary extensions to the name.
+my($originalTargetImage, $requiredExtension);
+$originalTargetImage = $targetImage;
+if($outputFormat eq 'UDSP') {
+  $requiredExtension = '.sparseimage';
+}
+else {
+  $requiredExtension = '.dmg';
+}
+$targetImage = giveExtension($originalTargetImage, $requiredExtension);
+
+if($targetImage ne $originalTargetImage) {
+  print STDERR ($0.": warning: target image extension is being added\n");
+  print STDERR ('  The new filename is '.
+   giveExtension($targetImageFilename,$requiredExtension)."\n");
+}
+
+# Make a temporary directory in $tempDir for our own nefarious purposes.
+my(@output, $tempSubdir, $tempSubdirTemplate);
+$tempSubdirTemplate=join('/', @tempDirComponents,
+ 'pkg-dmg.'.$$.'.XXXXXXXX');
+if(!(@output = commandOutput($gConfig{'cmd_mktemp'}, '-d',
+ $tempSubdirTemplate)) || $#output != 0) {
+  cleanupDie('mktemp failed');
+}
+
+if($gDryRun) {
+  (@output)=($tempSubdirTemplate);
+}
+
+($tempSubdir) = @output;
+
+push(@gCleanup,
+ sub {commandVerbosity(0, $gConfig{'cmd_rm'}, '-rf', $tempSubdir);});
+
+my($tempMount, $tempRoot, @tempsToMake);
+$tempRoot = $tempSubdir.'/stage';
+$tempMount = $tempSubdir.'/mount';
+push(@tempsToMake, $tempRoot);
+if($gConfig{'hdiutil_mountpoint'}) {
+  push(@tempsToMake, $tempMount);
+}
+
+if(command($gConfig{'cmd_mkdir'}, @tempsToMake) != 0) {
+  cleanupDie('mkdir tempRoot/tempMount failed');
+}
+
+# This cleanup object is not strictly necessary, because $tempRoot is inside
+# of $tempSubdir, but the rest of the script relies on this object being
+# on the cleanup stack and expects to remove it.
+push(@gCleanup,
+ sub {commandVerbosity(0, $gConfig{'cmd_rm'}, '-rf', $tempRoot);});
+
+# If $sourceFile is true, it means that $sourceFolder is to be treated as
+# a file and placed as a file within the volume root, as opposed to being
+# treated as the volume root itself.  rsync will do this by default, if no
+# trailing '/' is present.  With a trailing '/', $sourceFolder becomes
+# $tempRoot, instead of becoming an entry in $tempRoot.
+if(command($gConfig{'cmd_rsync'}, '-a', '--copy-unsafe-links',
+ $sourceFolder.($sourceFile?'':'/'),$tempRoot) != 0) {
+  cleanupDie('rsync failed');
+}
+
+if(@makeDirs) {
+  my($makeDir, @tempDirsToMake);
+  foreach $makeDir (@makeDirs) {
+    if($makeDir =~ /^\//) {
+      push(@tempDirsToMake, $tempRoot.$makeDir);
+    }
+    else {
+      push(@tempDirsToMake, $tempRoot.'/'.$makeDir);
+    }
+  }
+  if(command($gConfig{'cmd_mkdir'}, '-p', @tempDirsToMake) != 0) {
+    cleanupDie('mkdir failed');
+  }
+}
+
+# copy files and/or create symlinks
+copyFiles($tempRoot, 'copy', @copyFiles);
+copyFiles($tempRoot, 'symlink', @createSymlinks);
+
+if($gConfig{'create_directly'}) {
+  # If create_directly is false, the contents will be rsynced into a
+  # disk image and they would lose their attributes.
+  setAttributes($tempRoot, @attributes);
+}
+
+if(defined($iconFile)) {
+  if(command($gConfig{'cmd_rsync'}, '-a', '--copy-unsafe-links', $iconFile,
+   $tempRoot.'/.VolumeIcon.icns') != 0) {
+    cleanupDie('rsync failed for volume icon');
+  }
+
+  # It's pointless to set the attributes of the root when diskutil create
+  # -srcfolder is being used.  In that case, the attributes will be set
+  # later, after the image is already created.
+  if(isFormatCompressed($outputFormat) &&
+   (command($gConfig{'cmd_SetFile'}, '-a', 'C', $tempRoot) != 0)) {
+    cleanupDie('SetFile failed');
+  }
+}
+
+if(command($gConfig{'cmd_chmod'}, '-R', 'a+rX,a-st,u+w,go-w',
+ $tempRoot) != 0) {
+  cleanupDie('chmod failed');
+}
+
+my($unflattenable);
+if(isFormatCompressed($outputFormat)) {
+  $unflattenable = 1;
+}
+else {
+  $unflattenable = 0;
+}
+
+diskImageMaker($tempRoot, $targetImage, $outputFormat, $volumeName,
+ $tempSubdir, $tempMount, $targetImageFilename, defined($iconFile));
+
+if(defined($licenseFile) && $licenseFile ne '') {
+  my($licenseResource);
+  $licenseResource = $tempSubdir.'/license.r';
+  if(!licenseMaker($licenseFile, $licenseResource)) {
+    cleanupDie('licenseMaker failed');
+  }
+  push(@resourceFiles, $licenseResource);
+  # Don't add a cleanup object because licenseResource is in tempSubdir.
+}
+
+if(@resourceFiles) {
+  # Add resources, such as a license agreement.
+
+  # Only unflatten read-only and compressed images.  It's not supported
+  # on other image times.
+  if($unflattenable &&
+   (command($gConfig{'cmd_hdiutil'}, 'unflatten', $targetImage)) != 0) {
+    cleanupDie('hdiutil unflatten failed');
+  }
+  # Don't push flatten onto the cleanup stack.  If we fail now, we'll be
+  # removing $targetImage anyway.
+
+  # Type definitions come from Carbon.r.
+  if(command($gConfig{'cmd_Rez'}, 'Carbon.r', @resourceFiles, '-a', '-o',
+   $targetImage) != 0) {
+    cleanupDie('Rez failed');
+  }
+
+  # Flatten.  This merges the resource fork into the data fork, so no
+  # special encoding is needed to transfer the file.
+  if($unflattenable &&
+   (command($gConfig{'cmd_hdiutil'}, 'flatten', $targetImage)) != 0) {
+    cleanupDie('hdiutil flatten failed');
+  }
+}
+
+# $tempSubdir is no longer needed.  It's buried on the stack below the
+# rm of the fresh image file.  Splice in this fashion is equivalent to
+# pop-save, pop, push-save.
+splice(@gCleanup, -2, 1);
+# No need to remove licenseResource separately, it's in tempSubdir.
+if(command($gConfig{'cmd_rm'}, '-rf', $tempSubdir) != 0) {
+  cleanupDie('rm -rf tempSubdir failed');
+}
+
+if($idme) {
+  if(command($gConfig{'cmd_hdiutil'}, 'internet-enable', '-yes',
+   $targetImage) != 0) {
+    cleanupDie('hdiutil internet-enable failed');
+  }
+}
+
+# Done.
+
+exit(0);
+
+# argumentEscape(@arguments)
+#
+# Takes a list of @arguments and makes them shell-safe.
+sub argumentEscape(@) {
+  my(@arguments);
+  @arguments = @_;
+  my($argument, @argumentsOut);
+  foreach $argument (@arguments) {
+    $argument =~ s%([^A-Za-z0-9_\-/.=+,])%\\$1%g;
+    push(@argumentsOut, $argument);
+  }
+  return @argumentsOut;
+}
+
+# cleanupDie($message)
+#
+# Displays $message as an error message, and then runs through the
+# @gCleanup stack, performing any cleanup operations needed before
+# exiting.  Does not return, exits with exit status 1.
+sub cleanupDie($) {
+  my($message);
+  ($message) = @_;
+  print STDERR ($0.': '.$message.(@gCleanup?' (cleaning up)':'')."\n");
+  while(@gCleanup) {
+    my($subroutine);
+    $subroutine = pop(@gCleanup);
+    &$subroutine;
+  }
+  exit(1);
+}
+
+# command(@arguments)
+#
+# Runs the specified command at the verbosity level defined by $gVerbosity.
+# Returns nonzero on failure, returning the exit status if appropriate.
+# Discards command output.
+sub command(@) {
+  my(@arguments);
+  @arguments = @_;
+  return commandVerbosity($gVerbosity,@arguments);
+}
+
+# commandInternal($command, @arguments)
+#
+# Runs the specified internal command at the verbosity level defined by
+# $gVerbosity.
+# Returns zero(!) on failure, because commandInternal is supposed to be a
+# direct replacement for the Perl system call wrappers, which, unlike shell
+# commands and C equivalent system calls, return true (instead of 0) to
+# indicate success.
+sub commandInternal($@) {
+  my(@arguments, $command);
+  ($command, @arguments) = @_;
+  return commandInternalVerbosity($gVerbosity, $command, @arguments);
+}
+
+# commandInternalVerbosity($verbosity, $command, @arguments)
+#
+# Run an internal command, printing a bogus command invocation message if
+# $verbosity is true.
+#
+# If $command is unlink:
+# Removes the files specified by @arguments.  Wraps unlink.
+#
+# If $command is symlink:
+# Creates the symlink specified by @arguments. Wraps symlink.
+sub commandInternalVerbosity($$@) {
+  my(@arguments, $command, $verbosity);
+  ($verbosity, $command, @arguments) = @_;
+  if($command eq 'unlink') {
+    if($verbosity || $gDryRun) {
+      print(join(' ', 'rm', '-f', argumentEscape(@arguments))."\n");
+    }
+    if($gDryRun) {
+      return $#arguments+1;
+    }
+    return unlink(@arguments);
+  }
+  elsif($command eq 'symlink') {
+    if($verbosity || $gDryRun) {
+      print(join(' ', 'ln', '-s', argumentEscape(@arguments))."\n");
+    }
+    if($gDryRun) {
+      return 1;
+    }
+    my($source, $target);
+    ($source, $target) = @arguments;
+    return symlink($source, $target);
+  }
+}
+
+# commandOutput(@arguments)
+#
+# Runs the specified command at the verbosity level defined by $gVerbosity.
+# Output is returned in an array of lines.  undef is returned on failure.
+# The exit status is available in $?.
+sub commandOutput(@) {
+  my(@arguments);
+  @arguments = @_;
+  return commandOutputVerbosity($gVerbosity, @arguments);
+}
+
+# commandOutputVerbosity($verbosity, @arguments)
+#
+# Runs the specified command at the verbosity level defined by the
+# $verbosity argument.  Output is returned in an array of lines.  undef is
+# returned on failure.  The exit status is available in $?.
+#
+# If an error occurs in fork or exec, an error message is printed to
+# stderr and undef is returned.
+#
+# If $verbosity is 0, the command invocation is not printed, and its
+# stdout is not echoed back to stdout.
+#
+# If $verbosity is 1, the command invocation is printed.
+#
+# If $verbosity is 2, the command invocation is printed and the output
+# from stdout is echoed back to stdout.
+#
+# Regardless of $verbosity, stderr is left connected.
+sub commandOutputVerbosity($@) {
+  my(@arguments, $verbosity);
+  ($verbosity, @arguments) = @_;
+  my($pid);
+  if($verbosity || $gDryRun) {
+    print(join(' ', argumentEscape(@arguments))."\n");
+  }
+  if($gDryRun) {
+    return(1);
+  }
+  if (!defined($pid = open(*COMMAND, '-|'))) {
+    printf STDERR ($0.': fork: '.$!."\n");
+    return undef;
+  }
+  elsif ($pid) {
+    # parent
+    my(@lines);
+    while(!eof(*COMMAND)) {
+      my($line);
+      chop($line = <COMMAND>);
+      if($verbosity > 1) {
+        print($line."\n");
+      }
+      push(@lines, $line);
+    }
+    close(*COMMAND);
+    if ($? == -1) {
+      printf STDERR ($0.': fork: '.$!."\n");
+      return undef;
+    }
+    elsif ($? & 127) {
+      printf STDERR ($0.': exited on signal '.($? & 127).
+       ($? & 128 ? ', core dumped' : '')."\n");
+      return undef;
+    }
+    return @lines;
+  }
+  else {
+    # child; this form of exec is immune to shell games
+    if(!exec {$arguments[0]} (@arguments)) {
+      printf STDERR ($0.': exec: '.$!."\n");
+      exit(-1);
+    }
+  }
+}
+
+# commandVerbosity($verbosity, @arguments)
+#
+# Runs the specified command at the verbosity level defined by the
+# $verbosity argument.  Returns nonzero on failure, returning the exit
+# status if appropriate.  Discards command output.
+sub commandVerbosity($@) {
+  my(@arguments, $verbosity);
+  ($verbosity, @arguments) = @_;
+  if(!defined(commandOutputVerbosity($verbosity, @arguments))) {
+    return -1;
+  }
+  return $?;
+}
+
+# copyFiles($tempRoot, $method, @arguments)
+#
+# Copies files or create symlinks in the disk image.
+# See --copy and --symlink descriptions for details.
+# If $method is 'copy', @arguments are interpreted as source:target, if $method
+# is 'symlink', @arguments are interpreted as symlink:target.
+sub copyFiles($@) {
+  my(@fileList, $method, $tempRoot);
+  ($tempRoot, $method, @fileList) = @_;
+  my($file, $isSymlink);
+  $isSymlink = ($method eq 'symlink');
+  foreach $file (@fileList) {
+    my($source, $target);
+    ($source, $target) = split(/:/, $file);
+    if(!defined($target) and $isSymlink) {
+      # empty symlink targets would result in an invalid target and fail,
+      # but they shall be interpreted as "like source path, but inside dmg"
+      $target = $source;
+    }
+    if(!defined($target)) {
+      $target = $tempRoot;
+    }
+    elsif($target =~ /^\//) {
+      $target = $tempRoot.$target;
+    }
+    else {
+      $target = $tempRoot.'/'.$target;
+    }
+
+    my($success);
+    if($isSymlink) {
+      $success = commandInternal('symlink', $source, $target);
+    }
+    else {
+      $success = !command($gConfig{'cmd_rsync'}, '-a', '--copy-unsafe-links',
+                          $source, $target);
+    }
+    if(!$success) {
+      cleanupDie('copyFiles failed for method '.$method);
+    }
+  }
+}
+
+# diskImageMaker($source, $destination, $format, $name, $tempDir, $tempMount,
+#  $baseName, $setRootIcon)
+#
+# Creates a disk image in $destination of format $format corresponding to the
+# source directory $source.  $name is the volume name.  $tempDir is a good
+# place to write temporary files, which should be empty (aside from the other
+# things that this script might create there, like stage and mount).
+# $tempMount is a mount point for temporary disk images.  $baseName is the
+# name of the disk image, and is presently unused.  $setRootIcon is true if
+# a volume icon was added to the staged $source and indicates that the
+# custom volume icon bit on the volume root needs to be set.
+sub diskImageMaker($$$$$$$$) {
+  my($baseName, $destination, $format, $name, $setRootIcon, $source,
+   $tempDir, $tempMount);
+  ($source, $destination, $format, $name, $tempDir, $tempMount,
+   $baseName, $setRootIcon) = @_;
+  if(isFormatCompressed($format)) {
+    my($uncompressedImage);
+
+    if($gConfig{'makehybrid'}) {
+      my($hybridImage);
+      $hybridImage = giveExtension($tempDir.'/hybrid', '.dmg');
+
+      if(command($gConfig{'cmd_hdiutil'}, 'makehybrid', '-hfs',
+       '-hfs-volume-name', $name, '-hfs-openfolder', $source, '-ov',
+       $source, '-o', $hybridImage) != 0) {
+        cleanupDie('hdiutil makehybrid failed');
+      }
+
+      $uncompressedImage = $hybridImage;
+
+      # $source is no longer needed and will be removed before anything
+      # else can fail.  splice in this form is the same as pop/push.
+      splice(@gCleanup, -1, 1,
+       sub {commandInternalVerbosity(0, 'unlink', $hybridImage);});
+
+      if(command($gConfig{'cmd_rm'}, '-rf', $source) != 0) {
+        cleanupDie('rm -rf failed');
+      }
+
+      if(!$gConfig{'partition_table'} && $gConfig{'recursive_access'}) {
+        # Even if we do want to create disk images without partition tables,
+        # it's impossible unless recursive_access is set.
+        my($rootDevice, $partitionDevice, $partitionMountPoint);
+
+        if(!(($rootDevice, $partitionDevice, $partitionMountPoint) =
+         hdidMountImage($tempMount, '-readonly', $hybridImage))) {
+          cleanupDie('hdid mount failed');
+        }
+
+        push(@gCleanup, sub {commandVerbosity(0,
+         $gConfig{'cmd_diskutil'}, 'eject', $rootDevice);});
+
+        my($udrwImage);
+        $udrwImage = giveExtension($tempDir.'/udrw', '.dmg');
+
+        if(command($gConfig{'cmd_hdiutil'}, 'create', '-format', 'UDRW',
+         '-ov', '-srcdevice', $partitionDevice, $udrwImage) != 0) {
+          cleanupDie('hdiutil create failed');
+        }
+
+        $uncompressedImage = $udrwImage;
+
+        # Going to eject before anything else can fail.  Get the eject off
+        # the stack.
+        pop(@gCleanup);
+
+        # $hybridImage will be removed soon, but until then, it needs to
+        # stay on the cleanup stack.  It needs to wait until after
+        # ejection.  $udrwImage is staying around.  Make it appear as
+        # though it's been done before $hybridImage.
+        #
+        # splice in this form is the same as popping one element to
+        # @tempCleanup and pushing the subroutine.
+        my(@tempCleanup);
+        @tempCleanup = splice(@gCleanup, -1, 1,
+         sub {commandInternalVerbosity(0, 'unlink', $udrwImage);});
+        push(@gCleanup, @tempCleanup);
+
+        if(command($gConfig{'cmd_diskutil'}, 'eject', $rootDevice) != 0) {
+          cleanupDie('diskutil eject failed');
+        }
+
+        # Pop unlink of $uncompressedImage
+        pop(@gCleanup);
+
+        if(commandInternal('unlink', $hybridImage) != 1) {
+          cleanupDie('unlink hybridImage failed: '.$!);
+        }
+      }
+    }
+    else {
+      # makehybrid is not available, fall back to making a UDRW and
+      # converting to a compressed image.  It ought to be possible to
+      # create a compressed image directly, but those come out far too
+      # large (journaling?) and need to be read-write to fix up the
+      # volume icon anyway.  Luckily, we can take advantage of a single
+      # call back into this function.
+      my($udrwImage);
+      $udrwImage = giveExtension($tempDir.'/udrw', '.dmg');
+
+      diskImageMaker($source, $udrwImage, 'UDRW', $name, $tempDir,
+       $tempMount, $baseName, $setRootIcon);
+
+      # The call back into diskImageMaker already removed $source.
+
+      $uncompressedImage = $udrwImage;
+    }
+
+    # The uncompressed disk image is now in its final form.  Compress it.
+    # Jaguar doesn't support hdiutil convert -ov, but it always allows
+    # overwriting.
+    # bzip2-compressed UDBZ images can only be created and mounted on 10.4
+    # and later.  The bzip2-level imagekey is only effective when creating
+    # images in 10.5.  In 10.4, bzip2-level is harmlessly ignored, and the
+    # default value of 1 is always used.
+    if(command($gConfig{'cmd_hdiutil'}, 'convert', '-format', $format,
+     '-imagekey', ($format eq 'UDBZ' ? 'bzip2-level=9' : 'zlib-level=9'),
+     (defined($gDarwinMajor) && $gDarwinMajor <= 6 ? () : ('-ov')),
+     $uncompressedImage, '-o', $destination) != 0) {
+      cleanupDie('hdiutil convert failed');
+    }
+
+    # $uncompressedImage is going to be unlinked before anything else can
+    # fail.  splice in this form is the same as pop/push.
+    splice(@gCleanup, -1, 1,
+     sub {commandInternalVerbosity(0, 'unlink', $destination);});
+
+    if(commandInternal('unlink', $uncompressedImage) != 1) {
+      cleanupDie('unlink uncompressedImage failed: '.$!);
+    }
+
+    # At this point, the only thing that the compressed block has added to
+    # the cleanup stack is the removal of $destination.  $source has already
+    # been removed, and its cleanup entry has been removed as well.
+  }
+  elsif($format eq 'UDRW' || $format eq 'UDSP') {
+    my(@extraArguments);
+    if(!$gConfig{'partition_table'}) {
+      @extraArguments = ('-layout', 'NONE');
+    }
+
+    if($gConfig{'create_directly'}) {
+      # Use -fs HFS+ to suppress the journal.
+      if(command($gConfig{'cmd_hdiutil'}, 'create', '-format', $format,
+       @extraArguments, '-fs', 'HFS+', '-volname', $name,
+       '-ov', '-srcfolder', $source, $destination) != 0) {
+        cleanupDie('hdiutil create failed');
+      }
+
+      # $source is no longer needed and will be removed before anything
+      # else can fail.  splice in this form is the same as pop/push.
+      splice(@gCleanup, -1, 1,
+       sub {commandInternalVerbosity(0, 'unlink', $destination);});
+
+      if(command($gConfig{'cmd_rm'}, '-rf', $source) != 0) {
+        cleanupDie('rm -rf failed');
+      }
+    }
+    else {
+      # hdiutil create does not support -srcfolder or -srcdevice, it only
+      # knows how to create blank images.  Figure out how large an image
+      # is needed, create it, and fill it.  This is needed for Jaguar.
+
+      # Use native block size for hdiutil create -sectors.
+      delete $ENV{'BLOCKSIZE'};
+
+      my(@duOutput, $ignore, $sizeBlocks, $sizeOverhead, $sizeTotal, $type);
+      if(!(@output = commandOutput($gConfig{'cmd_du'}, '-s', $tempRoot)) ||
+       $? != 0) {
+        cleanupDie('du failed');
+      }
+      ($sizeBlocks, $ignore) = split(' ', $output[0], 2);
+
+      # The filesystem itself takes up 152 blocks of its own blocks for the
+      # filesystem up to 8192 blocks, plus 64 blocks for every additional
+      # 4096 blocks or portion thereof.
+      $sizeOverhead = 152 + 64 * POSIX::ceil(
+       (($sizeBlocks - 8192) > 0) ? (($sizeBlocks - 8192) / (4096 - 64)) : 0);
+
+      # The number of blocks must be divisible by 8.
+      my($mod);
+      if($mod = ($sizeOverhead % 8)) {
+        $sizeOverhead += 8 - $mod;
+      }
+
+      # sectors is taken as the size of a disk, not a filesystem, so the
+      # partition table eats into it.
+      if($gConfig{'partition_table'}) {
+        $sizeOverhead += 80;
+      }
+
+      # That was hard.  Leave some breathing room anyway.  Use 1024 sectors
+      # (512kB).  These read-write images wouldn't be useful if they didn't
+      # have at least a little free space.
+      $sizeTotal = $sizeBlocks + $sizeOverhead + 1024;
+
+      # Minimum sizes - these numbers are larger on Jaguar than on later
+      # systems.  Just use the Jaguar numbers, since it's unlikely to wind
+      # up here on any other release.
+      if($gConfig{'partition_table'} && $sizeTotal < 8272) {
+        $sizeTotal = 8272;
+      }
+      if(!$gConfig{'partition_table'} && $sizeTotal < 8192) {
+        $sizeTotal = 8192;
+      }
+
+      # hdiutil create without -srcfolder or -srcdevice will not accept
+      # -format.  It uses -type.  Fortunately, the two supported formats
+      # here map directly to the only two supported types.
+      if ($format eq 'UDSP') {
+        $type = 'SPARSE';
+      }
+      else {
+        $type = 'UDIF';
+      }
+
+      if(command($gConfig{'cmd_hdiutil'}, 'create', '-type', $type,
+       @extraArguments, '-fs', 'HFS+', '-volname', $name,
+       '-ov', '-sectors', $sizeTotal, $destination) != 0) {
+        cleanupDie('hdiutil create failed');
+      }
+
+      push(@gCleanup,
+       sub {commandInternalVerbosity(0, 'unlink', $destination);});
+
+      # The rsync will occur shortly.
+    }
+
+    my($mounted, $rootDevice, $partitionDevice, $partitionMountPoint);
+
+    $mounted=0;
+    if(!$gConfig{'create_directly'} || $gConfig{'openfolder_bless'} ||
+     $setRootIcon) {
+      # The disk image only needs to be mounted if:
+      #  create_directly is false, because the content needs to be copied
+      #  openfolder_bless is true, because bless -openfolder needs to run
+      #  setRootIcon is true, because the root needs its attributes set.
+      if(!(($rootDevice, $partitionDevice, $partitionMountPoint) =
+       hdidMountImage($tempMount, $destination))) {
+        cleanupDie('hdid mount failed');
+      }
+
+      $mounted=1;
+
+      push(@gCleanup, sub {commandVerbosity(0,
+       $gConfig{'cmd_diskutil'}, 'eject', $rootDevice);});
+    }
+
+    if(!$gConfig{'create_directly'}) {
+      # Couldn't create and copy directly in one fell swoop.  Now that
+      # the volume is mounted, copy the files.  --copy-unsafe-links is
+      # unnecessary since it was used to copy everything to the staging
+      # area.  There can be no more unsafe links.
+      if(command($gConfig{'cmd_rsync'}, '-a',
+       $source.'/',$partitionMountPoint) != 0) {
+        cleanupDie('rsync to new volume failed');
+      }
+
+      # We need to get the rm -rf of $source off the stack, because it's
+      # being cleaned up here.  There are two items now on top of it:
+      # removing the target image and, above that, ejecting it.  Splice it
+      # out.
+      my(@tempCleanup);
+      @tempCleanup = splice(@gCleanup, -2);
+      # The next splice is the same as popping once and pushing @tempCleanup.
+      splice(@gCleanup, -1, 1, @tempCleanup);
+
+      if(command($gConfig{'cmd_rm'}, '-rf', $source) != 0) {
+        cleanupDie('rm -rf failed');
+      }
+    }
+
+    if($gConfig{'openfolder_bless'}) {
+      # On Tiger, the bless docs say to use --openfolder, but only
+      # --openfolder is accepted on Panther.  Tiger takes it with a single
+      # dash too.  Jaguar is out of luck.
+      if(command($gConfig{'cmd_bless'}, '-openfolder',
+       $partitionMountPoint) != 0) {
+        cleanupDie('bless failed');
+      }
+    }
+
+    setAttributes($partitionMountPoint, @attributes);
+
+    if($setRootIcon) {
+      # When "hdiutil create -srcfolder" is used, the root folder's
+      # attributes are not copied to the new volume.  Fix up.
+
+      if(command($gConfig{'cmd_SetFile'}, '-a', 'C',
+       $partitionMountPoint) != 0) {
+        cleanupDie('SetFile failed');
+      }
+    }
+
+    if($mounted) {
+      # Pop diskutil eject
+      pop(@gCleanup);
+
+      if(command($gConfig{'cmd_diskutil'}, 'eject', $rootDevice) != 0) {
+        cleanupDie('diskutil eject failed');
+      }
+    }
+
+    # End of UDRW/UDSP section.  At this point, $source has been removed
+    # and its cleanup entry has been removed from the stack.
+  }
+  else {
+    cleanupDie('unrecognized format');
+    print STDERR ($0.": unrecognized format\n");
+    exit(1);
+  }
+}
+
+# giveExtension($file, $extension)
+#
+# If $file does not end in $extension, $extension is added.  The new
+# filename is returned.
+sub giveExtension($$) {
+  my($extension, $file);
+  ($file, $extension) = @_;
+  if(substr($file, -length($extension)) ne $extension) {
+    return $file.$extension;
+  }
+  return $file;
+}
+
+# hdidMountImage($mountPoint, @arguments)
+#
+# Runs the hdid command with arguments specified by @arguments.
+# @arguments may be a single-element array containing the name of the
+# disk image to mount.  Returns a three-element array, with elements
+# corresponding to:
+#  - The root device of the mounted image, suitable for ejection
+#  - The device corresponding to the mounted partition
+#  - The mounted partition's mount point
+#
+# If running on a system that supports easy mounting at points outside
+# of the default /Volumes with hdiutil attach, it is used instead of hdid,
+# and $mountPoint is used as the mount point.
+#
+# The root device will differ from the partition device when the disk
+# image contains a partition table, otherwise, they will be identical.
+#
+# If hdid fails, undef is returned.
+sub hdidMountImage($@) {
+  my(@arguments, @command, $mountPoint);
+  ($mountPoint, @arguments) = @_;
+  my(@output);
+
+  if($gConfig{'hdiutil_mountpoint'}) {
+    @command=($gConfig{'cmd_hdiutil'}, 'attach', @arguments,
+     '-mountpoint', $mountPoint);
+  }
+  else {
+    @command=($gConfig{'cmd_hdid'}, @arguments);
+  }
+
+  if(!(@output = commandOutput(@command)) ||
+   $? != 0) {
+    return undef;
+  }
+
+  if($gDryRun) {
+    return('/dev/diskX','/dev/diskXsY','/Volumes/'.$volumeName);
+  }
+
+  my($line, $restOfLine, $rootDevice);
+
+  foreach $line (@output) {
+    my($device, $mountpoint);
+    if($line !~ /^\/dev\//) {
+      # Consider only lines that correspond to /dev entries
+      next;
+    }
+    ($device, $restOfLine) = split(' ', $line, 2);
+
+    if(!defined($rootDevice) || $rootDevice eq '') {
+      # If this is the first device seen, it's the root device to be
+      # used for ejection.  Keep it.
+      $rootDevice = $device;
+    }
+
+    if($restOfLine =~ /(\/.*)/) {
+      # The first partition with a mount point is the interesting one.  It's
+      # usually Apple_HFS and usually the last one in the list, but beware of
+      # the possibility of other filesystem types and the Apple_Free partition.
+      # If the disk image contains no partition table, the partition will not
+      # have a type, so look for the mount point by looking for a slash.
+      $mountpoint = $1;
+      return($rootDevice, $device, $mountpoint);
+    }
+  }
+
+  # No mount point?  This is bad.  If there's a root device, eject it.
+  if(defined($rootDevice) && $rootDevice ne '') {
+    # Failing anyway, so don't care about failure
+    commandVerbosity(0, $gConfig{'cmd_diskutil'}, 'eject', $rootDevice);
+  }
+
+  return undef;
+}
+
+# isFormatCompressed($format)
+#
+# Returns true if $format corresponds to a compressed disk image format.
+# Returns false otherwise.
+sub isFormatCompressed($) {
+  my($format);
+  ($format) = @_;
+  return $format eq 'UDZO' || $format eq 'UDBZ';
+}
+
+# licenseMaker($text, $resource)
+#
+# Takes a plain text file at path $text and creates a license agreement
+# resource containing the text at path $license.  English-only, and
+# no special formatting.  This is the bare-bones stuff.  For more
+# intricate license agreements, create your own resource.
+#
+# ftp://ftp.apple.com/developer/Development_Kits/SLAs_for_UDIFs_1.0.dmg
+sub licenseMaker($$) {
+  my($resource, $text);
+  ($text, $resource) = @_;
+  if(!sysopen(*TEXT, $text, O_RDONLY)) {
+    print STDERR ($0.': licenseMaker: sysopen text: '.$!."\n");
+    return 0;
+  }
+  if(!sysopen(*RESOURCE, $resource, O_WRONLY|O_CREAT|O_EXCL)) {
+    print STDERR ($0.': licenseMaker: sysopen resource: '.$!."\n");
+    return 0;
+  }
+  print RESOURCE << '__EOT__';
+// See /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h for language IDs.
+data 'LPic' (5000) {
+  // Default language ID, 0 = English
+  $"0000"
+  // Number of entries in list
+  $"0001"
+
+  // Entry 1
+  // Language ID, 0 = English
+  $"0000"
+  // Resource ID, 0 = STR#/TEXT/styl 5000
+  $"0000"
+  // Multibyte language, 0 = no
+  $"0000"
+};
+
+resource 'STR#' (5000, "English") {
+  {
+    // Language (unused?) = English
+    "English",
+    // Agree
+    "Agree",
+    // Disagree
+    "Disagree",
+__EOT__
+    # This stuff needs double-quotes for interpolations to work.
+    print RESOURCE ("    // Print, ellipsis is 0xC9\n");
+    print RESOURCE ("    \"Print\xc9\",\n");
+    print RESOURCE ("    // Save As, ellipsis is 0xC9\n");
+    print RESOURCE ("    \"Save As\xc9\",\n");
+    print RESOURCE ('    // Descriptive text, curly quotes are 0xD2 and 0xD3'.
+     "\n");
+    print RESOURCE ('    "If you agree to the terms of this license '.
+     "agreement, click \xd2Agree\xd3 to access the software.  If you ".
+     "do not agree, press \xd2Disagree.\xd3\"\n");
+print RESOURCE << '__EOT__';
+  };
+};
+
+// Beware of 1024(?) byte (character?) line length limitation.  Split up long
+// lines.
+// If straight quotes are used ("), remember to escape them (\").
+// Newline is \n, to leave a blank line, use two of them.
+// 0xD2 and 0xD3 are curly double-quotes ("), 0xD4 and 0xD5 are curly
+//   single quotes ('), 0xD5 is also the apostrophe.
+data 'TEXT' (5000, "English") {
+__EOT__
+
+  while(!eof(*TEXT)) {
+    my($line);
+    chop($line = <TEXT>);
+
+    while(defined($line)) {
+      my($chunk);
+
+      # Rez doesn't care for lines longer than (1024?) characters.  Split
+      # at less than half of that limit, in case everything needs to be
+      # backwhacked.
+      if(length($line)>500) {
+        $chunk = substr($line, 0, 500);
+        $line = substr($line, 500);
+      }
+      else {
+        $chunk = $line;
+        $line = undef;
+      }
+
+      if(length($chunk) > 0) {
+        # Unsafe characters are the double-quote (") and backslash (\), escape
+        # them with backslashes.
+        $chunk =~ s/(["\\])/\\$1/g;
+
+        print RESOURCE '  "'.$chunk.'"'."\n";
+      }
+    }
+    print RESOURCE '  "\n"'."\n";
+  }
+  close(*TEXT);
+
+  print RESOURCE << '__EOT__';
+};
+
+data 'styl' (5000, "English") {
+  // Number of styles following = 1
+  $"0001"
+
+  // Style 1.  This is used to display the first two lines in bold text.
+  // Start character = 0
+  $"0000 0000"
+  // Height = 16
+  $"0010"
+  // Ascent = 12
+  $"000C"
+  // Font family = 1024 (Lucida Grande)
+  $"0400"
+  // Style bitfield, 0x1=bold 0x2=italic 0x4=underline 0x8=outline
+  // 0x10=shadow 0x20=condensed 0x40=extended
+  $"00"
+  // Style, unused?
+  $"02"
+  // Size = 12 point
+  $"000C"
+  // Color, RGB
+  $"0000 0000 0000"
+};
+__EOT__
+  close(*RESOURCE);
+
+  return 1;
+}
+
+# pathSplit($pathname)
+#
+# Splits $pathname into an array of path components.
+sub pathSplit($) {
+  my($pathname);
+  ($pathname) = @_;
+  return split(/\//, $pathname);
+}
+
+# setAttributes($root, @attributeList)
+#
+# @attributeList is an array, each element of which must be in the form
+# <a>:<file>.  <a> is a list of attributes, per SetFile.  <file> is a file
+# which is taken as relative to $root (even if it appears as an absolute
+# path.)  SetFile is called to set the attributes on each file in
+# @attributeList.
+sub setAttributes($@) {
+  my(@attributes, $root);
+  ($root, @attributes) = @_;
+  my($attribute);
+  foreach $attribute (@attributes) {
+    my($attrList, $file, @fileList, @fixedFileList);
+    ($attrList, @fileList) = split(/:/, $attribute);
+    if(!defined($attrList) || !@fileList) {
+      cleanupDie('--attribute requires <attributes>:<file>');
+    }
+    @fixedFileList=();
+    foreach $file (@fileList) {
+      if($file =~ /^\//) {
+        push(@fixedFileList, $root.$file);
+      }
+      else {
+        push(@fixedFileList, $root.'/'.$file);
+      }
+    }
+    if(command($gConfig{'cmd_SetFile'}, '-a', $attrList, @fixedFileList)) {
+      cleanupDie('SetFile failed to set attributes');
+    }
+  }
+  return;
+}
+
+sub trapSignal($) {
+  my($signalName);
+  ($signalName) = @_;
+  cleanupDie('exiting on SIG'.$signalName);
+}
+
+sub usage() {
+  print STDERR (
+"usage: pkg-dmg --source <source-folder>\n".
+"               --target <target-image>\n".
+"              [--format <format>]           (default: UDZO)\n".
+"              [--volname <volume-name>]     (default: same name as source)\n".
+"              [--tempdir <temp-dir>]        (default: same dir as target)\n".
+"              [--mkdir <directory>]         (make directory in image)\n".
+"              [--copy <source>[:<dest>]]    (extra files to add)\n".
+"              [--symlink <source>[:<dest>]] (extra symlinks to add)\n".
+"              [--license <file>]            (plain text license agreement)\n".
+"              [--resource <file>]           (flat .r files to merge)\n".
+"              [--icon <icns-file>]          (volume icon)\n".
+"              [--attribute <a>:<file>]      (set file attributes)\n".
+"              [--idme]                      (make Internet-enabled image)\n".
+"              [--sourcefile]                (treat --source as a file)\n".
+"              [--verbosity <level>]         (0, 1, 2; default=2)\n".
+"              [--dry-run]                   (print what would be done)\n");
+  return;
+}
diff --git a/install/macos/scripts/preinstall b/install/macos/scripts/preinstall
new file mode 100644 (file)
index 0000000..e880ad1
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+osascript -e 'quit app "Creorga"'
+exit 0 
\ No newline at end of file
diff --git a/install/windows/icons/Install-Icon.ico b/install/windows/icons/Install-Icon.ico
new file mode 100644 (file)
index 0000000..a2335d8
Binary files /dev/null and b/install/windows/icons/Install-Icon.ico differ
diff --git a/install/windows/icons/Install-Icon.png b/install/windows/icons/Install-Icon.png
new file mode 100644 (file)
index 0000000..00fe028
Binary files /dev/null and b/install/windows/icons/Install-Icon.png differ
diff --git a/install/windows/icons/creorga_setup.png b/install/windows/icons/creorga_setup.png
new file mode 100644 (file)
index 0000000..d196e25
Binary files /dev/null and b/install/windows/icons/creorga_setup.png differ
diff --git a/install/windows/icons/creorga_uninstall.png b/install/windows/icons/creorga_uninstall.png
new file mode 100644 (file)
index 0000000..484fbf6
Binary files /dev/null and b/install/windows/icons/creorga_uninstall.png differ
diff --git a/install/windows/pot_setup.iss b/install/windows/pot_setup.iss
new file mode 100644 (file)
index 0000000..6d6c2b9
--- /dev/null
@@ -0,0 +1,128 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+#define MyAppName "POT"
+#define MyAppPublisher "POT S.à r.l."
+#define MyAppURL "http://pot.dks.lu/"
+#define MyAppExeName "POT_setup_v1.0.0.exe"
+
+;#define VCmsg "Installation de Microsoft Visual C++ Redistributable...."
+
+[Setup]
+; NOTE: The value of AppId uniquely identifies this application.
+; Do not use the same AppId value in installers for other applications.
+; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
+AppId={{1de7bf31-d2bf-4890-a51d-9bd45cf7c7ba}
+AppName={#MyAppName}
+AppVersion={#MyAppVersion}
+;AppVerName={#MyAppName} {#MyAppVersion}
+AppPublisher={#MyAppPublisher}
+AppPublisherURL={#MyAppURL}
+AppSupportURL={#MyAppURL}
+AppUpdatesURL={#MyAppURL}
+DefaultDirName={pf}\{#MyAppName}
+DisableDirPage=yes
+DefaultGroupName={#MyAppName}
+LicenseFile=C:\Users\ksaff\Release\tag\License.txt
+OutputDir=C:\Users\ksaff\Release
+OutputBaseFilename=Setup_{#MyAppName}_{#MyAppVersion}
+SetupIconFile=C:\Users\ksaff\Release\tag\app_v3\chrome\icons\default\winmain.ico
+Compression=lzma
+SolidCompression=yes
+WizardImageFile=wizcreorga.bmp
+WizardSmallImageFile=wizcreorgasmall.bmp
+
+;CloseApplications=force
+
+[Languages]
+Name: "french"; MessagesFile: "compiler:Languages\French.isl"
+
+[Types]
+Name: "tdirector"; Description: "Director - (Tous les acc�s)"
+Name: "tlocalmanager"; Description: "Local Manager - (Version pour un g�rant de cr�ches)"
+Name: "tstaff"; Description: "Staff - (Version pour le staff)";
+
+[Components] 
+Name: "cdirector" ; Description: "Component - Director" ; Types: tdirector
+Name: "clocalmanager"; Description: "Component - Local Manager" ; Types: tlocalmanager
+Name: "cstaff"; Description: "Component - Staff"; Types: tstaff
+
+[Tasks]
+Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
+
+[Dirs]
+Name: "{app}"; Permissions: users-modify
+Name: "{app}\Tools"; Permissions: users-modify
+Name: "{app}\defaults"; Permissions: users-modify
+[Files]
+Source: "C:\Users\ksaff\Release\dist\Creorga.exe"; DestDir: "{app}"; Flags: overwritereadonly ignoreversion ; Components: cdirector clocalmanager cstaff
+;Source: "C:\Users\ksaff\Release\dist\Tools\*"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Types: Director LocalManager Staff;
+Source: "C:\Users\ksaff\Release\dist\Tools\ovpn.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector clocalmanager cstaff
+Source: "C:\Users\ksaff\Release\dist\Tools\creorgadb.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector
+Source: "C:\Users\ksaff\Release\dist\Tools\pdfextract.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector
+Source: "C:\Users\ksaff\Release\dist\Tools\pdftotext.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector
+Source: "C:\Users\ksaff\Release\dist\xulrunner\*"; DestDir: "{app}\xulrunner"; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector clocalmanager cstaff
+Source: "C:\Users\ksaff\Release\dist\director\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cdirector 
+Source: "C:\Users\ksaff\Release\dist\director\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cdirector 
+Source: "C:\Users\ksaff\Release\dist\director\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cdirector
+
+Source: "C:\Users\ksaff\Release\dist\localmanager\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: clocalmanager 
+Source: "C:\Users\ksaff\Release\dist\localmanager\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: clocalmanager 
+Source: "C:\Users\ksaff\Release\dist\localmanager\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: clocalmanager
+
+Source: "C:\Users\ksaff\Release\dist\staff\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cstaff
+Source: "C:\Users\ksaff\Release\dist\staff\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cstaff
+Source: "C:\Users\ksaff\Release\dist\staff\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion ; Components: cstaff
+
+Source: "C:\Users\ksaff\Release\dist\defaults\*"; DestDir: "{app}\defaults"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs ; Components: cdirector clocalmanager cstaff
+;Source: "C:\Users\ksaff\Release\dist\checkschema.txt"; DestDir: "{userappdata}\Creorga\Profiles"; Flags: overwritereadonly ignoreversion 
+;Source: "C:\Users\ksaff\Release\dist\vcredist_x86.exe"; DestDir: "{app}\Tools"; Flags: overwritereadonly ignoreversion
+; NOTE: Don't use "Flags: ignoreversion" on any shared system files
+
+
+[Icons]
+Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
+Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
+Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
+Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
+
+[Run]
+;Filename: "{app}\Tools\vcredist_x86.exe"; Parameters:"/q /passive /verysilent /norestart /q:a /c:""msiexec /i vcredist.msi /qn""" ;Check: VCRedistNeedsInstall; WorkingDir: {app}\Tools; StatusMsg: Installation Microsoft Visual C++ Redistributable ...;
+;Filename: {tmp}\vcredist_x86.exe; Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"" "; 
+;Filename: "{app}\bin\vcredist_x86.exe"; Parameters: "/q /norestart /q:a /c:""VCREDI~3.EXE /q:a /c:""""msiexec /i vcredist.msi /qn"""" """; Check: VCRedistNeedsInstall; WorkingDir: {app}\bin;
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
+
+;[Code]
+;#IFDEF UNICODE
+;  #DEFINE AW "W"
+;#ELSE
+;  #DEFINE AW "A"
+;#ENDIF
+;type
+;    INSTALLSTATE = Longint;
+;const
+;    INSTALLSTATE_INVALIDARG = -2;  // An invalid parameter was passed to the function.
+;    INSTALLSTATE_UNKNOWN = -1;     // The product is neither advertised or installed.
+;    INSTALLSTATE_ADVERTISED = 1;   // The product is advertised but not installed.
+;    INSTALLSTATE_ABSENT = 2;       // The product is installed for a different user.
+;    INSTALLSTATE_DEFAULT = 5;      // The product is installed for the current user.
+
+;// Visual C++ 2015 Redistributable 14.0.23026
+;  VC_2015_REDIST_X86_MIN = '{A2563E55-3BEC-3828-8D67-E5E8B9E8B675}';
+;  VC_2015_REDIST_X64_MIN = '{0D3E9E15-DE7A-300B-96F1-B4AF12B96488}';
+
+;  VC_2015_REDIST_X86_ADD = '{BE960C1C-7BAD-3DE6-8B1A-2616FE532845}';
+;  VC_2015_REDIST_X64_ADD = '{BC958BD2-5DAC-3862-BB1A-C1BE0790438D}';
+
+;function MsiQueryProductState(szProduct: string): INSTALLSTATE;
+;    external 'MsiQueryProductState{#AW}@msi.dll stdcall';
+
+;function VCVersionInstalled(const ProductID: string): Boolean;
+;begin
+;    Result := MsiQueryProductState(ProductID) = INSTALLSTATE_DEFAULT;
+;end;
+
+;function VCRedistNeedsInstall: Boolean;
+;begin
+;    Result := not (VCVersionInstalled(VC_2015_REDIST_X86_MIN) or VCVersionInstalled(VC_2015_REDIST_X86_ADD));
+;end;
diff --git a/install/windows/pot_setup_32bit.iss b/install/windows/pot_setup_32bit.iss
new file mode 100644 (file)
index 0000000..da3147f
--- /dev/null
@@ -0,0 +1,57 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+#define public MyAppName "POT - Plan d'Organisation du Travail"
+#define public MyAppVersion "1.0.0"
+#define public MyAppPublisher "POT s.à r.l."
+#define public MyAppURL "http://pot.dks.lu/"
+#define public MyAppExeName "pot.exe"
+#define public MyOutputDir "C:\Users\kilian\Workspace\pot_lu\website\downloads"
+#define public MySourceDir "C:\Users\kilian\Workspace\pot_lu"
+#define public MySetupName "POT_Setup_32bit"
+[Setup]
+; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
+; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
+AppId={{C583A11C-7811-4C73-B26C-1D61A6F5B679}
+AppName={#MyAppName}
+AppVersion={#MyAppVersion}
+;AppVerName={#MyAppName} {#MyAppVersion}
+AppPublisher={#MyAppPublisher}
+AppPublisherURL={#MyAppURL}
+AppSupportURL={#MyAppURL}
+AppUpdatesURL={#MyAppURL}
+DefaultDirName={autopf}\POT
+DisableProgramGroupPage=yes
+DisableDirPage=yes
+CloseApplications=force
+CloseApplicationsFilter=pot.exe
+LicenseFile={#MySourceDir}\install\CGV.rtf
+; Uncomment the following line to run in non administrative install mode (install for current user only.)
+PrivilegesRequired=lowest
+;PrivilegesRequiredOverridesAllowed=dialog
+OutputDir={#MyOutputDir}
+OutputBaseFilename={#MySetupName}
+SetupIconFile={#MySourceDir}\install\windows\icons\Install-Icon.ico
+Compression=lzma
+SolidCompression=yes
+WizardStyle=modern
+WizardImageFile=wizpot.bmp
+WizardSmallImageFile=wizpotsmall.bmp
+MinVersion=6.1
+[Languages]
+;Name: "english"; MessagesFile: "compiler:Default.isl"
+Name: "french"; MessagesFile: "compiler:Languages\French.isl"
+;Name: "german"; MessagesFile: "compiler:Languages\German.isl"
+
+[Files]
+Source: "{#MySourceDir}\release-builds\pot-win32-ia32\pot.exe"; DestDir: "{app}"; Flags: overwritereadonly ignoreversion
+Source: "{#MySourceDir}\release-builds\pot-win32-ia32\*"; DestDir: "{app}"; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs
+; NOTE: Don't use "Flags: ignoreversion" on any shared system files
+
+[Icons]
+Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
+Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
+
+[Run]
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
+
diff --git a/install/windows/pot_setup_64bit.iss b/install/windows/pot_setup_64bit.iss
new file mode 100644 (file)
index 0000000..dd2c3ec
--- /dev/null
@@ -0,0 +1,58 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+#define MyAppName "POT - Plan d'Organisation du Travail"
+#define MyAppVersion "1.0.0"
+#define MyAppPublisher "POT s.à r.l."
+#define MyAppURL "http://pot.dks.lu/"
+#define MyAppExeName "pot.exe"
+#define MyOutputDir "C:\Users\kilian\Workspace\pot_lu\website\downloads"
+#define MySourceDir "C:\Users\kilian\Workspace\pot_lu"
+#define MySetupName "POT_Setup_64bit"
+[Setup]
+; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
+; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
+AppId={{C583A11C-7811-4C73-B26C-1D61A6F5B679}
+AppName={#MyAppName}
+AppVersion={#MyAppVersion}
+;AppVerName={#MyAppName} {#MyAppVersion}
+AppPublisher={#MyAppPublisher}
+AppPublisherURL={#MyAppURL}
+AppSupportURL={#MyAppURL}
+AppUpdatesURL={#MyAppURL}
+DefaultDirName={autopf}\POT
+DisableProgramGroupPage=yes
+DisableDirPage=yes
+CloseApplications=force
+CloseApplicationsFilter=pot.exe
+LicenseFile={#MySourceDir}\install\CGV.rtf
+; Uncomment the following line to run in non administrative install mode (install for current user only.)
+PrivilegesRequired=lowest
+;PrivilegesRequiredOverridesAllowed=dialog
+OutputDir={#MyOutputDir}
+OutputBaseFilename={#MySetupName}
+SetupIconFile={#MySourceDir}\install\windows\icons\Install-Icon.ico
+Compression=lzma
+SolidCompression=yes
+WizardStyle=modern
+WizardSmallImageFile=wizpotsmall.bmp
+ArchitecturesInstallIn64BitMode=x64
+ArchitecturesAllowed=x64
+MinVersion=6.1
+[Languages]
+;Name: "english"; MessagesFile: "compiler:Default.isl"
+Name: "french"; MessagesFile: "compiler:Languages\French.isl"
+;Name: "german"; MessagesFile: "compiler:Languages\German.isl"
+
+[Files]
+Source: "{#MySourceDir}\release-builds\pot-win32-x64\pot.exe"; DestDir: "{app}"; Flags: overwritereadonly ignoreversion
+Source: "{#MySourceDir}\release-builds\pot-win32-x64\*"; DestDir: "{app}"; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs
+; NOTE: Don't use "Flags: ignoreversion" on any shared system files
+
+[Icons]
+Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
+Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
+
+[Run]
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
+
diff --git a/install/windows/pot_update.iss b/install/windows/pot_update.iss
new file mode 100644 (file)
index 0000000..750dc00
--- /dev/null
@@ -0,0 +1,67 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+#define MyAppName "Creorga"
+#define MyAppPublisher "DKS s.à r.l."
+#define MyAppURL "http://www.dks.lu/creorga/"
+#define MyAppExeName "Creorga.exe"
+
+;#define VCmsg "Installation de Microsoft Visual C++ Redistributable...."
+
+[Setup]
+; NOTE: The value of AppId uniquely identifies this application.
+; Do not use the same AppId value in installers for other applications.
+; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
+
+AppId={{31A01E9B-0999-4A24-8C69-B10F526961C7}
+AppName={#MyAppName}
+
+AppVersion={#MyAppVersion}
+AppPublisher={#MyAppPublisher}
+AppPublisherURL={#MyAppURL}
+AppSupportURL={#MyAppURL}
+AppUpdatesURL={#MyAppURL}
+DefaultDirName={pf}\{#MyAppName}
+DisableDirPage=yes
+DefaultGroupName={#MyAppName}
+OutputDir=C:\Users\ksaff\Release
+
+OutputBaseFilename=Update_Creorga_{#MyAppVersion}_director
+SetupIconFile=C:\Users\ksaff\Release\tag\app_v3\chrome\icons\default\winmain.ico
+Compression=lzma
+SolidCompression=yes
+WizardImageFile=wizcreorga.bmp
+WizardSmallImageFile=wizcreorgasmall.bmp
+PrivilegesRequired=lowest
+CreateUninstallRegKey=no
+UpdateUninstallLogAppName=no
+CloseApplications=force
+Uninstallable = no
+
+[Messages]
+SetupAppTitle=mise-à-jour {#MyAppName}
+SetupWindowTitle=mise-à-jour {#MyAppName} {#MyAppVersion}
+WizardReady=Installation de la mise-à-jour vers la version {#MyAppVersion}
+ReadyLabel1=L''assistant dispose à présent de toutes les informations pour installer la mise-à-jour de [name] sur votre ordinateur.
+ReadyLabel2b=Cliquez sur Installer pour procéder la mise-à-jour.
+
+[Languages]
+Name: "french"; MessagesFile: "compiler:Languages\French.isl"
+
+[Dirs]
+Name: "{app}";
+Name: "{app}\Tools"; Permissions: users-modify
+Name: "{app}\defaults"; Permissions: users-modify
+[Files]
+Source: "C:\Users\ksaff\Release\dist\Tools\ovpn.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs 
+Source: "C:\Users\ksaff\Release\dist\Tools\creorgadb.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs
+Source: "C:\Users\ksaff\Release\dist\Tools\pdfextract.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs
+Source: "C:\Users\ksaff\Release\dist\Tools\pdftotext.exe"; DestDir: "{app}\Tools"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs
+
+Source: "C:\Users\ksaff\Release\dist\director\application.ini"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion
+Source: "C:\Users\ksaff\Release\dist\director\chrome.manifest"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion
+Source: "C:\Users\ksaff\Release\dist\director\creorga.jar"; DestDir: "{app}"; Permissions: users-full; Flags: overwritereadonly ignoreversion
+Source: "C:\Users\ksaff\Release\dist\defaults\*"; DestDir: "{app}\defaults"; Permissions: users-modify; Flags: overwritereadonly ignoreversion recursesubdirs createallsubdirs
+
+[Run]
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
diff --git a/install/windows/potbanner.bmp b/install/windows/potbanner.bmp
new file mode 100644 (file)
index 0000000..aa30f8f
Binary files /dev/null and b/install/windows/potbanner.bmp differ
diff --git a/install/windows/wizpot.bmp b/install/windows/wizpot.bmp
new file mode 100644 (file)
index 0000000..499693b
Binary files /dev/null and b/install/windows/wizpot.bmp differ
diff --git a/install/windows/wizpot1.bmp b/install/windows/wizpot1.bmp
new file mode 100644 (file)
index 0000000..50c4737
Binary files /dev/null and b/install/windows/wizpot1.bmp differ
diff --git a/install/windows/wizpotsmall.bmp b/install/windows/wizpotsmall.bmp
new file mode 100644 (file)
index 0000000..44d4239
Binary files /dev/null and b/install/windows/wizpotsmall.bmp differ
index 960bd47..c0a1871 100644 (file)
@@ -14,6 +14,7 @@ use POT::Company;
 use POT::Staff;
 use POT::Workplan;
 use POT::Worktime;
+use POT::TimeTracker;
 use dksconfig qw/$sitecfg/;
 use dksdb;
 
@@ -63,7 +64,7 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
     if (exists($p->{schemata})){
       $schema = $db->securetext($p->{schemata});
     }
-    if ($p->{get} =~ /periods$|periodweeksums$|perioddays$|perioddata$|staffperiods$/){
+    if ($p->{get} =~ /periods$|periodweeksums$|perioddays$|perioddata$|staffperiods$|defaultdaylimits$/){
       #print STDERR "GET is Period :".$p->{get}."\n";
       my $period = POT::Period->new({db => $db});
       if ($p->{get} eq 'periods'){
@@ -76,6 +77,8 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
       #   $hres = $period->getPeriodData($schema,$db->securetext($p->{id_period}));
       } elsif ($p->{get} eq 'staffperiods'){
         $hres = $period->getStaffPeriods($schema,$db->securetext($p->{id_staff}),$db->securetext($p->{id_period}));
+      } elsif ($p->{get} eq "defaultdaylimits"){
+        $hres = $period->getDefaultDayLimits($schema);
       }
     } elsif ($p->{get} =~ /company$|companiesdata$|staffgroups$|staffgroup$/){
       #print STDERR "GET is Company :".$p->{get}."\n";
@@ -128,9 +131,18 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
         $hres = $st->getStaffList($schema,$db->securetext($p->{id_groups}));
       } 
 
+    } elsif ($p->{get} =~ /gettrackday$|emptytrackdataset$/){
+      #print STDERR "GET is Company :".$p->{get}."\n";
+      my $st = POT::TimeTracker->new({db => $db});
+      if ($p->{get} eq 'gettrackday'){
+        $hres = $st->getTrackDay($schema,$db->securetext($p->{id_staff}),$db->securetext($p->{daydate}));
+      } elsif ($p->{get} eq 'emptytrackdataset'){
+        $hres = $st->getEmptyTrackDataSet($schema,$db->securetext($p->{id_staff}),$db->securetext($p->{daydate}));
+      }
+
     }
     
-    if ($p->{get} !~ /periodweeksums$|company$|workplan$|workplanday$|worktime$|staffcontract$|staff$|staffgroup$/ ){
+    if ($p->{get} !~ /periodweeksums$|company$|workplan$|workplanday$|worktime$|staffcontract$|staff$|staffgroup$|defaultdaylimits$/ ){
       #print STDERR "SEND: ".Dumper($hres)." as ARRAY!\n";
       foreach my $r (sort {$a <=> $b} keys(%{$hres})){
         push(@retdata,$hres->{$r});
@@ -178,10 +190,13 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
     }
     if ($p->{save} eq "field"){
       my $val = "null";
+
       if ($p->{value} ne ""){
         $val = "'".$db->securetext($p->{value})."'";
       }
-      $html->{result} = $db->exec("UPDATE ".$schema.".".$db->securetext($p->{table})." SET ".$db->securetext($p->{column})."=".$val." WHERE id='".$db->securetext($p->{id})."';");  
+      my $usql = "UPDATE ".$schema.".".$db->securetext($p->{table})." SET ".$db->securetext($p->{column})."=".$val." WHERE id='".$db->securetext($p->{id})."';";
+      #print STDERR $usql." ".Dumper($p)."\n";
+      $html->{result} = $db->exec($usql);  
     } 
   }
   elsif (exists($p->{fn}) && ($p->{fn} eq "saveform")){
@@ -202,6 +217,7 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
       else { @sql = $db->create_ddl_update($schema,$p);}
       $html->{sql} = \@sql;
       if (scalar(@sql) > 0){
+        #print STDERR $sql[0]."\n";
         $retid= $db->querysorted($sql[0]);
       }
       $html->{result} = $retid->{0};
@@ -263,7 +279,7 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
         $html->{result} = $pd->refreshPeriods($schema);
       } elsif ($p->{fn} eq "add_reportperiod"){
         $html->{result} = $pd->addPeriod($schema);
-      }
+      } 
     } elsif ($p->{fn} =~ /add_workplan$|del_workplan$|duplicate_workplan$|workplan_replaceday$/) {
       my $wp = POT::Workplan->new({db => $db});
    
@@ -293,6 +309,11 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
         $html->{result} = $us->addUser($p);
       }
   
+    } elsif ($p->{fn} =~ /savetrackdatasets$/){
+      my $tt = POT::TimeTracker->new({db => $db});
+      if ($p->{fn} eq "savetrackdatasets"){
+        $html->{result} = $tt->saveTrackDataSets($schema,$p->{daydate},$p->{id_staff},$p->{timetrackdata});
+      }
     }
     else {
       #print STDERR "fn:".$p->{fn}." not known ".Dumper($p)."\n===\n"; 
index efcff8e..54f407a 100644 (file)
@@ -25,13 +25,10 @@ my $sess = ();
 my $se = session->new({db => $db});
 
 $vars->{ua} = $ENV{HTTP_USER_AGENT};
-# if ($vars->{ua} !~ /^POT/){
-#     # print $cgi->header(-type=>'text/html', -charset=>"utf-8");
-#     print "Location: ".$cgi->url({-base=>1})."/pot_lu/\n\n";
-#     #$cgi->redirect($cgi->url({-base=>1}).'/pot_lu');
-#     exit(0);
-# # #   exit(0);
-# }
+if ($vars->{ua} !~ /^POT/){
+    print "Location: ".$cgi->url({-base=>1})."\n\n";
+    exit(0);
+}
 $vars->{realpath} = $cgi->url({-absolute=>1});
 $vars->{filepath} = substr($cgi->url({-absolute=>1}),length($vars->{basepath})+1); 
 $vars->{baseurl} = $cgi->url({-base=>1}).'/'.$vars->{basepath};
@@ -67,7 +64,8 @@ if (($cgi->request_method() eq "POST") || ($cgi->request_method() eq "GET")){
     if ($ret->{sid} ne ""){
       $p->{sid} = $ret->{sid};
       
-      $cookie = CGI::Cookie->new(-name=>$vars->{cookiename},-value=>$p->{sid},-httponly => 1);
+      $cookie = CGI::Cookie->new(-name=>$vars->{cookiename},-value=>$p->{sid},-httponly => 1, -expires =>  '+6M',
+                   '-max-age' =>  '+6M');
       
     }else {
       $vars->{message} = $ret->{message};
index 70e9c10..65f773d 100644 (file)
@@ -14,10 +14,12 @@ sub new {
 sub refreshPeriods(){
   my $self = shift;
   my $schema = shift;
-  my $prds = $self->{db}->querysorted("select id from ".$schema.".reportperiod order by startdate,enddate;");
-  foreach my $p (keys(%{$prds})){
-    my $staff = $self->{db}->querysorted("select id from ".$schema.".staff where isdeleted is null;");
-    foreach my $s (keys(%{$staff})){
+  my $staff = $self->{db}->querysorted("select id from ".$schema.".staff where isdeleted is null;");
+  my $st = POT::Staff->new({db => $self->{db}});
+  foreach my $s (keys(%{$staff})){
+    my $prds = $self->{db}->querysorted("select id from ".$schema.".reportperiod order by startdate,enddate;");
+    $st->setStaffContractDays($schema,$staff->{$s}->{id});
+    foreach my $p (keys(%{$prds})){
       $self->setStaffPeriodDays($schema,$prds->{$p}->{id},$staff->{$s}->{id});
       $self->updateStaffPeriod($schema,$prds->{$p}->{id},$staff->{$s}->{id});
     }
@@ -70,7 +72,7 @@ sub getStaffPeriods(){
     to_char(srp.workhours, 'HH24:MI'::text) AS workhours,
     to_char(srp.vacancyhours, 'HH24:MI'::text) AS vacancyhours,
     to_char(srp.recuperationhours, 'HH24:MI'::text) AS recuperationhours,
-    to_char(srp.hoursdiff, 'HH24:MI'::text) as hoursdiff,
+    case when left(to_char(srp.hoursdiff, 'HH24:MI'),1) = '-' then '-' || replace(to_char(srp.hoursdiff, 'HH24:MI'),'-','') else to_char(srp.hoursdiff, 'HH24:MI') end  as hoursdiff,
     to_char(srp.totalhours, 'HH24:MI'::text) AS totalhours,
     srp.id_reportperiod, srp.id_staff, srp.id, rp.startdate, rp.enddate,
     COALESCE(st.surname || ' '::text, ''::text) || COALESCE(st.prename, ''::text) AS staffname,
@@ -80,6 +82,7 @@ sub getStaffPeriods(){
     to_char(srp.transferedhours, 'HH24:MI'::text) AS transferedhours,
     case when suppvacancysunwork is not null and suppvacancysunwork > 0 then '+' || suppvacancysunwork  else  null end as suppvacancysunwork,
     case when suppvacancy44hours is not null and suppvacancy44hours > 0 then '+' || suppvacancy44hours  else null end as suppvacancy44hours
+    ,itmcontracthours,maxdays
    FROM ".$schema.".staffreportperiod srp
      LEFT JOIN ".$schema.".staff st ON srp.id_staff = st.id
      LEFT JOIN ".$schema.".reportperiod rp ON srp.id_reportperiod = rp.id
@@ -90,6 +93,7 @@ sub getStaffPeriods(){
 }
 
 
+
 sub getPeriodWeekSums(){
   my $self = shift;
   my $schema = shift;
@@ -186,7 +190,13 @@ sub getPeriodDays(){
             to_char(pd.pauseend2::interval, 'HH24:MI') AS pauseend2,
             COALESCE((to_char(pd.pausestart1::interval, 'HH24:MI') || '-') || to_char(pd.pauseend1::interval, 'HH24:MI'), '') || COALESCE(((CASE WHEN pd.pausestart1 IS NOT NULL THEN '<br/>' ELSE '' END || to_char(pd.pausestart2::interval, 'HH24:MI')) || '-') || to_char(pd.pauseend2::interval, 'HH24:MI'), '') AS dsppausedata,
             COALESCE((to_char(pd.timestart1::interval, 'HH24:MI') || '-') || to_char(pd.timeend1::interval, 'HH24:MI'), '') || COALESCE(((CASE WHEN pd.timestart1 IS NOT NULL THEN '<br/>' ELSE '' END || to_char(pd.timestart2::interval, 'HH24:MI')) || '-') || to_char(pd.timeend2::interval, 'HH24:MI'), '') AS dspworkdata,
-            CASE WHEN max(freehours.freehours) < '00:00:00'::interval THEN NULL ELSE to_char(max(freehours.freehours), 'HH24:MI') END AS freehoursafter 
+            CASE WHEN max(freehours.freehours) < '00:00:00'::interval THEN NULL ELSE to_char(max(freehours.freehours), 'HH24:MI') END AS freehoursafter,
+            to_char(coalesce(max(wk.defaultdayhours),max(wkstd.defaultdayhours)),'HH24:MI') as defaultdayhours, 
+            to_char(coalesce(max(wk.maxdayhours),max(wkstd.maxdayhours)),'HH24:MI') as maxdayhours, 
+            to_char(coalesce(max(wk.mindailyrecuperation),max(wkstd.mindailyrecuperation)),'HH24:MI') as mindailyrecuperation,
+            to_char(coalesce(max(wk.maxinterruptionhours),max(wkstd.maxinterruptionhours)),'HH24:MI') as maxinterruptionhours,
+            max(vd.vacancyname) as vacancyname,
+            max(tt.trackedtime) as trackedtime,max(tt.incompletetrack) as incompletetrack
             FROM ".$schema.".staffreportperioddays pd
              JOIN ".$schema.".staff st ON pd.id_staff = st.id and st.id='".$id_staff."' and st.isdeleted is null
              LEFT JOIN ( SELECT yy.id_staff, yy.ndaydate AS daydate,yy.ndaydate + yy.ntimeend AS tmfrom, yy.daydate + yy.timestart AS tmto,
@@ -201,14 +211,33 @@ sub getPeriodDays(){
                                    FROM ".$schema.".staffreportperioddays sr
                                   WHERE sr.dayhours IS NOT NULL AND sr.dayhours <> '00:00:00'::time without time zone
                                   ORDER BY sr.id_staff, sr.daydate) xx_1) yy) freehours ON pd.id_staff = freehours.id_staff AND freehours.daydate = pd.daydate
+          left join ".$schema.".worktimes wk on pd.daydate between wk.startdate and wk.enddate
+          cross join (select defaultdayhours,maxdayhours,mindailyrecuperation,maxinterruptionhours from ".$schema.".worktimes where isdefault =true) wkstd
+          left join ".$schema.".vacancydays vd on pd.daydate=vd.daydate 
+          left join (
+               select daydate,to_char(sum(case when stamp_out is not null then cast(stamp_out-stamp_in as interval)::interval else '00:00:00'::interval end),'HH24:MI') as trackedtime, 
+               sum(case when stamp_out is null and daydate < current_date then 1 else 0 end) as incompletetrack
+from ".$schema.".timetracker where id_staff='".$id_staff."' and daydate between date('".$date_start."') and date('".$date_end."') group by daydate
+             ) tt on pd.daydate=tt.daydate
           WHERE pd.daydate between date('".$date_start."') and date('".$date_end."')
           group by pd.id
           ORDER BY pd.id_staff, pd.daydate;";
-  #print STDERR "PDAys:".$sql."\n===========\n";
+  print STDERR "PDAys:".$sql."\n===========\n";
   my $ret = $self->{db}->querysorted($sql);
   return $ret;
 }
 
+sub getDefaultDayLimits(){
+  my $self = shift;
+  my $schema = shift;
+  my $sql = "select case when defaultweekhours = '40:00:00' then 'min40h' else 'max40h' end as defval, 
+to_char(defaultdayhours,'HH24:MI') as defaultdayhours,
+to_char(maxdayhours,'HH24:MI') as maxhours,
+to_char(maxinterruptionhours,'HH24:MI') as maxinterruptionhours, 
+to_char(mindailyrecuperation,'HH24:MI') as mindailyrecuperation from ".$schema.".worktimes where startdate is null and enddate is null;"; 
+  return $self->{db}->querybykey('defval',$sql);
+}
+
 sub getPeriodDayLimits(){
   my $self = shift;
   my $schema = shift;
@@ -280,19 +309,21 @@ sub updatePeriodDaySums(){
   }
   #case when payedpause is null then  (preds.dt1+preds.dt2) else  (preds.dt1+preds.dt2)-(preds.pdt1+preds.pdt2) end as worktime,
   my $sql = "update ".$schema.".staffreportperioddays spds set
-  workhours=ds.worktime, timepause=case when ds.timepause::interval > '00:00:00' then ds.timepause else null end, dayhours=(ds.worktime + ds.vachours)::interval, interruptionhours = ds.interruption , contracthours=case when ds.worktime + ds.vachours > '08:00:00'::time then '08:00:00'::time else ds.worktime + ds.vachours end 
+  workhours=ds.worktime, timepause=case when ds.timepause::interval > '00:00:00' then ds.timepause else null end, dayhours=(ds.worktime + ds.vachours + ds.recup)::interval, interruptionhours = ds.interruption , contracthours=case when ds.worktime + ds.vachours + ds.recup > '00:00:00'::interval then ds.wdcontracthours else null end 
   from (
-    select preds.id,case when preds.recuperationhours is null then '00:00:00'::time else preds.recuperationhours end as recup,
+    select preds.id,case when preds.recuperationhours is null then '00:00:00'::interval else preds.recuperationhours::interval end as recup,
     case when preds.vacancyhours is null then '00:00:00'::time else preds.vacancyhours end as vachours,
     preds.interruption,
-    (preds.dt1+preds.dt2)-(preds.pdt1+preds.pdt2)  as worktime,
-  (preds.pdt1+preds.pdt2) as timepause
+    (preds.dt1+preds.dt2)-(case when preds.payedpause is null then preds.pdt1+preds.pdt2 else '00:00:00'::interval end)  as worktime,
+  (preds.pdt1+preds.pdt2) as timepause,
+  wdcontracthours
        from ( select id, recuperationhours,vacancyhours,payedpause,
                case when timestart1 is not null and timeend1 is not null then case when timeend1 > timestart1 then  '24:00:00'::interval + timeend1 - timestart1 else  timeend1 - timestart1 end else  '00:00:00'::interval end as dt1,
                case when timestart2 is not null and timeend2 is not null then case when timeend2 > timestart2 then  '24:00:00'::interval + timeend2 - timestart2 else  timeend2 - timestart2 end  else  '00:00:00'::interval end as dt2,
                case when pausestart1 is not null and pauseend1 is not null then case when pauseend1 > pausestart1 then  '24:00:00'::interval + pauseend1 - pausestart1 else  pauseend1 - pausestart1 end else '00:00:00'::interval end as pdt1,
                case when pausestart2 is not null and pauseend2 is not null then  case when pauseend2 > pausestart2 then  '24:00:00'::interval + pauseend2 - pausestart2 else  pauseend2 - pausestart2 end else '00:00:00'::interval end as pdt2,
-    case when timestart2 is not null and timeend1 is not null and timestart1 is not null and timeend2 is not null then timestart2 - timeend1 else null end as interruption
+    case when timestart2 is not null and timeend1 is not null and timestart1 is not null and timeend2 is not null then timestart2 - timeend1 else null end as interruption,
+    wdcontracthours
                from ".$schema.".staffreportperioddays where id in (".$dayselect.")
   ) preds) ds where spds.id=ds.id;";
   
@@ -356,7 +387,7 @@ select weekstart,".((exists($prevprddata->{status44hcount}) && $prevprddata->{st
   my $sql = "select id from ".$schema.".staffreportperioddays where id_staff='".$id_staff."' and daydate between date(date_trunc('week',date('".$prd->{startdate}."'))) and date(date_trunc('week',date('".$prd->{enddate}."')) + interval '6 days')";
   $self->updatePeriodDaySums($schema,$sql);
   $sql = "update ".$schema.".staffreportperiod rpd set
-  contracthours=csp.contracthours,
+  --contracthours=csp.contracthours,
   workhours=csp.workhours,
   vacancyhours=csp.vacancyhours,
   totalhours=csp.totalhours,
@@ -369,7 +400,7 @@ select weekstart,".((exists($prevprddata->{status44hcount}) && $prevprddata->{st
   $sql .= "last44date=".(($status44count->{maxdate} eq "")?'null':"date('".$status44count->{maxdate}."')").",";
   $sql .= "hoursdiff=csp.diffhours
   FROM(
-  select contracthours,workhours,vacancyhours,totalhours,recuperationhours, totalhours-contracthours-recuperationhours-payedhours+transferedhourscalc as diffhours,id from (
+  select contracthours,workhours,vacancyhours,totalhours,recuperationhours, totalhours-contracthours-payedhours+transferedhourscalc as diffhours,id from (
   select dp.id,
   sum(pd.workhours) as workhours,
   sum(pd.dayhours) as totalhours,
@@ -417,10 +448,16 @@ sub setStaffPeriodDays(){
   my $id_staff = shift;
   my $maxprdsql = "select date(date_trunc('week',min(startdate))) as startdatealt,min(startdate) as startdate,max(enddate) as enddate from ".$schema.".reportperiod;";
   my $prddata = $self->{db}->query($maxprdsql);
-  my $cmpdefsql = "select payedpauses from public.companies where schemata ='".$schema."'";
+  my $cmpdefsql = "select payedpauses,reportperiodunit from public.companies where schemata ='".$schema."'";
   my $cp = $self->{db}->query($cmpdefsql);  
-  my $contractsql = "select  startdate,case when enddate is null then (select max(enddate) from ".$schema.".reportperiod) else enddate end as enddate from ".$schema.".staffcontract where id_staff='".$id_staff."' order by startdate,enddate";
-#  print STDERR $contractsql."\n======\n";
+  
+  my $contractsql = "select case when sc.startdate < rp.minstartdate then rp.minstartdatealt else sc.startdate end as startdate ,
+case when sc.enddate is null or sc.enddate > rp.maxenddate then rp.maxenddate else sc.enddate end as enddate,
+sc.startdate as scstart,sc.enddate as scend,rp.minstartdate as minperiodstart,rp.maxenddate as maxperiodend,
+sc.weekhours,sc.weekdays from ".$schema.".staffcontract sc
+left join (select date(date_trunc('week',min(startdate))) as minstartdatealt,min(startdate) as minstartdate,max(enddate) as maxenddate,'".$id_staff."' as id_staff from ".$schema.".reportperiod) rp on rp.id_staff=sc.id_staff 
+where sc.id_staff='".$id_staff."' order by startdate,enddate;";
+#   print STDERR "CONTRSQL:".$contractsql."\n======\n";
   #
   
   # my $contractperiodsql = "select id_staff,weekdays ,weekhours,
@@ -430,35 +467,51 @@ sub setStaffPeriodDays(){
   #    and startdate < date('".$prddata->{enddate}."')  and enddate is null or enddate > date('".$prddata->{startdate}."');";
 
   my $defdays = $self->{db}->querysorted($contractsql);
+  
+  #if ($defdays->{0}->{startdate} eq $prddata->{startdate} && $prddata->{startdate} ne $prddata->{startdatealt}){
+  #   $defdays->{0}->{startdate} = $prddata->{startdatealt};
+  # }
   # if (($defdays->{0}->{startdate} lt $prddata->{startdate}) && ($defdays->{0}->{startdatealt} lt $prddata->{startdate})){
   #   $defdays->{0}->{startdate} = $defdays->{0}->{startdatealt};
   # }
   my @delete = ();
 #  print STDERR Dumper($defdays);
+  # my $cpsql = "select payedpauses from public.companies where schemata='".$schema."'";
+  # my $cpdata = $self->{db}->query($cpsql);
   foreach my $dd (keys(%{$defdays})){
 #    print STDERR Dumper($defdays->{$dd});
-    my $inssql = "insert into ".$schema.".staffreportperioddays (daydate,id_staff,payedpause)
-SELECT date_trunc('day', dd)::date as daydate,'".$id_staff."' as id_staff, null as payedpause  FROM generate_series( '".$defdays->{$dd}->{startdate}."'::timestamp,'".$defdays->{$dd}->{enddate}."'::timestamp,'1 day'::interval) dd on conflict on constraint uniq_staffworplan_staffday do nothing;";
-#    print STDERR $inssql."\n======\n";
+      my $cthsql = "select '".$defdays->{$dd}->{weekhours}."'::interval/".$defdays->{$dd}->{weekdays}." as wdcontracthours" ;
+      if($cp->{reportperiodunit} eq 'month'){
+        $cthsql = "select round(cast(((extract(epoch from (current_date + '".$defdays->{$dd}->{weekhours}."'::interval)::timestamp) - extract(epoch from current_date::timestamp))/3600.0)/".$defdays->{$dd}->{weekdays}." as numeric) ,2) * '01:00:00'::interval as wdcontracthours";
+      } 
+      #print STDERR $cthsql."\n";
+    my $cth = $self->{db}->query($cthsql);
+    my $inssql = "insert into ".$schema.".staffreportperioddays (daydate,id_staff,payedpause,wdcontracthours)
+SELECT date_trunc('day', dd)::date as daydate,'".$id_staff."' as id_staff, ".(($cp->{payedpauses} eq "1")?"true":"null")." as payedpause, 
+ '".$cth->{ wdcontracthours}."' as  wdcontracthours  
+FROM generate_series( '".$defdays->{$dd}->{startdate}."'::timestamp,'".$defdays->{$dd}->{enddate}."'::timestamp,'1 day'::interval) dd on conflict on constraint uniq_staffworplan_staffday 
+do update set wdcontracthours = '".$cth->{ wdcontracthours}."';";
+    #print STDERR "INSSQL:".$inssql."\n======\n";
     $self->{db}->exec($inssql);
     push (@delete," daydate not between date('".$defdays->{$dd}->{startdate}."') and date('".$defdays->{$dd}->{enddate}."')");
     
   }
   ##VERIFY no more nessessary data 
+  #print Dumper(@delete);
   if (scalar(@delete) > 0){
-    if (($defdays->{0}->{startdate} lt $prddata->{startdate}) && ($defdays->{0}->{startdate}  lt $prddata->{startdatealt})){
-      $prddata->{startdate} = $prddata->{startdatealt};
-    }
+    if (($defdays->{0}->{startdate} lt $prddata->{startdate}) && ($defdays->{0}->{startdate}  lt $prddata->{startdatealt})){
+      $prddata->{startdate} = $prddata->{startdatealt};
+    }
     my $delsql = "DELETE FROM ".$schema.".staffreportperioddays where id_staff='".$id_staff."' and (daydate > date('".$prddata->{enddate}."') or daydate < date('".$prddata->{startdate}."')) 
     OR (id_staff='".$id_staff."' AND ".join(" AND ",@delete).");";
-#    print STDERR $delsql."\n======\n";
+    #print STDERR "DEL1:".$delsql."\n======\n";
     $self->{db}->exec($delsql);
     
   }
   my $delstaffreportssql = "delete from ".$schema.".staffreportperiod sp where id_staff='".$id_staff."' and id_reportperiod not in (
 select rp.id from ".$schema.".reportperiod rp left join ".$schema.".staffreportperioddays pd on (pd.daydate between rp.startdate and rp.enddate)
 where pd.id_staff='".$id_staff."' group by rp.id);";
-#  print STDERR $delstaffreportssql."\n======\n";
+  #print STDERR "DEL2:".$delstaffreportssql."\n======\n";
   $self->{db}->exec($delstaffreportssql);
   #$self->{db}->exec($delsql);
   
index 1dddfc2..a06f9ea 100644 (file)
@@ -145,7 +145,7 @@ sub printContent(){
 <!DOCTYPE html>
 <html>
 <head>
-  <title>POT - Staffmember - Period</title>
+  <title>PDF - Rapport - P&eacute;riode de R&eacute;f&eacute;rence</title>
   <style>
   \@font-face {
   font-family: 'pot'; src: url(\"data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBSoAAAC8AAAAYGNtYXAXVtKHAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zq3RsYsAAAF4AAAB0GhlYWQZavrxAAADSAAAADZoaGVhB4IDxgAAA4AAAAAkaG10eAoAAEAAAAOkAAAAFGxvY2EAKAD8AAADuAAAAAxtYXhwAAkAigAAA8QAAAAgbmFtZVKkxIkAAAPkAAABVnBvc3QAAwAAAAAFPAAAACAAAwMAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAAPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QD//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAADAED/wAPAA8AACgA3AIcAAAEOAQczMjY1NCYjJSIGBw4BBw4BNz4BNQ4BBxYXHgEXFjMyNz4BNzY3LgEnDgEHDgE3PgE1LgEjEzIWBwYHBhYXFhceARUOAQczMhYVFAYrAQYHDgEHBiMiJy4BJyYnNDc+ATc2Ny4BJyY2Nz4BMzIWBwYHBhYXFhc+ATMyFhcuAScmNjc+ATMDLAoZEEUfLS0f/oMQHw8BGR4HNBEbFGJtCgYYGFI7O0xMOztSGBgFCFtRAxkbCDMRGxQXMRudCQgILgwLDA8PB2mGAgYDBzZMTDZgGyAgSCgoKklBQGciIwsTFEYwMDkJGQcPKDMEFQkJCAksDAwKDg8IESERFywVCRgHDyc0BBQJAWsqTiQuICAu0gEBHDQXBwMOFTAZCy8OCQ4NGQkJCQkZDQ4JDSoMGS8VBwMOFTEaAgMBgwUHIygnVCorKRBDKhUnFE44OE4yKCc4Dw8rK5dnZ3cXFBQiDA0HHz8eQWAoAwUFByInJlIpKigBAQICHj4dQWAoAwUAAAEAAAABAACaNXijXw889QALBAAAAAAA20XbOgAAAADbRds6AAD/wAPAA8AAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA8AAAQAAAAAAAAAAAAAAAAAAAAUEAAAAAAAAAAAAAAACAAAABAAAQAAAAAAACgAUAB4A6AABAAAABQCIAAMAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEAAwAAAAEAAAAAAAIABwA8AAEAAAAAAAMAAwAqAAEAAAAAAAQAAwBRAAEAAAAAAAUACwAJAAEAAAAAAAYAAwAzAAEAAAAAAAoAGgBaAAMAAQQJAAEABgADAAMAAQQJAAIADgBDAAMAAQQJAAMABgAtAAMAAQQJAAQABgBUAAMAAQQJAAUAFgAUAAMAAQQJAAYABgA2AAMAAQQJAAoANAB0cG90AHAAbwB0VmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwcG90AHAAbwB0cG90AHAAbwB0UmVndWxhcgBSAGUAZwB1AGwAYQBycG90AHAAbwB0Rm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==\") format('truetype');
@@ -480,7 +480,7 @@ sub getPeriodDates(){
   my $self = shift;
   my $date_start = shift;
   my $date_end = shift;
-  my $sql = "SELECT date_trunc('day', dd)::date as daydate  FROM generate_series( '2020-07-01'::timestamp,'2020-08-31'::timestamp,'1 day'::interval) dd";
+  my $sql = "SELECT date_trunc('day', dd)::date as daydate  FROM generate_series( '".$date_start."'::timestamp,'".$date_end."'::timestamp,'1 day'::interval) dd";
   my $ret = $self->{db}->querybykey('daydate',$sql);
 }
 
index c68818f..b86bb8d 100644 (file)
@@ -3,6 +3,7 @@ package POT::Staff;
 use strict;
 use lib ('./');
 use POT::Period; 
+use Data::Dumper;
 
 sub new {
     my $class = shift;
@@ -71,10 +72,11 @@ sub setStaffContractDays(){
   my $self = shift;
   my $schema =shift;
   my $id_staff = shift;
-  my $periodssql = "select id from ".$schema.".reportperiod where 
+  my $periodssql = "select id,startdate,enddate from ".$schema.".reportperiod where 
 startdate >= date((select min(startdate) from ".$schema.".staffcontract where id_staff='".$id_staff."'))
-or date((select min(startdate) from ".$schema.".staffcontract where id_staff='".$id_staff."')) between startdate and enddate ";
+or date((select min(startdate) from ".$schema.".staffcontract where id_staff='".$id_staff."')) between startdate and enddate;";
   my $perioddata = $self->{db}->querysorted($periodssql);
+ # print STDERR Dumper($perioddata)."\n";
   my $period = POT::Period->new({db => $self->{db}});
   
   foreach my $pp (keys(%{$perioddata})){
@@ -82,6 +84,49 @@ or date((select min(startdate) from ".$schema.".staffcontract where id_staff='".
   VALUES ('".$perioddata->{$pp}->{id}."','".$id_staff."') on conflict on constraint uniq_staffreportperiod_cal do nothing;");
     $period->setStaffPeriodDays($schema,$perioddata->{$pp}->{id},$id_staff);
   }
+  my $cpsql = "select reportperiodunit,reportperiodlength from public.companies where schemata='".$schema."'";
+  my $rprol = $self->{db}->query($cpsql);
+  foreach my $pp (keys(%{$perioddata})){
+    #print STDERR Dumper($perioddata->{$pp});
+    my $ctsql = "select id,weekhours,weekdays from (
+select rp.id,case when sc.startdate < rp.startdate then rp.startdate else sc.startdate end as startdate ,
+case when sc.enddate is null or sc.enddate > rp.enddate then rp.enddate else sc.enddate end as enddate,
+sc.weekhours,sc.weekdays from ".$schema.".staffcontract sc
+cross join ".$schema.".reportperiod rp 
+where sc.id_staff='".$id_staff."'
+) scx where startdate < enddate and id='".$perioddata->{$pp}->{id}."' order by startdate,enddate;";
+#     my $ctsql = "select * from (
+# select case when startdate < date('".$perioddata->{$pp}->{startdate}."') then date('".$perioddata->{$pp}->{startdate}."') else startdate end as startdate ,
+# case when enddate is null or enddate > date('".$perioddata->{$pp}->{enddate}."') then date('".$perioddata->{$pp}->{enddate}."') else enddate end as enddate,
+# weekhours,weekdays from portanova.staffcontract where id_staff='".$id_staff."'
+# ) sc where date('".$perioddata->{$pp}->{startdate}."') between startdate and enddate and date('".$perioddata->{$pp}->{enddate}."') between startdate and enddate order by startdate,enddate;";
+    my $ctdata = $self->{db}->querysorted($ctsql);
+    foreach my $c (sort{$a <= $b} keys(%{$ctdata})){
+      my $daysql = "";
+      if ($ctdata->{$c}->{weekdays} <  6){
+        $daysql = "and date_part('isodow',daydate) between 1 and ".$ctdata->{$c}->{weekdays};
+      }
+      my $chsql = "select maxdays, contracthours - ('00:00:'|| extract(second from contracthours))::interval as itmcontracthours from ( 
+select count(daydate) as maxdays, ";
+  if ($rprol->{reportperiodunit} eq "week"){
+    $chsql .= "count(daydate) * ('".$ctdata->{$c}->{weekhours}."'::interval/".$ctdata->{$c}->{weekdays}.") as contracthours "; 
+  } else {
+    $chsql .= "count(daydate) * round(cast(((extract(epoch from (current_date + '".$ctdata->{$c}->{weekhours}."'::interval)::timestamp) - extract(epoch from current_date::timestamp))/3600.0) /".$ctdata->{$c}->{weekdays}." as numeric) ,2) * '01:00:00'::interval as contracthours ";
+  }
+  $chsql .= " from (
+select daydate,date_part('isodow',daydate),case when dayhours is not null and dayhours != '00:00:00'::time then 1 else null end as workday
+from ".$schema.".staffreportperioddays where id_staff='".$id_staff."' 
+and daydate between date('".$perioddata->{$pp}->{startdate}."') and date('".$perioddata->{$pp}->{enddate}."') and date_part('isodow',daydate)::int4 != 7 ".$daysql."
+) wdays ) rnddays;";
+     # print STDERR "CONTRACT:".$chsql."\n========\n";
+      my $checkhours = $self->{db}->query($chsql);
+
+      my $usql = "update ".$schema.".staffreportperiod set maxdays=".(($checkhours->{maxdays} ne "")?$checkhours->{maxdays}:'null').",contracthours=".(($checkhours->{itmcontracthours} ne "")?"'".$checkhours->{itmcontracthours}."'":'null')." where id_staff='".$id_staff."' and id_reportperiod='".$perioddata->{$pp}->{id}."';" ;
+      $self->{db}->exec($usql);
+    }
+    
+  }
+  
 }
 
 sub getStaffContractDates(){
@@ -102,7 +147,7 @@ sub getStaffList(){
   my $self = shift;
   my $schema = shift;
   my $id_groups = shift;
-  my $sql = "select st.* ,stg.groupname,COALESCE(st.surname || ' ', '') || COALESCE(st.prename, '') AS staffname from ".$schema.".staff st LEFT JOIN ".$schema.".staffgroups stg ON st.id_staffgroup = stg.id where st.isdeleted is null;";
+  my $sql = "select st.* ,stg.groupname,COALESCE(st.surname || ' ', '') || COALESCE(st.prename, '') AS staffname from ".$schema.".staff st LEFT JOIN ".$schema.".staffgroups stg ON st.id_staffgroup = stg.id where st.isdeleted is null order by groupname,surname,prename;";
   if (defined($id_groups)){
     $sql .= " stg.id in ('".join("','",@{$id_groups})."')";
   }
diff --git a/website/app/lib/POT/TimeTracker.pm b/website/app/lib/POT/TimeTracker.pm
new file mode 100644 (file)
index 0000000..9160cd7
--- /dev/null
@@ -0,0 +1,73 @@
+package POT::TimeTracker;
+
+use strict;
+use lib ('./');
+use Data::Dumper;
+
+sub new {
+    my $class = shift;
+    my $p = shift;
+    my $self = bless {}, $class;
+    $self->{db} = $p->{db};
+    return $self;
+}
+
+sub getTrackDay(){
+  my $self = shift;
+  my $schema = shift;
+  my $idstaff = shift;
+  my $daydate = shift;
+  my $sql = "select id,id_staff,daydate,to_char(stamp_in,'HH24:MI') as stamp_in,to_char(stamp_out,'HH24:MI') as stamp_out,
+case when stamp_in is null or stamp_out is null then '00:00' else to_char(stamp_out-stamp_in,'HH24:MI') end as total  
+from ".$schema.".timetracker where daydate=date('".$daydate."') and id_staff='".$idstaff."';";
+  my $res = $self->{db}->querysorted($sql);
+  if (keys(%{$res}) == 0){
+    $res = $self->{db}->querysorted("select public.getuuid() as id, '".$idstaff."' as id_staff,date('".$daydate."') as daydate,'00:00' as stamp_in,'00:00' as stamp_out, '00:00' as total");
+  }
+  #print STDERR Dumper($res);
+  return $res;
+}
+
+sub getEmptyTrackDataSet(){
+  my $self = shift;
+  my $schema = shift;
+  my $idstaff = shift;
+  my $daydate = shift;
+  return $self->{db}->querysorted("select public.getuuid() as id, '".$idstaff."' as id_staff,date('".$daydate."') as daydate,'00:00' as stamp_in,'00:00' as stamp_out, '00:00' as total");
+}
+
+sub saveTrackDataSets(){
+  my $self = shift;
+  my $schema = shift;
+  my $daydate = shift;
+  my $idstaff = shift;
+  my $trackdata = shift;
+  #print STDERR Dumper($trackdata);
+  my @ttids = ();
+  foreach my $t (@{$trackdata}){
+    my $sql = "INSERT INTO ".$schema.".timetracker (id,daydate,id_staff,stamp_in,stamp_out) 
+    VALUES ('".$t->{id}."',date('".$daydate."'),'".$idstaff."','".$t->{stamp_in}."'::timestamp,'".$t->{stamp_out}."'::timestamp) on conflict on constraint timetracker_pkey do update set stamp_in='".$t->{stamp_in}."'::timestamp,stamp_out='".$t->{stamp_out}."'::timestamp;";
+    push(@ttids,"'".$t->{id}."'");
+    #print STDERR "INSERT TRACK:".$sql."\n";
+    $self->{db}->exec($sql);
+  }
+  my $delsql = "DELETE FROM ".$schema.".timetracker WHERE id_staff='".$idstaff."' and daydate=date('".$daydate."') and id not in (".join(",",@ttids).");";
+  #print STDERR "DEL TRACKS: ".$delsql."\n";
+  return 1;
+}
+
+sub SyncToTimeTracker(){
+  my $self = shift;
+
+}
+
+sub getTimeTrackData(){
+  my $self = shift;
+
+}
+
+sub ImportTimeTrackExcel(){
+  my $self = shift;
+}
+
+1;
\ No newline at end of file
index 3412b67..fe3281f 100644 (file)
@@ -20,6 +20,7 @@ sub new {
     my $class = shift;
     my $p = shift;
     my $self = bless {}, $class;
+    $self->{debug} = 1;
     $self->{dbh} = DBI->connect($p->{dsn},$p->{dbuser},$p->{dbpassword},{PrintError=>1,RaiseError=>1,AutoCommit=>1})  or return "query Connection Error!".$!;
     return $self;
 }
@@ -45,21 +46,31 @@ sub value(){
   return "'".$text."'";
 }
 
+sub logerror(){
+  my $self = shift;
+  my $fn = shift;
+  my $stat = shift;
+  #print STDERR "\n===$fn===\n$stat\n=========\n";
+  return ();
+}
+
 sub query_unenc(){
        my $self = shift;
     my $stat = shift;
     # my $vw_info = shift;
-    my $retdata = undef;
+    my $retdata = ();
     #my $self->{dbh} = DBI->connect($sitecfg->{dsn},$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>1,RaiseError=>1,AutoCommit=>1})  or return $retdata->{error} = "query Connection Error!".$!;
     $stat = encode("utf8", $stat);
     # open FILE,">>tmp/sql.log";
     #  print FILE "$stat\n";
     #  close FILE;
-    # print STDERR "QUERY:\n".$stat."\n===\n";
-    my $sth = $self->{dbh}->prepare($stat) or return $retdata->{error} = "query".$self->{dbh}->errstr. "- SQL: ".$stat;;
+    if ($self->{debug} == 1){
+      print STDERR "QUERY_UNENC:\n".$stat."\n===\n";
+    }
+    my $sth = $self->{dbh}->prepare($stat) or return $self->logerror("query_unenc",$stat);
 
                
-   $sth->execute() or return $retdata->{error} = "query: ".$sth->errstr. "- SQL: ".$stat;;
+   $sth->execute() or return $self->logerror("query_unenc",$stat);
    
    my $data = $sth->fetchrow_hashref();
    foreach my $k (keys %{$data}){
@@ -76,17 +87,22 @@ sub query(){
        my $self = shift;
     my $stat = shift;
     # my $vw_info = shift;
-    my $retdata = undef;
+    my $retdata = ();
     #my $self->{dbh} = DBI->connect($sitecfg->{dsn},$sitecfg->{dbuser},$sitecfg->{dbpassword},{PrintError=>1,RaiseError=>1,AutoCommit=>1})  or return $retdata->{error} = "query Connection Error!".$!;
     $stat = encode("utf8", $stat);
-    # open FILE,">>tmp/sql.log";
+    # open FILE,">>sql.log";
     #  print FILE "$stat\n";
     #  close FILE;
-    # print STDERR "QUERY:\n".$stat."\n===\n";
-    my $sth = $self->{dbh}->prepare($stat) or return $retdata->{error} = "query".$self->{dbh}->errstr. "- SQL: ".$stat;;
-
+    if ($self->{debug} == 1){
+      print STDERR "QUERY:\n".$stat."\n===\n";
+    }
+    #print STDERR "QUERY:\n".$stat."\n===\n";
+    my $sth = $self->{dbh}->prepare($stat) or return $self->logerror("query",$stat);
+    # if ($self->{dbh}->errstr){
+    #   print STDERR "QUERY:\n".$stat."\n===\n";
+    # }
                
-   $sth->execute() or return $retdata->{error} = "query: ".$sth->errstr. "- SQL: ".$stat;
+   $sth->execute() or return $self->logerror("query",$stat);
    
    my $data = $sth->fetchrow_hashref();
    foreach my $k (keys %{$data}){
@@ -111,9 +127,12 @@ sub querybykey(){
     # open FILE,">>sql.log";
     # print FILE "$stat\n";
     # close FILE;
-    # print STDERR "QUERYBYKEY:\n".$stat."\n===\n";
-    my $sth = $self->{dbh}->prepare($stat) or return $retdata->{error} = "query: ".$stat;
-   $sth->execute() or return $retdata->{error} = "query: ".$stat;
+    if ($self->{debug} == 1){
+      print STDERR "QUERYBYKEY:\n".$stat."\n===\n";
+    }
+     #print STDERR "QUERYBYKEY:\n".$stat."\n===\n";
+    my $sth = $self->{dbh}->prepare($stat) or return $self->logerror("querybykey",$stat);
+   $sth->execute() or return $self->logerror("querybykey",$stat);
    while(my $data = $sth->fetchrow_hashref())
    {
      if (exists $data->{$key}){
@@ -137,19 +156,22 @@ sub querysorted(){
     my $self = shift;
     my $stat = shift;
     # my $vw_info = shift;
-    my $retdata;
+    my $retdata = ();
     #my $self->{dbh} = DBI->connect($sitecfg->{dsn},$sitecfg->{dbuser},$sitecfg->{dbpassword},{AutoCommit=>1})  or return $retdata->{error} = "query Connection Error!".$!;
     #  $stat = encode("utf8", $stat);
   #  open FILE,">>tmp/sql.log";
   #  print FILE "\n==\n$stat\n==\n";
   #  close FILE;
     if ($stat !~ /sessions/){
-      # print STDERR "QUERYSORTED:\n".$stat."\n===\n";
+      if ($self->{debug} == 1){
+        print STDERR "QUERYSORTED:\n".$stat."\n===\n";
+      }
+       #print STDERR "QUERYSORTED:\n".$stat."\n===\n";
     } 
-    my $sth = $self->{dbh}->prepare($stat) or return $retdata->{error} = "querysorted ".$self->{dbh}->errstr. "- SQL: ".$stat;;
+    my $sth = $self->{dbh}->prepare($stat) or return $self->logerror("querysorted",$stat);
 
                
-   $sth->execute() or return $retdata->{error} = "querysorted: ".$sth->errstr. "- SQL: ".$stat;;
+   $sth->execute() or return $self->logerror("querysorted",$stat);
    my $count = 0;
 
    while(my $data = $sth->fetchrow_hashref())
@@ -184,9 +206,12 @@ sub exec(){
     # open FILE,">>sql.log";
     # print FILE "\n==\n$stat\n==\n";
     # close FILE;
-    # print STDERR "EXEC:\n".$stat."\n===\n";
-    my $sth = $self->{dbh}->prepare($stat) or return $retdata->{error} = "exec ".$self->{dbh}->errstr. "- SQL: ".$stat;;
-   $retdata->{success}  = $self->{dbh}->do($stat) or return $retdata->{error} = "exec ".$self->{dbh}->errstr. "- SQL: ".$stat;
+    if ($self->{debug} == 1){
+      print STDERR "EXEC:\n".$stat."\n===\n";
+    }
+    #print STDERR "EXEC:\n".$stat."\n===\n";
+    my $sth = $self->{dbh}->prepare($stat) or return $self->logerror("exec",$stat);
+   $retdata->{success}  = $self->{dbh}->do($stat) or return $self->logerror("exec",$stat);
    #$self->{dbh}->disconnect();
    return $retdata;
 }
index 0e8dac2..f08af64 100644 (file)
@@ -212,6 +212,8 @@ left join usergroups ugrp on (ugrp.id=us.id_usergroup)
 where se.id= '".$self->{db}->securetext($sid)."' and se.remote_addr= '".$ENV{REMOTE_ADDR}."' and se.user_agent= '".$ENV{HTTP_USER_AGENT}."' and 
 us.isblocked is null group by se.id,us.id,ugrp.id;";
   my $res= $self->{db}->querysorted($sql);
+  print STDERR "SESSION:".$sql."\n";
+  print STDERR Dumper($res)."\n";
   my $ret = undef;
   # open FILE,">>tmp/sql.log";
   # print FILE "GET DB Session\n";
index 921d6a9..e9f16d7 100644 (file)
@@ -45,6 +45,8 @@ my $sess = $se->getsession($p->{sid});
 if ($sess == undef){
   print $cgi->header(-type=>"application/json", -charset => "utf-8");
   $html->{error} = "No Authorisation";
+  $html->{params} = $p;
+  $html->{session} = $sess;
   print JSON::PP::encode_json($html);
   exit(0);
 }
@@ -79,8 +81,8 @@ if (($cgi->request_method() eq "GET") || ($cgi->request_method() eq "POST")){
       my @stat = stat($file);
       print $cgi->header(  
         -type => $mimetype,
-        -target => basename($p->{open}),
-        -attachment => basename($p->{open})
+        -target => basename($p->{open})
+        #-attachment => basename($p->{open})
       );
       open(DLD,$file);
       binmode(DLD);
index 0d60ac6..ac3f257 100644 (file)
@@ -91,4 +91,5 @@
 <glyph unicode="&#xe951;" d="M528.302 441.217c0.651 0.772 1.252 1.577 1.787 2.416-0.534-0.855-1.119-1.661-1.787-2.416z" />
 <glyph unicode="&#xe952;" d="M458.499-21.888c-57.395 4.965-111.283 21.958-162.466 47.857-82.11 41.567-147.22 102.24-194.462 181.079-42.082 70.251-63.941 147.010-65.728 229.423-0.15 6.458-0.15 12.933 0 19.324 0.15 12.228 0.802 24.306 1.87 36.283 19.889 225.447 189.82 404.698 419.2 432.208 7.197 0.839 14.478 0.99 23.88 1.61v-48.763c-77.434-6.425-148.974-28.533-210.978-73.891-116.844-85.381-180.786-195.035-184.91-329.163-0.334-10.216-0.301-20.532 0.117-30.999 0.701-19.542 2.588-39.554 5.745-60.035 23.546-153.988 112.419-260.623 251.49-324.533 34.484-15.869 74.028-21.22 111.684-29.053 16.933-3.523 26.836-9.813 27.704-27.577 0.701-16.238-5.811-25.279-23.145-23.769z" />
 <glyph unicode="&#xe953;" d="M831.743 103.969c-73.527-71.928-163.752-112.925-266.219-124.885-13.844-1.627-29.073-4.311-32.146 16.053-2.622 17.328 7.181 28.768 26.936 33.264 32.53 7.431 65.594 13.369 97.356 23.484 58.731 18.737 108.612 53.275 150.744 97.61 122.188 128.408 158.358 279.829 98.492 446.147-59.867 166.418-184.81 258.308-359.935 280.299-2.839 0.352-5.694 0.755-11.038 1.459v48.696c18.703-2.114 36.655-2.634 53.955-6.29 187.565-39.235 316.667-149.090 371.591-333.222 54.94-184.4 7.732-348.168-129.736-482.614z" />
+<glyph unicode="&#xe954;" glyph-name="usertime" d="M557.61 283.76c0 0 234.191-55.807 256.508-278.821h-814.117c0 0 66.954 245.319 267.693 267.648l54.36-232.801 39.942 0.321 45.427 119.165-42.397 73.563h84.77l-40.646-75.446 51.832-116.487 31.151 0.25zM721.151 752.498c3.881 0.061 7.808-1.164 11.085-3.756l86.55-69.216c0.927-0.749 1.758-1.573 2.49-2.458l1.384-2.053 0.604-0.177c3.044-1.077 5.694-2.969 7.708-5.437 2.408-2.972 3.834-6.662 3.883-10.763l0.775-110.79c0.044-9.547-7.646-17.359-17.196-17.446-9.534-0.042-17.332 7.639-17.418 17.206l-0.771 102.937-0.623 0.275c-0.864 0.474-1.701 1.029-2.502 1.669l-86.513 69.196c-7.448 5.987-8.658 16.859-2.723 24.365 3.363 4.163 8.277 6.368 13.267 6.447zM401.426 759.683c33.843 0 65.776-7.706 94.582-21.095-8.652-26.989-13.395-55.697-13.395-85.511 0-93.086 45.61-175.496 115.472-226.751-38.319-69.217-111.983-116.086-196.66-116.086-124.119 0-224.722 100.616-224.722 224.733 0 124.113 100.603 224.711 224.722 224.711zM786.072 821.774c-92.958 0-168.706-75.661-168.706-168.701 0-93.019 75.748-168.723 168.706-168.723 93.042 0 168.708 75.705 168.708 168.723 0 93.040-75.666 168.701-168.708 168.701zM786.072 891.011c131.44 0 237.961-106.559 237.961-237.939 0-131.359-106.521-237.917-237.961-237.917-131.347 0-237.911 106.558-237.911 237.917 0 131.38 106.564 237.939 237.911 237.939z" />
 </font></defs></svg>
\ No newline at end of file
index 34377fc..dfc74f7 100644 (file)
Binary files a/website/app/static/css/fonts/pot.ttf and b/website/app/static/css/fonts/pot.ttf differ
index 0a6c2ae..61a800b 100644 (file)
Binary files a/website/app/static/css/fonts/pot.woff and b/website/app/static/css/fonts/pot.woff differ
index 31870d9..171a7dd 100644 (file)
@@ -1,9 +1,9 @@
 @font-face {
   font-family: 'pot';
   src:
-    url('fonts/pot.ttf?ze06co') format('truetype'),
-    url('fonts/pot.woff?ze06co') format('woff'),
-    url('fonts/pot.svg?ze06co#pot') format('svg');
+    url('fonts/pot.ttf?26xz5o') format('truetype'),
+    url('fonts/pot.woff?26xz5o') format('woff'),
+    url('fonts/pot.svg?26xz5o#pot') format('svg');
   font-weight: normal;
   font-style: normal;
   font-display: block;
@@ -36,6 +36,9 @@
 .icon-duplicate:before {
   content: "\e949";
 }
+.icon-usertime:before {
+  content: "\e954";
+}
 .icon-replace:before {
   content: "\e94c";
 }
index ccebd84..46dd95d 100644 (file)
@@ -236,14 +236,14 @@ fillselectlist: function(obj,data,vidcol,vvalcol){
   return false;
 },
 savefield: function(obj,callback){
-    
+  console.log("savefield");  
   fdata = obj.dataset;
   fdata["save"] = "field";
   fdata["schemata"] = schemata;
   if (obj.tagName == 'INPUT' || obj.tagName == 'SELECT' || obj.tagName == 'TEXTAREA'){
     if (obj.type == 'checkbox' || obj.type == 'radio'){
       if (obj.checked == true){
-        fdata["value"] = obj.value;
+        fdata["value"] = 1;
       } else {
         fdata["value"] = null;
       }
@@ -251,19 +251,19 @@ savefield: function(obj,callback){
       fdata["value"] = obj.value;
     }
   }
-  //console.log("Save",fdata);
+  console.log("Save",fdata);
   postData("db.cgi",fdata).then(data => { if (callback){callback(data);}});
   return false;
 },
 saveschemafield: function(obj,schema){
-  
+  console.log("saveschemafield");
   fdata = obj.dataset;
   fdata["save"] = "field";
   fdata["schemata"] = schema;
   if (obj.tagName == 'INPUT' || obj.tagName == 'SELECT' || obj.tagName == 'TEXTAREA'){
     if (obj.type == 'checkbox' || obj.type == 'radio'){
       if (obj.checked == true){
-        fdata["value"] = obj.value;
+        fdata["value"] = 1;
       } else {
         fdata["value"] = null;
       }
@@ -271,6 +271,7 @@ saveschemafield: function(obj,schema){
       fdata["value"] = obj.value;
     }
   }
+  console.log("Save",fdata);
   postData("db.cgi",fdata).then(data => { });
   return false;
 },
index 311b4d4..0254614 100644 (file)
@@ -14,8 +14,7 @@
           <div class="row">
           <div class="container third center">
             <div class="cell center">
-              <input class="white text-black readonly" id="infofreetimebefore" name="infofreetimebefore" style="width: 60px;" type="text" value=""> <label class="label" for=
-                  "infofreetimebefore">heures libres avant</label>
+              <input class="white text-black readonly" id="infofreetimebefore" name="infofreetimebefore" style="width: 60px;font-weight: bold;" type="text" value=""> <label class="label" style="font-weight:bold;" for="infofreetimebefore">heures libres avant</label>
             </div>
           </div>
           <div class="container third center">
@@ -25,7 +24,7 @@
           </div>
           <div class="container third center">
             <div class="cell center">
-              <input class="white text-black readonly" id="infofreetimeafter" name="infofreetimeafter" style="width: 60px;" type="text" value=""> <label class="label" for=
+              <input class="white text-black readonly" id="infofreetimeafter" name="infofreetimeafter" style="width: 60px;font-weight: bold;" type="text" value=""> <label class="label" style="font-weight:bold;" for=
                   "infofreetimeafter">heures libres après</label>
             </div>
           </div>
                       <label class="label" for="staffreportperioddays_pauseend2">fin 2</label>
                   </div>
                 </div>
-                <!--<div class="container cell">
+                <div class="container cell">
                   <div class="cell">
                     <div class="cell" style="width: 40px;">
                       <input class="check  data_staffreportperioddays " id="payedpause" name="staffreportperioddays_payedpause" data-column="payedpause"  data-table="staffreportperioddays" data-id="" value="" type="checkbox" onchange="staffperiodweeks.checkworktime();return false;" >
                       pauses payées
                     </div>
                   </div>
-                </div>-->
+                </div>
               </fieldset>
               <fieldset>
               <legend>Info heures</legend>
diff --git a/website/app/tmpl/block/dlgstaffpointages.tt b/website/app/tmpl/block/dlgstaffpointages.tt
new file mode 100644 (file)
index 0000000..0fd7f72
--- /dev/null
@@ -0,0 +1,22 @@
+<div class="modal" id="dlg_stafftimetracker">
+  <div class="modal-content animate-top card-4">
+    <header style="margin-bottom: 0;">
+    <div class="bar moduletoolbar">
+      
+      <div class="bar-item SubHeadTitle">
+        Editer Pointage / <span id="dlg_stafftimetracker_staffname"></span> - <span id="dlg_stafftimetracker_date"></span>
+      </div>
+      <button class="bar-item toolbarbtn right" onclick="document.getElementById('dlg_stafftimetracker').style.display='none'; return false;"><span class="icon icon-remove" style="font-size: 16px;"></span>fermer</button>
+          <button class="bar-item toolbarbtn  right" onclick="staffperiodweeks.ttadd(); return false;"><span class="icon icon-edit" style="font-size: 16px;"><br/>ajouter</button>
+          <button class="bar-item toolbarbtn right" onclick="staffperiodweeks.ttremove();"><span class="icon icon-trash text-red" style="font-size: 16px;"></span>supprimer</button>
+      </div>
+    </header>
+    <div class="container" style=" padding: 0; height: 400px;">
+      <div id="tbl_daytimetracker"></div>
+    </div>
+    <footer style="margin-top: 0px;">
+      <button class="button theme-light margin-right border" onclick="document.getElementById('dlg_stafftimetracker').style.display='none'; return false;"><span class="icon icon-remove"></span>Annuler</button> <button class=
+      "button actionbtn margin-right border" id="btn_savetimetracker" onclick="staffperiodweeks.savetimetracker();return false;"><span class="icon icon-Save"></span>Sauvegarder</button>
+    </footer>
+  </div>
+</div>
index 8351390..0746283 100644 (file)
@@ -1,4 +1,4 @@
-[% appversion = '0.9.2.1' %]
+[% appversion = '0.9.2.2' %]
 
 <!DOCTYPE html>
 <html lang="fr">
index 919a0fe..19a3d1d 100644 (file)
@@ -56,7 +56,7 @@ body, html {height: 100%}
           [% INCLUDE module/login/login.tt %]
         [% END %]
     </div>
-    <div class="container white" id="pnlbrowser" style="display: none;">
+    <!-- <div class="container white" id="pnlbrowser" style="display: none;">
         <div class="row">
         <div class="container large">l'application est développée pour l'ultisation sur un desktop, testé et optimisé pour les navigateurs ci-dessous!</div>
         <div class="container quarter center">
@@ -72,7 +72,7 @@ body, html {height: 100%}
           <a href="https://www.opera.com/" target="blank"><img src="[% abspath %][% staticpath %]img/opera.svg" style="width: 64px;" alt="Opera" /><br/>Opera</a>
         </div>
         </div>
-    </div>
+    </div> -->
   </div>
   <div class="col l4 m2  hide-small">&nbsp;
   </div>
@@ -92,22 +92,22 @@ body, html {height: 100%}
   
   <script>
     const browser = window.bowser.getParser(window.navigator.userAgent);
-    //console.log(browser);
+    console.log(browser);
     //console.log(`The current browser name is "${browser.getBrowserName()}"`);
-    const isValidBrowser = browser.satisfies({
-      desktop: {
-        chrome: ">52",
-        edge: ">79",
-        firefox: ">52",
-        safari: ">11.1",
-        opera: ">39",
-      }
-    });
-    if (!isValidBrowser){
-      document.getElementById("pnllogin").style.display = 'none';
-      document.getElementById("pnlbrowser").style.display = 'block';
-      console.log("browser is not valid!");
-    }
+    // const isValidBrowser = browser.satisfies({
+    //   desktop: {
+    //     chrome: ">52",
+    //     edge: ">79",
+    //     firefox: ">52",
+    //     safari: ">11.1",
+    //     opera: ">39",
+    //   }
+    // });
+    // if (!isValidBrowser){
+    //   document.getElementById("pnllogin").style.display = 'none';
+    //   document.getElementById("pnlbrowser").style.display = 'block';
+    //   console.log("browser is not valid!");
+    // }
   </script>
 </body>
 
index cf4b157..6423ebc 100644 (file)
@@ -11,7 +11,7 @@
         <div class="row">
           <div class="cell container" style="width: 300px;">
             <input type="text" class="input  data_companies  " id="datasetname" data-column="datasetname"  data-table="companies" data-id="" name="companies_datasetname" value=""   onblur="dataform.saveschemafield(this,'public');"/>
-        <label for="companies_datasetname" class="label">DataSet</label>
+        <label for="companies_datasetname" class="label">Entreprise/Unité</label>
           </div>
         </div>
         <div class="row">
@@ -77,6 +77,7 @@
       </div>
     </div>
     <div class="row white">
+      <div class="half">
       <div class="bar moduletoolbar">
         <div class="bar-item SubHeadTitle">
           Configuration Périodes
@@ -84,7 +85,7 @@
       </div>
       <div class="row" style="margin-top: 5px;">
         <div class="cell container">
-          <input type="text" class="input data_companies datefield" id="reportperiodstart" name="companies_reportperiodstart" data-column="reportperiodstart"  data-table="companies" data-id=""   value="" />
+          <input type="text" class="input data_companies datefield" id="reportperiodstart" name="companies_reportperiodstart" data-column="reportperiodstart"  data-table="companies" data-id=""   value="" onblur="dataform.saveschemafield(this,'public');"/>
        <label for="companies_reportperiodstart" class="label">début</label>
         </div>
         <div class="cell container" style="width: 60px;">
         </select>
         <label for="companies_reportperiodunit" class="label ">Unité</label>
         </div>
+        <div class="cell" style="padding-left: 10px;">
+                    <div class="cell" style="width: 40px;">
+                      <input class="check  data_companies " id="payedpause" name="companies_payedpauses" data-column="payedpauses"  data-table="companies" data-id="" value="1" type="checkbox" onchange="dataform.saveschemafield(this,'public');">
+                    </div>
+                    <div class="cell">
+                      pauses payées
+                    </div>
+                  </div>
       </div>
+      </div>
+      <div class="half">
+      <div class="bar moduletoolbar">
+        <div class="bar-item SubHeadTitle">
+          POT Pointeuse
+        </div>
+      </div>
+         <div class="row" style="margin-top: 5px;">
+         <div class="cell container" style="width: 120px;">
+          <select class="select data_companies " id="timetrackertype" data-column="timetrackertype"  data-table="companies" data-id="" value="" name="companies_timetrackertype"  >
+        </select>
+        <label for="companies_timetrackertype" class="label ">Type</label>
+        </div>
+        <div class="cell container" style="width: 250px;">
+          <input type="text" class="input text-align-right  right data_companies" id="timetrackerurl" style="width: 250px;" pattern="" name="companies_timetrackerurl" data-column="timetrackerurl"  data-table="companies" data-id="" value="" onblur="dataform.saveschemafield(this,'public');"/>
+        <label for="companies_timetrackerurl" class="label">URL</label>
+        </div>
+      </div>
+      <div class="row">
+        <div class="cell container">
+          <input type="text" class="input data_companies" id="timetrackeruser" pattern="" name="companies_timetrackeruser" data-column="timetrackeruser"  data-table="companies" data-id="" value=""    onblur="dataform.saveschemafield(this,'public');"/>
+        <label for="companies_timetrackeruser" class="label">Utilisateur</label>
+        </div>
+        <div class="cell container">
+          <input type="password" class="input data_companies" id="timetrackerpassword" pattern="" name="companies_timetrackerpassword" data-column="timetrackerpassword"  data-table="companies" data-id="" value=""   onblur="dataform.saveschemafield(this,'public');"/>
+        <label for="companies_timetrackerpassword" class="label">Mot de Passe</label>
+        </div>
+        <div class="cell container">
+          <input type="password" class="input data_companies readonly" id="timetrackerlastsync" pattern="" name="companies_timetrackerlastsync" data-column="timetrackerlastsync"  data-table="companies" data-id="" value=""   readonly/>
+        <label for="companies_timetrackerlastsync" class="label">Dernière Synchronisation</label>
+        </div>
+      </div>
+      
     </div>
     <div class="row">
       <div class="bar moduletoolbar">
index ecf91ec..dfb5000 100644 (file)
@@ -11,7 +11,7 @@
         <div class="row">
           <div class="cell" style="width: 300px;">
             <input type="text" class="input  data_companies readonly " id="datasetname" data-column="datasetname"  data-table="companies" data-id="" name="companies_datasetname" value=""    readonly/>
-        <label for="companies_datasetname" class="label">DataSet</label>
+        <label for="companies_datasetname" class="label">Entreprise/Unité</label>
           </div>
         </div>
         <div class="row">
         </select>
         <label for="companies_reportperiodunit" class="label ">Unité</label>
         </div>
+        
+                  <div class="cell" style="padding-left: 10px;">
+                    <div class="cell" style="width: 40px;">
+                      <input class="check  data_companies " id="payedpause" name="companies_payedpauses" data-column="payedpauses"  data-table="companies" data-id="" value="" type="checkbox" disabled >
+                    </div>
+                    <div class="cell">
+                      pauses payées
+                    </div>
+                  </div>
+                
       </div>
     </div>
     <div class="row">
index ce4c775..3be30e5 100644 (file)
@@ -1,4 +1,3 @@
-
 <div class="display-container" >
       
   <div class="bar border-bottom toolbar" id="toolbar">
     </div>
   </div>
   [% END %]
-  <!--<div class="card"  style="margin-top: 10px;">
-    <header class="container moduletoolbar">
-      <h3>Profile</h3>
-    </header>
-    <div class="bar">
-      <a class="bar-item bodybtn" href="[% abspath %]profile.html"><span class="icon icon-key" style="font-size: 24px;"/></span>Changer mot de passe</a>
-      
-    </div>
-  </div>-->
 </div>
 <script type="text/javascript" src="index/index.js?v=[% appversion %]"></script>
 
index 93e3341..a1aef70 100644 (file)
@@ -42,6 +42,7 @@
   </div>
 </div>
     [% INCLUDE block/dlgstaffperioddays.tt %]
+    [% INCLUDE block/dlgstaffpointages.tt %]
     [% INCLUDE block/dlgstaffpayedhours.tt %]
     [% INCLUDE block/dlg_replacestaffdayworkplan.tt %]
     <script type="text/javascript" src="periods/reportperiod.js?v=[% appversion %]"></script>
index 6bd37e5..cdc9451 100644 (file)
@@ -60,7 +60,9 @@ let reportperiod ={
         {title: "payés", field:"payedhours",headerSort: false} ,
         {title: "décompte<br/>fin POT", field:"hoursdiff",headerSort: false},
         {title: "congé suppl.<br/>+44 h", field:"suppvacancy44hours",headerSort: false},
-        {title: "congé suppl.<br/>trav dim.", field:"suppvacancysunwork",headerSort: false}
+        {title: "congé suppl.<br/>trav dim.", field:"suppvacancysunwork",headerSort: false},
+        //{title: "ITM Contract", field:"itmcontracthours",headerSort: false},
+        {title: "jours<br/>ouvrables", field:"maxdays",headerSort: false}
           ]
     });
     reportperiod.gettbldatafilter();
index 7ddf064..9416c33 100644 (file)
@@ -1,12 +1,17 @@
 
 let staffperiodweeks = {
   tbl: null,
+  today: null,
+  tbltimetracker: null,
   //name: "staffperiodweeks",
   currentday: null,
   dayrefdata: null,
   parenttbl: null,
   copy_id: null,
   weekdata:null,
+  daylimits:null,
+  vacancytypes:{},
+  recuperationtypes:{},
   choices:{"id_vacancytype":null,"id_recuperationtype":null,"id_workplan":null},
   disablesave: false,
   initform: function(){
@@ -36,6 +41,7 @@ let staffperiodweeks = {
     });
     staffperiodweeks.getvacancy();
     staffperiodweeks.getrecuperation();
+    staffperiodweeks.getdefaultdaylimits();
     let tfields = document.getElementsByClassName("timefield");
     for (let i=0;i<tfields.length;i++){
       if (tfields[i].id == "vacancyhours" || tfields[i].id == "recuperationhours" || tfields[i].id == "workhours"){
@@ -52,6 +58,7 @@ let staffperiodweeks = {
     document.getElementById("keeprecuperation").setAttribute("checked",true);
   },
   inittable: function(){
+     
      staffperiodweeks.tbl = new Tabulator("#tbl_staffperiodweeks", {
       height: "calc(100vh - 112px)",
       layout: "fitDataFill",
@@ -64,30 +71,52 @@ let staffperiodweeks = {
       groupHeader:[function(value, count, data){ 
         if (staffperiodweeks.weekdata && staffperiodweeks.weekdata[value]){
           return staffperiodweeks.weekdata[value].calyear + " - " + staffperiodweeks.weekdata[value].calweek + " ("+ moment(staffperiodweeks.weekdata[value].weekstart).format("DD.MM.YYYY") + " - " + moment(staffperiodweeks.weekdata[value].weekend).format("DD.MM.YYYY") +")"
-          + " (Contrat: "+ staffperiodweeks.weekdata[value].contracthours +"h / "+ parseInt(staffperiodweeks.weekdata[value].contractworkdays) +" jours) (max heures: "+ staffperiodweeks.weekdata[value].maxweekhours +")";
+          + " (Contrat: "+ staffperiodweeks.weekdata[value].contracthours +"h / "+ parseInt(staffperiodweeks.weekdata[value].contractworkdays) +" jours)";
         } else {
           return value;
         }
       },
       ],
       columns: [
-        { title: "date",field: "daydate",hozAlign:"right",headerSort:"datetime",formatter:"datetime",formatterParams:{inputFormat:"YYYY-MM-DD",outputFormat:"dd, DD.MM.YYYY",invalidPlaceholder:""}},
-        { title: "heures de<br/>travail",field: "dspworkdata",headerSort: false,hozAlign:"center",formatter:sizeFormatter},
+        { title: "date",field: "daydate",hozAlign:"right",headerSort:"datetime",formatter:dateFormatter},
+        { title: "heures de<br/>travail",field: "dspworkdata",headerSort: false,hozAlign:"center",formatter:worktimeFormatter},
         // { title: "total<br/>travail",field: "workhours",headerSort: false,hozAlign:"center",bottomCalc:staffperiodweeks.setweekworkhours},
         { title: "heures de<br/>pause",field: "dsppausedata",headerSort: false,hozAlign:"center",formatter:sizeFormatter},
         { title: "total<br/>pause",field: "timepause",headerSort: false,hozAlign:"center"},
-        { title: "Coup.",field: "interruptionhours",headerSort:false,hozAlign:"center"},
-        { title: "Congé",field: "vacancyhours",headerSort: false,hozAlign:"center",bottomCalc:staffperiodweeks.setweekvacancyhours},
-        { title: "Total",field: "dayhours",hozAlign:"center",headerSort: false,formatter:boldFormatter,bottomCalc:staffperiodweeks.setweektotalhours,bottomCalcFormatter:"html"},
+        { title: "Coup.",field: "interruptionhours",headerSort:false,hozAlign:"center",formatter:interruptFormatter},
+        { title: "Congé",field: "vacancyhours",headerSort: false,hozAlign:"center",formatter:vacancyformatter,bottomCalc:staffperiodweeks.setweekvacancyhours},
+        { title: "Récup",field: "recuperationhours",hozAlign:"center",headerSort: false,formatter:recupformatter,bottomCalc:staffperiodweeks.setweekrecuperationhours},
+        { title: "Total",field: "dayhours",hozAlign:"center",headerSort: false,formatter:totalFormatter,bottomCalc:staffperiodweeks.setweektotalhours,bottomCalcFormatter:"html"},
         { title: "diff<br/>contrat",field:"diffhours",hozAlign:"center",formatter:nullFormatter,headerSort:false,bottomCalc:staffperiodweeks.setweekdiffhours},
-        { title: "décompte<br/>fin POT",field: "recuperationhours",hozAlign:"center",headerSort: false,bottomCalc:staffperiodweeks.setweekrecuperationhours},
         { title: "moyenne<br/> hebdomaire",field: "avgweekhours",hozAlign:"center",headerSort: false,formatter:nullFormatter,bottomCalc:staffperiodweeks.setavgweekhours},
-        { title: "heures libres<br/>après trav",field: "freehoursafter",hozAlign:"center",formatter:italicFormatter,headerSort: false},
+        { title: "heures libres<br/>après trav",field: "freehoursafter",hozAlign:"center",formatter:freetimeFormatter,headerSort: false},
+        { title: "pointages",field:"trackedtime",hozAlign:"center",formatter:timetrackFormatter,headerSort: false}
       ]
   });
   staffperiodweeks.initform();
+  staffperiodweeks.inittimetracktable();
+  },
+  inittimetracktable: function(){
+    staffperiodweeks.tbltimetracker = new Tabulator("#tbl_daytimetracker", {
+      height: "400px",
+      layout: "fitDataFill",
+      selectable: true,
+      selectableRangeMode:"click",
+      dataEdited:function(data){
+        console.log("after edited",data);
+        staffperiodweeks.timerowtracktotal(data);
+        
+      },
+      rowContext:function(e, row){e.preventDefault();},
+      columns: [
+        { title: "Entrée",field: "stamp_in",headerSort: false,hozAlign:"left",width: 80,editor:"input",editorParams:{mask:"99:99",elementAttributes:{maxlength: 5}}},
+        { title: "Sortie",field: "stamp_out",headerSort: false,hozAlign:"left",width: 80,editor:"input",editorParams:{mask:"99:99",elementAttributes:{maxlength: 5}}},
+        { title: "Total",field: "total",headerSort: false,hozAlign:"left",width: 90,formatter:boldFormatter,bottomCalc:staffperiodweeks.settrackdaytotal,bottomCalcFormatter:"html"}
+      ]
+    });
   },
   gettbldata: function(){
+    staffperiodweeks.today= moment(new Date()).format('YYYY-MM-DD');
     let selrp = staffperiodweeks.parenttbl.getSelectedData();
     let weekmonstart = moment(selrp[0].startdate).startOf('isoWeek').format("YYYY-MM-DD");
     let weeksunend = moment(selrp[0].enddate).endOf('isoWeek').format("YYYY-MM-DD");
@@ -98,6 +127,7 @@ let staffperiodweeks = {
       staffperiodweeks.weekdata = data.result.data;
       //console.log("WeekData",staffperiodweeks.weekdata);
       //console.log(JSON.stringify({ "vw":  "staffreportperioddays_new","schemata":schemata,"filter":"id_staff='" + selrp[0].id_staff + "' and daydate between date('"+weekmonstart+ "') and date('" +weeksunend+"')"}));
+      //console.log({ "get":  "perioddays","schemata":schemata,"id_staff":selrp[0].id_staff,"date_start":weekmonstart,"date_end":weeksunend});
       postData("db.cgi",{ "get":  "perioddays","schemata":schemata,"id_staff":selrp[0].id_staff,"date_start":weekmonstart,"date_end":weeksunend}).then(data => {
         //console.log("perioddays",data);
         if (data && data.result.sqldata) { staffperiodweeks.tbl.setData(data.result.sqldata);}
@@ -217,15 +247,31 @@ let staffperiodweeks = {
     }).catch(e => {closedataloaddlg();});
   },
   getvacancy: function(){
-    postData("db.cgi",{"get":"vacancytypes","schemata":schemata}).then(data => { dataform.fillselectlist(staffperiodweeks.choices["id_vacancytype"],data.result.sqldata,'id','vacancyname');})
-
+    postData("db.cgi",{"get":"vacancytypes","schemata":schemata}).then(data => { 
+      console.log("vacancytypes",data.result.sqldata);
+      dataform.fillselectlist(staffperiodweeks.choices["id_vacancytype"],data.result.sqldata,'id','vacancyname');
+      for (var v in data.result.sqldata){
+        staffperiodweeks.vacancytypes[data.result.sqldata[v].id] = data.result.sqldata[v];
+      }
+      console.log("vacancytypes",staffperiodweeks.vacancytypes);
+    });
+    //
   },
 
   getrecuperation: function(){
-    postData("db.cgi",{"get":"recuperationtypes","schemata":schemata}).then(data => {dataform.fillselectlist(staffperiodweeks.choices["id_recuperationtype"],data.result.sqldata,'id','vacancyname');});
+    postData("db.cgi",{"get":"recuperationtypes","schemata":schemata}).then(data => {
+      console.log("recuperationtypes",data.result.sqldata);
+      dataform.fillselectlist(staffperiodweeks.choices["id_recuperationtype"],data.result.sqldata,'id','vacancyname');
+      for (var r in data.result.sqldata){
+        staffperiodweeks.recuperationtypes[data.result.sqldata[r].id] = data.result.sqldata[r];
+      }
+      console.log("recuperationtypes",staffperiodweeks.recuperationtypes);
+    });
 
   },
-
+  getdefaultdaylimits: function(){
+    postData("db.cgi",{"get":"recuperationtypes","schemata":schemata}).then(data => {staffperiodweeks.daylimits= data.result.data;});
+  },
   setvacancyhours: function(){
     //console.log("Set vacancy hours!");
     //console.log(staffperiodweeks.choices["id_vacancytype"].selected());
@@ -267,7 +313,7 @@ let staffperiodweeks = {
     let odp = document.getElementById("timepause");
     let oirupt = document.getElementById("interruptionhours");
     let owkh = document.getElementById("workhours");
-    //let ppy = document.getElementById("payedpause");
+    let ppy = document.getElementById("payedpause");
     let msg = "";
     
     if (ode1.value && ods1.value){
@@ -338,11 +384,11 @@ let staffperiodweeks = {
       oirupt.classList.add("text-black");
       oirupt.value="00:00";
     }
-    //if ((ppy.checked) && (ppy.checked == true)){
+    if ((ppy.checked) && (ppy.checked == true)){
+      owkh.value= timecalc.MinutesToTime(mt1+mt2);
+    } else {
       owkh.value= timecalc.MinutesToTime(mt1+mt2-mtp);
-    //} else {
-    //  owkh.value= timecalc.MinutesToTime(mt1+mt2);
-    //}
+    }
     
     staffperiodweeks.checkdaytime();
   },
@@ -364,7 +410,7 @@ let staffperiodweeks = {
     if (orech.value){
       reptime = timecalc.TimeToMinutes(orech.value);
     }
-    let fulldaytime =  wktime+vactime;//+reptime;
+    let fulldaytime =  wktime+vactime+reptime;
     odyh.value= timecalc.MinutesToTime(fulldaytime);
     //console.log("cmp",odyh.value,staffperiodweeks.dayrefdata.maxdayhours);
     if (fulldaytime > timecalc.TimeToMinutes(staffperiodweeks.dayrefdata.maxdayhours)){
@@ -376,7 +422,7 @@ let staffperiodweeks = {
       odyh.classList.add("text-black");
       staffperiodweeks.disablesave=false;
     }
-    document.getElementById("btn_saveday").disabled=staffperiodweeks.disablesave;
+    //document.getElementById("btn_saveday").disabled=staffperiodweeks.disablesave;
     staffperiodweeks.calcfreetime();
   },
   calcfreetime: function(){
@@ -472,6 +518,75 @@ let staffperiodweeks = {
       document.getElementById('dlg_replacestaffdayworkplan').style.display='none';
       staffperiodweeks.gettbldata();
     }).catch(e => { console.log("ERROR replaceids",e);});
+  },
+  savetimetracker: function(){
+    let sel = staffperiodweeks.tbl.getSelectedData();
+    let flds={};
+    flds["fn"]="savetrackdatasets";
+    flds["schemata"]= schemata;
+    flds["id_staff"]=sel[0].id_staff;
+    flds["daydate"]= sel[0].daydate;
+    let timetrackdata = staffperiodweeks.tbltimetracker.getData();
+    trdata = [];
+    for (var i=0;i<timetrackdata.length;i++){
+      if (timetrackdata[i].total > "00:00"){
+        let stpoutday = sel[0].daydate;
+        if (timetrackdata[i].stamp_in > timetrackdata[i].stamp_out){ stoutday = monment(stpoutday).add(1, 'd').format("YYYY-MM-DD"); }
+        trdata.push({"id":timetrackdata[i].id,"stamp_in":sel[0].daydate + " " +timetrackdata[i].stamp_in + ":00","stamp_out":stpoutday + " " +timetrackdata[i].stamp_out + ":00"});
+      }
+    }
+    flds["timetrackdata"]=trdata;
+    console.log("fields to save",flds);
+    //document.getElementById('dlg_stafftimetracker').style.display='none';
+    postData("db.cgi",flds).then(data => {
+      document.getElementById('dlg_stafftimetracker').style.display='none';
+    }).catch(e => {
+      document.getElementById('dlg_stafftimetracker').style.display='none';
+    });
+  },
+  edittimetracker: function(){
+    
+    staffperiodweeks.inittimetracktable();
+    let sel = staffperiodweeks.tbl.getSelectedData();
+    let selrp = staffperiodweeks.parenttbl.getSelectedData();
+    if (sel.length > 0 && sel[0].daydate < staffperiodweeks.today){
+      postData("db.cgi",{"get":"gettrackday","schemata":schemata,"id_staff":sel[0].id_staff,"daydate":sel[0].daydate}).then(data => {
+        staffperiodweeks.tbltimetracker.setData(data.result.sqldata);
+        console.log("data to load",data.result.sqldata);
+        document.getElementById("dlg_stafftimetracker_staffname").innerHTML = selrp[0].staffname;
+        document.getElementById("dlg_stafftimetracker_date").innerHTML = moment(sel[0].daydate).format("DD.MM.YYYY");
+        document.getElementById('dlg_stafftimetracker').style.display='block';
+      });
+      
+    }
+  },
+  ttadd: function(){
+    let sel = staffperiodweeks.tbl.getSelectedData();
+    postData("db.cgi",{"get":"emptytrackdataset","schemata":schemata,"id_staff":sel[0].id_staff,"daydate":sel[0].daydate}).then(data => {
+      staffperiodweeks.tbltimetracker.addRow(data.result.sqldata,true);
+    });
+    
+  },
+  ttremove: function(){
+    let sel = staffperiodweeks.tbltimetracker.getSelectedRows();
+    staffperiodweeks.tbltimetracker.deleteRow(sel);
+  },
+  settrackdaytotal: function(values, data, calcParams){
+    var calc = 0;
+    values.forEach(function(value){
+      console.log(value);
+        calc += timecalc.TimeToMinutes(value);
+    });
+
+    return timecalc.MinutesToTime(calc);
+  },
+  timerowtracktotal: function(data){
+    let stpin = timecalc.TimeToMinutes(timecalc.StringToTime(data[0].stamp_in));
+    let stpout = timecalc.TimeToMinutes(timecalc.StringToTime(data[0].stamp_out));
+    stpoutcalc = stpout;
+    if (stpin > stpoutcalc){ stpoutcalc = stpoutcalc + 1440; }
+    let total = stpoutcalc-stpin;
+    staffperiodweeks.tbltimetracker.updateData([{"id":data[0].id,"stamp_in":timecalc.MinutesToTime(stpin),"stamp_out":timecalc.MinutesToTime(stpout),"total":timecalc.MinutesToTime(total)}]);
   }
 };
 
@@ -480,15 +595,102 @@ let nullFormatter = function(cell, formatterParams){
 };
 
 let boldFormatter = function(cell, formatterParams){
-  cell.getElement().style.fontWeight="bold";return cell.getValue();
+  cell.getElement().style.fontWeight="bold";
+  return cell.getValue();
+};
+
+let totalFormatter = function(cell, formatterParams){
+  cell.getElement().style.fontWeight="bold";
+  //console.log(staffperiodweeks.weekdata[cell._cell.row.data.weekstart]);
+  if (cell.getValue() > "00:00") {
+    
+    if (cell.getValue() > cell._cell.row.data.defaultdayhours){
+      cell.getElement().style.color="orange";
+    }
+    if (cell.getValue() > cell._cell.row.data.maxdayhours){
+      cell.getElement().style.color="red";
+    }
+  }
+  return cell.getValue();
+};
+
+let interruptFormatter = function(cell, formatterParams){
+  //cell.getElement().style.fontWeight="bold";
+  //console.log(staffperiodweeks.weekdata[cell._cell.row.data.weekstart]);
+  if (cell.getValue() > "00:00") {
+    
+    // if (cell.getValue() > cell._cell.row.data.maxinterruptionhours){
+    //   cell.getElement().style.color="orange";
+    // }
+    if (cell.getValue() > cell._cell.row.data.maxinterruptionhours){
+      cell.getElement().style.color="red";
+    }
+  }
+  return cell.getValue();
 };
 
 let sizeFormatter = function(cell, formatterParams){
   cell.getElement().style.fontSize="10pt";return cell.getValue();
 };
 
-let italicFormatter = function(cell, formatterParams){
+let worktimeFormatter = function(cell, formatterParams){
+  //console.log("->" + cell.getValue() + "<-" + "=>" + cell._cell.row.data.dayhours + "<=");
+  if (cell.getValue() != ""){
+    cell.getElement().style.fontSize="10pt";return cell.getValue();
+  }
+  else if (cell._cell.row.data.dayhours == null){
+    return "jour de repos";
+  }
+  return cell.getValue();
+};
+
+let freetimeFormatter = function(cell, formatterParams){
   //cell.getElement().style.textDecoration="italic";
   cell.getElement().style.color="grey";
+  if (cell.getValue() > "00:00") {
+    
+    // if (cell.getValue() > cell._cell.row.data.maxinterruptionhours){
+    //   cell.getElement().style.color="orange";
+    // }
+    if (cell.getValue() < cell._cell.row.data.mindailyrecuperation){
+      cell.getElement().style.color="red";
+    }
+  }
+  
+  return cell.getValue();
+};
+
+let vacancyformatter = function(cell, formatterParams){
+  if (cell.getValue() > "00:00") {
+    cell.getElement().style.color=staffperiodweeks.vacancytypes[cell._cell.row.data.id_vacancytype].color;
+     return  cell.getValue() + "<br/>"+ staffperiodweeks.vacancytypes[cell._cell.row.data.id_vacancytype].vacancyname;   
+  }
+  return cell.getValue();
+};
+
+let recupformatter = function(cell, formatterParams){
+  if (cell.getValue() > "00:00") {
+    cell.getElement().style.color=staffperiodweeks.recuperationtypes[cell._cell.row.data.id_recuperationtype].color;
+    return  cell.getValue() + "<br/>"+ staffperiodweeks.recuperationtypes[cell._cell.row.data.id_recuperationtype].vacancyname;
+  }
+  
+  return cell.getValue();
+};
+
+let dateFormatter = function(cell,formatterParams){
+  if (cell._cell.row.data.vacancyname != null){
+    return moment(cell.getValue()).format('dd, DD.MM.YYYY') + "<br/>" + cell._cell.row.data.vacancyname;
+  }
+  return moment(cell.getValue()).format('dd, DD.MM.YYYY');
+}
+
+let timetrackFormatter = function(cell,formatterParams){
+  if ((cell.getValue() == null) && (cell._cell.row.data.daydate < staffperiodweeks.today) && cell._cell.row.data.dayhours!=null){
+    cell.getElement().style.color="red";
+    return "00:00";
+  }
+  if (cell._cell.row.data.daydate < staffperiodweeks.today && cell._cell.row.data.incompletetrack > 0){
+    cell.getElement().style.color="orange";
+  }
   return cell.getValue();
-};
\ No newline at end of file
+}
index 4f34218..55109c4 100644 (file)
@@ -1,5 +1,7 @@
+
 <button class="bar-item toolbarbtn right" onclick="staffperiodweeks.edit(); return false;"><span class="icon icon-edit" style="font-size: 16px;"></span>éditer</button>
 <button class="bar-item toolbarbtn right" onclick="staffperiodweeks.copy(); return false;"><span class="icon icon-copy" style="font-size: 16px;"></span>copier</button>
 <button class="bar-item toolbarbtn right" onclick="staffperiodweeks.paste(); return false;"><span class="icon icon-paste" id="spwpasteval" style="font-size: 16px;"></span>coller</button>
 <button class="bar-item toolbarbtn right" onclick="staffperiodweeks.clean(); return false;"><span class="icon icon-erase" style="font-size: 16px;"></span>vider</button>
-<button class="bar-item toolbarbtn right" onclick="staffperiodweeks.replacedlg(); return false;"><span class="icon icon-replace" style="font-size: 16px;"></span>changer modèle</button>
\ No newline at end of file
+<button class="bar-item toolbarbtn right" onclick="staffperiodweeks.replacedlg(); return false;"><span class="icon icon-replace" style="font-size: 16px;"></span>changer modèle</button>
+<button class="bar-item toolbarbtn right" onclick="staffperiodweeks.edittimetracker(); return false;"><span class="icon icon-usertime" style="font-size: 16px;"></span>pointages</button>
\ No newline at end of file
index 4e04e32..d72f629 100644 (file)
@@ -7,7 +7,7 @@
     <button class="bar-item toolbarbtn" onclick="staff.setview('periods');"><span class="icon icon-calendar" style="font-size: 16px;"></span>Périodes</button>
     <div class="toolbar paneltoolbar" id="tlb_basedata">
       <button class="bar-item toolbarbtn  right" onclick="staff.remove();"><span class="icon icon-remove text-red" style="font-size: 16px;"></span>supprimer</button>
-      <!-- <button class="bar-item toolbarbtn  right" onclick="staff.edit();"><span class="icon icon-edit" style="font-size: 16px;"><br/>éditer</button> -->
+      <button class="bar-item toolbarbtn  right" onclick="staff.edit();"><span class="icon icon-edit" style="font-size: 16px;"><br/>éditer</button>
       <button class="bar-item toolbarbtn  right" onclick="staff.add();"><span class="icon icon-plus" style="font-size: 16px;"><br/>ajouter</button> 
     </div>
     <div class="toolbar paneltoolbar" id="tlb_periods">
@@ -52,6 +52,7 @@
 [% INCLUDE module/staff/dlg_addstaff.tt %]
 [% INCLUDE module/staff/dlgstaffpayedhours.tt %]
 [% INCLUDE block/dlgstaffperioddays.tt %]
+[% INCLUDE block/dlgstaffpointages.tt %]
 [% INCLUDE block/dlg_replacestaffdayworkplan.tt %]
 <script type="text/javascript" src="staff/staff.js?v=[% appversion %]"></script>
 <script type="text/javascript" src="staff/staffcontract.js?v=[% appversion %]"></script>
index 71fbeea..e0683fe 100644 (file)
       <button class="bar-item toolbarbtn right" id="btn_delete_staffcontract" onclick="staffcontract.remove(); return false;"><span class="icon icon-remove text-red" style="font-size: 16px;"></span>supprimer</button>
       <button class="bar-item toolbarbtn  right" onclick="staffcontract.edit(); return false;"><span class="icon icon-edit" style="font-size: 16px;"><br/>éditer</button>
       <button class="bar-item toolbarbtn right"  onclick="staffcontract.add(); return false;"><span class="icon icon-plus" style="font-size: 16px;"><br/>ajouter</button> 
+      <button class="bar-item toolbarbtn right"  onclick="staffcontract.updateStaffContractDays(); return false;"><span class="icon icon-week" style="font-size: 16px;"><br/>valider</button> 
       </div>
      
         <div id="tbl_staffcontract" ></div>
index d5754a4..6b8fc86 100644 (file)
@@ -115,19 +115,17 @@ let staffcontract = {
     }
     flds["fn"] ="saveform";flds["table"]="staffcontract";
     flds["schemata"]=schemata;
-    document.getElementById('dlg_staffcontract').style.display='none';
-    showdataloaddlg('','<div class="xxlarge">Attendez s.v.p.!</div>');
+
     postData("db.cgi",flds).then(data => {
-      //("contract data returned",data);
       staffcontract.gettbldata();
-      //dataform.formsaved({});
-      staffcontract.updateStaffContractDays(flds["staffcontract_id_staff"]);
-    }).catch(e => {closedataloaddlg();});
+      document.getElementById('dlg_staffcontract').style.display='none';
+    }).catch(e => {document.getElementById('dlg_staffcontract').style.display='none';});
    
     return false;
   },
-  updateStaffContractDays(id_staff){
-    postData("db.cgi",{"fn":"setstaffcontractdays","schemata":schemata,"id_staff":id_staff}).then(data => {
+  updateStaffContractDays(){
+    showdataloaddlg('','<div class="xxlarge">Attendez s.v.p.!</div>');
+    postData("db.cgi",{"fn":"setstaffcontractdays","schemata":schemata,"id_staff":staff.current_id}).then(data => {
       closedataloaddlg();
     }).catch(e => {
       closedataloaddlg();
index 6c1c462..6964cbd 100644 (file)
@@ -28,7 +28,8 @@ let staffperiods = {
         {title: "payés", field:"payedhours",headerSort: false} ,
         {title: "décompte<br/>fin POT", field:"hoursdiff",headerSort: false,bottomCalc:staffperiods.periodrestsum},
         {title: "congé suppl.<br/>+44 h", field:"suppvacancy44hours",headerSort: false},
-        {title: "congé suppl.<br/>trav dim.", field:"suppvacancysunwork",headerSort: false}
+        {title: "congé suppl.<br/>trav dim.", field:"suppvacancysunwork",headerSort: false},
+        {title: "jours<br/>ouvrables", field:"maxdays",headerSort: false}
           ]
     });
   },
diff --git a/website/app/tmpl/module/timetrackers/index.js b/website/app/tmpl/module/timetrackers/index.js
deleted file mode 100644 (file)
index 724bc0c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-var tbl_periodes = null;
-var tbl_planning = null;
-var schemata = null;
-function initpage() {
-  //console.log("Current Schema:" + schemata);
-  inittable_periodes();
-  inittable_planning();
-}
-
-function inittable_periodes(){
-  tbl_periodes = null;
-  gettbldata_periodes();
-}
-
-function inittable_planning(){
-  tb_planning = null;
-}
-
-function gettbldata_periodes(){
-
-}
-
-function gettbldata_planning(){
-  
-}
\ No newline at end of file
diff --git a/website/app/tmpl/module/timetrackers/index.tt b/website/app/tmpl/module/timetrackers/index.tt
deleted file mode 100644 (file)
index 15a6efe..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<div class="top border-bottom white">
-<div class="bar">
-    <!--<button class="bar-item button border  blue-grey" onclick="viewtable();"><img src="[% abspath%]img/icons/company_white.svg" style="height: 24px;"/>Entreprises</button>-->
-    <!--<button class="bar-item button border  right orange" onclick="xlsxexport(); return false;"><img src="[% abspath%]img/icons/excel_white.svg" style="height: 24px;"/></button>
-    <button class="bar-item button border  right orange" onclick="pdfexport(); return false;"><img src="[% abspath%]img/icons/pdf_white.svg" style="height: 24px;"/></button>-->
-    
-    <!--<button class="bar-item button border  right red" onclick="remove();"><img src="[% abspath%]img/icons/remove_white.svg" style="height: 24px;"/></button>
-    <button class="bar-item button border  right blue-grey" onclick="edit();"><img src="[% abspath%]img/icons/edit_white.svg" style="height: 24px;"/></button>
-    <button class="bar-item button border  right blue-grey" onclick="add();"><img src="[% abspath%]img/icons/plus_white.svg" style="height: 24px;"/></button> -->
-    
-</div>
-</div>
-<div id="pnl_table" class="display-container" style="margin-top: 50px;">
-<div id="tbl_planning"></div>
-</div>
\ No newline at end of file
index bf95745..8c307b0 100644 (file)
@@ -12,6 +12,7 @@ let workplans ={
   copy_day_id: null,
   current_view: 'workplans',
   disablesave: false,
+  payedpauses:null,
   initform: function(){
     let tfields = document.getElementsByClassName("timefield");
     for (let i=0;i<tfields.length;i++){
@@ -79,6 +80,7 @@ let workplans ={
   });
    workplans.gettblfilterdata();
    workplans.initform();
+   workplans.getcompanyconf();
   },
   gettblfilterdata: function(){
     //console.log({"get": "workplanlist" ,"schemata":schemata});
@@ -86,6 +88,12 @@ let workplans ={
       workplans.tblfilter.setData(data.result.sqldata);
     });
   },
+  getcompanyconf: function(){
+    postData("db.cgi", { "get":  "company","schemata":"public", "schemata":schemata}).then(data => {
+      console.log(data);
+      workplans.payedpauses = data.result.data.payedpauses;
+    });
+  },
   gettbldata: function(wkid){
     let wpsel = workplans.tblfilter.getSelectedData();
     if (wpsel[0]){
@@ -245,7 +253,7 @@ let workplans ={
     let ops2 = document.getElementById("pausestart2");
     let odp = document.getElementById("pause");
     let oirupt = document.getElementById("interruptionhours");
-    let owkh = document.getElementById("workhours");
+    let owkh = document.getElementById("dayhours");
     let msg = "";
     
     if (ode1.value && ods1.value){
@@ -308,7 +316,12 @@ let workplans ={
       document.getElementById("interruptionhours").value="";
     }
     //console.log("dayhours: " + timecalc.MinutesToTime(mt1+mt2-mtp));
-    document.getElementById("dayhours").value= timecalc.MinutesToTime(mt1+mt2-mtp);
+    if (workplans.payedpauses == "1"){
+      owkh.value= timecalc.MinutesToTime(mt1+mt2);
+    } else {
+      owkh.value= timecalc.MinutesToTime(mt1+mt2-mtp);
+    }
+    //document.getElementById("dayhours").value= timecalc.MinutesToTime(mt1+mt2-mtp);
     //console.log("mt1: " + mt1+ "mt2:" + mt2 + "mtp:" + mtp + "irupt"+ irupt);
     let totaltester = /\d+:\d\d/;
     let valcheck= document.getElementById("dayhours").value;
@@ -317,7 +330,7 @@ let workplans ={
         document.getElementById("dayhours").value ="";
       }
     }
-    document.getElementById("btn_saveday").disabled=workplans.disablesave; 
+    //document.getElementById("btn_saveday").disabled=workplans.disablesave; 
   }
 }
 let wdayFormatter = function(cell, formatterParams){
index 8921d22..a532101 100644 (file)
   <body>
 <div class="bgimg display-container animate-opacity text-white">
   <div class="display-topleft padding-large xlarge"></div>
-  <div class="display-middle">
+  <div class="display-middle center">
     <h1 class="jumbo animate-top">
       <img alt="POT" src="img/pot_big.png">
     </h1>
     <hr class="border-grey" style="margin:auto;width:40%">
     <p class="large center">
-      COMING SOON<br>
-      currently in beta version<br>
+      version 1.0.0<br>
       <br>
     </p>
     <div class="row center">
-      <div class="col" style="width: 100%;">
-        <a class="button xlarge round blue-grey" style="width: 100%;" href="app/login.html">Login</a>
+      <div class="col" style="width: 50%;">
+        <a class="button round" style="width: 100%;" href="downloads/POT_Setup_64bit.exe"><img src="img/windows_badge.png" /></a><br/>
+        <a href="downloads/POT_Setup_32bit.exe">version Windows 32bit</a>
+      </div>
+      <div class="col" style="width: 50%;">
+        <a class="button round" style="width: 100%;" href="downloads/POT_Setup_macos.dmg"><img src="img/macos_badge.png" /></a>
       </div>
     </div>
     <p></p>